diff --git a/sdk-endpoints.txt b/sdk-endpoints.txt index d8bd3c3..259557e 100644 --- a/sdk-endpoints.txt +++ b/sdk-endpoints.txt @@ -7,7 +7,7 @@ # # tests/unit/test_sdk_endpoint_coverage.py checks it against # docs/public/openapi.json from the same commit: every "METHOD path" the spec -# exposes (excluding /health* meta routes) must appear under [covered] or +# exposes (excluding /api/v1/health* meta routes) must appear under [covered] or # [excluded], and every entry here must still exist in the spec. So adding a # gateway endpoint fails the gateway's own build until it is classified here. # That is the point: drift fails in the repo that causes it, at the moment it @@ -21,338 +21,338 @@ [covered] # Inference -POST /v1/chat/completions -POST /v1/responses -POST /v1/messages -POST /v1/messages/count_tokens -POST /v1/embeddings -POST /v1/moderations -POST /v1/rerank -GET /v1/models +POST /api/v1/chat/completions +POST /api/v1/responses +POST /api/v1/messages +POST /api/v1/messages/count_tokens +POST /api/v1/embeddings +POST /api/v1/moderations +POST /api/v1/rerank +GET /api/v1/models # Batches -POST /v1/batches -GET /v1/batches -GET /v1/batches/{batch_id} -POST /v1/batches/{batch_id}/cancel -GET /v1/batches/{batch_id}/results +POST /api/v1/batches +GET /api/v1/batches +GET /api/v1/batches/{batch_id} +POST /api/v1/batches/{batch_id}/cancel +GET /api/v1/batches/{batch_id}/results # Control plane: keys -POST /v1/keys -GET /v1/keys -GET /v1/keys/{key_id} -PATCH /v1/keys/{key_id} -DELETE /v1/keys/{key_id} +POST /api/v1/keys +GET /api/v1/keys +GET /api/v1/keys/{key_id} +PATCH /api/v1/keys/{key_id} +DELETE /api/v1/keys/{key_id} # Control plane: users -POST /v1/users -GET /v1/users -GET /v1/users/{user_id} -PATCH /v1/users/{user_id} -DELETE /v1/users/{user_id} -GET /v1/users/{user_id}/usage +POST /api/v1/users +GET /api/v1/users +GET /api/v1/users/{user_id} +PATCH /api/v1/users/{user_id} +DELETE /api/v1/users/{user_id} +GET /api/v1/users/{user_id}/usage # Control plane: budgets -POST /v1/budgets -GET /v1/budgets -GET /v1/budgets/{budget_id} -PATCH /v1/budgets/{budget_id} -DELETE /v1/budgets/{budget_id} +POST /api/v1/budgets +GET /api/v1/budgets +GET /api/v1/budgets/{budget_id} +PATCH /api/v1/budgets/{budget_id} +DELETE /api/v1/budgets/{budget_id} # Control plane: pricing -POST /v1/pricing -GET /v1/pricing -GET /v1/pricing/{model_key} -GET /v1/pricing/{model_key}/history -DELETE /v1/pricing/{model_key} +POST /api/v1/pricing +GET /api/v1/pricing +GET /api/v1/pricing/{model_key} +GET /api/v1/pricing/{model_key}/history +DELETE /api/v1/pricing/{model_key} # Control plane: usage -GET /v1/usage +GET /api/v1/usage # Images -POST /v1/images/generations +POST /api/v1/images/generations # Audio -POST /v1/audio/speech -POST /v1/audio/transcriptions +POST /api/v1/audio/speech +POST /api/v1/audio/transcriptions [excluded] -GET /v1/models/{model_id} # redundant, list_models covers discovery +GET /api/v1/models/{model_id} # redundant, list_models covers discovery # Caller-orchestrated MCP is public, but no SDK shell wraps it yet. Typed # mcp.list_tools and mcp.execute methods are the next step for the SDKs, and # execution needs one deliberate property no generated wrapper gives it for # free: exactly one HTTP attempt, never a retry. -GET /v1/mcp/servers/{mcp_server_id}/tools # not yet wrapped -POST /v1/mcp/execute # not yet wrapped +GET /api/v1/mcp/servers/{mcp_server_id}/tools # not yet wrapped +POST /api/v1/mcp/execute # not yet wrapped # Files API: added to the gateway spec, not yet wrapped by any SDK shell. -POST /v1/files # not yet wrapped -GET /v1/files # not yet wrapped -GET /v1/files/{file_id} # not yet wrapped -GET /v1/files/{file_id}/content # not yet wrapped -DELETE /v1/files/{file_id} # not yet wrapped +POST /api/v1/files # not yet wrapped +GET /api/v1/files # not yet wrapped +GET /api/v1/files/{file_id} # not yet wrapped +GET /api/v1/files/{file_id}/content # not yet wrapped +DELETE /api/v1/files/{file_id} # not yet wrapped # Dashboard / admin management surface: present in the gateway spec, not yet # wrapped by any SDK shell. Deferred here so the drift gate stays green; move to # [covered] when a shell surfaces them. Kept identical across all four SDKs. # Model aliases -GET /v1/aliases # not yet wrapped -POST /v1/aliases # not yet wrapped -DELETE /v1/aliases/{name} # not yet wrapped +GET /api/v1/aliases # not yet wrapped +POST /api/v1/aliases # not yet wrapped +DELETE /api/v1/aliases/{name} # not yet wrapped # Provider credentials (runtime provider management) -GET /v1/provider-credentials # not yet wrapped -POST /v1/provider-credentials # not yet wrapped -POST /v1/provider-credentials/test # not yet wrapped -PATCH /v1/provider-credentials/{instance} # not yet wrapped -DELETE /v1/provider-credentials/{instance} # not yet wrapped -POST /v1/provider-credentials/{instance}/test # not yet wrapped +GET /api/v1/provider-credentials # not yet wrapped +POST /api/v1/provider-credentials # not yet wrapped +POST /api/v1/provider-credentials/test # not yet wrapped +PATCH /api/v1/provider-credentials/{instance} # not yet wrapped +DELETE /api/v1/provider-credentials/{instance} # not yet wrapped +POST /api/v1/provider-credentials/{instance}/test # not yet wrapped # Providers catalog -GET /v1/providers # not yet wrapped -GET /v1/providers/catalog # not yet wrapped +GET /api/v1/providers # not yet wrapped +GET /api/v1/providers/catalog # not yet wrapped # Runtime settings -GET /v1/settings # not yet wrapped -PATCH /v1/settings # not yet wrapped -GET /v1/settings/mail # not yet wrapped -POST /v1/settings/mail/test # not yet wrapped -GET /v1/settings/maintenance-mode # not yet wrapped -PATCH /v1/settings/maintenance-mode # not yet wrapped +GET /api/v1/settings # not yet wrapped +PATCH /api/v1/settings # not yet wrapped +GET /api/v1/settings/mail # not yet wrapped +POST /api/v1/settings/mail/test # not yet wrapped +GET /api/v1/settings/maintenance-mode # not yet wrapped +PATCH /api/v1/settings/maintenance-mode # not yet wrapped # Model discovery / metadata -GET /v1/models/discoverable # not yet wrapped -GET /v1/models/metadata # not yet wrapped +GET /api/v1/models/discoverable # not yet wrapped +GET /api/v1/models/metadata # not yet wrapped # Other control-plane extensions of already-covered resources -GET /v1/usage/count # not yet wrapped -POST /v1/keys/{key_id}/rotate # not yet wrapped -GET /v1/budgets/{budget_id}/reset-logs # not yet wrapped +GET /api/v1/usage/count # not yet wrapped +POST /api/v1/keys/{key_id}/rotate # not yet wrapped +GET /api/v1/budgets/{budget_id}/reset-logs # not yet wrapped # --- Second wave of gateway endpoints (added after the initial manifest) --- # Dashboard session auth: browser cookie flow for the admin UI, not an SDK surface. -POST /v1/auth/session # dashboard-only +POST /api/v1/auth/session # dashboard-only # Deployment bootstrap: tells the dashboard shell which deployment served it, so # it exists for a browser deciding what to render. An SDK already knows. -GET /v1/bootstrap # dashboard-only -DELETE /v1/auth/session # dashboard-only +GET /api/v1/bootstrap # dashboard-only +DELETE /api/v1/auth/session # dashboard-only # Setting the dashboard sign-in password: the other half of the same browser # flow. An SDK authenticates with the master key or an API key and never holds # a password, so there is nothing here for one to wrap. -PUT /v1/auth/password # dashboard-only +PUT /api/v1/auth/password # dashboard-only # Signup, email verification, and password reset (otari#650): claiming a # roster identity's dashboard login and recovering it, the same browser-only -# credential flow PUT /v1/auth/password is. No SDK caller holds a password. -POST /v1/auth/signup # dashboard-only -POST /v1/auth/verify-email # dashboard-only -POST /v1/auth/resend-verification # dashboard-only -POST /v1/auth/password/reset # dashboard-only -POST /v1/auth/password/reset/confirm # dashboard-only +# credential flow PUT /api/v1/auth/password is. No SDK caller holds a password. +POST /api/v1/auth/signup # dashboard-only +POST /api/v1/auth/verify-email # dashboard-only +POST /api/v1/auth/resend-verification # dashboard-only +POST /api/v1/auth/password/reset # dashboard-only +POST /api/v1/auth/password/reset/confirm # dashboard-only # Passkeys (otari#652): both ceremonies need a WebAuthn authenticator, which is # a browser API. An SDK cannot produce an attestation or an assertion, so there # is nothing here for one to wrap, including the credential list: it exists to # render the account page's passkey rows. -POST /v1/auth/webauthn/register/options # dashboard-only -POST /v1/auth/webauthn/register # dashboard-only -POST /v1/auth/webauthn/authenticate/options # dashboard-only -POST /v1/auth/webauthn/authenticate # dashboard-only -GET /v1/auth/webauthn/credentials # dashboard-only -PATCH /v1/auth/webauthn/credentials/{credential_id} # dashboard-only -DELETE /v1/auth/webauthn/credentials/{credential_id} # dashboard-only +POST /api/v1/auth/webauthn/register/options # dashboard-only +POST /api/v1/auth/webauthn/register # dashboard-only +POST /api/v1/auth/webauthn/authenticate/options # dashboard-only +POST /api/v1/auth/webauthn/authenticate # dashboard-only +GET /api/v1/auth/webauthn/credentials # dashboard-only +PATCH /api/v1/auth/webauthn/credentials/{credential_id} # dashboard-only +DELETE /api/v1/auth/webauthn/credentials/{credential_id} # dashboard-only # OAuth sign-in (otari#651): the flow is a browser redirect through a third # party. The authorization URL has to be navigated to, the consent screen # completed by a person, and the CSRF state kept by the browser that started it # and checked when the provider sends it back. None of that is something an SDK # can drive, and the session it ends by minting is an HttpOnly cookie the # dashboard uses rather than a token an SDK could hold. -GET /v1/auth/oauth/{provider}/authorize # dashboard-only -POST /v1/auth/oauth/{provider}/callback # dashboard-only +GET /api/v1/auth/oauth/{provider}/authorize # dashboard-only +POST /api/v1/auth/oauth/{provider}/callback # dashboard-only # OTLP ingest: OpenTelemetry collector receivers, not an SDK surface. -POST /v1/logs # otel ingest -POST /v1/traces # otel ingest -POST /v1/metrics # otel ingest +POST /otlp/v1/logs # otel ingest +POST /otlp/v1/traces # otel ingest +POST /otlp/v1/metrics # otel ingest # Usage analytics and maintenance -GET /v1/usage/summary # not yet wrapped -GET /v1/usage/series # not yet wrapped -DELETE /v1/usage # not yet wrapped -POST /v1/usage/external-events # not yet wrapped -POST /v1/usage/set-price # not yet wrapped -GET /v1/usage/in-flight # dashboard-only, per-worker live view +GET /api/v1/usage/summary # not yet wrapped +GET /api/v1/usage/series # not yet wrapped +DELETE /api/v1/usage # not yet wrapped +POST /api/v1/usage/external-events # not yet wrapped +POST /api/v1/usage/set-price # not yet wrapped +GET /api/v1/usage/in-flight # dashboard-only, per-worker live view # Agent telemetry read and purge -GET /v1/agent-telemetry/summary # not yet wrapped -GET /v1/agent-telemetry/count # not yet wrapped -GET /v1/agent-telemetry/series # not yet wrapped -DELETE /v1/agent-telemetry # not yet wrapped +GET /api/v1/agent-telemetry/summary # not yet wrapped +GET /api/v1/agent-telemetry/count # not yet wrapped +GET /api/v1/agent-telemetry/series # not yet wrapped +DELETE /api/v1/agent-telemetry # not yet wrapped # Routing policies -GET /v1/routing/policies # not yet wrapped -POST /v1/routing/policies # not yet wrapped -DELETE /v1/routing/policies/{name} # not yet wrapped -POST /v1/routing/policies/explain # not yet wrapped -POST /v1/routing/preferences/rank # not yet wrapped -GET /v1/routing/status # not yet wrapped +GET /api/v1/routing/policies # not yet wrapped +POST /api/v1/routing/policies # not yet wrapped +DELETE /api/v1/routing/policies/{name} # not yet wrapped +POST /api/v1/routing/policies/explain # not yet wrapped +POST /api/v1/routing/preferences/rank # not yet wrapped +GET /api/v1/routing/status # not yet wrapped # Pricing refresh workflow -POST /v1/pricing/refresh # not yet wrapped -POST /v1/pricing/refresh/confirm # not yet wrapped -POST /v1/pricing/refresh/reject # not yet wrapped +POST /api/v1/pricing/refresh # not yet wrapped +POST /api/v1/pricing/refresh/confirm # not yet wrapped +POST /api/v1/pricing/refresh/reject # not yet wrapped # Providers -GET /v1/providers/catalog/{provider_id} # not yet wrapped -GET /v1/providers/health # not yet wrapped -POST /v1/provider-credentials/reencrypt # not yet wrapped +GET /api/v1/providers/catalog/{provider_id} # not yet wrapped +GET /api/v1/providers/health # not yet wrapped +POST /api/v1/provider-credentials/reencrypt # not yet wrapped # Built-in tool settings and search -GET /v1/tools # not yet wrapped -GET /v1/tool-settings # not yet wrapped -PATCH /v1/tool-settings # not yet wrapped -POST /v1/tool-settings/{service}/test # not yet wrapped -POST /v1/search # not yet wrapped -POST /v1/search/{search_tool_name} # not yet wrapped +GET /api/v1/tools # not yet wrapped +GET /api/v1/tool-settings # not yet wrapped +PATCH /api/v1/tool-settings # not yet wrapped +POST /api/v1/tool-settings/{service}/test # not yet wrapped +POST /api/v1/search # not yet wrapped +POST /api/v1/search/{search_tool_name} # not yet wrapped # Search tools (runtime search-tool management) -GET /v1/search-tools # not yet wrapped -GET /v1/search-tools/providers # not yet wrapped -POST /v1/search-tools # not yet wrapped -PATCH /v1/search-tools/{name} # not yet wrapped -DELETE /v1/search-tools/{name} # not yet wrapped -POST /v1/search-tools/reencrypt # not yet wrapped +GET /api/v1/search-tools # not yet wrapped +GET /api/v1/search-tools/providers # not yet wrapped +POST /api/v1/search-tools # not yet wrapped +PATCH /api/v1/search-tools/{name} # not yet wrapped +DELETE /api/v1/search-tools/{name} # not yet wrapped +POST /api/v1/search-tools/reencrypt # not yet wrapped # Settings -POST /v1/settings/master-key/rotate # not yet wrapped +POST /api/v1/settings/master-key/rotate # not yet wrapped # Tenancy-scoped budgets: an operator surface with no dashboard page yet either, -# so it is unwrapped rather than dashboard-only. The per-user /v1/budgets family +# so it is unwrapped rather than dashboard-only. The per-user /api/v1/budgets family # is [covered]; move these across with it when an SDK grows an admin client. -GET /v1/scoped-budgets # not yet wrapped -POST /v1/scoped-budgets # not yet wrapped -GET /v1/scoped-budgets/{budget_id} # not yet wrapped -PATCH /v1/scoped-budgets/{budget_id} # not yet wrapped -DELETE /v1/scoped-budgets/{budget_id} # not yet wrapped +GET /api/v1/scoped-budgets # not yet wrapped +POST /api/v1/scoped-budgets # not yet wrapped +GET /api/v1/scoped-budgets/{budget_id} # not yet wrapped +PATCH /api/v1/scoped-budgets/{budget_id} # not yet wrapped +DELETE /api/v1/scoped-budgets/{budget_id} # not yet wrapped # Deployment administration: the accounts on the whole deployment, and the flags # an operator flips on one. Refused with 404 for anyone who is not an operator, # and an SDK caller holds a workspace key rather than an operator identity, so # there is nothing here for a shell to wrap. -GET /v1/admin/access # dashboard-only -GET /v1/admin/users # dashboard-only -PATCH /v1/admin/users/{user_id} # dashboard-only +GET /api/v1/admin/access # dashboard-only +GET /api/v1/admin/users # dashboard-only +PATCH /api/v1/admin/users/{user_id} # dashboard-only # Tenancy: organizations, workspaces, and their memberships. The dashboard's # tenancy pages are the consumer; an SDK caller acts inside one workspace with a # key that already names it, so none of these is an SDK surface yet. Move to # [covered] if a shell grows an admin client. -POST /v1/organizations # dashboard-only -GET /v1/organizations/me # dashboard-only -PATCH /v1/organizations/me # dashboard-only -GET /v1/organizations/me/memberships # dashboard-only -POST /v1/organizations/me/switch # dashboard-only -GET /v1/organizations/me/members # dashboard-only -POST /v1/organizations/me/members # dashboard-only -PATCH /v1/organizations/me/members/{organization_member_id} # dashboard-only -DELETE /v1/organizations/me/members/{organization_member_id} # dashboard-only -GET /v1/organizations/me/domains # dashboard-only -POST /v1/organizations/me/domains # dashboard-only -PATCH /v1/organizations/me/domains/{organization_domain_id} # dashboard-only -POST /v1/organizations/me/domains/{organization_domain_id}/verify # dashboard-only -DELETE /v1/organizations/me/domains/{organization_domain_id} # dashboard-only -POST /v1/workspaces # dashboard-only -GET /v1/workspaces # dashboard-only -GET /v1/workspaces/{workspace_id} # dashboard-only -PATCH /v1/workspaces/{workspace_id} # dashboard-only -DELETE /v1/workspaces/{workspace_id} # dashboard-only -GET /v1/workspaces/{workspace_id}/members # dashboard-only -POST /v1/workspaces/{workspace_id}/members/{user_id} # dashboard-only -PATCH /v1/workspaces/{workspace_id}/members/{user_id} # dashboard-only -DELETE /v1/workspaces/{workspace_id}/members/{user_id} # dashboard-only -GET /v1/organizations/me/pricing # dashboard-only -POST /v1/organizations/me/pricing # dashboard-only -PUT /v1/organizations/me/pricing/{pricing_id} # dashboard-only -DELETE /v1/organizations/me/pricing/{pricing_id} # dashboard-only +POST /api/v1/organizations # dashboard-only +GET /api/v1/organizations/me # dashboard-only +PATCH /api/v1/organizations/me # dashboard-only +GET /api/v1/organizations/me/memberships # dashboard-only +POST /api/v1/organizations/me/switch # dashboard-only +GET /api/v1/organizations/me/members # dashboard-only +POST /api/v1/organizations/me/members # dashboard-only +PATCH /api/v1/organizations/me/members/{organization_member_id} # dashboard-only +DELETE /api/v1/organizations/me/members/{organization_member_id} # dashboard-only +GET /api/v1/organizations/me/domains # dashboard-only +POST /api/v1/organizations/me/domains # dashboard-only +PATCH /api/v1/organizations/me/domains/{organization_domain_id} # dashboard-only +POST /api/v1/organizations/me/domains/{organization_domain_id}/verify # dashboard-only +DELETE /api/v1/organizations/me/domains/{organization_domain_id} # dashboard-only +POST /api/v1/workspaces # dashboard-only +GET /api/v1/workspaces # dashboard-only +GET /api/v1/workspaces/{workspace_id} # dashboard-only +PATCH /api/v1/workspaces/{workspace_id} # dashboard-only +DELETE /api/v1/workspaces/{workspace_id} # dashboard-only +GET /api/v1/workspaces/{workspace_id}/members # dashboard-only +POST /api/v1/workspaces/{workspace_id}/members/{user_id} # dashboard-only +PATCH /api/v1/workspaces/{workspace_id}/members/{user_id} # dashboard-only +DELETE /api/v1/workspaces/{workspace_id}/members/{user_id} # dashboard-only +GET /api/v1/organizations/me/pricing # dashboard-only +POST /api/v1/organizations/me/pricing # dashboard-only +PUT /api/v1/organizations/me/pricing/{pricing_id} # dashboard-only +DELETE /api/v1/organizations/me/pricing/{pricing_id} # dashboard-only # The tenant's own view of the usage `/v1/usage` serves deployment-wide # (otari#837). Excluded for the same reason its deployment-wide siblings above # are: it is scoped by the caller's dashboard session, and an SDK caller holds an # API key, which names a workspace rather than a person with memberships. -GET /v1/organizations/me/usage # dashboard-only -GET /v1/organizations/me/usage/count # dashboard-only -GET /v1/organizations/me/usage/summary # dashboard-only -GET /v1/organizations/me/usage/series # dashboard-only -GET /v1/organizations/me/routing-policies # dashboard-only -POST /v1/organizations/me/routing-policies # dashboard-only -DELETE /v1/organizations/me/routing-policies/{name} # dashboard-only -GET /v1/organizations/me/aliases # dashboard-only -POST /v1/organizations/me/aliases # dashboard-only -DELETE /v1/organizations/me/aliases/{name} # dashboard-only +GET /api/v1/organizations/me/usage # dashboard-only +GET /api/v1/organizations/me/usage/count # dashboard-only +GET /api/v1/organizations/me/usage/summary # dashboard-only +GET /api/v1/organizations/me/usage/series # dashboard-only +GET /api/v1/organizations/me/routing-policies # dashboard-only +POST /api/v1/organizations/me/routing-policies # dashboard-only +DELETE /api/v1/organizations/me/routing-policies/{name} # dashboard-only +GET /api/v1/organizations/me/aliases # dashboard-only +POST /api/v1/organizations/me/aliases # dashboard-only +DELETE /api/v1/organizations/me/aliases/{name} # dashboard-only # The member's own keys (otari-ai#1941), excluded for the same reason as the # usage reads above: scoped by the caller's dashboard session, which an SDK # caller does not hold. -GET /v1/organizations/me/keys # dashboard-only -POST /v1/organizations/me/keys # dashboard-only -PATCH /v1/organizations/me/keys/{key_id} # dashboard-only -DELETE /v1/organizations/me/keys/{key_id} # dashboard-only -POST /v1/organizations/me/keys/{key_id}/rotate # dashboard-only +GET /api/v1/organizations/me/keys # dashboard-only +POST /api/v1/organizations/me/keys # dashboard-only +PATCH /api/v1/organizations/me/keys/{key_id} # dashboard-only +DELETE /api/v1/organizations/me/keys/{key_id} # dashboard-only +POST /api/v1/organizations/me/keys/{key_id}/rotate # dashboard-only # The organization's own budgets and the ceilings enforcing them # (otari-ai#1943), excluded for the same reason as the keys above: the # organization is resolved from the caller's dashboard session rather than named # in the request, so an SDK caller holding a workspace key has no organization # for these to act on. The deployment-wide `/v1/budgets` and `/v1/scoped-budgets` # families are classified separately above. -GET /v1/organizations/me/budgets # dashboard-only -POST /v1/organizations/me/budgets # dashboard-only -PATCH /v1/organizations/me/budgets/{budget_id} # dashboard-only -DELETE /v1/organizations/me/budgets/{budget_id} # dashboard-only -GET /v1/organizations/me/spend-ceilings # dashboard-only -POST /v1/organizations/me/spend-ceilings # dashboard-only -PATCH /v1/organizations/me/spend-ceilings/{ceiling_id} # dashboard-only -DELETE /v1/organizations/me/spend-ceilings/{ceiling_id} # dashboard-only -GET /v1/organizations/me/guardrails # operator surface -POST /v1/organizations/me/guardrails # operator surface -PATCH /v1/organizations/me/guardrails/{guardrail_id} # operator surface -DELETE /v1/organizations/me/guardrails/{guardrail_id} # operator surface -POST /v1/organizations/me/member-invitations # dashboard-only -DELETE /v1/organizations/me/member-invitations/{invitation_id} # dashboard-only +GET /api/v1/organizations/me/budgets # dashboard-only +POST /api/v1/organizations/me/budgets # dashboard-only +PATCH /api/v1/organizations/me/budgets/{budget_id} # dashboard-only +DELETE /api/v1/organizations/me/budgets/{budget_id} # dashboard-only +GET /api/v1/organizations/me/spend-ceilings # dashboard-only +POST /api/v1/organizations/me/spend-ceilings # dashboard-only +PATCH /api/v1/organizations/me/spend-ceilings/{ceiling_id} # dashboard-only +DELETE /api/v1/organizations/me/spend-ceilings/{ceiling_id} # dashboard-only +GET /api/v1/organizations/me/guardrails # operator surface +POST /api/v1/organizations/me/guardrails # operator surface +PATCH /api/v1/organizations/me/guardrails/{guardrail_id} # operator surface +DELETE /api/v1/organizations/me/guardrails/{guardrail_id} # operator surface +POST /api/v1/organizations/me/member-invitations # dashboard-only +DELETE /api/v1/organizations/me/member-invitations/{invitation_id} # dashboard-only # The invitee's side of the same flow, and dashboard-only for the same reason # the admin's side above is: it acts as a signed-in person deciding about their # own membership, not as a key-holder calling the gateway. -GET /v1/organizations/me/pending-memberships # dashboard-only -POST /v1/organizations/me/pending-memberships/{organization_member_id}/accept # dashboard-only -POST /v1/organizations/me/pending-memberships/{organization_member_id}/decline # dashboard-only +GET /api/v1/organizations/me/pending-memberships # dashboard-only +POST /api/v1/organizations/me/pending-memberships/{organization_member_id}/accept # dashboard-only +POST /api/v1/organizations/me/pending-memberships/{organization_member_id}/decline # dashboard-only # The invitation accept flow is reached by a browser following an emailed # link, not by an SDK caller acting as a key-holder inside a workspace. -POST /v1/invitations/validate # accept-flow, not an SDK surface -POST /v1/invitations/accept # accept-flow, not an SDK surface -GET /v1/workspaces/{workspace_id}/member-budget-policies # dashboard-only -POST /v1/workspaces/{workspace_id}/member-budget-policies # dashboard-only -PATCH /v1/workspaces/{workspace_id}/member-budget-policies/{default_id} # dashboard-only -DELETE /v1/workspaces/{workspace_id}/member-budget-policies/{default_id} # dashboard-only +POST /api/v1/invitations/validate # accept-flow, not an SDK surface +POST /api/v1/invitations/accept # accept-flow, not an SDK surface +GET /api/v1/workspaces/{workspace_id}/member-budget-policies # dashboard-only +POST /api/v1/workspaces/{workspace_id}/member-budget-policies # dashboard-only +PATCH /api/v1/workspaces/{workspace_id}/member-budget-policies/{default_id} # dashboard-only +DELETE /api/v1/workspaces/{workspace_id}/member-budget-policies/{default_id} # dashboard-only # The dashboard's first-request setup guide (otari#660). It exists to walk a # browser from an empty workspace to a working call, and the credential it # issues is the thing an SDK caller already holds, so there is nothing here for # a shell to wrap. -GET /v1/workspaces/{workspace_id}/activation # dashboard-only -POST /v1/workspaces/{workspace_id}/activation/key # dashboard-only -POST /v1/workspaces/{workspace_id}/activation/dismiss # dashboard-only +GET /api/v1/workspaces/{workspace_id}/activation # dashboard-only +POST /api/v1/workspaces/{workspace_id}/activation/key # dashboard-only +POST /api/v1/workspaces/{workspace_id}/activation/dismiss # dashboard-only # The workspace's code-execution policy (otari#657) is set by whoever administers # the workspace, not by the key-holder running code inside it, so it is the same # dashboard-side surface as the rows above. An SDK caller sees its effect on # `otari_code_execution` (a 403, a lower iteration ceiling), never the policy row. -GET /v1/workspaces/{workspace_id}/code-execution-policy # dashboard-only -PUT /v1/workspaces/{workspace_id}/code-execution-policy # dashboard-only -DELETE /v1/workspaces/{workspace_id}/code-execution-policy # dashboard-only +GET /api/v1/workspaces/{workspace_id}/code-execution-policy # dashboard-only +PUT /api/v1/workspaces/{workspace_id}/code-execution-policy # dashboard-only +DELETE /api/v1/workspaces/{workspace_id}/code-execution-policy # dashboard-only # The workspace's web-search configuration (otari#656) is the same shape of # surface for the same reason: whoever administers the workspace decides whether # it may search and how far, not the key-holder searching inside it. An SDK -# caller sees its effect on `otari_web_search` and on `POST /v1/search` (a 403, a +# caller sees its effect on `otari_web_search` and on `POST /api/v1/search` (a 403, a # lower result ceiling, a domain filter), never the row. -GET /v1/workspaces/{workspace_id}/web-search # dashboard-only -PUT /v1/workspaces/{workspace_id}/web-search # dashboard-only -DELETE /v1/workspaces/{workspace_id}/web-search # dashboard-only +GET /api/v1/workspaces/{workspace_id}/web-search # dashboard-only +PUT /api/v1/workspaces/{workspace_id}/web-search # dashboard-only +DELETE /api/v1/workspaces/{workspace_id}/web-search # dashboard-only # Organization-scoped provider keys (otari-ai#1748, otari#643): the same # tenancy-admin surface as the organization/workspace rows just above, and # excluded for the same reason. An SDK caller acts inside one workspace with a # key that already carries its resolved credentials; managing which # organization-scoped BYO key a workspace defaults to is a dashboard concern. -GET /v1/organizations/me/provider-keys # dashboard-only -POST /v1/organizations/me/provider-keys # dashboard-only -PATCH /v1/organizations/me/provider-keys/{key_id} # dashboard-only -DELETE /v1/organizations/me/provider-keys/{key_id} # dashboard-only -POST /v1/organizations/me/provider-keys/{key_id}/archive # dashboard-only -POST /v1/organizations/me/provider-keys/{key_id}/restore # dashboard-only -POST /v1/organizations/me/provider-keys/{key_id}/default # dashboard-only -GET /v1/workspaces/{workspace_id}/provider-keys # dashboard-only -PATCH /v1/workspaces/{workspace_id}/provider-keys/{key_id} # dashboard-only -DELETE /v1/workspaces/{workspace_id}/provider-keys/{key_id} # dashboard-only -GET /v1/workspaces/{workspace_id}/provider-keys/{key_id}/models # dashboard-only -POST /v1/workspaces/{workspace_id}/provider-keys/{key_id}/models # dashboard-only -DELETE /v1/workspaces/{workspace_id}/provider-keys/{key_id}/models/{model} # dashboard-only +GET /api/v1/organizations/me/provider-keys # dashboard-only +POST /api/v1/organizations/me/provider-keys # dashboard-only +PATCH /api/v1/organizations/me/provider-keys/{key_id} # dashboard-only +DELETE /api/v1/organizations/me/provider-keys/{key_id} # dashboard-only +POST /api/v1/organizations/me/provider-keys/{key_id}/archive # dashboard-only +POST /api/v1/organizations/me/provider-keys/{key_id}/restore # dashboard-only +POST /api/v1/organizations/me/provider-keys/{key_id}/default # dashboard-only +GET /api/v1/workspaces/{workspace_id}/provider-keys # dashboard-only +PATCH /api/v1/workspaces/{workspace_id}/provider-keys/{key_id} # dashboard-only +DELETE /api/v1/workspaces/{workspace_id}/provider-keys/{key_id} # dashboard-only +GET /api/v1/workspaces/{workspace_id}/provider-keys/{key_id}/models # dashboard-only +POST /api/v1/workspaces/{workspace_id}/provider-keys/{key_id}/models # dashboard-only +DELETE /api/v1/workspaces/{workspace_id}/provider-keys/{key_id}/models/{model} # dashboard-only # Workspace-scoped MCP servers (otari#658): a master-key operator surface for # registering the endpoints a workspace's requests may reach, alongside the # tenancy admin rows above. An SDK caller does not manage these; it names them # by id in `mcp_server_ids` on a completion request, which is already covered. -GET /v1/workspaces/{workspace_id}/mcp-servers # operator surface -POST /v1/workspaces/{workspace_id}/mcp-servers # operator surface -PATCH /v1/workspaces/{workspace_id}/mcp-servers/{server_id} # operator surface -DELETE /v1/workspaces/{workspace_id}/mcp-servers/{server_id} # operator surface +GET /api/v1/workspaces/{workspace_id}/mcp-servers # operator surface +POST /api/v1/workspaces/{workspace_id}/mcp-servers # operator surface +PATCH /api/v1/workspaces/{workspace_id}/mcp-servers/{server_id} # operator surface +DELETE /api/v1/workspaces/{workspace_id}/mcp-servers/{server_id} # operator surface # Web-search backend (otari#882): the SearXNG-shaped endpoint one gateway calls # on another, authenticated by a shared deployment token rather than an API key. # Its caller is a data-plane gateway, not an application, and no SDK holds that # token; an application reaches the same search through the otari_web_search # tool on a completion request. -GET /v1/web-search/search # gateway-to-gateway +GET /api/v1/web-search/search # gateway-to-gateway diff --git a/src/otari/_client/api/admin_api.py b/src/otari/_client/api/admin_api.py index 12814bd..43eea6f 100644 --- a/src/otari/_client/api/admin_api.py +++ b/src/otari/_client/api/admin_api.py @@ -43,7 +43,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def get_administration_access_v1_admin_access_get( + def get_administration_access_api_v1_admin_access_get( self, _request_timeout: Union[ None, @@ -84,7 +84,7 @@ def get_administration_access_v1_admin_access_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_administration_access_v1_admin_access_get_serialize( + _param = self._get_administration_access_api_v1_admin_access_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -106,7 +106,7 @@ def get_administration_access_v1_admin_access_get( @validate_call - def get_administration_access_v1_admin_access_get_with_http_info( + def get_administration_access_api_v1_admin_access_get_with_http_info( self, _request_timeout: Union[ None, @@ -147,7 +147,7 @@ def get_administration_access_v1_admin_access_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_administration_access_v1_admin_access_get_serialize( + _param = self._get_administration_access_api_v1_admin_access_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -169,7 +169,7 @@ def get_administration_access_v1_admin_access_get_with_http_info( @validate_call - def get_administration_access_v1_admin_access_get_without_preload_content( + def get_administration_access_api_v1_admin_access_get_without_preload_content( self, _request_timeout: Union[ None, @@ -210,7 +210,7 @@ def get_administration_access_v1_admin_access_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_administration_access_v1_admin_access_get_serialize( + _param = self._get_administration_access_api_v1_admin_access_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -227,7 +227,7 @@ def get_administration_access_v1_admin_access_get_without_preload_content( return response_data.response - def _get_administration_access_v1_admin_access_get_serialize( + def _get_administration_access_api_v1_admin_access_get_serialize( self, _request_auth, _content_type, @@ -273,7 +273,7 @@ def _get_administration_access_v1_admin_access_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/admin/access', + resource_path='/api/v1/admin/access', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -290,7 +290,7 @@ def _get_administration_access_v1_admin_access_get_serialize( @validate_call - def list_deployment_users_v1_admin_users_get( + def list_deployment_users_api_v1_admin_users_get( self, skip: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of records to skip")] = None, limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Maximum number of records to return")] = None, @@ -309,7 +309,7 @@ def list_deployment_users_v1_admin_users_get( ) -> DeploymentUsersPublic: """List Deployment Users - List every account on this deployment, with the organizations each belongs to. Deployment-wide, so it is not the same list as ``GET /v1/organizations/me/members``: that one is the caller's organization roster and drops a suspended membership, while this one carries every identity at whatever standing, including one whose memberships are all suspended. Each row also reports when the account last signed in to the dashboard, and null there means never. + List every account on this deployment, with the organizations each belongs to. Deployment-wide, so it is not the same list as ``GET /api/v1/organizations/me/members``: that one is the caller's organization roster and drops a suspended membership, while this one carries every identity at whatever standing, including one whose memberships are all suspended. Each row also reports when the account last signed in to the dashboard, and null there means never. :param skip: Number of records to skip :type skip: int @@ -337,7 +337,7 @@ def list_deployment_users_v1_admin_users_get( :return: Returns the result object. """ # noqa: E501 - _param = self._list_deployment_users_v1_admin_users_get_serialize( + _param = self._list_deployment_users_api_v1_admin_users_get_serialize( skip=skip, limit=limit, _request_auth=_request_auth, @@ -362,7 +362,7 @@ def list_deployment_users_v1_admin_users_get( @validate_call - def list_deployment_users_v1_admin_users_get_with_http_info( + def list_deployment_users_api_v1_admin_users_get_with_http_info( self, skip: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of records to skip")] = None, limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Maximum number of records to return")] = None, @@ -381,7 +381,7 @@ def list_deployment_users_v1_admin_users_get_with_http_info( ) -> ApiResponse[DeploymentUsersPublic]: """List Deployment Users - List every account on this deployment, with the organizations each belongs to. Deployment-wide, so it is not the same list as ``GET /v1/organizations/me/members``: that one is the caller's organization roster and drops a suspended membership, while this one carries every identity at whatever standing, including one whose memberships are all suspended. Each row also reports when the account last signed in to the dashboard, and null there means never. + List every account on this deployment, with the organizations each belongs to. Deployment-wide, so it is not the same list as ``GET /api/v1/organizations/me/members``: that one is the caller's organization roster and drops a suspended membership, while this one carries every identity at whatever standing, including one whose memberships are all suspended. Each row also reports when the account last signed in to the dashboard, and null there means never. :param skip: Number of records to skip :type skip: int @@ -409,7 +409,7 @@ def list_deployment_users_v1_admin_users_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_deployment_users_v1_admin_users_get_serialize( + _param = self._list_deployment_users_api_v1_admin_users_get_serialize( skip=skip, limit=limit, _request_auth=_request_auth, @@ -434,7 +434,7 @@ def list_deployment_users_v1_admin_users_get_with_http_info( @validate_call - def list_deployment_users_v1_admin_users_get_without_preload_content( + def list_deployment_users_api_v1_admin_users_get_without_preload_content( self, skip: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of records to skip")] = None, limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Maximum number of records to return")] = None, @@ -453,7 +453,7 @@ def list_deployment_users_v1_admin_users_get_without_preload_content( ) -> RESTResponseType: """List Deployment Users - List every account on this deployment, with the organizations each belongs to. Deployment-wide, so it is not the same list as ``GET /v1/organizations/me/members``: that one is the caller's organization roster and drops a suspended membership, while this one carries every identity at whatever standing, including one whose memberships are all suspended. Each row also reports when the account last signed in to the dashboard, and null there means never. + List every account on this deployment, with the organizations each belongs to. Deployment-wide, so it is not the same list as ``GET /api/v1/organizations/me/members``: that one is the caller's organization roster and drops a suspended membership, while this one carries every identity at whatever standing, including one whose memberships are all suspended. Each row also reports when the account last signed in to the dashboard, and null there means never. :param skip: Number of records to skip :type skip: int @@ -481,7 +481,7 @@ def list_deployment_users_v1_admin_users_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._list_deployment_users_v1_admin_users_get_serialize( + _param = self._list_deployment_users_api_v1_admin_users_get_serialize( skip=skip, limit=limit, _request_auth=_request_auth, @@ -501,7 +501,7 @@ def list_deployment_users_v1_admin_users_get_without_preload_content( return response_data.response - def _list_deployment_users_v1_admin_users_get_serialize( + def _list_deployment_users_api_v1_admin_users_get_serialize( self, skip, limit, @@ -557,7 +557,7 @@ def _list_deployment_users_v1_admin_users_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/admin/users', + resource_path='/api/v1/admin/users', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -574,7 +574,7 @@ def _list_deployment_users_v1_admin_users_get_serialize( @validate_call - def update_deployment_user_v1_admin_users_user_id_patch( + def update_deployment_user_api_v1_admin_users_user_id_patch( self, user_id: UUID, deployment_user_update_request: DeploymentUserUpdateRequest, @@ -621,7 +621,7 @@ def update_deployment_user_v1_admin_users_user_id_patch( :return: Returns the result object. """ # noqa: E501 - _param = self._update_deployment_user_v1_admin_users_user_id_patch_serialize( + _param = self._update_deployment_user_api_v1_admin_users_user_id_patch_serialize( user_id=user_id, deployment_user_update_request=deployment_user_update_request, _request_auth=_request_auth, @@ -646,7 +646,7 @@ def update_deployment_user_v1_admin_users_user_id_patch( @validate_call - def update_deployment_user_v1_admin_users_user_id_patch_with_http_info( + def update_deployment_user_api_v1_admin_users_user_id_patch_with_http_info( self, user_id: UUID, deployment_user_update_request: DeploymentUserUpdateRequest, @@ -693,7 +693,7 @@ def update_deployment_user_v1_admin_users_user_id_patch_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._update_deployment_user_v1_admin_users_user_id_patch_serialize( + _param = self._update_deployment_user_api_v1_admin_users_user_id_patch_serialize( user_id=user_id, deployment_user_update_request=deployment_user_update_request, _request_auth=_request_auth, @@ -718,7 +718,7 @@ def update_deployment_user_v1_admin_users_user_id_patch_with_http_info( @validate_call - def update_deployment_user_v1_admin_users_user_id_patch_without_preload_content( + def update_deployment_user_api_v1_admin_users_user_id_patch_without_preload_content( self, user_id: UUID, deployment_user_update_request: DeploymentUserUpdateRequest, @@ -765,7 +765,7 @@ def update_deployment_user_v1_admin_users_user_id_patch_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._update_deployment_user_v1_admin_users_user_id_patch_serialize( + _param = self._update_deployment_user_api_v1_admin_users_user_id_patch_serialize( user_id=user_id, deployment_user_update_request=deployment_user_update_request, _request_auth=_request_auth, @@ -785,7 +785,7 @@ def update_deployment_user_v1_admin_users_user_id_patch_without_preload_content( return response_data.response - def _update_deployment_user_v1_admin_users_user_id_patch_serialize( + def _update_deployment_user_api_v1_admin_users_user_id_patch_serialize( self, user_id, deployment_user_update_request, @@ -850,7 +850,7 @@ def _update_deployment_user_v1_admin_users_user_id_patch_serialize( return self.api_client.param_serialize( method='PATCH', - resource_path='/v1/admin/users/{user_id}', + resource_path='/api/v1/admin/users/{user_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/agent_telemetry_api.py b/src/otari/_client/api/agent_telemetry_api.py index a907a48..810142f 100644 --- a/src/otari/_client/api/agent_telemetry_api.py +++ b/src/otari/_client/api/agent_telemetry_api.py @@ -44,7 +44,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def agent_telemetry_series_v1_agent_telemetry_series_get( + def agent_telemetry_series_api_v1_agent_telemetry_series_get( self, group_by: Annotated[StrictStr, Field(description="Dimension to split the series by")], start_date: Annotated[Optional[datetime], Field(description="Return rows with timestamp >= start_date (ISO 8601 or Unix epoch seconds)")] = None, @@ -68,7 +68,7 @@ def agent_telemetry_series_v1_agent_telemetry_series_get( ) -> AgentTelemetryGroupedSeries: """Agent Telemetry Series - Row volume over time, split by user or API key (standalone). Mirrors `/v1/usage/series`: same window bounds and bucket-grid cap, the top groups as their own series with the remainder folded into a reconciling ``other``, and sparse points (populated cells only). Counts rows, not spend, so it charts telemetry volume rather than cost. Master-key only. + Row volume over time, split by user or API key (standalone). Mirrors `/api/v1/usage/series`: same window bounds and bucket-grid cap, the top groups as their own series with the remainder folded into a reconciling ``other``, and sparse points (populated cells only). Counts rows, not spend, so it charts telemetry volume rather than cost. Master-key only. :param group_by: Dimension to split the series by (required) :type group_by: str @@ -106,7 +106,7 @@ def agent_telemetry_series_v1_agent_telemetry_series_get( :return: Returns the result object. """ # noqa: E501 - _param = self._agent_telemetry_series_v1_agent_telemetry_series_get_serialize( + _param = self._agent_telemetry_series_api_v1_agent_telemetry_series_get_serialize( group_by=group_by, start_date=start_date, end_date=end_date, @@ -136,7 +136,7 @@ def agent_telemetry_series_v1_agent_telemetry_series_get( @validate_call - def agent_telemetry_series_v1_agent_telemetry_series_get_with_http_info( + def agent_telemetry_series_api_v1_agent_telemetry_series_get_with_http_info( self, group_by: Annotated[StrictStr, Field(description="Dimension to split the series by")], start_date: Annotated[Optional[datetime], Field(description="Return rows with timestamp >= start_date (ISO 8601 or Unix epoch seconds)")] = None, @@ -160,7 +160,7 @@ def agent_telemetry_series_v1_agent_telemetry_series_get_with_http_info( ) -> ApiResponse[AgentTelemetryGroupedSeries]: """Agent Telemetry Series - Row volume over time, split by user or API key (standalone). Mirrors `/v1/usage/series`: same window bounds and bucket-grid cap, the top groups as their own series with the remainder folded into a reconciling ``other``, and sparse points (populated cells only). Counts rows, not spend, so it charts telemetry volume rather than cost. Master-key only. + Row volume over time, split by user or API key (standalone). Mirrors `/api/v1/usage/series`: same window bounds and bucket-grid cap, the top groups as their own series with the remainder folded into a reconciling ``other``, and sparse points (populated cells only). Counts rows, not spend, so it charts telemetry volume rather than cost. Master-key only. :param group_by: Dimension to split the series by (required) :type group_by: str @@ -198,7 +198,7 @@ def agent_telemetry_series_v1_agent_telemetry_series_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._agent_telemetry_series_v1_agent_telemetry_series_get_serialize( + _param = self._agent_telemetry_series_api_v1_agent_telemetry_series_get_serialize( group_by=group_by, start_date=start_date, end_date=end_date, @@ -228,7 +228,7 @@ def agent_telemetry_series_v1_agent_telemetry_series_get_with_http_info( @validate_call - def agent_telemetry_series_v1_agent_telemetry_series_get_without_preload_content( + def agent_telemetry_series_api_v1_agent_telemetry_series_get_without_preload_content( self, group_by: Annotated[StrictStr, Field(description="Dimension to split the series by")], start_date: Annotated[Optional[datetime], Field(description="Return rows with timestamp >= start_date (ISO 8601 or Unix epoch seconds)")] = None, @@ -252,7 +252,7 @@ def agent_telemetry_series_v1_agent_telemetry_series_get_without_preload_content ) -> RESTResponseType: """Agent Telemetry Series - Row volume over time, split by user or API key (standalone). Mirrors `/v1/usage/series`: same window bounds and bucket-grid cap, the top groups as their own series with the remainder folded into a reconciling ``other``, and sparse points (populated cells only). Counts rows, not spend, so it charts telemetry volume rather than cost. Master-key only. + Row volume over time, split by user or API key (standalone). Mirrors `/api/v1/usage/series`: same window bounds and bucket-grid cap, the top groups as their own series with the remainder folded into a reconciling ``other``, and sparse points (populated cells only). Counts rows, not spend, so it charts telemetry volume rather than cost. Master-key only. :param group_by: Dimension to split the series by (required) :type group_by: str @@ -290,7 +290,7 @@ def agent_telemetry_series_v1_agent_telemetry_series_get_without_preload_content :return: Returns the result object. """ # noqa: E501 - _param = self._agent_telemetry_series_v1_agent_telemetry_series_get_serialize( + _param = self._agent_telemetry_series_api_v1_agent_telemetry_series_get_serialize( group_by=group_by, start_date=start_date, end_date=end_date, @@ -315,7 +315,7 @@ def agent_telemetry_series_v1_agent_telemetry_series_get_without_preload_content return response_data.response - def _agent_telemetry_series_v1_agent_telemetry_series_get_serialize( + def _agent_telemetry_series_api_v1_agent_telemetry_series_get_serialize( self, group_by, start_date, @@ -416,7 +416,7 @@ def _agent_telemetry_series_v1_agent_telemetry_series_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/agent-telemetry/series', + resource_path='/api/v1/agent-telemetry/series', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -433,13 +433,13 @@ def _agent_telemetry_series_v1_agent_telemetry_series_get_serialize( @validate_call - def agent_telemetry_summary_v1_agent_telemetry_summary_get( + def agent_telemetry_summary_api_v1_agent_telemetry_summary_get( self, start_date: Annotated[Optional[datetime], Field(description="Return rows with timestamp >= start_date (ISO 8601 or Unix epoch seconds)")] = None, end_date: Annotated[Optional[datetime], Field(description="Return rows with timestamp < end_date (ISO 8601 or Unix epoch seconds)")] = None, user_id: Annotated[Optional[Annotated[List[StrictStr], Field(max_length=50)]], Field(description="Filter to one or more users; repeatable (user_id=a&user_id=b). Several values match any of them. At most 50 per call.")] = None, api_key_id: Annotated[Optional[Annotated[List[StrictStr], Field(max_length=50)]], Field(description="Filter to one or more API key ids; repeatable (api_key_id=a&api_key_id=b). Several values match any of them. At most 50 per call.")] = None, - session_label: Annotated[Optional[StrictStr], Field(description="Filter to a single agent session. Matches agent_telemetry.session_label and, on the usage side of the join, the usage_logs.source_label that /v1/usage/summary filters on")] = None, + session_label: Annotated[Optional[StrictStr], Field(description="Filter to a single agent session. Matches agent_telemetry.session_label and, on the usage side of the join, the usage_logs.source_label that /api/v1/usage/summary filters on")] = None, bucket: Annotated[Optional[StrictStr], Field(description="Time-series granularity: 'hour' or 'day'")] = None, _request_timeout: Union[ None, @@ -456,7 +456,7 @@ def agent_telemetry_summary_v1_agent_telemetry_summary_get( ) -> AgentTelemetrySummary: """Agent Telemetry Summary - What the coding agent produced in a window, and what it cost (standalone). Range-bounded like `/v1/usage/summary` (default last 30 days, hard-capped), so the aggregates stay served by the timestamp index. Returns the outcome totals (commits, pull requests, lines changed, active time), the behavioral counts already captured from the logs signal (tool calls and their mix, tool accept/reject, turns, API errors), the recorded spend over the same scope, and the derived per-unit measures: cost per commit / pull request / line, spend per active hour, acceptance rate, turns per session, and error rate. Each measure is null rather than an error when its denominator is zero. Filterable by user, API key, and `session_label`, so cost per outcome can be read for one agent session as well as for a whole window. The spend side is every usage row in scope, not only the agent's: unfiltered, that includes traffic from clients that never reported telemetry, so a per-outcome measure read over a whole deployment answers \"what did this deployment spend per commit\", not \"what did the agent spend per commit\". Filter by user, API key, or session to divide only the matching spend. Outcome metrics are stored exactly as the agent reported them, so a cumulative counter is converted to a window increment here, at read time, diffed per series generation: a re-exported total adds nothing, and a counter reset never reads as negative work. Master-key only. + What the coding agent produced in a window, and what it cost (standalone). Range-bounded like `/api/v1/usage/summary` (default last 30 days, hard-capped), so the aggregates stay served by the timestamp index. Returns the outcome totals (commits, pull requests, lines changed, active time), the behavioral counts already captured from the logs signal (tool calls and their mix, tool accept/reject, turns, API errors), the recorded spend over the same scope, and the derived per-unit measures: cost per commit / pull request / line, spend per active hour, acceptance rate, turns per session, and error rate. Each measure is null rather than an error when its denominator is zero. Filterable by user, API key, and `session_label`, so cost per outcome can be read for one agent session as well as for a whole window. The spend side is every usage row in scope, not only the agent's: unfiltered, that includes traffic from clients that never reported telemetry, so a per-outcome measure read over a whole deployment answers \"what did this deployment spend per commit\", not \"what did the agent spend per commit\". Filter by user, API key, or session to divide only the matching spend. Outcome metrics are stored exactly as the agent reported them, so a cumulative counter is converted to a window increment here, at read time, diffed per series generation: a re-exported total adds nothing, and a counter reset never reads as negative work. Master-key only. :param start_date: Return rows with timestamp >= start_date (ISO 8601 or Unix epoch seconds) :type start_date: datetime @@ -466,7 +466,7 @@ def agent_telemetry_summary_v1_agent_telemetry_summary_get( :type user_id: List[str] :param api_key_id: Filter to one or more API key ids; repeatable (api_key_id=a&api_key_id=b). Several values match any of them. At most 50 per call. :type api_key_id: List[str] - :param session_label: Filter to a single agent session. Matches agent_telemetry.session_label and, on the usage side of the join, the usage_logs.source_label that /v1/usage/summary filters on + :param session_label: Filter to a single agent session. Matches agent_telemetry.session_label and, on the usage side of the join, the usage_logs.source_label that /api/v1/usage/summary filters on :type session_label: str :param bucket: Time-series granularity: 'hour' or 'day' :type bucket: str @@ -492,7 +492,7 @@ def agent_telemetry_summary_v1_agent_telemetry_summary_get( :return: Returns the result object. """ # noqa: E501 - _param = self._agent_telemetry_summary_v1_agent_telemetry_summary_get_serialize( + _param = self._agent_telemetry_summary_api_v1_agent_telemetry_summary_get_serialize( start_date=start_date, end_date=end_date, user_id=user_id, @@ -521,13 +521,13 @@ def agent_telemetry_summary_v1_agent_telemetry_summary_get( @validate_call - def agent_telemetry_summary_v1_agent_telemetry_summary_get_with_http_info( + def agent_telemetry_summary_api_v1_agent_telemetry_summary_get_with_http_info( self, start_date: Annotated[Optional[datetime], Field(description="Return rows with timestamp >= start_date (ISO 8601 or Unix epoch seconds)")] = None, end_date: Annotated[Optional[datetime], Field(description="Return rows with timestamp < end_date (ISO 8601 or Unix epoch seconds)")] = None, user_id: Annotated[Optional[Annotated[List[StrictStr], Field(max_length=50)]], Field(description="Filter to one or more users; repeatable (user_id=a&user_id=b). Several values match any of them. At most 50 per call.")] = None, api_key_id: Annotated[Optional[Annotated[List[StrictStr], Field(max_length=50)]], Field(description="Filter to one or more API key ids; repeatable (api_key_id=a&api_key_id=b). Several values match any of them. At most 50 per call.")] = None, - session_label: Annotated[Optional[StrictStr], Field(description="Filter to a single agent session. Matches agent_telemetry.session_label and, on the usage side of the join, the usage_logs.source_label that /v1/usage/summary filters on")] = None, + session_label: Annotated[Optional[StrictStr], Field(description="Filter to a single agent session. Matches agent_telemetry.session_label and, on the usage side of the join, the usage_logs.source_label that /api/v1/usage/summary filters on")] = None, bucket: Annotated[Optional[StrictStr], Field(description="Time-series granularity: 'hour' or 'day'")] = None, _request_timeout: Union[ None, @@ -544,7 +544,7 @@ def agent_telemetry_summary_v1_agent_telemetry_summary_get_with_http_info( ) -> ApiResponse[AgentTelemetrySummary]: """Agent Telemetry Summary - What the coding agent produced in a window, and what it cost (standalone). Range-bounded like `/v1/usage/summary` (default last 30 days, hard-capped), so the aggregates stay served by the timestamp index. Returns the outcome totals (commits, pull requests, lines changed, active time), the behavioral counts already captured from the logs signal (tool calls and their mix, tool accept/reject, turns, API errors), the recorded spend over the same scope, and the derived per-unit measures: cost per commit / pull request / line, spend per active hour, acceptance rate, turns per session, and error rate. Each measure is null rather than an error when its denominator is zero. Filterable by user, API key, and `session_label`, so cost per outcome can be read for one agent session as well as for a whole window. The spend side is every usage row in scope, not only the agent's: unfiltered, that includes traffic from clients that never reported telemetry, so a per-outcome measure read over a whole deployment answers \"what did this deployment spend per commit\", not \"what did the agent spend per commit\". Filter by user, API key, or session to divide only the matching spend. Outcome metrics are stored exactly as the agent reported them, so a cumulative counter is converted to a window increment here, at read time, diffed per series generation: a re-exported total adds nothing, and a counter reset never reads as negative work. Master-key only. + What the coding agent produced in a window, and what it cost (standalone). Range-bounded like `/api/v1/usage/summary` (default last 30 days, hard-capped), so the aggregates stay served by the timestamp index. Returns the outcome totals (commits, pull requests, lines changed, active time), the behavioral counts already captured from the logs signal (tool calls and their mix, tool accept/reject, turns, API errors), the recorded spend over the same scope, and the derived per-unit measures: cost per commit / pull request / line, spend per active hour, acceptance rate, turns per session, and error rate. Each measure is null rather than an error when its denominator is zero. Filterable by user, API key, and `session_label`, so cost per outcome can be read for one agent session as well as for a whole window. The spend side is every usage row in scope, not only the agent's: unfiltered, that includes traffic from clients that never reported telemetry, so a per-outcome measure read over a whole deployment answers \"what did this deployment spend per commit\", not \"what did the agent spend per commit\". Filter by user, API key, or session to divide only the matching spend. Outcome metrics are stored exactly as the agent reported them, so a cumulative counter is converted to a window increment here, at read time, diffed per series generation: a re-exported total adds nothing, and a counter reset never reads as negative work. Master-key only. :param start_date: Return rows with timestamp >= start_date (ISO 8601 or Unix epoch seconds) :type start_date: datetime @@ -554,7 +554,7 @@ def agent_telemetry_summary_v1_agent_telemetry_summary_get_with_http_info( :type user_id: List[str] :param api_key_id: Filter to one or more API key ids; repeatable (api_key_id=a&api_key_id=b). Several values match any of them. At most 50 per call. :type api_key_id: List[str] - :param session_label: Filter to a single agent session. Matches agent_telemetry.session_label and, on the usage side of the join, the usage_logs.source_label that /v1/usage/summary filters on + :param session_label: Filter to a single agent session. Matches agent_telemetry.session_label and, on the usage side of the join, the usage_logs.source_label that /api/v1/usage/summary filters on :type session_label: str :param bucket: Time-series granularity: 'hour' or 'day' :type bucket: str @@ -580,7 +580,7 @@ def agent_telemetry_summary_v1_agent_telemetry_summary_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._agent_telemetry_summary_v1_agent_telemetry_summary_get_serialize( + _param = self._agent_telemetry_summary_api_v1_agent_telemetry_summary_get_serialize( start_date=start_date, end_date=end_date, user_id=user_id, @@ -609,13 +609,13 @@ def agent_telemetry_summary_v1_agent_telemetry_summary_get_with_http_info( @validate_call - def agent_telemetry_summary_v1_agent_telemetry_summary_get_without_preload_content( + def agent_telemetry_summary_api_v1_agent_telemetry_summary_get_without_preload_content( self, start_date: Annotated[Optional[datetime], Field(description="Return rows with timestamp >= start_date (ISO 8601 or Unix epoch seconds)")] = None, end_date: Annotated[Optional[datetime], Field(description="Return rows with timestamp < end_date (ISO 8601 or Unix epoch seconds)")] = None, user_id: Annotated[Optional[Annotated[List[StrictStr], Field(max_length=50)]], Field(description="Filter to one or more users; repeatable (user_id=a&user_id=b). Several values match any of them. At most 50 per call.")] = None, api_key_id: Annotated[Optional[Annotated[List[StrictStr], Field(max_length=50)]], Field(description="Filter to one or more API key ids; repeatable (api_key_id=a&api_key_id=b). Several values match any of them. At most 50 per call.")] = None, - session_label: Annotated[Optional[StrictStr], Field(description="Filter to a single agent session. Matches agent_telemetry.session_label and, on the usage side of the join, the usage_logs.source_label that /v1/usage/summary filters on")] = None, + session_label: Annotated[Optional[StrictStr], Field(description="Filter to a single agent session. Matches agent_telemetry.session_label and, on the usage side of the join, the usage_logs.source_label that /api/v1/usage/summary filters on")] = None, bucket: Annotated[Optional[StrictStr], Field(description="Time-series granularity: 'hour' or 'day'")] = None, _request_timeout: Union[ None, @@ -632,7 +632,7 @@ def agent_telemetry_summary_v1_agent_telemetry_summary_get_without_preload_conte ) -> RESTResponseType: """Agent Telemetry Summary - What the coding agent produced in a window, and what it cost (standalone). Range-bounded like `/v1/usage/summary` (default last 30 days, hard-capped), so the aggregates stay served by the timestamp index. Returns the outcome totals (commits, pull requests, lines changed, active time), the behavioral counts already captured from the logs signal (tool calls and their mix, tool accept/reject, turns, API errors), the recorded spend over the same scope, and the derived per-unit measures: cost per commit / pull request / line, spend per active hour, acceptance rate, turns per session, and error rate. Each measure is null rather than an error when its denominator is zero. Filterable by user, API key, and `session_label`, so cost per outcome can be read for one agent session as well as for a whole window. The spend side is every usage row in scope, not only the agent's: unfiltered, that includes traffic from clients that never reported telemetry, so a per-outcome measure read over a whole deployment answers \"what did this deployment spend per commit\", not \"what did the agent spend per commit\". Filter by user, API key, or session to divide only the matching spend. Outcome metrics are stored exactly as the agent reported them, so a cumulative counter is converted to a window increment here, at read time, diffed per series generation: a re-exported total adds nothing, and a counter reset never reads as negative work. Master-key only. + What the coding agent produced in a window, and what it cost (standalone). Range-bounded like `/api/v1/usage/summary` (default last 30 days, hard-capped), so the aggregates stay served by the timestamp index. Returns the outcome totals (commits, pull requests, lines changed, active time), the behavioral counts already captured from the logs signal (tool calls and their mix, tool accept/reject, turns, API errors), the recorded spend over the same scope, and the derived per-unit measures: cost per commit / pull request / line, spend per active hour, acceptance rate, turns per session, and error rate. Each measure is null rather than an error when its denominator is zero. Filterable by user, API key, and `session_label`, so cost per outcome can be read for one agent session as well as for a whole window. The spend side is every usage row in scope, not only the agent's: unfiltered, that includes traffic from clients that never reported telemetry, so a per-outcome measure read over a whole deployment answers \"what did this deployment spend per commit\", not \"what did the agent spend per commit\". Filter by user, API key, or session to divide only the matching spend. Outcome metrics are stored exactly as the agent reported them, so a cumulative counter is converted to a window increment here, at read time, diffed per series generation: a re-exported total adds nothing, and a counter reset never reads as negative work. Master-key only. :param start_date: Return rows with timestamp >= start_date (ISO 8601 or Unix epoch seconds) :type start_date: datetime @@ -642,7 +642,7 @@ def agent_telemetry_summary_v1_agent_telemetry_summary_get_without_preload_conte :type user_id: List[str] :param api_key_id: Filter to one or more API key ids; repeatable (api_key_id=a&api_key_id=b). Several values match any of them. At most 50 per call. :type api_key_id: List[str] - :param session_label: Filter to a single agent session. Matches agent_telemetry.session_label and, on the usage side of the join, the usage_logs.source_label that /v1/usage/summary filters on + :param session_label: Filter to a single agent session. Matches agent_telemetry.session_label and, on the usage side of the join, the usage_logs.source_label that /api/v1/usage/summary filters on :type session_label: str :param bucket: Time-series granularity: 'hour' or 'day' :type bucket: str @@ -668,7 +668,7 @@ def agent_telemetry_summary_v1_agent_telemetry_summary_get_without_preload_conte :return: Returns the result object. """ # noqa: E501 - _param = self._agent_telemetry_summary_v1_agent_telemetry_summary_get_serialize( + _param = self._agent_telemetry_summary_api_v1_agent_telemetry_summary_get_serialize( start_date=start_date, end_date=end_date, user_id=user_id, @@ -692,7 +692,7 @@ def agent_telemetry_summary_v1_agent_telemetry_summary_get_without_preload_conte return response_data.response - def _agent_telemetry_summary_v1_agent_telemetry_summary_get_serialize( + def _agent_telemetry_summary_api_v1_agent_telemetry_summary_get_serialize( self, start_date, end_date, @@ -788,7 +788,7 @@ def _agent_telemetry_summary_v1_agent_telemetry_summary_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/agent-telemetry/summary', + resource_path='/api/v1/agent-telemetry/summary', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -805,7 +805,7 @@ def _agent_telemetry_summary_v1_agent_telemetry_summary_get_serialize( @validate_call - def count_agent_telemetry_v1_agent_telemetry_count_get( + def count_agent_telemetry_api_v1_agent_telemetry_count_get( self, start_date: Annotated[Optional[datetime], Field(description="Return rows with timestamp >= start_date (ISO 8601 or Unix epoch seconds)")] = None, end_date: Annotated[Optional[datetime], Field(description="Return rows with timestamp < end_date (ISO 8601 or Unix epoch seconds)")] = None, @@ -861,7 +861,7 @@ def count_agent_telemetry_v1_agent_telemetry_count_get( :return: Returns the result object. """ # noqa: E501 - _param = self._count_agent_telemetry_v1_agent_telemetry_count_get_serialize( + _param = self._count_agent_telemetry_api_v1_agent_telemetry_count_get_serialize( start_date=start_date, end_date=end_date, user_id=user_id, @@ -889,7 +889,7 @@ def count_agent_telemetry_v1_agent_telemetry_count_get( @validate_call - def count_agent_telemetry_v1_agent_telemetry_count_get_with_http_info( + def count_agent_telemetry_api_v1_agent_telemetry_count_get_with_http_info( self, start_date: Annotated[Optional[datetime], Field(description="Return rows with timestamp >= start_date (ISO 8601 or Unix epoch seconds)")] = None, end_date: Annotated[Optional[datetime], Field(description="Return rows with timestamp < end_date (ISO 8601 or Unix epoch seconds)")] = None, @@ -945,7 +945,7 @@ def count_agent_telemetry_v1_agent_telemetry_count_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._count_agent_telemetry_v1_agent_telemetry_count_get_serialize( + _param = self._count_agent_telemetry_api_v1_agent_telemetry_count_get_serialize( start_date=start_date, end_date=end_date, user_id=user_id, @@ -973,7 +973,7 @@ def count_agent_telemetry_v1_agent_telemetry_count_get_with_http_info( @validate_call - def count_agent_telemetry_v1_agent_telemetry_count_get_without_preload_content( + def count_agent_telemetry_api_v1_agent_telemetry_count_get_without_preload_content( self, start_date: Annotated[Optional[datetime], Field(description="Return rows with timestamp >= start_date (ISO 8601 or Unix epoch seconds)")] = None, end_date: Annotated[Optional[datetime], Field(description="Return rows with timestamp < end_date (ISO 8601 or Unix epoch seconds)")] = None, @@ -1029,7 +1029,7 @@ def count_agent_telemetry_v1_agent_telemetry_count_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._count_agent_telemetry_v1_agent_telemetry_count_get_serialize( + _param = self._count_agent_telemetry_api_v1_agent_telemetry_count_get_serialize( start_date=start_date, end_date=end_date, user_id=user_id, @@ -1052,7 +1052,7 @@ def count_agent_telemetry_v1_agent_telemetry_count_get_without_preload_content( return response_data.response - def _count_agent_telemetry_v1_agent_telemetry_count_get_serialize( + def _count_agent_telemetry_api_v1_agent_telemetry_count_get_serialize( self, start_date, end_date, @@ -1143,7 +1143,7 @@ def _count_agent_telemetry_v1_agent_telemetry_count_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/agent-telemetry/count', + resource_path='/api/v1/agent-telemetry/count', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1160,7 +1160,7 @@ def _count_agent_telemetry_v1_agent_telemetry_count_get_serialize( @validate_call - def delete_agent_telemetry_rows_v1_agent_telemetry_delete( + def delete_agent_telemetry_rows_api_v1_agent_telemetry_delete( self, agent_telemetry_delete_request: AgentTelemetryDeleteRequest, _request_timeout: Union[ @@ -1204,7 +1204,7 @@ def delete_agent_telemetry_rows_v1_agent_telemetry_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_agent_telemetry_rows_v1_agent_telemetry_delete_serialize( + _param = self._delete_agent_telemetry_rows_api_v1_agent_telemetry_delete_serialize( agent_telemetry_delete_request=agent_telemetry_delete_request, _request_auth=_request_auth, _content_type=_content_type, @@ -1228,7 +1228,7 @@ def delete_agent_telemetry_rows_v1_agent_telemetry_delete( @validate_call - def delete_agent_telemetry_rows_v1_agent_telemetry_delete_with_http_info( + def delete_agent_telemetry_rows_api_v1_agent_telemetry_delete_with_http_info( self, agent_telemetry_delete_request: AgentTelemetryDeleteRequest, _request_timeout: Union[ @@ -1272,7 +1272,7 @@ def delete_agent_telemetry_rows_v1_agent_telemetry_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_agent_telemetry_rows_v1_agent_telemetry_delete_serialize( + _param = self._delete_agent_telemetry_rows_api_v1_agent_telemetry_delete_serialize( agent_telemetry_delete_request=agent_telemetry_delete_request, _request_auth=_request_auth, _content_type=_content_type, @@ -1296,7 +1296,7 @@ def delete_agent_telemetry_rows_v1_agent_telemetry_delete_with_http_info( @validate_call - def delete_agent_telemetry_rows_v1_agent_telemetry_delete_without_preload_content( + def delete_agent_telemetry_rows_api_v1_agent_telemetry_delete_without_preload_content( self, agent_telemetry_delete_request: AgentTelemetryDeleteRequest, _request_timeout: Union[ @@ -1340,7 +1340,7 @@ def delete_agent_telemetry_rows_v1_agent_telemetry_delete_without_preload_conten :return: Returns the result object. """ # noqa: E501 - _param = self._delete_agent_telemetry_rows_v1_agent_telemetry_delete_serialize( + _param = self._delete_agent_telemetry_rows_api_v1_agent_telemetry_delete_serialize( agent_telemetry_delete_request=agent_telemetry_delete_request, _request_auth=_request_auth, _content_type=_content_type, @@ -1359,7 +1359,7 @@ def delete_agent_telemetry_rows_v1_agent_telemetry_delete_without_preload_conten return response_data.response - def _delete_agent_telemetry_rows_v1_agent_telemetry_delete_serialize( + def _delete_agent_telemetry_rows_api_v1_agent_telemetry_delete_serialize( self, agent_telemetry_delete_request, _request_auth, @@ -1421,7 +1421,7 @@ def _delete_agent_telemetry_rows_v1_agent_telemetry_delete_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/v1/agent-telemetry', + resource_path='/api/v1/agent-telemetry', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/aliases_api.py b/src/otari/_client/api/aliases_api.py index 837d003..83a5ad2 100644 --- a/src/otari/_client/api/aliases_api.py +++ b/src/otari/_client/api/aliases_api.py @@ -41,7 +41,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def delete_alias_v1_aliases_name_delete( + def delete_alias_api_v1_aliases_name_delete( self, name: StrictStr, user_id: Annotated[Optional[StrictStr], Field(description="Delete the alias scoped to this user. Omit to delete the workspace-wide alias of that name.")] = None, @@ -91,7 +91,7 @@ def delete_alias_v1_aliases_name_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_alias_v1_aliases_name_delete_serialize( + _param = self._delete_alias_api_v1_aliases_name_delete_serialize( name=name, user_id=user_id, workspace_id=workspace_id, @@ -117,7 +117,7 @@ def delete_alias_v1_aliases_name_delete( @validate_call - def delete_alias_v1_aliases_name_delete_with_http_info( + def delete_alias_api_v1_aliases_name_delete_with_http_info( self, name: StrictStr, user_id: Annotated[Optional[StrictStr], Field(description="Delete the alias scoped to this user. Omit to delete the workspace-wide alias of that name.")] = None, @@ -167,7 +167,7 @@ def delete_alias_v1_aliases_name_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_alias_v1_aliases_name_delete_serialize( + _param = self._delete_alias_api_v1_aliases_name_delete_serialize( name=name, user_id=user_id, workspace_id=workspace_id, @@ -193,7 +193,7 @@ def delete_alias_v1_aliases_name_delete_with_http_info( @validate_call - def delete_alias_v1_aliases_name_delete_without_preload_content( + def delete_alias_api_v1_aliases_name_delete_without_preload_content( self, name: StrictStr, user_id: Annotated[Optional[StrictStr], Field(description="Delete the alias scoped to this user. Omit to delete the workspace-wide alias of that name.")] = None, @@ -243,7 +243,7 @@ def delete_alias_v1_aliases_name_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_alias_v1_aliases_name_delete_serialize( + _param = self._delete_alias_api_v1_aliases_name_delete_serialize( name=name, user_id=user_id, workspace_id=workspace_id, @@ -264,7 +264,7 @@ def delete_alias_v1_aliases_name_delete_without_preload_content( return response_data.response - def _delete_alias_v1_aliases_name_delete_serialize( + def _delete_alias_api_v1_aliases_name_delete_serialize( self, name, user_id, @@ -323,7 +323,7 @@ def _delete_alias_v1_aliases_name_delete_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/v1/aliases/{name}', + resource_path='/api/v1/aliases/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -340,7 +340,7 @@ def _delete_alias_v1_aliases_name_delete_serialize( @validate_call - def delete_organization_alias_v1_organizations_me_aliases_name_delete( + def delete_organization_alias_api_v1_organizations_me_aliases_name_delete( self, name: StrictStr, workspace_id: Annotated[Optional[UUID], Field(description="Delete the alias in this workspace of the caller's organization.")] = None, @@ -387,7 +387,7 @@ def delete_organization_alias_v1_organizations_me_aliases_name_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_organization_alias_v1_organizations_me_aliases_name_delete_serialize( + _param = self._delete_organization_alias_api_v1_organizations_me_aliases_name_delete_serialize( name=name, workspace_id=workspace_id, _request_auth=_request_auth, @@ -412,7 +412,7 @@ def delete_organization_alias_v1_organizations_me_aliases_name_delete( @validate_call - def delete_organization_alias_v1_organizations_me_aliases_name_delete_with_http_info( + def delete_organization_alias_api_v1_organizations_me_aliases_name_delete_with_http_info( self, name: StrictStr, workspace_id: Annotated[Optional[UUID], Field(description="Delete the alias in this workspace of the caller's organization.")] = None, @@ -459,7 +459,7 @@ def delete_organization_alias_v1_organizations_me_aliases_name_delete_with_http_ :return: Returns the result object. """ # noqa: E501 - _param = self._delete_organization_alias_v1_organizations_me_aliases_name_delete_serialize( + _param = self._delete_organization_alias_api_v1_organizations_me_aliases_name_delete_serialize( name=name, workspace_id=workspace_id, _request_auth=_request_auth, @@ -484,7 +484,7 @@ def delete_organization_alias_v1_organizations_me_aliases_name_delete_with_http_ @validate_call - def delete_organization_alias_v1_organizations_me_aliases_name_delete_without_preload_content( + def delete_organization_alias_api_v1_organizations_me_aliases_name_delete_without_preload_content( self, name: StrictStr, workspace_id: Annotated[Optional[UUID], Field(description="Delete the alias in this workspace of the caller's organization.")] = None, @@ -531,7 +531,7 @@ def delete_organization_alias_v1_organizations_me_aliases_name_delete_without_pr :return: Returns the result object. """ # noqa: E501 - _param = self._delete_organization_alias_v1_organizations_me_aliases_name_delete_serialize( + _param = self._delete_organization_alias_api_v1_organizations_me_aliases_name_delete_serialize( name=name, workspace_id=workspace_id, _request_auth=_request_auth, @@ -551,7 +551,7 @@ def delete_organization_alias_v1_organizations_me_aliases_name_delete_without_pr return response_data.response - def _delete_organization_alias_v1_organizations_me_aliases_name_delete_serialize( + def _delete_organization_alias_api_v1_organizations_me_aliases_name_delete_serialize( self, name, workspace_id, @@ -605,7 +605,7 @@ def _delete_organization_alias_v1_organizations_me_aliases_name_delete_serialize return self.api_client.param_serialize( method='DELETE', - resource_path='/v1/organizations/me/aliases/{name}', + resource_path='/api/v1/organizations/me/aliases/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -622,7 +622,7 @@ def _delete_organization_alias_v1_organizations_me_aliases_name_delete_serialize @validate_call - def list_aliases_v1_aliases_get( + def list_aliases_api_v1_aliases_get( self, workspace_id: Annotated[Optional[UUID], Field(description="Only stored entries in this workspace. Config-file entries are always included, being deployment-wide. Omit to list the stored entries of every workspace.")] = None, _request_timeout: Union[ @@ -666,7 +666,7 @@ def list_aliases_v1_aliases_get( :return: Returns the result object. """ # noqa: E501 - _param = self._list_aliases_v1_aliases_get_serialize( + _param = self._list_aliases_api_v1_aliases_get_serialize( workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, @@ -690,7 +690,7 @@ def list_aliases_v1_aliases_get( @validate_call - def list_aliases_v1_aliases_get_with_http_info( + def list_aliases_api_v1_aliases_get_with_http_info( self, workspace_id: Annotated[Optional[UUID], Field(description="Only stored entries in this workspace. Config-file entries are always included, being deployment-wide. Omit to list the stored entries of every workspace.")] = None, _request_timeout: Union[ @@ -734,7 +734,7 @@ def list_aliases_v1_aliases_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_aliases_v1_aliases_get_serialize( + _param = self._list_aliases_api_v1_aliases_get_serialize( workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, @@ -758,7 +758,7 @@ def list_aliases_v1_aliases_get_with_http_info( @validate_call - def list_aliases_v1_aliases_get_without_preload_content( + def list_aliases_api_v1_aliases_get_without_preload_content( self, workspace_id: Annotated[Optional[UUID], Field(description="Only stored entries in this workspace. Config-file entries are always included, being deployment-wide. Omit to list the stored entries of every workspace.")] = None, _request_timeout: Union[ @@ -802,7 +802,7 @@ def list_aliases_v1_aliases_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._list_aliases_v1_aliases_get_serialize( + _param = self._list_aliases_api_v1_aliases_get_serialize( workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, @@ -821,7 +821,7 @@ def list_aliases_v1_aliases_get_without_preload_content( return response_data.response - def _list_aliases_v1_aliases_get_serialize( + def _list_aliases_api_v1_aliases_get_serialize( self, workspace_id, _request_auth, @@ -872,7 +872,7 @@ def _list_aliases_v1_aliases_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/aliases', + resource_path='/api/v1/aliases', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -889,7 +889,7 @@ def _list_aliases_v1_aliases_get_serialize( @validate_call - def list_visible_aliases_v1_organizations_me_aliases_get( + def list_visible_aliases_api_v1_organizations_me_aliases_get( self, limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Maximum entries to return, stored and config-file together.")] = None, _request_timeout: Union[ @@ -933,7 +933,7 @@ def list_visible_aliases_v1_organizations_me_aliases_get( :return: Returns the result object. """ # noqa: E501 - _param = self._list_visible_aliases_v1_organizations_me_aliases_get_serialize( + _param = self._list_visible_aliases_api_v1_organizations_me_aliases_get_serialize( limit=limit, _request_auth=_request_auth, _content_type=_content_type, @@ -957,7 +957,7 @@ def list_visible_aliases_v1_organizations_me_aliases_get( @validate_call - def list_visible_aliases_v1_organizations_me_aliases_get_with_http_info( + def list_visible_aliases_api_v1_organizations_me_aliases_get_with_http_info( self, limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Maximum entries to return, stored and config-file together.")] = None, _request_timeout: Union[ @@ -1001,7 +1001,7 @@ def list_visible_aliases_v1_organizations_me_aliases_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_visible_aliases_v1_organizations_me_aliases_get_serialize( + _param = self._list_visible_aliases_api_v1_organizations_me_aliases_get_serialize( limit=limit, _request_auth=_request_auth, _content_type=_content_type, @@ -1025,7 +1025,7 @@ def list_visible_aliases_v1_organizations_me_aliases_get_with_http_info( @validate_call - def list_visible_aliases_v1_organizations_me_aliases_get_without_preload_content( + def list_visible_aliases_api_v1_organizations_me_aliases_get_without_preload_content( self, limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Maximum entries to return, stored and config-file together.")] = None, _request_timeout: Union[ @@ -1069,7 +1069,7 @@ def list_visible_aliases_v1_organizations_me_aliases_get_without_preload_content :return: Returns the result object. """ # noqa: E501 - _param = self._list_visible_aliases_v1_organizations_me_aliases_get_serialize( + _param = self._list_visible_aliases_api_v1_organizations_me_aliases_get_serialize( limit=limit, _request_auth=_request_auth, _content_type=_content_type, @@ -1088,7 +1088,7 @@ def list_visible_aliases_v1_organizations_me_aliases_get_without_preload_content return response_data.response - def _list_visible_aliases_v1_organizations_me_aliases_get_serialize( + def _list_visible_aliases_api_v1_organizations_me_aliases_get_serialize( self, limit, _request_auth, @@ -1139,7 +1139,7 @@ def _list_visible_aliases_v1_organizations_me_aliases_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/organizations/me/aliases', + resource_path='/api/v1/organizations/me/aliases', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1156,7 +1156,7 @@ def _list_visible_aliases_v1_organizations_me_aliases_get_serialize( @validate_call - def set_alias_v1_aliases_post( + def set_alias_api_v1_aliases_post( self, alias_request: AliasRequest, _request_timeout: Union[ @@ -1200,7 +1200,7 @@ def set_alias_v1_aliases_post( :return: Returns the result object. """ # noqa: E501 - _param = self._set_alias_v1_aliases_post_serialize( + _param = self._set_alias_api_v1_aliases_post_serialize( alias_request=alias_request, _request_auth=_request_auth, _content_type=_content_type, @@ -1224,7 +1224,7 @@ def set_alias_v1_aliases_post( @validate_call - def set_alias_v1_aliases_post_with_http_info( + def set_alias_api_v1_aliases_post_with_http_info( self, alias_request: AliasRequest, _request_timeout: Union[ @@ -1268,7 +1268,7 @@ def set_alias_v1_aliases_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._set_alias_v1_aliases_post_serialize( + _param = self._set_alias_api_v1_aliases_post_serialize( alias_request=alias_request, _request_auth=_request_auth, _content_type=_content_type, @@ -1292,7 +1292,7 @@ def set_alias_v1_aliases_post_with_http_info( @validate_call - def set_alias_v1_aliases_post_without_preload_content( + def set_alias_api_v1_aliases_post_without_preload_content( self, alias_request: AliasRequest, _request_timeout: Union[ @@ -1336,7 +1336,7 @@ def set_alias_v1_aliases_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._set_alias_v1_aliases_post_serialize( + _param = self._set_alias_api_v1_aliases_post_serialize( alias_request=alias_request, _request_auth=_request_auth, _content_type=_content_type, @@ -1355,7 +1355,7 @@ def set_alias_v1_aliases_post_without_preload_content( return response_data.response - def _set_alias_v1_aliases_post_serialize( + def _set_alias_api_v1_aliases_post_serialize( self, alias_request, _request_auth, @@ -1417,7 +1417,7 @@ def _set_alias_v1_aliases_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/aliases', + resource_path='/api/v1/aliases', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1434,7 +1434,7 @@ def _set_alias_v1_aliases_post_serialize( @validate_call - def set_organization_alias_v1_organizations_me_aliases_post( + def set_organization_alias_api_v1_organizations_me_aliases_post( self, alias_request: AliasRequest, _request_timeout: Union[ @@ -1478,7 +1478,7 @@ def set_organization_alias_v1_organizations_me_aliases_post( :return: Returns the result object. """ # noqa: E501 - _param = self._set_organization_alias_v1_organizations_me_aliases_post_serialize( + _param = self._set_organization_alias_api_v1_organizations_me_aliases_post_serialize( alias_request=alias_request, _request_auth=_request_auth, _content_type=_content_type, @@ -1502,7 +1502,7 @@ def set_organization_alias_v1_organizations_me_aliases_post( @validate_call - def set_organization_alias_v1_organizations_me_aliases_post_with_http_info( + def set_organization_alias_api_v1_organizations_me_aliases_post_with_http_info( self, alias_request: AliasRequest, _request_timeout: Union[ @@ -1546,7 +1546,7 @@ def set_organization_alias_v1_organizations_me_aliases_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._set_organization_alias_v1_organizations_me_aliases_post_serialize( + _param = self._set_organization_alias_api_v1_organizations_me_aliases_post_serialize( alias_request=alias_request, _request_auth=_request_auth, _content_type=_content_type, @@ -1570,7 +1570,7 @@ def set_organization_alias_v1_organizations_me_aliases_post_with_http_info( @validate_call - def set_organization_alias_v1_organizations_me_aliases_post_without_preload_content( + def set_organization_alias_api_v1_organizations_me_aliases_post_without_preload_content( self, alias_request: AliasRequest, _request_timeout: Union[ @@ -1614,7 +1614,7 @@ def set_organization_alias_v1_organizations_me_aliases_post_without_preload_cont :return: Returns the result object. """ # noqa: E501 - _param = self._set_organization_alias_v1_organizations_me_aliases_post_serialize( + _param = self._set_organization_alias_api_v1_organizations_me_aliases_post_serialize( alias_request=alias_request, _request_auth=_request_auth, _content_type=_content_type, @@ -1633,7 +1633,7 @@ def set_organization_alias_v1_organizations_me_aliases_post_without_preload_cont return response_data.response - def _set_organization_alias_v1_organizations_me_aliases_post_serialize( + def _set_organization_alias_api_v1_organizations_me_aliases_post_serialize( self, alias_request, _request_auth, @@ -1695,7 +1695,7 @@ def _set_organization_alias_v1_organizations_me_aliases_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/organizations/me/aliases', + resource_path='/api/v1/organizations/me/aliases', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/audio_api.py b/src/otari/_client/api/audio_api.py index 954591f..8e24aeb 100644 --- a/src/otari/_client/api/audio_api.py +++ b/src/otari/_client/api/audio_api.py @@ -38,7 +38,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def create_speech_v1_audio_speech_post( + def create_speech_api_v1_audio_speech_post( self, audio_speech_request: AudioSpeechRequest, _request_timeout: Union[ @@ -82,7 +82,7 @@ def create_speech_v1_audio_speech_post( :return: Returns the result object. """ # noqa: E501 - _param = self._create_speech_v1_audio_speech_post_serialize( + _param = self._create_speech_api_v1_audio_speech_post_serialize( audio_speech_request=audio_speech_request, _request_auth=_request_auth, _content_type=_content_type, @@ -106,7 +106,7 @@ def create_speech_v1_audio_speech_post( @validate_call - def create_speech_v1_audio_speech_post_with_http_info( + def create_speech_api_v1_audio_speech_post_with_http_info( self, audio_speech_request: AudioSpeechRequest, _request_timeout: Union[ @@ -150,7 +150,7 @@ def create_speech_v1_audio_speech_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_speech_v1_audio_speech_post_serialize( + _param = self._create_speech_api_v1_audio_speech_post_serialize( audio_speech_request=audio_speech_request, _request_auth=_request_auth, _content_type=_content_type, @@ -174,7 +174,7 @@ def create_speech_v1_audio_speech_post_with_http_info( @validate_call - def create_speech_v1_audio_speech_post_without_preload_content( + def create_speech_api_v1_audio_speech_post_without_preload_content( self, audio_speech_request: AudioSpeechRequest, _request_timeout: Union[ @@ -218,7 +218,7 @@ def create_speech_v1_audio_speech_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._create_speech_v1_audio_speech_post_serialize( + _param = self._create_speech_api_v1_audio_speech_post_serialize( audio_speech_request=audio_speech_request, _request_auth=_request_auth, _content_type=_content_type, @@ -237,7 +237,7 @@ def create_speech_v1_audio_speech_post_without_preload_content( return response_data.response - def _create_speech_v1_audio_speech_post_serialize( + def _create_speech_api_v1_audio_speech_post_serialize( self, audio_speech_request, _request_auth, @@ -305,7 +305,7 @@ def _create_speech_v1_audio_speech_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/audio/speech', + resource_path='/api/v1/audio/speech', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -322,7 +322,7 @@ def _create_speech_v1_audio_speech_post_serialize( @validate_call - def create_transcription_v1_audio_transcriptions_post( + def create_transcription_api_v1_audio_transcriptions_post( self, file: StrictStr, model: StrictStr, @@ -384,7 +384,7 @@ def create_transcription_v1_audio_transcriptions_post( :return: Returns the result object. """ # noqa: E501 - _param = self._create_transcription_v1_audio_transcriptions_post_serialize( + _param = self._create_transcription_api_v1_audio_transcriptions_post_serialize( file=file, model=model, language=language, @@ -414,7 +414,7 @@ def create_transcription_v1_audio_transcriptions_post( @validate_call - def create_transcription_v1_audio_transcriptions_post_with_http_info( + def create_transcription_api_v1_audio_transcriptions_post_with_http_info( self, file: StrictStr, model: StrictStr, @@ -476,7 +476,7 @@ def create_transcription_v1_audio_transcriptions_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_transcription_v1_audio_transcriptions_post_serialize( + _param = self._create_transcription_api_v1_audio_transcriptions_post_serialize( file=file, model=model, language=language, @@ -506,7 +506,7 @@ def create_transcription_v1_audio_transcriptions_post_with_http_info( @validate_call - def create_transcription_v1_audio_transcriptions_post_without_preload_content( + def create_transcription_api_v1_audio_transcriptions_post_without_preload_content( self, file: StrictStr, model: StrictStr, @@ -568,7 +568,7 @@ def create_transcription_v1_audio_transcriptions_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._create_transcription_v1_audio_transcriptions_post_serialize( + _param = self._create_transcription_api_v1_audio_transcriptions_post_serialize( file=file, model=model, language=language, @@ -593,7 +593,7 @@ def create_transcription_v1_audio_transcriptions_post_without_preload_content( return response_data.response - def _create_transcription_v1_audio_transcriptions_post_serialize( + def _create_transcription_api_v1_audio_transcriptions_post_serialize( self, file, model, @@ -673,7 +673,7 @@ def _create_transcription_v1_audio_transcriptions_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/audio/transcriptions', + resource_path='/api/v1/audio/transcriptions', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/auth_api.py b/src/otari/_client/api/auth_api.py index 488cb51..acd0ed6 100644 --- a/src/otari/_client/api/auth_api.py +++ b/src/otari/_client/api/auth_api.py @@ -61,7 +61,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def authenticate_passkey_v1_auth_webauthn_authenticate_post( + def authenticate_passkey_api_v1_auth_webauthn_authenticate_post( self, authenticate_passkey_request: AuthenticatePasskeyRequest, _request_timeout: Union[ @@ -105,7 +105,7 @@ def authenticate_passkey_v1_auth_webauthn_authenticate_post( :return: Returns the result object. """ # noqa: E501 - _param = self._authenticate_passkey_v1_auth_webauthn_authenticate_post_serialize( + _param = self._authenticate_passkey_api_v1_auth_webauthn_authenticate_post_serialize( authenticate_passkey_request=authenticate_passkey_request, _request_auth=_request_auth, _content_type=_content_type, @@ -129,7 +129,7 @@ def authenticate_passkey_v1_auth_webauthn_authenticate_post( @validate_call - def authenticate_passkey_v1_auth_webauthn_authenticate_post_with_http_info( + def authenticate_passkey_api_v1_auth_webauthn_authenticate_post_with_http_info( self, authenticate_passkey_request: AuthenticatePasskeyRequest, _request_timeout: Union[ @@ -173,7 +173,7 @@ def authenticate_passkey_v1_auth_webauthn_authenticate_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._authenticate_passkey_v1_auth_webauthn_authenticate_post_serialize( + _param = self._authenticate_passkey_api_v1_auth_webauthn_authenticate_post_serialize( authenticate_passkey_request=authenticate_passkey_request, _request_auth=_request_auth, _content_type=_content_type, @@ -197,7 +197,7 @@ def authenticate_passkey_v1_auth_webauthn_authenticate_post_with_http_info( @validate_call - def authenticate_passkey_v1_auth_webauthn_authenticate_post_without_preload_content( + def authenticate_passkey_api_v1_auth_webauthn_authenticate_post_without_preload_content( self, authenticate_passkey_request: AuthenticatePasskeyRequest, _request_timeout: Union[ @@ -241,7 +241,7 @@ def authenticate_passkey_v1_auth_webauthn_authenticate_post_without_preload_cont :return: Returns the result object. """ # noqa: E501 - _param = self._authenticate_passkey_v1_auth_webauthn_authenticate_post_serialize( + _param = self._authenticate_passkey_api_v1_auth_webauthn_authenticate_post_serialize( authenticate_passkey_request=authenticate_passkey_request, _request_auth=_request_auth, _content_type=_content_type, @@ -260,7 +260,7 @@ def authenticate_passkey_v1_auth_webauthn_authenticate_post_without_preload_cont return response_data.response - def _authenticate_passkey_v1_auth_webauthn_authenticate_post_serialize( + def _authenticate_passkey_api_v1_auth_webauthn_authenticate_post_serialize( self, authenticate_passkey_request, _request_auth, @@ -320,7 +320,7 @@ def _authenticate_passkey_v1_auth_webauthn_authenticate_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/auth/webauthn/authenticate', + resource_path='/api/v1/auth/webauthn/authenticate', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -337,7 +337,7 @@ def _authenticate_passkey_v1_auth_webauthn_authenticate_post_serialize( @validate_call - def authentication_options_v1_auth_webauthn_authenticate_options_post( + def authentication_options_api_v1_auth_webauthn_authenticate_options_post( self, _request_timeout: Union[ None, @@ -378,7 +378,7 @@ def authentication_options_v1_auth_webauthn_authenticate_options_post( :return: Returns the result object. """ # noqa: E501 - _param = self._authentication_options_v1_auth_webauthn_authenticate_options_post_serialize( + _param = self._authentication_options_api_v1_auth_webauthn_authenticate_options_post_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -400,7 +400,7 @@ def authentication_options_v1_auth_webauthn_authenticate_options_post( @validate_call - def authentication_options_v1_auth_webauthn_authenticate_options_post_with_http_info( + def authentication_options_api_v1_auth_webauthn_authenticate_options_post_with_http_info( self, _request_timeout: Union[ None, @@ -441,7 +441,7 @@ def authentication_options_v1_auth_webauthn_authenticate_options_post_with_http_ :return: Returns the result object. """ # noqa: E501 - _param = self._authentication_options_v1_auth_webauthn_authenticate_options_post_serialize( + _param = self._authentication_options_api_v1_auth_webauthn_authenticate_options_post_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -463,7 +463,7 @@ def authentication_options_v1_auth_webauthn_authenticate_options_post_with_http_ @validate_call - def authentication_options_v1_auth_webauthn_authenticate_options_post_without_preload_content( + def authentication_options_api_v1_auth_webauthn_authenticate_options_post_without_preload_content( self, _request_timeout: Union[ None, @@ -504,7 +504,7 @@ def authentication_options_v1_auth_webauthn_authenticate_options_post_without_pr :return: Returns the result object. """ # noqa: E501 - _param = self._authentication_options_v1_auth_webauthn_authenticate_options_post_serialize( + _param = self._authentication_options_api_v1_auth_webauthn_authenticate_options_post_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -521,7 +521,7 @@ def authentication_options_v1_auth_webauthn_authenticate_options_post_without_pr return response_data.response - def _authentication_options_v1_auth_webauthn_authenticate_options_post_serialize( + def _authentication_options_api_v1_auth_webauthn_authenticate_options_post_serialize( self, _request_auth, _content_type, @@ -565,7 +565,7 @@ def _authentication_options_v1_auth_webauthn_authenticate_options_post_serialize return self.api_client.param_serialize( method='POST', - resource_path='/v1/auth/webauthn/authenticate/options', + resource_path='/api/v1/auth/webauthn/authenticate/options', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -582,7 +582,7 @@ def _authentication_options_v1_auth_webauthn_authenticate_options_post_serialize @validate_call - def authorize_v1_auth_oauth_provider_authorize_get( + def authorize_api_v1_auth_oauth_provider_authorize_get( self, provider: Annotated[str, Field(strict=True, description="Which OAuth provider to sign in with.")], _request_timeout: Union[ @@ -626,7 +626,7 @@ def authorize_v1_auth_oauth_provider_authorize_get( :return: Returns the result object. """ # noqa: E501 - _param = self._authorize_v1_auth_oauth_provider_authorize_get_serialize( + _param = self._authorize_api_v1_auth_oauth_provider_authorize_get_serialize( provider=provider, _request_auth=_request_auth, _content_type=_content_type, @@ -650,7 +650,7 @@ def authorize_v1_auth_oauth_provider_authorize_get( @validate_call - def authorize_v1_auth_oauth_provider_authorize_get_with_http_info( + def authorize_api_v1_auth_oauth_provider_authorize_get_with_http_info( self, provider: Annotated[str, Field(strict=True, description="Which OAuth provider to sign in with.")], _request_timeout: Union[ @@ -694,7 +694,7 @@ def authorize_v1_auth_oauth_provider_authorize_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._authorize_v1_auth_oauth_provider_authorize_get_serialize( + _param = self._authorize_api_v1_auth_oauth_provider_authorize_get_serialize( provider=provider, _request_auth=_request_auth, _content_type=_content_type, @@ -718,7 +718,7 @@ def authorize_v1_auth_oauth_provider_authorize_get_with_http_info( @validate_call - def authorize_v1_auth_oauth_provider_authorize_get_without_preload_content( + def authorize_api_v1_auth_oauth_provider_authorize_get_without_preload_content( self, provider: Annotated[str, Field(strict=True, description="Which OAuth provider to sign in with.")], _request_timeout: Union[ @@ -762,7 +762,7 @@ def authorize_v1_auth_oauth_provider_authorize_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._authorize_v1_auth_oauth_provider_authorize_get_serialize( + _param = self._authorize_api_v1_auth_oauth_provider_authorize_get_serialize( provider=provider, _request_auth=_request_auth, _content_type=_content_type, @@ -781,7 +781,7 @@ def authorize_v1_auth_oauth_provider_authorize_get_without_preload_content( return response_data.response - def _authorize_v1_auth_oauth_provider_authorize_get_serialize( + def _authorize_api_v1_auth_oauth_provider_authorize_get_serialize( self, provider, _request_auth, @@ -828,7 +828,7 @@ def _authorize_v1_auth_oauth_provider_authorize_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/auth/oauth/{provider}/authorize', + resource_path='/api/v1/auth/oauth/{provider}/authorize', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -845,7 +845,7 @@ def _authorize_v1_auth_oauth_provider_authorize_get_serialize( @validate_call - def callback_v1_auth_oauth_provider_callback_post( + def callback_api_v1_auth_oauth_provider_callback_post( self, provider: Annotated[str, Field(strict=True, description="Which OAuth provider to sign in with.")], o_auth_callback_request: OAuthCallbackRequest, @@ -892,7 +892,7 @@ def callback_v1_auth_oauth_provider_callback_post( :return: Returns the result object. """ # noqa: E501 - _param = self._callback_v1_auth_oauth_provider_callback_post_serialize( + _param = self._callback_api_v1_auth_oauth_provider_callback_post_serialize( provider=provider, o_auth_callback_request=o_auth_callback_request, _request_auth=_request_auth, @@ -917,7 +917,7 @@ def callback_v1_auth_oauth_provider_callback_post( @validate_call - def callback_v1_auth_oauth_provider_callback_post_with_http_info( + def callback_api_v1_auth_oauth_provider_callback_post_with_http_info( self, provider: Annotated[str, Field(strict=True, description="Which OAuth provider to sign in with.")], o_auth_callback_request: OAuthCallbackRequest, @@ -964,7 +964,7 @@ def callback_v1_auth_oauth_provider_callback_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._callback_v1_auth_oauth_provider_callback_post_serialize( + _param = self._callback_api_v1_auth_oauth_provider_callback_post_serialize( provider=provider, o_auth_callback_request=o_auth_callback_request, _request_auth=_request_auth, @@ -989,7 +989,7 @@ def callback_v1_auth_oauth_provider_callback_post_with_http_info( @validate_call - def callback_v1_auth_oauth_provider_callback_post_without_preload_content( + def callback_api_v1_auth_oauth_provider_callback_post_without_preload_content( self, provider: Annotated[str, Field(strict=True, description="Which OAuth provider to sign in with.")], o_auth_callback_request: OAuthCallbackRequest, @@ -1036,7 +1036,7 @@ def callback_v1_auth_oauth_provider_callback_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._callback_v1_auth_oauth_provider_callback_post_serialize( + _param = self._callback_api_v1_auth_oauth_provider_callback_post_serialize( provider=provider, o_auth_callback_request=o_auth_callback_request, _request_auth=_request_auth, @@ -1056,7 +1056,7 @@ def callback_v1_auth_oauth_provider_callback_post_without_preload_content( return response_data.response - def _callback_v1_auth_oauth_provider_callback_post_serialize( + def _callback_api_v1_auth_oauth_provider_callback_post_serialize( self, provider, o_auth_callback_request, @@ -1119,7 +1119,7 @@ def _callback_v1_auth_oauth_provider_callback_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/auth/oauth/{provider}/callback', + resource_path='/api/v1/auth/oauth/{provider}/callback', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1136,7 +1136,7 @@ def _callback_v1_auth_oauth_provider_callback_post_serialize( @validate_call - def confirm_reset_v1_auth_password_reset_confirm_post( + def confirm_reset_api_v1_auth_password_reset_confirm_post( self, reset_password_request: ResetPasswordRequest, _request_timeout: Union[ @@ -1180,7 +1180,7 @@ def confirm_reset_v1_auth_password_reset_confirm_post( :return: Returns the result object. """ # noqa: E501 - _param = self._confirm_reset_v1_auth_password_reset_confirm_post_serialize( + _param = self._confirm_reset_api_v1_auth_password_reset_confirm_post_serialize( reset_password_request=reset_password_request, _request_auth=_request_auth, _content_type=_content_type, @@ -1204,7 +1204,7 @@ def confirm_reset_v1_auth_password_reset_confirm_post( @validate_call - def confirm_reset_v1_auth_password_reset_confirm_post_with_http_info( + def confirm_reset_api_v1_auth_password_reset_confirm_post_with_http_info( self, reset_password_request: ResetPasswordRequest, _request_timeout: Union[ @@ -1248,7 +1248,7 @@ def confirm_reset_v1_auth_password_reset_confirm_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._confirm_reset_v1_auth_password_reset_confirm_post_serialize( + _param = self._confirm_reset_api_v1_auth_password_reset_confirm_post_serialize( reset_password_request=reset_password_request, _request_auth=_request_auth, _content_type=_content_type, @@ -1272,7 +1272,7 @@ def confirm_reset_v1_auth_password_reset_confirm_post_with_http_info( @validate_call - def confirm_reset_v1_auth_password_reset_confirm_post_without_preload_content( + def confirm_reset_api_v1_auth_password_reset_confirm_post_without_preload_content( self, reset_password_request: ResetPasswordRequest, _request_timeout: Union[ @@ -1316,7 +1316,7 @@ def confirm_reset_v1_auth_password_reset_confirm_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._confirm_reset_v1_auth_password_reset_confirm_post_serialize( + _param = self._confirm_reset_api_v1_auth_password_reset_confirm_post_serialize( reset_password_request=reset_password_request, _request_auth=_request_auth, _content_type=_content_type, @@ -1335,7 +1335,7 @@ def confirm_reset_v1_auth_password_reset_confirm_post_without_preload_content( return response_data.response - def _confirm_reset_v1_auth_password_reset_confirm_post_serialize( + def _confirm_reset_api_v1_auth_password_reset_confirm_post_serialize( self, reset_password_request, _request_auth, @@ -1395,7 +1395,7 @@ def _confirm_reset_v1_auth_password_reset_confirm_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/auth/password/reset/confirm', + resource_path='/api/v1/auth/password/reset/confirm', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1412,7 +1412,7 @@ def _confirm_reset_v1_auth_password_reset_confirm_post_serialize( @validate_call - def create_session_v1_auth_session_post( + def create_session_api_v1_auth_session_post( self, create_session_request: CreateSessionRequest, _request_timeout: Union[ @@ -1430,7 +1430,7 @@ def create_session_v1_auth_session_post( ) -> SessionResponse: """Create Session - Verify a sign-in credential and set the HttpOnly session cookie. The session is bound to the identity that authenticated, so every request it later authenticates resolves a user and that user's active organization rather than only \"a credential was presented once\". The response names both, so a client knows who it is signed in as without a second call. The rate-limit check deliberately runs only after a failed verification, not before it: a pre-verification gate can't know whether *this* attempt would have succeeded, so once an IP has used up its failure quota it would end up blocking that IP's legitimate owner too, not just further attackers. Running after verification also means the throttle bounds how many verdicts an IP gets, not how much work it can cause: a password attempt pays for a bcrypt verification (cost 12, on the order of 200ms of CPU, and one is burned against a stand-in hash even for an address nobody holds) before the limit is consulted, so a 429 costs the same as a 401. A gateway exposed to the internet should rate-limit this path at the proxy as well. The maintenance-mode check runs before either credential is verified, and refuses both. Before, because a frozen deployment should not spend a bcrypt verification per attempt and the refusal is not about the credential anyway; both, because the way back out is the master key against ``PATCH /v1/settings/maintenance-mode`` through the header, which never passes through this door. That is what keeps the way back out off the frozen path, and it is why no identity needs an exemption here; an operator who no longer holds the master key recovers by setting ``OTARI_MASTER_KEY`` and restarting, which is a restart rather than a click. It leaks nothing either: ``GET /v1/bootstrap`` already publishes the same flag unauthenticated, so the sign-in screen can render the right page. + Verify a sign-in credential and set the HttpOnly session cookie. The session is bound to the identity that authenticated, so every request it later authenticates resolves a user and that user's active organization rather than only \"a credential was presented once\". The response names both, so a client knows who it is signed in as without a second call. The rate-limit check deliberately runs only after a failed verification, not before it: a pre-verification gate can't know whether *this* attempt would have succeeded, so once an IP has used up its failure quota it would end up blocking that IP's legitimate owner too, not just further attackers. Running after verification also means the throttle bounds how many verdicts an IP gets, not how much work it can cause: a password attempt pays for a bcrypt verification (cost 12, on the order of 200ms of CPU, and one is burned against a stand-in hash even for an address nobody holds) before the limit is consulted, so a 429 costs the same as a 401. A gateway exposed to the internet should rate-limit this path at the proxy as well. The maintenance-mode check runs before either credential is verified, and refuses both. Before, because a frozen deployment should not spend a bcrypt verification per attempt and the refusal is not about the credential anyway; both, because the way back out is the master key against ``PATCH /api/v1/settings/maintenance-mode`` through the header, which never passes through this door. That is what keeps the way back out off the frozen path, and it is why no identity needs an exemption here; an operator who no longer holds the master key recovers by setting ``OTARI_MASTER_KEY`` and restarting, which is a restart rather than a click. It leaks nothing either: ``GET /api/v1/bootstrap`` already publishes the same flag unauthenticated, so the sign-in screen can render the right page. :param create_session_request: (required) :type create_session_request: CreateSessionRequest @@ -1456,7 +1456,7 @@ def create_session_v1_auth_session_post( :return: Returns the result object. """ # noqa: E501 - _param = self._create_session_v1_auth_session_post_serialize( + _param = self._create_session_api_v1_auth_session_post_serialize( create_session_request=create_session_request, _request_auth=_request_auth, _content_type=_content_type, @@ -1480,7 +1480,7 @@ def create_session_v1_auth_session_post( @validate_call - def create_session_v1_auth_session_post_with_http_info( + def create_session_api_v1_auth_session_post_with_http_info( self, create_session_request: CreateSessionRequest, _request_timeout: Union[ @@ -1498,7 +1498,7 @@ def create_session_v1_auth_session_post_with_http_info( ) -> ApiResponse[SessionResponse]: """Create Session - Verify a sign-in credential and set the HttpOnly session cookie. The session is bound to the identity that authenticated, so every request it later authenticates resolves a user and that user's active organization rather than only \"a credential was presented once\". The response names both, so a client knows who it is signed in as without a second call. The rate-limit check deliberately runs only after a failed verification, not before it: a pre-verification gate can't know whether *this* attempt would have succeeded, so once an IP has used up its failure quota it would end up blocking that IP's legitimate owner too, not just further attackers. Running after verification also means the throttle bounds how many verdicts an IP gets, not how much work it can cause: a password attempt pays for a bcrypt verification (cost 12, on the order of 200ms of CPU, and one is burned against a stand-in hash even for an address nobody holds) before the limit is consulted, so a 429 costs the same as a 401. A gateway exposed to the internet should rate-limit this path at the proxy as well. The maintenance-mode check runs before either credential is verified, and refuses both. Before, because a frozen deployment should not spend a bcrypt verification per attempt and the refusal is not about the credential anyway; both, because the way back out is the master key against ``PATCH /v1/settings/maintenance-mode`` through the header, which never passes through this door. That is what keeps the way back out off the frozen path, and it is why no identity needs an exemption here; an operator who no longer holds the master key recovers by setting ``OTARI_MASTER_KEY`` and restarting, which is a restart rather than a click. It leaks nothing either: ``GET /v1/bootstrap`` already publishes the same flag unauthenticated, so the sign-in screen can render the right page. + Verify a sign-in credential and set the HttpOnly session cookie. The session is bound to the identity that authenticated, so every request it later authenticates resolves a user and that user's active organization rather than only \"a credential was presented once\". The response names both, so a client knows who it is signed in as without a second call. The rate-limit check deliberately runs only after a failed verification, not before it: a pre-verification gate can't know whether *this* attempt would have succeeded, so once an IP has used up its failure quota it would end up blocking that IP's legitimate owner too, not just further attackers. Running after verification also means the throttle bounds how many verdicts an IP gets, not how much work it can cause: a password attempt pays for a bcrypt verification (cost 12, on the order of 200ms of CPU, and one is burned against a stand-in hash even for an address nobody holds) before the limit is consulted, so a 429 costs the same as a 401. A gateway exposed to the internet should rate-limit this path at the proxy as well. The maintenance-mode check runs before either credential is verified, and refuses both. Before, because a frozen deployment should not spend a bcrypt verification per attempt and the refusal is not about the credential anyway; both, because the way back out is the master key against ``PATCH /api/v1/settings/maintenance-mode`` through the header, which never passes through this door. That is what keeps the way back out off the frozen path, and it is why no identity needs an exemption here; an operator who no longer holds the master key recovers by setting ``OTARI_MASTER_KEY`` and restarting, which is a restart rather than a click. It leaks nothing either: ``GET /api/v1/bootstrap`` already publishes the same flag unauthenticated, so the sign-in screen can render the right page. :param create_session_request: (required) :type create_session_request: CreateSessionRequest @@ -1524,7 +1524,7 @@ def create_session_v1_auth_session_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_session_v1_auth_session_post_serialize( + _param = self._create_session_api_v1_auth_session_post_serialize( create_session_request=create_session_request, _request_auth=_request_auth, _content_type=_content_type, @@ -1548,7 +1548,7 @@ def create_session_v1_auth_session_post_with_http_info( @validate_call - def create_session_v1_auth_session_post_without_preload_content( + def create_session_api_v1_auth_session_post_without_preload_content( self, create_session_request: CreateSessionRequest, _request_timeout: Union[ @@ -1566,7 +1566,7 @@ def create_session_v1_auth_session_post_without_preload_content( ) -> RESTResponseType: """Create Session - Verify a sign-in credential and set the HttpOnly session cookie. The session is bound to the identity that authenticated, so every request it later authenticates resolves a user and that user's active organization rather than only \"a credential was presented once\". The response names both, so a client knows who it is signed in as without a second call. The rate-limit check deliberately runs only after a failed verification, not before it: a pre-verification gate can't know whether *this* attempt would have succeeded, so once an IP has used up its failure quota it would end up blocking that IP's legitimate owner too, not just further attackers. Running after verification also means the throttle bounds how many verdicts an IP gets, not how much work it can cause: a password attempt pays for a bcrypt verification (cost 12, on the order of 200ms of CPU, and one is burned against a stand-in hash even for an address nobody holds) before the limit is consulted, so a 429 costs the same as a 401. A gateway exposed to the internet should rate-limit this path at the proxy as well. The maintenance-mode check runs before either credential is verified, and refuses both. Before, because a frozen deployment should not spend a bcrypt verification per attempt and the refusal is not about the credential anyway; both, because the way back out is the master key against ``PATCH /v1/settings/maintenance-mode`` through the header, which never passes through this door. That is what keeps the way back out off the frozen path, and it is why no identity needs an exemption here; an operator who no longer holds the master key recovers by setting ``OTARI_MASTER_KEY`` and restarting, which is a restart rather than a click. It leaks nothing either: ``GET /v1/bootstrap`` already publishes the same flag unauthenticated, so the sign-in screen can render the right page. + Verify a sign-in credential and set the HttpOnly session cookie. The session is bound to the identity that authenticated, so every request it later authenticates resolves a user and that user's active organization rather than only \"a credential was presented once\". The response names both, so a client knows who it is signed in as without a second call. The rate-limit check deliberately runs only after a failed verification, not before it: a pre-verification gate can't know whether *this* attempt would have succeeded, so once an IP has used up its failure quota it would end up blocking that IP's legitimate owner too, not just further attackers. Running after verification also means the throttle bounds how many verdicts an IP gets, not how much work it can cause: a password attempt pays for a bcrypt verification (cost 12, on the order of 200ms of CPU, and one is burned against a stand-in hash even for an address nobody holds) before the limit is consulted, so a 429 costs the same as a 401. A gateway exposed to the internet should rate-limit this path at the proxy as well. The maintenance-mode check runs before either credential is verified, and refuses both. Before, because a frozen deployment should not spend a bcrypt verification per attempt and the refusal is not about the credential anyway; both, because the way back out is the master key against ``PATCH /api/v1/settings/maintenance-mode`` through the header, which never passes through this door. That is what keeps the way back out off the frozen path, and it is why no identity needs an exemption here; an operator who no longer holds the master key recovers by setting ``OTARI_MASTER_KEY`` and restarting, which is a restart rather than a click. It leaks nothing either: ``GET /api/v1/bootstrap`` already publishes the same flag unauthenticated, so the sign-in screen can render the right page. :param create_session_request: (required) :type create_session_request: CreateSessionRequest @@ -1592,7 +1592,7 @@ def create_session_v1_auth_session_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._create_session_v1_auth_session_post_serialize( + _param = self._create_session_api_v1_auth_session_post_serialize( create_session_request=create_session_request, _request_auth=_request_auth, _content_type=_content_type, @@ -1611,7 +1611,7 @@ def create_session_v1_auth_session_post_without_preload_content( return response_data.response - def _create_session_v1_auth_session_post_serialize( + def _create_session_api_v1_auth_session_post_serialize( self, create_session_request, _request_auth, @@ -1671,7 +1671,7 @@ def _create_session_v1_auth_session_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/auth/session', + resource_path='/api/v1/auth/session', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1688,7 +1688,7 @@ def _create_session_v1_auth_session_post_serialize( @validate_call - def delete_passkey_v1_auth_webauthn_credentials_credential_id_delete( + def delete_passkey_api_v1_auth_webauthn_credentials_credential_id_delete( self, credential_id: UUID, _request_timeout: Union[ @@ -1732,7 +1732,7 @@ def delete_passkey_v1_auth_webauthn_credentials_credential_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_passkey_v1_auth_webauthn_credentials_credential_id_delete_serialize( + _param = self._delete_passkey_api_v1_auth_webauthn_credentials_credential_id_delete_serialize( credential_id=credential_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1756,7 +1756,7 @@ def delete_passkey_v1_auth_webauthn_credentials_credential_id_delete( @validate_call - def delete_passkey_v1_auth_webauthn_credentials_credential_id_delete_with_http_info( + def delete_passkey_api_v1_auth_webauthn_credentials_credential_id_delete_with_http_info( self, credential_id: UUID, _request_timeout: Union[ @@ -1800,7 +1800,7 @@ def delete_passkey_v1_auth_webauthn_credentials_credential_id_delete_with_http_i :return: Returns the result object. """ # noqa: E501 - _param = self._delete_passkey_v1_auth_webauthn_credentials_credential_id_delete_serialize( + _param = self._delete_passkey_api_v1_auth_webauthn_credentials_credential_id_delete_serialize( credential_id=credential_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1824,7 +1824,7 @@ def delete_passkey_v1_auth_webauthn_credentials_credential_id_delete_with_http_i @validate_call - def delete_passkey_v1_auth_webauthn_credentials_credential_id_delete_without_preload_content( + def delete_passkey_api_v1_auth_webauthn_credentials_credential_id_delete_without_preload_content( self, credential_id: UUID, _request_timeout: Union[ @@ -1868,7 +1868,7 @@ def delete_passkey_v1_auth_webauthn_credentials_credential_id_delete_without_pre :return: Returns the result object. """ # noqa: E501 - _param = self._delete_passkey_v1_auth_webauthn_credentials_credential_id_delete_serialize( + _param = self._delete_passkey_api_v1_auth_webauthn_credentials_credential_id_delete_serialize( credential_id=credential_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1887,7 +1887,7 @@ def delete_passkey_v1_auth_webauthn_credentials_credential_id_delete_without_pre return response_data.response - def _delete_passkey_v1_auth_webauthn_credentials_credential_id_delete_serialize( + def _delete_passkey_api_v1_auth_webauthn_credentials_credential_id_delete_serialize( self, credential_id, _request_auth, @@ -1936,7 +1936,7 @@ def _delete_passkey_v1_auth_webauthn_credentials_credential_id_delete_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/v1/auth/webauthn/credentials/{credential_id}', + resource_path='/api/v1/auth/webauthn/credentials/{credential_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1953,7 +1953,7 @@ def _delete_passkey_v1_auth_webauthn_credentials_credential_id_delete_serialize( @validate_call - def delete_session_v1_auth_session_delete( + def delete_session_api_v1_auth_session_delete( self, _request_timeout: Union[ None, @@ -1994,7 +1994,7 @@ def delete_session_v1_auth_session_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_session_v1_auth_session_delete_serialize( + _param = self._delete_session_api_v1_auth_session_delete_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2016,7 +2016,7 @@ def delete_session_v1_auth_session_delete( @validate_call - def delete_session_v1_auth_session_delete_with_http_info( + def delete_session_api_v1_auth_session_delete_with_http_info( self, _request_timeout: Union[ None, @@ -2057,7 +2057,7 @@ def delete_session_v1_auth_session_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_session_v1_auth_session_delete_serialize( + _param = self._delete_session_api_v1_auth_session_delete_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2079,7 +2079,7 @@ def delete_session_v1_auth_session_delete_with_http_info( @validate_call - def delete_session_v1_auth_session_delete_without_preload_content( + def delete_session_api_v1_auth_session_delete_without_preload_content( self, _request_timeout: Union[ None, @@ -2120,7 +2120,7 @@ def delete_session_v1_auth_session_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_session_v1_auth_session_delete_serialize( + _param = self._delete_session_api_v1_auth_session_delete_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2137,7 +2137,7 @@ def delete_session_v1_auth_session_delete_without_preload_content( return response_data.response - def _delete_session_v1_auth_session_delete_serialize( + def _delete_session_api_v1_auth_session_delete_serialize( self, _request_auth, _content_type, @@ -2174,7 +2174,7 @@ def _delete_session_v1_auth_session_delete_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/v1/auth/session', + resource_path='/api/v1/auth/session', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2191,7 +2191,7 @@ def _delete_session_v1_auth_session_delete_serialize( @validate_call - def list_passkeys_v1_auth_webauthn_credentials_get( + def list_passkeys_api_v1_auth_webauthn_credentials_get( self, _request_timeout: Union[ None, @@ -2232,7 +2232,7 @@ def list_passkeys_v1_auth_webauthn_credentials_get( :return: Returns the result object. """ # noqa: E501 - _param = self._list_passkeys_v1_auth_webauthn_credentials_get_serialize( + _param = self._list_passkeys_api_v1_auth_webauthn_credentials_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2254,7 +2254,7 @@ def list_passkeys_v1_auth_webauthn_credentials_get( @validate_call - def list_passkeys_v1_auth_webauthn_credentials_get_with_http_info( + def list_passkeys_api_v1_auth_webauthn_credentials_get_with_http_info( self, _request_timeout: Union[ None, @@ -2295,7 +2295,7 @@ def list_passkeys_v1_auth_webauthn_credentials_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_passkeys_v1_auth_webauthn_credentials_get_serialize( + _param = self._list_passkeys_api_v1_auth_webauthn_credentials_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2317,7 +2317,7 @@ def list_passkeys_v1_auth_webauthn_credentials_get_with_http_info( @validate_call - def list_passkeys_v1_auth_webauthn_credentials_get_without_preload_content( + def list_passkeys_api_v1_auth_webauthn_credentials_get_without_preload_content( self, _request_timeout: Union[ None, @@ -2358,7 +2358,7 @@ def list_passkeys_v1_auth_webauthn_credentials_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._list_passkeys_v1_auth_webauthn_credentials_get_serialize( + _param = self._list_passkeys_api_v1_auth_webauthn_credentials_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2375,7 +2375,7 @@ def list_passkeys_v1_auth_webauthn_credentials_get_without_preload_content( return response_data.response - def _list_passkeys_v1_auth_webauthn_credentials_get_serialize( + def _list_passkeys_api_v1_auth_webauthn_credentials_get_serialize( self, _request_auth, _content_type, @@ -2421,7 +2421,7 @@ def _list_passkeys_v1_auth_webauthn_credentials_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/auth/webauthn/credentials', + resource_path='/api/v1/auth/webauthn/credentials', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2438,7 +2438,7 @@ def _list_passkeys_v1_auth_webauthn_credentials_get_serialize( @validate_call - def register_passkey_v1_auth_webauthn_register_post( + def register_passkey_api_v1_auth_webauthn_register_post( self, register_passkey_request: RegisterPasskeyRequest, _request_timeout: Union[ @@ -2482,7 +2482,7 @@ def register_passkey_v1_auth_webauthn_register_post( :return: Returns the result object. """ # noqa: E501 - _param = self._register_passkey_v1_auth_webauthn_register_post_serialize( + _param = self._register_passkey_api_v1_auth_webauthn_register_post_serialize( register_passkey_request=register_passkey_request, _request_auth=_request_auth, _content_type=_content_type, @@ -2506,7 +2506,7 @@ def register_passkey_v1_auth_webauthn_register_post( @validate_call - def register_passkey_v1_auth_webauthn_register_post_with_http_info( + def register_passkey_api_v1_auth_webauthn_register_post_with_http_info( self, register_passkey_request: RegisterPasskeyRequest, _request_timeout: Union[ @@ -2550,7 +2550,7 @@ def register_passkey_v1_auth_webauthn_register_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._register_passkey_v1_auth_webauthn_register_post_serialize( + _param = self._register_passkey_api_v1_auth_webauthn_register_post_serialize( register_passkey_request=register_passkey_request, _request_auth=_request_auth, _content_type=_content_type, @@ -2574,7 +2574,7 @@ def register_passkey_v1_auth_webauthn_register_post_with_http_info( @validate_call - def register_passkey_v1_auth_webauthn_register_post_without_preload_content( + def register_passkey_api_v1_auth_webauthn_register_post_without_preload_content( self, register_passkey_request: RegisterPasskeyRequest, _request_timeout: Union[ @@ -2618,7 +2618,7 @@ def register_passkey_v1_auth_webauthn_register_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._register_passkey_v1_auth_webauthn_register_post_serialize( + _param = self._register_passkey_api_v1_auth_webauthn_register_post_serialize( register_passkey_request=register_passkey_request, _request_auth=_request_auth, _content_type=_content_type, @@ -2637,7 +2637,7 @@ def register_passkey_v1_auth_webauthn_register_post_without_preload_content( return response_data.response - def _register_passkey_v1_auth_webauthn_register_post_serialize( + def _register_passkey_api_v1_auth_webauthn_register_post_serialize( self, register_passkey_request, _request_auth, @@ -2699,7 +2699,7 @@ def _register_passkey_v1_auth_webauthn_register_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/auth/webauthn/register', + resource_path='/api/v1/auth/webauthn/register', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2716,7 +2716,7 @@ def _register_passkey_v1_auth_webauthn_register_post_serialize( @validate_call - def registration_options_v1_auth_webauthn_register_options_post( + def registration_options_api_v1_auth_webauthn_register_options_post( self, _request_timeout: Union[ None, @@ -2757,7 +2757,7 @@ def registration_options_v1_auth_webauthn_register_options_post( :return: Returns the result object. """ # noqa: E501 - _param = self._registration_options_v1_auth_webauthn_register_options_post_serialize( + _param = self._registration_options_api_v1_auth_webauthn_register_options_post_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2779,7 +2779,7 @@ def registration_options_v1_auth_webauthn_register_options_post( @validate_call - def registration_options_v1_auth_webauthn_register_options_post_with_http_info( + def registration_options_api_v1_auth_webauthn_register_options_post_with_http_info( self, _request_timeout: Union[ None, @@ -2820,7 +2820,7 @@ def registration_options_v1_auth_webauthn_register_options_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._registration_options_v1_auth_webauthn_register_options_post_serialize( + _param = self._registration_options_api_v1_auth_webauthn_register_options_post_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2842,7 +2842,7 @@ def registration_options_v1_auth_webauthn_register_options_post_with_http_info( @validate_call - def registration_options_v1_auth_webauthn_register_options_post_without_preload_content( + def registration_options_api_v1_auth_webauthn_register_options_post_without_preload_content( self, _request_timeout: Union[ None, @@ -2883,7 +2883,7 @@ def registration_options_v1_auth_webauthn_register_options_post_without_preload_ :return: Returns the result object. """ # noqa: E501 - _param = self._registration_options_v1_auth_webauthn_register_options_post_serialize( + _param = self._registration_options_api_v1_auth_webauthn_register_options_post_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2900,7 +2900,7 @@ def registration_options_v1_auth_webauthn_register_options_post_without_preload_ return response_data.response - def _registration_options_v1_auth_webauthn_register_options_post_serialize( + def _registration_options_api_v1_auth_webauthn_register_options_post_serialize( self, _request_auth, _content_type, @@ -2946,7 +2946,7 @@ def _registration_options_v1_auth_webauthn_register_options_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/auth/webauthn/register/options', + resource_path='/api/v1/auth/webauthn/register/options', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2963,7 +2963,7 @@ def _registration_options_v1_auth_webauthn_register_options_post_serialize( @validate_call - def rename_passkey_v1_auth_webauthn_credentials_credential_id_patch( + def rename_passkey_api_v1_auth_webauthn_credentials_credential_id_patch( self, credential_id: UUID, web_authn_credential_update: WebAuthnCredentialUpdate, @@ -3010,7 +3010,7 @@ def rename_passkey_v1_auth_webauthn_credentials_credential_id_patch( :return: Returns the result object. """ # noqa: E501 - _param = self._rename_passkey_v1_auth_webauthn_credentials_credential_id_patch_serialize( + _param = self._rename_passkey_api_v1_auth_webauthn_credentials_credential_id_patch_serialize( credential_id=credential_id, web_authn_credential_update=web_authn_credential_update, _request_auth=_request_auth, @@ -3035,7 +3035,7 @@ def rename_passkey_v1_auth_webauthn_credentials_credential_id_patch( @validate_call - def rename_passkey_v1_auth_webauthn_credentials_credential_id_patch_with_http_info( + def rename_passkey_api_v1_auth_webauthn_credentials_credential_id_patch_with_http_info( self, credential_id: UUID, web_authn_credential_update: WebAuthnCredentialUpdate, @@ -3082,7 +3082,7 @@ def rename_passkey_v1_auth_webauthn_credentials_credential_id_patch_with_http_in :return: Returns the result object. """ # noqa: E501 - _param = self._rename_passkey_v1_auth_webauthn_credentials_credential_id_patch_serialize( + _param = self._rename_passkey_api_v1_auth_webauthn_credentials_credential_id_patch_serialize( credential_id=credential_id, web_authn_credential_update=web_authn_credential_update, _request_auth=_request_auth, @@ -3107,7 +3107,7 @@ def rename_passkey_v1_auth_webauthn_credentials_credential_id_patch_with_http_in @validate_call - def rename_passkey_v1_auth_webauthn_credentials_credential_id_patch_without_preload_content( + def rename_passkey_api_v1_auth_webauthn_credentials_credential_id_patch_without_preload_content( self, credential_id: UUID, web_authn_credential_update: WebAuthnCredentialUpdate, @@ -3154,7 +3154,7 @@ def rename_passkey_v1_auth_webauthn_credentials_credential_id_patch_without_prel :return: Returns the result object. """ # noqa: E501 - _param = self._rename_passkey_v1_auth_webauthn_credentials_credential_id_patch_serialize( + _param = self._rename_passkey_api_v1_auth_webauthn_credentials_credential_id_patch_serialize( credential_id=credential_id, web_authn_credential_update=web_authn_credential_update, _request_auth=_request_auth, @@ -3174,7 +3174,7 @@ def rename_passkey_v1_auth_webauthn_credentials_credential_id_patch_without_prel return response_data.response - def _rename_passkey_v1_auth_webauthn_credentials_credential_id_patch_serialize( + def _rename_passkey_api_v1_auth_webauthn_credentials_credential_id_patch_serialize( self, credential_id, web_authn_credential_update, @@ -3239,7 +3239,7 @@ def _rename_passkey_v1_auth_webauthn_credentials_credential_id_patch_serialize( return self.api_client.param_serialize( method='PATCH', - resource_path='/v1/auth/webauthn/credentials/{credential_id}', + resource_path='/api/v1/auth/webauthn/credentials/{credential_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3256,7 +3256,7 @@ def _rename_passkey_v1_auth_webauthn_credentials_credential_id_patch_serialize( @validate_call - def request_reset_v1_auth_password_reset_post( + def request_reset_api_v1_auth_password_reset_post( self, request_password_reset_request: RequestPasswordResetRequest, _request_timeout: Union[ @@ -3300,7 +3300,7 @@ def request_reset_v1_auth_password_reset_post( :return: Returns the result object. """ # noqa: E501 - _param = self._request_reset_v1_auth_password_reset_post_serialize( + _param = self._request_reset_api_v1_auth_password_reset_post_serialize( request_password_reset_request=request_password_reset_request, _request_auth=_request_auth, _content_type=_content_type, @@ -3324,7 +3324,7 @@ def request_reset_v1_auth_password_reset_post( @validate_call - def request_reset_v1_auth_password_reset_post_with_http_info( + def request_reset_api_v1_auth_password_reset_post_with_http_info( self, request_password_reset_request: RequestPasswordResetRequest, _request_timeout: Union[ @@ -3368,7 +3368,7 @@ def request_reset_v1_auth_password_reset_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._request_reset_v1_auth_password_reset_post_serialize( + _param = self._request_reset_api_v1_auth_password_reset_post_serialize( request_password_reset_request=request_password_reset_request, _request_auth=_request_auth, _content_type=_content_type, @@ -3392,7 +3392,7 @@ def request_reset_v1_auth_password_reset_post_with_http_info( @validate_call - def request_reset_v1_auth_password_reset_post_without_preload_content( + def request_reset_api_v1_auth_password_reset_post_without_preload_content( self, request_password_reset_request: RequestPasswordResetRequest, _request_timeout: Union[ @@ -3436,7 +3436,7 @@ def request_reset_v1_auth_password_reset_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._request_reset_v1_auth_password_reset_post_serialize( + _param = self._request_reset_api_v1_auth_password_reset_post_serialize( request_password_reset_request=request_password_reset_request, _request_auth=_request_auth, _content_type=_content_type, @@ -3455,7 +3455,7 @@ def request_reset_v1_auth_password_reset_post_without_preload_content( return response_data.response - def _request_reset_v1_auth_password_reset_post_serialize( + def _request_reset_api_v1_auth_password_reset_post_serialize( self, request_password_reset_request, _request_auth, @@ -3515,7 +3515,7 @@ def _request_reset_v1_auth_password_reset_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/auth/password/reset', + resource_path='/api/v1/auth/password/reset', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3532,7 +3532,7 @@ def _request_reset_v1_auth_password_reset_post_serialize( @validate_call - def resend_verification_v1_auth_resend_verification_post( + def resend_verification_api_v1_auth_resend_verification_post( self, resend_verification_request: ResendVerificationRequest, _request_timeout: Union[ @@ -3576,7 +3576,7 @@ def resend_verification_v1_auth_resend_verification_post( :return: Returns the result object. """ # noqa: E501 - _param = self._resend_verification_v1_auth_resend_verification_post_serialize( + _param = self._resend_verification_api_v1_auth_resend_verification_post_serialize( resend_verification_request=resend_verification_request, _request_auth=_request_auth, _content_type=_content_type, @@ -3600,7 +3600,7 @@ def resend_verification_v1_auth_resend_verification_post( @validate_call - def resend_verification_v1_auth_resend_verification_post_with_http_info( + def resend_verification_api_v1_auth_resend_verification_post_with_http_info( self, resend_verification_request: ResendVerificationRequest, _request_timeout: Union[ @@ -3644,7 +3644,7 @@ def resend_verification_v1_auth_resend_verification_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._resend_verification_v1_auth_resend_verification_post_serialize( + _param = self._resend_verification_api_v1_auth_resend_verification_post_serialize( resend_verification_request=resend_verification_request, _request_auth=_request_auth, _content_type=_content_type, @@ -3668,7 +3668,7 @@ def resend_verification_v1_auth_resend_verification_post_with_http_info( @validate_call - def resend_verification_v1_auth_resend_verification_post_without_preload_content( + def resend_verification_api_v1_auth_resend_verification_post_without_preload_content( self, resend_verification_request: ResendVerificationRequest, _request_timeout: Union[ @@ -3712,7 +3712,7 @@ def resend_verification_v1_auth_resend_verification_post_without_preload_content :return: Returns the result object. """ # noqa: E501 - _param = self._resend_verification_v1_auth_resend_verification_post_serialize( + _param = self._resend_verification_api_v1_auth_resend_verification_post_serialize( resend_verification_request=resend_verification_request, _request_auth=_request_auth, _content_type=_content_type, @@ -3731,7 +3731,7 @@ def resend_verification_v1_auth_resend_verification_post_without_preload_content return response_data.response - def _resend_verification_v1_auth_resend_verification_post_serialize( + def _resend_verification_api_v1_auth_resend_verification_post_serialize( self, resend_verification_request, _request_auth, @@ -3791,7 +3791,7 @@ def _resend_verification_v1_auth_resend_verification_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/auth/resend-verification', + resource_path='/api/v1/auth/resend-verification', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3808,7 +3808,7 @@ def _resend_verification_v1_auth_resend_verification_post_serialize( @validate_call - def set_dashboard_password_v1_auth_password_put( + def set_dashboard_password_api_v1_auth_password_put( self, set_password_request: SetPasswordRequest, _request_timeout: Union[ @@ -3852,7 +3852,7 @@ def set_dashboard_password_v1_auth_password_put( :return: Returns the result object. """ # noqa: E501 - _param = self._set_dashboard_password_v1_auth_password_put_serialize( + _param = self._set_dashboard_password_api_v1_auth_password_put_serialize( set_password_request=set_password_request, _request_auth=_request_auth, _content_type=_content_type, @@ -3876,7 +3876,7 @@ def set_dashboard_password_v1_auth_password_put( @validate_call - def set_dashboard_password_v1_auth_password_put_with_http_info( + def set_dashboard_password_api_v1_auth_password_put_with_http_info( self, set_password_request: SetPasswordRequest, _request_timeout: Union[ @@ -3920,7 +3920,7 @@ def set_dashboard_password_v1_auth_password_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._set_dashboard_password_v1_auth_password_put_serialize( + _param = self._set_dashboard_password_api_v1_auth_password_put_serialize( set_password_request=set_password_request, _request_auth=_request_auth, _content_type=_content_type, @@ -3944,7 +3944,7 @@ def set_dashboard_password_v1_auth_password_put_with_http_info( @validate_call - def set_dashboard_password_v1_auth_password_put_without_preload_content( + def set_dashboard_password_api_v1_auth_password_put_without_preload_content( self, set_password_request: SetPasswordRequest, _request_timeout: Union[ @@ -3988,7 +3988,7 @@ def set_dashboard_password_v1_auth_password_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._set_dashboard_password_v1_auth_password_put_serialize( + _param = self._set_dashboard_password_api_v1_auth_password_put_serialize( set_password_request=set_password_request, _request_auth=_request_auth, _content_type=_content_type, @@ -4007,7 +4007,7 @@ def set_dashboard_password_v1_auth_password_put_without_preload_content( return response_data.response - def _set_dashboard_password_v1_auth_password_put_serialize( + def _set_dashboard_password_api_v1_auth_password_put_serialize( self, set_password_request, _request_auth, @@ -4069,7 +4069,7 @@ def _set_dashboard_password_v1_auth_password_put_serialize( return self.api_client.param_serialize( method='PUT', - resource_path='/v1/auth/password', + resource_path='/api/v1/auth/password', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4086,7 +4086,7 @@ def _set_dashboard_password_v1_auth_password_put_serialize( @validate_call - def signup_v1_auth_signup_post( + def signup_api_v1_auth_signup_post( self, signup_request: SignupRequest, _request_timeout: Union[ @@ -4130,7 +4130,7 @@ def signup_v1_auth_signup_post( :return: Returns the result object. """ # noqa: E501 - _param = self._signup_v1_auth_signup_post_serialize( + _param = self._signup_api_v1_auth_signup_post_serialize( signup_request=signup_request, _request_auth=_request_auth, _content_type=_content_type, @@ -4154,7 +4154,7 @@ def signup_v1_auth_signup_post( @validate_call - def signup_v1_auth_signup_post_with_http_info( + def signup_api_v1_auth_signup_post_with_http_info( self, signup_request: SignupRequest, _request_timeout: Union[ @@ -4198,7 +4198,7 @@ def signup_v1_auth_signup_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._signup_v1_auth_signup_post_serialize( + _param = self._signup_api_v1_auth_signup_post_serialize( signup_request=signup_request, _request_auth=_request_auth, _content_type=_content_type, @@ -4222,7 +4222,7 @@ def signup_v1_auth_signup_post_with_http_info( @validate_call - def signup_v1_auth_signup_post_without_preload_content( + def signup_api_v1_auth_signup_post_without_preload_content( self, signup_request: SignupRequest, _request_timeout: Union[ @@ -4266,7 +4266,7 @@ def signup_v1_auth_signup_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._signup_v1_auth_signup_post_serialize( + _param = self._signup_api_v1_auth_signup_post_serialize( signup_request=signup_request, _request_auth=_request_auth, _content_type=_content_type, @@ -4285,7 +4285,7 @@ def signup_v1_auth_signup_post_without_preload_content( return response_data.response - def _signup_v1_auth_signup_post_serialize( + def _signup_api_v1_auth_signup_post_serialize( self, signup_request, _request_auth, @@ -4345,7 +4345,7 @@ def _signup_v1_auth_signup_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/auth/signup', + resource_path='/api/v1/auth/signup', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4362,7 +4362,7 @@ def _signup_v1_auth_signup_post_serialize( @validate_call - def verify_email_route_v1_auth_verify_email_post( + def verify_email_route_api_v1_auth_verify_email_post( self, verify_email_request: VerifyEmailRequest, _request_timeout: Union[ @@ -4406,7 +4406,7 @@ def verify_email_route_v1_auth_verify_email_post( :return: Returns the result object. """ # noqa: E501 - _param = self._verify_email_route_v1_auth_verify_email_post_serialize( + _param = self._verify_email_route_api_v1_auth_verify_email_post_serialize( verify_email_request=verify_email_request, _request_auth=_request_auth, _content_type=_content_type, @@ -4430,7 +4430,7 @@ def verify_email_route_v1_auth_verify_email_post( @validate_call - def verify_email_route_v1_auth_verify_email_post_with_http_info( + def verify_email_route_api_v1_auth_verify_email_post_with_http_info( self, verify_email_request: VerifyEmailRequest, _request_timeout: Union[ @@ -4474,7 +4474,7 @@ def verify_email_route_v1_auth_verify_email_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._verify_email_route_v1_auth_verify_email_post_serialize( + _param = self._verify_email_route_api_v1_auth_verify_email_post_serialize( verify_email_request=verify_email_request, _request_auth=_request_auth, _content_type=_content_type, @@ -4498,7 +4498,7 @@ def verify_email_route_v1_auth_verify_email_post_with_http_info( @validate_call - def verify_email_route_v1_auth_verify_email_post_without_preload_content( + def verify_email_route_api_v1_auth_verify_email_post_without_preload_content( self, verify_email_request: VerifyEmailRequest, _request_timeout: Union[ @@ -4542,7 +4542,7 @@ def verify_email_route_v1_auth_verify_email_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._verify_email_route_v1_auth_verify_email_post_serialize( + _param = self._verify_email_route_api_v1_auth_verify_email_post_serialize( verify_email_request=verify_email_request, _request_auth=_request_auth, _content_type=_content_type, @@ -4561,7 +4561,7 @@ def verify_email_route_v1_auth_verify_email_post_without_preload_content( return response_data.response - def _verify_email_route_v1_auth_verify_email_post_serialize( + def _verify_email_route_api_v1_auth_verify_email_post_serialize( self, verify_email_request, _request_auth, @@ -4621,7 +4621,7 @@ def _verify_email_route_v1_auth_verify_email_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/auth/verify-email', + resource_path='/api/v1/auth/verify-email', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/batches_api.py b/src/otari/_client/api/batches_api.py index 3bef471..80010be 100644 --- a/src/otari/_client/api/batches_api.py +++ b/src/otari/_client/api/batches_api.py @@ -38,7 +38,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def cancel_batch_v1_batches_batch_id_cancel_post( + def cancel_batch_api_v1_batches_batch_id_cancel_post( self, batch_id: StrictStr, provider: StrictStr, @@ -85,7 +85,7 @@ def cancel_batch_v1_batches_batch_id_cancel_post( :return: Returns the result object. """ # noqa: E501 - _param = self._cancel_batch_v1_batches_batch_id_cancel_post_serialize( + _param = self._cancel_batch_api_v1_batches_batch_id_cancel_post_serialize( batch_id=batch_id, provider=provider, _request_auth=_request_auth, @@ -110,7 +110,7 @@ def cancel_batch_v1_batches_batch_id_cancel_post( @validate_call - def cancel_batch_v1_batches_batch_id_cancel_post_with_http_info( + def cancel_batch_api_v1_batches_batch_id_cancel_post_with_http_info( self, batch_id: StrictStr, provider: StrictStr, @@ -157,7 +157,7 @@ def cancel_batch_v1_batches_batch_id_cancel_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._cancel_batch_v1_batches_batch_id_cancel_post_serialize( + _param = self._cancel_batch_api_v1_batches_batch_id_cancel_post_serialize( batch_id=batch_id, provider=provider, _request_auth=_request_auth, @@ -182,7 +182,7 @@ def cancel_batch_v1_batches_batch_id_cancel_post_with_http_info( @validate_call - def cancel_batch_v1_batches_batch_id_cancel_post_without_preload_content( + def cancel_batch_api_v1_batches_batch_id_cancel_post_without_preload_content( self, batch_id: StrictStr, provider: StrictStr, @@ -229,7 +229,7 @@ def cancel_batch_v1_batches_batch_id_cancel_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._cancel_batch_v1_batches_batch_id_cancel_post_serialize( + _param = self._cancel_batch_api_v1_batches_batch_id_cancel_post_serialize( batch_id=batch_id, provider=provider, _request_auth=_request_auth, @@ -249,7 +249,7 @@ def cancel_batch_v1_batches_batch_id_cancel_post_without_preload_content( return response_data.response - def _cancel_batch_v1_batches_batch_id_cancel_post_serialize( + def _cancel_batch_api_v1_batches_batch_id_cancel_post_serialize( self, batch_id, provider, @@ -303,7 +303,7 @@ def _cancel_batch_v1_batches_batch_id_cancel_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/batches/{batch_id}/cancel', + resource_path='/api/v1/batches/{batch_id}/cancel', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -320,7 +320,7 @@ def _cancel_batch_v1_batches_batch_id_cancel_post_serialize( @validate_call - def create_batch_v1_batches_post( + def create_batch_api_v1_batches_post( self, create_batch_request: CreateBatchRequest, _request_timeout: Union[ @@ -364,7 +364,7 @@ def create_batch_v1_batches_post( :return: Returns the result object. """ # noqa: E501 - _param = self._create_batch_v1_batches_post_serialize( + _param = self._create_batch_api_v1_batches_post_serialize( create_batch_request=create_batch_request, _request_auth=_request_auth, _content_type=_content_type, @@ -388,7 +388,7 @@ def create_batch_v1_batches_post( @validate_call - def create_batch_v1_batches_post_with_http_info( + def create_batch_api_v1_batches_post_with_http_info( self, create_batch_request: CreateBatchRequest, _request_timeout: Union[ @@ -432,7 +432,7 @@ def create_batch_v1_batches_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_batch_v1_batches_post_serialize( + _param = self._create_batch_api_v1_batches_post_serialize( create_batch_request=create_batch_request, _request_auth=_request_auth, _content_type=_content_type, @@ -456,7 +456,7 @@ def create_batch_v1_batches_post_with_http_info( @validate_call - def create_batch_v1_batches_post_without_preload_content( + def create_batch_api_v1_batches_post_without_preload_content( self, create_batch_request: CreateBatchRequest, _request_timeout: Union[ @@ -500,7 +500,7 @@ def create_batch_v1_batches_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._create_batch_v1_batches_post_serialize( + _param = self._create_batch_api_v1_batches_post_serialize( create_batch_request=create_batch_request, _request_auth=_request_auth, _content_type=_content_type, @@ -519,7 +519,7 @@ def create_batch_v1_batches_post_without_preload_content( return response_data.response - def _create_batch_v1_batches_post_serialize( + def _create_batch_api_v1_batches_post_serialize( self, create_batch_request, _request_auth, @@ -581,7 +581,7 @@ def _create_batch_v1_batches_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/batches', + resource_path='/api/v1/batches', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -598,7 +598,7 @@ def _create_batch_v1_batches_post_serialize( @validate_call - def list_batches_v1_batches_get( + def list_batches_api_v1_batches_get( self, provider: StrictStr, after: Optional[StrictStr] = None, @@ -648,7 +648,7 @@ def list_batches_v1_batches_get( :return: Returns the result object. """ # noqa: E501 - _param = self._list_batches_v1_batches_get_serialize( + _param = self._list_batches_api_v1_batches_get_serialize( provider=provider, after=after, limit=limit, @@ -674,7 +674,7 @@ def list_batches_v1_batches_get( @validate_call - def list_batches_v1_batches_get_with_http_info( + def list_batches_api_v1_batches_get_with_http_info( self, provider: StrictStr, after: Optional[StrictStr] = None, @@ -724,7 +724,7 @@ def list_batches_v1_batches_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_batches_v1_batches_get_serialize( + _param = self._list_batches_api_v1_batches_get_serialize( provider=provider, after=after, limit=limit, @@ -750,7 +750,7 @@ def list_batches_v1_batches_get_with_http_info( @validate_call - def list_batches_v1_batches_get_without_preload_content( + def list_batches_api_v1_batches_get_without_preload_content( self, provider: StrictStr, after: Optional[StrictStr] = None, @@ -800,7 +800,7 @@ def list_batches_v1_batches_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._list_batches_v1_batches_get_serialize( + _param = self._list_batches_api_v1_batches_get_serialize( provider=provider, after=after, limit=limit, @@ -821,7 +821,7 @@ def list_batches_v1_batches_get_without_preload_content( return response_data.response - def _list_batches_v1_batches_get_serialize( + def _list_batches_api_v1_batches_get_serialize( self, provider, after, @@ -882,7 +882,7 @@ def _list_batches_v1_batches_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/batches', + resource_path='/api/v1/batches', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -899,7 +899,7 @@ def _list_batches_v1_batches_get_serialize( @validate_call - def retrieve_batch_results_v1_batches_batch_id_results_get( + def retrieve_batch_api_v1_batches_batch_id_get( self, batch_id: StrictStr, provider: StrictStr, @@ -916,9 +916,9 @@ def retrieve_batch_results_v1_batches_batch_id_results_get( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> object: - """Retrieve Batch Results + """Retrieve Batch - Retrieve the results of a completed batch. + Retrieve the status of a batch. :param batch_id: (required) :type batch_id: str @@ -946,7 +946,7 @@ def retrieve_batch_results_v1_batches_batch_id_results_get( :return: Returns the result object. """ # noqa: E501 - _param = self._retrieve_batch_results_v1_batches_batch_id_results_get_serialize( + _param = self._retrieve_batch_api_v1_batches_batch_id_get_serialize( batch_id=batch_id, provider=provider, _request_auth=_request_auth, @@ -957,9 +957,7 @@ def retrieve_batch_results_v1_batches_batch_id_results_get( _response_types_map: Dict[str, Optional[str]] = { '200': "object", - '409': None, '422': "HTTPValidationError", - '502': None, } response_data = self.api_client.call_api( *_param, @@ -973,7 +971,7 @@ def retrieve_batch_results_v1_batches_batch_id_results_get( @validate_call - def retrieve_batch_results_v1_batches_batch_id_results_get_with_http_info( + def retrieve_batch_api_v1_batches_batch_id_get_with_http_info( self, batch_id: StrictStr, provider: StrictStr, @@ -990,9 +988,9 @@ def retrieve_batch_results_v1_batches_batch_id_results_get_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[object]: - """Retrieve Batch Results + """Retrieve Batch - Retrieve the results of a completed batch. + Retrieve the status of a batch. :param batch_id: (required) :type batch_id: str @@ -1020,7 +1018,7 @@ def retrieve_batch_results_v1_batches_batch_id_results_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._retrieve_batch_results_v1_batches_batch_id_results_get_serialize( + _param = self._retrieve_batch_api_v1_batches_batch_id_get_serialize( batch_id=batch_id, provider=provider, _request_auth=_request_auth, @@ -1031,9 +1029,7 @@ def retrieve_batch_results_v1_batches_batch_id_results_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "object", - '409': None, '422': "HTTPValidationError", - '502': None, } response_data = self.api_client.call_api( *_param, @@ -1047,7 +1043,7 @@ def retrieve_batch_results_v1_batches_batch_id_results_get_with_http_info( @validate_call - def retrieve_batch_results_v1_batches_batch_id_results_get_without_preload_content( + def retrieve_batch_api_v1_batches_batch_id_get_without_preload_content( self, batch_id: StrictStr, provider: StrictStr, @@ -1064,9 +1060,9 @@ def retrieve_batch_results_v1_batches_batch_id_results_get_without_preload_conte _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Retrieve Batch Results + """Retrieve Batch - Retrieve the results of a completed batch. + Retrieve the status of a batch. :param batch_id: (required) :type batch_id: str @@ -1094,7 +1090,7 @@ def retrieve_batch_results_v1_batches_batch_id_results_get_without_preload_conte :return: Returns the result object. """ # noqa: E501 - _param = self._retrieve_batch_results_v1_batches_batch_id_results_get_serialize( + _param = self._retrieve_batch_api_v1_batches_batch_id_get_serialize( batch_id=batch_id, provider=provider, _request_auth=_request_auth, @@ -1105,9 +1101,7 @@ def retrieve_batch_results_v1_batches_batch_id_results_get_without_preload_conte _response_types_map: Dict[str, Optional[str]] = { '200': "object", - '409': None, '422': "HTTPValidationError", - '502': None, } response_data = self.api_client.call_api( *_param, @@ -1116,7 +1110,7 @@ def retrieve_batch_results_v1_batches_batch_id_results_get_without_preload_conte return response_data.response - def _retrieve_batch_results_v1_batches_batch_id_results_get_serialize( + def _retrieve_batch_api_v1_batches_batch_id_get_serialize( self, batch_id, provider, @@ -1170,7 +1164,7 @@ def _retrieve_batch_results_v1_batches_batch_id_results_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/batches/{batch_id}/results', + resource_path='/api/v1/batches/{batch_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1187,7 +1181,7 @@ def _retrieve_batch_results_v1_batches_batch_id_results_get_serialize( @validate_call - def retrieve_batch_v1_batches_batch_id_get( + def retrieve_batch_results_api_v1_batches_batch_id_results_get( self, batch_id: StrictStr, provider: StrictStr, @@ -1204,9 +1198,9 @@ def retrieve_batch_v1_batches_batch_id_get( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> object: - """Retrieve Batch + """Retrieve Batch Results - Retrieve the status of a batch. + Retrieve the results of a completed batch. :param batch_id: (required) :type batch_id: str @@ -1234,7 +1228,7 @@ def retrieve_batch_v1_batches_batch_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._retrieve_batch_v1_batches_batch_id_get_serialize( + _param = self._retrieve_batch_results_api_v1_batches_batch_id_results_get_serialize( batch_id=batch_id, provider=provider, _request_auth=_request_auth, @@ -1245,7 +1239,9 @@ def retrieve_batch_v1_batches_batch_id_get( _response_types_map: Dict[str, Optional[str]] = { '200': "object", + '409': None, '422': "HTTPValidationError", + '502': None, } response_data = self.api_client.call_api( *_param, @@ -1259,7 +1255,7 @@ def retrieve_batch_v1_batches_batch_id_get( @validate_call - def retrieve_batch_v1_batches_batch_id_get_with_http_info( + def retrieve_batch_results_api_v1_batches_batch_id_results_get_with_http_info( self, batch_id: StrictStr, provider: StrictStr, @@ -1276,9 +1272,9 @@ def retrieve_batch_v1_batches_batch_id_get_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[object]: - """Retrieve Batch + """Retrieve Batch Results - Retrieve the status of a batch. + Retrieve the results of a completed batch. :param batch_id: (required) :type batch_id: str @@ -1306,7 +1302,7 @@ def retrieve_batch_v1_batches_batch_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._retrieve_batch_v1_batches_batch_id_get_serialize( + _param = self._retrieve_batch_results_api_v1_batches_batch_id_results_get_serialize( batch_id=batch_id, provider=provider, _request_auth=_request_auth, @@ -1317,7 +1313,9 @@ def retrieve_batch_v1_batches_batch_id_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "object", + '409': None, '422': "HTTPValidationError", + '502': None, } response_data = self.api_client.call_api( *_param, @@ -1331,7 +1329,7 @@ def retrieve_batch_v1_batches_batch_id_get_with_http_info( @validate_call - def retrieve_batch_v1_batches_batch_id_get_without_preload_content( + def retrieve_batch_results_api_v1_batches_batch_id_results_get_without_preload_content( self, batch_id: StrictStr, provider: StrictStr, @@ -1348,9 +1346,9 @@ def retrieve_batch_v1_batches_batch_id_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Retrieve Batch + """Retrieve Batch Results - Retrieve the status of a batch. + Retrieve the results of a completed batch. :param batch_id: (required) :type batch_id: str @@ -1378,7 +1376,7 @@ def retrieve_batch_v1_batches_batch_id_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._retrieve_batch_v1_batches_batch_id_get_serialize( + _param = self._retrieve_batch_results_api_v1_batches_batch_id_results_get_serialize( batch_id=batch_id, provider=provider, _request_auth=_request_auth, @@ -1389,7 +1387,9 @@ def retrieve_batch_v1_batches_batch_id_get_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "object", + '409': None, '422': "HTTPValidationError", + '502': None, } response_data = self.api_client.call_api( *_param, @@ -1398,7 +1398,7 @@ def retrieve_batch_v1_batches_batch_id_get_without_preload_content( return response_data.response - def _retrieve_batch_v1_batches_batch_id_get_serialize( + def _retrieve_batch_results_api_v1_batches_batch_id_results_get_serialize( self, batch_id, provider, @@ -1452,7 +1452,7 @@ def _retrieve_batch_v1_batches_batch_id_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/batches/{batch_id}', + resource_path='/api/v1/batches/{batch_id}/results', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/bootstrap_api.py b/src/otari/_client/api/bootstrap_api.py index a6cff44..288a5df 100644 --- a/src/otari/_client/api/bootstrap_api.py +++ b/src/otari/_client/api/bootstrap_api.py @@ -36,7 +36,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def get_bootstrap_v1_bootstrap_get( + def get_bootstrap_api_v1_bootstrap_get( self, _request_timeout: Union[ None, @@ -77,7 +77,7 @@ def get_bootstrap_v1_bootstrap_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_bootstrap_v1_bootstrap_get_serialize( + _param = self._get_bootstrap_api_v1_bootstrap_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -99,7 +99,7 @@ def get_bootstrap_v1_bootstrap_get( @validate_call - def get_bootstrap_v1_bootstrap_get_with_http_info( + def get_bootstrap_api_v1_bootstrap_get_with_http_info( self, _request_timeout: Union[ None, @@ -140,7 +140,7 @@ def get_bootstrap_v1_bootstrap_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_bootstrap_v1_bootstrap_get_serialize( + _param = self._get_bootstrap_api_v1_bootstrap_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -162,7 +162,7 @@ def get_bootstrap_v1_bootstrap_get_with_http_info( @validate_call - def get_bootstrap_v1_bootstrap_get_without_preload_content( + def get_bootstrap_api_v1_bootstrap_get_without_preload_content( self, _request_timeout: Union[ None, @@ -203,7 +203,7 @@ def get_bootstrap_v1_bootstrap_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_bootstrap_v1_bootstrap_get_serialize( + _param = self._get_bootstrap_api_v1_bootstrap_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -220,7 +220,7 @@ def get_bootstrap_v1_bootstrap_get_without_preload_content( return response_data.response - def _get_bootstrap_v1_bootstrap_get_serialize( + def _get_bootstrap_api_v1_bootstrap_get_serialize( self, _request_auth, _content_type, @@ -264,7 +264,7 @@ def _get_bootstrap_v1_bootstrap_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/bootstrap', + resource_path='/api/v1/bootstrap', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/budgets_api.py b/src/otari/_client/api/budgets_api.py index 4ddbeef..a41b4eb 100644 --- a/src/otari/_client/api/budgets_api.py +++ b/src/otari/_client/api/budgets_api.py @@ -42,7 +42,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def create_budget_v1_budgets_post( + def create_budget_api_v1_budgets_post( self, create_budget_request: CreateBudgetRequest, _request_timeout: Union[ @@ -86,7 +86,7 @@ def create_budget_v1_budgets_post( :return: Returns the result object. """ # noqa: E501 - _param = self._create_budget_v1_budgets_post_serialize( + _param = self._create_budget_api_v1_budgets_post_serialize( create_budget_request=create_budget_request, _request_auth=_request_auth, _content_type=_content_type, @@ -110,7 +110,7 @@ def create_budget_v1_budgets_post( @validate_call - def create_budget_v1_budgets_post_with_http_info( + def create_budget_api_v1_budgets_post_with_http_info( self, create_budget_request: CreateBudgetRequest, _request_timeout: Union[ @@ -154,7 +154,7 @@ def create_budget_v1_budgets_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_budget_v1_budgets_post_serialize( + _param = self._create_budget_api_v1_budgets_post_serialize( create_budget_request=create_budget_request, _request_auth=_request_auth, _content_type=_content_type, @@ -178,7 +178,7 @@ def create_budget_v1_budgets_post_with_http_info( @validate_call - def create_budget_v1_budgets_post_without_preload_content( + def create_budget_api_v1_budgets_post_without_preload_content( self, create_budget_request: CreateBudgetRequest, _request_timeout: Union[ @@ -222,7 +222,7 @@ def create_budget_v1_budgets_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._create_budget_v1_budgets_post_serialize( + _param = self._create_budget_api_v1_budgets_post_serialize( create_budget_request=create_budget_request, _request_auth=_request_auth, _content_type=_content_type, @@ -241,7 +241,7 @@ def create_budget_v1_budgets_post_without_preload_content( return response_data.response - def _create_budget_v1_budgets_post_serialize( + def _create_budget_api_v1_budgets_post_serialize( self, create_budget_request, _request_auth, @@ -303,7 +303,7 @@ def _create_budget_v1_budgets_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/budgets', + resource_path='/api/v1/budgets', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -320,7 +320,7 @@ def _create_budget_v1_budgets_post_serialize( @validate_call - def delete_budget_v1_budgets_budget_id_delete( + def delete_budget_api_v1_budgets_budget_id_delete( self, budget_id: StrictStr, _request_timeout: Union[ @@ -364,7 +364,7 @@ def delete_budget_v1_budgets_budget_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_budget_v1_budgets_budget_id_delete_serialize( + _param = self._delete_budget_api_v1_budgets_budget_id_delete_serialize( budget_id=budget_id, _request_auth=_request_auth, _content_type=_content_type, @@ -388,7 +388,7 @@ def delete_budget_v1_budgets_budget_id_delete( @validate_call - def delete_budget_v1_budgets_budget_id_delete_with_http_info( + def delete_budget_api_v1_budgets_budget_id_delete_with_http_info( self, budget_id: StrictStr, _request_timeout: Union[ @@ -432,7 +432,7 @@ def delete_budget_v1_budgets_budget_id_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_budget_v1_budgets_budget_id_delete_serialize( + _param = self._delete_budget_api_v1_budgets_budget_id_delete_serialize( budget_id=budget_id, _request_auth=_request_auth, _content_type=_content_type, @@ -456,7 +456,7 @@ def delete_budget_v1_budgets_budget_id_delete_with_http_info( @validate_call - def delete_budget_v1_budgets_budget_id_delete_without_preload_content( + def delete_budget_api_v1_budgets_budget_id_delete_without_preload_content( self, budget_id: StrictStr, _request_timeout: Union[ @@ -500,7 +500,7 @@ def delete_budget_v1_budgets_budget_id_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_budget_v1_budgets_budget_id_delete_serialize( + _param = self._delete_budget_api_v1_budgets_budget_id_delete_serialize( budget_id=budget_id, _request_auth=_request_auth, _content_type=_content_type, @@ -519,7 +519,7 @@ def delete_budget_v1_budgets_budget_id_delete_without_preload_content( return response_data.response - def _delete_budget_v1_budgets_budget_id_delete_serialize( + def _delete_budget_api_v1_budgets_budget_id_delete_serialize( self, budget_id, _request_auth, @@ -568,7 +568,7 @@ def _delete_budget_v1_budgets_budget_id_delete_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/v1/budgets/{budget_id}', + resource_path='/api/v1/budgets/{budget_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -585,7 +585,7 @@ def _delete_budget_v1_budgets_budget_id_delete_serialize( @validate_call - def get_budget_v1_budgets_budget_id_get( + def get_budget_api_v1_budgets_budget_id_get( self, budget_id: StrictStr, _request_timeout: Union[ @@ -629,7 +629,7 @@ def get_budget_v1_budgets_budget_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_budget_v1_budgets_budget_id_get_serialize( + _param = self._get_budget_api_v1_budgets_budget_id_get_serialize( budget_id=budget_id, _request_auth=_request_auth, _content_type=_content_type, @@ -653,7 +653,7 @@ def get_budget_v1_budgets_budget_id_get( @validate_call - def get_budget_v1_budgets_budget_id_get_with_http_info( + def get_budget_api_v1_budgets_budget_id_get_with_http_info( self, budget_id: StrictStr, _request_timeout: Union[ @@ -697,7 +697,7 @@ def get_budget_v1_budgets_budget_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_budget_v1_budgets_budget_id_get_serialize( + _param = self._get_budget_api_v1_budgets_budget_id_get_serialize( budget_id=budget_id, _request_auth=_request_auth, _content_type=_content_type, @@ -721,7 +721,7 @@ def get_budget_v1_budgets_budget_id_get_with_http_info( @validate_call - def get_budget_v1_budgets_budget_id_get_without_preload_content( + def get_budget_api_v1_budgets_budget_id_get_without_preload_content( self, budget_id: StrictStr, _request_timeout: Union[ @@ -765,7 +765,7 @@ def get_budget_v1_budgets_budget_id_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_budget_v1_budgets_budget_id_get_serialize( + _param = self._get_budget_api_v1_budgets_budget_id_get_serialize( budget_id=budget_id, _request_auth=_request_auth, _content_type=_content_type, @@ -784,7 +784,7 @@ def get_budget_v1_budgets_budget_id_get_without_preload_content( return response_data.response - def _get_budget_v1_budgets_budget_id_get_serialize( + def _get_budget_api_v1_budgets_budget_id_get_serialize( self, budget_id, _request_auth, @@ -833,7 +833,7 @@ def _get_budget_v1_budgets_budget_id_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/budgets/{budget_id}', + resource_path='/api/v1/budgets/{budget_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -850,7 +850,7 @@ def _get_budget_v1_budgets_budget_id_get_serialize( @validate_call - def list_budget_reset_logs_v1_budgets_budget_id_reset_logs_get( + def list_budget_reset_logs_api_v1_budgets_budget_id_reset_logs_get( self, budget_id: StrictStr, skip: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, @@ -900,7 +900,7 @@ def list_budget_reset_logs_v1_budgets_budget_id_reset_logs_get( :return: Returns the result object. """ # noqa: E501 - _param = self._list_budget_reset_logs_v1_budgets_budget_id_reset_logs_get_serialize( + _param = self._list_budget_reset_logs_api_v1_budgets_budget_id_reset_logs_get_serialize( budget_id=budget_id, skip=skip, limit=limit, @@ -926,7 +926,7 @@ def list_budget_reset_logs_v1_budgets_budget_id_reset_logs_get( @validate_call - def list_budget_reset_logs_v1_budgets_budget_id_reset_logs_get_with_http_info( + def list_budget_reset_logs_api_v1_budgets_budget_id_reset_logs_get_with_http_info( self, budget_id: StrictStr, skip: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, @@ -976,7 +976,7 @@ def list_budget_reset_logs_v1_budgets_budget_id_reset_logs_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_budget_reset_logs_v1_budgets_budget_id_reset_logs_get_serialize( + _param = self._list_budget_reset_logs_api_v1_budgets_budget_id_reset_logs_get_serialize( budget_id=budget_id, skip=skip, limit=limit, @@ -1002,7 +1002,7 @@ def list_budget_reset_logs_v1_budgets_budget_id_reset_logs_get_with_http_info( @validate_call - def list_budget_reset_logs_v1_budgets_budget_id_reset_logs_get_without_preload_content( + def list_budget_reset_logs_api_v1_budgets_budget_id_reset_logs_get_without_preload_content( self, budget_id: StrictStr, skip: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, @@ -1052,7 +1052,7 @@ def list_budget_reset_logs_v1_budgets_budget_id_reset_logs_get_without_preload_c :return: Returns the result object. """ # noqa: E501 - _param = self._list_budget_reset_logs_v1_budgets_budget_id_reset_logs_get_serialize( + _param = self._list_budget_reset_logs_api_v1_budgets_budget_id_reset_logs_get_serialize( budget_id=budget_id, skip=skip, limit=limit, @@ -1073,7 +1073,7 @@ def list_budget_reset_logs_v1_budgets_budget_id_reset_logs_get_without_preload_c return response_data.response - def _list_budget_reset_logs_v1_budgets_budget_id_reset_logs_get_serialize( + def _list_budget_reset_logs_api_v1_budgets_budget_id_reset_logs_get_serialize( self, budget_id, skip, @@ -1132,7 +1132,7 @@ def _list_budget_reset_logs_v1_budgets_budget_id_reset_logs_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/budgets/{budget_id}/reset-logs', + resource_path='/api/v1/budgets/{budget_id}/reset-logs', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1149,7 +1149,7 @@ def _list_budget_reset_logs_v1_budgets_budget_id_reset_logs_get_serialize( @validate_call - def list_budgets_v1_budgets_get( + def list_budgets_api_v1_budgets_get( self, skip: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, limit: Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]] = None, @@ -1196,7 +1196,7 @@ def list_budgets_v1_budgets_get( :return: Returns the result object. """ # noqa: E501 - _param = self._list_budgets_v1_budgets_get_serialize( + _param = self._list_budgets_api_v1_budgets_get_serialize( skip=skip, limit=limit, _request_auth=_request_auth, @@ -1221,7 +1221,7 @@ def list_budgets_v1_budgets_get( @validate_call - def list_budgets_v1_budgets_get_with_http_info( + def list_budgets_api_v1_budgets_get_with_http_info( self, skip: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, limit: Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]] = None, @@ -1268,7 +1268,7 @@ def list_budgets_v1_budgets_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_budgets_v1_budgets_get_serialize( + _param = self._list_budgets_api_v1_budgets_get_serialize( skip=skip, limit=limit, _request_auth=_request_auth, @@ -1293,7 +1293,7 @@ def list_budgets_v1_budgets_get_with_http_info( @validate_call - def list_budgets_v1_budgets_get_without_preload_content( + def list_budgets_api_v1_budgets_get_without_preload_content( self, skip: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, limit: Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]] = None, @@ -1340,7 +1340,7 @@ def list_budgets_v1_budgets_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._list_budgets_v1_budgets_get_serialize( + _param = self._list_budgets_api_v1_budgets_get_serialize( skip=skip, limit=limit, _request_auth=_request_auth, @@ -1360,7 +1360,7 @@ def list_budgets_v1_budgets_get_without_preload_content( return response_data.response - def _list_budgets_v1_budgets_get_serialize( + def _list_budgets_api_v1_budgets_get_serialize( self, skip, limit, @@ -1416,7 +1416,7 @@ def _list_budgets_v1_budgets_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/budgets', + resource_path='/api/v1/budgets', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1433,7 +1433,7 @@ def _list_budgets_v1_budgets_get_serialize( @validate_call - def update_budget_v1_budgets_budget_id_patch( + def update_budget_api_v1_budgets_budget_id_patch( self, budget_id: StrictStr, update_budget_request: UpdateBudgetRequest, @@ -1480,7 +1480,7 @@ def update_budget_v1_budgets_budget_id_patch( :return: Returns the result object. """ # noqa: E501 - _param = self._update_budget_v1_budgets_budget_id_patch_serialize( + _param = self._update_budget_api_v1_budgets_budget_id_patch_serialize( budget_id=budget_id, update_budget_request=update_budget_request, _request_auth=_request_auth, @@ -1505,7 +1505,7 @@ def update_budget_v1_budgets_budget_id_patch( @validate_call - def update_budget_v1_budgets_budget_id_patch_with_http_info( + def update_budget_api_v1_budgets_budget_id_patch_with_http_info( self, budget_id: StrictStr, update_budget_request: UpdateBudgetRequest, @@ -1552,7 +1552,7 @@ def update_budget_v1_budgets_budget_id_patch_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._update_budget_v1_budgets_budget_id_patch_serialize( + _param = self._update_budget_api_v1_budgets_budget_id_patch_serialize( budget_id=budget_id, update_budget_request=update_budget_request, _request_auth=_request_auth, @@ -1577,7 +1577,7 @@ def update_budget_v1_budgets_budget_id_patch_with_http_info( @validate_call - def update_budget_v1_budgets_budget_id_patch_without_preload_content( + def update_budget_api_v1_budgets_budget_id_patch_without_preload_content( self, budget_id: StrictStr, update_budget_request: UpdateBudgetRequest, @@ -1624,7 +1624,7 @@ def update_budget_v1_budgets_budget_id_patch_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._update_budget_v1_budgets_budget_id_patch_serialize( + _param = self._update_budget_api_v1_budgets_budget_id_patch_serialize( budget_id=budget_id, update_budget_request=update_budget_request, _request_auth=_request_auth, @@ -1644,7 +1644,7 @@ def update_budget_v1_budgets_budget_id_patch_without_preload_content( return response_data.response - def _update_budget_v1_budgets_budget_id_patch_serialize( + def _update_budget_api_v1_budgets_budget_id_patch_serialize( self, budget_id, update_budget_request, @@ -1709,7 +1709,7 @@ def _update_budget_v1_budgets_budget_id_patch_serialize( return self.api_client.param_serialize( method='PATCH', - resource_path='/v1/budgets/{budget_id}', + resource_path='/api/v1/budgets/{budget_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/chat_api.py b/src/otari/_client/api/chat_api.py index a22dcf8..075f595 100644 --- a/src/otari/_client/api/chat_api.py +++ b/src/otari/_client/api/chat_api.py @@ -37,7 +37,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def chat_completions_v1_chat_completions_post( + def chat_completions_api_v1_chat_completions_post( self, chat_completion_request: ChatCompletionRequest, _request_timeout: Union[ @@ -81,7 +81,7 @@ def chat_completions_v1_chat_completions_post( :return: Returns the result object. """ # noqa: E501 - _param = self._chat_completions_v1_chat_completions_post_serialize( + _param = self._chat_completions_api_v1_chat_completions_post_serialize( chat_completion_request=chat_completion_request, _request_auth=_request_auth, _content_type=_content_type, @@ -105,7 +105,7 @@ def chat_completions_v1_chat_completions_post( @validate_call - def chat_completions_v1_chat_completions_post_with_http_info( + def chat_completions_api_v1_chat_completions_post_with_http_info( self, chat_completion_request: ChatCompletionRequest, _request_timeout: Union[ @@ -149,7 +149,7 @@ def chat_completions_v1_chat_completions_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._chat_completions_v1_chat_completions_post_serialize( + _param = self._chat_completions_api_v1_chat_completions_post_serialize( chat_completion_request=chat_completion_request, _request_auth=_request_auth, _content_type=_content_type, @@ -173,7 +173,7 @@ def chat_completions_v1_chat_completions_post_with_http_info( @validate_call - def chat_completions_v1_chat_completions_post_without_preload_content( + def chat_completions_api_v1_chat_completions_post_without_preload_content( self, chat_completion_request: ChatCompletionRequest, _request_timeout: Union[ @@ -217,7 +217,7 @@ def chat_completions_v1_chat_completions_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._chat_completions_v1_chat_completions_post_serialize( + _param = self._chat_completions_api_v1_chat_completions_post_serialize( chat_completion_request=chat_completion_request, _request_auth=_request_auth, _content_type=_content_type, @@ -236,7 +236,7 @@ def chat_completions_v1_chat_completions_post_without_preload_content( return response_data.response - def _chat_completions_v1_chat_completions_post_serialize( + def _chat_completions_api_v1_chat_completions_post_serialize( self, chat_completion_request, _request_auth, @@ -298,7 +298,7 @@ def _chat_completions_v1_chat_completions_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/chat/completions', + resource_path='/api/v1/chat/completions', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/embeddings_api.py b/src/otari/_client/api/embeddings_api.py index 6c0254a..276fc8b 100644 --- a/src/otari/_client/api/embeddings_api.py +++ b/src/otari/_client/api/embeddings_api.py @@ -37,7 +37,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def create_embedding_v1_embeddings_post( + def create_embedding_api_v1_embeddings_post( self, embedding_request: EmbeddingRequest, _request_timeout: Union[ @@ -81,7 +81,7 @@ def create_embedding_v1_embeddings_post( :return: Returns the result object. """ # noqa: E501 - _param = self._create_embedding_v1_embeddings_post_serialize( + _param = self._create_embedding_api_v1_embeddings_post_serialize( embedding_request=embedding_request, _request_auth=_request_auth, _content_type=_content_type, @@ -105,7 +105,7 @@ def create_embedding_v1_embeddings_post( @validate_call - def create_embedding_v1_embeddings_post_with_http_info( + def create_embedding_api_v1_embeddings_post_with_http_info( self, embedding_request: EmbeddingRequest, _request_timeout: Union[ @@ -149,7 +149,7 @@ def create_embedding_v1_embeddings_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_embedding_v1_embeddings_post_serialize( + _param = self._create_embedding_api_v1_embeddings_post_serialize( embedding_request=embedding_request, _request_auth=_request_auth, _content_type=_content_type, @@ -173,7 +173,7 @@ def create_embedding_v1_embeddings_post_with_http_info( @validate_call - def create_embedding_v1_embeddings_post_without_preload_content( + def create_embedding_api_v1_embeddings_post_without_preload_content( self, embedding_request: EmbeddingRequest, _request_timeout: Union[ @@ -217,7 +217,7 @@ def create_embedding_v1_embeddings_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._create_embedding_v1_embeddings_post_serialize( + _param = self._create_embedding_api_v1_embeddings_post_serialize( embedding_request=embedding_request, _request_auth=_request_auth, _content_type=_content_type, @@ -236,7 +236,7 @@ def create_embedding_v1_embeddings_post_without_preload_content( return response_data.response - def _create_embedding_v1_embeddings_post_serialize( + def _create_embedding_api_v1_embeddings_post_serialize( self, embedding_request, _request_auth, @@ -298,7 +298,7 @@ def _create_embedding_v1_embeddings_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/embeddings', + resource_path='/api/v1/embeddings', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/files_api.py b/src/otari/_client/api/files_api.py index c588e25..a904000 100644 --- a/src/otari/_client/api/files_api.py +++ b/src/otari/_client/api/files_api.py @@ -38,7 +38,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def create_file_v1_files_post( + def create_file_api_v1_files_post( self, file: StrictStr, purpose: Optional[StrictStr] = None, @@ -88,7 +88,7 @@ def create_file_v1_files_post( :return: Returns the result object. """ # noqa: E501 - _param = self._create_file_v1_files_post_serialize( + _param = self._create_file_api_v1_files_post_serialize( file=file, purpose=purpose, user=user, @@ -114,7 +114,7 @@ def create_file_v1_files_post( @validate_call - def create_file_v1_files_post_with_http_info( + def create_file_api_v1_files_post_with_http_info( self, file: StrictStr, purpose: Optional[StrictStr] = None, @@ -164,7 +164,7 @@ def create_file_v1_files_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_file_v1_files_post_serialize( + _param = self._create_file_api_v1_files_post_serialize( file=file, purpose=purpose, user=user, @@ -190,7 +190,7 @@ def create_file_v1_files_post_with_http_info( @validate_call - def create_file_v1_files_post_without_preload_content( + def create_file_api_v1_files_post_without_preload_content( self, file: StrictStr, purpose: Optional[StrictStr] = None, @@ -240,7 +240,7 @@ def create_file_v1_files_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._create_file_v1_files_post_serialize( + _param = self._create_file_api_v1_files_post_serialize( file=file, purpose=purpose, user=user, @@ -261,7 +261,7 @@ def create_file_v1_files_post_without_preload_content( return response_data.response - def _create_file_v1_files_post_serialize( + def _create_file_api_v1_files_post_serialize( self, file, purpose, @@ -329,7 +329,7 @@ def _create_file_v1_files_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/files', + resource_path='/api/v1/files', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -346,7 +346,7 @@ def _create_file_v1_files_post_serialize( @validate_call - def delete_file_v1_files_file_id_delete( + def delete_file_api_v1_files_file_id_delete( self, file_id: StrictStr, user: Optional[StrictStr] = None, @@ -393,7 +393,7 @@ def delete_file_v1_files_file_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_file_v1_files_file_id_delete_serialize( + _param = self._delete_file_api_v1_files_file_id_delete_serialize( file_id=file_id, user=user, _request_auth=_request_auth, @@ -418,7 +418,7 @@ def delete_file_v1_files_file_id_delete( @validate_call - def delete_file_v1_files_file_id_delete_with_http_info( + def delete_file_api_v1_files_file_id_delete_with_http_info( self, file_id: StrictStr, user: Optional[StrictStr] = None, @@ -465,7 +465,7 @@ def delete_file_v1_files_file_id_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_file_v1_files_file_id_delete_serialize( + _param = self._delete_file_api_v1_files_file_id_delete_serialize( file_id=file_id, user=user, _request_auth=_request_auth, @@ -490,7 +490,7 @@ def delete_file_v1_files_file_id_delete_with_http_info( @validate_call - def delete_file_v1_files_file_id_delete_without_preload_content( + def delete_file_api_v1_files_file_id_delete_without_preload_content( self, file_id: StrictStr, user: Optional[StrictStr] = None, @@ -537,7 +537,7 @@ def delete_file_v1_files_file_id_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_file_v1_files_file_id_delete_serialize( + _param = self._delete_file_api_v1_files_file_id_delete_serialize( file_id=file_id, user=user, _request_auth=_request_auth, @@ -557,7 +557,7 @@ def delete_file_v1_files_file_id_delete_without_preload_content( return response_data.response - def _delete_file_v1_files_file_id_delete_serialize( + def _delete_file_api_v1_files_file_id_delete_serialize( self, file_id, user, @@ -611,7 +611,7 @@ def _delete_file_v1_files_file_id_delete_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/v1/files/{file_id}', + resource_path='/api/v1/files/{file_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -628,7 +628,7 @@ def _delete_file_v1_files_file_id_delete_serialize( @validate_call - def get_file_content_v1_files_file_id_content_get( + def get_file_api_v1_files_file_id_get( self, file_id: StrictStr, user: Optional[StrictStr] = None, @@ -644,10 +644,10 @@ def get_file_content_v1_files_file_id_content_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> bytes: - """Get File Content + ) -> Dict[str, object]: + """Get File - Download the raw bytes of a file, streamed rather than buffered whole. + Retrieve metadata for a single file. :param file_id: (required) :type file_id: str @@ -675,7 +675,7 @@ def get_file_content_v1_files_file_id_content_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_file_content_v1_files_file_id_content_get_serialize( + _param = self._get_file_api_v1_files_file_id_get_serialize( file_id=file_id, user=user, _request_auth=_request_auth, @@ -685,7 +685,7 @@ def get_file_content_v1_files_file_id_content_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytes", + '200': "Dict[str, object]", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -700,7 +700,7 @@ def get_file_content_v1_files_file_id_content_get( @validate_call - def get_file_content_v1_files_file_id_content_get_with_http_info( + def get_file_api_v1_files_file_id_get_with_http_info( self, file_id: StrictStr, user: Optional[StrictStr] = None, @@ -716,10 +716,10 @@ def get_file_content_v1_files_file_id_content_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[bytes]: - """Get File Content + ) -> ApiResponse[Dict[str, object]]: + """Get File - Download the raw bytes of a file, streamed rather than buffered whole. + Retrieve metadata for a single file. :param file_id: (required) :type file_id: str @@ -747,7 +747,7 @@ def get_file_content_v1_files_file_id_content_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_file_content_v1_files_file_id_content_get_serialize( + _param = self._get_file_api_v1_files_file_id_get_serialize( file_id=file_id, user=user, _request_auth=_request_auth, @@ -757,7 +757,7 @@ def get_file_content_v1_files_file_id_content_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytes", + '200': "Dict[str, object]", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -772,7 +772,7 @@ def get_file_content_v1_files_file_id_content_get_with_http_info( @validate_call - def get_file_content_v1_files_file_id_content_get_without_preload_content( + def get_file_api_v1_files_file_id_get_without_preload_content( self, file_id: StrictStr, user: Optional[StrictStr] = None, @@ -789,9 +789,9 @@ def get_file_content_v1_files_file_id_content_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get File Content + """Get File - Download the raw bytes of a file, streamed rather than buffered whole. + Retrieve metadata for a single file. :param file_id: (required) :type file_id: str @@ -819,7 +819,7 @@ def get_file_content_v1_files_file_id_content_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_file_content_v1_files_file_id_content_get_serialize( + _param = self._get_file_api_v1_files_file_id_get_serialize( file_id=file_id, user=user, _request_auth=_request_auth, @@ -829,7 +829,7 @@ def get_file_content_v1_files_file_id_content_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "bytes", + '200': "Dict[str, object]", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -839,7 +839,7 @@ def get_file_content_v1_files_file_id_content_get_without_preload_content( return response_data.response - def _get_file_content_v1_files_file_id_content_get_serialize( + def _get_file_api_v1_files_file_id_get_serialize( self, file_id, user, @@ -880,8 +880,6 @@ def _get_file_content_v1_files_file_id_content_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - '*/*', - 'application/octet-stream', 'application/json' ] ) @@ -895,7 +893,7 @@ def _get_file_content_v1_files_file_id_content_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/files/{file_id}/content', + resource_path='/api/v1/files/{file_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -912,7 +910,7 @@ def _get_file_content_v1_files_file_id_content_get_serialize( @validate_call - def get_file_v1_files_file_id_get( + def get_file_content_api_v1_files_file_id_content_get( self, file_id: StrictStr, user: Optional[StrictStr] = None, @@ -928,10 +926,10 @@ def get_file_v1_files_file_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Dict[str, object]: - """Get File + ) -> bytes: + """Get File Content - Retrieve metadata for a single file. + Download the raw bytes of a file, streamed rather than buffered whole. :param file_id: (required) :type file_id: str @@ -959,7 +957,7 @@ def get_file_v1_files_file_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_file_v1_files_file_id_get_serialize( + _param = self._get_file_content_api_v1_files_file_id_content_get_serialize( file_id=file_id, user=user, _request_auth=_request_auth, @@ -969,7 +967,7 @@ def get_file_v1_files_file_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Dict[str, object]", + '200': "bytes", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -984,7 +982,7 @@ def get_file_v1_files_file_id_get( @validate_call - def get_file_v1_files_file_id_get_with_http_info( + def get_file_content_api_v1_files_file_id_content_get_with_http_info( self, file_id: StrictStr, user: Optional[StrictStr] = None, @@ -1000,10 +998,10 @@ def get_file_v1_files_file_id_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[Dict[str, object]]: - """Get File + ) -> ApiResponse[bytes]: + """Get File Content - Retrieve metadata for a single file. + Download the raw bytes of a file, streamed rather than buffered whole. :param file_id: (required) :type file_id: str @@ -1031,7 +1029,7 @@ def get_file_v1_files_file_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_file_v1_files_file_id_get_serialize( + _param = self._get_file_content_api_v1_files_file_id_content_get_serialize( file_id=file_id, user=user, _request_auth=_request_auth, @@ -1041,7 +1039,7 @@ def get_file_v1_files_file_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Dict[str, object]", + '200': "bytes", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -1056,7 +1054,7 @@ def get_file_v1_files_file_id_get_with_http_info( @validate_call - def get_file_v1_files_file_id_get_without_preload_content( + def get_file_content_api_v1_files_file_id_content_get_without_preload_content( self, file_id: StrictStr, user: Optional[StrictStr] = None, @@ -1073,9 +1071,9 @@ def get_file_v1_files_file_id_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get File + """Get File Content - Retrieve metadata for a single file. + Download the raw bytes of a file, streamed rather than buffered whole. :param file_id: (required) :type file_id: str @@ -1103,7 +1101,7 @@ def get_file_v1_files_file_id_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_file_v1_files_file_id_get_serialize( + _param = self._get_file_content_api_v1_files_file_id_content_get_serialize( file_id=file_id, user=user, _request_auth=_request_auth, @@ -1113,7 +1111,7 @@ def get_file_v1_files_file_id_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Dict[str, object]", + '200': "bytes", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -1123,7 +1121,7 @@ def get_file_v1_files_file_id_get_without_preload_content( return response_data.response - def _get_file_v1_files_file_id_get_serialize( + def _get_file_content_api_v1_files_file_id_content_get_serialize( self, file_id, user, @@ -1164,6 +1162,8 @@ def _get_file_v1_files_file_id_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + '*/*', + 'application/octet-stream', 'application/json' ] ) @@ -1177,7 +1177,7 @@ def _get_file_v1_files_file_id_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/files/{file_id}', + resource_path='/api/v1/files/{file_id}/content', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1194,7 +1194,7 @@ def _get_file_v1_files_file_id_get_serialize( @validate_call - def list_files_v1_files_get( + def list_files_api_v1_files_get( self, user: Optional[StrictStr] = None, purpose: Optional[StrictStr] = None, @@ -1244,7 +1244,7 @@ def list_files_v1_files_get( :return: Returns the result object. """ # noqa: E501 - _param = self._list_files_v1_files_get_serialize( + _param = self._list_files_api_v1_files_get_serialize( user=user, purpose=purpose, workspace_id=workspace_id, @@ -1270,7 +1270,7 @@ def list_files_v1_files_get( @validate_call - def list_files_v1_files_get_with_http_info( + def list_files_api_v1_files_get_with_http_info( self, user: Optional[StrictStr] = None, purpose: Optional[StrictStr] = None, @@ -1320,7 +1320,7 @@ def list_files_v1_files_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_files_v1_files_get_serialize( + _param = self._list_files_api_v1_files_get_serialize( user=user, purpose=purpose, workspace_id=workspace_id, @@ -1346,7 +1346,7 @@ def list_files_v1_files_get_with_http_info( @validate_call - def list_files_v1_files_get_without_preload_content( + def list_files_api_v1_files_get_without_preload_content( self, user: Optional[StrictStr] = None, purpose: Optional[StrictStr] = None, @@ -1396,7 +1396,7 @@ def list_files_v1_files_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._list_files_v1_files_get_serialize( + _param = self._list_files_api_v1_files_get_serialize( user=user, purpose=purpose, workspace_id=workspace_id, @@ -1417,7 +1417,7 @@ def list_files_v1_files_get_without_preload_content( return response_data.response - def _list_files_v1_files_get_serialize( + def _list_files_api_v1_files_get_serialize( self, user, purpose, @@ -1478,7 +1478,7 @@ def _list_files_v1_files_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/files', + resource_path='/api/v1/files', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/health_api.py b/src/otari/_client/api/health_api.py index 669c1ca..2e4baea 100644 --- a/src/otari/_client/api/health_api.py +++ b/src/otari/_client/api/health_api.py @@ -16,7 +16,7 @@ from typing_extensions import Annotated from pydantic import StrictStr -from typing import Any, Dict +from typing import Any, Dict, Optional from otari._client.api_client import ApiClient, RequestSerialized from otari._client.api_response import ApiResponse @@ -37,7 +37,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def health_check_health_get( + def health_check_api_v1_health_get( self, _request_timeout: Union[ None, @@ -51,7 +51,7 @@ def health_check_health_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Dict[str, str]: + ) -> Dict[str, Optional[str]]: """Health Check General health check endpoint. Returns basic health status. For infrastructure monitoring, use /health/readiness or /health/liveness instead. @@ -78,7 +78,7 @@ def health_check_health_get( :return: Returns the result object. """ # noqa: E501 - _param = self._health_check_health_get_serialize( + _param = self._health_check_api_v1_health_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -86,7 +86,7 @@ def health_check_health_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Dict[str, str]", + '200': "Dict[str, Optional[str]]", } response_data = self.api_client.call_api( *_param, @@ -100,7 +100,7 @@ def health_check_health_get( @validate_call - def health_check_health_get_with_http_info( + def health_check_api_v1_health_get_with_http_info( self, _request_timeout: Union[ None, @@ -114,7 +114,7 @@ def health_check_health_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[Dict[str, str]]: + ) -> ApiResponse[Dict[str, Optional[str]]]: """Health Check General health check endpoint. Returns basic health status. For infrastructure monitoring, use /health/readiness or /health/liveness instead. @@ -141,7 +141,7 @@ def health_check_health_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._health_check_health_get_serialize( + _param = self._health_check_api_v1_health_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -149,7 +149,7 @@ def health_check_health_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Dict[str, str]", + '200': "Dict[str, Optional[str]]", } response_data = self.api_client.call_api( *_param, @@ -163,7 +163,7 @@ def health_check_health_get_with_http_info( @validate_call - def health_check_health_get_without_preload_content( + def health_check_api_v1_health_get_without_preload_content( self, _request_timeout: Union[ None, @@ -204,7 +204,7 @@ def health_check_health_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._health_check_health_get_serialize( + _param = self._health_check_api_v1_health_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -212,7 +212,7 @@ def health_check_health_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Dict[str, str]", + '200': "Dict[str, Optional[str]]", } response_data = self.api_client.call_api( *_param, @@ -221,7 +221,7 @@ def health_check_health_get_without_preload_content( return response_data.response - def _health_check_health_get_serialize( + def _health_check_api_v1_health_get_serialize( self, _request_auth, _content_type, @@ -265,7 +265,7 @@ def _health_check_health_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/health', + resource_path='/api/v1/health', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -282,7 +282,7 @@ def _health_check_health_get_serialize( @validate_call - def health_liveness_health_liveness_get( + def health_liveness_api_v1_health_liveness_get( self, _request_timeout: Union[ None, @@ -323,7 +323,7 @@ def health_liveness_health_liveness_get( :return: Returns the result object. """ # noqa: E501 - _param = self._health_liveness_health_liveness_get_serialize( + _param = self._health_liveness_api_v1_health_liveness_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -345,7 +345,7 @@ def health_liveness_health_liveness_get( @validate_call - def health_liveness_health_liveness_get_with_http_info( + def health_liveness_api_v1_health_liveness_get_with_http_info( self, _request_timeout: Union[ None, @@ -386,7 +386,7 @@ def health_liveness_health_liveness_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._health_liveness_health_liveness_get_serialize( + _param = self._health_liveness_api_v1_health_liveness_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -408,7 +408,7 @@ def health_liveness_health_liveness_get_with_http_info( @validate_call - def health_liveness_health_liveness_get_without_preload_content( + def health_liveness_api_v1_health_liveness_get_without_preload_content( self, _request_timeout: Union[ None, @@ -449,7 +449,7 @@ def health_liveness_health_liveness_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._health_liveness_health_liveness_get_serialize( + _param = self._health_liveness_api_v1_health_liveness_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -466,7 +466,7 @@ def health_liveness_health_liveness_get_without_preload_content( return response_data.response - def _health_liveness_health_liveness_get_serialize( + def _health_liveness_api_v1_health_liveness_get_serialize( self, _request_auth, _content_type, @@ -510,7 +510,7 @@ def _health_liveness_health_liveness_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/health/liveness', + resource_path='/api/v1/health/liveness', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -527,7 +527,7 @@ def _health_liveness_health_liveness_get_serialize( @validate_call - def health_readiness_health_readiness_get( + def health_readiness_api_v1_health_readiness_get( self, _request_timeout: Union[ None, @@ -568,7 +568,7 @@ def health_readiness_health_readiness_get( :return: Returns the result object. """ # noqa: E501 - _param = self._health_readiness_health_readiness_get_serialize( + _param = self._health_readiness_api_v1_health_readiness_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -590,7 +590,7 @@ def health_readiness_health_readiness_get( @validate_call - def health_readiness_health_readiness_get_with_http_info( + def health_readiness_api_v1_health_readiness_get_with_http_info( self, _request_timeout: Union[ None, @@ -631,7 +631,7 @@ def health_readiness_health_readiness_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._health_readiness_health_readiness_get_serialize( + _param = self._health_readiness_api_v1_health_readiness_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -653,7 +653,7 @@ def health_readiness_health_readiness_get_with_http_info( @validate_call - def health_readiness_health_readiness_get_without_preload_content( + def health_readiness_api_v1_health_readiness_get_without_preload_content( self, _request_timeout: Union[ None, @@ -694,7 +694,7 @@ def health_readiness_health_readiness_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._health_readiness_health_readiness_get_serialize( + _param = self._health_readiness_api_v1_health_readiness_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -711,7 +711,7 @@ def health_readiness_health_readiness_get_without_preload_content( return response_data.response - def _health_readiness_health_readiness_get_serialize( + def _health_readiness_api_v1_health_readiness_get_serialize( self, _request_auth, _content_type, @@ -755,7 +755,7 @@ def _health_readiness_health_readiness_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/health/readiness', + resource_path='/api/v1/health/readiness', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/images_api.py b/src/otari/_client/api/images_api.py index 0b27c96..db64f56 100644 --- a/src/otari/_client/api/images_api.py +++ b/src/otari/_client/api/images_api.py @@ -37,7 +37,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def create_image_v1_images_generations_post( + def create_image_api_v1_images_generations_post( self, image_generation_request: ImageGenerationRequest, _request_timeout: Union[ @@ -81,7 +81,7 @@ def create_image_v1_images_generations_post( :return: Returns the result object. """ # noqa: E501 - _param = self._create_image_v1_images_generations_post_serialize( + _param = self._create_image_api_v1_images_generations_post_serialize( image_generation_request=image_generation_request, _request_auth=_request_auth, _content_type=_content_type, @@ -105,7 +105,7 @@ def create_image_v1_images_generations_post( @validate_call - def create_image_v1_images_generations_post_with_http_info( + def create_image_api_v1_images_generations_post_with_http_info( self, image_generation_request: ImageGenerationRequest, _request_timeout: Union[ @@ -149,7 +149,7 @@ def create_image_v1_images_generations_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_image_v1_images_generations_post_serialize( + _param = self._create_image_api_v1_images_generations_post_serialize( image_generation_request=image_generation_request, _request_auth=_request_auth, _content_type=_content_type, @@ -173,7 +173,7 @@ def create_image_v1_images_generations_post_with_http_info( @validate_call - def create_image_v1_images_generations_post_without_preload_content( + def create_image_api_v1_images_generations_post_without_preload_content( self, image_generation_request: ImageGenerationRequest, _request_timeout: Union[ @@ -217,7 +217,7 @@ def create_image_v1_images_generations_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._create_image_v1_images_generations_post_serialize( + _param = self._create_image_api_v1_images_generations_post_serialize( image_generation_request=image_generation_request, _request_auth=_request_auth, _content_type=_content_type, @@ -236,7 +236,7 @@ def create_image_v1_images_generations_post_without_preload_content( return response_data.response - def _create_image_v1_images_generations_post_serialize( + def _create_image_api_v1_images_generations_post_serialize( self, image_generation_request, _request_auth, @@ -298,7 +298,7 @@ def _create_image_v1_images_generations_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/images/generations', + resource_path='/api/v1/images/generations', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/invitations_api.py b/src/otari/_client/api/invitations_api.py index 7de1557..d000d91 100644 --- a/src/otari/_client/api/invitations_api.py +++ b/src/otari/_client/api/invitations_api.py @@ -39,7 +39,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def accept_invitation_v1_invitations_accept_post( + def accept_invitation_api_v1_invitations_accept_post( self, accept_invitation_request: AcceptInvitationRequest, _request_timeout: Union[ @@ -83,7 +83,7 @@ def accept_invitation_v1_invitations_accept_post( :return: Returns the result object. """ # noqa: E501 - _param = self._accept_invitation_v1_invitations_accept_post_serialize( + _param = self._accept_invitation_api_v1_invitations_accept_post_serialize( accept_invitation_request=accept_invitation_request, _request_auth=_request_auth, _content_type=_content_type, @@ -107,7 +107,7 @@ def accept_invitation_v1_invitations_accept_post( @validate_call - def accept_invitation_v1_invitations_accept_post_with_http_info( + def accept_invitation_api_v1_invitations_accept_post_with_http_info( self, accept_invitation_request: AcceptInvitationRequest, _request_timeout: Union[ @@ -151,7 +151,7 @@ def accept_invitation_v1_invitations_accept_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._accept_invitation_v1_invitations_accept_post_serialize( + _param = self._accept_invitation_api_v1_invitations_accept_post_serialize( accept_invitation_request=accept_invitation_request, _request_auth=_request_auth, _content_type=_content_type, @@ -175,7 +175,7 @@ def accept_invitation_v1_invitations_accept_post_with_http_info( @validate_call - def accept_invitation_v1_invitations_accept_post_without_preload_content( + def accept_invitation_api_v1_invitations_accept_post_without_preload_content( self, accept_invitation_request: AcceptInvitationRequest, _request_timeout: Union[ @@ -219,7 +219,7 @@ def accept_invitation_v1_invitations_accept_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._accept_invitation_v1_invitations_accept_post_serialize( + _param = self._accept_invitation_api_v1_invitations_accept_post_serialize( accept_invitation_request=accept_invitation_request, _request_auth=_request_auth, _content_type=_content_type, @@ -238,7 +238,7 @@ def accept_invitation_v1_invitations_accept_post_without_preload_content( return response_data.response - def _accept_invitation_v1_invitations_accept_post_serialize( + def _accept_invitation_api_v1_invitations_accept_post_serialize( self, accept_invitation_request, _request_auth, @@ -298,7 +298,7 @@ def _accept_invitation_v1_invitations_accept_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/invitations/accept', + resource_path='/api/v1/invitations/accept', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -315,7 +315,7 @@ def _accept_invitation_v1_invitations_accept_post_serialize( @validate_call - def validate_invitation_v1_invitations_validate_post( + def validate_invitation_api_v1_invitations_validate_post( self, validate_invitation_request: ValidateInvitationRequest, _request_timeout: Union[ @@ -359,7 +359,7 @@ def validate_invitation_v1_invitations_validate_post( :return: Returns the result object. """ # noqa: E501 - _param = self._validate_invitation_v1_invitations_validate_post_serialize( + _param = self._validate_invitation_api_v1_invitations_validate_post_serialize( validate_invitation_request=validate_invitation_request, _request_auth=_request_auth, _content_type=_content_type, @@ -383,7 +383,7 @@ def validate_invitation_v1_invitations_validate_post( @validate_call - def validate_invitation_v1_invitations_validate_post_with_http_info( + def validate_invitation_api_v1_invitations_validate_post_with_http_info( self, validate_invitation_request: ValidateInvitationRequest, _request_timeout: Union[ @@ -427,7 +427,7 @@ def validate_invitation_v1_invitations_validate_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._validate_invitation_v1_invitations_validate_post_serialize( + _param = self._validate_invitation_api_v1_invitations_validate_post_serialize( validate_invitation_request=validate_invitation_request, _request_auth=_request_auth, _content_type=_content_type, @@ -451,7 +451,7 @@ def validate_invitation_v1_invitations_validate_post_with_http_info( @validate_call - def validate_invitation_v1_invitations_validate_post_without_preload_content( + def validate_invitation_api_v1_invitations_validate_post_without_preload_content( self, validate_invitation_request: ValidateInvitationRequest, _request_timeout: Union[ @@ -495,7 +495,7 @@ def validate_invitation_v1_invitations_validate_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._validate_invitation_v1_invitations_validate_post_serialize( + _param = self._validate_invitation_api_v1_invitations_validate_post_serialize( validate_invitation_request=validate_invitation_request, _request_auth=_request_auth, _content_type=_content_type, @@ -514,7 +514,7 @@ def validate_invitation_v1_invitations_validate_post_without_preload_content( return response_data.response - def _validate_invitation_v1_invitations_validate_post_serialize( + def _validate_invitation_api_v1_invitations_validate_post_serialize( self, validate_invitation_request, _request_auth, @@ -574,7 +574,7 @@ def _validate_invitation_v1_invitations_validate_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/invitations/validate', + resource_path='/api/v1/invitations/validate', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/keys_api.py b/src/otari/_client/api/keys_api.py index e986d41..baf4ab8 100644 --- a/src/otari/_client/api/keys_api.py +++ b/src/otari/_client/api/keys_api.py @@ -43,7 +43,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def create_key_v1_keys_post( + def create_key_api_v1_keys_post( self, create_key_request: CreateKeyRequest, _request_timeout: Union[ @@ -87,7 +87,7 @@ def create_key_v1_keys_post( :return: Returns the result object. """ # noqa: E501 - _param = self._create_key_v1_keys_post_serialize( + _param = self._create_key_api_v1_keys_post_serialize( create_key_request=create_key_request, _request_auth=_request_auth, _content_type=_content_type, @@ -111,7 +111,7 @@ def create_key_v1_keys_post( @validate_call - def create_key_v1_keys_post_with_http_info( + def create_key_api_v1_keys_post_with_http_info( self, create_key_request: CreateKeyRequest, _request_timeout: Union[ @@ -155,7 +155,7 @@ def create_key_v1_keys_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_key_v1_keys_post_serialize( + _param = self._create_key_api_v1_keys_post_serialize( create_key_request=create_key_request, _request_auth=_request_auth, _content_type=_content_type, @@ -179,7 +179,7 @@ def create_key_v1_keys_post_with_http_info( @validate_call - def create_key_v1_keys_post_without_preload_content( + def create_key_api_v1_keys_post_without_preload_content( self, create_key_request: CreateKeyRequest, _request_timeout: Union[ @@ -223,7 +223,7 @@ def create_key_v1_keys_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._create_key_v1_keys_post_serialize( + _param = self._create_key_api_v1_keys_post_serialize( create_key_request=create_key_request, _request_auth=_request_auth, _content_type=_content_type, @@ -242,7 +242,7 @@ def create_key_v1_keys_post_without_preload_content( return response_data.response - def _create_key_v1_keys_post_serialize( + def _create_key_api_v1_keys_post_serialize( self, create_key_request, _request_auth, @@ -304,7 +304,7 @@ def _create_key_v1_keys_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/keys', + resource_path='/api/v1/keys', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -321,7 +321,7 @@ def _create_key_v1_keys_post_serialize( @validate_call - def delete_key_v1_keys_key_id_delete( + def delete_key_api_v1_keys_key_id_delete( self, key_id: StrictStr, _request_timeout: Union[ @@ -365,7 +365,7 @@ def delete_key_v1_keys_key_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_key_v1_keys_key_id_delete_serialize( + _param = self._delete_key_api_v1_keys_key_id_delete_serialize( key_id=key_id, _request_auth=_request_auth, _content_type=_content_type, @@ -389,7 +389,7 @@ def delete_key_v1_keys_key_id_delete( @validate_call - def delete_key_v1_keys_key_id_delete_with_http_info( + def delete_key_api_v1_keys_key_id_delete_with_http_info( self, key_id: StrictStr, _request_timeout: Union[ @@ -433,7 +433,7 @@ def delete_key_v1_keys_key_id_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_key_v1_keys_key_id_delete_serialize( + _param = self._delete_key_api_v1_keys_key_id_delete_serialize( key_id=key_id, _request_auth=_request_auth, _content_type=_content_type, @@ -457,7 +457,7 @@ def delete_key_v1_keys_key_id_delete_with_http_info( @validate_call - def delete_key_v1_keys_key_id_delete_without_preload_content( + def delete_key_api_v1_keys_key_id_delete_without_preload_content( self, key_id: StrictStr, _request_timeout: Union[ @@ -501,7 +501,7 @@ def delete_key_v1_keys_key_id_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_key_v1_keys_key_id_delete_serialize( + _param = self._delete_key_api_v1_keys_key_id_delete_serialize( key_id=key_id, _request_auth=_request_auth, _content_type=_content_type, @@ -520,7 +520,7 @@ def delete_key_v1_keys_key_id_delete_without_preload_content( return response_data.response - def _delete_key_v1_keys_key_id_delete_serialize( + def _delete_key_api_v1_keys_key_id_delete_serialize( self, key_id, _request_auth, @@ -569,7 +569,7 @@ def _delete_key_v1_keys_key_id_delete_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/v1/keys/{key_id}', + resource_path='/api/v1/keys/{key_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -586,7 +586,7 @@ def _delete_key_v1_keys_key_id_delete_serialize( @validate_call - def get_key_v1_keys_key_id_get( + def get_key_api_v1_keys_key_id_get( self, key_id: StrictStr, _request_timeout: Union[ @@ -630,7 +630,7 @@ def get_key_v1_keys_key_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_key_v1_keys_key_id_get_serialize( + _param = self._get_key_api_v1_keys_key_id_get_serialize( key_id=key_id, _request_auth=_request_auth, _content_type=_content_type, @@ -654,7 +654,7 @@ def get_key_v1_keys_key_id_get( @validate_call - def get_key_v1_keys_key_id_get_with_http_info( + def get_key_api_v1_keys_key_id_get_with_http_info( self, key_id: StrictStr, _request_timeout: Union[ @@ -698,7 +698,7 @@ def get_key_v1_keys_key_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_key_v1_keys_key_id_get_serialize( + _param = self._get_key_api_v1_keys_key_id_get_serialize( key_id=key_id, _request_auth=_request_auth, _content_type=_content_type, @@ -722,7 +722,7 @@ def get_key_v1_keys_key_id_get_with_http_info( @validate_call - def get_key_v1_keys_key_id_get_without_preload_content( + def get_key_api_v1_keys_key_id_get_without_preload_content( self, key_id: StrictStr, _request_timeout: Union[ @@ -766,7 +766,7 @@ def get_key_v1_keys_key_id_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_key_v1_keys_key_id_get_serialize( + _param = self._get_key_api_v1_keys_key_id_get_serialize( key_id=key_id, _request_auth=_request_auth, _content_type=_content_type, @@ -785,7 +785,7 @@ def get_key_v1_keys_key_id_get_without_preload_content( return response_data.response - def _get_key_v1_keys_key_id_get_serialize( + def _get_key_api_v1_keys_key_id_get_serialize( self, key_id, _request_auth, @@ -834,7 +834,7 @@ def _get_key_v1_keys_key_id_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/keys/{key_id}', + resource_path='/api/v1/keys/{key_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -851,7 +851,7 @@ def _get_key_v1_keys_key_id_get_serialize( @validate_call - def list_keys_v1_keys_get( + def list_keys_api_v1_keys_get( self, skip: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, limit: Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]] = None, @@ -901,7 +901,7 @@ def list_keys_v1_keys_get( :return: Returns the result object. """ # noqa: E501 - _param = self._list_keys_v1_keys_get_serialize( + _param = self._list_keys_api_v1_keys_get_serialize( skip=skip, limit=limit, workspace_id=workspace_id, @@ -927,7 +927,7 @@ def list_keys_v1_keys_get( @validate_call - def list_keys_v1_keys_get_with_http_info( + def list_keys_api_v1_keys_get_with_http_info( self, skip: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, limit: Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]] = None, @@ -977,7 +977,7 @@ def list_keys_v1_keys_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_keys_v1_keys_get_serialize( + _param = self._list_keys_api_v1_keys_get_serialize( skip=skip, limit=limit, workspace_id=workspace_id, @@ -1003,7 +1003,7 @@ def list_keys_v1_keys_get_with_http_info( @validate_call - def list_keys_v1_keys_get_without_preload_content( + def list_keys_api_v1_keys_get_without_preload_content( self, skip: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, limit: Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]] = None, @@ -1053,7 +1053,7 @@ def list_keys_v1_keys_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._list_keys_v1_keys_get_serialize( + _param = self._list_keys_api_v1_keys_get_serialize( skip=skip, limit=limit, workspace_id=workspace_id, @@ -1074,7 +1074,7 @@ def list_keys_v1_keys_get_without_preload_content( return response_data.response - def _list_keys_v1_keys_get_serialize( + def _list_keys_api_v1_keys_get_serialize( self, skip, limit, @@ -1135,7 +1135,7 @@ def _list_keys_v1_keys_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/keys', + resource_path='/api/v1/keys', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1152,7 +1152,7 @@ def _list_keys_v1_keys_get_serialize( @validate_call - def rotate_key_v1_keys_key_id_rotate_post( + def rotate_key_api_v1_keys_key_id_rotate_post( self, key_id: StrictStr, _request_timeout: Union[ @@ -1196,7 +1196,7 @@ def rotate_key_v1_keys_key_id_rotate_post( :return: Returns the result object. """ # noqa: E501 - _param = self._rotate_key_v1_keys_key_id_rotate_post_serialize( + _param = self._rotate_key_api_v1_keys_key_id_rotate_post_serialize( key_id=key_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1220,7 +1220,7 @@ def rotate_key_v1_keys_key_id_rotate_post( @validate_call - def rotate_key_v1_keys_key_id_rotate_post_with_http_info( + def rotate_key_api_v1_keys_key_id_rotate_post_with_http_info( self, key_id: StrictStr, _request_timeout: Union[ @@ -1264,7 +1264,7 @@ def rotate_key_v1_keys_key_id_rotate_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._rotate_key_v1_keys_key_id_rotate_post_serialize( + _param = self._rotate_key_api_v1_keys_key_id_rotate_post_serialize( key_id=key_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1288,7 +1288,7 @@ def rotate_key_v1_keys_key_id_rotate_post_with_http_info( @validate_call - def rotate_key_v1_keys_key_id_rotate_post_without_preload_content( + def rotate_key_api_v1_keys_key_id_rotate_post_without_preload_content( self, key_id: StrictStr, _request_timeout: Union[ @@ -1332,7 +1332,7 @@ def rotate_key_v1_keys_key_id_rotate_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._rotate_key_v1_keys_key_id_rotate_post_serialize( + _param = self._rotate_key_api_v1_keys_key_id_rotate_post_serialize( key_id=key_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1351,7 +1351,7 @@ def rotate_key_v1_keys_key_id_rotate_post_without_preload_content( return response_data.response - def _rotate_key_v1_keys_key_id_rotate_post_serialize( + def _rotate_key_api_v1_keys_key_id_rotate_post_serialize( self, key_id, _request_auth, @@ -1400,7 +1400,7 @@ def _rotate_key_v1_keys_key_id_rotate_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/keys/{key_id}/rotate', + resource_path='/api/v1/keys/{key_id}/rotate', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1417,7 +1417,7 @@ def _rotate_key_v1_keys_key_id_rotate_post_serialize( @validate_call - def update_key_v1_keys_key_id_patch( + def update_key_api_v1_keys_key_id_patch( self, key_id: StrictStr, update_key_request: UpdateKeyRequest, @@ -1464,7 +1464,7 @@ def update_key_v1_keys_key_id_patch( :return: Returns the result object. """ # noqa: E501 - _param = self._update_key_v1_keys_key_id_patch_serialize( + _param = self._update_key_api_v1_keys_key_id_patch_serialize( key_id=key_id, update_key_request=update_key_request, _request_auth=_request_auth, @@ -1489,7 +1489,7 @@ def update_key_v1_keys_key_id_patch( @validate_call - def update_key_v1_keys_key_id_patch_with_http_info( + def update_key_api_v1_keys_key_id_patch_with_http_info( self, key_id: StrictStr, update_key_request: UpdateKeyRequest, @@ -1536,7 +1536,7 @@ def update_key_v1_keys_key_id_patch_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._update_key_v1_keys_key_id_patch_serialize( + _param = self._update_key_api_v1_keys_key_id_patch_serialize( key_id=key_id, update_key_request=update_key_request, _request_auth=_request_auth, @@ -1561,7 +1561,7 @@ def update_key_v1_keys_key_id_patch_with_http_info( @validate_call - def update_key_v1_keys_key_id_patch_without_preload_content( + def update_key_api_v1_keys_key_id_patch_without_preload_content( self, key_id: StrictStr, update_key_request: UpdateKeyRequest, @@ -1608,7 +1608,7 @@ def update_key_v1_keys_key_id_patch_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._update_key_v1_keys_key_id_patch_serialize( + _param = self._update_key_api_v1_keys_key_id_patch_serialize( key_id=key_id, update_key_request=update_key_request, _request_auth=_request_auth, @@ -1628,7 +1628,7 @@ def update_key_v1_keys_key_id_patch_without_preload_content( return response_data.response - def _update_key_v1_keys_key_id_patch_serialize( + def _update_key_api_v1_keys_key_id_patch_serialize( self, key_id, update_key_request, @@ -1693,7 +1693,7 @@ def _update_key_v1_keys_key_id_patch_serialize( return self.api_client.param_serialize( method='PATCH', - resource_path='/v1/keys/{key_id}', + resource_path='/api/v1/keys/{key_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/mcp_api.py b/src/otari/_client/api/mcp_api.py index 1391293..3ae74ce 100644 --- a/src/otari/_client/api/mcp_api.py +++ b/src/otari/_client/api/mcp_api.py @@ -39,7 +39,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def execute_mcp_tool_v1_mcp_execute_post( + def execute_mcp_tool_api_v1_mcp_execute_post( self, mcp_execute_request: McpExecuteRequest, _request_timeout: Union[ @@ -83,7 +83,7 @@ def execute_mcp_tool_v1_mcp_execute_post( :return: Returns the result object. """ # noqa: E501 - _param = self._execute_mcp_tool_v1_mcp_execute_post_serialize( + _param = self._execute_mcp_tool_api_v1_mcp_execute_post_serialize( mcp_execute_request=mcp_execute_request, _request_auth=_request_auth, _content_type=_content_type, @@ -118,7 +118,7 @@ def execute_mcp_tool_v1_mcp_execute_post( @validate_call - def execute_mcp_tool_v1_mcp_execute_post_with_http_info( + def execute_mcp_tool_api_v1_mcp_execute_post_with_http_info( self, mcp_execute_request: McpExecuteRequest, _request_timeout: Union[ @@ -162,7 +162,7 @@ def execute_mcp_tool_v1_mcp_execute_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._execute_mcp_tool_v1_mcp_execute_post_serialize( + _param = self._execute_mcp_tool_api_v1_mcp_execute_post_serialize( mcp_execute_request=mcp_execute_request, _request_auth=_request_auth, _content_type=_content_type, @@ -197,7 +197,7 @@ def execute_mcp_tool_v1_mcp_execute_post_with_http_info( @validate_call - def execute_mcp_tool_v1_mcp_execute_post_without_preload_content( + def execute_mcp_tool_api_v1_mcp_execute_post_without_preload_content( self, mcp_execute_request: McpExecuteRequest, _request_timeout: Union[ @@ -241,7 +241,7 @@ def execute_mcp_tool_v1_mcp_execute_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._execute_mcp_tool_v1_mcp_execute_post_serialize( + _param = self._execute_mcp_tool_api_v1_mcp_execute_post_serialize( mcp_execute_request=mcp_execute_request, _request_auth=_request_auth, _content_type=_content_type, @@ -271,7 +271,7 @@ def execute_mcp_tool_v1_mcp_execute_post_without_preload_content( return response_data.response - def _execute_mcp_tool_v1_mcp_execute_post_serialize( + def _execute_mcp_tool_api_v1_mcp_execute_post_serialize( self, mcp_execute_request, _request_auth, @@ -333,7 +333,7 @@ def _execute_mcp_tool_v1_mcp_execute_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/mcp/execute', + resource_path='/api/v1/mcp/execute', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -350,7 +350,7 @@ def _execute_mcp_tool_v1_mcp_execute_post_serialize( @validate_call - def list_mcp_tools_v1_mcp_servers_mcp_server_id_tools_get( + def list_mcp_tools_api_v1_mcp_servers_mcp_server_id_tools_get( self, mcp_server_id: UUID, _request_timeout: Union[ @@ -394,7 +394,7 @@ def list_mcp_tools_v1_mcp_servers_mcp_server_id_tools_get( :return: Returns the result object. """ # noqa: E501 - _param = self._list_mcp_tools_v1_mcp_servers_mcp_server_id_tools_get_serialize( + _param = self._list_mcp_tools_api_v1_mcp_servers_mcp_server_id_tools_get_serialize( mcp_server_id=mcp_server_id, _request_auth=_request_auth, _content_type=_content_type, @@ -427,7 +427,7 @@ def list_mcp_tools_v1_mcp_servers_mcp_server_id_tools_get( @validate_call - def list_mcp_tools_v1_mcp_servers_mcp_server_id_tools_get_with_http_info( + def list_mcp_tools_api_v1_mcp_servers_mcp_server_id_tools_get_with_http_info( self, mcp_server_id: UUID, _request_timeout: Union[ @@ -471,7 +471,7 @@ def list_mcp_tools_v1_mcp_servers_mcp_server_id_tools_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_mcp_tools_v1_mcp_servers_mcp_server_id_tools_get_serialize( + _param = self._list_mcp_tools_api_v1_mcp_servers_mcp_server_id_tools_get_serialize( mcp_server_id=mcp_server_id, _request_auth=_request_auth, _content_type=_content_type, @@ -504,7 +504,7 @@ def list_mcp_tools_v1_mcp_servers_mcp_server_id_tools_get_with_http_info( @validate_call - def list_mcp_tools_v1_mcp_servers_mcp_server_id_tools_get_without_preload_content( + def list_mcp_tools_api_v1_mcp_servers_mcp_server_id_tools_get_without_preload_content( self, mcp_server_id: UUID, _request_timeout: Union[ @@ -548,7 +548,7 @@ def list_mcp_tools_v1_mcp_servers_mcp_server_id_tools_get_without_preload_conten :return: Returns the result object. """ # noqa: E501 - _param = self._list_mcp_tools_v1_mcp_servers_mcp_server_id_tools_get_serialize( + _param = self._list_mcp_tools_api_v1_mcp_servers_mcp_server_id_tools_get_serialize( mcp_server_id=mcp_server_id, _request_auth=_request_auth, _content_type=_content_type, @@ -576,7 +576,7 @@ def list_mcp_tools_v1_mcp_servers_mcp_server_id_tools_get_without_preload_conten return response_data.response - def _list_mcp_tools_v1_mcp_servers_mcp_server_id_tools_get_serialize( + def _list_mcp_tools_api_v1_mcp_servers_mcp_server_id_tools_get_serialize( self, mcp_server_id, _request_auth, @@ -625,7 +625,7 @@ def _list_mcp_tools_v1_mcp_servers_mcp_server_id_tools_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/mcp/servers/{mcp_server_id}/tools', + resource_path='/api/v1/mcp/servers/{mcp_server_id}/tools', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/mcp_servers_api.py b/src/otari/_client/api/mcp_servers_api.py index 7a0af15..088f2a2 100644 --- a/src/otari/_client/api/mcp_servers_api.py +++ b/src/otari/_client/api/mcp_servers_api.py @@ -44,7 +44,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def create_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_post( + def create_workspace_mcp_server_api_v1_workspaces_workspace_id_mcp_servers_post( self, workspace_id: UUID, workspace_mcp_server_create: WorkspaceMcpServerCreate, @@ -91,7 +91,7 @@ def create_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_post( :return: Returns the result object. """ # noqa: E501 - _param = self._create_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_post_serialize( + _param = self._create_workspace_mcp_server_api_v1_workspaces_workspace_id_mcp_servers_post_serialize( workspace_id=workspace_id, workspace_mcp_server_create=workspace_mcp_server_create, _request_auth=_request_auth, @@ -116,7 +116,7 @@ def create_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_post( @validate_call - def create_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_post_with_http_info( + def create_workspace_mcp_server_api_v1_workspaces_workspace_id_mcp_servers_post_with_http_info( self, workspace_id: UUID, workspace_mcp_server_create: WorkspaceMcpServerCreate, @@ -163,7 +163,7 @@ def create_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_post_with :return: Returns the result object. """ # noqa: E501 - _param = self._create_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_post_serialize( + _param = self._create_workspace_mcp_server_api_v1_workspaces_workspace_id_mcp_servers_post_serialize( workspace_id=workspace_id, workspace_mcp_server_create=workspace_mcp_server_create, _request_auth=_request_auth, @@ -188,7 +188,7 @@ def create_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_post_with @validate_call - def create_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_post_without_preload_content( + def create_workspace_mcp_server_api_v1_workspaces_workspace_id_mcp_servers_post_without_preload_content( self, workspace_id: UUID, workspace_mcp_server_create: WorkspaceMcpServerCreate, @@ -235,7 +235,7 @@ def create_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_post_with :return: Returns the result object. """ # noqa: E501 - _param = self._create_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_post_serialize( + _param = self._create_workspace_mcp_server_api_v1_workspaces_workspace_id_mcp_servers_post_serialize( workspace_id=workspace_id, workspace_mcp_server_create=workspace_mcp_server_create, _request_auth=_request_auth, @@ -255,7 +255,7 @@ def create_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_post_with return response_data.response - def _create_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_post_serialize( + def _create_workspace_mcp_server_api_v1_workspaces_workspace_id_mcp_servers_post_serialize( self, workspace_id, workspace_mcp_server_create, @@ -320,7 +320,7 @@ def _create_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_post_ser return self.api_client.param_serialize( method='POST', - resource_path='/v1/workspaces/{workspace_id}/mcp-servers', + resource_path='/api/v1/workspaces/{workspace_id}/mcp-servers', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -337,7 +337,7 @@ def _create_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_post_ser @validate_call - def delete_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_server_id_delete( + def delete_workspace_mcp_server_api_v1_workspaces_workspace_id_mcp_servers_server_id_delete( self, workspace_id: UUID, server_id: UUID, @@ -384,7 +384,7 @@ def delete_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_server_id :return: Returns the result object. """ # noqa: E501 - _param = self._delete_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_server_id_delete_serialize( + _param = self._delete_workspace_mcp_server_api_v1_workspaces_workspace_id_mcp_servers_server_id_delete_serialize( workspace_id=workspace_id, server_id=server_id, _request_auth=_request_auth, @@ -409,7 +409,7 @@ def delete_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_server_id @validate_call - def delete_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_server_id_delete_with_http_info( + def delete_workspace_mcp_server_api_v1_workspaces_workspace_id_mcp_servers_server_id_delete_with_http_info( self, workspace_id: UUID, server_id: UUID, @@ -456,7 +456,7 @@ def delete_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_server_id :return: Returns the result object. """ # noqa: E501 - _param = self._delete_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_server_id_delete_serialize( + _param = self._delete_workspace_mcp_server_api_v1_workspaces_workspace_id_mcp_servers_server_id_delete_serialize( workspace_id=workspace_id, server_id=server_id, _request_auth=_request_auth, @@ -481,7 +481,7 @@ def delete_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_server_id @validate_call - def delete_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_server_id_delete_without_preload_content( + def delete_workspace_mcp_server_api_v1_workspaces_workspace_id_mcp_servers_server_id_delete_without_preload_content( self, workspace_id: UUID, server_id: UUID, @@ -528,7 +528,7 @@ def delete_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_server_id :return: Returns the result object. """ # noqa: E501 - _param = self._delete_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_server_id_delete_serialize( + _param = self._delete_workspace_mcp_server_api_v1_workspaces_workspace_id_mcp_servers_server_id_delete_serialize( workspace_id=workspace_id, server_id=server_id, _request_auth=_request_auth, @@ -548,7 +548,7 @@ def delete_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_server_id return response_data.response - def _delete_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_server_id_delete_serialize( + def _delete_workspace_mcp_server_api_v1_workspaces_workspace_id_mcp_servers_server_id_delete_serialize( self, workspace_id, server_id, @@ -600,7 +600,7 @@ def _delete_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_server_i return self.api_client.param_serialize( method='DELETE', - resource_path='/v1/workspaces/{workspace_id}/mcp-servers/{server_id}', + resource_path='/api/v1/workspaces/{workspace_id}/mcp-servers/{server_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -617,7 +617,7 @@ def _delete_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_server_i @validate_call - def list_workspace_mcp_servers_v1_workspaces_workspace_id_mcp_servers_get( + def list_workspace_mcp_servers_api_v1_workspaces_workspace_id_mcp_servers_get( self, workspace_id: UUID, skip: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of records to skip")] = None, @@ -667,7 +667,7 @@ def list_workspace_mcp_servers_v1_workspaces_workspace_id_mcp_servers_get( :return: Returns the result object. """ # noqa: E501 - _param = self._list_workspace_mcp_servers_v1_workspaces_workspace_id_mcp_servers_get_serialize( + _param = self._list_workspace_mcp_servers_api_v1_workspaces_workspace_id_mcp_servers_get_serialize( workspace_id=workspace_id, skip=skip, limit=limit, @@ -693,7 +693,7 @@ def list_workspace_mcp_servers_v1_workspaces_workspace_id_mcp_servers_get( @validate_call - def list_workspace_mcp_servers_v1_workspaces_workspace_id_mcp_servers_get_with_http_info( + def list_workspace_mcp_servers_api_v1_workspaces_workspace_id_mcp_servers_get_with_http_info( self, workspace_id: UUID, skip: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of records to skip")] = None, @@ -743,7 +743,7 @@ def list_workspace_mcp_servers_v1_workspaces_workspace_id_mcp_servers_get_with_h :return: Returns the result object. """ # noqa: E501 - _param = self._list_workspace_mcp_servers_v1_workspaces_workspace_id_mcp_servers_get_serialize( + _param = self._list_workspace_mcp_servers_api_v1_workspaces_workspace_id_mcp_servers_get_serialize( workspace_id=workspace_id, skip=skip, limit=limit, @@ -769,7 +769,7 @@ def list_workspace_mcp_servers_v1_workspaces_workspace_id_mcp_servers_get_with_h @validate_call - def list_workspace_mcp_servers_v1_workspaces_workspace_id_mcp_servers_get_without_preload_content( + def list_workspace_mcp_servers_api_v1_workspaces_workspace_id_mcp_servers_get_without_preload_content( self, workspace_id: UUID, skip: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of records to skip")] = None, @@ -819,7 +819,7 @@ def list_workspace_mcp_servers_v1_workspaces_workspace_id_mcp_servers_get_withou :return: Returns the result object. """ # noqa: E501 - _param = self._list_workspace_mcp_servers_v1_workspaces_workspace_id_mcp_servers_get_serialize( + _param = self._list_workspace_mcp_servers_api_v1_workspaces_workspace_id_mcp_servers_get_serialize( workspace_id=workspace_id, skip=skip, limit=limit, @@ -840,7 +840,7 @@ def list_workspace_mcp_servers_v1_workspaces_workspace_id_mcp_servers_get_withou return response_data.response - def _list_workspace_mcp_servers_v1_workspaces_workspace_id_mcp_servers_get_serialize( + def _list_workspace_mcp_servers_api_v1_workspaces_workspace_id_mcp_servers_get_serialize( self, workspace_id, skip, @@ -899,7 +899,7 @@ def _list_workspace_mcp_servers_v1_workspaces_workspace_id_mcp_servers_get_seria return self.api_client.param_serialize( method='GET', - resource_path='/v1/workspaces/{workspace_id}/mcp-servers', + resource_path='/api/v1/workspaces/{workspace_id}/mcp-servers', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -916,7 +916,7 @@ def _list_workspace_mcp_servers_v1_workspaces_workspace_id_mcp_servers_get_seria @validate_call - def update_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_server_id_patch( + def update_workspace_mcp_server_api_v1_workspaces_workspace_id_mcp_servers_server_id_patch( self, workspace_id: UUID, server_id: UUID, @@ -966,7 +966,7 @@ def update_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_server_id :return: Returns the result object. """ # noqa: E501 - _param = self._update_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_server_id_patch_serialize( + _param = self._update_workspace_mcp_server_api_v1_workspaces_workspace_id_mcp_servers_server_id_patch_serialize( workspace_id=workspace_id, server_id=server_id, workspace_mcp_server_update=workspace_mcp_server_update, @@ -992,7 +992,7 @@ def update_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_server_id @validate_call - def update_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_server_id_patch_with_http_info( + def update_workspace_mcp_server_api_v1_workspaces_workspace_id_mcp_servers_server_id_patch_with_http_info( self, workspace_id: UUID, server_id: UUID, @@ -1042,7 +1042,7 @@ def update_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_server_id :return: Returns the result object. """ # noqa: E501 - _param = self._update_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_server_id_patch_serialize( + _param = self._update_workspace_mcp_server_api_v1_workspaces_workspace_id_mcp_servers_server_id_patch_serialize( workspace_id=workspace_id, server_id=server_id, workspace_mcp_server_update=workspace_mcp_server_update, @@ -1068,7 +1068,7 @@ def update_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_server_id @validate_call - def update_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_server_id_patch_without_preload_content( + def update_workspace_mcp_server_api_v1_workspaces_workspace_id_mcp_servers_server_id_patch_without_preload_content( self, workspace_id: UUID, server_id: UUID, @@ -1118,7 +1118,7 @@ def update_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_server_id :return: Returns the result object. """ # noqa: E501 - _param = self._update_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_server_id_patch_serialize( + _param = self._update_workspace_mcp_server_api_v1_workspaces_workspace_id_mcp_servers_server_id_patch_serialize( workspace_id=workspace_id, server_id=server_id, workspace_mcp_server_update=workspace_mcp_server_update, @@ -1139,7 +1139,7 @@ def update_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_server_id return response_data.response - def _update_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_server_id_patch_serialize( + def _update_workspace_mcp_server_api_v1_workspaces_workspace_id_mcp_servers_server_id_patch_serialize( self, workspace_id, server_id, @@ -1207,7 +1207,7 @@ def _update_workspace_mcp_server_v1_workspaces_workspace_id_mcp_servers_server_i return self.api_client.param_serialize( method='PATCH', - resource_path='/v1/workspaces/{workspace_id}/mcp-servers/{server_id}', + resource_path='/api/v1/workspaces/{workspace_id}/mcp-servers/{server_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/messages_api.py b/src/otari/_client/api/messages_api.py index 7ebc867..ebd0083 100644 --- a/src/otari/_client/api/messages_api.py +++ b/src/otari/_client/api/messages_api.py @@ -39,7 +39,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def count_message_tokens_v1_messages_count_tokens_post( + def count_message_tokens_api_v1_messages_count_tokens_post( self, count_tokens_request: CountTokensRequest, _request_timeout: Union[ @@ -83,7 +83,7 @@ def count_message_tokens_v1_messages_count_tokens_post( :return: Returns the result object. """ # noqa: E501 - _param = self._count_message_tokens_v1_messages_count_tokens_post_serialize( + _param = self._count_message_tokens_api_v1_messages_count_tokens_post_serialize( count_tokens_request=count_tokens_request, _request_auth=_request_auth, _content_type=_content_type, @@ -107,7 +107,7 @@ def count_message_tokens_v1_messages_count_tokens_post( @validate_call - def count_message_tokens_v1_messages_count_tokens_post_with_http_info( + def count_message_tokens_api_v1_messages_count_tokens_post_with_http_info( self, count_tokens_request: CountTokensRequest, _request_timeout: Union[ @@ -151,7 +151,7 @@ def count_message_tokens_v1_messages_count_tokens_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._count_message_tokens_v1_messages_count_tokens_post_serialize( + _param = self._count_message_tokens_api_v1_messages_count_tokens_post_serialize( count_tokens_request=count_tokens_request, _request_auth=_request_auth, _content_type=_content_type, @@ -175,7 +175,7 @@ def count_message_tokens_v1_messages_count_tokens_post_with_http_info( @validate_call - def count_message_tokens_v1_messages_count_tokens_post_without_preload_content( + def count_message_tokens_api_v1_messages_count_tokens_post_without_preload_content( self, count_tokens_request: CountTokensRequest, _request_timeout: Union[ @@ -219,7 +219,7 @@ def count_message_tokens_v1_messages_count_tokens_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._count_message_tokens_v1_messages_count_tokens_post_serialize( + _param = self._count_message_tokens_api_v1_messages_count_tokens_post_serialize( count_tokens_request=count_tokens_request, _request_auth=_request_auth, _content_type=_content_type, @@ -238,7 +238,7 @@ def count_message_tokens_v1_messages_count_tokens_post_without_preload_content( return response_data.response - def _count_message_tokens_v1_messages_count_tokens_post_serialize( + def _count_message_tokens_api_v1_messages_count_tokens_post_serialize( self, count_tokens_request, _request_auth, @@ -300,7 +300,7 @@ def _count_message_tokens_v1_messages_count_tokens_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/messages/count_tokens', + resource_path='/api/v1/messages/count_tokens', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -317,7 +317,7 @@ def _count_message_tokens_v1_messages_count_tokens_post_serialize( @validate_call - def create_message_v1_messages_post( + def create_message_api_v1_messages_post( self, messages_request: MessagesRequest, _request_timeout: Union[ @@ -361,7 +361,7 @@ def create_message_v1_messages_post( :return: Returns the result object. """ # noqa: E501 - _param = self._create_message_v1_messages_post_serialize( + _param = self._create_message_api_v1_messages_post_serialize( messages_request=messages_request, _request_auth=_request_auth, _content_type=_content_type, @@ -385,7 +385,7 @@ def create_message_v1_messages_post( @validate_call - def create_message_v1_messages_post_with_http_info( + def create_message_api_v1_messages_post_with_http_info( self, messages_request: MessagesRequest, _request_timeout: Union[ @@ -429,7 +429,7 @@ def create_message_v1_messages_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_message_v1_messages_post_serialize( + _param = self._create_message_api_v1_messages_post_serialize( messages_request=messages_request, _request_auth=_request_auth, _content_type=_content_type, @@ -453,7 +453,7 @@ def create_message_v1_messages_post_with_http_info( @validate_call - def create_message_v1_messages_post_without_preload_content( + def create_message_api_v1_messages_post_without_preload_content( self, messages_request: MessagesRequest, _request_timeout: Union[ @@ -497,7 +497,7 @@ def create_message_v1_messages_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._create_message_v1_messages_post_serialize( + _param = self._create_message_api_v1_messages_post_serialize( messages_request=messages_request, _request_auth=_request_auth, _content_type=_content_type, @@ -516,7 +516,7 @@ def create_message_v1_messages_post_without_preload_content( return response_data.response - def _create_message_v1_messages_post_serialize( + def _create_message_api_v1_messages_post_serialize( self, messages_request, _request_auth, @@ -578,7 +578,7 @@ def _create_message_v1_messages_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/messages', + resource_path='/api/v1/messages', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/models_api.py b/src/otari/_client/api/models_api.py index 2752be3..f297623 100644 --- a/src/otari/_client/api/models_api.py +++ b/src/otari/_client/api/models_api.py @@ -42,7 +42,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def get_model_v1_models_model_id_get( + def get_model_api_v1_models_model_id_get( self, model_id: StrictStr, _request_timeout: Union[ @@ -86,7 +86,7 @@ def get_model_v1_models_model_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_model_v1_models_model_id_get_serialize( + _param = self._get_model_api_v1_models_model_id_get_serialize( model_id=model_id, _request_auth=_request_auth, _content_type=_content_type, @@ -110,7 +110,7 @@ def get_model_v1_models_model_id_get( @validate_call - def get_model_v1_models_model_id_get_with_http_info( + def get_model_api_v1_models_model_id_get_with_http_info( self, model_id: StrictStr, _request_timeout: Union[ @@ -154,7 +154,7 @@ def get_model_v1_models_model_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_model_v1_models_model_id_get_serialize( + _param = self._get_model_api_v1_models_model_id_get_serialize( model_id=model_id, _request_auth=_request_auth, _content_type=_content_type, @@ -178,7 +178,7 @@ def get_model_v1_models_model_id_get_with_http_info( @validate_call - def get_model_v1_models_model_id_get_without_preload_content( + def get_model_api_v1_models_model_id_get_without_preload_content( self, model_id: StrictStr, _request_timeout: Union[ @@ -222,7 +222,7 @@ def get_model_v1_models_model_id_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_model_v1_models_model_id_get_serialize( + _param = self._get_model_api_v1_models_model_id_get_serialize( model_id=model_id, _request_auth=_request_auth, _content_type=_content_type, @@ -241,7 +241,7 @@ def get_model_v1_models_model_id_get_without_preload_content( return response_data.response - def _get_model_v1_models_model_id_get_serialize( + def _get_model_api_v1_models_model_id_get_serialize( self, model_id, _request_auth, @@ -290,7 +290,7 @@ def _get_model_v1_models_model_id_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/models/{model_id}', + resource_path='/api/v1/models/{model_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -307,7 +307,7 @@ def _get_model_v1_models_model_id_get_serialize( @validate_call - def list_discoverable_models_v1_models_discoverable_get( + def list_discoverable_models_api_v1_models_discoverable_get( self, refresh: Annotated[Optional[StrictBool], Field(description="Re-dial every provider instead of answering from the discovery cache.")] = None, _request_timeout: Union[ @@ -325,7 +325,7 @@ def list_discoverable_models_v1_models_discoverable_get( ) -> DiscoverableModelsResponse: """List Discoverable Models - List every model the configured provider credentials can reach. Operator-facing counterpart to GET /v1/models, which serves a curated catalog to API callers. This reports each provider separately and keeps its error, so a provider with a bad key is distinguishable from one with no models. It is operator-gated because a provider error message describes the gateway's own configuration. Answers from the discovery cache, which a background refresher keeps warm, so the call does not wait on a slow or unreachable provider. Each provider carries the ``checked_at`` its result was produced at; a null one has not been dialed yet. Pass ``refresh=true`` to force a live re-dial of every provider. + List every model the configured provider credentials can reach. Operator-facing counterpart to GET /api/v1/models, which serves a curated catalog to API callers. This reports each provider separately and keeps its error, so a provider with a bad key is distinguishable from one with no models. It is operator-gated because a provider error message describes the gateway's own configuration. Answers from the discovery cache, which a background refresher keeps warm, so the call does not wait on a slow or unreachable provider. Each provider carries the ``checked_at`` its result was produced at; a null one has not been dialed yet. Pass ``refresh=true`` to force a live re-dial of every provider. :param refresh: Re-dial every provider instead of answering from the discovery cache. :type refresh: bool @@ -351,7 +351,7 @@ def list_discoverable_models_v1_models_discoverable_get( :return: Returns the result object. """ # noqa: E501 - _param = self._list_discoverable_models_v1_models_discoverable_get_serialize( + _param = self._list_discoverable_models_api_v1_models_discoverable_get_serialize( refresh=refresh, _request_auth=_request_auth, _content_type=_content_type, @@ -375,7 +375,7 @@ def list_discoverable_models_v1_models_discoverable_get( @validate_call - def list_discoverable_models_v1_models_discoverable_get_with_http_info( + def list_discoverable_models_api_v1_models_discoverable_get_with_http_info( self, refresh: Annotated[Optional[StrictBool], Field(description="Re-dial every provider instead of answering from the discovery cache.")] = None, _request_timeout: Union[ @@ -393,7 +393,7 @@ def list_discoverable_models_v1_models_discoverable_get_with_http_info( ) -> ApiResponse[DiscoverableModelsResponse]: """List Discoverable Models - List every model the configured provider credentials can reach. Operator-facing counterpart to GET /v1/models, which serves a curated catalog to API callers. This reports each provider separately and keeps its error, so a provider with a bad key is distinguishable from one with no models. It is operator-gated because a provider error message describes the gateway's own configuration. Answers from the discovery cache, which a background refresher keeps warm, so the call does not wait on a slow or unreachable provider. Each provider carries the ``checked_at`` its result was produced at; a null one has not been dialed yet. Pass ``refresh=true`` to force a live re-dial of every provider. + List every model the configured provider credentials can reach. Operator-facing counterpart to GET /api/v1/models, which serves a curated catalog to API callers. This reports each provider separately and keeps its error, so a provider with a bad key is distinguishable from one with no models. It is operator-gated because a provider error message describes the gateway's own configuration. Answers from the discovery cache, which a background refresher keeps warm, so the call does not wait on a slow or unreachable provider. Each provider carries the ``checked_at`` its result was produced at; a null one has not been dialed yet. Pass ``refresh=true`` to force a live re-dial of every provider. :param refresh: Re-dial every provider instead of answering from the discovery cache. :type refresh: bool @@ -419,7 +419,7 @@ def list_discoverable_models_v1_models_discoverable_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_discoverable_models_v1_models_discoverable_get_serialize( + _param = self._list_discoverable_models_api_v1_models_discoverable_get_serialize( refresh=refresh, _request_auth=_request_auth, _content_type=_content_type, @@ -443,7 +443,7 @@ def list_discoverable_models_v1_models_discoverable_get_with_http_info( @validate_call - def list_discoverable_models_v1_models_discoverable_get_without_preload_content( + def list_discoverable_models_api_v1_models_discoverable_get_without_preload_content( self, refresh: Annotated[Optional[StrictBool], Field(description="Re-dial every provider instead of answering from the discovery cache.")] = None, _request_timeout: Union[ @@ -461,7 +461,7 @@ def list_discoverable_models_v1_models_discoverable_get_without_preload_content( ) -> RESTResponseType: """List Discoverable Models - List every model the configured provider credentials can reach. Operator-facing counterpart to GET /v1/models, which serves a curated catalog to API callers. This reports each provider separately and keeps its error, so a provider with a bad key is distinguishable from one with no models. It is operator-gated because a provider error message describes the gateway's own configuration. Answers from the discovery cache, which a background refresher keeps warm, so the call does not wait on a slow or unreachable provider. Each provider carries the ``checked_at`` its result was produced at; a null one has not been dialed yet. Pass ``refresh=true`` to force a live re-dial of every provider. + List every model the configured provider credentials can reach. Operator-facing counterpart to GET /api/v1/models, which serves a curated catalog to API callers. This reports each provider separately and keeps its error, so a provider with a bad key is distinguishable from one with no models. It is operator-gated because a provider error message describes the gateway's own configuration. Answers from the discovery cache, which a background refresher keeps warm, so the call does not wait on a slow or unreachable provider. Each provider carries the ``checked_at`` its result was produced at; a null one has not been dialed yet. Pass ``refresh=true`` to force a live re-dial of every provider. :param refresh: Re-dial every provider instead of answering from the discovery cache. :type refresh: bool @@ -487,7 +487,7 @@ def list_discoverable_models_v1_models_discoverable_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._list_discoverable_models_v1_models_discoverable_get_serialize( + _param = self._list_discoverable_models_api_v1_models_discoverable_get_serialize( refresh=refresh, _request_auth=_request_auth, _content_type=_content_type, @@ -506,7 +506,7 @@ def list_discoverable_models_v1_models_discoverable_get_without_preload_content( return response_data.response - def _list_discoverable_models_v1_models_discoverable_get_serialize( + def _list_discoverable_models_api_v1_models_discoverable_get_serialize( self, refresh, _request_auth, @@ -557,7 +557,7 @@ def _list_discoverable_models_v1_models_discoverable_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/models/discoverable', + resource_path='/api/v1/models/discoverable', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -574,7 +574,7 @@ def _list_discoverable_models_v1_models_discoverable_get_serialize( @validate_call - def list_model_metadata_v1_models_metadata_get( + def list_model_metadata_api_v1_models_metadata_get( self, _request_timeout: Union[ None, @@ -615,7 +615,7 @@ def list_model_metadata_v1_models_metadata_get( :return: Returns the result object. """ # noqa: E501 - _param = self._list_model_metadata_v1_models_metadata_get_serialize( + _param = self._list_model_metadata_api_v1_models_metadata_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -637,7 +637,7 @@ def list_model_metadata_v1_models_metadata_get( @validate_call - def list_model_metadata_v1_models_metadata_get_with_http_info( + def list_model_metadata_api_v1_models_metadata_get_with_http_info( self, _request_timeout: Union[ None, @@ -678,7 +678,7 @@ def list_model_metadata_v1_models_metadata_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_model_metadata_v1_models_metadata_get_serialize( + _param = self._list_model_metadata_api_v1_models_metadata_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -700,7 +700,7 @@ def list_model_metadata_v1_models_metadata_get_with_http_info( @validate_call - def list_model_metadata_v1_models_metadata_get_without_preload_content( + def list_model_metadata_api_v1_models_metadata_get_without_preload_content( self, _request_timeout: Union[ None, @@ -741,7 +741,7 @@ def list_model_metadata_v1_models_metadata_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._list_model_metadata_v1_models_metadata_get_serialize( + _param = self._list_model_metadata_api_v1_models_metadata_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -758,7 +758,7 @@ def list_model_metadata_v1_models_metadata_get_without_preload_content( return response_data.response - def _list_model_metadata_v1_models_metadata_get_serialize( + def _list_model_metadata_api_v1_models_metadata_get_serialize( self, _request_auth, _content_type, @@ -804,7 +804,7 @@ def _list_model_metadata_v1_models_metadata_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/models/metadata', + resource_path='/api/v1/models/metadata', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -821,7 +821,7 @@ def _list_model_metadata_v1_models_metadata_get_serialize( @validate_call - def list_models_v1_models_get( + def list_models_api_v1_models_get( self, provider: Annotated[Optional[StrictStr], Field(description="Filter models by provider name")] = None, _request_timeout: Union[ @@ -865,7 +865,7 @@ def list_models_v1_models_get( :return: Returns the result object. """ # noqa: E501 - _param = self._list_models_v1_models_get_serialize( + _param = self._list_models_api_v1_models_get_serialize( provider=provider, _request_auth=_request_auth, _content_type=_content_type, @@ -889,7 +889,7 @@ def list_models_v1_models_get( @validate_call - def list_models_v1_models_get_with_http_info( + def list_models_api_v1_models_get_with_http_info( self, provider: Annotated[Optional[StrictStr], Field(description="Filter models by provider name")] = None, _request_timeout: Union[ @@ -933,7 +933,7 @@ def list_models_v1_models_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_models_v1_models_get_serialize( + _param = self._list_models_api_v1_models_get_serialize( provider=provider, _request_auth=_request_auth, _content_type=_content_type, @@ -957,7 +957,7 @@ def list_models_v1_models_get_with_http_info( @validate_call - def list_models_v1_models_get_without_preload_content( + def list_models_api_v1_models_get_without_preload_content( self, provider: Annotated[Optional[StrictStr], Field(description="Filter models by provider name")] = None, _request_timeout: Union[ @@ -1001,7 +1001,7 @@ def list_models_v1_models_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._list_models_v1_models_get_serialize( + _param = self._list_models_api_v1_models_get_serialize( provider=provider, _request_auth=_request_auth, _content_type=_content_type, @@ -1020,7 +1020,7 @@ def list_models_v1_models_get_without_preload_content( return response_data.response - def _list_models_v1_models_get_serialize( + def _list_models_api_v1_models_get_serialize( self, provider, _request_auth, @@ -1071,7 +1071,7 @@ def _list_models_v1_models_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/models', + resource_path='/api/v1/models', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/moderations_api.py b/src/otari/_client/api/moderations_api.py index 3ec4a2e..e38bd39 100644 --- a/src/otari/_client/api/moderations_api.py +++ b/src/otari/_client/api/moderations_api.py @@ -39,7 +39,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def create_moderation_v1_moderations_post( + def create_moderation_api_v1_moderations_post( self, moderation_request: ModerationRequest, include_raw: Optional[StrictBool] = None, @@ -86,7 +86,7 @@ def create_moderation_v1_moderations_post( :return: Returns the result object. """ # noqa: E501 - _param = self._create_moderation_v1_moderations_post_serialize( + _param = self._create_moderation_api_v1_moderations_post_serialize( moderation_request=moderation_request, include_raw=include_raw, _request_auth=_request_auth, @@ -111,7 +111,7 @@ def create_moderation_v1_moderations_post( @validate_call - def create_moderation_v1_moderations_post_with_http_info( + def create_moderation_api_v1_moderations_post_with_http_info( self, moderation_request: ModerationRequest, include_raw: Optional[StrictBool] = None, @@ -158,7 +158,7 @@ def create_moderation_v1_moderations_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_moderation_v1_moderations_post_serialize( + _param = self._create_moderation_api_v1_moderations_post_serialize( moderation_request=moderation_request, include_raw=include_raw, _request_auth=_request_auth, @@ -183,7 +183,7 @@ def create_moderation_v1_moderations_post_with_http_info( @validate_call - def create_moderation_v1_moderations_post_without_preload_content( + def create_moderation_api_v1_moderations_post_without_preload_content( self, moderation_request: ModerationRequest, include_raw: Optional[StrictBool] = None, @@ -230,7 +230,7 @@ def create_moderation_v1_moderations_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._create_moderation_v1_moderations_post_serialize( + _param = self._create_moderation_api_v1_moderations_post_serialize( moderation_request=moderation_request, include_raw=include_raw, _request_auth=_request_auth, @@ -250,7 +250,7 @@ def create_moderation_v1_moderations_post_without_preload_content( return response_data.response - def _create_moderation_v1_moderations_post_serialize( + def _create_moderation_api_v1_moderations_post_serialize( self, moderation_request, include_raw, @@ -317,7 +317,7 @@ def _create_moderation_v1_moderations_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/moderations', + resource_path='/api/v1/moderations', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/organization_budgets_api.py b/src/otari/_client/api/organization_budgets_api.py index 53dd036..e336b13 100644 --- a/src/otari/_client/api/organization_budgets_api.py +++ b/src/otari/_client/api/organization_budgets_api.py @@ -47,7 +47,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def create_organization_budget_v1_organizations_me_budgets_post( + def create_organization_budget_api_v1_organizations_me_budgets_post( self, organization_budget_create: OrganizationBudgetCreate, _request_timeout: Union[ @@ -91,7 +91,7 @@ def create_organization_budget_v1_organizations_me_budgets_post( :return: Returns the result object. """ # noqa: E501 - _param = self._create_organization_budget_v1_organizations_me_budgets_post_serialize( + _param = self._create_organization_budget_api_v1_organizations_me_budgets_post_serialize( organization_budget_create=organization_budget_create, _request_auth=_request_auth, _content_type=_content_type, @@ -115,7 +115,7 @@ def create_organization_budget_v1_organizations_me_budgets_post( @validate_call - def create_organization_budget_v1_organizations_me_budgets_post_with_http_info( + def create_organization_budget_api_v1_organizations_me_budgets_post_with_http_info( self, organization_budget_create: OrganizationBudgetCreate, _request_timeout: Union[ @@ -159,7 +159,7 @@ def create_organization_budget_v1_organizations_me_budgets_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_organization_budget_v1_organizations_me_budgets_post_serialize( + _param = self._create_organization_budget_api_v1_organizations_me_budgets_post_serialize( organization_budget_create=organization_budget_create, _request_auth=_request_auth, _content_type=_content_type, @@ -183,7 +183,7 @@ def create_organization_budget_v1_organizations_me_budgets_post_with_http_info( @validate_call - def create_organization_budget_v1_organizations_me_budgets_post_without_preload_content( + def create_organization_budget_api_v1_organizations_me_budgets_post_without_preload_content( self, organization_budget_create: OrganizationBudgetCreate, _request_timeout: Union[ @@ -227,7 +227,7 @@ def create_organization_budget_v1_organizations_me_budgets_post_without_preload_ :return: Returns the result object. """ # noqa: E501 - _param = self._create_organization_budget_v1_organizations_me_budgets_post_serialize( + _param = self._create_organization_budget_api_v1_organizations_me_budgets_post_serialize( organization_budget_create=organization_budget_create, _request_auth=_request_auth, _content_type=_content_type, @@ -246,7 +246,7 @@ def create_organization_budget_v1_organizations_me_budgets_post_without_preload_ return response_data.response - def _create_organization_budget_v1_organizations_me_budgets_post_serialize( + def _create_organization_budget_api_v1_organizations_me_budgets_post_serialize( self, organization_budget_create, _request_auth, @@ -308,7 +308,7 @@ def _create_organization_budget_v1_organizations_me_budgets_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/organizations/me/budgets', + resource_path='/api/v1/organizations/me/budgets', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -325,7 +325,7 @@ def _create_organization_budget_v1_organizations_me_budgets_post_serialize( @validate_call - def create_organization_spend_ceiling_v1_organizations_me_spend_ceilings_post( + def create_organization_spend_ceiling_api_v1_organizations_me_spend_ceilings_post( self, organization_scoped_budget_create: OrganizationScopedBudgetCreate, _request_timeout: Union[ @@ -369,7 +369,7 @@ def create_organization_spend_ceiling_v1_organizations_me_spend_ceilings_post( :return: Returns the result object. """ # noqa: E501 - _param = self._create_organization_spend_ceiling_v1_organizations_me_spend_ceilings_post_serialize( + _param = self._create_organization_spend_ceiling_api_v1_organizations_me_spend_ceilings_post_serialize( organization_scoped_budget_create=organization_scoped_budget_create, _request_auth=_request_auth, _content_type=_content_type, @@ -393,7 +393,7 @@ def create_organization_spend_ceiling_v1_organizations_me_spend_ceilings_post( @validate_call - def create_organization_spend_ceiling_v1_organizations_me_spend_ceilings_post_with_http_info( + def create_organization_spend_ceiling_api_v1_organizations_me_spend_ceilings_post_with_http_info( self, organization_scoped_budget_create: OrganizationScopedBudgetCreate, _request_timeout: Union[ @@ -437,7 +437,7 @@ def create_organization_spend_ceiling_v1_organizations_me_spend_ceilings_post_wi :return: Returns the result object. """ # noqa: E501 - _param = self._create_organization_spend_ceiling_v1_organizations_me_spend_ceilings_post_serialize( + _param = self._create_organization_spend_ceiling_api_v1_organizations_me_spend_ceilings_post_serialize( organization_scoped_budget_create=organization_scoped_budget_create, _request_auth=_request_auth, _content_type=_content_type, @@ -461,7 +461,7 @@ def create_organization_spend_ceiling_v1_organizations_me_spend_ceilings_post_wi @validate_call - def create_organization_spend_ceiling_v1_organizations_me_spend_ceilings_post_without_preload_content( + def create_organization_spend_ceiling_api_v1_organizations_me_spend_ceilings_post_without_preload_content( self, organization_scoped_budget_create: OrganizationScopedBudgetCreate, _request_timeout: Union[ @@ -505,7 +505,7 @@ def create_organization_spend_ceiling_v1_organizations_me_spend_ceilings_post_wi :return: Returns the result object. """ # noqa: E501 - _param = self._create_organization_spend_ceiling_v1_organizations_me_spend_ceilings_post_serialize( + _param = self._create_organization_spend_ceiling_api_v1_organizations_me_spend_ceilings_post_serialize( organization_scoped_budget_create=organization_scoped_budget_create, _request_auth=_request_auth, _content_type=_content_type, @@ -524,7 +524,7 @@ def create_organization_spend_ceiling_v1_organizations_me_spend_ceilings_post_wi return response_data.response - def _create_organization_spend_ceiling_v1_organizations_me_spend_ceilings_post_serialize( + def _create_organization_spend_ceiling_api_v1_organizations_me_spend_ceilings_post_serialize( self, organization_scoped_budget_create, _request_auth, @@ -586,7 +586,7 @@ def _create_organization_spend_ceiling_v1_organizations_me_spend_ceilings_post_s return self.api_client.param_serialize( method='POST', - resource_path='/v1/organizations/me/spend-ceilings', + resource_path='/api/v1/organizations/me/spend-ceilings', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -603,7 +603,7 @@ def _create_organization_spend_ceiling_v1_organizations_me_spend_ceilings_post_s @validate_call - def delete_organization_budget_v1_organizations_me_budgets_budget_id_delete( + def delete_organization_budget_api_v1_organizations_me_budgets_budget_id_delete( self, budget_id: StrictStr, _request_timeout: Union[ @@ -647,7 +647,7 @@ def delete_organization_budget_v1_organizations_me_budgets_budget_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_organization_budget_v1_organizations_me_budgets_budget_id_delete_serialize( + _param = self._delete_organization_budget_api_v1_organizations_me_budgets_budget_id_delete_serialize( budget_id=budget_id, _request_auth=_request_auth, _content_type=_content_type, @@ -671,7 +671,7 @@ def delete_organization_budget_v1_organizations_me_budgets_budget_id_delete( @validate_call - def delete_organization_budget_v1_organizations_me_budgets_budget_id_delete_with_http_info( + def delete_organization_budget_api_v1_organizations_me_budgets_budget_id_delete_with_http_info( self, budget_id: StrictStr, _request_timeout: Union[ @@ -715,7 +715,7 @@ def delete_organization_budget_v1_organizations_me_budgets_budget_id_delete_with :return: Returns the result object. """ # noqa: E501 - _param = self._delete_organization_budget_v1_organizations_me_budgets_budget_id_delete_serialize( + _param = self._delete_organization_budget_api_v1_organizations_me_budgets_budget_id_delete_serialize( budget_id=budget_id, _request_auth=_request_auth, _content_type=_content_type, @@ -739,7 +739,7 @@ def delete_organization_budget_v1_organizations_me_budgets_budget_id_delete_with @validate_call - def delete_organization_budget_v1_organizations_me_budgets_budget_id_delete_without_preload_content( + def delete_organization_budget_api_v1_organizations_me_budgets_budget_id_delete_without_preload_content( self, budget_id: StrictStr, _request_timeout: Union[ @@ -783,7 +783,7 @@ def delete_organization_budget_v1_organizations_me_budgets_budget_id_delete_with :return: Returns the result object. """ # noqa: E501 - _param = self._delete_organization_budget_v1_organizations_me_budgets_budget_id_delete_serialize( + _param = self._delete_organization_budget_api_v1_organizations_me_budgets_budget_id_delete_serialize( budget_id=budget_id, _request_auth=_request_auth, _content_type=_content_type, @@ -802,7 +802,7 @@ def delete_organization_budget_v1_organizations_me_budgets_budget_id_delete_with return response_data.response - def _delete_organization_budget_v1_organizations_me_budgets_budget_id_delete_serialize( + def _delete_organization_budget_api_v1_organizations_me_budgets_budget_id_delete_serialize( self, budget_id, _request_auth, @@ -851,7 +851,7 @@ def _delete_organization_budget_v1_organizations_me_budgets_budget_id_delete_ser return self.api_client.param_serialize( method='DELETE', - resource_path='/v1/organizations/me/budgets/{budget_id}', + resource_path='/api/v1/organizations/me/budgets/{budget_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -868,7 +868,7 @@ def _delete_organization_budget_v1_organizations_me_budgets_budget_id_delete_ser @validate_call - def delete_organization_spend_ceiling_v1_organizations_me_spend_ceilings_ceiling_id_delete( + def delete_organization_spend_ceiling_api_v1_organizations_me_spend_ceilings_ceiling_id_delete( self, ceiling_id: StrictStr, _request_timeout: Union[ @@ -912,7 +912,7 @@ def delete_organization_spend_ceiling_v1_organizations_me_spend_ceilings_ceiling :return: Returns the result object. """ # noqa: E501 - _param = self._delete_organization_spend_ceiling_v1_organizations_me_spend_ceilings_ceiling_id_delete_serialize( + _param = self._delete_organization_spend_ceiling_api_v1_organizations_me_spend_ceilings_ceiling_id_delete_serialize( ceiling_id=ceiling_id, _request_auth=_request_auth, _content_type=_content_type, @@ -936,7 +936,7 @@ def delete_organization_spend_ceiling_v1_organizations_me_spend_ceilings_ceiling @validate_call - def delete_organization_spend_ceiling_v1_organizations_me_spend_ceilings_ceiling_id_delete_with_http_info( + def delete_organization_spend_ceiling_api_v1_organizations_me_spend_ceilings_ceiling_id_delete_with_http_info( self, ceiling_id: StrictStr, _request_timeout: Union[ @@ -980,7 +980,7 @@ def delete_organization_spend_ceiling_v1_organizations_me_spend_ceilings_ceiling :return: Returns the result object. """ # noqa: E501 - _param = self._delete_organization_spend_ceiling_v1_organizations_me_spend_ceilings_ceiling_id_delete_serialize( + _param = self._delete_organization_spend_ceiling_api_v1_organizations_me_spend_ceilings_ceiling_id_delete_serialize( ceiling_id=ceiling_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1004,7 +1004,7 @@ def delete_organization_spend_ceiling_v1_organizations_me_spend_ceilings_ceiling @validate_call - def delete_organization_spend_ceiling_v1_organizations_me_spend_ceilings_ceiling_id_delete_without_preload_content( + def delete_organization_spend_ceiling_api_v1_organizations_me_spend_ceilings_ceiling_id_delete_without_preload_content( self, ceiling_id: StrictStr, _request_timeout: Union[ @@ -1048,7 +1048,7 @@ def delete_organization_spend_ceiling_v1_organizations_me_spend_ceilings_ceiling :return: Returns the result object. """ # noqa: E501 - _param = self._delete_organization_spend_ceiling_v1_organizations_me_spend_ceilings_ceiling_id_delete_serialize( + _param = self._delete_organization_spend_ceiling_api_v1_organizations_me_spend_ceilings_ceiling_id_delete_serialize( ceiling_id=ceiling_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1067,7 +1067,7 @@ def delete_organization_spend_ceiling_v1_organizations_me_spend_ceilings_ceiling return response_data.response - def _delete_organization_spend_ceiling_v1_organizations_me_spend_ceilings_ceiling_id_delete_serialize( + def _delete_organization_spend_ceiling_api_v1_organizations_me_spend_ceilings_ceiling_id_delete_serialize( self, ceiling_id, _request_auth, @@ -1116,7 +1116,7 @@ def _delete_organization_spend_ceiling_v1_organizations_me_spend_ceilings_ceilin return self.api_client.param_serialize( method='DELETE', - resource_path='/v1/organizations/me/spend-ceilings/{ceiling_id}', + resource_path='/api/v1/organizations/me/spend-ceilings/{ceiling_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1133,7 +1133,7 @@ def _delete_organization_spend_ceiling_v1_organizations_me_spend_ceilings_ceilin @validate_call - def list_organization_budgets_v1_organizations_me_budgets_get( + def list_organization_budgets_api_v1_organizations_me_budgets_get( self, skip: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of records to skip")] = None, limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Maximum number of records to return")] = None, @@ -1180,7 +1180,7 @@ def list_organization_budgets_v1_organizations_me_budgets_get( :return: Returns the result object. """ # noqa: E501 - _param = self._list_organization_budgets_v1_organizations_me_budgets_get_serialize( + _param = self._list_organization_budgets_api_v1_organizations_me_budgets_get_serialize( skip=skip, limit=limit, _request_auth=_request_auth, @@ -1205,7 +1205,7 @@ def list_organization_budgets_v1_organizations_me_budgets_get( @validate_call - def list_organization_budgets_v1_organizations_me_budgets_get_with_http_info( + def list_organization_budgets_api_v1_organizations_me_budgets_get_with_http_info( self, skip: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of records to skip")] = None, limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Maximum number of records to return")] = None, @@ -1252,7 +1252,7 @@ def list_organization_budgets_v1_organizations_me_budgets_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_organization_budgets_v1_organizations_me_budgets_get_serialize( + _param = self._list_organization_budgets_api_v1_organizations_me_budgets_get_serialize( skip=skip, limit=limit, _request_auth=_request_auth, @@ -1277,7 +1277,7 @@ def list_organization_budgets_v1_organizations_me_budgets_get_with_http_info( @validate_call - def list_organization_budgets_v1_organizations_me_budgets_get_without_preload_content( + def list_organization_budgets_api_v1_organizations_me_budgets_get_without_preload_content( self, skip: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of records to skip")] = None, limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Maximum number of records to return")] = None, @@ -1324,7 +1324,7 @@ def list_organization_budgets_v1_organizations_me_budgets_get_without_preload_co :return: Returns the result object. """ # noqa: E501 - _param = self._list_organization_budgets_v1_organizations_me_budgets_get_serialize( + _param = self._list_organization_budgets_api_v1_organizations_me_budgets_get_serialize( skip=skip, limit=limit, _request_auth=_request_auth, @@ -1344,7 +1344,7 @@ def list_organization_budgets_v1_organizations_me_budgets_get_without_preload_co return response_data.response - def _list_organization_budgets_v1_organizations_me_budgets_get_serialize( + def _list_organization_budgets_api_v1_organizations_me_budgets_get_serialize( self, skip, limit, @@ -1400,7 +1400,7 @@ def _list_organization_budgets_v1_organizations_me_budgets_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/organizations/me/budgets', + resource_path='/api/v1/organizations/me/budgets', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1417,7 +1417,7 @@ def _list_organization_budgets_v1_organizations_me_budgets_get_serialize( @validate_call - def list_organization_spend_ceilings_v1_organizations_me_spend_ceilings_get( + def list_organization_spend_ceilings_api_v1_organizations_me_spend_ceilings_get( self, skip: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of records to skip")] = None, limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Maximum number of records to return")] = None, @@ -1464,7 +1464,7 @@ def list_organization_spend_ceilings_v1_organizations_me_spend_ceilings_get( :return: Returns the result object. """ # noqa: E501 - _param = self._list_organization_spend_ceilings_v1_organizations_me_spend_ceilings_get_serialize( + _param = self._list_organization_spend_ceilings_api_v1_organizations_me_spend_ceilings_get_serialize( skip=skip, limit=limit, _request_auth=_request_auth, @@ -1489,7 +1489,7 @@ def list_organization_spend_ceilings_v1_organizations_me_spend_ceilings_get( @validate_call - def list_organization_spend_ceilings_v1_organizations_me_spend_ceilings_get_with_http_info( + def list_organization_spend_ceilings_api_v1_organizations_me_spend_ceilings_get_with_http_info( self, skip: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of records to skip")] = None, limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Maximum number of records to return")] = None, @@ -1536,7 +1536,7 @@ def list_organization_spend_ceilings_v1_organizations_me_spend_ceilings_get_with :return: Returns the result object. """ # noqa: E501 - _param = self._list_organization_spend_ceilings_v1_organizations_me_spend_ceilings_get_serialize( + _param = self._list_organization_spend_ceilings_api_v1_organizations_me_spend_ceilings_get_serialize( skip=skip, limit=limit, _request_auth=_request_auth, @@ -1561,7 +1561,7 @@ def list_organization_spend_ceilings_v1_organizations_me_spend_ceilings_get_with @validate_call - def list_organization_spend_ceilings_v1_organizations_me_spend_ceilings_get_without_preload_content( + def list_organization_spend_ceilings_api_v1_organizations_me_spend_ceilings_get_without_preload_content( self, skip: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of records to skip")] = None, limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Maximum number of records to return")] = None, @@ -1608,7 +1608,7 @@ def list_organization_spend_ceilings_v1_organizations_me_spend_ceilings_get_with :return: Returns the result object. """ # noqa: E501 - _param = self._list_organization_spend_ceilings_v1_organizations_me_spend_ceilings_get_serialize( + _param = self._list_organization_spend_ceilings_api_v1_organizations_me_spend_ceilings_get_serialize( skip=skip, limit=limit, _request_auth=_request_auth, @@ -1628,7 +1628,7 @@ def list_organization_spend_ceilings_v1_organizations_me_spend_ceilings_get_with return response_data.response - def _list_organization_spend_ceilings_v1_organizations_me_spend_ceilings_get_serialize( + def _list_organization_spend_ceilings_api_v1_organizations_me_spend_ceilings_get_serialize( self, skip, limit, @@ -1684,7 +1684,7 @@ def _list_organization_spend_ceilings_v1_organizations_me_spend_ceilings_get_ser return self.api_client.param_serialize( method='GET', - resource_path='/v1/organizations/me/spend-ceilings', + resource_path='/api/v1/organizations/me/spend-ceilings', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1701,7 +1701,7 @@ def _list_organization_spend_ceilings_v1_organizations_me_spend_ceilings_get_ser @validate_call - def update_organization_budget_v1_organizations_me_budgets_budget_id_patch( + def update_organization_budget_api_v1_organizations_me_budgets_budget_id_patch( self, budget_id: StrictStr, organization_budget_update: OrganizationBudgetUpdate, @@ -1748,7 +1748,7 @@ def update_organization_budget_v1_organizations_me_budgets_budget_id_patch( :return: Returns the result object. """ # noqa: E501 - _param = self._update_organization_budget_v1_organizations_me_budgets_budget_id_patch_serialize( + _param = self._update_organization_budget_api_v1_organizations_me_budgets_budget_id_patch_serialize( budget_id=budget_id, organization_budget_update=organization_budget_update, _request_auth=_request_auth, @@ -1773,7 +1773,7 @@ def update_organization_budget_v1_organizations_me_budgets_budget_id_patch( @validate_call - def update_organization_budget_v1_organizations_me_budgets_budget_id_patch_with_http_info( + def update_organization_budget_api_v1_organizations_me_budgets_budget_id_patch_with_http_info( self, budget_id: StrictStr, organization_budget_update: OrganizationBudgetUpdate, @@ -1820,7 +1820,7 @@ def update_organization_budget_v1_organizations_me_budgets_budget_id_patch_with_ :return: Returns the result object. """ # noqa: E501 - _param = self._update_organization_budget_v1_organizations_me_budgets_budget_id_patch_serialize( + _param = self._update_organization_budget_api_v1_organizations_me_budgets_budget_id_patch_serialize( budget_id=budget_id, organization_budget_update=organization_budget_update, _request_auth=_request_auth, @@ -1845,7 +1845,7 @@ def update_organization_budget_v1_organizations_me_budgets_budget_id_patch_with_ @validate_call - def update_organization_budget_v1_organizations_me_budgets_budget_id_patch_without_preload_content( + def update_organization_budget_api_v1_organizations_me_budgets_budget_id_patch_without_preload_content( self, budget_id: StrictStr, organization_budget_update: OrganizationBudgetUpdate, @@ -1892,7 +1892,7 @@ def update_organization_budget_v1_organizations_me_budgets_budget_id_patch_witho :return: Returns the result object. """ # noqa: E501 - _param = self._update_organization_budget_v1_organizations_me_budgets_budget_id_patch_serialize( + _param = self._update_organization_budget_api_v1_organizations_me_budgets_budget_id_patch_serialize( budget_id=budget_id, organization_budget_update=organization_budget_update, _request_auth=_request_auth, @@ -1912,7 +1912,7 @@ def update_organization_budget_v1_organizations_me_budgets_budget_id_patch_witho return response_data.response - def _update_organization_budget_v1_organizations_me_budgets_budget_id_patch_serialize( + def _update_organization_budget_api_v1_organizations_me_budgets_budget_id_patch_serialize( self, budget_id, organization_budget_update, @@ -1977,7 +1977,7 @@ def _update_organization_budget_v1_organizations_me_budgets_budget_id_patch_seri return self.api_client.param_serialize( method='PATCH', - resource_path='/v1/organizations/me/budgets/{budget_id}', + resource_path='/api/v1/organizations/me/budgets/{budget_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1994,7 +1994,7 @@ def _update_organization_budget_v1_organizations_me_budgets_budget_id_patch_seri @validate_call - def update_organization_spend_ceiling_v1_organizations_me_spend_ceilings_ceiling_id_patch( + def update_organization_spend_ceiling_api_v1_organizations_me_spend_ceilings_ceiling_id_patch( self, ceiling_id: StrictStr, organization_scoped_budget_update: OrganizationScopedBudgetUpdate, @@ -2041,7 +2041,7 @@ def update_organization_spend_ceiling_v1_organizations_me_spend_ceilings_ceiling :return: Returns the result object. """ # noqa: E501 - _param = self._update_organization_spend_ceiling_v1_organizations_me_spend_ceilings_ceiling_id_patch_serialize( + _param = self._update_organization_spend_ceiling_api_v1_organizations_me_spend_ceilings_ceiling_id_patch_serialize( ceiling_id=ceiling_id, organization_scoped_budget_update=organization_scoped_budget_update, _request_auth=_request_auth, @@ -2066,7 +2066,7 @@ def update_organization_spend_ceiling_v1_organizations_me_spend_ceilings_ceiling @validate_call - def update_organization_spend_ceiling_v1_organizations_me_spend_ceilings_ceiling_id_patch_with_http_info( + def update_organization_spend_ceiling_api_v1_organizations_me_spend_ceilings_ceiling_id_patch_with_http_info( self, ceiling_id: StrictStr, organization_scoped_budget_update: OrganizationScopedBudgetUpdate, @@ -2113,7 +2113,7 @@ def update_organization_spend_ceiling_v1_organizations_me_spend_ceilings_ceiling :return: Returns the result object. """ # noqa: E501 - _param = self._update_organization_spend_ceiling_v1_organizations_me_spend_ceilings_ceiling_id_patch_serialize( + _param = self._update_organization_spend_ceiling_api_v1_organizations_me_spend_ceilings_ceiling_id_patch_serialize( ceiling_id=ceiling_id, organization_scoped_budget_update=organization_scoped_budget_update, _request_auth=_request_auth, @@ -2138,7 +2138,7 @@ def update_organization_spend_ceiling_v1_organizations_me_spend_ceilings_ceiling @validate_call - def update_organization_spend_ceiling_v1_organizations_me_spend_ceilings_ceiling_id_patch_without_preload_content( + def update_organization_spend_ceiling_api_v1_organizations_me_spend_ceilings_ceiling_id_patch_without_preload_content( self, ceiling_id: StrictStr, organization_scoped_budget_update: OrganizationScopedBudgetUpdate, @@ -2185,7 +2185,7 @@ def update_organization_spend_ceiling_v1_organizations_me_spend_ceilings_ceiling :return: Returns the result object. """ # noqa: E501 - _param = self._update_organization_spend_ceiling_v1_organizations_me_spend_ceilings_ceiling_id_patch_serialize( + _param = self._update_organization_spend_ceiling_api_v1_organizations_me_spend_ceilings_ceiling_id_patch_serialize( ceiling_id=ceiling_id, organization_scoped_budget_update=organization_scoped_budget_update, _request_auth=_request_auth, @@ -2205,7 +2205,7 @@ def update_organization_spend_ceiling_v1_organizations_me_spend_ceilings_ceiling return response_data.response - def _update_organization_spend_ceiling_v1_organizations_me_spend_ceilings_ceiling_id_patch_serialize( + def _update_organization_spend_ceiling_api_v1_organizations_me_spend_ceilings_ceiling_id_patch_serialize( self, ceiling_id, organization_scoped_budget_update, @@ -2270,7 +2270,7 @@ def _update_organization_spend_ceiling_v1_organizations_me_spend_ceilings_ceilin return self.api_client.param_serialize( method='PATCH', - resource_path='/v1/organizations/me/spend-ceilings/{ceiling_id}', + resource_path='/api/v1/organizations/me/spend-ceilings/{ceiling_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/organization_guardrails_api.py b/src/otari/_client/api/organization_guardrails_api.py index 67aefff..d330328 100644 --- a/src/otari/_client/api/organization_guardrails_api.py +++ b/src/otari/_client/api/organization_guardrails_api.py @@ -44,7 +44,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def create_organization_guardrail_v1_organizations_me_guardrails_post( + def create_organization_guardrail_api_v1_organizations_me_guardrails_post( self, organization_guardrail_create: OrganizationGuardrailCreate, _request_timeout: Union[ @@ -88,7 +88,7 @@ def create_organization_guardrail_v1_organizations_me_guardrails_post( :return: Returns the result object. """ # noqa: E501 - _param = self._create_organization_guardrail_v1_organizations_me_guardrails_post_serialize( + _param = self._create_organization_guardrail_api_v1_organizations_me_guardrails_post_serialize( organization_guardrail_create=organization_guardrail_create, _request_auth=_request_auth, _content_type=_content_type, @@ -112,7 +112,7 @@ def create_organization_guardrail_v1_organizations_me_guardrails_post( @validate_call - def create_organization_guardrail_v1_organizations_me_guardrails_post_with_http_info( + def create_organization_guardrail_api_v1_organizations_me_guardrails_post_with_http_info( self, organization_guardrail_create: OrganizationGuardrailCreate, _request_timeout: Union[ @@ -156,7 +156,7 @@ def create_organization_guardrail_v1_organizations_me_guardrails_post_with_http_ :return: Returns the result object. """ # noqa: E501 - _param = self._create_organization_guardrail_v1_organizations_me_guardrails_post_serialize( + _param = self._create_organization_guardrail_api_v1_organizations_me_guardrails_post_serialize( organization_guardrail_create=organization_guardrail_create, _request_auth=_request_auth, _content_type=_content_type, @@ -180,7 +180,7 @@ def create_organization_guardrail_v1_organizations_me_guardrails_post_with_http_ @validate_call - def create_organization_guardrail_v1_organizations_me_guardrails_post_without_preload_content( + def create_organization_guardrail_api_v1_organizations_me_guardrails_post_without_preload_content( self, organization_guardrail_create: OrganizationGuardrailCreate, _request_timeout: Union[ @@ -224,7 +224,7 @@ def create_organization_guardrail_v1_organizations_me_guardrails_post_without_pr :return: Returns the result object. """ # noqa: E501 - _param = self._create_organization_guardrail_v1_organizations_me_guardrails_post_serialize( + _param = self._create_organization_guardrail_api_v1_organizations_me_guardrails_post_serialize( organization_guardrail_create=organization_guardrail_create, _request_auth=_request_auth, _content_type=_content_type, @@ -243,7 +243,7 @@ def create_organization_guardrail_v1_organizations_me_guardrails_post_without_pr return response_data.response - def _create_organization_guardrail_v1_organizations_me_guardrails_post_serialize( + def _create_organization_guardrail_api_v1_organizations_me_guardrails_post_serialize( self, organization_guardrail_create, _request_auth, @@ -305,7 +305,7 @@ def _create_organization_guardrail_v1_organizations_me_guardrails_post_serialize return self.api_client.param_serialize( method='POST', - resource_path='/v1/organizations/me/guardrails', + resource_path='/api/v1/organizations/me/guardrails', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -322,7 +322,7 @@ def _create_organization_guardrail_v1_organizations_me_guardrails_post_serialize @validate_call - def delete_organization_guardrail_v1_organizations_me_guardrails_guardrail_id_delete( + def delete_organization_guardrail_api_v1_organizations_me_guardrails_guardrail_id_delete( self, guardrail_id: UUID, _request_timeout: Union[ @@ -366,7 +366,7 @@ def delete_organization_guardrail_v1_organizations_me_guardrails_guardrail_id_de :return: Returns the result object. """ # noqa: E501 - _param = self._delete_organization_guardrail_v1_organizations_me_guardrails_guardrail_id_delete_serialize( + _param = self._delete_organization_guardrail_api_v1_organizations_me_guardrails_guardrail_id_delete_serialize( guardrail_id=guardrail_id, _request_auth=_request_auth, _content_type=_content_type, @@ -390,7 +390,7 @@ def delete_organization_guardrail_v1_organizations_me_guardrails_guardrail_id_de @validate_call - def delete_organization_guardrail_v1_organizations_me_guardrails_guardrail_id_delete_with_http_info( + def delete_organization_guardrail_api_v1_organizations_me_guardrails_guardrail_id_delete_with_http_info( self, guardrail_id: UUID, _request_timeout: Union[ @@ -434,7 +434,7 @@ def delete_organization_guardrail_v1_organizations_me_guardrails_guardrail_id_de :return: Returns the result object. """ # noqa: E501 - _param = self._delete_organization_guardrail_v1_organizations_me_guardrails_guardrail_id_delete_serialize( + _param = self._delete_organization_guardrail_api_v1_organizations_me_guardrails_guardrail_id_delete_serialize( guardrail_id=guardrail_id, _request_auth=_request_auth, _content_type=_content_type, @@ -458,7 +458,7 @@ def delete_organization_guardrail_v1_organizations_me_guardrails_guardrail_id_de @validate_call - def delete_organization_guardrail_v1_organizations_me_guardrails_guardrail_id_delete_without_preload_content( + def delete_organization_guardrail_api_v1_organizations_me_guardrails_guardrail_id_delete_without_preload_content( self, guardrail_id: UUID, _request_timeout: Union[ @@ -502,7 +502,7 @@ def delete_organization_guardrail_v1_organizations_me_guardrails_guardrail_id_de :return: Returns the result object. """ # noqa: E501 - _param = self._delete_organization_guardrail_v1_organizations_me_guardrails_guardrail_id_delete_serialize( + _param = self._delete_organization_guardrail_api_v1_organizations_me_guardrails_guardrail_id_delete_serialize( guardrail_id=guardrail_id, _request_auth=_request_auth, _content_type=_content_type, @@ -521,7 +521,7 @@ def delete_organization_guardrail_v1_organizations_me_guardrails_guardrail_id_de return response_data.response - def _delete_organization_guardrail_v1_organizations_me_guardrails_guardrail_id_delete_serialize( + def _delete_organization_guardrail_api_v1_organizations_me_guardrails_guardrail_id_delete_serialize( self, guardrail_id, _request_auth, @@ -570,7 +570,7 @@ def _delete_organization_guardrail_v1_organizations_me_guardrails_guardrail_id_d return self.api_client.param_serialize( method='DELETE', - resource_path='/v1/organizations/me/guardrails/{guardrail_id}', + resource_path='/api/v1/organizations/me/guardrails/{guardrail_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -587,7 +587,7 @@ def _delete_organization_guardrail_v1_organizations_me_guardrails_guardrail_id_d @validate_call - def list_organization_guardrails_v1_organizations_me_guardrails_get( + def list_organization_guardrails_api_v1_organizations_me_guardrails_get( self, skip: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of records to skip")] = None, limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Maximum number of records to return")] = None, @@ -634,7 +634,7 @@ def list_organization_guardrails_v1_organizations_me_guardrails_get( :return: Returns the result object. """ # noqa: E501 - _param = self._list_organization_guardrails_v1_organizations_me_guardrails_get_serialize( + _param = self._list_organization_guardrails_api_v1_organizations_me_guardrails_get_serialize( skip=skip, limit=limit, _request_auth=_request_auth, @@ -659,7 +659,7 @@ def list_organization_guardrails_v1_organizations_me_guardrails_get( @validate_call - def list_organization_guardrails_v1_organizations_me_guardrails_get_with_http_info( + def list_organization_guardrails_api_v1_organizations_me_guardrails_get_with_http_info( self, skip: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of records to skip")] = None, limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Maximum number of records to return")] = None, @@ -706,7 +706,7 @@ def list_organization_guardrails_v1_organizations_me_guardrails_get_with_http_in :return: Returns the result object. """ # noqa: E501 - _param = self._list_organization_guardrails_v1_organizations_me_guardrails_get_serialize( + _param = self._list_organization_guardrails_api_v1_organizations_me_guardrails_get_serialize( skip=skip, limit=limit, _request_auth=_request_auth, @@ -731,7 +731,7 @@ def list_organization_guardrails_v1_organizations_me_guardrails_get_with_http_in @validate_call - def list_organization_guardrails_v1_organizations_me_guardrails_get_without_preload_content( + def list_organization_guardrails_api_v1_organizations_me_guardrails_get_without_preload_content( self, skip: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of records to skip")] = None, limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Maximum number of records to return")] = None, @@ -778,7 +778,7 @@ def list_organization_guardrails_v1_organizations_me_guardrails_get_without_prel :return: Returns the result object. """ # noqa: E501 - _param = self._list_organization_guardrails_v1_organizations_me_guardrails_get_serialize( + _param = self._list_organization_guardrails_api_v1_organizations_me_guardrails_get_serialize( skip=skip, limit=limit, _request_auth=_request_auth, @@ -798,7 +798,7 @@ def list_organization_guardrails_v1_organizations_me_guardrails_get_without_prel return response_data.response - def _list_organization_guardrails_v1_organizations_me_guardrails_get_serialize( + def _list_organization_guardrails_api_v1_organizations_me_guardrails_get_serialize( self, skip, limit, @@ -854,7 +854,7 @@ def _list_organization_guardrails_v1_organizations_me_guardrails_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/organizations/me/guardrails', + resource_path='/api/v1/organizations/me/guardrails', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -871,7 +871,7 @@ def _list_organization_guardrails_v1_organizations_me_guardrails_get_serialize( @validate_call - def update_organization_guardrail_v1_organizations_me_guardrails_guardrail_id_patch( + def update_organization_guardrail_api_v1_organizations_me_guardrails_guardrail_id_patch( self, guardrail_id: UUID, organization_guardrail_update: OrganizationGuardrailUpdate, @@ -918,7 +918,7 @@ def update_organization_guardrail_v1_organizations_me_guardrails_guardrail_id_pa :return: Returns the result object. """ # noqa: E501 - _param = self._update_organization_guardrail_v1_organizations_me_guardrails_guardrail_id_patch_serialize( + _param = self._update_organization_guardrail_api_v1_organizations_me_guardrails_guardrail_id_patch_serialize( guardrail_id=guardrail_id, organization_guardrail_update=organization_guardrail_update, _request_auth=_request_auth, @@ -943,7 +943,7 @@ def update_organization_guardrail_v1_organizations_me_guardrails_guardrail_id_pa @validate_call - def update_organization_guardrail_v1_organizations_me_guardrails_guardrail_id_patch_with_http_info( + def update_organization_guardrail_api_v1_organizations_me_guardrails_guardrail_id_patch_with_http_info( self, guardrail_id: UUID, organization_guardrail_update: OrganizationGuardrailUpdate, @@ -990,7 +990,7 @@ def update_organization_guardrail_v1_organizations_me_guardrails_guardrail_id_pa :return: Returns the result object. """ # noqa: E501 - _param = self._update_organization_guardrail_v1_organizations_me_guardrails_guardrail_id_patch_serialize( + _param = self._update_organization_guardrail_api_v1_organizations_me_guardrails_guardrail_id_patch_serialize( guardrail_id=guardrail_id, organization_guardrail_update=organization_guardrail_update, _request_auth=_request_auth, @@ -1015,7 +1015,7 @@ def update_organization_guardrail_v1_organizations_me_guardrails_guardrail_id_pa @validate_call - def update_organization_guardrail_v1_organizations_me_guardrails_guardrail_id_patch_without_preload_content( + def update_organization_guardrail_api_v1_organizations_me_guardrails_guardrail_id_patch_without_preload_content( self, guardrail_id: UUID, organization_guardrail_update: OrganizationGuardrailUpdate, @@ -1062,7 +1062,7 @@ def update_organization_guardrail_v1_organizations_me_guardrails_guardrail_id_pa :return: Returns the result object. """ # noqa: E501 - _param = self._update_organization_guardrail_v1_organizations_me_guardrails_guardrail_id_patch_serialize( + _param = self._update_organization_guardrail_api_v1_organizations_me_guardrails_guardrail_id_patch_serialize( guardrail_id=guardrail_id, organization_guardrail_update=organization_guardrail_update, _request_auth=_request_auth, @@ -1082,7 +1082,7 @@ def update_organization_guardrail_v1_organizations_me_guardrails_guardrail_id_pa return response_data.response - def _update_organization_guardrail_v1_organizations_me_guardrails_guardrail_id_patch_serialize( + def _update_organization_guardrail_api_v1_organizations_me_guardrails_guardrail_id_patch_serialize( self, guardrail_id, organization_guardrail_update, @@ -1147,7 +1147,7 @@ def _update_organization_guardrail_v1_organizations_me_guardrails_guardrail_id_p return self.api_client.param_serialize( method='PATCH', - resource_path='/v1/organizations/me/guardrails/{guardrail_id}', + resource_path='/api/v1/organizations/me/guardrails/{guardrail_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/organization_keys_api.py b/src/otari/_client/api/organization_keys_api.py index 5f6356a..ebb7526 100644 --- a/src/otari/_client/api/organization_keys_api.py +++ b/src/otari/_client/api/organization_keys_api.py @@ -43,7 +43,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def create_own_key_v1_organizations_me_keys_post( + def create_own_key_api_v1_organizations_me_keys_post( self, create_own_key_request: CreateOwnKeyRequest, _request_timeout: Union[ @@ -61,7 +61,7 @@ def create_own_key_v1_organizations_me_keys_post( ) -> CreateKeyResponse: """Create Own Key - Create an API key owned by the caller, in a workspace they may see. The member-scoped counterpart of ``POST /v1/keys``: the owner is always the caller's own attribution user, the key is always budget-enforced, and the workspace must be visible to the caller (a member of it, or an organization owner/admin/superuser, who see every workspace). The secret is returned once. + Create an API key owned by the caller, in a workspace they may see. The member-scoped counterpart of ``POST /api/v1/keys``: the owner is always the caller's own attribution user, the key is always budget-enforced, and the workspace must be visible to the caller (a member of it, or an organization owner/admin/superuser, who see every workspace). The secret is returned once. :param create_own_key_request: (required) :type create_own_key_request: CreateOwnKeyRequest @@ -87,7 +87,7 @@ def create_own_key_v1_organizations_me_keys_post( :return: Returns the result object. """ # noqa: E501 - _param = self._create_own_key_v1_organizations_me_keys_post_serialize( + _param = self._create_own_key_api_v1_organizations_me_keys_post_serialize( create_own_key_request=create_own_key_request, _request_auth=_request_auth, _content_type=_content_type, @@ -111,7 +111,7 @@ def create_own_key_v1_organizations_me_keys_post( @validate_call - def create_own_key_v1_organizations_me_keys_post_with_http_info( + def create_own_key_api_v1_organizations_me_keys_post_with_http_info( self, create_own_key_request: CreateOwnKeyRequest, _request_timeout: Union[ @@ -129,7 +129,7 @@ def create_own_key_v1_organizations_me_keys_post_with_http_info( ) -> ApiResponse[CreateKeyResponse]: """Create Own Key - Create an API key owned by the caller, in a workspace they may see. The member-scoped counterpart of ``POST /v1/keys``: the owner is always the caller's own attribution user, the key is always budget-enforced, and the workspace must be visible to the caller (a member of it, or an organization owner/admin/superuser, who see every workspace). The secret is returned once. + Create an API key owned by the caller, in a workspace they may see. The member-scoped counterpart of ``POST /api/v1/keys``: the owner is always the caller's own attribution user, the key is always budget-enforced, and the workspace must be visible to the caller (a member of it, or an organization owner/admin/superuser, who see every workspace). The secret is returned once. :param create_own_key_request: (required) :type create_own_key_request: CreateOwnKeyRequest @@ -155,7 +155,7 @@ def create_own_key_v1_organizations_me_keys_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_own_key_v1_organizations_me_keys_post_serialize( + _param = self._create_own_key_api_v1_organizations_me_keys_post_serialize( create_own_key_request=create_own_key_request, _request_auth=_request_auth, _content_type=_content_type, @@ -179,7 +179,7 @@ def create_own_key_v1_organizations_me_keys_post_with_http_info( @validate_call - def create_own_key_v1_organizations_me_keys_post_without_preload_content( + def create_own_key_api_v1_organizations_me_keys_post_without_preload_content( self, create_own_key_request: CreateOwnKeyRequest, _request_timeout: Union[ @@ -197,7 +197,7 @@ def create_own_key_v1_organizations_me_keys_post_without_preload_content( ) -> RESTResponseType: """Create Own Key - Create an API key owned by the caller, in a workspace they may see. The member-scoped counterpart of ``POST /v1/keys``: the owner is always the caller's own attribution user, the key is always budget-enforced, and the workspace must be visible to the caller (a member of it, or an organization owner/admin/superuser, who see every workspace). The secret is returned once. + Create an API key owned by the caller, in a workspace they may see. The member-scoped counterpart of ``POST /api/v1/keys``: the owner is always the caller's own attribution user, the key is always budget-enforced, and the workspace must be visible to the caller (a member of it, or an organization owner/admin/superuser, who see every workspace). The secret is returned once. :param create_own_key_request: (required) :type create_own_key_request: CreateOwnKeyRequest @@ -223,7 +223,7 @@ def create_own_key_v1_organizations_me_keys_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._create_own_key_v1_organizations_me_keys_post_serialize( + _param = self._create_own_key_api_v1_organizations_me_keys_post_serialize( create_own_key_request=create_own_key_request, _request_auth=_request_auth, _content_type=_content_type, @@ -242,7 +242,7 @@ def create_own_key_v1_organizations_me_keys_post_without_preload_content( return response_data.response - def _create_own_key_v1_organizations_me_keys_post_serialize( + def _create_own_key_api_v1_organizations_me_keys_post_serialize( self, create_own_key_request, _request_auth, @@ -304,7 +304,7 @@ def _create_own_key_v1_organizations_me_keys_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/organizations/me/keys', + resource_path='/api/v1/organizations/me/keys', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -321,7 +321,7 @@ def _create_own_key_v1_organizations_me_keys_post_serialize( @validate_call - def delete_own_key_v1_organizations_me_keys_key_id_delete( + def delete_own_key_api_v1_organizations_me_keys_key_id_delete( self, key_id: StrictStr, _request_timeout: Union[ @@ -365,7 +365,7 @@ def delete_own_key_v1_organizations_me_keys_key_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_own_key_v1_organizations_me_keys_key_id_delete_serialize( + _param = self._delete_own_key_api_v1_organizations_me_keys_key_id_delete_serialize( key_id=key_id, _request_auth=_request_auth, _content_type=_content_type, @@ -389,7 +389,7 @@ def delete_own_key_v1_organizations_me_keys_key_id_delete( @validate_call - def delete_own_key_v1_organizations_me_keys_key_id_delete_with_http_info( + def delete_own_key_api_v1_organizations_me_keys_key_id_delete_with_http_info( self, key_id: StrictStr, _request_timeout: Union[ @@ -433,7 +433,7 @@ def delete_own_key_v1_organizations_me_keys_key_id_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_own_key_v1_organizations_me_keys_key_id_delete_serialize( + _param = self._delete_own_key_api_v1_organizations_me_keys_key_id_delete_serialize( key_id=key_id, _request_auth=_request_auth, _content_type=_content_type, @@ -457,7 +457,7 @@ def delete_own_key_v1_organizations_me_keys_key_id_delete_with_http_info( @validate_call - def delete_own_key_v1_organizations_me_keys_key_id_delete_without_preload_content( + def delete_own_key_api_v1_organizations_me_keys_key_id_delete_without_preload_content( self, key_id: StrictStr, _request_timeout: Union[ @@ -501,7 +501,7 @@ def delete_own_key_v1_organizations_me_keys_key_id_delete_without_preload_conten :return: Returns the result object. """ # noqa: E501 - _param = self._delete_own_key_v1_organizations_me_keys_key_id_delete_serialize( + _param = self._delete_own_key_api_v1_organizations_me_keys_key_id_delete_serialize( key_id=key_id, _request_auth=_request_auth, _content_type=_content_type, @@ -520,7 +520,7 @@ def delete_own_key_v1_organizations_me_keys_key_id_delete_without_preload_conten return response_data.response - def _delete_own_key_v1_organizations_me_keys_key_id_delete_serialize( + def _delete_own_key_api_v1_organizations_me_keys_key_id_delete_serialize( self, key_id, _request_auth, @@ -569,7 +569,7 @@ def _delete_own_key_v1_organizations_me_keys_key_id_delete_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/v1/organizations/me/keys/{key_id}', + resource_path='/api/v1/organizations/me/keys/{key_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -586,7 +586,7 @@ def _delete_own_key_v1_organizations_me_keys_key_id_delete_serialize( @validate_call - def list_own_keys_v1_organizations_me_keys_get( + def list_own_keys_api_v1_organizations_me_keys_get( self, skip: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, limit: Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]] = None, @@ -636,7 +636,7 @@ def list_own_keys_v1_organizations_me_keys_get( :return: Returns the result object. """ # noqa: E501 - _param = self._list_own_keys_v1_organizations_me_keys_get_serialize( + _param = self._list_own_keys_api_v1_organizations_me_keys_get_serialize( skip=skip, limit=limit, workspace_id=workspace_id, @@ -662,7 +662,7 @@ def list_own_keys_v1_organizations_me_keys_get( @validate_call - def list_own_keys_v1_organizations_me_keys_get_with_http_info( + def list_own_keys_api_v1_organizations_me_keys_get_with_http_info( self, skip: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, limit: Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]] = None, @@ -712,7 +712,7 @@ def list_own_keys_v1_organizations_me_keys_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_own_keys_v1_organizations_me_keys_get_serialize( + _param = self._list_own_keys_api_v1_organizations_me_keys_get_serialize( skip=skip, limit=limit, workspace_id=workspace_id, @@ -738,7 +738,7 @@ def list_own_keys_v1_organizations_me_keys_get_with_http_info( @validate_call - def list_own_keys_v1_organizations_me_keys_get_without_preload_content( + def list_own_keys_api_v1_organizations_me_keys_get_without_preload_content( self, skip: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, limit: Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]] = None, @@ -788,7 +788,7 @@ def list_own_keys_v1_organizations_me_keys_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._list_own_keys_v1_organizations_me_keys_get_serialize( + _param = self._list_own_keys_api_v1_organizations_me_keys_get_serialize( skip=skip, limit=limit, workspace_id=workspace_id, @@ -809,7 +809,7 @@ def list_own_keys_v1_organizations_me_keys_get_without_preload_content( return response_data.response - def _list_own_keys_v1_organizations_me_keys_get_serialize( + def _list_own_keys_api_v1_organizations_me_keys_get_serialize( self, skip, limit, @@ -870,7 +870,7 @@ def _list_own_keys_v1_organizations_me_keys_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/organizations/me/keys', + resource_path='/api/v1/organizations/me/keys', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -887,7 +887,7 @@ def _list_own_keys_v1_organizations_me_keys_get_serialize( @validate_call - def rotate_own_key_v1_organizations_me_keys_key_id_rotate_post( + def rotate_own_key_api_v1_organizations_me_keys_key_id_rotate_post( self, key_id: StrictStr, _request_timeout: Union[ @@ -931,7 +931,7 @@ def rotate_own_key_v1_organizations_me_keys_key_id_rotate_post( :return: Returns the result object. """ # noqa: E501 - _param = self._rotate_own_key_v1_organizations_me_keys_key_id_rotate_post_serialize( + _param = self._rotate_own_key_api_v1_organizations_me_keys_key_id_rotate_post_serialize( key_id=key_id, _request_auth=_request_auth, _content_type=_content_type, @@ -955,7 +955,7 @@ def rotate_own_key_v1_organizations_me_keys_key_id_rotate_post( @validate_call - def rotate_own_key_v1_organizations_me_keys_key_id_rotate_post_with_http_info( + def rotate_own_key_api_v1_organizations_me_keys_key_id_rotate_post_with_http_info( self, key_id: StrictStr, _request_timeout: Union[ @@ -999,7 +999,7 @@ def rotate_own_key_v1_organizations_me_keys_key_id_rotate_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._rotate_own_key_v1_organizations_me_keys_key_id_rotate_post_serialize( + _param = self._rotate_own_key_api_v1_organizations_me_keys_key_id_rotate_post_serialize( key_id=key_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1023,7 +1023,7 @@ def rotate_own_key_v1_organizations_me_keys_key_id_rotate_post_with_http_info( @validate_call - def rotate_own_key_v1_organizations_me_keys_key_id_rotate_post_without_preload_content( + def rotate_own_key_api_v1_organizations_me_keys_key_id_rotate_post_without_preload_content( self, key_id: StrictStr, _request_timeout: Union[ @@ -1067,7 +1067,7 @@ def rotate_own_key_v1_organizations_me_keys_key_id_rotate_post_without_preload_c :return: Returns the result object. """ # noqa: E501 - _param = self._rotate_own_key_v1_organizations_me_keys_key_id_rotate_post_serialize( + _param = self._rotate_own_key_api_v1_organizations_me_keys_key_id_rotate_post_serialize( key_id=key_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1086,7 +1086,7 @@ def rotate_own_key_v1_organizations_me_keys_key_id_rotate_post_without_preload_c return response_data.response - def _rotate_own_key_v1_organizations_me_keys_key_id_rotate_post_serialize( + def _rotate_own_key_api_v1_organizations_me_keys_key_id_rotate_post_serialize( self, key_id, _request_auth, @@ -1135,7 +1135,7 @@ def _rotate_own_key_v1_organizations_me_keys_key_id_rotate_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/organizations/me/keys/{key_id}/rotate', + resource_path='/api/v1/organizations/me/keys/{key_id}/rotate', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1152,7 +1152,7 @@ def _rotate_own_key_v1_organizations_me_keys_key_id_rotate_post_serialize( @validate_call - def update_own_key_v1_organizations_me_keys_key_id_patch( + def update_own_key_api_v1_organizations_me_keys_key_id_patch( self, key_id: StrictStr, update_own_key_request: UpdateOwnKeyRequest, @@ -1199,7 +1199,7 @@ def update_own_key_v1_organizations_me_keys_key_id_patch( :return: Returns the result object. """ # noqa: E501 - _param = self._update_own_key_v1_organizations_me_keys_key_id_patch_serialize( + _param = self._update_own_key_api_v1_organizations_me_keys_key_id_patch_serialize( key_id=key_id, update_own_key_request=update_own_key_request, _request_auth=_request_auth, @@ -1224,7 +1224,7 @@ def update_own_key_v1_organizations_me_keys_key_id_patch( @validate_call - def update_own_key_v1_organizations_me_keys_key_id_patch_with_http_info( + def update_own_key_api_v1_organizations_me_keys_key_id_patch_with_http_info( self, key_id: StrictStr, update_own_key_request: UpdateOwnKeyRequest, @@ -1271,7 +1271,7 @@ def update_own_key_v1_organizations_me_keys_key_id_patch_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._update_own_key_v1_organizations_me_keys_key_id_patch_serialize( + _param = self._update_own_key_api_v1_organizations_me_keys_key_id_patch_serialize( key_id=key_id, update_own_key_request=update_own_key_request, _request_auth=_request_auth, @@ -1296,7 +1296,7 @@ def update_own_key_v1_organizations_me_keys_key_id_patch_with_http_info( @validate_call - def update_own_key_v1_organizations_me_keys_key_id_patch_without_preload_content( + def update_own_key_api_v1_organizations_me_keys_key_id_patch_without_preload_content( self, key_id: StrictStr, update_own_key_request: UpdateOwnKeyRequest, @@ -1343,7 +1343,7 @@ def update_own_key_v1_organizations_me_keys_key_id_patch_without_preload_content :return: Returns the result object. """ # noqa: E501 - _param = self._update_own_key_v1_organizations_me_keys_key_id_patch_serialize( + _param = self._update_own_key_api_v1_organizations_me_keys_key_id_patch_serialize( key_id=key_id, update_own_key_request=update_own_key_request, _request_auth=_request_auth, @@ -1363,7 +1363,7 @@ def update_own_key_v1_organizations_me_keys_key_id_patch_without_preload_content return response_data.response - def _update_own_key_v1_organizations_me_keys_key_id_patch_serialize( + def _update_own_key_api_v1_organizations_me_keys_key_id_patch_serialize( self, key_id, update_own_key_request, @@ -1428,7 +1428,7 @@ def _update_own_key_v1_organizations_me_keys_key_id_patch_serialize( return self.api_client.param_serialize( method='PATCH', - resource_path='/v1/organizations/me/keys/{key_id}', + resource_path='/api/v1/organizations/me/keys/{key_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/organization_pricing_api.py b/src/otari/_client/api/organization_pricing_api.py index c349f0e..8fac716 100644 --- a/src/otari/_client/api/organization_pricing_api.py +++ b/src/otari/_client/api/organization_pricing_api.py @@ -43,7 +43,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def create_organization_pricing_v1_organizations_me_pricing_post( + def create_organization_pricing_api_v1_organizations_me_pricing_post( self, organization_model_pricing_create: OrganizationModelPricingCreate, _request_timeout: Union[ @@ -61,7 +61,7 @@ def create_organization_pricing_v1_organizations_me_pricing_post( ) -> OrganizationModelPricingPublic: """Create Organization Pricing - Set the organization's rate for a model over a period. Refused with a 409 when the period overlaps one already stored for that model, naming the period it collides with, rather than shadowing it. The key is normalized to its canonical ``instance:model`` form first, the same call ``POST /v1/pricing`` makes, and that is what makes one model one row rather than one per spelling. Stored verbatim, ``openai:gpt-4o`` and ``openai/gpt-4o`` are two keys: the overlap rule would not see them as colliding, and both would resolve, with the canonical one preferred, leaving the other dormant until the first is deleted. Normalizing on the way in is what stops that pair existing at all. + Set the organization's rate for a model over a period. Refused with a 409 when the period overlaps one already stored for that model, naming the period it collides with, rather than shadowing it. The key is normalized to its canonical ``instance:model`` form first, the same call ``POST /api/v1/pricing`` makes, and that is what makes one model one row rather than one per spelling. Stored verbatim, ``openai:gpt-4o`` and ``openai/gpt-4o`` are two keys: the overlap rule would not see them as colliding, and both would resolve, with the canonical one preferred, leaving the other dormant until the first is deleted. Normalizing on the way in is what stops that pair existing at all. :param organization_model_pricing_create: (required) :type organization_model_pricing_create: OrganizationModelPricingCreate @@ -87,7 +87,7 @@ def create_organization_pricing_v1_organizations_me_pricing_post( :return: Returns the result object. """ # noqa: E501 - _param = self._create_organization_pricing_v1_organizations_me_pricing_post_serialize( + _param = self._create_organization_pricing_api_v1_organizations_me_pricing_post_serialize( organization_model_pricing_create=organization_model_pricing_create, _request_auth=_request_auth, _content_type=_content_type, @@ -111,7 +111,7 @@ def create_organization_pricing_v1_organizations_me_pricing_post( @validate_call - def create_organization_pricing_v1_organizations_me_pricing_post_with_http_info( + def create_organization_pricing_api_v1_organizations_me_pricing_post_with_http_info( self, organization_model_pricing_create: OrganizationModelPricingCreate, _request_timeout: Union[ @@ -129,7 +129,7 @@ def create_organization_pricing_v1_organizations_me_pricing_post_with_http_info( ) -> ApiResponse[OrganizationModelPricingPublic]: """Create Organization Pricing - Set the organization's rate for a model over a period. Refused with a 409 when the period overlaps one already stored for that model, naming the period it collides with, rather than shadowing it. The key is normalized to its canonical ``instance:model`` form first, the same call ``POST /v1/pricing`` makes, and that is what makes one model one row rather than one per spelling. Stored verbatim, ``openai:gpt-4o`` and ``openai/gpt-4o`` are two keys: the overlap rule would not see them as colliding, and both would resolve, with the canonical one preferred, leaving the other dormant until the first is deleted. Normalizing on the way in is what stops that pair existing at all. + Set the organization's rate for a model over a period. Refused with a 409 when the period overlaps one already stored for that model, naming the period it collides with, rather than shadowing it. The key is normalized to its canonical ``instance:model`` form first, the same call ``POST /api/v1/pricing`` makes, and that is what makes one model one row rather than one per spelling. Stored verbatim, ``openai:gpt-4o`` and ``openai/gpt-4o`` are two keys: the overlap rule would not see them as colliding, and both would resolve, with the canonical one preferred, leaving the other dormant until the first is deleted. Normalizing on the way in is what stops that pair existing at all. :param organization_model_pricing_create: (required) :type organization_model_pricing_create: OrganizationModelPricingCreate @@ -155,7 +155,7 @@ def create_organization_pricing_v1_organizations_me_pricing_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_organization_pricing_v1_organizations_me_pricing_post_serialize( + _param = self._create_organization_pricing_api_v1_organizations_me_pricing_post_serialize( organization_model_pricing_create=organization_model_pricing_create, _request_auth=_request_auth, _content_type=_content_type, @@ -179,7 +179,7 @@ def create_organization_pricing_v1_organizations_me_pricing_post_with_http_info( @validate_call - def create_organization_pricing_v1_organizations_me_pricing_post_without_preload_content( + def create_organization_pricing_api_v1_organizations_me_pricing_post_without_preload_content( self, organization_model_pricing_create: OrganizationModelPricingCreate, _request_timeout: Union[ @@ -197,7 +197,7 @@ def create_organization_pricing_v1_organizations_me_pricing_post_without_preload ) -> RESTResponseType: """Create Organization Pricing - Set the organization's rate for a model over a period. Refused with a 409 when the period overlaps one already stored for that model, naming the period it collides with, rather than shadowing it. The key is normalized to its canonical ``instance:model`` form first, the same call ``POST /v1/pricing`` makes, and that is what makes one model one row rather than one per spelling. Stored verbatim, ``openai:gpt-4o`` and ``openai/gpt-4o`` are two keys: the overlap rule would not see them as colliding, and both would resolve, with the canonical one preferred, leaving the other dormant until the first is deleted. Normalizing on the way in is what stops that pair existing at all. + Set the organization's rate for a model over a period. Refused with a 409 when the period overlaps one already stored for that model, naming the period it collides with, rather than shadowing it. The key is normalized to its canonical ``instance:model`` form first, the same call ``POST /api/v1/pricing`` makes, and that is what makes one model one row rather than one per spelling. Stored verbatim, ``openai:gpt-4o`` and ``openai/gpt-4o`` are two keys: the overlap rule would not see them as colliding, and both would resolve, with the canonical one preferred, leaving the other dormant until the first is deleted. Normalizing on the way in is what stops that pair existing at all. :param organization_model_pricing_create: (required) :type organization_model_pricing_create: OrganizationModelPricingCreate @@ -223,7 +223,7 @@ def create_organization_pricing_v1_organizations_me_pricing_post_without_preload :return: Returns the result object. """ # noqa: E501 - _param = self._create_organization_pricing_v1_organizations_me_pricing_post_serialize( + _param = self._create_organization_pricing_api_v1_organizations_me_pricing_post_serialize( organization_model_pricing_create=organization_model_pricing_create, _request_auth=_request_auth, _content_type=_content_type, @@ -242,7 +242,7 @@ def create_organization_pricing_v1_organizations_me_pricing_post_without_preload return response_data.response - def _create_organization_pricing_v1_organizations_me_pricing_post_serialize( + def _create_organization_pricing_api_v1_organizations_me_pricing_post_serialize( self, organization_model_pricing_create, _request_auth, @@ -304,7 +304,7 @@ def _create_organization_pricing_v1_organizations_me_pricing_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/organizations/me/pricing', + resource_path='/api/v1/organizations/me/pricing', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -321,7 +321,7 @@ def _create_organization_pricing_v1_organizations_me_pricing_post_serialize( @validate_call - def delete_organization_pricing_v1_organizations_me_pricing_pricing_id_delete( + def delete_organization_pricing_api_v1_organizations_me_pricing_pricing_id_delete( self, pricing_id: UUID, _request_timeout: Union[ @@ -365,7 +365,7 @@ def delete_organization_pricing_v1_organizations_me_pricing_pricing_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_organization_pricing_v1_organizations_me_pricing_pricing_id_delete_serialize( + _param = self._delete_organization_pricing_api_v1_organizations_me_pricing_pricing_id_delete_serialize( pricing_id=pricing_id, _request_auth=_request_auth, _content_type=_content_type, @@ -389,7 +389,7 @@ def delete_organization_pricing_v1_organizations_me_pricing_pricing_id_delete( @validate_call - def delete_organization_pricing_v1_organizations_me_pricing_pricing_id_delete_with_http_info( + def delete_organization_pricing_api_v1_organizations_me_pricing_pricing_id_delete_with_http_info( self, pricing_id: UUID, _request_timeout: Union[ @@ -433,7 +433,7 @@ def delete_organization_pricing_v1_organizations_me_pricing_pricing_id_delete_wi :return: Returns the result object. """ # noqa: E501 - _param = self._delete_organization_pricing_v1_organizations_me_pricing_pricing_id_delete_serialize( + _param = self._delete_organization_pricing_api_v1_organizations_me_pricing_pricing_id_delete_serialize( pricing_id=pricing_id, _request_auth=_request_auth, _content_type=_content_type, @@ -457,7 +457,7 @@ def delete_organization_pricing_v1_organizations_me_pricing_pricing_id_delete_wi @validate_call - def delete_organization_pricing_v1_organizations_me_pricing_pricing_id_delete_without_preload_content( + def delete_organization_pricing_api_v1_organizations_me_pricing_pricing_id_delete_without_preload_content( self, pricing_id: UUID, _request_timeout: Union[ @@ -501,7 +501,7 @@ def delete_organization_pricing_v1_organizations_me_pricing_pricing_id_delete_wi :return: Returns the result object. """ # noqa: E501 - _param = self._delete_organization_pricing_v1_organizations_me_pricing_pricing_id_delete_serialize( + _param = self._delete_organization_pricing_api_v1_organizations_me_pricing_pricing_id_delete_serialize( pricing_id=pricing_id, _request_auth=_request_auth, _content_type=_content_type, @@ -520,7 +520,7 @@ def delete_organization_pricing_v1_organizations_me_pricing_pricing_id_delete_wi return response_data.response - def _delete_organization_pricing_v1_organizations_me_pricing_pricing_id_delete_serialize( + def _delete_organization_pricing_api_v1_organizations_me_pricing_pricing_id_delete_serialize( self, pricing_id, _request_auth, @@ -569,7 +569,7 @@ def _delete_organization_pricing_v1_organizations_me_pricing_pricing_id_delete_s return self.api_client.param_serialize( method='DELETE', - resource_path='/v1/organizations/me/pricing/{pricing_id}', + resource_path='/api/v1/organizations/me/pricing/{pricing_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -586,7 +586,7 @@ def _delete_organization_pricing_v1_organizations_me_pricing_pricing_id_delete_s @validate_call - def list_organization_pricing_v1_organizations_me_pricing_get( + def list_organization_pricing_api_v1_organizations_me_pricing_get( self, skip: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of records to skip")] = None, limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Maximum number of records to return")] = None, @@ -633,7 +633,7 @@ def list_organization_pricing_v1_organizations_me_pricing_get( :return: Returns the result object. """ # noqa: E501 - _param = self._list_organization_pricing_v1_organizations_me_pricing_get_serialize( + _param = self._list_organization_pricing_api_v1_organizations_me_pricing_get_serialize( skip=skip, limit=limit, _request_auth=_request_auth, @@ -658,7 +658,7 @@ def list_organization_pricing_v1_organizations_me_pricing_get( @validate_call - def list_organization_pricing_v1_organizations_me_pricing_get_with_http_info( + def list_organization_pricing_api_v1_organizations_me_pricing_get_with_http_info( self, skip: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of records to skip")] = None, limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Maximum number of records to return")] = None, @@ -705,7 +705,7 @@ def list_organization_pricing_v1_organizations_me_pricing_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_organization_pricing_v1_organizations_me_pricing_get_serialize( + _param = self._list_organization_pricing_api_v1_organizations_me_pricing_get_serialize( skip=skip, limit=limit, _request_auth=_request_auth, @@ -730,7 +730,7 @@ def list_organization_pricing_v1_organizations_me_pricing_get_with_http_info( @validate_call - def list_organization_pricing_v1_organizations_me_pricing_get_without_preload_content( + def list_organization_pricing_api_v1_organizations_me_pricing_get_without_preload_content( self, skip: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of records to skip")] = None, limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Maximum number of records to return")] = None, @@ -777,7 +777,7 @@ def list_organization_pricing_v1_organizations_me_pricing_get_without_preload_co :return: Returns the result object. """ # noqa: E501 - _param = self._list_organization_pricing_v1_organizations_me_pricing_get_serialize( + _param = self._list_organization_pricing_api_v1_organizations_me_pricing_get_serialize( skip=skip, limit=limit, _request_auth=_request_auth, @@ -797,7 +797,7 @@ def list_organization_pricing_v1_organizations_me_pricing_get_without_preload_co return response_data.response - def _list_organization_pricing_v1_organizations_me_pricing_get_serialize( + def _list_organization_pricing_api_v1_organizations_me_pricing_get_serialize( self, skip, limit, @@ -853,7 +853,7 @@ def _list_organization_pricing_v1_organizations_me_pricing_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/organizations/me/pricing', + resource_path='/api/v1/organizations/me/pricing', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -870,7 +870,7 @@ def _list_organization_pricing_v1_organizations_me_pricing_get_serialize( @validate_call - def replace_organization_pricing_v1_organizations_me_pricing_pricing_id_put( + def replace_organization_pricing_api_v1_organizations_me_pricing_pricing_id_put( self, pricing_id: UUID, organization_model_pricing_update: OrganizationModelPricingUpdate, @@ -917,7 +917,7 @@ def replace_organization_pricing_v1_organizations_me_pricing_pricing_id_put( :return: Returns the result object. """ # noqa: E501 - _param = self._replace_organization_pricing_v1_organizations_me_pricing_pricing_id_put_serialize( + _param = self._replace_organization_pricing_api_v1_organizations_me_pricing_pricing_id_put_serialize( pricing_id=pricing_id, organization_model_pricing_update=organization_model_pricing_update, _request_auth=_request_auth, @@ -942,7 +942,7 @@ def replace_organization_pricing_v1_organizations_me_pricing_pricing_id_put( @validate_call - def replace_organization_pricing_v1_organizations_me_pricing_pricing_id_put_with_http_info( + def replace_organization_pricing_api_v1_organizations_me_pricing_pricing_id_put_with_http_info( self, pricing_id: UUID, organization_model_pricing_update: OrganizationModelPricingUpdate, @@ -989,7 +989,7 @@ def replace_organization_pricing_v1_organizations_me_pricing_pricing_id_put_with :return: Returns the result object. """ # noqa: E501 - _param = self._replace_organization_pricing_v1_organizations_me_pricing_pricing_id_put_serialize( + _param = self._replace_organization_pricing_api_v1_organizations_me_pricing_pricing_id_put_serialize( pricing_id=pricing_id, organization_model_pricing_update=organization_model_pricing_update, _request_auth=_request_auth, @@ -1014,7 +1014,7 @@ def replace_organization_pricing_v1_organizations_me_pricing_pricing_id_put_with @validate_call - def replace_organization_pricing_v1_organizations_me_pricing_pricing_id_put_without_preload_content( + def replace_organization_pricing_api_v1_organizations_me_pricing_pricing_id_put_without_preload_content( self, pricing_id: UUID, organization_model_pricing_update: OrganizationModelPricingUpdate, @@ -1061,7 +1061,7 @@ def replace_organization_pricing_v1_organizations_me_pricing_pricing_id_put_with :return: Returns the result object. """ # noqa: E501 - _param = self._replace_organization_pricing_v1_organizations_me_pricing_pricing_id_put_serialize( + _param = self._replace_organization_pricing_api_v1_organizations_me_pricing_pricing_id_put_serialize( pricing_id=pricing_id, organization_model_pricing_update=organization_model_pricing_update, _request_auth=_request_auth, @@ -1081,7 +1081,7 @@ def replace_organization_pricing_v1_organizations_me_pricing_pricing_id_put_with return response_data.response - def _replace_organization_pricing_v1_organizations_me_pricing_pricing_id_put_serialize( + def _replace_organization_pricing_api_v1_organizations_me_pricing_pricing_id_put_serialize( self, pricing_id, organization_model_pricing_update, @@ -1146,7 +1146,7 @@ def _replace_organization_pricing_v1_organizations_me_pricing_pricing_id_put_ser return self.api_client.param_serialize( method='PUT', - resource_path='/v1/organizations/me/pricing/{pricing_id}', + resource_path='/api/v1/organizations/me/pricing/{pricing_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/organization_usage_api.py b/src/otari/_client/api/organization_usage_api.py index ddfe560..0c8312e 100644 --- a/src/otari/_client/api/organization_usage_api.py +++ b/src/otari/_client/api/organization_usage_api.py @@ -44,7 +44,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def count_organization_usage_v1_organizations_me_usage_count_get( + def count_organization_usage_api_v1_organizations_me_usage_count_get( self, start_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds)")] = None, end_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp < end_date (ISO 8601 or Unix epoch seconds)")] = None, @@ -77,7 +77,7 @@ def count_organization_usage_v1_organizations_me_usage_count_get( ) -> UsageCount: """Count Organization Usage - Total rows matching these filters, within the caller's scope. Serves the paginator's \"N of M\" beside the list above, and is scoped the same way, so the total can never describe more rows than the list will show. Unlike the deployment-wide ``GET /v1/usage/count``, ``counts_toward_budget=false`` is not narrowed to imported rows here: that narrowing sizes the bulk mutations, and this surface has none. So this total keeps matching the list beside it. + Total rows matching these filters, within the caller's scope. Serves the paginator's \"N of M\" beside the list above, and is scoped the same way, so the total can never describe more rows than the list will show. Unlike the deployment-wide ``GET /api/v1/usage/count``, ``counts_toward_budget=false`` is not narrowed to imported rows here: that narrowing sizes the bulk mutations, and this surface has none. So this total keeps matching the list beside it. :param start_date: Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds) :type start_date: datetime @@ -133,7 +133,7 @@ def count_organization_usage_v1_organizations_me_usage_count_get( :return: Returns the result object. """ # noqa: E501 - _param = self._count_organization_usage_v1_organizations_me_usage_count_get_serialize( + _param = self._count_organization_usage_api_v1_organizations_me_usage_count_get_serialize( start_date=start_date, end_date=end_date, user_id=user_id, @@ -172,7 +172,7 @@ def count_organization_usage_v1_organizations_me_usage_count_get( @validate_call - def count_organization_usage_v1_organizations_me_usage_count_get_with_http_info( + def count_organization_usage_api_v1_organizations_me_usage_count_get_with_http_info( self, start_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds)")] = None, end_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp < end_date (ISO 8601 or Unix epoch seconds)")] = None, @@ -205,7 +205,7 @@ def count_organization_usage_v1_organizations_me_usage_count_get_with_http_info( ) -> ApiResponse[UsageCount]: """Count Organization Usage - Total rows matching these filters, within the caller's scope. Serves the paginator's \"N of M\" beside the list above, and is scoped the same way, so the total can never describe more rows than the list will show. Unlike the deployment-wide ``GET /v1/usage/count``, ``counts_toward_budget=false`` is not narrowed to imported rows here: that narrowing sizes the bulk mutations, and this surface has none. So this total keeps matching the list beside it. + Total rows matching these filters, within the caller's scope. Serves the paginator's \"N of M\" beside the list above, and is scoped the same way, so the total can never describe more rows than the list will show. Unlike the deployment-wide ``GET /api/v1/usage/count``, ``counts_toward_budget=false`` is not narrowed to imported rows here: that narrowing sizes the bulk mutations, and this surface has none. So this total keeps matching the list beside it. :param start_date: Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds) :type start_date: datetime @@ -261,7 +261,7 @@ def count_organization_usage_v1_organizations_me_usage_count_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._count_organization_usage_v1_organizations_me_usage_count_get_serialize( + _param = self._count_organization_usage_api_v1_organizations_me_usage_count_get_serialize( start_date=start_date, end_date=end_date, user_id=user_id, @@ -300,7 +300,7 @@ def count_organization_usage_v1_organizations_me_usage_count_get_with_http_info( @validate_call - def count_organization_usage_v1_organizations_me_usage_count_get_without_preload_content( + def count_organization_usage_api_v1_organizations_me_usage_count_get_without_preload_content( self, start_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds)")] = None, end_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp < end_date (ISO 8601 or Unix epoch seconds)")] = None, @@ -333,7 +333,7 @@ def count_organization_usage_v1_organizations_me_usage_count_get_without_preload ) -> RESTResponseType: """Count Organization Usage - Total rows matching these filters, within the caller's scope. Serves the paginator's \"N of M\" beside the list above, and is scoped the same way, so the total can never describe more rows than the list will show. Unlike the deployment-wide ``GET /v1/usage/count``, ``counts_toward_budget=false`` is not narrowed to imported rows here: that narrowing sizes the bulk mutations, and this surface has none. So this total keeps matching the list beside it. + Total rows matching these filters, within the caller's scope. Serves the paginator's \"N of M\" beside the list above, and is scoped the same way, so the total can never describe more rows than the list will show. Unlike the deployment-wide ``GET /api/v1/usage/count``, ``counts_toward_budget=false`` is not narrowed to imported rows here: that narrowing sizes the bulk mutations, and this surface has none. So this total keeps matching the list beside it. :param start_date: Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds) :type start_date: datetime @@ -389,7 +389,7 @@ def count_organization_usage_v1_organizations_me_usage_count_get_without_preload :return: Returns the result object. """ # noqa: E501 - _param = self._count_organization_usage_v1_organizations_me_usage_count_get_serialize( + _param = self._count_organization_usage_api_v1_organizations_me_usage_count_get_serialize( start_date=start_date, end_date=end_date, user_id=user_id, @@ -423,7 +423,7 @@ def count_organization_usage_v1_organizations_me_usage_count_get_without_preload return response_data.response - def _count_organization_usage_v1_organizations_me_usage_count_get_serialize( + def _count_organization_usage_api_v1_organizations_me_usage_count_get_serialize( self, start_date, end_date, @@ -571,7 +571,7 @@ def _count_organization_usage_v1_organizations_me_usage_count_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/organizations/me/usage/count', + resource_path='/api/v1/organizations/me/usage/count', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -588,7 +588,7 @@ def _count_organization_usage_v1_organizations_me_usage_count_get_serialize( @validate_call - def list_organization_usage_v1_organizations_me_usage_get( + def list_organization_usage_api_v1_organizations_me_usage_get( self, start_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds)")] = None, end_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp < end_date (ISO 8601 or Unix epoch seconds)")] = None, @@ -623,7 +623,7 @@ def list_organization_usage_v1_organizations_me_usage_get( ) -> List[UsageEntry]: """List Organization Usage - List the caller's organization's usage logs, most recent first. The tenant-scoped counterpart of ``GET /v1/usage``: same filters, same bare JSON array, same separate ``/count`` for a paginator's total, confined to what the caller's membership lets them see. Scope is never a parameter here. + List the caller's organization's usage logs, most recent first. The tenant-scoped counterpart of ``GET /api/v1/usage``: same filters, same bare JSON array, same separate ``/count`` for a paginator's total, confined to what the caller's membership lets them see. Scope is never a parameter here. :param start_date: Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds) :type start_date: datetime @@ -683,7 +683,7 @@ def list_organization_usage_v1_organizations_me_usage_get( :return: Returns the result object. """ # noqa: E501 - _param = self._list_organization_usage_v1_organizations_me_usage_get_serialize( + _param = self._list_organization_usage_api_v1_organizations_me_usage_get_serialize( start_date=start_date, end_date=end_date, user_id=user_id, @@ -724,7 +724,7 @@ def list_organization_usage_v1_organizations_me_usage_get( @validate_call - def list_organization_usage_v1_organizations_me_usage_get_with_http_info( + def list_organization_usage_api_v1_organizations_me_usage_get_with_http_info( self, start_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds)")] = None, end_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp < end_date (ISO 8601 or Unix epoch seconds)")] = None, @@ -759,7 +759,7 @@ def list_organization_usage_v1_organizations_me_usage_get_with_http_info( ) -> ApiResponse[List[UsageEntry]]: """List Organization Usage - List the caller's organization's usage logs, most recent first. The tenant-scoped counterpart of ``GET /v1/usage``: same filters, same bare JSON array, same separate ``/count`` for a paginator's total, confined to what the caller's membership lets them see. Scope is never a parameter here. + List the caller's organization's usage logs, most recent first. The tenant-scoped counterpart of ``GET /api/v1/usage``: same filters, same bare JSON array, same separate ``/count`` for a paginator's total, confined to what the caller's membership lets them see. Scope is never a parameter here. :param start_date: Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds) :type start_date: datetime @@ -819,7 +819,7 @@ def list_organization_usage_v1_organizations_me_usage_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_organization_usage_v1_organizations_me_usage_get_serialize( + _param = self._list_organization_usage_api_v1_organizations_me_usage_get_serialize( start_date=start_date, end_date=end_date, user_id=user_id, @@ -860,7 +860,7 @@ def list_organization_usage_v1_organizations_me_usage_get_with_http_info( @validate_call - def list_organization_usage_v1_organizations_me_usage_get_without_preload_content( + def list_organization_usage_api_v1_organizations_me_usage_get_without_preload_content( self, start_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds)")] = None, end_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp < end_date (ISO 8601 or Unix epoch seconds)")] = None, @@ -895,7 +895,7 @@ def list_organization_usage_v1_organizations_me_usage_get_without_preload_conten ) -> RESTResponseType: """List Organization Usage - List the caller's organization's usage logs, most recent first. The tenant-scoped counterpart of ``GET /v1/usage``: same filters, same bare JSON array, same separate ``/count`` for a paginator's total, confined to what the caller's membership lets them see. Scope is never a parameter here. + List the caller's organization's usage logs, most recent first. The tenant-scoped counterpart of ``GET /api/v1/usage``: same filters, same bare JSON array, same separate ``/count`` for a paginator's total, confined to what the caller's membership lets them see. Scope is never a parameter here. :param start_date: Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds) :type start_date: datetime @@ -955,7 +955,7 @@ def list_organization_usage_v1_organizations_me_usage_get_without_preload_conten :return: Returns the result object. """ # noqa: E501 - _param = self._list_organization_usage_v1_organizations_me_usage_get_serialize( + _param = self._list_organization_usage_api_v1_organizations_me_usage_get_serialize( start_date=start_date, end_date=end_date, user_id=user_id, @@ -991,7 +991,7 @@ def list_organization_usage_v1_organizations_me_usage_get_without_preload_conten return response_data.response - def _list_organization_usage_v1_organizations_me_usage_get_serialize( + def _list_organization_usage_api_v1_organizations_me_usage_get_serialize( self, start_date, end_date, @@ -1149,7 +1149,7 @@ def _list_organization_usage_v1_organizations_me_usage_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/organizations/me/usage', + resource_path='/api/v1/organizations/me/usage', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1166,7 +1166,7 @@ def _list_organization_usage_v1_organizations_me_usage_get_serialize( @validate_call - def organization_usage_series_v1_organizations_me_usage_series_get( + def organization_usage_series_api_v1_organizations_me_usage_series_get( self, group_by: Annotated[StrictStr, Field(description="Dimension to split the series by")], start_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds)")] = None, @@ -1200,7 +1200,7 @@ def organization_usage_series_v1_organizations_me_usage_series_get( ) -> UsageGroupedSeries: """Organization Usage Series - Time series split by one dimension, for the caller's organization. The tenant-scoped counterpart of ``GET /v1/usage/series``, and kept in lockstep with the summary above for the reason that endpoint gives: the dashboard serializes one filter object for both, so a filter one of them ignored would make the stacked chart disagree with the tiles beside it. + Time series split by one dimension, for the caller's organization. The tenant-scoped counterpart of ``GET /api/v1/usage/series``, and kept in lockstep with the summary above for the reason that endpoint gives: the dashboard serializes one filter object for both, so a filter one of them ignored would make the stacked chart disagree with the tiles beside it. :param group_by: Dimension to split the series by (required) :type group_by: str @@ -1258,7 +1258,7 @@ def organization_usage_series_v1_organizations_me_usage_series_get( :return: Returns the result object. """ # noqa: E501 - _param = self._organization_usage_series_v1_organizations_me_usage_series_get_serialize( + _param = self._organization_usage_series_api_v1_organizations_me_usage_series_get_serialize( group_by=group_by, start_date=start_date, end_date=end_date, @@ -1298,7 +1298,7 @@ def organization_usage_series_v1_organizations_me_usage_series_get( @validate_call - def organization_usage_series_v1_organizations_me_usage_series_get_with_http_info( + def organization_usage_series_api_v1_organizations_me_usage_series_get_with_http_info( self, group_by: Annotated[StrictStr, Field(description="Dimension to split the series by")], start_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds)")] = None, @@ -1332,7 +1332,7 @@ def organization_usage_series_v1_organizations_me_usage_series_get_with_http_inf ) -> ApiResponse[UsageGroupedSeries]: """Organization Usage Series - Time series split by one dimension, for the caller's organization. The tenant-scoped counterpart of ``GET /v1/usage/series``, and kept in lockstep with the summary above for the reason that endpoint gives: the dashboard serializes one filter object for both, so a filter one of them ignored would make the stacked chart disagree with the tiles beside it. + Time series split by one dimension, for the caller's organization. The tenant-scoped counterpart of ``GET /api/v1/usage/series``, and kept in lockstep with the summary above for the reason that endpoint gives: the dashboard serializes one filter object for both, so a filter one of them ignored would make the stacked chart disagree with the tiles beside it. :param group_by: Dimension to split the series by (required) :type group_by: str @@ -1390,7 +1390,7 @@ def organization_usage_series_v1_organizations_me_usage_series_get_with_http_inf :return: Returns the result object. """ # noqa: E501 - _param = self._organization_usage_series_v1_organizations_me_usage_series_get_serialize( + _param = self._organization_usage_series_api_v1_organizations_me_usage_series_get_serialize( group_by=group_by, start_date=start_date, end_date=end_date, @@ -1430,7 +1430,7 @@ def organization_usage_series_v1_organizations_me_usage_series_get_with_http_inf @validate_call - def organization_usage_series_v1_organizations_me_usage_series_get_without_preload_content( + def organization_usage_series_api_v1_organizations_me_usage_series_get_without_preload_content( self, group_by: Annotated[StrictStr, Field(description="Dimension to split the series by")], start_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds)")] = None, @@ -1464,7 +1464,7 @@ def organization_usage_series_v1_organizations_me_usage_series_get_without_prelo ) -> RESTResponseType: """Organization Usage Series - Time series split by one dimension, for the caller's organization. The tenant-scoped counterpart of ``GET /v1/usage/series``, and kept in lockstep with the summary above for the reason that endpoint gives: the dashboard serializes one filter object for both, so a filter one of them ignored would make the stacked chart disagree with the tiles beside it. + Time series split by one dimension, for the caller's organization. The tenant-scoped counterpart of ``GET /api/v1/usage/series``, and kept in lockstep with the summary above for the reason that endpoint gives: the dashboard serializes one filter object for both, so a filter one of them ignored would make the stacked chart disagree with the tiles beside it. :param group_by: Dimension to split the series by (required) :type group_by: str @@ -1522,7 +1522,7 @@ def organization_usage_series_v1_organizations_me_usage_series_get_without_prelo :return: Returns the result object. """ # noqa: E501 - _param = self._organization_usage_series_v1_organizations_me_usage_series_get_serialize( + _param = self._organization_usage_series_api_v1_organizations_me_usage_series_get_serialize( group_by=group_by, start_date=start_date, end_date=end_date, @@ -1557,7 +1557,7 @@ def organization_usage_series_v1_organizations_me_usage_series_get_without_prelo return response_data.response - def _organization_usage_series_v1_organizations_me_usage_series_get_serialize( + def _organization_usage_series_api_v1_organizations_me_usage_series_get_serialize( self, group_by, start_date, @@ -1709,7 +1709,7 @@ def _organization_usage_series_v1_organizations_me_usage_series_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/organizations/me/usage/series', + resource_path='/api/v1/organizations/me/usage/series', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1726,7 +1726,7 @@ def _organization_usage_series_v1_organizations_me_usage_series_get_serialize( @validate_call - def organization_usage_summary_v1_organizations_me_usage_summary_get( + def organization_usage_summary_api_v1_organizations_me_usage_summary_get( self, start_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds)")] = None, end_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp < end_date (ISO 8601 or Unix epoch seconds)")] = None, @@ -1760,7 +1760,7 @@ def organization_usage_summary_v1_organizations_me_usage_summary_get( ) -> UsageSummary: """Organization Usage Summary - Aggregate spend, tokens and request volume for the caller's organization. The tenant-scoped counterpart of ``GET /v1/usage/summary``, running the same aggregation over a narrower row set: the same bounded window, the same breakdowns, the same ``dimensions`` selector for paying only for the passes a caller reads. The breakdown by user names the people inside the caller's own scope, which is the roster they can already read. + Aggregate spend, tokens and request volume for the caller's organization. The tenant-scoped counterpart of ``GET /api/v1/usage/summary``, running the same aggregation over a narrower row set: the same bounded window, the same breakdowns, the same ``dimensions`` selector for paying only for the passes a caller reads. The breakdown by user names the people inside the caller's own scope, which is the roster they can already read. :param start_date: Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds) :type start_date: datetime @@ -1818,7 +1818,7 @@ def organization_usage_summary_v1_organizations_me_usage_summary_get( :return: Returns the result object. """ # noqa: E501 - _param = self._organization_usage_summary_v1_organizations_me_usage_summary_get_serialize( + _param = self._organization_usage_summary_api_v1_organizations_me_usage_summary_get_serialize( start_date=start_date, end_date=end_date, user_id=user_id, @@ -1858,7 +1858,7 @@ def organization_usage_summary_v1_organizations_me_usage_summary_get( @validate_call - def organization_usage_summary_v1_organizations_me_usage_summary_get_with_http_info( + def organization_usage_summary_api_v1_organizations_me_usage_summary_get_with_http_info( self, start_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds)")] = None, end_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp < end_date (ISO 8601 or Unix epoch seconds)")] = None, @@ -1892,7 +1892,7 @@ def organization_usage_summary_v1_organizations_me_usage_summary_get_with_http_i ) -> ApiResponse[UsageSummary]: """Organization Usage Summary - Aggregate spend, tokens and request volume for the caller's organization. The tenant-scoped counterpart of ``GET /v1/usage/summary``, running the same aggregation over a narrower row set: the same bounded window, the same breakdowns, the same ``dimensions`` selector for paying only for the passes a caller reads. The breakdown by user names the people inside the caller's own scope, which is the roster they can already read. + Aggregate spend, tokens and request volume for the caller's organization. The tenant-scoped counterpart of ``GET /api/v1/usage/summary``, running the same aggregation over a narrower row set: the same bounded window, the same breakdowns, the same ``dimensions`` selector for paying only for the passes a caller reads. The breakdown by user names the people inside the caller's own scope, which is the roster they can already read. :param start_date: Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds) :type start_date: datetime @@ -1950,7 +1950,7 @@ def organization_usage_summary_v1_organizations_me_usage_summary_get_with_http_i :return: Returns the result object. """ # noqa: E501 - _param = self._organization_usage_summary_v1_organizations_me_usage_summary_get_serialize( + _param = self._organization_usage_summary_api_v1_organizations_me_usage_summary_get_serialize( start_date=start_date, end_date=end_date, user_id=user_id, @@ -1990,7 +1990,7 @@ def organization_usage_summary_v1_organizations_me_usage_summary_get_with_http_i @validate_call - def organization_usage_summary_v1_organizations_me_usage_summary_get_without_preload_content( + def organization_usage_summary_api_v1_organizations_me_usage_summary_get_without_preload_content( self, start_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds)")] = None, end_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp < end_date (ISO 8601 or Unix epoch seconds)")] = None, @@ -2024,7 +2024,7 @@ def organization_usage_summary_v1_organizations_me_usage_summary_get_without_pre ) -> RESTResponseType: """Organization Usage Summary - Aggregate spend, tokens and request volume for the caller's organization. The tenant-scoped counterpart of ``GET /v1/usage/summary``, running the same aggregation over a narrower row set: the same bounded window, the same breakdowns, the same ``dimensions`` selector for paying only for the passes a caller reads. The breakdown by user names the people inside the caller's own scope, which is the roster they can already read. + Aggregate spend, tokens and request volume for the caller's organization. The tenant-scoped counterpart of ``GET /api/v1/usage/summary``, running the same aggregation over a narrower row set: the same bounded window, the same breakdowns, the same ``dimensions`` selector for paying only for the passes a caller reads. The breakdown by user names the people inside the caller's own scope, which is the roster they can already read. :param start_date: Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds) :type start_date: datetime @@ -2082,7 +2082,7 @@ def organization_usage_summary_v1_organizations_me_usage_summary_get_without_pre :return: Returns the result object. """ # noqa: E501 - _param = self._organization_usage_summary_v1_organizations_me_usage_summary_get_serialize( + _param = self._organization_usage_summary_api_v1_organizations_me_usage_summary_get_serialize( start_date=start_date, end_date=end_date, user_id=user_id, @@ -2117,7 +2117,7 @@ def organization_usage_summary_v1_organizations_me_usage_summary_get_without_pre return response_data.response - def _organization_usage_summary_v1_organizations_me_usage_summary_get_serialize( + def _organization_usage_summary_api_v1_organizations_me_usage_summary_get_serialize( self, start_date, end_date, @@ -2270,7 +2270,7 @@ def _organization_usage_summary_v1_organizations_me_usage_summary_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/organizations/me/usage/summary', + resource_path='/api/v1/organizations/me/usage/summary', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/organizations_api.py b/src/otari/_client/api/organizations_api.py index aa30da9..4fd8310 100644 --- a/src/otari/_client/api/organizations_api.py +++ b/src/otari/_client/api/organizations_api.py @@ -59,7 +59,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def accept_caller_pending_membership_v1_organizations_me_pending_memberships_organization_member_id_accept_post( + def accept_caller_pending_membership_api_v1_organizations_me_pending_memberships_organization_member_id_accept_post( self, organization_member_id: UUID, _request_timeout: Union[ @@ -77,7 +77,7 @@ def accept_caller_pending_membership_v1_organizations_me_pending_memberships_org ) -> AcceptInvitationResultPublic: """Accept Caller Pending Membership - Accept an invitation addressed to the caller, resolving it to an active membership. Does the same work as ``POST /v1/invitations/accept``, including the workspace assignments parked at invite time, and answers the same shape. Addressed by membership id rather than by token: the caller is already the addressee, so a token would add nothing their session does not carry. Idempotent for any membership the caller already holds ``active``, which is what two clicks before the list refreshes produces: it answers that membership's organization and role rather than a 404 for an action that worked. Deliberately not narrowed to memberships that got there by accepting, which would cost a lookup to tell the two apart and answer a caller nothing they cannot already read from ``GET /me/memberships``. Answers 404 for a membership that is not the caller's own, whether or not it exists, and for one of theirs that is neither ``active`` nor holding an invitation. An invitation that has lapsed answers 400. + Accept an invitation addressed to the caller, resolving it to an active membership. Does the same work as ``POST /api/v1/invitations/accept``, including the workspace assignments parked at invite time, and answers the same shape. Addressed by membership id rather than by token: the caller is already the addressee, so a token would add nothing their session does not carry. Idempotent for any membership the caller already holds ``active``, which is what two clicks before the list refreshes produces: it answers that membership's organization and role rather than a 404 for an action that worked. Deliberately not narrowed to memberships that got there by accepting, which would cost a lookup to tell the two apart and answer a caller nothing they cannot already read from ``GET /me/memberships``. Answers 404 for a membership that is not the caller's own, whether or not it exists, and for one of theirs that is neither ``active`` nor holding an invitation. An invitation that has lapsed answers 400. :param organization_member_id: (required) :type organization_member_id: UUID @@ -103,7 +103,7 @@ def accept_caller_pending_membership_v1_organizations_me_pending_memberships_org :return: Returns the result object. """ # noqa: E501 - _param = self._accept_caller_pending_membership_v1_organizations_me_pending_memberships_organization_member_id_accept_post_serialize( + _param = self._accept_caller_pending_membership_api_v1_organizations_me_pending_memberships_organization_member_id_accept_post_serialize( organization_member_id=organization_member_id, _request_auth=_request_auth, _content_type=_content_type, @@ -127,7 +127,7 @@ def accept_caller_pending_membership_v1_organizations_me_pending_memberships_org @validate_call - def accept_caller_pending_membership_v1_organizations_me_pending_memberships_organization_member_id_accept_post_with_http_info( + def accept_caller_pending_membership_api_v1_organizations_me_pending_memberships_organization_member_id_accept_post_with_http_info( self, organization_member_id: UUID, _request_timeout: Union[ @@ -145,7 +145,7 @@ def accept_caller_pending_membership_v1_organizations_me_pending_memberships_org ) -> ApiResponse[AcceptInvitationResultPublic]: """Accept Caller Pending Membership - Accept an invitation addressed to the caller, resolving it to an active membership. Does the same work as ``POST /v1/invitations/accept``, including the workspace assignments parked at invite time, and answers the same shape. Addressed by membership id rather than by token: the caller is already the addressee, so a token would add nothing their session does not carry. Idempotent for any membership the caller already holds ``active``, which is what two clicks before the list refreshes produces: it answers that membership's organization and role rather than a 404 for an action that worked. Deliberately not narrowed to memberships that got there by accepting, which would cost a lookup to tell the two apart and answer a caller nothing they cannot already read from ``GET /me/memberships``. Answers 404 for a membership that is not the caller's own, whether or not it exists, and for one of theirs that is neither ``active`` nor holding an invitation. An invitation that has lapsed answers 400. + Accept an invitation addressed to the caller, resolving it to an active membership. Does the same work as ``POST /api/v1/invitations/accept``, including the workspace assignments parked at invite time, and answers the same shape. Addressed by membership id rather than by token: the caller is already the addressee, so a token would add nothing their session does not carry. Idempotent for any membership the caller already holds ``active``, which is what two clicks before the list refreshes produces: it answers that membership's organization and role rather than a 404 for an action that worked. Deliberately not narrowed to memberships that got there by accepting, which would cost a lookup to tell the two apart and answer a caller nothing they cannot already read from ``GET /me/memberships``. Answers 404 for a membership that is not the caller's own, whether or not it exists, and for one of theirs that is neither ``active`` nor holding an invitation. An invitation that has lapsed answers 400. :param organization_member_id: (required) :type organization_member_id: UUID @@ -171,7 +171,7 @@ def accept_caller_pending_membership_v1_organizations_me_pending_memberships_org :return: Returns the result object. """ # noqa: E501 - _param = self._accept_caller_pending_membership_v1_organizations_me_pending_memberships_organization_member_id_accept_post_serialize( + _param = self._accept_caller_pending_membership_api_v1_organizations_me_pending_memberships_organization_member_id_accept_post_serialize( organization_member_id=organization_member_id, _request_auth=_request_auth, _content_type=_content_type, @@ -195,7 +195,7 @@ def accept_caller_pending_membership_v1_organizations_me_pending_memberships_org @validate_call - def accept_caller_pending_membership_v1_organizations_me_pending_memberships_organization_member_id_accept_post_without_preload_content( + def accept_caller_pending_membership_api_v1_organizations_me_pending_memberships_organization_member_id_accept_post_without_preload_content( self, organization_member_id: UUID, _request_timeout: Union[ @@ -213,7 +213,7 @@ def accept_caller_pending_membership_v1_organizations_me_pending_memberships_org ) -> RESTResponseType: """Accept Caller Pending Membership - Accept an invitation addressed to the caller, resolving it to an active membership. Does the same work as ``POST /v1/invitations/accept``, including the workspace assignments parked at invite time, and answers the same shape. Addressed by membership id rather than by token: the caller is already the addressee, so a token would add nothing their session does not carry. Idempotent for any membership the caller already holds ``active``, which is what two clicks before the list refreshes produces: it answers that membership's organization and role rather than a 404 for an action that worked. Deliberately not narrowed to memberships that got there by accepting, which would cost a lookup to tell the two apart and answer a caller nothing they cannot already read from ``GET /me/memberships``. Answers 404 for a membership that is not the caller's own, whether or not it exists, and for one of theirs that is neither ``active`` nor holding an invitation. An invitation that has lapsed answers 400. + Accept an invitation addressed to the caller, resolving it to an active membership. Does the same work as ``POST /api/v1/invitations/accept``, including the workspace assignments parked at invite time, and answers the same shape. Addressed by membership id rather than by token: the caller is already the addressee, so a token would add nothing their session does not carry. Idempotent for any membership the caller already holds ``active``, which is what two clicks before the list refreshes produces: it answers that membership's organization and role rather than a 404 for an action that worked. Deliberately not narrowed to memberships that got there by accepting, which would cost a lookup to tell the two apart and answer a caller nothing they cannot already read from ``GET /me/memberships``. Answers 404 for a membership that is not the caller's own, whether or not it exists, and for one of theirs that is neither ``active`` nor holding an invitation. An invitation that has lapsed answers 400. :param organization_member_id: (required) :type organization_member_id: UUID @@ -239,7 +239,7 @@ def accept_caller_pending_membership_v1_organizations_me_pending_memberships_org :return: Returns the result object. """ # noqa: E501 - _param = self._accept_caller_pending_membership_v1_organizations_me_pending_memberships_organization_member_id_accept_post_serialize( + _param = self._accept_caller_pending_membership_api_v1_organizations_me_pending_memberships_organization_member_id_accept_post_serialize( organization_member_id=organization_member_id, _request_auth=_request_auth, _content_type=_content_type, @@ -258,7 +258,7 @@ def accept_caller_pending_membership_v1_organizations_me_pending_memberships_org return response_data.response - def _accept_caller_pending_membership_v1_organizations_me_pending_memberships_organization_member_id_accept_post_serialize( + def _accept_caller_pending_membership_api_v1_organizations_me_pending_memberships_organization_member_id_accept_post_serialize( self, organization_member_id, _request_auth, @@ -307,7 +307,7 @@ def _accept_caller_pending_membership_v1_organizations_me_pending_memberships_or return self.api_client.param_serialize( method='POST', - resource_path='/v1/organizations/me/pending-memberships/{organization_member_id}/accept', + resource_path='/api/v1/organizations/me/pending-memberships/{organization_member_id}/accept', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -324,7 +324,7 @@ def _accept_caller_pending_membership_v1_organizations_me_pending_memberships_or @validate_call - def create_active_organization_domain_v1_organizations_me_domains_post( + def create_active_organization_domain_api_v1_organizations_me_domains_post( self, organization_domain_create_request: OrganizationDomainCreateRequest, _request_timeout: Union[ @@ -368,7 +368,7 @@ def create_active_organization_domain_v1_organizations_me_domains_post( :return: Returns the result object. """ # noqa: E501 - _param = self._create_active_organization_domain_v1_organizations_me_domains_post_serialize( + _param = self._create_active_organization_domain_api_v1_organizations_me_domains_post_serialize( organization_domain_create_request=organization_domain_create_request, _request_auth=_request_auth, _content_type=_content_type, @@ -392,7 +392,7 @@ def create_active_organization_domain_v1_organizations_me_domains_post( @validate_call - def create_active_organization_domain_v1_organizations_me_domains_post_with_http_info( + def create_active_organization_domain_api_v1_organizations_me_domains_post_with_http_info( self, organization_domain_create_request: OrganizationDomainCreateRequest, _request_timeout: Union[ @@ -436,7 +436,7 @@ def create_active_organization_domain_v1_organizations_me_domains_post_with_http :return: Returns the result object. """ # noqa: E501 - _param = self._create_active_organization_domain_v1_organizations_me_domains_post_serialize( + _param = self._create_active_organization_domain_api_v1_organizations_me_domains_post_serialize( organization_domain_create_request=organization_domain_create_request, _request_auth=_request_auth, _content_type=_content_type, @@ -460,7 +460,7 @@ def create_active_organization_domain_v1_organizations_me_domains_post_with_http @validate_call - def create_active_organization_domain_v1_organizations_me_domains_post_without_preload_content( + def create_active_organization_domain_api_v1_organizations_me_domains_post_without_preload_content( self, organization_domain_create_request: OrganizationDomainCreateRequest, _request_timeout: Union[ @@ -504,7 +504,7 @@ def create_active_organization_domain_v1_organizations_me_domains_post_without_p :return: Returns the result object. """ # noqa: E501 - _param = self._create_active_organization_domain_v1_organizations_me_domains_post_serialize( + _param = self._create_active_organization_domain_api_v1_organizations_me_domains_post_serialize( organization_domain_create_request=organization_domain_create_request, _request_auth=_request_auth, _content_type=_content_type, @@ -523,7 +523,7 @@ def create_active_organization_domain_v1_organizations_me_domains_post_without_p return response_data.response - def _create_active_organization_domain_v1_organizations_me_domains_post_serialize( + def _create_active_organization_domain_api_v1_organizations_me_domains_post_serialize( self, organization_domain_create_request, _request_auth, @@ -585,7 +585,7 @@ def _create_active_organization_domain_v1_organizations_me_domains_post_serializ return self.api_client.param_serialize( method='POST', - resource_path='/v1/organizations/me/domains', + resource_path='/api/v1/organizations/me/domains', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -602,7 +602,7 @@ def _create_active_organization_domain_v1_organizations_me_domains_post_serializ @validate_call - def create_active_organization_member_v1_organizations_me_members_post( + def create_active_organization_member_api_v1_organizations_me_members_post( self, active_organization_member_create_request: ActiveOrganizationMemberCreateRequest, _request_timeout: Union[ @@ -646,7 +646,7 @@ def create_active_organization_member_v1_organizations_me_members_post( :return: Returns the result object. """ # noqa: E501 - _param = self._create_active_organization_member_v1_organizations_me_members_post_serialize( + _param = self._create_active_organization_member_api_v1_organizations_me_members_post_serialize( active_organization_member_create_request=active_organization_member_create_request, _request_auth=_request_auth, _content_type=_content_type, @@ -670,7 +670,7 @@ def create_active_organization_member_v1_organizations_me_members_post( @validate_call - def create_active_organization_member_v1_organizations_me_members_post_with_http_info( + def create_active_organization_member_api_v1_organizations_me_members_post_with_http_info( self, active_organization_member_create_request: ActiveOrganizationMemberCreateRequest, _request_timeout: Union[ @@ -714,7 +714,7 @@ def create_active_organization_member_v1_organizations_me_members_post_with_http :return: Returns the result object. """ # noqa: E501 - _param = self._create_active_organization_member_v1_organizations_me_members_post_serialize( + _param = self._create_active_organization_member_api_v1_organizations_me_members_post_serialize( active_organization_member_create_request=active_organization_member_create_request, _request_auth=_request_auth, _content_type=_content_type, @@ -738,7 +738,7 @@ def create_active_organization_member_v1_organizations_me_members_post_with_http @validate_call - def create_active_organization_member_v1_organizations_me_members_post_without_preload_content( + def create_active_organization_member_api_v1_organizations_me_members_post_without_preload_content( self, active_organization_member_create_request: ActiveOrganizationMemberCreateRequest, _request_timeout: Union[ @@ -782,7 +782,7 @@ def create_active_organization_member_v1_organizations_me_members_post_without_p :return: Returns the result object. """ # noqa: E501 - _param = self._create_active_organization_member_v1_organizations_me_members_post_serialize( + _param = self._create_active_organization_member_api_v1_organizations_me_members_post_serialize( active_organization_member_create_request=active_organization_member_create_request, _request_auth=_request_auth, _content_type=_content_type, @@ -801,7 +801,7 @@ def create_active_organization_member_v1_organizations_me_members_post_without_p return response_data.response - def _create_active_organization_member_v1_organizations_me_members_post_serialize( + def _create_active_organization_member_api_v1_organizations_me_members_post_serialize( self, active_organization_member_create_request, _request_auth, @@ -863,7 +863,7 @@ def _create_active_organization_member_v1_organizations_me_members_post_serializ return self.api_client.param_serialize( method='POST', - resource_path='/v1/organizations/me/members', + resource_path='/api/v1/organizations/me/members', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -880,7 +880,7 @@ def _create_active_organization_member_v1_organizations_me_members_post_serializ @validate_call - def create_organization_v1_organizations_post( + def create_organization_api_v1_organizations_post( self, organization_create_request: OrganizationCreateRequest, _request_timeout: Union[ @@ -924,7 +924,7 @@ def create_organization_v1_organizations_post( :return: Returns the result object. """ # noqa: E501 - _param = self._create_organization_v1_organizations_post_serialize( + _param = self._create_organization_api_v1_organizations_post_serialize( organization_create_request=organization_create_request, _request_auth=_request_auth, _content_type=_content_type, @@ -948,7 +948,7 @@ def create_organization_v1_organizations_post( @validate_call - def create_organization_v1_organizations_post_with_http_info( + def create_organization_api_v1_organizations_post_with_http_info( self, organization_create_request: OrganizationCreateRequest, _request_timeout: Union[ @@ -992,7 +992,7 @@ def create_organization_v1_organizations_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_organization_v1_organizations_post_serialize( + _param = self._create_organization_api_v1_organizations_post_serialize( organization_create_request=organization_create_request, _request_auth=_request_auth, _content_type=_content_type, @@ -1016,7 +1016,7 @@ def create_organization_v1_organizations_post_with_http_info( @validate_call - def create_organization_v1_organizations_post_without_preload_content( + def create_organization_api_v1_organizations_post_without_preload_content( self, organization_create_request: OrganizationCreateRequest, _request_timeout: Union[ @@ -1060,7 +1060,7 @@ def create_organization_v1_organizations_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._create_organization_v1_organizations_post_serialize( + _param = self._create_organization_api_v1_organizations_post_serialize( organization_create_request=organization_create_request, _request_auth=_request_auth, _content_type=_content_type, @@ -1079,7 +1079,7 @@ def create_organization_v1_organizations_post_without_preload_content( return response_data.response - def _create_organization_v1_organizations_post_serialize( + def _create_organization_api_v1_organizations_post_serialize( self, organization_create_request, _request_auth, @@ -1141,7 +1141,7 @@ def _create_organization_v1_organizations_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/organizations', + resource_path='/api/v1/organizations', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1158,7 +1158,7 @@ def _create_organization_v1_organizations_post_serialize( @validate_call - def decline_caller_pending_membership_v1_organizations_me_pending_memberships_organization_member_id_decline_post( + def decline_caller_pending_membership_api_v1_organizations_me_pending_memberships_organization_member_id_decline_post( self, organization_member_id: UUID, _request_timeout: Union[ @@ -1202,7 +1202,7 @@ def decline_caller_pending_membership_v1_organizations_me_pending_memberships_or :return: Returns the result object. """ # noqa: E501 - _param = self._decline_caller_pending_membership_v1_organizations_me_pending_memberships_organization_member_id_decline_post_serialize( + _param = self._decline_caller_pending_membership_api_v1_organizations_me_pending_memberships_organization_member_id_decline_post_serialize( organization_member_id=organization_member_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1226,7 +1226,7 @@ def decline_caller_pending_membership_v1_organizations_me_pending_memberships_or @validate_call - def decline_caller_pending_membership_v1_organizations_me_pending_memberships_organization_member_id_decline_post_with_http_info( + def decline_caller_pending_membership_api_v1_organizations_me_pending_memberships_organization_member_id_decline_post_with_http_info( self, organization_member_id: UUID, _request_timeout: Union[ @@ -1270,7 +1270,7 @@ def decline_caller_pending_membership_v1_organizations_me_pending_memberships_or :return: Returns the result object. """ # noqa: E501 - _param = self._decline_caller_pending_membership_v1_organizations_me_pending_memberships_organization_member_id_decline_post_serialize( + _param = self._decline_caller_pending_membership_api_v1_organizations_me_pending_memberships_organization_member_id_decline_post_serialize( organization_member_id=organization_member_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1294,7 +1294,7 @@ def decline_caller_pending_membership_v1_organizations_me_pending_memberships_or @validate_call - def decline_caller_pending_membership_v1_organizations_me_pending_memberships_organization_member_id_decline_post_without_preload_content( + def decline_caller_pending_membership_api_v1_organizations_me_pending_memberships_organization_member_id_decline_post_without_preload_content( self, organization_member_id: UUID, _request_timeout: Union[ @@ -1338,7 +1338,7 @@ def decline_caller_pending_membership_v1_organizations_me_pending_memberships_or :return: Returns the result object. """ # noqa: E501 - _param = self._decline_caller_pending_membership_v1_organizations_me_pending_memberships_organization_member_id_decline_post_serialize( + _param = self._decline_caller_pending_membership_api_v1_organizations_me_pending_memberships_organization_member_id_decline_post_serialize( organization_member_id=organization_member_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1357,7 +1357,7 @@ def decline_caller_pending_membership_v1_organizations_me_pending_memberships_or return response_data.response - def _decline_caller_pending_membership_v1_organizations_me_pending_memberships_organization_member_id_decline_post_serialize( + def _decline_caller_pending_membership_api_v1_organizations_me_pending_memberships_organization_member_id_decline_post_serialize( self, organization_member_id, _request_auth, @@ -1406,7 +1406,7 @@ def _decline_caller_pending_membership_v1_organizations_me_pending_memberships_o return self.api_client.param_serialize( method='POST', - resource_path='/v1/organizations/me/pending-memberships/{organization_member_id}/decline', + resource_path='/api/v1/organizations/me/pending-memberships/{organization_member_id}/decline', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1423,7 +1423,7 @@ def _decline_caller_pending_membership_v1_organizations_me_pending_memberships_o @validate_call - def delete_active_organization_domain_v1_organizations_me_domains_organization_domain_id_delete( + def delete_active_organization_domain_api_v1_organizations_me_domains_organization_domain_id_delete( self, organization_domain_id: UUID, _request_timeout: Union[ @@ -1467,7 +1467,7 @@ def delete_active_organization_domain_v1_organizations_me_domains_organization_d :return: Returns the result object. """ # noqa: E501 - _param = self._delete_active_organization_domain_v1_organizations_me_domains_organization_domain_id_delete_serialize( + _param = self._delete_active_organization_domain_api_v1_organizations_me_domains_organization_domain_id_delete_serialize( organization_domain_id=organization_domain_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1491,7 +1491,7 @@ def delete_active_organization_domain_v1_organizations_me_domains_organization_d @validate_call - def delete_active_organization_domain_v1_organizations_me_domains_organization_domain_id_delete_with_http_info( + def delete_active_organization_domain_api_v1_organizations_me_domains_organization_domain_id_delete_with_http_info( self, organization_domain_id: UUID, _request_timeout: Union[ @@ -1535,7 +1535,7 @@ def delete_active_organization_domain_v1_organizations_me_domains_organization_d :return: Returns the result object. """ # noqa: E501 - _param = self._delete_active_organization_domain_v1_organizations_me_domains_organization_domain_id_delete_serialize( + _param = self._delete_active_organization_domain_api_v1_organizations_me_domains_organization_domain_id_delete_serialize( organization_domain_id=organization_domain_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1559,7 +1559,7 @@ def delete_active_organization_domain_v1_organizations_me_domains_organization_d @validate_call - def delete_active_organization_domain_v1_organizations_me_domains_organization_domain_id_delete_without_preload_content( + def delete_active_organization_domain_api_v1_organizations_me_domains_organization_domain_id_delete_without_preload_content( self, organization_domain_id: UUID, _request_timeout: Union[ @@ -1603,7 +1603,7 @@ def delete_active_organization_domain_v1_organizations_me_domains_organization_d :return: Returns the result object. """ # noqa: E501 - _param = self._delete_active_organization_domain_v1_organizations_me_domains_organization_domain_id_delete_serialize( + _param = self._delete_active_organization_domain_api_v1_organizations_me_domains_organization_domain_id_delete_serialize( organization_domain_id=organization_domain_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1622,7 +1622,7 @@ def delete_active_organization_domain_v1_organizations_me_domains_organization_d return response_data.response - def _delete_active_organization_domain_v1_organizations_me_domains_organization_domain_id_delete_serialize( + def _delete_active_organization_domain_api_v1_organizations_me_domains_organization_domain_id_delete_serialize( self, organization_domain_id, _request_auth, @@ -1671,7 +1671,7 @@ def _delete_active_organization_domain_v1_organizations_me_domains_organization_ return self.api_client.param_serialize( method='DELETE', - resource_path='/v1/organizations/me/domains/{organization_domain_id}', + resource_path='/api/v1/organizations/me/domains/{organization_domain_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1688,7 +1688,7 @@ def _delete_active_organization_domain_v1_organizations_me_domains_organization_ @validate_call - def get_active_organization_context_v1_organizations_me_get( + def get_active_organization_context_api_v1_organizations_me_get( self, _request_timeout: Union[ None, @@ -1729,7 +1729,7 @@ def get_active_organization_context_v1_organizations_me_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_active_organization_context_v1_organizations_me_get_serialize( + _param = self._get_active_organization_context_api_v1_organizations_me_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1751,7 +1751,7 @@ def get_active_organization_context_v1_organizations_me_get( @validate_call - def get_active_organization_context_v1_organizations_me_get_with_http_info( + def get_active_organization_context_api_v1_organizations_me_get_with_http_info( self, _request_timeout: Union[ None, @@ -1792,7 +1792,7 @@ def get_active_organization_context_v1_organizations_me_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_active_organization_context_v1_organizations_me_get_serialize( + _param = self._get_active_organization_context_api_v1_organizations_me_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1814,7 +1814,7 @@ def get_active_organization_context_v1_organizations_me_get_with_http_info( @validate_call - def get_active_organization_context_v1_organizations_me_get_without_preload_content( + def get_active_organization_context_api_v1_organizations_me_get_without_preload_content( self, _request_timeout: Union[ None, @@ -1855,7 +1855,7 @@ def get_active_organization_context_v1_organizations_me_get_without_preload_cont :return: Returns the result object. """ # noqa: E501 - _param = self._get_active_organization_context_v1_organizations_me_get_serialize( + _param = self._get_active_organization_context_api_v1_organizations_me_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1872,7 +1872,7 @@ def get_active_organization_context_v1_organizations_me_get_without_preload_cont return response_data.response - def _get_active_organization_context_v1_organizations_me_get_serialize( + def _get_active_organization_context_api_v1_organizations_me_get_serialize( self, _request_auth, _content_type, @@ -1918,7 +1918,7 @@ def _get_active_organization_context_v1_organizations_me_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/organizations/me', + resource_path='/api/v1/organizations/me', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1935,7 +1935,7 @@ def _get_active_organization_context_v1_organizations_me_get_serialize( @validate_call - def invite_active_organization_member_v1_organizations_me_member_invitations_post( + def invite_active_organization_member_api_v1_organizations_me_member_invitations_post( self, invite_organization_member_request: InviteOrganizationMemberRequest, _request_timeout: Union[ @@ -1953,7 +1953,7 @@ def invite_active_organization_member_v1_organizations_me_member_invitations_pos ) -> InviteOrganizationMemberResultPublic: """Invite Active Organization Member - Invite an address to the caller's active organization by email. Organization owners and admins only. Unlike ``POST /me/members``, the membership lands ``invited`` rather than ``active``: it becomes active once the recipient accepts (``POST /v1/invitations/accept``). The response always carries the accept link, whether or not it was actually emailed (``mail_sent``), so an operator can share it themselves when mail is not configured or the send fails. + Invite an address to the caller's active organization by email. Organization owners and admins only. Unlike ``POST /me/members``, the membership lands ``invited`` rather than ``active``: it becomes active once the recipient accepts (``POST /api/v1/invitations/accept``). The response always carries the accept link, whether or not it was actually emailed (``mail_sent``), so an operator can share it themselves when mail is not configured or the send fails. :param invite_organization_member_request: (required) :type invite_organization_member_request: InviteOrganizationMemberRequest @@ -1979,7 +1979,7 @@ def invite_active_organization_member_v1_organizations_me_member_invitations_pos :return: Returns the result object. """ # noqa: E501 - _param = self._invite_active_organization_member_v1_organizations_me_member_invitations_post_serialize( + _param = self._invite_active_organization_member_api_v1_organizations_me_member_invitations_post_serialize( invite_organization_member_request=invite_organization_member_request, _request_auth=_request_auth, _content_type=_content_type, @@ -2003,7 +2003,7 @@ def invite_active_organization_member_v1_organizations_me_member_invitations_pos @validate_call - def invite_active_organization_member_v1_organizations_me_member_invitations_post_with_http_info( + def invite_active_organization_member_api_v1_organizations_me_member_invitations_post_with_http_info( self, invite_organization_member_request: InviteOrganizationMemberRequest, _request_timeout: Union[ @@ -2021,7 +2021,7 @@ def invite_active_organization_member_v1_organizations_me_member_invitations_pos ) -> ApiResponse[InviteOrganizationMemberResultPublic]: """Invite Active Organization Member - Invite an address to the caller's active organization by email. Organization owners and admins only. Unlike ``POST /me/members``, the membership lands ``invited`` rather than ``active``: it becomes active once the recipient accepts (``POST /v1/invitations/accept``). The response always carries the accept link, whether or not it was actually emailed (``mail_sent``), so an operator can share it themselves when mail is not configured or the send fails. + Invite an address to the caller's active organization by email. Organization owners and admins only. Unlike ``POST /me/members``, the membership lands ``invited`` rather than ``active``: it becomes active once the recipient accepts (``POST /api/v1/invitations/accept``). The response always carries the accept link, whether or not it was actually emailed (``mail_sent``), so an operator can share it themselves when mail is not configured or the send fails. :param invite_organization_member_request: (required) :type invite_organization_member_request: InviteOrganizationMemberRequest @@ -2047,7 +2047,7 @@ def invite_active_organization_member_v1_organizations_me_member_invitations_pos :return: Returns the result object. """ # noqa: E501 - _param = self._invite_active_organization_member_v1_organizations_me_member_invitations_post_serialize( + _param = self._invite_active_organization_member_api_v1_organizations_me_member_invitations_post_serialize( invite_organization_member_request=invite_organization_member_request, _request_auth=_request_auth, _content_type=_content_type, @@ -2071,7 +2071,7 @@ def invite_active_organization_member_v1_organizations_me_member_invitations_pos @validate_call - def invite_active_organization_member_v1_organizations_me_member_invitations_post_without_preload_content( + def invite_active_organization_member_api_v1_organizations_me_member_invitations_post_without_preload_content( self, invite_organization_member_request: InviteOrganizationMemberRequest, _request_timeout: Union[ @@ -2089,7 +2089,7 @@ def invite_active_organization_member_v1_organizations_me_member_invitations_pos ) -> RESTResponseType: """Invite Active Organization Member - Invite an address to the caller's active organization by email. Organization owners and admins only. Unlike ``POST /me/members``, the membership lands ``invited`` rather than ``active``: it becomes active once the recipient accepts (``POST /v1/invitations/accept``). The response always carries the accept link, whether or not it was actually emailed (``mail_sent``), so an operator can share it themselves when mail is not configured or the send fails. + Invite an address to the caller's active organization by email. Organization owners and admins only. Unlike ``POST /me/members``, the membership lands ``invited`` rather than ``active``: it becomes active once the recipient accepts (``POST /api/v1/invitations/accept``). The response always carries the accept link, whether or not it was actually emailed (``mail_sent``), so an operator can share it themselves when mail is not configured or the send fails. :param invite_organization_member_request: (required) :type invite_organization_member_request: InviteOrganizationMemberRequest @@ -2115,7 +2115,7 @@ def invite_active_organization_member_v1_organizations_me_member_invitations_pos :return: Returns the result object. """ # noqa: E501 - _param = self._invite_active_organization_member_v1_organizations_me_member_invitations_post_serialize( + _param = self._invite_active_organization_member_api_v1_organizations_me_member_invitations_post_serialize( invite_organization_member_request=invite_organization_member_request, _request_auth=_request_auth, _content_type=_content_type, @@ -2134,7 +2134,7 @@ def invite_active_organization_member_v1_organizations_me_member_invitations_pos return response_data.response - def _invite_active_organization_member_v1_organizations_me_member_invitations_post_serialize( + def _invite_active_organization_member_api_v1_organizations_me_member_invitations_post_serialize( self, invite_organization_member_request, _request_auth, @@ -2196,7 +2196,7 @@ def _invite_active_organization_member_v1_organizations_me_member_invitations_po return self.api_client.param_serialize( method='POST', - resource_path='/v1/organizations/me/member-invitations', + resource_path='/api/v1/organizations/me/member-invitations', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2213,7 +2213,7 @@ def _invite_active_organization_member_v1_organizations_me_member_invitations_po @validate_call - def list_active_organization_domains_v1_organizations_me_domains_get( + def list_active_organization_domains_api_v1_organizations_me_domains_get( self, _request_timeout: Union[ None, @@ -2254,7 +2254,7 @@ def list_active_organization_domains_v1_organizations_me_domains_get( :return: Returns the result object. """ # noqa: E501 - _param = self._list_active_organization_domains_v1_organizations_me_domains_get_serialize( + _param = self._list_active_organization_domains_api_v1_organizations_me_domains_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2276,7 +2276,7 @@ def list_active_organization_domains_v1_organizations_me_domains_get( @validate_call - def list_active_organization_domains_v1_organizations_me_domains_get_with_http_info( + def list_active_organization_domains_api_v1_organizations_me_domains_get_with_http_info( self, _request_timeout: Union[ None, @@ -2317,7 +2317,7 @@ def list_active_organization_domains_v1_organizations_me_domains_get_with_http_i :return: Returns the result object. """ # noqa: E501 - _param = self._list_active_organization_domains_v1_organizations_me_domains_get_serialize( + _param = self._list_active_organization_domains_api_v1_organizations_me_domains_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2339,7 +2339,7 @@ def list_active_organization_domains_v1_organizations_me_domains_get_with_http_i @validate_call - def list_active_organization_domains_v1_organizations_me_domains_get_without_preload_content( + def list_active_organization_domains_api_v1_organizations_me_domains_get_without_preload_content( self, _request_timeout: Union[ None, @@ -2380,7 +2380,7 @@ def list_active_organization_domains_v1_organizations_me_domains_get_without_pre :return: Returns the result object. """ # noqa: E501 - _param = self._list_active_organization_domains_v1_organizations_me_domains_get_serialize( + _param = self._list_active_organization_domains_api_v1_organizations_me_domains_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2397,7 +2397,7 @@ def list_active_organization_domains_v1_organizations_me_domains_get_without_pre return response_data.response - def _list_active_organization_domains_v1_organizations_me_domains_get_serialize( + def _list_active_organization_domains_api_v1_organizations_me_domains_get_serialize( self, _request_auth, _content_type, @@ -2443,7 +2443,7 @@ def _list_active_organization_domains_v1_organizations_me_domains_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/organizations/me/domains', + resource_path='/api/v1/organizations/me/domains', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2460,7 +2460,7 @@ def _list_active_organization_domains_v1_organizations_me_domains_get_serialize( @validate_call - def list_active_organization_members_v1_organizations_me_members_get( + def list_active_organization_members_api_v1_organizations_me_members_get( self, skip: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of records to skip")] = None, limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Maximum number of records to return")] = None, @@ -2507,7 +2507,7 @@ def list_active_organization_members_v1_organizations_me_members_get( :return: Returns the result object. """ # noqa: E501 - _param = self._list_active_organization_members_v1_organizations_me_members_get_serialize( + _param = self._list_active_organization_members_api_v1_organizations_me_members_get_serialize( skip=skip, limit=limit, _request_auth=_request_auth, @@ -2532,7 +2532,7 @@ def list_active_organization_members_v1_organizations_me_members_get( @validate_call - def list_active_organization_members_v1_organizations_me_members_get_with_http_info( + def list_active_organization_members_api_v1_organizations_me_members_get_with_http_info( self, skip: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of records to skip")] = None, limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Maximum number of records to return")] = None, @@ -2579,7 +2579,7 @@ def list_active_organization_members_v1_organizations_me_members_get_with_http_i :return: Returns the result object. """ # noqa: E501 - _param = self._list_active_organization_members_v1_organizations_me_members_get_serialize( + _param = self._list_active_organization_members_api_v1_organizations_me_members_get_serialize( skip=skip, limit=limit, _request_auth=_request_auth, @@ -2604,7 +2604,7 @@ def list_active_organization_members_v1_organizations_me_members_get_with_http_i @validate_call - def list_active_organization_members_v1_organizations_me_members_get_without_preload_content( + def list_active_organization_members_api_v1_organizations_me_members_get_without_preload_content( self, skip: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of records to skip")] = None, limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Maximum number of records to return")] = None, @@ -2651,7 +2651,7 @@ def list_active_organization_members_v1_organizations_me_members_get_without_pre :return: Returns the result object. """ # noqa: E501 - _param = self._list_active_organization_members_v1_organizations_me_members_get_serialize( + _param = self._list_active_organization_members_api_v1_organizations_me_members_get_serialize( skip=skip, limit=limit, _request_auth=_request_auth, @@ -2671,7 +2671,7 @@ def list_active_organization_members_v1_organizations_me_members_get_without_pre return response_data.response - def _list_active_organization_members_v1_organizations_me_members_get_serialize( + def _list_active_organization_members_api_v1_organizations_me_members_get_serialize( self, skip, limit, @@ -2727,7 +2727,7 @@ def _list_active_organization_members_v1_organizations_me_members_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/organizations/me/members', + resource_path='/api/v1/organizations/me/members', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2744,7 +2744,7 @@ def _list_active_organization_members_v1_organizations_me_members_get_serialize( @validate_call - def list_caller_organization_memberships_v1_organizations_me_memberships_get( + def list_caller_organization_memberships_api_v1_organizations_me_memberships_get( self, skip: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of records to skip")] = None, limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Maximum number of records to return")] = None, @@ -2791,7 +2791,7 @@ def list_caller_organization_memberships_v1_organizations_me_memberships_get( :return: Returns the result object. """ # noqa: E501 - _param = self._list_caller_organization_memberships_v1_organizations_me_memberships_get_serialize( + _param = self._list_caller_organization_memberships_api_v1_organizations_me_memberships_get_serialize( skip=skip, limit=limit, _request_auth=_request_auth, @@ -2816,7 +2816,7 @@ def list_caller_organization_memberships_v1_organizations_me_memberships_get( @validate_call - def list_caller_organization_memberships_v1_organizations_me_memberships_get_with_http_info( + def list_caller_organization_memberships_api_v1_organizations_me_memberships_get_with_http_info( self, skip: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of records to skip")] = None, limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Maximum number of records to return")] = None, @@ -2863,7 +2863,7 @@ def list_caller_organization_memberships_v1_organizations_me_memberships_get_wit :return: Returns the result object. """ # noqa: E501 - _param = self._list_caller_organization_memberships_v1_organizations_me_memberships_get_serialize( + _param = self._list_caller_organization_memberships_api_v1_organizations_me_memberships_get_serialize( skip=skip, limit=limit, _request_auth=_request_auth, @@ -2888,7 +2888,7 @@ def list_caller_organization_memberships_v1_organizations_me_memberships_get_wit @validate_call - def list_caller_organization_memberships_v1_organizations_me_memberships_get_without_preload_content( + def list_caller_organization_memberships_api_v1_organizations_me_memberships_get_without_preload_content( self, skip: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of records to skip")] = None, limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Maximum number of records to return")] = None, @@ -2935,7 +2935,7 @@ def list_caller_organization_memberships_v1_organizations_me_memberships_get_wit :return: Returns the result object. """ # noqa: E501 - _param = self._list_caller_organization_memberships_v1_organizations_me_memberships_get_serialize( + _param = self._list_caller_organization_memberships_api_v1_organizations_me_memberships_get_serialize( skip=skip, limit=limit, _request_auth=_request_auth, @@ -2955,7 +2955,7 @@ def list_caller_organization_memberships_v1_organizations_me_memberships_get_wit return response_data.response - def _list_caller_organization_memberships_v1_organizations_me_memberships_get_serialize( + def _list_caller_organization_memberships_api_v1_organizations_me_memberships_get_serialize( self, skip, limit, @@ -3011,7 +3011,7 @@ def _list_caller_organization_memberships_v1_organizations_me_memberships_get_se return self.api_client.param_serialize( method='GET', - resource_path='/v1/organizations/me/memberships', + resource_path='/api/v1/organizations/me/memberships', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3028,7 +3028,7 @@ def _list_caller_organization_memberships_v1_organizations_me_memberships_get_se @validate_call - def list_caller_pending_memberships_v1_organizations_me_pending_memberships_get( + def list_caller_pending_memberships_api_v1_organizations_me_pending_memberships_get( self, skip: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of records to skip")] = None, limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Maximum number of records to return")] = None, @@ -3047,7 +3047,7 @@ def list_caller_pending_memberships_v1_organizations_me_pending_memberships_get( ) -> PendingOrganizationInvitationsPublic: """List Caller Pending Memberships - List the organization invitations still awaiting the caller. The invitee's side of the invitation flow, where ``/me/member-invitations`` is the admin's. Not to be confused with ``GET /me/memberships``, which lists the organizations the caller is already an active member of and deliberately omits an ``invited`` one. Takes no token, unlike ``/v1/invitations/*``: those are public because the recipient of an emailed link holds nothing else to prove anything with, while this caller is authenticated as the addressee and the membership's own ``user_id`` is what scopes the answer. An invitation whose deadline has passed is omitted rather than listed as unactionable. + List the organization invitations still awaiting the caller. The invitee's side of the invitation flow, where ``/me/member-invitations`` is the admin's. Not to be confused with ``GET /me/memberships``, which lists the organizations the caller is already an active member of and deliberately omits an ``invited`` one. Takes no token, unlike ``/api/v1/invitations/*``: those are public because the recipient of an emailed link holds nothing else to prove anything with, while this caller is authenticated as the addressee and the membership's own ``user_id`` is what scopes the answer. An invitation whose deadline has passed is omitted rather than listed as unactionable. :param skip: Number of records to skip :type skip: int @@ -3075,7 +3075,7 @@ def list_caller_pending_memberships_v1_organizations_me_pending_memberships_get( :return: Returns the result object. """ # noqa: E501 - _param = self._list_caller_pending_memberships_v1_organizations_me_pending_memberships_get_serialize( + _param = self._list_caller_pending_memberships_api_v1_organizations_me_pending_memberships_get_serialize( skip=skip, limit=limit, _request_auth=_request_auth, @@ -3100,7 +3100,7 @@ def list_caller_pending_memberships_v1_organizations_me_pending_memberships_get( @validate_call - def list_caller_pending_memberships_v1_organizations_me_pending_memberships_get_with_http_info( + def list_caller_pending_memberships_api_v1_organizations_me_pending_memberships_get_with_http_info( self, skip: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of records to skip")] = None, limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Maximum number of records to return")] = None, @@ -3119,7 +3119,7 @@ def list_caller_pending_memberships_v1_organizations_me_pending_memberships_get_ ) -> ApiResponse[PendingOrganizationInvitationsPublic]: """List Caller Pending Memberships - List the organization invitations still awaiting the caller. The invitee's side of the invitation flow, where ``/me/member-invitations`` is the admin's. Not to be confused with ``GET /me/memberships``, which lists the organizations the caller is already an active member of and deliberately omits an ``invited`` one. Takes no token, unlike ``/v1/invitations/*``: those are public because the recipient of an emailed link holds nothing else to prove anything with, while this caller is authenticated as the addressee and the membership's own ``user_id`` is what scopes the answer. An invitation whose deadline has passed is omitted rather than listed as unactionable. + List the organization invitations still awaiting the caller. The invitee's side of the invitation flow, where ``/me/member-invitations`` is the admin's. Not to be confused with ``GET /me/memberships``, which lists the organizations the caller is already an active member of and deliberately omits an ``invited`` one. Takes no token, unlike ``/api/v1/invitations/*``: those are public because the recipient of an emailed link holds nothing else to prove anything with, while this caller is authenticated as the addressee and the membership's own ``user_id`` is what scopes the answer. An invitation whose deadline has passed is omitted rather than listed as unactionable. :param skip: Number of records to skip :type skip: int @@ -3147,7 +3147,7 @@ def list_caller_pending_memberships_v1_organizations_me_pending_memberships_get_ :return: Returns the result object. """ # noqa: E501 - _param = self._list_caller_pending_memberships_v1_organizations_me_pending_memberships_get_serialize( + _param = self._list_caller_pending_memberships_api_v1_organizations_me_pending_memberships_get_serialize( skip=skip, limit=limit, _request_auth=_request_auth, @@ -3172,7 +3172,7 @@ def list_caller_pending_memberships_v1_organizations_me_pending_memberships_get_ @validate_call - def list_caller_pending_memberships_v1_organizations_me_pending_memberships_get_without_preload_content( + def list_caller_pending_memberships_api_v1_organizations_me_pending_memberships_get_without_preload_content( self, skip: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of records to skip")] = None, limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Maximum number of records to return")] = None, @@ -3191,7 +3191,7 @@ def list_caller_pending_memberships_v1_organizations_me_pending_memberships_get_ ) -> RESTResponseType: """List Caller Pending Memberships - List the organization invitations still awaiting the caller. The invitee's side of the invitation flow, where ``/me/member-invitations`` is the admin's. Not to be confused with ``GET /me/memberships``, which lists the organizations the caller is already an active member of and deliberately omits an ``invited`` one. Takes no token, unlike ``/v1/invitations/*``: those are public because the recipient of an emailed link holds nothing else to prove anything with, while this caller is authenticated as the addressee and the membership's own ``user_id`` is what scopes the answer. An invitation whose deadline has passed is omitted rather than listed as unactionable. + List the organization invitations still awaiting the caller. The invitee's side of the invitation flow, where ``/me/member-invitations`` is the admin's. Not to be confused with ``GET /me/memberships``, which lists the organizations the caller is already an active member of and deliberately omits an ``invited`` one. Takes no token, unlike ``/api/v1/invitations/*``: those are public because the recipient of an emailed link holds nothing else to prove anything with, while this caller is authenticated as the addressee and the membership's own ``user_id`` is what scopes the answer. An invitation whose deadline has passed is omitted rather than listed as unactionable. :param skip: Number of records to skip :type skip: int @@ -3219,7 +3219,7 @@ def list_caller_pending_memberships_v1_organizations_me_pending_memberships_get_ :return: Returns the result object. """ # noqa: E501 - _param = self._list_caller_pending_memberships_v1_organizations_me_pending_memberships_get_serialize( + _param = self._list_caller_pending_memberships_api_v1_organizations_me_pending_memberships_get_serialize( skip=skip, limit=limit, _request_auth=_request_auth, @@ -3239,7 +3239,7 @@ def list_caller_pending_memberships_v1_organizations_me_pending_memberships_get_ return response_data.response - def _list_caller_pending_memberships_v1_organizations_me_pending_memberships_get_serialize( + def _list_caller_pending_memberships_api_v1_organizations_me_pending_memberships_get_serialize( self, skip, limit, @@ -3295,7 +3295,7 @@ def _list_caller_pending_memberships_v1_organizations_me_pending_memberships_get return self.api_client.param_serialize( method='GET', - resource_path='/v1/organizations/me/pending-memberships', + resource_path='/api/v1/organizations/me/pending-memberships', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3312,7 +3312,7 @@ def _list_caller_pending_memberships_v1_organizations_me_pending_memberships_get @validate_call - def remove_active_organization_member_v1_organizations_me_members_organization_member_id_delete( + def remove_active_organization_member_api_v1_organizations_me_members_organization_member_id_delete( self, organization_member_id: UUID, _request_timeout: Union[ @@ -3356,7 +3356,7 @@ def remove_active_organization_member_v1_organizations_me_members_organization_m :return: Returns the result object. """ # noqa: E501 - _param = self._remove_active_organization_member_v1_organizations_me_members_organization_member_id_delete_serialize( + _param = self._remove_active_organization_member_api_v1_organizations_me_members_organization_member_id_delete_serialize( organization_member_id=organization_member_id, _request_auth=_request_auth, _content_type=_content_type, @@ -3380,7 +3380,7 @@ def remove_active_organization_member_v1_organizations_me_members_organization_m @validate_call - def remove_active_organization_member_v1_organizations_me_members_organization_member_id_delete_with_http_info( + def remove_active_organization_member_api_v1_organizations_me_members_organization_member_id_delete_with_http_info( self, organization_member_id: UUID, _request_timeout: Union[ @@ -3424,7 +3424,7 @@ def remove_active_organization_member_v1_organizations_me_members_organization_m :return: Returns the result object. """ # noqa: E501 - _param = self._remove_active_organization_member_v1_organizations_me_members_organization_member_id_delete_serialize( + _param = self._remove_active_organization_member_api_v1_organizations_me_members_organization_member_id_delete_serialize( organization_member_id=organization_member_id, _request_auth=_request_auth, _content_type=_content_type, @@ -3448,7 +3448,7 @@ def remove_active_organization_member_v1_organizations_me_members_organization_m @validate_call - def remove_active_organization_member_v1_organizations_me_members_organization_member_id_delete_without_preload_content( + def remove_active_organization_member_api_v1_organizations_me_members_organization_member_id_delete_without_preload_content( self, organization_member_id: UUID, _request_timeout: Union[ @@ -3492,7 +3492,7 @@ def remove_active_organization_member_v1_organizations_me_members_organization_m :return: Returns the result object. """ # noqa: E501 - _param = self._remove_active_organization_member_v1_organizations_me_members_organization_member_id_delete_serialize( + _param = self._remove_active_organization_member_api_v1_organizations_me_members_organization_member_id_delete_serialize( organization_member_id=organization_member_id, _request_auth=_request_auth, _content_type=_content_type, @@ -3511,7 +3511,7 @@ def remove_active_organization_member_v1_organizations_me_members_organization_m return response_data.response - def _remove_active_organization_member_v1_organizations_me_members_organization_member_id_delete_serialize( + def _remove_active_organization_member_api_v1_organizations_me_members_organization_member_id_delete_serialize( self, organization_member_id, _request_auth, @@ -3560,7 +3560,7 @@ def _remove_active_organization_member_v1_organizations_me_members_organization_ return self.api_client.param_serialize( method='DELETE', - resource_path='/v1/organizations/me/members/{organization_member_id}', + resource_path='/api/v1/organizations/me/members/{organization_member_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3577,7 +3577,7 @@ def _remove_active_organization_member_v1_organizations_me_members_organization_ @validate_call - def revoke_active_organization_member_invitation_v1_organizations_me_member_invitations_invitation_id_delete( + def revoke_active_organization_member_invitation_api_v1_organizations_me_member_invitations_invitation_id_delete( self, invitation_id: UUID, _request_timeout: Union[ @@ -3621,7 +3621,7 @@ def revoke_active_organization_member_invitation_v1_organizations_me_member_invi :return: Returns the result object. """ # noqa: E501 - _param = self._revoke_active_organization_member_invitation_v1_organizations_me_member_invitations_invitation_id_delete_serialize( + _param = self._revoke_active_organization_member_invitation_api_v1_organizations_me_member_invitations_invitation_id_delete_serialize( invitation_id=invitation_id, _request_auth=_request_auth, _content_type=_content_type, @@ -3645,7 +3645,7 @@ def revoke_active_organization_member_invitation_v1_organizations_me_member_invi @validate_call - def revoke_active_organization_member_invitation_v1_organizations_me_member_invitations_invitation_id_delete_with_http_info( + def revoke_active_organization_member_invitation_api_v1_organizations_me_member_invitations_invitation_id_delete_with_http_info( self, invitation_id: UUID, _request_timeout: Union[ @@ -3689,7 +3689,7 @@ def revoke_active_organization_member_invitation_v1_organizations_me_member_invi :return: Returns the result object. """ # noqa: E501 - _param = self._revoke_active_organization_member_invitation_v1_organizations_me_member_invitations_invitation_id_delete_serialize( + _param = self._revoke_active_organization_member_invitation_api_v1_organizations_me_member_invitations_invitation_id_delete_serialize( invitation_id=invitation_id, _request_auth=_request_auth, _content_type=_content_type, @@ -3713,7 +3713,7 @@ def revoke_active_organization_member_invitation_v1_organizations_me_member_invi @validate_call - def revoke_active_organization_member_invitation_v1_organizations_me_member_invitations_invitation_id_delete_without_preload_content( + def revoke_active_organization_member_invitation_api_v1_organizations_me_member_invitations_invitation_id_delete_without_preload_content( self, invitation_id: UUID, _request_timeout: Union[ @@ -3757,7 +3757,7 @@ def revoke_active_organization_member_invitation_v1_organizations_me_member_invi :return: Returns the result object. """ # noqa: E501 - _param = self._revoke_active_organization_member_invitation_v1_organizations_me_member_invitations_invitation_id_delete_serialize( + _param = self._revoke_active_organization_member_invitation_api_v1_organizations_me_member_invitations_invitation_id_delete_serialize( invitation_id=invitation_id, _request_auth=_request_auth, _content_type=_content_type, @@ -3776,7 +3776,7 @@ def revoke_active_organization_member_invitation_v1_organizations_me_member_invi return response_data.response - def _revoke_active_organization_member_invitation_v1_organizations_me_member_invitations_invitation_id_delete_serialize( + def _revoke_active_organization_member_invitation_api_v1_organizations_me_member_invitations_invitation_id_delete_serialize( self, invitation_id, _request_auth, @@ -3825,7 +3825,7 @@ def _revoke_active_organization_member_invitation_v1_organizations_me_member_inv return self.api_client.param_serialize( method='DELETE', - resource_path='/v1/organizations/me/member-invitations/{invitation_id}', + resource_path='/api/v1/organizations/me/member-invitations/{invitation_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3842,7 +3842,7 @@ def _revoke_active_organization_member_invitation_v1_organizations_me_member_inv @validate_call - def switch_active_organization_v1_organizations_me_switch_post( + def switch_active_organization_api_v1_organizations_me_switch_post( self, switch_active_organization_request: SwitchActiveOrganizationRequest, _request_timeout: Union[ @@ -3886,7 +3886,7 @@ def switch_active_organization_v1_organizations_me_switch_post( :return: Returns the result object. """ # noqa: E501 - _param = self._switch_active_organization_v1_organizations_me_switch_post_serialize( + _param = self._switch_active_organization_api_v1_organizations_me_switch_post_serialize( switch_active_organization_request=switch_active_organization_request, _request_auth=_request_auth, _content_type=_content_type, @@ -3910,7 +3910,7 @@ def switch_active_organization_v1_organizations_me_switch_post( @validate_call - def switch_active_organization_v1_organizations_me_switch_post_with_http_info( + def switch_active_organization_api_v1_organizations_me_switch_post_with_http_info( self, switch_active_organization_request: SwitchActiveOrganizationRequest, _request_timeout: Union[ @@ -3954,7 +3954,7 @@ def switch_active_organization_v1_organizations_me_switch_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._switch_active_organization_v1_organizations_me_switch_post_serialize( + _param = self._switch_active_organization_api_v1_organizations_me_switch_post_serialize( switch_active_organization_request=switch_active_organization_request, _request_auth=_request_auth, _content_type=_content_type, @@ -3978,7 +3978,7 @@ def switch_active_organization_v1_organizations_me_switch_post_with_http_info( @validate_call - def switch_active_organization_v1_organizations_me_switch_post_without_preload_content( + def switch_active_organization_api_v1_organizations_me_switch_post_without_preload_content( self, switch_active_organization_request: SwitchActiveOrganizationRequest, _request_timeout: Union[ @@ -4022,7 +4022,7 @@ def switch_active_organization_v1_organizations_me_switch_post_without_preload_c :return: Returns the result object. """ # noqa: E501 - _param = self._switch_active_organization_v1_organizations_me_switch_post_serialize( + _param = self._switch_active_organization_api_v1_organizations_me_switch_post_serialize( switch_active_organization_request=switch_active_organization_request, _request_auth=_request_auth, _content_type=_content_type, @@ -4041,7 +4041,7 @@ def switch_active_organization_v1_organizations_me_switch_post_without_preload_c return response_data.response - def _switch_active_organization_v1_organizations_me_switch_post_serialize( + def _switch_active_organization_api_v1_organizations_me_switch_post_serialize( self, switch_active_organization_request, _request_auth, @@ -4103,7 +4103,7 @@ def _switch_active_organization_v1_organizations_me_switch_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/organizations/me/switch', + resource_path='/api/v1/organizations/me/switch', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4120,10 +4120,9 @@ def _switch_active_organization_v1_organizations_me_switch_post_serialize( @validate_call - def update_active_organization_domain_v1_organizations_me_domains_organization_domain_id_patch( + def update_active_organization_api_v1_organizations_me_patch( self, - organization_domain_id: UUID, - organization_domain_update_request: OrganizationDomainUpdateRequest, + active_organization_update_request: ActiveOrganizationUpdateRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4136,15 +4135,13 @@ def update_active_organization_domain_v1_organizations_me_domains_organization_d _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> OrganizationDomainPublic: - """Update Active Organization Domain + ) -> OrganizationMembershipContextPublic: + """Update Active Organization - Change a claim's auto-join role or enabled flag. Owners and admins only. The domain itself and its verification state are not editable: a different domain is a different claim and needs its own proof. + Rename the caller's active organization. - :param organization_domain_id: (required) - :type organization_domain_id: UUID - :param organization_domain_update_request: (required) - :type organization_domain_update_request: OrganizationDomainUpdateRequest + :param active_organization_update_request: (required) + :type active_organization_update_request: ActiveOrganizationUpdateRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4167,9 +4164,8 @@ def update_active_organization_domain_v1_organizations_me_domains_organization_d :return: Returns the result object. """ # noqa: E501 - _param = self._update_active_organization_domain_v1_organizations_me_domains_organization_domain_id_patch_serialize( - organization_domain_id=organization_domain_id, - organization_domain_update_request=organization_domain_update_request, + _param = self._update_active_organization_api_v1_organizations_me_patch_serialize( + active_organization_update_request=active_organization_update_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4177,7 +4173,7 @@ def update_active_organization_domain_v1_organizations_me_domains_organization_d ) _response_types_map: Dict[str, Optional[str]] = { - '200': "OrganizationDomainPublic", + '200': "OrganizationMembershipContextPublic", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -4192,10 +4188,9 @@ def update_active_organization_domain_v1_organizations_me_domains_organization_d @validate_call - def update_active_organization_domain_v1_organizations_me_domains_organization_domain_id_patch_with_http_info( + def update_active_organization_api_v1_organizations_me_patch_with_http_info( self, - organization_domain_id: UUID, - organization_domain_update_request: OrganizationDomainUpdateRequest, + active_organization_update_request: ActiveOrganizationUpdateRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4208,15 +4203,13 @@ def update_active_organization_domain_v1_organizations_me_domains_organization_d _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[OrganizationDomainPublic]: - """Update Active Organization Domain + ) -> ApiResponse[OrganizationMembershipContextPublic]: + """Update Active Organization - Change a claim's auto-join role or enabled flag. Owners and admins only. The domain itself and its verification state are not editable: a different domain is a different claim and needs its own proof. + Rename the caller's active organization. - :param organization_domain_id: (required) - :type organization_domain_id: UUID - :param organization_domain_update_request: (required) - :type organization_domain_update_request: OrganizationDomainUpdateRequest + :param active_organization_update_request: (required) + :type active_organization_update_request: ActiveOrganizationUpdateRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4239,9 +4232,8 @@ def update_active_organization_domain_v1_organizations_me_domains_organization_d :return: Returns the result object. """ # noqa: E501 - _param = self._update_active_organization_domain_v1_organizations_me_domains_organization_domain_id_patch_serialize( - organization_domain_id=organization_domain_id, - organization_domain_update_request=organization_domain_update_request, + _param = self._update_active_organization_api_v1_organizations_me_patch_serialize( + active_organization_update_request=active_organization_update_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4249,7 +4241,7 @@ def update_active_organization_domain_v1_organizations_me_domains_organization_d ) _response_types_map: Dict[str, Optional[str]] = { - '200': "OrganizationDomainPublic", + '200': "OrganizationMembershipContextPublic", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -4264,10 +4256,9 @@ def update_active_organization_domain_v1_organizations_me_domains_organization_d @validate_call - def update_active_organization_domain_v1_organizations_me_domains_organization_domain_id_patch_without_preload_content( + def update_active_organization_api_v1_organizations_me_patch_without_preload_content( self, - organization_domain_id: UUID, - organization_domain_update_request: OrganizationDomainUpdateRequest, + active_organization_update_request: ActiveOrganizationUpdateRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4281,14 +4272,12 @@ def update_active_organization_domain_v1_organizations_me_domains_organization_d _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Update Active Organization Domain + """Update Active Organization - Change a claim's auto-join role or enabled flag. Owners and admins only. The domain itself and its verification state are not editable: a different domain is a different claim and needs its own proof. + Rename the caller's active organization. - :param organization_domain_id: (required) - :type organization_domain_id: UUID - :param organization_domain_update_request: (required) - :type organization_domain_update_request: OrganizationDomainUpdateRequest + :param active_organization_update_request: (required) + :type active_organization_update_request: ActiveOrganizationUpdateRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4311,9 +4300,8 @@ def update_active_organization_domain_v1_organizations_me_domains_organization_d :return: Returns the result object. """ # noqa: E501 - _param = self._update_active_organization_domain_v1_organizations_me_domains_organization_domain_id_patch_serialize( - organization_domain_id=organization_domain_id, - organization_domain_update_request=organization_domain_update_request, + _param = self._update_active_organization_api_v1_organizations_me_patch_serialize( + active_organization_update_request=active_organization_update_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4321,7 +4309,7 @@ def update_active_organization_domain_v1_organizations_me_domains_organization_d ) _response_types_map: Dict[str, Optional[str]] = { - '200': "OrganizationDomainPublic", + '200': "OrganizationMembershipContextPublic", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -4331,10 +4319,9 @@ def update_active_organization_domain_v1_organizations_me_domains_organization_d return response_data.response - def _update_active_organization_domain_v1_organizations_me_domains_organization_domain_id_patch_serialize( + def _update_active_organization_api_v1_organizations_me_patch_serialize( self, - organization_domain_id, - organization_domain_update_request, + active_organization_update_request, _request_auth, _content_type, _headers, @@ -4356,14 +4343,12 @@ def _update_active_organization_domain_v1_organizations_me_domains_organization_ _body_params: Optional[bytes] = None # process the path parameters - if organization_domain_id is not None: - _path_params['organization_domain_id'] = organization_domain_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if organization_domain_update_request is not None: - _body_params = organization_domain_update_request + if active_organization_update_request is not None: + _body_params = active_organization_update_request # set the HTTP header `Accept` @@ -4396,7 +4381,7 @@ def _update_active_organization_domain_v1_organizations_me_domains_organization_ return self.api_client.param_serialize( method='PATCH', - resource_path='/v1/organizations/me/domains/{organization_domain_id}', + resource_path='/api/v1/organizations/me', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4413,10 +4398,10 @@ def _update_active_organization_domain_v1_organizations_me_domains_organization_ @validate_call - def update_active_organization_member_v1_organizations_me_members_organization_member_id_patch( + def update_active_organization_domain_api_v1_organizations_me_domains_organization_domain_id_patch( self, - organization_member_id: UUID, - active_organization_member_update_request: ActiveOrganizationMemberUpdateRequest, + organization_domain_id: UUID, + organization_domain_update_request: OrganizationDomainUpdateRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4429,15 +4414,15 @@ def update_active_organization_member_v1_organizations_me_members_organization_m _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ActiveOrganizationMemberPublic: - """Update Active Organization Member + ) -> OrganizationDomainPublic: + """Update Active Organization Domain - Change a member's role or status. Organization owners and admins only. + Change a claim's auto-join role or enabled flag. Owners and admins only. The domain itself and its verification state are not editable: a different domain is a different claim and needs its own proof. - :param organization_member_id: (required) - :type organization_member_id: UUID - :param active_organization_member_update_request: (required) - :type active_organization_member_update_request: ActiveOrganizationMemberUpdateRequest + :param organization_domain_id: (required) + :type organization_domain_id: UUID + :param organization_domain_update_request: (required) + :type organization_domain_update_request: OrganizationDomainUpdateRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4460,9 +4445,9 @@ def update_active_organization_member_v1_organizations_me_members_organization_m :return: Returns the result object. """ # noqa: E501 - _param = self._update_active_organization_member_v1_organizations_me_members_organization_member_id_patch_serialize( - organization_member_id=organization_member_id, - active_organization_member_update_request=active_organization_member_update_request, + _param = self._update_active_organization_domain_api_v1_organizations_me_domains_organization_domain_id_patch_serialize( + organization_domain_id=organization_domain_id, + organization_domain_update_request=organization_domain_update_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4470,7 +4455,7 @@ def update_active_organization_member_v1_organizations_me_members_organization_m ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ActiveOrganizationMemberPublic", + '200': "OrganizationDomainPublic", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -4485,10 +4470,10 @@ def update_active_organization_member_v1_organizations_me_members_organization_m @validate_call - def update_active_organization_member_v1_organizations_me_members_organization_member_id_patch_with_http_info( + def update_active_organization_domain_api_v1_organizations_me_domains_organization_domain_id_patch_with_http_info( self, - organization_member_id: UUID, - active_organization_member_update_request: ActiveOrganizationMemberUpdateRequest, + organization_domain_id: UUID, + organization_domain_update_request: OrganizationDomainUpdateRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4501,15 +4486,15 @@ def update_active_organization_member_v1_organizations_me_members_organization_m _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ActiveOrganizationMemberPublic]: - """Update Active Organization Member + ) -> ApiResponse[OrganizationDomainPublic]: + """Update Active Organization Domain - Change a member's role or status. Organization owners and admins only. + Change a claim's auto-join role or enabled flag. Owners and admins only. The domain itself and its verification state are not editable: a different domain is a different claim and needs its own proof. - :param organization_member_id: (required) - :type organization_member_id: UUID - :param active_organization_member_update_request: (required) - :type active_organization_member_update_request: ActiveOrganizationMemberUpdateRequest + :param organization_domain_id: (required) + :type organization_domain_id: UUID + :param organization_domain_update_request: (required) + :type organization_domain_update_request: OrganizationDomainUpdateRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4532,9 +4517,9 @@ def update_active_organization_member_v1_organizations_me_members_organization_m :return: Returns the result object. """ # noqa: E501 - _param = self._update_active_organization_member_v1_organizations_me_members_organization_member_id_patch_serialize( - organization_member_id=organization_member_id, - active_organization_member_update_request=active_organization_member_update_request, + _param = self._update_active_organization_domain_api_v1_organizations_me_domains_organization_domain_id_patch_serialize( + organization_domain_id=organization_domain_id, + organization_domain_update_request=organization_domain_update_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4542,7 +4527,7 @@ def update_active_organization_member_v1_organizations_me_members_organization_m ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ActiveOrganizationMemberPublic", + '200': "OrganizationDomainPublic", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -4557,10 +4542,10 @@ def update_active_organization_member_v1_organizations_me_members_organization_m @validate_call - def update_active_organization_member_v1_organizations_me_members_organization_member_id_patch_without_preload_content( + def update_active_organization_domain_api_v1_organizations_me_domains_organization_domain_id_patch_without_preload_content( self, - organization_member_id: UUID, - active_organization_member_update_request: ActiveOrganizationMemberUpdateRequest, + organization_domain_id: UUID, + organization_domain_update_request: OrganizationDomainUpdateRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4574,14 +4559,14 @@ def update_active_organization_member_v1_organizations_me_members_organization_m _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Update Active Organization Member + """Update Active Organization Domain - Change a member's role or status. Organization owners and admins only. + Change a claim's auto-join role or enabled flag. Owners and admins only. The domain itself and its verification state are not editable: a different domain is a different claim and needs its own proof. - :param organization_member_id: (required) - :type organization_member_id: UUID - :param active_organization_member_update_request: (required) - :type active_organization_member_update_request: ActiveOrganizationMemberUpdateRequest + :param organization_domain_id: (required) + :type organization_domain_id: UUID + :param organization_domain_update_request: (required) + :type organization_domain_update_request: OrganizationDomainUpdateRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4604,9 +4589,9 @@ def update_active_organization_member_v1_organizations_me_members_organization_m :return: Returns the result object. """ # noqa: E501 - _param = self._update_active_organization_member_v1_organizations_me_members_organization_member_id_patch_serialize( - organization_member_id=organization_member_id, - active_organization_member_update_request=active_organization_member_update_request, + _param = self._update_active_organization_domain_api_v1_organizations_me_domains_organization_domain_id_patch_serialize( + organization_domain_id=organization_domain_id, + organization_domain_update_request=organization_domain_update_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4614,7 +4599,7 @@ def update_active_organization_member_v1_organizations_me_members_organization_m ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ActiveOrganizationMemberPublic", + '200': "OrganizationDomainPublic", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -4624,10 +4609,10 @@ def update_active_organization_member_v1_organizations_me_members_organization_m return response_data.response - def _update_active_organization_member_v1_organizations_me_members_organization_member_id_patch_serialize( + def _update_active_organization_domain_api_v1_organizations_me_domains_organization_domain_id_patch_serialize( self, - organization_member_id, - active_organization_member_update_request, + organization_domain_id, + organization_domain_update_request, _request_auth, _content_type, _headers, @@ -4649,14 +4634,14 @@ def _update_active_organization_member_v1_organizations_me_members_organization_ _body_params: Optional[bytes] = None # process the path parameters - if organization_member_id is not None: - _path_params['organization_member_id'] = organization_member_id + if organization_domain_id is not None: + _path_params['organization_domain_id'] = organization_domain_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if active_organization_member_update_request is not None: - _body_params = active_organization_member_update_request + if organization_domain_update_request is not None: + _body_params = organization_domain_update_request # set the HTTP header `Accept` @@ -4689,7 +4674,7 @@ def _update_active_organization_member_v1_organizations_me_members_organization_ return self.api_client.param_serialize( method='PATCH', - resource_path='/v1/organizations/me/members/{organization_member_id}', + resource_path='/api/v1/organizations/me/domains/{organization_domain_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4706,9 +4691,10 @@ def _update_active_organization_member_v1_organizations_me_members_organization_ @validate_call - def update_active_organization_v1_organizations_me_patch( + def update_active_organization_member_api_v1_organizations_me_members_organization_member_id_patch( self, - active_organization_update_request: ActiveOrganizationUpdateRequest, + organization_member_id: UUID, + active_organization_member_update_request: ActiveOrganizationMemberUpdateRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4721,13 +4707,15 @@ def update_active_organization_v1_organizations_me_patch( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> OrganizationMembershipContextPublic: - """Update Active Organization + ) -> ActiveOrganizationMemberPublic: + """Update Active Organization Member - Rename the caller's active organization. + Change a member's role or status. Organization owners and admins only. - :param active_organization_update_request: (required) - :type active_organization_update_request: ActiveOrganizationUpdateRequest + :param organization_member_id: (required) + :type organization_member_id: UUID + :param active_organization_member_update_request: (required) + :type active_organization_member_update_request: ActiveOrganizationMemberUpdateRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4750,8 +4738,9 @@ def update_active_organization_v1_organizations_me_patch( :return: Returns the result object. """ # noqa: E501 - _param = self._update_active_organization_v1_organizations_me_patch_serialize( - active_organization_update_request=active_organization_update_request, + _param = self._update_active_organization_member_api_v1_organizations_me_members_organization_member_id_patch_serialize( + organization_member_id=organization_member_id, + active_organization_member_update_request=active_organization_member_update_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4759,7 +4748,7 @@ def update_active_organization_v1_organizations_me_patch( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "OrganizationMembershipContextPublic", + '200': "ActiveOrganizationMemberPublic", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -4774,9 +4763,10 @@ def update_active_organization_v1_organizations_me_patch( @validate_call - def update_active_organization_v1_organizations_me_patch_with_http_info( + def update_active_organization_member_api_v1_organizations_me_members_organization_member_id_patch_with_http_info( self, - active_organization_update_request: ActiveOrganizationUpdateRequest, + organization_member_id: UUID, + active_organization_member_update_request: ActiveOrganizationMemberUpdateRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4789,13 +4779,15 @@ def update_active_organization_v1_organizations_me_patch_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[OrganizationMembershipContextPublic]: - """Update Active Organization + ) -> ApiResponse[ActiveOrganizationMemberPublic]: + """Update Active Organization Member - Rename the caller's active organization. + Change a member's role or status. Organization owners and admins only. - :param active_organization_update_request: (required) - :type active_organization_update_request: ActiveOrganizationUpdateRequest + :param organization_member_id: (required) + :type organization_member_id: UUID + :param active_organization_member_update_request: (required) + :type active_organization_member_update_request: ActiveOrganizationMemberUpdateRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4818,8 +4810,9 @@ def update_active_organization_v1_organizations_me_patch_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._update_active_organization_v1_organizations_me_patch_serialize( - active_organization_update_request=active_organization_update_request, + _param = self._update_active_organization_member_api_v1_organizations_me_members_organization_member_id_patch_serialize( + organization_member_id=organization_member_id, + active_organization_member_update_request=active_organization_member_update_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4827,7 +4820,7 @@ def update_active_organization_v1_organizations_me_patch_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "OrganizationMembershipContextPublic", + '200': "ActiveOrganizationMemberPublic", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -4842,9 +4835,10 @@ def update_active_organization_v1_organizations_me_patch_with_http_info( @validate_call - def update_active_organization_v1_organizations_me_patch_without_preload_content( + def update_active_organization_member_api_v1_organizations_me_members_organization_member_id_patch_without_preload_content( self, - active_organization_update_request: ActiveOrganizationUpdateRequest, + organization_member_id: UUID, + active_organization_member_update_request: ActiveOrganizationMemberUpdateRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4858,12 +4852,14 @@ def update_active_organization_v1_organizations_me_patch_without_preload_content _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Update Active Organization + """Update Active Organization Member - Rename the caller's active organization. + Change a member's role or status. Organization owners and admins only. - :param active_organization_update_request: (required) - :type active_organization_update_request: ActiveOrganizationUpdateRequest + :param organization_member_id: (required) + :type organization_member_id: UUID + :param active_organization_member_update_request: (required) + :type active_organization_member_update_request: ActiveOrganizationMemberUpdateRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4886,8 +4882,9 @@ def update_active_organization_v1_organizations_me_patch_without_preload_content :return: Returns the result object. """ # noqa: E501 - _param = self._update_active_organization_v1_organizations_me_patch_serialize( - active_organization_update_request=active_organization_update_request, + _param = self._update_active_organization_member_api_v1_organizations_me_members_organization_member_id_patch_serialize( + organization_member_id=organization_member_id, + active_organization_member_update_request=active_organization_member_update_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4895,7 +4892,7 @@ def update_active_organization_v1_organizations_me_patch_without_preload_content ) _response_types_map: Dict[str, Optional[str]] = { - '200': "OrganizationMembershipContextPublic", + '200': "ActiveOrganizationMemberPublic", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -4905,9 +4902,10 @@ def update_active_organization_v1_organizations_me_patch_without_preload_content return response_data.response - def _update_active_organization_v1_organizations_me_patch_serialize( + def _update_active_organization_member_api_v1_organizations_me_members_organization_member_id_patch_serialize( self, - active_organization_update_request, + organization_member_id, + active_organization_member_update_request, _request_auth, _content_type, _headers, @@ -4929,12 +4927,14 @@ def _update_active_organization_v1_organizations_me_patch_serialize( _body_params: Optional[bytes] = None # process the path parameters + if organization_member_id is not None: + _path_params['organization_member_id'] = organization_member_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if active_organization_update_request is not None: - _body_params = active_organization_update_request + if active_organization_member_update_request is not None: + _body_params = active_organization_member_update_request # set the HTTP header `Accept` @@ -4967,7 +4967,7 @@ def _update_active_organization_v1_organizations_me_patch_serialize( return self.api_client.param_serialize( method='PATCH', - resource_path='/v1/organizations/me', + resource_path='/api/v1/organizations/me/members/{organization_member_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4984,7 +4984,7 @@ def _update_active_organization_v1_organizations_me_patch_serialize( @validate_call - def verify_active_organization_domain_v1_organizations_me_domains_organization_domain_id_verify_post( + def verify_active_organization_domain_api_v1_organizations_me_domains_organization_domain_id_verify_post( self, organization_domain_id: UUID, _request_timeout: Union[ @@ -5028,7 +5028,7 @@ def verify_active_organization_domain_v1_organizations_me_domains_organization_d :return: Returns the result object. """ # noqa: E501 - _param = self._verify_active_organization_domain_v1_organizations_me_domains_organization_domain_id_verify_post_serialize( + _param = self._verify_active_organization_domain_api_v1_organizations_me_domains_organization_domain_id_verify_post_serialize( organization_domain_id=organization_domain_id, _request_auth=_request_auth, _content_type=_content_type, @@ -5052,7 +5052,7 @@ def verify_active_organization_domain_v1_organizations_me_domains_organization_d @validate_call - def verify_active_organization_domain_v1_organizations_me_domains_organization_domain_id_verify_post_with_http_info( + def verify_active_organization_domain_api_v1_organizations_me_domains_organization_domain_id_verify_post_with_http_info( self, organization_domain_id: UUID, _request_timeout: Union[ @@ -5096,7 +5096,7 @@ def verify_active_organization_domain_v1_organizations_me_domains_organization_d :return: Returns the result object. """ # noqa: E501 - _param = self._verify_active_organization_domain_v1_organizations_me_domains_organization_domain_id_verify_post_serialize( + _param = self._verify_active_organization_domain_api_v1_organizations_me_domains_organization_domain_id_verify_post_serialize( organization_domain_id=organization_domain_id, _request_auth=_request_auth, _content_type=_content_type, @@ -5120,7 +5120,7 @@ def verify_active_organization_domain_v1_organizations_me_domains_organization_d @validate_call - def verify_active_organization_domain_v1_organizations_me_domains_organization_domain_id_verify_post_without_preload_content( + def verify_active_organization_domain_api_v1_organizations_me_domains_organization_domain_id_verify_post_without_preload_content( self, organization_domain_id: UUID, _request_timeout: Union[ @@ -5164,7 +5164,7 @@ def verify_active_organization_domain_v1_organizations_me_domains_organization_d :return: Returns the result object. """ # noqa: E501 - _param = self._verify_active_organization_domain_v1_organizations_me_domains_organization_domain_id_verify_post_serialize( + _param = self._verify_active_organization_domain_api_v1_organizations_me_domains_organization_domain_id_verify_post_serialize( organization_domain_id=organization_domain_id, _request_auth=_request_auth, _content_type=_content_type, @@ -5183,7 +5183,7 @@ def verify_active_organization_domain_v1_organizations_me_domains_organization_d return response_data.response - def _verify_active_organization_domain_v1_organizations_me_domains_organization_domain_id_verify_post_serialize( + def _verify_active_organization_domain_api_v1_organizations_me_domains_organization_domain_id_verify_post_serialize( self, organization_domain_id, _request_auth, @@ -5232,7 +5232,7 @@ def _verify_active_organization_domain_v1_organizations_me_domains_organization_ return self.api_client.param_serialize( method='POST', - resource_path='/v1/organizations/me/domains/{organization_domain_id}/verify', + resource_path='/api/v1/organizations/me/domains/{organization_domain_id}/verify', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/otel_api.py b/src/otari/_client/api/otel_api.py index 836cf80..3ecd3cd 100644 --- a/src/otari/_client/api/otel_api.py +++ b/src/otari/_client/api/otel_api.py @@ -36,7 +36,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def receive_logs_v1_logs_post( + def receive_logs_otlp_v1_logs_post( self, _request_timeout: Union[ None, @@ -77,7 +77,7 @@ def receive_logs_v1_logs_post( :return: Returns the result object. """ # noqa: E501 - _param = self._receive_logs_v1_logs_post_serialize( + _param = self._receive_logs_otlp_v1_logs_post_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -99,7 +99,7 @@ def receive_logs_v1_logs_post( @validate_call - def receive_logs_v1_logs_post_with_http_info( + def receive_logs_otlp_v1_logs_post_with_http_info( self, _request_timeout: Union[ None, @@ -140,7 +140,7 @@ def receive_logs_v1_logs_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._receive_logs_v1_logs_post_serialize( + _param = self._receive_logs_otlp_v1_logs_post_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -162,7 +162,7 @@ def receive_logs_v1_logs_post_with_http_info( @validate_call - def receive_logs_v1_logs_post_without_preload_content( + def receive_logs_otlp_v1_logs_post_without_preload_content( self, _request_timeout: Union[ None, @@ -203,7 +203,7 @@ def receive_logs_v1_logs_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._receive_logs_v1_logs_post_serialize( + _param = self._receive_logs_otlp_v1_logs_post_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -220,7 +220,7 @@ def receive_logs_v1_logs_post_without_preload_content( return response_data.response - def _receive_logs_v1_logs_post_serialize( + def _receive_logs_otlp_v1_logs_post_serialize( self, _request_auth, _content_type, @@ -266,7 +266,7 @@ def _receive_logs_v1_logs_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/logs', + resource_path='/otlp/v1/logs', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -283,7 +283,7 @@ def _receive_logs_v1_logs_post_serialize( @validate_call - def receive_metrics_v1_metrics_post( + def receive_metrics_otlp_v1_metrics_post( self, _request_timeout: Union[ None, @@ -324,7 +324,7 @@ def receive_metrics_v1_metrics_post( :return: Returns the result object. """ # noqa: E501 - _param = self._receive_metrics_v1_metrics_post_serialize( + _param = self._receive_metrics_otlp_v1_metrics_post_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -346,7 +346,7 @@ def receive_metrics_v1_metrics_post( @validate_call - def receive_metrics_v1_metrics_post_with_http_info( + def receive_metrics_otlp_v1_metrics_post_with_http_info( self, _request_timeout: Union[ None, @@ -387,7 +387,7 @@ def receive_metrics_v1_metrics_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._receive_metrics_v1_metrics_post_serialize( + _param = self._receive_metrics_otlp_v1_metrics_post_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -409,7 +409,7 @@ def receive_metrics_v1_metrics_post_with_http_info( @validate_call - def receive_metrics_v1_metrics_post_without_preload_content( + def receive_metrics_otlp_v1_metrics_post_without_preload_content( self, _request_timeout: Union[ None, @@ -450,7 +450,7 @@ def receive_metrics_v1_metrics_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._receive_metrics_v1_metrics_post_serialize( + _param = self._receive_metrics_otlp_v1_metrics_post_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -467,7 +467,7 @@ def receive_metrics_v1_metrics_post_without_preload_content( return response_data.response - def _receive_metrics_v1_metrics_post_serialize( + def _receive_metrics_otlp_v1_metrics_post_serialize( self, _request_auth, _content_type, @@ -513,7 +513,7 @@ def _receive_metrics_v1_metrics_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/metrics', + resource_path='/otlp/v1/metrics', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -530,7 +530,7 @@ def _receive_metrics_v1_metrics_post_serialize( @validate_call - def receive_traces_v1_traces_post( + def receive_traces_otlp_v1_traces_post( self, _request_timeout: Union[ None, @@ -571,7 +571,7 @@ def receive_traces_v1_traces_post( :return: Returns the result object. """ # noqa: E501 - _param = self._receive_traces_v1_traces_post_serialize( + _param = self._receive_traces_otlp_v1_traces_post_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -593,7 +593,7 @@ def receive_traces_v1_traces_post( @validate_call - def receive_traces_v1_traces_post_with_http_info( + def receive_traces_otlp_v1_traces_post_with_http_info( self, _request_timeout: Union[ None, @@ -634,7 +634,7 @@ def receive_traces_v1_traces_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._receive_traces_v1_traces_post_serialize( + _param = self._receive_traces_otlp_v1_traces_post_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -656,7 +656,7 @@ def receive_traces_v1_traces_post_with_http_info( @validate_call - def receive_traces_v1_traces_post_without_preload_content( + def receive_traces_otlp_v1_traces_post_without_preload_content( self, _request_timeout: Union[ None, @@ -697,7 +697,7 @@ def receive_traces_v1_traces_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._receive_traces_v1_traces_post_serialize( + _param = self._receive_traces_otlp_v1_traces_post_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -714,7 +714,7 @@ def receive_traces_v1_traces_post_without_preload_content( return response_data.response - def _receive_traces_v1_traces_post_serialize( + def _receive_traces_otlp_v1_traces_post_serialize( self, _request_auth, _content_type, @@ -760,7 +760,7 @@ def _receive_traces_v1_traces_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/traces', + resource_path='/otlp/v1/traces', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/pricing_api.py b/src/otari/_client/api/pricing_api.py index 4a6bf1c..6b0327b 100644 --- a/src/otari/_client/api/pricing_api.py +++ b/src/otari/_client/api/pricing_api.py @@ -43,7 +43,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def confirm_pricing_refresh_v1_pricing_refresh_confirm_post( + def confirm_pricing_refresh_api_v1_pricing_refresh_confirm_post( self, _request_timeout: Union[ None, @@ -84,7 +84,7 @@ def confirm_pricing_refresh_v1_pricing_refresh_confirm_post( :return: Returns the result object. """ # noqa: E501 - _param = self._confirm_pricing_refresh_v1_pricing_refresh_confirm_post_serialize( + _param = self._confirm_pricing_refresh_api_v1_pricing_refresh_confirm_post_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -106,7 +106,7 @@ def confirm_pricing_refresh_v1_pricing_refresh_confirm_post( @validate_call - def confirm_pricing_refresh_v1_pricing_refresh_confirm_post_with_http_info( + def confirm_pricing_refresh_api_v1_pricing_refresh_confirm_post_with_http_info( self, _request_timeout: Union[ None, @@ -147,7 +147,7 @@ def confirm_pricing_refresh_v1_pricing_refresh_confirm_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._confirm_pricing_refresh_v1_pricing_refresh_confirm_post_serialize( + _param = self._confirm_pricing_refresh_api_v1_pricing_refresh_confirm_post_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -169,7 +169,7 @@ def confirm_pricing_refresh_v1_pricing_refresh_confirm_post_with_http_info( @validate_call - def confirm_pricing_refresh_v1_pricing_refresh_confirm_post_without_preload_content( + def confirm_pricing_refresh_api_v1_pricing_refresh_confirm_post_without_preload_content( self, _request_timeout: Union[ None, @@ -210,7 +210,7 @@ def confirm_pricing_refresh_v1_pricing_refresh_confirm_post_without_preload_cont :return: Returns the result object. """ # noqa: E501 - _param = self._confirm_pricing_refresh_v1_pricing_refresh_confirm_post_serialize( + _param = self._confirm_pricing_refresh_api_v1_pricing_refresh_confirm_post_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -227,7 +227,7 @@ def confirm_pricing_refresh_v1_pricing_refresh_confirm_post_without_preload_cont return response_data.response - def _confirm_pricing_refresh_v1_pricing_refresh_confirm_post_serialize( + def _confirm_pricing_refresh_api_v1_pricing_refresh_confirm_post_serialize( self, _request_auth, _content_type, @@ -273,7 +273,7 @@ def _confirm_pricing_refresh_v1_pricing_refresh_confirm_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/pricing/refresh/confirm', + resource_path='/api/v1/pricing/refresh/confirm', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -290,7 +290,7 @@ def _confirm_pricing_refresh_v1_pricing_refresh_confirm_post_serialize( @validate_call - def delete_pricing_v1_pricing_model_key_delete( + def delete_pricing_api_v1_pricing_model_key_delete( self, model_key: StrictStr, effective_at: Annotated[Optional[datetime], Field(description="ISO datetime identifying a specific pricing row to delete")] = None, @@ -337,7 +337,7 @@ def delete_pricing_v1_pricing_model_key_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_pricing_v1_pricing_model_key_delete_serialize( + _param = self._delete_pricing_api_v1_pricing_model_key_delete_serialize( model_key=model_key, effective_at=effective_at, _request_auth=_request_auth, @@ -362,7 +362,7 @@ def delete_pricing_v1_pricing_model_key_delete( @validate_call - def delete_pricing_v1_pricing_model_key_delete_with_http_info( + def delete_pricing_api_v1_pricing_model_key_delete_with_http_info( self, model_key: StrictStr, effective_at: Annotated[Optional[datetime], Field(description="ISO datetime identifying a specific pricing row to delete")] = None, @@ -409,7 +409,7 @@ def delete_pricing_v1_pricing_model_key_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_pricing_v1_pricing_model_key_delete_serialize( + _param = self._delete_pricing_api_v1_pricing_model_key_delete_serialize( model_key=model_key, effective_at=effective_at, _request_auth=_request_auth, @@ -434,7 +434,7 @@ def delete_pricing_v1_pricing_model_key_delete_with_http_info( @validate_call - def delete_pricing_v1_pricing_model_key_delete_without_preload_content( + def delete_pricing_api_v1_pricing_model_key_delete_without_preload_content( self, model_key: StrictStr, effective_at: Annotated[Optional[datetime], Field(description="ISO datetime identifying a specific pricing row to delete")] = None, @@ -481,7 +481,7 @@ def delete_pricing_v1_pricing_model_key_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_pricing_v1_pricing_model_key_delete_serialize( + _param = self._delete_pricing_api_v1_pricing_model_key_delete_serialize( model_key=model_key, effective_at=effective_at, _request_auth=_request_auth, @@ -501,7 +501,7 @@ def delete_pricing_v1_pricing_model_key_delete_without_preload_content( return response_data.response - def _delete_pricing_v1_pricing_model_key_delete_serialize( + def _delete_pricing_api_v1_pricing_model_key_delete_serialize( self, model_key, effective_at, @@ -564,7 +564,7 @@ def _delete_pricing_v1_pricing_model_key_delete_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/v1/pricing/{model_key}', + resource_path='/api/v1/pricing/{model_key}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -581,9 +581,10 @@ def _delete_pricing_v1_pricing_model_key_delete_serialize( @validate_call - def get_pricing_history_v1_pricing_model_key_history_get( + def get_pricing_api_v1_pricing_model_key_get( self, model_key: StrictStr, + as_of: Annotated[Optional[datetime], Field(description="ISO datetime for effective lookup")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -596,13 +597,15 @@ def get_pricing_history_v1_pricing_model_key_history_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[PricingResponse]: - """Get Pricing History + ) -> PricingResponse: + """Get Pricing - Return the full pricing history for a model. + Get pricing for a specific model as of a timestamp. :param model_key: (required) :type model_key: str + :param as_of: ISO datetime for effective lookup + :type as_of: datetime :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -625,8 +628,9 @@ def get_pricing_history_v1_pricing_model_key_history_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_pricing_history_v1_pricing_model_key_history_get_serialize( + _param = self._get_pricing_api_v1_pricing_model_key_get_serialize( model_key=model_key, + as_of=as_of, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -634,7 +638,7 @@ def get_pricing_history_v1_pricing_model_key_history_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[PricingResponse]", + '200': "PricingResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -649,9 +653,10 @@ def get_pricing_history_v1_pricing_model_key_history_get( @validate_call - def get_pricing_history_v1_pricing_model_key_history_get_with_http_info( + def get_pricing_api_v1_pricing_model_key_get_with_http_info( self, model_key: StrictStr, + as_of: Annotated[Optional[datetime], Field(description="ISO datetime for effective lookup")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -664,13 +669,15 @@ def get_pricing_history_v1_pricing_model_key_history_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[PricingResponse]]: - """Get Pricing History + ) -> ApiResponse[PricingResponse]: + """Get Pricing - Return the full pricing history for a model. + Get pricing for a specific model as of a timestamp. :param model_key: (required) :type model_key: str + :param as_of: ISO datetime for effective lookup + :type as_of: datetime :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -693,8 +700,9 @@ def get_pricing_history_v1_pricing_model_key_history_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_pricing_history_v1_pricing_model_key_history_get_serialize( + _param = self._get_pricing_api_v1_pricing_model_key_get_serialize( model_key=model_key, + as_of=as_of, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -702,7 +710,7 @@ def get_pricing_history_v1_pricing_model_key_history_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[PricingResponse]", + '200': "PricingResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -717,9 +725,10 @@ def get_pricing_history_v1_pricing_model_key_history_get_with_http_info( @validate_call - def get_pricing_history_v1_pricing_model_key_history_get_without_preload_content( + def get_pricing_api_v1_pricing_model_key_get_without_preload_content( self, model_key: StrictStr, + as_of: Annotated[Optional[datetime], Field(description="ISO datetime for effective lookup")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -733,12 +742,14 @@ def get_pricing_history_v1_pricing_model_key_history_get_without_preload_content _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get Pricing History + """Get Pricing - Return the full pricing history for a model. + Get pricing for a specific model as of a timestamp. :param model_key: (required) :type model_key: str + :param as_of: ISO datetime for effective lookup + :type as_of: datetime :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -761,8 +772,9 @@ def get_pricing_history_v1_pricing_model_key_history_get_without_preload_content :return: Returns the result object. """ # noqa: E501 - _param = self._get_pricing_history_v1_pricing_model_key_history_get_serialize( + _param = self._get_pricing_api_v1_pricing_model_key_get_serialize( model_key=model_key, + as_of=as_of, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -770,7 +782,7 @@ def get_pricing_history_v1_pricing_model_key_history_get_without_preload_content ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[PricingResponse]", + '200': "PricingResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -780,9 +792,10 @@ def get_pricing_history_v1_pricing_model_key_history_get_without_preload_content return response_data.response - def _get_pricing_history_v1_pricing_model_key_history_get_serialize( + def _get_pricing_api_v1_pricing_model_key_get_serialize( self, model_key, + as_of, _request_auth, _content_type, _headers, @@ -807,6 +820,19 @@ def _get_pricing_history_v1_pricing_model_key_history_get_serialize( if model_key is not None: _path_params['model_key'] = model_key # process the query parameters + if as_of is not None: + if isinstance(as_of, datetime): + _query_params.append( + ( + 'as_of', + as_of.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('as_of', as_of)) + # process the header parameters # process the form parameters # process the body parameter @@ -829,7 +855,7 @@ def _get_pricing_history_v1_pricing_model_key_history_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/pricing/{model_key}/history', + resource_path='/api/v1/pricing/{model_key}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -846,10 +872,9 @@ def _get_pricing_history_v1_pricing_model_key_history_get_serialize( @validate_call - def get_pricing_v1_pricing_model_key_get( + def get_pricing_history_api_v1_pricing_model_key_history_get( self, model_key: StrictStr, - as_of: Annotated[Optional[datetime], Field(description="ISO datetime for effective lookup")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -862,15 +887,13 @@ def get_pricing_v1_pricing_model_key_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PricingResponse: - """Get Pricing + ) -> List[PricingResponse]: + """Get Pricing History - Get pricing for a specific model as of a timestamp. + Return the full pricing history for a model. :param model_key: (required) :type model_key: str - :param as_of: ISO datetime for effective lookup - :type as_of: datetime :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -893,9 +916,8 @@ def get_pricing_v1_pricing_model_key_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_pricing_v1_pricing_model_key_get_serialize( + _param = self._get_pricing_history_api_v1_pricing_model_key_history_get_serialize( model_key=model_key, - as_of=as_of, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -903,7 +925,7 @@ def get_pricing_v1_pricing_model_key_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PricingResponse", + '200': "List[PricingResponse]", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -918,10 +940,9 @@ def get_pricing_v1_pricing_model_key_get( @validate_call - def get_pricing_v1_pricing_model_key_get_with_http_info( + def get_pricing_history_api_v1_pricing_model_key_history_get_with_http_info( self, model_key: StrictStr, - as_of: Annotated[Optional[datetime], Field(description="ISO datetime for effective lookup")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -934,15 +955,13 @@ def get_pricing_v1_pricing_model_key_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PricingResponse]: - """Get Pricing + ) -> ApiResponse[List[PricingResponse]]: + """Get Pricing History - Get pricing for a specific model as of a timestamp. + Return the full pricing history for a model. :param model_key: (required) :type model_key: str - :param as_of: ISO datetime for effective lookup - :type as_of: datetime :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -965,9 +984,8 @@ def get_pricing_v1_pricing_model_key_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_pricing_v1_pricing_model_key_get_serialize( + _param = self._get_pricing_history_api_v1_pricing_model_key_history_get_serialize( model_key=model_key, - as_of=as_of, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -975,7 +993,7 @@ def get_pricing_v1_pricing_model_key_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PricingResponse", + '200': "List[PricingResponse]", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -990,10 +1008,9 @@ def get_pricing_v1_pricing_model_key_get_with_http_info( @validate_call - def get_pricing_v1_pricing_model_key_get_without_preload_content( + def get_pricing_history_api_v1_pricing_model_key_history_get_without_preload_content( self, model_key: StrictStr, - as_of: Annotated[Optional[datetime], Field(description="ISO datetime for effective lookup")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1007,14 +1024,12 @@ def get_pricing_v1_pricing_model_key_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get Pricing + """Get Pricing History - Get pricing for a specific model as of a timestamp. + Return the full pricing history for a model. :param model_key: (required) :type model_key: str - :param as_of: ISO datetime for effective lookup - :type as_of: datetime :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1037,9 +1052,8 @@ def get_pricing_v1_pricing_model_key_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_pricing_v1_pricing_model_key_get_serialize( + _param = self._get_pricing_history_api_v1_pricing_model_key_history_get_serialize( model_key=model_key, - as_of=as_of, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1047,7 +1061,7 @@ def get_pricing_v1_pricing_model_key_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PricingResponse", + '200': "List[PricingResponse]", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -1057,10 +1071,9 @@ def get_pricing_v1_pricing_model_key_get_without_preload_content( return response_data.response - def _get_pricing_v1_pricing_model_key_get_serialize( + def _get_pricing_history_api_v1_pricing_model_key_history_get_serialize( self, model_key, - as_of, _request_auth, _content_type, _headers, @@ -1085,19 +1098,6 @@ def _get_pricing_v1_pricing_model_key_get_serialize( if model_key is not None: _path_params['model_key'] = model_key # process the query parameters - if as_of is not None: - if isinstance(as_of, datetime): - _query_params.append( - ( - 'as_of', - as_of.strftime( - self.api_client.configuration.datetime_format - ) - ) - ) - else: - _query_params.append(('as_of', as_of)) - # process the header parameters # process the form parameters # process the body parameter @@ -1120,7 +1120,7 @@ def _get_pricing_v1_pricing_model_key_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/pricing/{model_key}', + resource_path='/api/v1/pricing/{model_key}/history', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1137,7 +1137,7 @@ def _get_pricing_v1_pricing_model_key_get_serialize( @validate_call - def list_pricing_v1_pricing_get( + def list_pricing_api_v1_pricing_get( self, skip: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, limit: Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]] = None, @@ -1184,7 +1184,7 @@ def list_pricing_v1_pricing_get( :return: Returns the result object. """ # noqa: E501 - _param = self._list_pricing_v1_pricing_get_serialize( + _param = self._list_pricing_api_v1_pricing_get_serialize( skip=skip, limit=limit, _request_auth=_request_auth, @@ -1209,7 +1209,7 @@ def list_pricing_v1_pricing_get( @validate_call - def list_pricing_v1_pricing_get_with_http_info( + def list_pricing_api_v1_pricing_get_with_http_info( self, skip: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, limit: Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]] = None, @@ -1256,7 +1256,7 @@ def list_pricing_v1_pricing_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_pricing_v1_pricing_get_serialize( + _param = self._list_pricing_api_v1_pricing_get_serialize( skip=skip, limit=limit, _request_auth=_request_auth, @@ -1281,7 +1281,7 @@ def list_pricing_v1_pricing_get_with_http_info( @validate_call - def list_pricing_v1_pricing_get_without_preload_content( + def list_pricing_api_v1_pricing_get_without_preload_content( self, skip: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, limit: Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]] = None, @@ -1328,7 +1328,7 @@ def list_pricing_v1_pricing_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._list_pricing_v1_pricing_get_serialize( + _param = self._list_pricing_api_v1_pricing_get_serialize( skip=skip, limit=limit, _request_auth=_request_auth, @@ -1348,7 +1348,7 @@ def list_pricing_v1_pricing_get_without_preload_content( return response_data.response - def _list_pricing_v1_pricing_get_serialize( + def _list_pricing_api_v1_pricing_get_serialize( self, skip, limit, @@ -1404,7 +1404,7 @@ def _list_pricing_v1_pricing_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/pricing', + resource_path='/api/v1/pricing', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1421,7 +1421,7 @@ def _list_pricing_v1_pricing_get_serialize( @validate_call - def preview_pricing_refresh_v1_pricing_refresh_post( + def preview_pricing_refresh_api_v1_pricing_refresh_post( self, _request_timeout: Union[ None, @@ -1462,7 +1462,7 @@ def preview_pricing_refresh_v1_pricing_refresh_post( :return: Returns the result object. """ # noqa: E501 - _param = self._preview_pricing_refresh_v1_pricing_refresh_post_serialize( + _param = self._preview_pricing_refresh_api_v1_pricing_refresh_post_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1484,7 +1484,7 @@ def preview_pricing_refresh_v1_pricing_refresh_post( @validate_call - def preview_pricing_refresh_v1_pricing_refresh_post_with_http_info( + def preview_pricing_refresh_api_v1_pricing_refresh_post_with_http_info( self, _request_timeout: Union[ None, @@ -1525,7 +1525,7 @@ def preview_pricing_refresh_v1_pricing_refresh_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._preview_pricing_refresh_v1_pricing_refresh_post_serialize( + _param = self._preview_pricing_refresh_api_v1_pricing_refresh_post_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1547,7 +1547,7 @@ def preview_pricing_refresh_v1_pricing_refresh_post_with_http_info( @validate_call - def preview_pricing_refresh_v1_pricing_refresh_post_without_preload_content( + def preview_pricing_refresh_api_v1_pricing_refresh_post_without_preload_content( self, _request_timeout: Union[ None, @@ -1588,7 +1588,7 @@ def preview_pricing_refresh_v1_pricing_refresh_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._preview_pricing_refresh_v1_pricing_refresh_post_serialize( + _param = self._preview_pricing_refresh_api_v1_pricing_refresh_post_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1605,7 +1605,7 @@ def preview_pricing_refresh_v1_pricing_refresh_post_without_preload_content( return response_data.response - def _preview_pricing_refresh_v1_pricing_refresh_post_serialize( + def _preview_pricing_refresh_api_v1_pricing_refresh_post_serialize( self, _request_auth, _content_type, @@ -1651,7 +1651,7 @@ def _preview_pricing_refresh_v1_pricing_refresh_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/pricing/refresh', + resource_path='/api/v1/pricing/refresh', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1668,7 +1668,7 @@ def _preview_pricing_refresh_v1_pricing_refresh_post_serialize( @validate_call - def reject_pricing_refresh_v1_pricing_refresh_reject_post( + def reject_pricing_refresh_api_v1_pricing_refresh_reject_post( self, _request_timeout: Union[ None, @@ -1709,7 +1709,7 @@ def reject_pricing_refresh_v1_pricing_refresh_reject_post( :return: Returns the result object. """ # noqa: E501 - _param = self._reject_pricing_refresh_v1_pricing_refresh_reject_post_serialize( + _param = self._reject_pricing_refresh_api_v1_pricing_refresh_reject_post_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1731,7 +1731,7 @@ def reject_pricing_refresh_v1_pricing_refresh_reject_post( @validate_call - def reject_pricing_refresh_v1_pricing_refresh_reject_post_with_http_info( + def reject_pricing_refresh_api_v1_pricing_refresh_reject_post_with_http_info( self, _request_timeout: Union[ None, @@ -1772,7 +1772,7 @@ def reject_pricing_refresh_v1_pricing_refresh_reject_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._reject_pricing_refresh_v1_pricing_refresh_reject_post_serialize( + _param = self._reject_pricing_refresh_api_v1_pricing_refresh_reject_post_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1794,7 +1794,7 @@ def reject_pricing_refresh_v1_pricing_refresh_reject_post_with_http_info( @validate_call - def reject_pricing_refresh_v1_pricing_refresh_reject_post_without_preload_content( + def reject_pricing_refresh_api_v1_pricing_refresh_reject_post_without_preload_content( self, _request_timeout: Union[ None, @@ -1835,7 +1835,7 @@ def reject_pricing_refresh_v1_pricing_refresh_reject_post_without_preload_conten :return: Returns the result object. """ # noqa: E501 - _param = self._reject_pricing_refresh_v1_pricing_refresh_reject_post_serialize( + _param = self._reject_pricing_refresh_api_v1_pricing_refresh_reject_post_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1852,7 +1852,7 @@ def reject_pricing_refresh_v1_pricing_refresh_reject_post_without_preload_conten return response_data.response - def _reject_pricing_refresh_v1_pricing_refresh_reject_post_serialize( + def _reject_pricing_refresh_api_v1_pricing_refresh_reject_post_serialize( self, _request_auth, _content_type, @@ -1891,7 +1891,7 @@ def _reject_pricing_refresh_v1_pricing_refresh_reject_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/pricing/refresh/reject', + resource_path='/api/v1/pricing/refresh/reject', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1908,7 +1908,7 @@ def _reject_pricing_refresh_v1_pricing_refresh_reject_post_serialize( @validate_call - def set_pricing_v1_pricing_post( + def set_pricing_api_v1_pricing_post( self, set_pricing_request: SetPricingRequest, _request_timeout: Union[ @@ -1952,7 +1952,7 @@ def set_pricing_v1_pricing_post( :return: Returns the result object. """ # noqa: E501 - _param = self._set_pricing_v1_pricing_post_serialize( + _param = self._set_pricing_api_v1_pricing_post_serialize( set_pricing_request=set_pricing_request, _request_auth=_request_auth, _content_type=_content_type, @@ -1976,7 +1976,7 @@ def set_pricing_v1_pricing_post( @validate_call - def set_pricing_v1_pricing_post_with_http_info( + def set_pricing_api_v1_pricing_post_with_http_info( self, set_pricing_request: SetPricingRequest, _request_timeout: Union[ @@ -2020,7 +2020,7 @@ def set_pricing_v1_pricing_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._set_pricing_v1_pricing_post_serialize( + _param = self._set_pricing_api_v1_pricing_post_serialize( set_pricing_request=set_pricing_request, _request_auth=_request_auth, _content_type=_content_type, @@ -2044,7 +2044,7 @@ def set_pricing_v1_pricing_post_with_http_info( @validate_call - def set_pricing_v1_pricing_post_without_preload_content( + def set_pricing_api_v1_pricing_post_without_preload_content( self, set_pricing_request: SetPricingRequest, _request_timeout: Union[ @@ -2088,7 +2088,7 @@ def set_pricing_v1_pricing_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._set_pricing_v1_pricing_post_serialize( + _param = self._set_pricing_api_v1_pricing_post_serialize( set_pricing_request=set_pricing_request, _request_auth=_request_auth, _content_type=_content_type, @@ -2107,7 +2107,7 @@ def set_pricing_v1_pricing_post_without_preload_content( return response_data.response - def _set_pricing_v1_pricing_post_serialize( + def _set_pricing_api_v1_pricing_post_serialize( self, set_pricing_request, _request_auth, @@ -2169,7 +2169,7 @@ def _set_pricing_v1_pricing_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/pricing', + resource_path='/api/v1/pricing', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/provider_keys_api.py b/src/otari/_client/api/provider_keys_api.py index ab946d8..cc066df 100644 --- a/src/otari/_client/api/provider_keys_api.py +++ b/src/otari/_client/api/provider_keys_api.py @@ -49,7 +49,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def add_workspace_provider_key_model_restriction_v1_workspaces_workspace_id_provider_keys_key_id_models_post( + def add_workspace_provider_key_model_restriction_api_v1_workspaces_workspace_id_provider_keys_key_id_models_post( self, workspace_id: UUID, key_id: UUID, @@ -99,7 +99,7 @@ def add_workspace_provider_key_model_restriction_v1_workspaces_workspace_id_prov :return: Returns the result object. """ # noqa: E501 - _param = self._add_workspace_provider_key_model_restriction_v1_workspaces_workspace_id_provider_keys_key_id_models_post_serialize( + _param = self._add_workspace_provider_key_model_restriction_api_v1_workspaces_workspace_id_provider_keys_key_id_models_post_serialize( workspace_id=workspace_id, key_id=key_id, workspace_provider_model_restriction_request=workspace_provider_model_restriction_request, @@ -125,7 +125,7 @@ def add_workspace_provider_key_model_restriction_v1_workspaces_workspace_id_prov @validate_call - def add_workspace_provider_key_model_restriction_v1_workspaces_workspace_id_provider_keys_key_id_models_post_with_http_info( + def add_workspace_provider_key_model_restriction_api_v1_workspaces_workspace_id_provider_keys_key_id_models_post_with_http_info( self, workspace_id: UUID, key_id: UUID, @@ -175,7 +175,7 @@ def add_workspace_provider_key_model_restriction_v1_workspaces_workspace_id_prov :return: Returns the result object. """ # noqa: E501 - _param = self._add_workspace_provider_key_model_restriction_v1_workspaces_workspace_id_provider_keys_key_id_models_post_serialize( + _param = self._add_workspace_provider_key_model_restriction_api_v1_workspaces_workspace_id_provider_keys_key_id_models_post_serialize( workspace_id=workspace_id, key_id=key_id, workspace_provider_model_restriction_request=workspace_provider_model_restriction_request, @@ -201,7 +201,7 @@ def add_workspace_provider_key_model_restriction_v1_workspaces_workspace_id_prov @validate_call - def add_workspace_provider_key_model_restriction_v1_workspaces_workspace_id_provider_keys_key_id_models_post_without_preload_content( + def add_workspace_provider_key_model_restriction_api_v1_workspaces_workspace_id_provider_keys_key_id_models_post_without_preload_content( self, workspace_id: UUID, key_id: UUID, @@ -251,7 +251,7 @@ def add_workspace_provider_key_model_restriction_v1_workspaces_workspace_id_prov :return: Returns the result object. """ # noqa: E501 - _param = self._add_workspace_provider_key_model_restriction_v1_workspaces_workspace_id_provider_keys_key_id_models_post_serialize( + _param = self._add_workspace_provider_key_model_restriction_api_v1_workspaces_workspace_id_provider_keys_key_id_models_post_serialize( workspace_id=workspace_id, key_id=key_id, workspace_provider_model_restriction_request=workspace_provider_model_restriction_request, @@ -272,7 +272,7 @@ def add_workspace_provider_key_model_restriction_v1_workspaces_workspace_id_prov return response_data.response - def _add_workspace_provider_key_model_restriction_v1_workspaces_workspace_id_provider_keys_key_id_models_post_serialize( + def _add_workspace_provider_key_model_restriction_api_v1_workspaces_workspace_id_provider_keys_key_id_models_post_serialize( self, workspace_id, key_id, @@ -340,7 +340,7 @@ def _add_workspace_provider_key_model_restriction_v1_workspaces_workspace_id_pro return self.api_client.param_serialize( method='POST', - resource_path='/v1/workspaces/{workspace_id}/provider-keys/{key_id}/models', + resource_path='/api/v1/workspaces/{workspace_id}/provider-keys/{key_id}/models', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -357,7 +357,7 @@ def _add_workspace_provider_key_model_restriction_v1_workspaces_workspace_id_pro @validate_call - def archive_org_provider_key_v1_organizations_me_provider_keys_key_id_archive_post( + def archive_org_provider_key_api_v1_organizations_me_provider_keys_key_id_archive_post( self, key_id: UUID, _request_timeout: Union[ @@ -401,7 +401,7 @@ def archive_org_provider_key_v1_organizations_me_provider_keys_key_id_archive_po :return: Returns the result object. """ # noqa: E501 - _param = self._archive_org_provider_key_v1_organizations_me_provider_keys_key_id_archive_post_serialize( + _param = self._archive_org_provider_key_api_v1_organizations_me_provider_keys_key_id_archive_post_serialize( key_id=key_id, _request_auth=_request_auth, _content_type=_content_type, @@ -425,7 +425,7 @@ def archive_org_provider_key_v1_organizations_me_provider_keys_key_id_archive_po @validate_call - def archive_org_provider_key_v1_organizations_me_provider_keys_key_id_archive_post_with_http_info( + def archive_org_provider_key_api_v1_organizations_me_provider_keys_key_id_archive_post_with_http_info( self, key_id: UUID, _request_timeout: Union[ @@ -469,7 +469,7 @@ def archive_org_provider_key_v1_organizations_me_provider_keys_key_id_archive_po :return: Returns the result object. """ # noqa: E501 - _param = self._archive_org_provider_key_v1_organizations_me_provider_keys_key_id_archive_post_serialize( + _param = self._archive_org_provider_key_api_v1_organizations_me_provider_keys_key_id_archive_post_serialize( key_id=key_id, _request_auth=_request_auth, _content_type=_content_type, @@ -493,7 +493,7 @@ def archive_org_provider_key_v1_organizations_me_provider_keys_key_id_archive_po @validate_call - def archive_org_provider_key_v1_organizations_me_provider_keys_key_id_archive_post_without_preload_content( + def archive_org_provider_key_api_v1_organizations_me_provider_keys_key_id_archive_post_without_preload_content( self, key_id: UUID, _request_timeout: Union[ @@ -537,7 +537,7 @@ def archive_org_provider_key_v1_organizations_me_provider_keys_key_id_archive_po :return: Returns the result object. """ # noqa: E501 - _param = self._archive_org_provider_key_v1_organizations_me_provider_keys_key_id_archive_post_serialize( + _param = self._archive_org_provider_key_api_v1_organizations_me_provider_keys_key_id_archive_post_serialize( key_id=key_id, _request_auth=_request_auth, _content_type=_content_type, @@ -556,7 +556,7 @@ def archive_org_provider_key_v1_organizations_me_provider_keys_key_id_archive_po return response_data.response - def _archive_org_provider_key_v1_organizations_me_provider_keys_key_id_archive_post_serialize( + def _archive_org_provider_key_api_v1_organizations_me_provider_keys_key_id_archive_post_serialize( self, key_id, _request_auth, @@ -605,7 +605,7 @@ def _archive_org_provider_key_v1_organizations_me_provider_keys_key_id_archive_p return self.api_client.param_serialize( method='POST', - resource_path='/v1/organizations/me/provider-keys/{key_id}/archive', + resource_path='/api/v1/organizations/me/provider-keys/{key_id}/archive', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -622,7 +622,7 @@ def _archive_org_provider_key_v1_organizations_me_provider_keys_key_id_archive_p @validate_call - def create_org_provider_key_v1_organizations_me_provider_keys_post( + def create_org_provider_key_api_v1_organizations_me_provider_keys_post( self, org_provider_key_create_request: OrgProviderKeyCreateRequest, _request_timeout: Union[ @@ -666,7 +666,7 @@ def create_org_provider_key_v1_organizations_me_provider_keys_post( :return: Returns the result object. """ # noqa: E501 - _param = self._create_org_provider_key_v1_organizations_me_provider_keys_post_serialize( + _param = self._create_org_provider_key_api_v1_organizations_me_provider_keys_post_serialize( org_provider_key_create_request=org_provider_key_create_request, _request_auth=_request_auth, _content_type=_content_type, @@ -690,7 +690,7 @@ def create_org_provider_key_v1_organizations_me_provider_keys_post( @validate_call - def create_org_provider_key_v1_organizations_me_provider_keys_post_with_http_info( + def create_org_provider_key_api_v1_organizations_me_provider_keys_post_with_http_info( self, org_provider_key_create_request: OrgProviderKeyCreateRequest, _request_timeout: Union[ @@ -734,7 +734,7 @@ def create_org_provider_key_v1_organizations_me_provider_keys_post_with_http_inf :return: Returns the result object. """ # noqa: E501 - _param = self._create_org_provider_key_v1_organizations_me_provider_keys_post_serialize( + _param = self._create_org_provider_key_api_v1_organizations_me_provider_keys_post_serialize( org_provider_key_create_request=org_provider_key_create_request, _request_auth=_request_auth, _content_type=_content_type, @@ -758,7 +758,7 @@ def create_org_provider_key_v1_organizations_me_provider_keys_post_with_http_inf @validate_call - def create_org_provider_key_v1_organizations_me_provider_keys_post_without_preload_content( + def create_org_provider_key_api_v1_organizations_me_provider_keys_post_without_preload_content( self, org_provider_key_create_request: OrgProviderKeyCreateRequest, _request_timeout: Union[ @@ -802,7 +802,7 @@ def create_org_provider_key_v1_organizations_me_provider_keys_post_without_prelo :return: Returns the result object. """ # noqa: E501 - _param = self._create_org_provider_key_v1_organizations_me_provider_keys_post_serialize( + _param = self._create_org_provider_key_api_v1_organizations_me_provider_keys_post_serialize( org_provider_key_create_request=org_provider_key_create_request, _request_auth=_request_auth, _content_type=_content_type, @@ -821,7 +821,7 @@ def create_org_provider_key_v1_organizations_me_provider_keys_post_without_prelo return response_data.response - def _create_org_provider_key_v1_organizations_me_provider_keys_post_serialize( + def _create_org_provider_key_api_v1_organizations_me_provider_keys_post_serialize( self, org_provider_key_create_request, _request_auth, @@ -883,7 +883,7 @@ def _create_org_provider_key_v1_organizations_me_provider_keys_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/organizations/me/provider-keys', + resource_path='/api/v1/organizations/me/provider-keys', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -900,7 +900,7 @@ def _create_org_provider_key_v1_organizations_me_provider_keys_post_serialize( @validate_call - def delete_org_provider_key_v1_organizations_me_provider_keys_key_id_delete( + def delete_org_provider_key_api_v1_organizations_me_provider_keys_key_id_delete( self, key_id: UUID, _request_timeout: Union[ @@ -944,7 +944,7 @@ def delete_org_provider_key_v1_organizations_me_provider_keys_key_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_org_provider_key_v1_organizations_me_provider_keys_key_id_delete_serialize( + _param = self._delete_org_provider_key_api_v1_organizations_me_provider_keys_key_id_delete_serialize( key_id=key_id, _request_auth=_request_auth, _content_type=_content_type, @@ -968,7 +968,7 @@ def delete_org_provider_key_v1_organizations_me_provider_keys_key_id_delete( @validate_call - def delete_org_provider_key_v1_organizations_me_provider_keys_key_id_delete_with_http_info( + def delete_org_provider_key_api_v1_organizations_me_provider_keys_key_id_delete_with_http_info( self, key_id: UUID, _request_timeout: Union[ @@ -1012,7 +1012,7 @@ def delete_org_provider_key_v1_organizations_me_provider_keys_key_id_delete_with :return: Returns the result object. """ # noqa: E501 - _param = self._delete_org_provider_key_v1_organizations_me_provider_keys_key_id_delete_serialize( + _param = self._delete_org_provider_key_api_v1_organizations_me_provider_keys_key_id_delete_serialize( key_id=key_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1036,7 +1036,7 @@ def delete_org_provider_key_v1_organizations_me_provider_keys_key_id_delete_with @validate_call - def delete_org_provider_key_v1_organizations_me_provider_keys_key_id_delete_without_preload_content( + def delete_org_provider_key_api_v1_organizations_me_provider_keys_key_id_delete_without_preload_content( self, key_id: UUID, _request_timeout: Union[ @@ -1080,7 +1080,7 @@ def delete_org_provider_key_v1_organizations_me_provider_keys_key_id_delete_with :return: Returns the result object. """ # noqa: E501 - _param = self._delete_org_provider_key_v1_organizations_me_provider_keys_key_id_delete_serialize( + _param = self._delete_org_provider_key_api_v1_organizations_me_provider_keys_key_id_delete_serialize( key_id=key_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1099,7 +1099,7 @@ def delete_org_provider_key_v1_organizations_me_provider_keys_key_id_delete_with return response_data.response - def _delete_org_provider_key_v1_organizations_me_provider_keys_key_id_delete_serialize( + def _delete_org_provider_key_api_v1_organizations_me_provider_keys_key_id_delete_serialize( self, key_id, _request_auth, @@ -1148,7 +1148,7 @@ def _delete_org_provider_key_v1_organizations_me_provider_keys_key_id_delete_ser return self.api_client.param_serialize( method='DELETE', - resource_path='/v1/organizations/me/provider-keys/{key_id}', + resource_path='/api/v1/organizations/me/provider-keys/{key_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1165,7 +1165,7 @@ def _delete_org_provider_key_v1_organizations_me_provider_keys_key_id_delete_ser @validate_call - def list_org_provider_keys_v1_organizations_me_provider_keys_get( + def list_org_provider_keys_api_v1_organizations_me_provider_keys_get( self, include_archived: Annotated[Optional[StrictBool], Field(description="Include archived keys.")] = None, skip: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of records to skip")] = None, @@ -1215,7 +1215,7 @@ def list_org_provider_keys_v1_organizations_me_provider_keys_get( :return: Returns the result object. """ # noqa: E501 - _param = self._list_org_provider_keys_v1_organizations_me_provider_keys_get_serialize( + _param = self._list_org_provider_keys_api_v1_organizations_me_provider_keys_get_serialize( include_archived=include_archived, skip=skip, limit=limit, @@ -1241,7 +1241,7 @@ def list_org_provider_keys_v1_organizations_me_provider_keys_get( @validate_call - def list_org_provider_keys_v1_organizations_me_provider_keys_get_with_http_info( + def list_org_provider_keys_api_v1_organizations_me_provider_keys_get_with_http_info( self, include_archived: Annotated[Optional[StrictBool], Field(description="Include archived keys.")] = None, skip: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of records to skip")] = None, @@ -1291,7 +1291,7 @@ def list_org_provider_keys_v1_organizations_me_provider_keys_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_org_provider_keys_v1_organizations_me_provider_keys_get_serialize( + _param = self._list_org_provider_keys_api_v1_organizations_me_provider_keys_get_serialize( include_archived=include_archived, skip=skip, limit=limit, @@ -1317,7 +1317,7 @@ def list_org_provider_keys_v1_organizations_me_provider_keys_get_with_http_info( @validate_call - def list_org_provider_keys_v1_organizations_me_provider_keys_get_without_preload_content( + def list_org_provider_keys_api_v1_organizations_me_provider_keys_get_without_preload_content( self, include_archived: Annotated[Optional[StrictBool], Field(description="Include archived keys.")] = None, skip: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of records to skip")] = None, @@ -1367,7 +1367,7 @@ def list_org_provider_keys_v1_organizations_me_provider_keys_get_without_preload :return: Returns the result object. """ # noqa: E501 - _param = self._list_org_provider_keys_v1_organizations_me_provider_keys_get_serialize( + _param = self._list_org_provider_keys_api_v1_organizations_me_provider_keys_get_serialize( include_archived=include_archived, skip=skip, limit=limit, @@ -1388,7 +1388,7 @@ def list_org_provider_keys_v1_organizations_me_provider_keys_get_without_preload return response_data.response - def _list_org_provider_keys_v1_organizations_me_provider_keys_get_serialize( + def _list_org_provider_keys_api_v1_organizations_me_provider_keys_get_serialize( self, include_archived, skip, @@ -1449,7 +1449,7 @@ def _list_org_provider_keys_v1_organizations_me_provider_keys_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/organizations/me/provider-keys', + resource_path='/api/v1/organizations/me/provider-keys', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1466,7 +1466,7 @@ def _list_org_provider_keys_v1_organizations_me_provider_keys_get_serialize( @validate_call - def list_workspace_provider_key_model_restrictions_v1_workspaces_workspace_id_provider_keys_key_id_models_get( + def list_workspace_provider_key_model_restrictions_api_v1_workspaces_workspace_id_provider_keys_key_id_models_get( self, workspace_id: UUID, key_id: UUID, @@ -1513,7 +1513,7 @@ def list_workspace_provider_key_model_restrictions_v1_workspaces_workspace_id_pr :return: Returns the result object. """ # noqa: E501 - _param = self._list_workspace_provider_key_model_restrictions_v1_workspaces_workspace_id_provider_keys_key_id_models_get_serialize( + _param = self._list_workspace_provider_key_model_restrictions_api_v1_workspaces_workspace_id_provider_keys_key_id_models_get_serialize( workspace_id=workspace_id, key_id=key_id, _request_auth=_request_auth, @@ -1538,7 +1538,7 @@ def list_workspace_provider_key_model_restrictions_v1_workspaces_workspace_id_pr @validate_call - def list_workspace_provider_key_model_restrictions_v1_workspaces_workspace_id_provider_keys_key_id_models_get_with_http_info( + def list_workspace_provider_key_model_restrictions_api_v1_workspaces_workspace_id_provider_keys_key_id_models_get_with_http_info( self, workspace_id: UUID, key_id: UUID, @@ -1585,7 +1585,7 @@ def list_workspace_provider_key_model_restrictions_v1_workspaces_workspace_id_pr :return: Returns the result object. """ # noqa: E501 - _param = self._list_workspace_provider_key_model_restrictions_v1_workspaces_workspace_id_provider_keys_key_id_models_get_serialize( + _param = self._list_workspace_provider_key_model_restrictions_api_v1_workspaces_workspace_id_provider_keys_key_id_models_get_serialize( workspace_id=workspace_id, key_id=key_id, _request_auth=_request_auth, @@ -1610,7 +1610,7 @@ def list_workspace_provider_key_model_restrictions_v1_workspaces_workspace_id_pr @validate_call - def list_workspace_provider_key_model_restrictions_v1_workspaces_workspace_id_provider_keys_key_id_models_get_without_preload_content( + def list_workspace_provider_key_model_restrictions_api_v1_workspaces_workspace_id_provider_keys_key_id_models_get_without_preload_content( self, workspace_id: UUID, key_id: UUID, @@ -1657,7 +1657,7 @@ def list_workspace_provider_key_model_restrictions_v1_workspaces_workspace_id_pr :return: Returns the result object. """ # noqa: E501 - _param = self._list_workspace_provider_key_model_restrictions_v1_workspaces_workspace_id_provider_keys_key_id_models_get_serialize( + _param = self._list_workspace_provider_key_model_restrictions_api_v1_workspaces_workspace_id_provider_keys_key_id_models_get_serialize( workspace_id=workspace_id, key_id=key_id, _request_auth=_request_auth, @@ -1677,7 +1677,7 @@ def list_workspace_provider_key_model_restrictions_v1_workspaces_workspace_id_pr return response_data.response - def _list_workspace_provider_key_model_restrictions_v1_workspaces_workspace_id_provider_keys_key_id_models_get_serialize( + def _list_workspace_provider_key_model_restrictions_api_v1_workspaces_workspace_id_provider_keys_key_id_models_get_serialize( self, workspace_id, key_id, @@ -1729,7 +1729,7 @@ def _list_workspace_provider_key_model_restrictions_v1_workspaces_workspace_id_p return self.api_client.param_serialize( method='GET', - resource_path='/v1/workspaces/{workspace_id}/provider-keys/{key_id}/models', + resource_path='/api/v1/workspaces/{workspace_id}/provider-keys/{key_id}/models', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1746,7 +1746,7 @@ def _list_workspace_provider_key_model_restrictions_v1_workspaces_workspace_id_p @validate_call - def list_workspace_provider_keys_v1_workspaces_workspace_id_provider_keys_get( + def list_workspace_provider_keys_api_v1_workspaces_workspace_id_provider_keys_get( self, workspace_id: UUID, _request_timeout: Union[ @@ -1790,7 +1790,7 @@ def list_workspace_provider_keys_v1_workspaces_workspace_id_provider_keys_get( :return: Returns the result object. """ # noqa: E501 - _param = self._list_workspace_provider_keys_v1_workspaces_workspace_id_provider_keys_get_serialize( + _param = self._list_workspace_provider_keys_api_v1_workspaces_workspace_id_provider_keys_get_serialize( workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1814,7 +1814,7 @@ def list_workspace_provider_keys_v1_workspaces_workspace_id_provider_keys_get( @validate_call - def list_workspace_provider_keys_v1_workspaces_workspace_id_provider_keys_get_with_http_info( + def list_workspace_provider_keys_api_v1_workspaces_workspace_id_provider_keys_get_with_http_info( self, workspace_id: UUID, _request_timeout: Union[ @@ -1858,7 +1858,7 @@ def list_workspace_provider_keys_v1_workspaces_workspace_id_provider_keys_get_wi :return: Returns the result object. """ # noqa: E501 - _param = self._list_workspace_provider_keys_v1_workspaces_workspace_id_provider_keys_get_serialize( + _param = self._list_workspace_provider_keys_api_v1_workspaces_workspace_id_provider_keys_get_serialize( workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1882,7 +1882,7 @@ def list_workspace_provider_keys_v1_workspaces_workspace_id_provider_keys_get_wi @validate_call - def list_workspace_provider_keys_v1_workspaces_workspace_id_provider_keys_get_without_preload_content( + def list_workspace_provider_keys_api_v1_workspaces_workspace_id_provider_keys_get_without_preload_content( self, workspace_id: UUID, _request_timeout: Union[ @@ -1926,7 +1926,7 @@ def list_workspace_provider_keys_v1_workspaces_workspace_id_provider_keys_get_wi :return: Returns the result object. """ # noqa: E501 - _param = self._list_workspace_provider_keys_v1_workspaces_workspace_id_provider_keys_get_serialize( + _param = self._list_workspace_provider_keys_api_v1_workspaces_workspace_id_provider_keys_get_serialize( workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1945,7 +1945,7 @@ def list_workspace_provider_keys_v1_workspaces_workspace_id_provider_keys_get_wi return response_data.response - def _list_workspace_provider_keys_v1_workspaces_workspace_id_provider_keys_get_serialize( + def _list_workspace_provider_keys_api_v1_workspaces_workspace_id_provider_keys_get_serialize( self, workspace_id, _request_auth, @@ -1994,7 +1994,7 @@ def _list_workspace_provider_keys_v1_workspaces_workspace_id_provider_keys_get_s return self.api_client.param_serialize( method='GET', - resource_path='/v1/workspaces/{workspace_id}/provider-keys', + resource_path='/api/v1/workspaces/{workspace_id}/provider-keys', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2011,7 +2011,7 @@ def _list_workspace_provider_keys_v1_workspaces_workspace_id_provider_keys_get_s @validate_call - def remove_workspace_provider_key_model_restriction_v1_workspaces_workspace_id_provider_keys_key_id_models_model_delete( + def remove_workspace_provider_key_model_restriction_api_v1_workspaces_workspace_id_provider_keys_key_id_models_model_delete( self, workspace_id: UUID, key_id: UUID, @@ -2061,7 +2061,7 @@ def remove_workspace_provider_key_model_restriction_v1_workspaces_workspace_id_p :return: Returns the result object. """ # noqa: E501 - _param = self._remove_workspace_provider_key_model_restriction_v1_workspaces_workspace_id_provider_keys_key_id_models_model_delete_serialize( + _param = self._remove_workspace_provider_key_model_restriction_api_v1_workspaces_workspace_id_provider_keys_key_id_models_model_delete_serialize( workspace_id=workspace_id, key_id=key_id, model=model, @@ -2087,7 +2087,7 @@ def remove_workspace_provider_key_model_restriction_v1_workspaces_workspace_id_p @validate_call - def remove_workspace_provider_key_model_restriction_v1_workspaces_workspace_id_provider_keys_key_id_models_model_delete_with_http_info( + def remove_workspace_provider_key_model_restriction_api_v1_workspaces_workspace_id_provider_keys_key_id_models_model_delete_with_http_info( self, workspace_id: UUID, key_id: UUID, @@ -2137,7 +2137,7 @@ def remove_workspace_provider_key_model_restriction_v1_workspaces_workspace_id_p :return: Returns the result object. """ # noqa: E501 - _param = self._remove_workspace_provider_key_model_restriction_v1_workspaces_workspace_id_provider_keys_key_id_models_model_delete_serialize( + _param = self._remove_workspace_provider_key_model_restriction_api_v1_workspaces_workspace_id_provider_keys_key_id_models_model_delete_serialize( workspace_id=workspace_id, key_id=key_id, model=model, @@ -2163,7 +2163,7 @@ def remove_workspace_provider_key_model_restriction_v1_workspaces_workspace_id_p @validate_call - def remove_workspace_provider_key_model_restriction_v1_workspaces_workspace_id_provider_keys_key_id_models_model_delete_without_preload_content( + def remove_workspace_provider_key_model_restriction_api_v1_workspaces_workspace_id_provider_keys_key_id_models_model_delete_without_preload_content( self, workspace_id: UUID, key_id: UUID, @@ -2213,7 +2213,7 @@ def remove_workspace_provider_key_model_restriction_v1_workspaces_workspace_id_p :return: Returns the result object. """ # noqa: E501 - _param = self._remove_workspace_provider_key_model_restriction_v1_workspaces_workspace_id_provider_keys_key_id_models_model_delete_serialize( + _param = self._remove_workspace_provider_key_model_restriction_api_v1_workspaces_workspace_id_provider_keys_key_id_models_model_delete_serialize( workspace_id=workspace_id, key_id=key_id, model=model, @@ -2234,7 +2234,7 @@ def remove_workspace_provider_key_model_restriction_v1_workspaces_workspace_id_p return response_data.response - def _remove_workspace_provider_key_model_restriction_v1_workspaces_workspace_id_provider_keys_key_id_models_model_delete_serialize( + def _remove_workspace_provider_key_model_restriction_api_v1_workspaces_workspace_id_provider_keys_key_id_models_model_delete_serialize( self, workspace_id, key_id, @@ -2289,7 +2289,7 @@ def _remove_workspace_provider_key_model_restriction_v1_workspaces_workspace_id_ return self.api_client.param_serialize( method='DELETE', - resource_path='/v1/workspaces/{workspace_id}/provider-keys/{key_id}/models/{model}', + resource_path='/api/v1/workspaces/{workspace_id}/provider-keys/{key_id}/models/{model}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2306,7 +2306,7 @@ def _remove_workspace_provider_key_model_restriction_v1_workspaces_workspace_id_ @validate_call - def reset_workspace_provider_key_override_v1_workspaces_workspace_id_provider_keys_key_id_delete( + def reset_workspace_provider_key_override_api_v1_workspaces_workspace_id_provider_keys_key_id_delete( self, workspace_id: UUID, key_id: UUID, @@ -2353,7 +2353,7 @@ def reset_workspace_provider_key_override_v1_workspaces_workspace_id_provider_ke :return: Returns the result object. """ # noqa: E501 - _param = self._reset_workspace_provider_key_override_v1_workspaces_workspace_id_provider_keys_key_id_delete_serialize( + _param = self._reset_workspace_provider_key_override_api_v1_workspaces_workspace_id_provider_keys_key_id_delete_serialize( workspace_id=workspace_id, key_id=key_id, _request_auth=_request_auth, @@ -2378,7 +2378,7 @@ def reset_workspace_provider_key_override_v1_workspaces_workspace_id_provider_ke @validate_call - def reset_workspace_provider_key_override_v1_workspaces_workspace_id_provider_keys_key_id_delete_with_http_info( + def reset_workspace_provider_key_override_api_v1_workspaces_workspace_id_provider_keys_key_id_delete_with_http_info( self, workspace_id: UUID, key_id: UUID, @@ -2425,7 +2425,7 @@ def reset_workspace_provider_key_override_v1_workspaces_workspace_id_provider_ke :return: Returns the result object. """ # noqa: E501 - _param = self._reset_workspace_provider_key_override_v1_workspaces_workspace_id_provider_keys_key_id_delete_serialize( + _param = self._reset_workspace_provider_key_override_api_v1_workspaces_workspace_id_provider_keys_key_id_delete_serialize( workspace_id=workspace_id, key_id=key_id, _request_auth=_request_auth, @@ -2450,7 +2450,7 @@ def reset_workspace_provider_key_override_v1_workspaces_workspace_id_provider_ke @validate_call - def reset_workspace_provider_key_override_v1_workspaces_workspace_id_provider_keys_key_id_delete_without_preload_content( + def reset_workspace_provider_key_override_api_v1_workspaces_workspace_id_provider_keys_key_id_delete_without_preload_content( self, workspace_id: UUID, key_id: UUID, @@ -2497,7 +2497,7 @@ def reset_workspace_provider_key_override_v1_workspaces_workspace_id_provider_ke :return: Returns the result object. """ # noqa: E501 - _param = self._reset_workspace_provider_key_override_v1_workspaces_workspace_id_provider_keys_key_id_delete_serialize( + _param = self._reset_workspace_provider_key_override_api_v1_workspaces_workspace_id_provider_keys_key_id_delete_serialize( workspace_id=workspace_id, key_id=key_id, _request_auth=_request_auth, @@ -2517,7 +2517,7 @@ def reset_workspace_provider_key_override_v1_workspaces_workspace_id_provider_ke return response_data.response - def _reset_workspace_provider_key_override_v1_workspaces_workspace_id_provider_keys_key_id_delete_serialize( + def _reset_workspace_provider_key_override_api_v1_workspaces_workspace_id_provider_keys_key_id_delete_serialize( self, workspace_id, key_id, @@ -2569,7 +2569,7 @@ def _reset_workspace_provider_key_override_v1_workspaces_workspace_id_provider_k return self.api_client.param_serialize( method='DELETE', - resource_path='/v1/workspaces/{workspace_id}/provider-keys/{key_id}', + resource_path='/api/v1/workspaces/{workspace_id}/provider-keys/{key_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2586,7 +2586,7 @@ def _reset_workspace_provider_key_override_v1_workspaces_workspace_id_provider_k @validate_call - def restore_org_provider_key_v1_organizations_me_provider_keys_key_id_restore_post( + def restore_org_provider_key_api_v1_organizations_me_provider_keys_key_id_restore_post( self, key_id: UUID, _request_timeout: Union[ @@ -2630,7 +2630,7 @@ def restore_org_provider_key_v1_organizations_me_provider_keys_key_id_restore_po :return: Returns the result object. """ # noqa: E501 - _param = self._restore_org_provider_key_v1_organizations_me_provider_keys_key_id_restore_post_serialize( + _param = self._restore_org_provider_key_api_v1_organizations_me_provider_keys_key_id_restore_post_serialize( key_id=key_id, _request_auth=_request_auth, _content_type=_content_type, @@ -2654,7 +2654,7 @@ def restore_org_provider_key_v1_organizations_me_provider_keys_key_id_restore_po @validate_call - def restore_org_provider_key_v1_organizations_me_provider_keys_key_id_restore_post_with_http_info( + def restore_org_provider_key_api_v1_organizations_me_provider_keys_key_id_restore_post_with_http_info( self, key_id: UUID, _request_timeout: Union[ @@ -2698,7 +2698,7 @@ def restore_org_provider_key_v1_organizations_me_provider_keys_key_id_restore_po :return: Returns the result object. """ # noqa: E501 - _param = self._restore_org_provider_key_v1_organizations_me_provider_keys_key_id_restore_post_serialize( + _param = self._restore_org_provider_key_api_v1_organizations_me_provider_keys_key_id_restore_post_serialize( key_id=key_id, _request_auth=_request_auth, _content_type=_content_type, @@ -2722,7 +2722,7 @@ def restore_org_provider_key_v1_organizations_me_provider_keys_key_id_restore_po @validate_call - def restore_org_provider_key_v1_organizations_me_provider_keys_key_id_restore_post_without_preload_content( + def restore_org_provider_key_api_v1_organizations_me_provider_keys_key_id_restore_post_without_preload_content( self, key_id: UUID, _request_timeout: Union[ @@ -2766,7 +2766,7 @@ def restore_org_provider_key_v1_organizations_me_provider_keys_key_id_restore_po :return: Returns the result object. """ # noqa: E501 - _param = self._restore_org_provider_key_v1_organizations_me_provider_keys_key_id_restore_post_serialize( + _param = self._restore_org_provider_key_api_v1_organizations_me_provider_keys_key_id_restore_post_serialize( key_id=key_id, _request_auth=_request_auth, _content_type=_content_type, @@ -2785,7 +2785,7 @@ def restore_org_provider_key_v1_organizations_me_provider_keys_key_id_restore_po return response_data.response - def _restore_org_provider_key_v1_organizations_me_provider_keys_key_id_restore_post_serialize( + def _restore_org_provider_key_api_v1_organizations_me_provider_keys_key_id_restore_post_serialize( self, key_id, _request_auth, @@ -2834,7 +2834,7 @@ def _restore_org_provider_key_v1_organizations_me_provider_keys_key_id_restore_p return self.api_client.param_serialize( method='POST', - resource_path='/v1/organizations/me/provider-keys/{key_id}/restore', + resource_path='/api/v1/organizations/me/provider-keys/{key_id}/restore', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2851,7 +2851,7 @@ def _restore_org_provider_key_v1_organizations_me_provider_keys_key_id_restore_p @validate_call - def set_org_provider_key_default_v1_organizations_me_provider_keys_key_id_default_post( + def set_org_provider_key_default_api_v1_organizations_me_provider_keys_key_id_default_post( self, key_id: UUID, _request_timeout: Union[ @@ -2895,7 +2895,7 @@ def set_org_provider_key_default_v1_organizations_me_provider_keys_key_id_defaul :return: Returns the result object. """ # noqa: E501 - _param = self._set_org_provider_key_default_v1_organizations_me_provider_keys_key_id_default_post_serialize( + _param = self._set_org_provider_key_default_api_v1_organizations_me_provider_keys_key_id_default_post_serialize( key_id=key_id, _request_auth=_request_auth, _content_type=_content_type, @@ -2919,7 +2919,7 @@ def set_org_provider_key_default_v1_organizations_me_provider_keys_key_id_defaul @validate_call - def set_org_provider_key_default_v1_organizations_me_provider_keys_key_id_default_post_with_http_info( + def set_org_provider_key_default_api_v1_organizations_me_provider_keys_key_id_default_post_with_http_info( self, key_id: UUID, _request_timeout: Union[ @@ -2963,7 +2963,7 @@ def set_org_provider_key_default_v1_organizations_me_provider_keys_key_id_defaul :return: Returns the result object. """ # noqa: E501 - _param = self._set_org_provider_key_default_v1_organizations_me_provider_keys_key_id_default_post_serialize( + _param = self._set_org_provider_key_default_api_v1_organizations_me_provider_keys_key_id_default_post_serialize( key_id=key_id, _request_auth=_request_auth, _content_type=_content_type, @@ -2987,7 +2987,7 @@ def set_org_provider_key_default_v1_organizations_me_provider_keys_key_id_defaul @validate_call - def set_org_provider_key_default_v1_organizations_me_provider_keys_key_id_default_post_without_preload_content( + def set_org_provider_key_default_api_v1_organizations_me_provider_keys_key_id_default_post_without_preload_content( self, key_id: UUID, _request_timeout: Union[ @@ -3031,7 +3031,7 @@ def set_org_provider_key_default_v1_organizations_me_provider_keys_key_id_defaul :return: Returns the result object. """ # noqa: E501 - _param = self._set_org_provider_key_default_v1_organizations_me_provider_keys_key_id_default_post_serialize( + _param = self._set_org_provider_key_default_api_v1_organizations_me_provider_keys_key_id_default_post_serialize( key_id=key_id, _request_auth=_request_auth, _content_type=_content_type, @@ -3050,7 +3050,7 @@ def set_org_provider_key_default_v1_organizations_me_provider_keys_key_id_defaul return response_data.response - def _set_org_provider_key_default_v1_organizations_me_provider_keys_key_id_default_post_serialize( + def _set_org_provider_key_default_api_v1_organizations_me_provider_keys_key_id_default_post_serialize( self, key_id, _request_auth, @@ -3099,7 +3099,7 @@ def _set_org_provider_key_default_v1_organizations_me_provider_keys_key_id_defau return self.api_client.param_serialize( method='POST', - resource_path='/v1/organizations/me/provider-keys/{key_id}/default', + resource_path='/api/v1/organizations/me/provider-keys/{key_id}/default', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3116,7 +3116,7 @@ def _set_org_provider_key_default_v1_organizations_me_provider_keys_key_id_defau @validate_call - def set_workspace_provider_key_override_v1_workspaces_workspace_id_provider_keys_key_id_patch( + def set_workspace_provider_key_override_api_v1_workspaces_workspace_id_provider_keys_key_id_patch( self, workspace_id: UUID, key_id: UUID, @@ -3166,7 +3166,7 @@ def set_workspace_provider_key_override_v1_workspaces_workspace_id_provider_keys :return: Returns the result object. """ # noqa: E501 - _param = self._set_workspace_provider_key_override_v1_workspaces_workspace_id_provider_keys_key_id_patch_serialize( + _param = self._set_workspace_provider_key_override_api_v1_workspaces_workspace_id_provider_keys_key_id_patch_serialize( workspace_id=workspace_id, key_id=key_id, workspace_provider_key_override_request=workspace_provider_key_override_request, @@ -3192,7 +3192,7 @@ def set_workspace_provider_key_override_v1_workspaces_workspace_id_provider_keys @validate_call - def set_workspace_provider_key_override_v1_workspaces_workspace_id_provider_keys_key_id_patch_with_http_info( + def set_workspace_provider_key_override_api_v1_workspaces_workspace_id_provider_keys_key_id_patch_with_http_info( self, workspace_id: UUID, key_id: UUID, @@ -3242,7 +3242,7 @@ def set_workspace_provider_key_override_v1_workspaces_workspace_id_provider_keys :return: Returns the result object. """ # noqa: E501 - _param = self._set_workspace_provider_key_override_v1_workspaces_workspace_id_provider_keys_key_id_patch_serialize( + _param = self._set_workspace_provider_key_override_api_v1_workspaces_workspace_id_provider_keys_key_id_patch_serialize( workspace_id=workspace_id, key_id=key_id, workspace_provider_key_override_request=workspace_provider_key_override_request, @@ -3268,7 +3268,7 @@ def set_workspace_provider_key_override_v1_workspaces_workspace_id_provider_keys @validate_call - def set_workspace_provider_key_override_v1_workspaces_workspace_id_provider_keys_key_id_patch_without_preload_content( + def set_workspace_provider_key_override_api_v1_workspaces_workspace_id_provider_keys_key_id_patch_without_preload_content( self, workspace_id: UUID, key_id: UUID, @@ -3318,7 +3318,7 @@ def set_workspace_provider_key_override_v1_workspaces_workspace_id_provider_keys :return: Returns the result object. """ # noqa: E501 - _param = self._set_workspace_provider_key_override_v1_workspaces_workspace_id_provider_keys_key_id_patch_serialize( + _param = self._set_workspace_provider_key_override_api_v1_workspaces_workspace_id_provider_keys_key_id_patch_serialize( workspace_id=workspace_id, key_id=key_id, workspace_provider_key_override_request=workspace_provider_key_override_request, @@ -3339,7 +3339,7 @@ def set_workspace_provider_key_override_v1_workspaces_workspace_id_provider_keys return response_data.response - def _set_workspace_provider_key_override_v1_workspaces_workspace_id_provider_keys_key_id_patch_serialize( + def _set_workspace_provider_key_override_api_v1_workspaces_workspace_id_provider_keys_key_id_patch_serialize( self, workspace_id, key_id, @@ -3407,7 +3407,7 @@ def _set_workspace_provider_key_override_v1_workspaces_workspace_id_provider_key return self.api_client.param_serialize( method='PATCH', - resource_path='/v1/workspaces/{workspace_id}/provider-keys/{key_id}', + resource_path='/api/v1/workspaces/{workspace_id}/provider-keys/{key_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3424,7 +3424,7 @@ def _set_workspace_provider_key_override_v1_workspaces_workspace_id_provider_key @validate_call - def update_org_provider_key_v1_organizations_me_provider_keys_key_id_patch( + def update_org_provider_key_api_v1_organizations_me_provider_keys_key_id_patch( self, key_id: UUID, org_provider_key_update_request: OrgProviderKeyUpdateRequest, @@ -3471,7 +3471,7 @@ def update_org_provider_key_v1_organizations_me_provider_keys_key_id_patch( :return: Returns the result object. """ # noqa: E501 - _param = self._update_org_provider_key_v1_organizations_me_provider_keys_key_id_patch_serialize( + _param = self._update_org_provider_key_api_v1_organizations_me_provider_keys_key_id_patch_serialize( key_id=key_id, org_provider_key_update_request=org_provider_key_update_request, _request_auth=_request_auth, @@ -3496,7 +3496,7 @@ def update_org_provider_key_v1_organizations_me_provider_keys_key_id_patch( @validate_call - def update_org_provider_key_v1_organizations_me_provider_keys_key_id_patch_with_http_info( + def update_org_provider_key_api_v1_organizations_me_provider_keys_key_id_patch_with_http_info( self, key_id: UUID, org_provider_key_update_request: OrgProviderKeyUpdateRequest, @@ -3543,7 +3543,7 @@ def update_org_provider_key_v1_organizations_me_provider_keys_key_id_patch_with_ :return: Returns the result object. """ # noqa: E501 - _param = self._update_org_provider_key_v1_organizations_me_provider_keys_key_id_patch_serialize( + _param = self._update_org_provider_key_api_v1_organizations_me_provider_keys_key_id_patch_serialize( key_id=key_id, org_provider_key_update_request=org_provider_key_update_request, _request_auth=_request_auth, @@ -3568,7 +3568,7 @@ def update_org_provider_key_v1_organizations_me_provider_keys_key_id_patch_with_ @validate_call - def update_org_provider_key_v1_organizations_me_provider_keys_key_id_patch_without_preload_content( + def update_org_provider_key_api_v1_organizations_me_provider_keys_key_id_patch_without_preload_content( self, key_id: UUID, org_provider_key_update_request: OrgProviderKeyUpdateRequest, @@ -3615,7 +3615,7 @@ def update_org_provider_key_v1_organizations_me_provider_keys_key_id_patch_witho :return: Returns the result object. """ # noqa: E501 - _param = self._update_org_provider_key_v1_organizations_me_provider_keys_key_id_patch_serialize( + _param = self._update_org_provider_key_api_v1_organizations_me_provider_keys_key_id_patch_serialize( key_id=key_id, org_provider_key_update_request=org_provider_key_update_request, _request_auth=_request_auth, @@ -3635,7 +3635,7 @@ def update_org_provider_key_v1_organizations_me_provider_keys_key_id_patch_witho return response_data.response - def _update_org_provider_key_v1_organizations_me_provider_keys_key_id_patch_serialize( + def _update_org_provider_key_api_v1_organizations_me_provider_keys_key_id_patch_serialize( self, key_id, org_provider_key_update_request, @@ -3700,7 +3700,7 @@ def _update_org_provider_key_v1_organizations_me_provider_keys_key_id_patch_seri return self.api_client.param_serialize( method='PATCH', - resource_path='/v1/organizations/me/provider-keys/{key_id}', + resource_path='/api/v1/organizations/me/provider-keys/{key_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/providers_api.py b/src/otari/_client/api/providers_api.py index f0cda55..3d613f2 100644 --- a/src/otari/_client/api/providers_api.py +++ b/src/otari/_client/api/providers_api.py @@ -47,7 +47,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def create_stored_provider_v1_provider_credentials_post( + def create_stored_provider_api_v1_provider_credentials_post( self, create_stored_provider_request: CreateStoredProviderRequest, _request_timeout: Union[ @@ -91,7 +91,7 @@ def create_stored_provider_v1_provider_credentials_post( :return: Returns the result object. """ # noqa: E501 - _param = self._create_stored_provider_v1_provider_credentials_post_serialize( + _param = self._create_stored_provider_api_v1_provider_credentials_post_serialize( create_stored_provider_request=create_stored_provider_request, _request_auth=_request_auth, _content_type=_content_type, @@ -115,7 +115,7 @@ def create_stored_provider_v1_provider_credentials_post( @validate_call - def create_stored_provider_v1_provider_credentials_post_with_http_info( + def create_stored_provider_api_v1_provider_credentials_post_with_http_info( self, create_stored_provider_request: CreateStoredProviderRequest, _request_timeout: Union[ @@ -159,7 +159,7 @@ def create_stored_provider_v1_provider_credentials_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_stored_provider_v1_provider_credentials_post_serialize( + _param = self._create_stored_provider_api_v1_provider_credentials_post_serialize( create_stored_provider_request=create_stored_provider_request, _request_auth=_request_auth, _content_type=_content_type, @@ -183,7 +183,7 @@ def create_stored_provider_v1_provider_credentials_post_with_http_info( @validate_call - def create_stored_provider_v1_provider_credentials_post_without_preload_content( + def create_stored_provider_api_v1_provider_credentials_post_without_preload_content( self, create_stored_provider_request: CreateStoredProviderRequest, _request_timeout: Union[ @@ -227,7 +227,7 @@ def create_stored_provider_v1_provider_credentials_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._create_stored_provider_v1_provider_credentials_post_serialize( + _param = self._create_stored_provider_api_v1_provider_credentials_post_serialize( create_stored_provider_request=create_stored_provider_request, _request_auth=_request_auth, _content_type=_content_type, @@ -246,7 +246,7 @@ def create_stored_provider_v1_provider_credentials_post_without_preload_content( return response_data.response - def _create_stored_provider_v1_provider_credentials_post_serialize( + def _create_stored_provider_api_v1_provider_credentials_post_serialize( self, create_stored_provider_request, _request_auth, @@ -308,7 +308,7 @@ def _create_stored_provider_v1_provider_credentials_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/provider-credentials', + resource_path='/api/v1/provider-credentials', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -325,7 +325,7 @@ def _create_stored_provider_v1_provider_credentials_post_serialize( @validate_call - def delete_stored_provider_v1_provider_credentials_instance_delete( + def delete_stored_provider_api_v1_provider_credentials_instance_delete( self, instance: StrictStr, _request_timeout: Union[ @@ -369,7 +369,7 @@ def delete_stored_provider_v1_provider_credentials_instance_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_stored_provider_v1_provider_credentials_instance_delete_serialize( + _param = self._delete_stored_provider_api_v1_provider_credentials_instance_delete_serialize( instance=instance, _request_auth=_request_auth, _content_type=_content_type, @@ -393,7 +393,7 @@ def delete_stored_provider_v1_provider_credentials_instance_delete( @validate_call - def delete_stored_provider_v1_provider_credentials_instance_delete_with_http_info( + def delete_stored_provider_api_v1_provider_credentials_instance_delete_with_http_info( self, instance: StrictStr, _request_timeout: Union[ @@ -437,7 +437,7 @@ def delete_stored_provider_v1_provider_credentials_instance_delete_with_http_inf :return: Returns the result object. """ # noqa: E501 - _param = self._delete_stored_provider_v1_provider_credentials_instance_delete_serialize( + _param = self._delete_stored_provider_api_v1_provider_credentials_instance_delete_serialize( instance=instance, _request_auth=_request_auth, _content_type=_content_type, @@ -461,7 +461,7 @@ def delete_stored_provider_v1_provider_credentials_instance_delete_with_http_inf @validate_call - def delete_stored_provider_v1_provider_credentials_instance_delete_without_preload_content( + def delete_stored_provider_api_v1_provider_credentials_instance_delete_without_preload_content( self, instance: StrictStr, _request_timeout: Union[ @@ -505,7 +505,7 @@ def delete_stored_provider_v1_provider_credentials_instance_delete_without_prelo :return: Returns the result object. """ # noqa: E501 - _param = self._delete_stored_provider_v1_provider_credentials_instance_delete_serialize( + _param = self._delete_stored_provider_api_v1_provider_credentials_instance_delete_serialize( instance=instance, _request_auth=_request_auth, _content_type=_content_type, @@ -524,7 +524,7 @@ def delete_stored_provider_v1_provider_credentials_instance_delete_without_prelo return response_data.response - def _delete_stored_provider_v1_provider_credentials_instance_delete_serialize( + def _delete_stored_provider_api_v1_provider_credentials_instance_delete_serialize( self, instance, _request_auth, @@ -573,7 +573,7 @@ def _delete_stored_provider_v1_provider_credentials_instance_delete_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/v1/provider-credentials/{instance}', + resource_path='/api/v1/provider-credentials/{instance}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -590,7 +590,7 @@ def _delete_stored_provider_v1_provider_credentials_instance_delete_serialize( @validate_call - def list_providers_v1_providers_get( + def list_providers_api_v1_providers_get( self, _request_timeout: Union[ None, @@ -631,7 +631,7 @@ def list_providers_v1_providers_get( :return: Returns the result object. """ # noqa: E501 - _param = self._list_providers_v1_providers_get_serialize( + _param = self._list_providers_api_v1_providers_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -653,7 +653,7 @@ def list_providers_v1_providers_get( @validate_call - def list_providers_v1_providers_get_with_http_info( + def list_providers_api_v1_providers_get_with_http_info( self, _request_timeout: Union[ None, @@ -694,7 +694,7 @@ def list_providers_v1_providers_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_providers_v1_providers_get_serialize( + _param = self._list_providers_api_v1_providers_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -716,7 +716,7 @@ def list_providers_v1_providers_get_with_http_info( @validate_call - def list_providers_v1_providers_get_without_preload_content( + def list_providers_api_v1_providers_get_without_preload_content( self, _request_timeout: Union[ None, @@ -757,7 +757,7 @@ def list_providers_v1_providers_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._list_providers_v1_providers_get_serialize( + _param = self._list_providers_api_v1_providers_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -774,7 +774,7 @@ def list_providers_v1_providers_get_without_preload_content( return response_data.response - def _list_providers_v1_providers_get_serialize( + def _list_providers_api_v1_providers_get_serialize( self, _request_auth, _content_type, @@ -820,7 +820,7 @@ def _list_providers_v1_providers_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/providers', + resource_path='/api/v1/providers', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -837,7 +837,7 @@ def _list_providers_v1_providers_get_serialize( @validate_call - def list_stored_providers_v1_provider_credentials_get( + def list_stored_providers_api_v1_provider_credentials_get( self, _request_timeout: Union[ None, @@ -878,7 +878,7 @@ def list_stored_providers_v1_provider_credentials_get( :return: Returns the result object. """ # noqa: E501 - _param = self._list_stored_providers_v1_provider_credentials_get_serialize( + _param = self._list_stored_providers_api_v1_provider_credentials_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -900,7 +900,7 @@ def list_stored_providers_v1_provider_credentials_get( @validate_call - def list_stored_providers_v1_provider_credentials_get_with_http_info( + def list_stored_providers_api_v1_provider_credentials_get_with_http_info( self, _request_timeout: Union[ None, @@ -941,7 +941,7 @@ def list_stored_providers_v1_provider_credentials_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_stored_providers_v1_provider_credentials_get_serialize( + _param = self._list_stored_providers_api_v1_provider_credentials_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -963,7 +963,7 @@ def list_stored_providers_v1_provider_credentials_get_with_http_info( @validate_call - def list_stored_providers_v1_provider_credentials_get_without_preload_content( + def list_stored_providers_api_v1_provider_credentials_get_without_preload_content( self, _request_timeout: Union[ None, @@ -1004,7 +1004,7 @@ def list_stored_providers_v1_provider_credentials_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._list_stored_providers_v1_provider_credentials_get_serialize( + _param = self._list_stored_providers_api_v1_provider_credentials_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1021,7 +1021,7 @@ def list_stored_providers_v1_provider_credentials_get_without_preload_content( return response_data.response - def _list_stored_providers_v1_provider_credentials_get_serialize( + def _list_stored_providers_api_v1_provider_credentials_get_serialize( self, _request_auth, _content_type, @@ -1067,7 +1067,7 @@ def _list_stored_providers_v1_provider_credentials_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/provider-credentials', + resource_path='/api/v1/provider-credentials', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1084,9 +1084,8 @@ def _list_stored_providers_v1_provider_credentials_get_serialize( @validate_call - def provider_catalog_detail_v1_providers_catalog_provider_id_get( + def provider_catalog_api_v1_providers_catalog_get( self, - provider_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1099,13 +1098,11 @@ def provider_catalog_detail_v1_providers_catalog_provider_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> KnownProviderSchema: - """Provider Catalog Detail + ) -> List[KnownProviderSummarySchema]: + """Provider Catalog - Autofill hints for one provider the add-provider form has selected. Imports only the selected provider's any-llm module (not the whole catalog) to report its credential env var, default endpoint, whether a key is required, and whether that env var is already set on the server. Returns 404 for an unknown provider id. The SDK import is offloaded to a worker thread: the first fetch for a given provider imports that provider's module, which would otherwise block the event loop (and thus every concurrent request) for the import's duration. + List every known provider for the add-provider picker: id and name only. Lightweight by design so the picker never lags: provider ids come from the any-llm registry and names from the bundled genai-prices dataset, so no provider SDK is imported. The autofill hints for a chosen provider come from GET /api/v1/providers/catalog/{provider_id}, which imports only that one SDK. - :param provider_id: (required) - :type provider_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1128,8 +1125,7 @@ def provider_catalog_detail_v1_providers_catalog_provider_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._provider_catalog_detail_v1_providers_catalog_provider_id_get_serialize( - provider_id=provider_id, + _param = self._provider_catalog_api_v1_providers_catalog_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1137,8 +1133,7 @@ def provider_catalog_detail_v1_providers_catalog_provider_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "KnownProviderSchema", - '422': "HTTPValidationError", + '200': "List[KnownProviderSummarySchema]", } response_data = self.api_client.call_api( *_param, @@ -1152,9 +1147,8 @@ def provider_catalog_detail_v1_providers_catalog_provider_id_get( @validate_call - def provider_catalog_detail_v1_providers_catalog_provider_id_get_with_http_info( + def provider_catalog_api_v1_providers_catalog_get_with_http_info( self, - provider_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1167,13 +1161,11 @@ def provider_catalog_detail_v1_providers_catalog_provider_id_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[KnownProviderSchema]: - """Provider Catalog Detail + ) -> ApiResponse[List[KnownProviderSummarySchema]]: + """Provider Catalog - Autofill hints for one provider the add-provider form has selected. Imports only the selected provider's any-llm module (not the whole catalog) to report its credential env var, default endpoint, whether a key is required, and whether that env var is already set on the server. Returns 404 for an unknown provider id. The SDK import is offloaded to a worker thread: the first fetch for a given provider imports that provider's module, which would otherwise block the event loop (and thus every concurrent request) for the import's duration. + List every known provider for the add-provider picker: id and name only. Lightweight by design so the picker never lags: provider ids come from the any-llm registry and names from the bundled genai-prices dataset, so no provider SDK is imported. The autofill hints for a chosen provider come from GET /api/v1/providers/catalog/{provider_id}, which imports only that one SDK. - :param provider_id: (required) - :type provider_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1196,8 +1188,7 @@ def provider_catalog_detail_v1_providers_catalog_provider_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._provider_catalog_detail_v1_providers_catalog_provider_id_get_serialize( - provider_id=provider_id, + _param = self._provider_catalog_api_v1_providers_catalog_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1205,8 +1196,7 @@ def provider_catalog_detail_v1_providers_catalog_provider_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "KnownProviderSchema", - '422': "HTTPValidationError", + '200': "List[KnownProviderSummarySchema]", } response_data = self.api_client.call_api( *_param, @@ -1220,9 +1210,8 @@ def provider_catalog_detail_v1_providers_catalog_provider_id_get_with_http_info( @validate_call - def provider_catalog_detail_v1_providers_catalog_provider_id_get_without_preload_content( + def provider_catalog_api_v1_providers_catalog_get_without_preload_content( self, - provider_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1236,12 +1225,10 @@ def provider_catalog_detail_v1_providers_catalog_provider_id_get_without_preload _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Provider Catalog Detail + """Provider Catalog - Autofill hints for one provider the add-provider form has selected. Imports only the selected provider's any-llm module (not the whole catalog) to report its credential env var, default endpoint, whether a key is required, and whether that env var is already set on the server. Returns 404 for an unknown provider id. The SDK import is offloaded to a worker thread: the first fetch for a given provider imports that provider's module, which would otherwise block the event loop (and thus every concurrent request) for the import's duration. + List every known provider for the add-provider picker: id and name only. Lightweight by design so the picker never lags: provider ids come from the any-llm registry and names from the bundled genai-prices dataset, so no provider SDK is imported. The autofill hints for a chosen provider come from GET /api/v1/providers/catalog/{provider_id}, which imports only that one SDK. - :param provider_id: (required) - :type provider_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1264,8 +1251,7 @@ def provider_catalog_detail_v1_providers_catalog_provider_id_get_without_preload :return: Returns the result object. """ # noqa: E501 - _param = self._provider_catalog_detail_v1_providers_catalog_provider_id_get_serialize( - provider_id=provider_id, + _param = self._provider_catalog_api_v1_providers_catalog_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1273,8 +1259,7 @@ def provider_catalog_detail_v1_providers_catalog_provider_id_get_without_preload ) _response_types_map: Dict[str, Optional[str]] = { - '200': "KnownProviderSchema", - '422': "HTTPValidationError", + '200': "List[KnownProviderSummarySchema]", } response_data = self.api_client.call_api( *_param, @@ -1283,9 +1268,8 @@ def provider_catalog_detail_v1_providers_catalog_provider_id_get_without_preload return response_data.response - def _provider_catalog_detail_v1_providers_catalog_provider_id_get_serialize( + def _provider_catalog_api_v1_providers_catalog_get_serialize( self, - provider_id, _request_auth, _content_type, _headers, @@ -1307,8 +1291,6 @@ def _provider_catalog_detail_v1_providers_catalog_provider_id_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if provider_id is not None: - _path_params['provider_id'] = provider_id # process the query parameters # process the header parameters # process the form parameters @@ -1332,7 +1314,7 @@ def _provider_catalog_detail_v1_providers_catalog_provider_id_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/providers/catalog/{provider_id}', + resource_path='/api/v1/providers/catalog', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1349,8 +1331,9 @@ def _provider_catalog_detail_v1_providers_catalog_provider_id_get_serialize( @validate_call - def provider_catalog_v1_providers_catalog_get( + def provider_catalog_detail_api_v1_providers_catalog_provider_id_get( self, + provider_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1363,11 +1346,13 @@ def provider_catalog_v1_providers_catalog_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[KnownProviderSummarySchema]: - """Provider Catalog + ) -> KnownProviderSchema: + """Provider Catalog Detail - List every known provider for the add-provider picker: id and name only. Lightweight by design so the picker never lags: provider ids come from the any-llm registry and names from the bundled genai-prices dataset, so no provider SDK is imported. The autofill hints for a chosen provider come from GET /v1/providers/catalog/{provider_id}, which imports only that one SDK. + Autofill hints for one provider the add-provider form has selected. Imports only the selected provider's any-llm module (not the whole catalog) to report its credential env var, default endpoint, whether a key is required, and whether that env var is already set on the server. Returns 404 for an unknown provider id. The SDK import is offloaded to a worker thread: the first fetch for a given provider imports that provider's module, which would otherwise block the event loop (and thus every concurrent request) for the import's duration. + :param provider_id: (required) + :type provider_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1390,7 +1375,8 @@ def provider_catalog_v1_providers_catalog_get( :return: Returns the result object. """ # noqa: E501 - _param = self._provider_catalog_v1_providers_catalog_get_serialize( + _param = self._provider_catalog_detail_api_v1_providers_catalog_provider_id_get_serialize( + provider_id=provider_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1398,7 +1384,8 @@ def provider_catalog_v1_providers_catalog_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[KnownProviderSummarySchema]", + '200': "KnownProviderSchema", + '422': "HTTPValidationError", } response_data = self.api_client.call_api( *_param, @@ -1412,8 +1399,9 @@ def provider_catalog_v1_providers_catalog_get( @validate_call - def provider_catalog_v1_providers_catalog_get_with_http_info( + def provider_catalog_detail_api_v1_providers_catalog_provider_id_get_with_http_info( self, + provider_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1426,11 +1414,13 @@ def provider_catalog_v1_providers_catalog_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[KnownProviderSummarySchema]]: - """Provider Catalog + ) -> ApiResponse[KnownProviderSchema]: + """Provider Catalog Detail - List every known provider for the add-provider picker: id and name only. Lightweight by design so the picker never lags: provider ids come from the any-llm registry and names from the bundled genai-prices dataset, so no provider SDK is imported. The autofill hints for a chosen provider come from GET /v1/providers/catalog/{provider_id}, which imports only that one SDK. + Autofill hints for one provider the add-provider form has selected. Imports only the selected provider's any-llm module (not the whole catalog) to report its credential env var, default endpoint, whether a key is required, and whether that env var is already set on the server. Returns 404 for an unknown provider id. The SDK import is offloaded to a worker thread: the first fetch for a given provider imports that provider's module, which would otherwise block the event loop (and thus every concurrent request) for the import's duration. + :param provider_id: (required) + :type provider_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1453,7 +1443,8 @@ def provider_catalog_v1_providers_catalog_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._provider_catalog_v1_providers_catalog_get_serialize( + _param = self._provider_catalog_detail_api_v1_providers_catalog_provider_id_get_serialize( + provider_id=provider_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1461,7 +1452,8 @@ def provider_catalog_v1_providers_catalog_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[KnownProviderSummarySchema]", + '200': "KnownProviderSchema", + '422': "HTTPValidationError", } response_data = self.api_client.call_api( *_param, @@ -1475,8 +1467,9 @@ def provider_catalog_v1_providers_catalog_get_with_http_info( @validate_call - def provider_catalog_v1_providers_catalog_get_without_preload_content( + def provider_catalog_detail_api_v1_providers_catalog_provider_id_get_without_preload_content( self, + provider_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1490,10 +1483,12 @@ def provider_catalog_v1_providers_catalog_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Provider Catalog + """Provider Catalog Detail - List every known provider for the add-provider picker: id and name only. Lightweight by design so the picker never lags: provider ids come from the any-llm registry and names from the bundled genai-prices dataset, so no provider SDK is imported. The autofill hints for a chosen provider come from GET /v1/providers/catalog/{provider_id}, which imports only that one SDK. + Autofill hints for one provider the add-provider form has selected. Imports only the selected provider's any-llm module (not the whole catalog) to report its credential env var, default endpoint, whether a key is required, and whether that env var is already set on the server. Returns 404 for an unknown provider id. The SDK import is offloaded to a worker thread: the first fetch for a given provider imports that provider's module, which would otherwise block the event loop (and thus every concurrent request) for the import's duration. + :param provider_id: (required) + :type provider_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1516,7 +1511,8 @@ def provider_catalog_v1_providers_catalog_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._provider_catalog_v1_providers_catalog_get_serialize( + _param = self._provider_catalog_detail_api_v1_providers_catalog_provider_id_get_serialize( + provider_id=provider_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1524,7 +1520,8 @@ def provider_catalog_v1_providers_catalog_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[KnownProviderSummarySchema]", + '200': "KnownProviderSchema", + '422': "HTTPValidationError", } response_data = self.api_client.call_api( *_param, @@ -1533,8 +1530,9 @@ def provider_catalog_v1_providers_catalog_get_without_preload_content( return response_data.response - def _provider_catalog_v1_providers_catalog_get_serialize( + def _provider_catalog_detail_api_v1_providers_catalog_provider_id_get_serialize( self, + provider_id, _request_auth, _content_type, _headers, @@ -1556,6 +1554,8 @@ def _provider_catalog_v1_providers_catalog_get_serialize( _body_params: Optional[bytes] = None # process the path parameters + if provider_id is not None: + _path_params['provider_id'] = provider_id # process the query parameters # process the header parameters # process the form parameters @@ -1579,7 +1579,7 @@ def _provider_catalog_v1_providers_catalog_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/providers/catalog', + resource_path='/api/v1/providers/catalog/{provider_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1596,7 +1596,7 @@ def _provider_catalog_v1_providers_catalog_get_serialize( @validate_call - def provider_health_v1_providers_health_get( + def provider_health_api_v1_providers_health_get( self, refresh: Optional[StrictBool] = None, _request_timeout: Union[ @@ -1640,7 +1640,7 @@ def provider_health_v1_providers_health_get( :return: Returns the result object. """ # noqa: E501 - _param = self._provider_health_v1_providers_health_get_serialize( + _param = self._provider_health_api_v1_providers_health_get_serialize( refresh=refresh, _request_auth=_request_auth, _content_type=_content_type, @@ -1664,7 +1664,7 @@ def provider_health_v1_providers_health_get( @validate_call - def provider_health_v1_providers_health_get_with_http_info( + def provider_health_api_v1_providers_health_get_with_http_info( self, refresh: Optional[StrictBool] = None, _request_timeout: Union[ @@ -1708,7 +1708,7 @@ def provider_health_v1_providers_health_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._provider_health_v1_providers_health_get_serialize( + _param = self._provider_health_api_v1_providers_health_get_serialize( refresh=refresh, _request_auth=_request_auth, _content_type=_content_type, @@ -1732,7 +1732,7 @@ def provider_health_v1_providers_health_get_with_http_info( @validate_call - def provider_health_v1_providers_health_get_without_preload_content( + def provider_health_api_v1_providers_health_get_without_preload_content( self, refresh: Optional[StrictBool] = None, _request_timeout: Union[ @@ -1776,7 +1776,7 @@ def provider_health_v1_providers_health_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._provider_health_v1_providers_health_get_serialize( + _param = self._provider_health_api_v1_providers_health_get_serialize( refresh=refresh, _request_auth=_request_auth, _content_type=_content_type, @@ -1795,7 +1795,7 @@ def provider_health_v1_providers_health_get_without_preload_content( return response_data.response - def _provider_health_v1_providers_health_get_serialize( + def _provider_health_api_v1_providers_health_get_serialize( self, refresh, _request_auth, @@ -1846,7 +1846,7 @@ def _provider_health_v1_providers_health_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/providers/health', + resource_path='/api/v1/providers/health', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1863,7 +1863,7 @@ def _provider_health_v1_providers_health_get_serialize( @validate_call - def reencrypt_stored_provider_keys_v1_provider_credentials_reencrypt_post( + def reencrypt_stored_provider_keys_api_v1_provider_credentials_reencrypt_post( self, _request_timeout: Union[ None, @@ -1904,7 +1904,7 @@ def reencrypt_stored_provider_keys_v1_provider_credentials_reencrypt_post( :return: Returns the result object. """ # noqa: E501 - _param = self._reencrypt_stored_provider_keys_v1_provider_credentials_reencrypt_post_serialize( + _param = self._reencrypt_stored_provider_keys_api_v1_provider_credentials_reencrypt_post_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1926,7 +1926,7 @@ def reencrypt_stored_provider_keys_v1_provider_credentials_reencrypt_post( @validate_call - def reencrypt_stored_provider_keys_v1_provider_credentials_reencrypt_post_with_http_info( + def reencrypt_stored_provider_keys_api_v1_provider_credentials_reencrypt_post_with_http_info( self, _request_timeout: Union[ None, @@ -1967,7 +1967,7 @@ def reencrypt_stored_provider_keys_v1_provider_credentials_reencrypt_post_with_h :return: Returns the result object. """ # noqa: E501 - _param = self._reencrypt_stored_provider_keys_v1_provider_credentials_reencrypt_post_serialize( + _param = self._reencrypt_stored_provider_keys_api_v1_provider_credentials_reencrypt_post_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1989,7 +1989,7 @@ def reencrypt_stored_provider_keys_v1_provider_credentials_reencrypt_post_with_h @validate_call - def reencrypt_stored_provider_keys_v1_provider_credentials_reencrypt_post_without_preload_content( + def reencrypt_stored_provider_keys_api_v1_provider_credentials_reencrypt_post_without_preload_content( self, _request_timeout: Union[ None, @@ -2030,7 +2030,7 @@ def reencrypt_stored_provider_keys_v1_provider_credentials_reencrypt_post_withou :return: Returns the result object. """ # noqa: E501 - _param = self._reencrypt_stored_provider_keys_v1_provider_credentials_reencrypt_post_serialize( + _param = self._reencrypt_stored_provider_keys_api_v1_provider_credentials_reencrypt_post_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2047,7 +2047,7 @@ def reencrypt_stored_provider_keys_v1_provider_credentials_reencrypt_post_withou return response_data.response - def _reencrypt_stored_provider_keys_v1_provider_credentials_reencrypt_post_serialize( + def _reencrypt_stored_provider_keys_api_v1_provider_credentials_reencrypt_post_serialize( self, _request_auth, _content_type, @@ -2093,7 +2093,7 @@ def _reencrypt_stored_provider_keys_v1_provider_credentials_reencrypt_post_seria return self.api_client.param_serialize( method='POST', - resource_path='/v1/provider-credentials/reencrypt', + resource_path='/api/v1/provider-credentials/reencrypt', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2110,7 +2110,7 @@ def _reencrypt_stored_provider_keys_v1_provider_credentials_reencrypt_post_seria @validate_call - def test_provider_connection_v1_provider_credentials_test_post( + def test_provider_connection_api_v1_provider_credentials_test_post( self, test_provider_request: TestProviderRequest, _request_timeout: Union[ @@ -2154,7 +2154,7 @@ def test_provider_connection_v1_provider_credentials_test_post( :return: Returns the result object. """ # noqa: E501 - _param = self._test_provider_connection_v1_provider_credentials_test_post_serialize( + _param = self._test_provider_connection_api_v1_provider_credentials_test_post_serialize( test_provider_request=test_provider_request, _request_auth=_request_auth, _content_type=_content_type, @@ -2178,7 +2178,7 @@ def test_provider_connection_v1_provider_credentials_test_post( @validate_call - def test_provider_connection_v1_provider_credentials_test_post_with_http_info( + def test_provider_connection_api_v1_provider_credentials_test_post_with_http_info( self, test_provider_request: TestProviderRequest, _request_timeout: Union[ @@ -2222,7 +2222,7 @@ def test_provider_connection_v1_provider_credentials_test_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._test_provider_connection_v1_provider_credentials_test_post_serialize( + _param = self._test_provider_connection_api_v1_provider_credentials_test_post_serialize( test_provider_request=test_provider_request, _request_auth=_request_auth, _content_type=_content_type, @@ -2246,7 +2246,7 @@ def test_provider_connection_v1_provider_credentials_test_post_with_http_info( @validate_call - def test_provider_connection_v1_provider_credentials_test_post_without_preload_content( + def test_provider_connection_api_v1_provider_credentials_test_post_without_preload_content( self, test_provider_request: TestProviderRequest, _request_timeout: Union[ @@ -2290,7 +2290,7 @@ def test_provider_connection_v1_provider_credentials_test_post_without_preload_c :return: Returns the result object. """ # noqa: E501 - _param = self._test_provider_connection_v1_provider_credentials_test_post_serialize( + _param = self._test_provider_connection_api_v1_provider_credentials_test_post_serialize( test_provider_request=test_provider_request, _request_auth=_request_auth, _content_type=_content_type, @@ -2309,7 +2309,7 @@ def test_provider_connection_v1_provider_credentials_test_post_without_preload_c return response_data.response - def _test_provider_connection_v1_provider_credentials_test_post_serialize( + def _test_provider_connection_api_v1_provider_credentials_test_post_serialize( self, test_provider_request, _request_auth, @@ -2371,7 +2371,7 @@ def _test_provider_connection_v1_provider_credentials_test_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/provider-credentials/test', + resource_path='/api/v1/provider-credentials/test', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2388,7 +2388,7 @@ def _test_provider_connection_v1_provider_credentials_test_post_serialize( @validate_call - def test_stored_provider_v1_provider_credentials_instance_test_post( + def test_stored_provider_api_v1_provider_credentials_instance_test_post( self, instance: StrictStr, _request_timeout: Union[ @@ -2432,7 +2432,7 @@ def test_stored_provider_v1_provider_credentials_instance_test_post( :return: Returns the result object. """ # noqa: E501 - _param = self._test_stored_provider_v1_provider_credentials_instance_test_post_serialize( + _param = self._test_stored_provider_api_v1_provider_credentials_instance_test_post_serialize( instance=instance, _request_auth=_request_auth, _content_type=_content_type, @@ -2456,7 +2456,7 @@ def test_stored_provider_v1_provider_credentials_instance_test_post( @validate_call - def test_stored_provider_v1_provider_credentials_instance_test_post_with_http_info( + def test_stored_provider_api_v1_provider_credentials_instance_test_post_with_http_info( self, instance: StrictStr, _request_timeout: Union[ @@ -2500,7 +2500,7 @@ def test_stored_provider_v1_provider_credentials_instance_test_post_with_http_in :return: Returns the result object. """ # noqa: E501 - _param = self._test_stored_provider_v1_provider_credentials_instance_test_post_serialize( + _param = self._test_stored_provider_api_v1_provider_credentials_instance_test_post_serialize( instance=instance, _request_auth=_request_auth, _content_type=_content_type, @@ -2524,7 +2524,7 @@ def test_stored_provider_v1_provider_credentials_instance_test_post_with_http_in @validate_call - def test_stored_provider_v1_provider_credentials_instance_test_post_without_preload_content( + def test_stored_provider_api_v1_provider_credentials_instance_test_post_without_preload_content( self, instance: StrictStr, _request_timeout: Union[ @@ -2568,7 +2568,7 @@ def test_stored_provider_v1_provider_credentials_instance_test_post_without_prel :return: Returns the result object. """ # noqa: E501 - _param = self._test_stored_provider_v1_provider_credentials_instance_test_post_serialize( + _param = self._test_stored_provider_api_v1_provider_credentials_instance_test_post_serialize( instance=instance, _request_auth=_request_auth, _content_type=_content_type, @@ -2587,7 +2587,7 @@ def test_stored_provider_v1_provider_credentials_instance_test_post_without_prel return response_data.response - def _test_stored_provider_v1_provider_credentials_instance_test_post_serialize( + def _test_stored_provider_api_v1_provider_credentials_instance_test_post_serialize( self, instance, _request_auth, @@ -2636,7 +2636,7 @@ def _test_stored_provider_v1_provider_credentials_instance_test_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/provider-credentials/{instance}/test', + resource_path='/api/v1/provider-credentials/{instance}/test', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2653,7 +2653,7 @@ def _test_stored_provider_v1_provider_credentials_instance_test_post_serialize( @validate_call - def update_stored_provider_v1_provider_credentials_instance_patch( + def update_stored_provider_api_v1_provider_credentials_instance_patch( self, instance: StrictStr, update_stored_provider_request: UpdateStoredProviderRequest, @@ -2700,7 +2700,7 @@ def update_stored_provider_v1_provider_credentials_instance_patch( :return: Returns the result object. """ # noqa: E501 - _param = self._update_stored_provider_v1_provider_credentials_instance_patch_serialize( + _param = self._update_stored_provider_api_v1_provider_credentials_instance_patch_serialize( instance=instance, update_stored_provider_request=update_stored_provider_request, _request_auth=_request_auth, @@ -2725,7 +2725,7 @@ def update_stored_provider_v1_provider_credentials_instance_patch( @validate_call - def update_stored_provider_v1_provider_credentials_instance_patch_with_http_info( + def update_stored_provider_api_v1_provider_credentials_instance_patch_with_http_info( self, instance: StrictStr, update_stored_provider_request: UpdateStoredProviderRequest, @@ -2772,7 +2772,7 @@ def update_stored_provider_v1_provider_credentials_instance_patch_with_http_info :return: Returns the result object. """ # noqa: E501 - _param = self._update_stored_provider_v1_provider_credentials_instance_patch_serialize( + _param = self._update_stored_provider_api_v1_provider_credentials_instance_patch_serialize( instance=instance, update_stored_provider_request=update_stored_provider_request, _request_auth=_request_auth, @@ -2797,7 +2797,7 @@ def update_stored_provider_v1_provider_credentials_instance_patch_with_http_info @validate_call - def update_stored_provider_v1_provider_credentials_instance_patch_without_preload_content( + def update_stored_provider_api_v1_provider_credentials_instance_patch_without_preload_content( self, instance: StrictStr, update_stored_provider_request: UpdateStoredProviderRequest, @@ -2844,7 +2844,7 @@ def update_stored_provider_v1_provider_credentials_instance_patch_without_preloa :return: Returns the result object. """ # noqa: E501 - _param = self._update_stored_provider_v1_provider_credentials_instance_patch_serialize( + _param = self._update_stored_provider_api_v1_provider_credentials_instance_patch_serialize( instance=instance, update_stored_provider_request=update_stored_provider_request, _request_auth=_request_auth, @@ -2864,7 +2864,7 @@ def update_stored_provider_v1_provider_credentials_instance_patch_without_preloa return response_data.response - def _update_stored_provider_v1_provider_credentials_instance_patch_serialize( + def _update_stored_provider_api_v1_provider_credentials_instance_patch_serialize( self, instance, update_stored_provider_request, @@ -2929,7 +2929,7 @@ def _update_stored_provider_v1_provider_credentials_instance_patch_serialize( return self.api_client.param_serialize( method='PATCH', - resource_path='/v1/provider-credentials/{instance}', + resource_path='/api/v1/provider-credentials/{instance}', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/rerank_api.py b/src/otari/_client/api/rerank_api.py index 0113099..5358d7d 100644 --- a/src/otari/_client/api/rerank_api.py +++ b/src/otari/_client/api/rerank_api.py @@ -37,7 +37,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def create_rerank_v1_rerank_post( + def create_rerank_api_v1_rerank_post( self, rerank_request: RerankRequest, _request_timeout: Union[ @@ -81,7 +81,7 @@ def create_rerank_v1_rerank_post( :return: Returns the result object. """ # noqa: E501 - _param = self._create_rerank_v1_rerank_post_serialize( + _param = self._create_rerank_api_v1_rerank_post_serialize( rerank_request=rerank_request, _request_auth=_request_auth, _content_type=_content_type, @@ -105,7 +105,7 @@ def create_rerank_v1_rerank_post( @validate_call - def create_rerank_v1_rerank_post_with_http_info( + def create_rerank_api_v1_rerank_post_with_http_info( self, rerank_request: RerankRequest, _request_timeout: Union[ @@ -149,7 +149,7 @@ def create_rerank_v1_rerank_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_rerank_v1_rerank_post_serialize( + _param = self._create_rerank_api_v1_rerank_post_serialize( rerank_request=rerank_request, _request_auth=_request_auth, _content_type=_content_type, @@ -173,7 +173,7 @@ def create_rerank_v1_rerank_post_with_http_info( @validate_call - def create_rerank_v1_rerank_post_without_preload_content( + def create_rerank_api_v1_rerank_post_without_preload_content( self, rerank_request: RerankRequest, _request_timeout: Union[ @@ -217,7 +217,7 @@ def create_rerank_v1_rerank_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._create_rerank_v1_rerank_post_serialize( + _param = self._create_rerank_api_v1_rerank_post_serialize( rerank_request=rerank_request, _request_auth=_request_auth, _content_type=_content_type, @@ -236,7 +236,7 @@ def create_rerank_v1_rerank_post_without_preload_content( return response_data.response - def _create_rerank_v1_rerank_post_serialize( + def _create_rerank_api_v1_rerank_post_serialize( self, rerank_request, _request_auth, @@ -298,7 +298,7 @@ def _create_rerank_v1_rerank_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/rerank', + resource_path='/api/v1/rerank', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/responses_api.py b/src/otari/_client/api/responses_api.py index 371fb05..410e9f1 100644 --- a/src/otari/_client/api/responses_api.py +++ b/src/otari/_client/api/responses_api.py @@ -37,7 +37,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def create_response_v1_responses_post( + def create_response_api_v1_responses_post( self, responses_request: ResponsesRequest, _request_timeout: Union[ @@ -81,7 +81,7 @@ def create_response_v1_responses_post( :return: Returns the result object. """ # noqa: E501 - _param = self._create_response_v1_responses_post_serialize( + _param = self._create_response_api_v1_responses_post_serialize( responses_request=responses_request, _request_auth=_request_auth, _content_type=_content_type, @@ -105,7 +105,7 @@ def create_response_v1_responses_post( @validate_call - def create_response_v1_responses_post_with_http_info( + def create_response_api_v1_responses_post_with_http_info( self, responses_request: ResponsesRequest, _request_timeout: Union[ @@ -149,7 +149,7 @@ def create_response_v1_responses_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_response_v1_responses_post_serialize( + _param = self._create_response_api_v1_responses_post_serialize( responses_request=responses_request, _request_auth=_request_auth, _content_type=_content_type, @@ -173,7 +173,7 @@ def create_response_v1_responses_post_with_http_info( @validate_call - def create_response_v1_responses_post_without_preload_content( + def create_response_api_v1_responses_post_without_preload_content( self, responses_request: ResponsesRequest, _request_timeout: Union[ @@ -217,7 +217,7 @@ def create_response_v1_responses_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._create_response_v1_responses_post_serialize( + _param = self._create_response_api_v1_responses_post_serialize( responses_request=responses_request, _request_auth=_request_auth, _content_type=_content_type, @@ -236,7 +236,7 @@ def create_response_v1_responses_post_without_preload_content( return response_data.response - def _create_response_v1_responses_post_serialize( + def _create_response_api_v1_responses_post_serialize( self, responses_request, _request_auth, @@ -298,7 +298,7 @@ def _create_response_v1_responses_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/responses', + resource_path='/api/v1/responses', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/routing_api.py b/src/otari/_client/api/routing_api.py index 7499668..73bbc10 100644 --- a/src/otari/_client/api/routing_api.py +++ b/src/otari/_client/api/routing_api.py @@ -46,7 +46,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def delete_organization_routing_policy_v1_organizations_me_routing_policies_name_delete( + def delete_organization_routing_policy_api_v1_organizations_me_routing_policies_name_delete( self, name: StrictStr, workspace_id: Annotated[Optional[UUID], Field(description="Delete the policy in this workspace of the caller's organization.")] = None, @@ -93,7 +93,7 @@ def delete_organization_routing_policy_v1_organizations_me_routing_policies_name :return: Returns the result object. """ # noqa: E501 - _param = self._delete_organization_routing_policy_v1_organizations_me_routing_policies_name_delete_serialize( + _param = self._delete_organization_routing_policy_api_v1_organizations_me_routing_policies_name_delete_serialize( name=name, workspace_id=workspace_id, _request_auth=_request_auth, @@ -118,7 +118,7 @@ def delete_organization_routing_policy_v1_organizations_me_routing_policies_name @validate_call - def delete_organization_routing_policy_v1_organizations_me_routing_policies_name_delete_with_http_info( + def delete_organization_routing_policy_api_v1_organizations_me_routing_policies_name_delete_with_http_info( self, name: StrictStr, workspace_id: Annotated[Optional[UUID], Field(description="Delete the policy in this workspace of the caller's organization.")] = None, @@ -165,7 +165,7 @@ def delete_organization_routing_policy_v1_organizations_me_routing_policies_name :return: Returns the result object. """ # noqa: E501 - _param = self._delete_organization_routing_policy_v1_organizations_me_routing_policies_name_delete_serialize( + _param = self._delete_organization_routing_policy_api_v1_organizations_me_routing_policies_name_delete_serialize( name=name, workspace_id=workspace_id, _request_auth=_request_auth, @@ -190,7 +190,7 @@ def delete_organization_routing_policy_v1_organizations_me_routing_policies_name @validate_call - def delete_organization_routing_policy_v1_organizations_me_routing_policies_name_delete_without_preload_content( + def delete_organization_routing_policy_api_v1_organizations_me_routing_policies_name_delete_without_preload_content( self, name: StrictStr, workspace_id: Annotated[Optional[UUID], Field(description="Delete the policy in this workspace of the caller's organization.")] = None, @@ -237,7 +237,7 @@ def delete_organization_routing_policy_v1_organizations_me_routing_policies_name :return: Returns the result object. """ # noqa: E501 - _param = self._delete_organization_routing_policy_v1_organizations_me_routing_policies_name_delete_serialize( + _param = self._delete_organization_routing_policy_api_v1_organizations_me_routing_policies_name_delete_serialize( name=name, workspace_id=workspace_id, _request_auth=_request_auth, @@ -257,7 +257,7 @@ def delete_organization_routing_policy_v1_organizations_me_routing_policies_name return response_data.response - def _delete_organization_routing_policy_v1_organizations_me_routing_policies_name_delete_serialize( + def _delete_organization_routing_policy_api_v1_organizations_me_routing_policies_name_delete_serialize( self, name, workspace_id, @@ -311,7 +311,7 @@ def _delete_organization_routing_policy_v1_organizations_me_routing_policies_nam return self.api_client.param_serialize( method='DELETE', - resource_path='/v1/organizations/me/routing-policies/{name}', + resource_path='/api/v1/organizations/me/routing-policies/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -328,7 +328,7 @@ def _delete_organization_routing_policy_v1_organizations_me_routing_policies_nam @validate_call - def delete_policy_v1_routing_policies_name_delete( + def delete_policy_api_v1_routing_policies_name_delete( self, name: StrictStr, user_id: Annotated[Optional[StrictStr], Field(description="Delete the policy scoped to this user. Omit to delete the workspace-wide one.")] = None, @@ -378,7 +378,7 @@ def delete_policy_v1_routing_policies_name_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_policy_v1_routing_policies_name_delete_serialize( + _param = self._delete_policy_api_v1_routing_policies_name_delete_serialize( name=name, user_id=user_id, workspace_id=workspace_id, @@ -404,7 +404,7 @@ def delete_policy_v1_routing_policies_name_delete( @validate_call - def delete_policy_v1_routing_policies_name_delete_with_http_info( + def delete_policy_api_v1_routing_policies_name_delete_with_http_info( self, name: StrictStr, user_id: Annotated[Optional[StrictStr], Field(description="Delete the policy scoped to this user. Omit to delete the workspace-wide one.")] = None, @@ -454,7 +454,7 @@ def delete_policy_v1_routing_policies_name_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_policy_v1_routing_policies_name_delete_serialize( + _param = self._delete_policy_api_v1_routing_policies_name_delete_serialize( name=name, user_id=user_id, workspace_id=workspace_id, @@ -480,7 +480,7 @@ def delete_policy_v1_routing_policies_name_delete_with_http_info( @validate_call - def delete_policy_v1_routing_policies_name_delete_without_preload_content( + def delete_policy_api_v1_routing_policies_name_delete_without_preload_content( self, name: StrictStr, user_id: Annotated[Optional[StrictStr], Field(description="Delete the policy scoped to this user. Omit to delete the workspace-wide one.")] = None, @@ -530,7 +530,7 @@ def delete_policy_v1_routing_policies_name_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_policy_v1_routing_policies_name_delete_serialize( + _param = self._delete_policy_api_v1_routing_policies_name_delete_serialize( name=name, user_id=user_id, workspace_id=workspace_id, @@ -551,7 +551,7 @@ def delete_policy_v1_routing_policies_name_delete_without_preload_content( return response_data.response - def _delete_policy_v1_routing_policies_name_delete_serialize( + def _delete_policy_api_v1_routing_policies_name_delete_serialize( self, name, user_id, @@ -610,7 +610,7 @@ def _delete_policy_v1_routing_policies_name_delete_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/v1/routing/policies/{name}', + resource_path='/api/v1/routing/policies/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -627,7 +627,7 @@ def _delete_policy_v1_routing_policies_name_delete_serialize( @validate_call - def explain_policy_v1_routing_policies_explain_post( + def explain_policy_api_v1_routing_policies_explain_post( self, explain_request: ExplainRequest, _request_timeout: Union[ @@ -671,7 +671,7 @@ def explain_policy_v1_routing_policies_explain_post( :return: Returns the result object. """ # noqa: E501 - _param = self._explain_policy_v1_routing_policies_explain_post_serialize( + _param = self._explain_policy_api_v1_routing_policies_explain_post_serialize( explain_request=explain_request, _request_auth=_request_auth, _content_type=_content_type, @@ -695,7 +695,7 @@ def explain_policy_v1_routing_policies_explain_post( @validate_call - def explain_policy_v1_routing_policies_explain_post_with_http_info( + def explain_policy_api_v1_routing_policies_explain_post_with_http_info( self, explain_request: ExplainRequest, _request_timeout: Union[ @@ -739,7 +739,7 @@ def explain_policy_v1_routing_policies_explain_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._explain_policy_v1_routing_policies_explain_post_serialize( + _param = self._explain_policy_api_v1_routing_policies_explain_post_serialize( explain_request=explain_request, _request_auth=_request_auth, _content_type=_content_type, @@ -763,7 +763,7 @@ def explain_policy_v1_routing_policies_explain_post_with_http_info( @validate_call - def explain_policy_v1_routing_policies_explain_post_without_preload_content( + def explain_policy_api_v1_routing_policies_explain_post_without_preload_content( self, explain_request: ExplainRequest, _request_timeout: Union[ @@ -807,7 +807,7 @@ def explain_policy_v1_routing_policies_explain_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._explain_policy_v1_routing_policies_explain_post_serialize( + _param = self._explain_policy_api_v1_routing_policies_explain_post_serialize( explain_request=explain_request, _request_auth=_request_auth, _content_type=_content_type, @@ -826,7 +826,7 @@ def explain_policy_v1_routing_policies_explain_post_without_preload_content( return response_data.response - def _explain_policy_v1_routing_policies_explain_post_serialize( + def _explain_policy_api_v1_routing_policies_explain_post_serialize( self, explain_request, _request_auth, @@ -888,7 +888,7 @@ def _explain_policy_v1_routing_policies_explain_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/routing/policies/explain', + resource_path='/api/v1/routing/policies/explain', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -905,7 +905,7 @@ def _explain_policy_v1_routing_policies_explain_post_serialize( @validate_call - def list_policies_v1_routing_policies_get( + def list_policies_api_v1_routing_policies_get( self, workspace_id: Annotated[Optional[UUID], Field(description="Only stored policies in this workspace. Config-file policies are always included, being deployment-wide. Omit to list the stored policies of every workspace.")] = None, _request_timeout: Union[ @@ -949,7 +949,7 @@ def list_policies_v1_routing_policies_get( :return: Returns the result object. """ # noqa: E501 - _param = self._list_policies_v1_routing_policies_get_serialize( + _param = self._list_policies_api_v1_routing_policies_get_serialize( workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, @@ -973,7 +973,7 @@ def list_policies_v1_routing_policies_get( @validate_call - def list_policies_v1_routing_policies_get_with_http_info( + def list_policies_api_v1_routing_policies_get_with_http_info( self, workspace_id: Annotated[Optional[UUID], Field(description="Only stored policies in this workspace. Config-file policies are always included, being deployment-wide. Omit to list the stored policies of every workspace.")] = None, _request_timeout: Union[ @@ -1017,7 +1017,7 @@ def list_policies_v1_routing_policies_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_policies_v1_routing_policies_get_serialize( + _param = self._list_policies_api_v1_routing_policies_get_serialize( workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1041,7 +1041,7 @@ def list_policies_v1_routing_policies_get_with_http_info( @validate_call - def list_policies_v1_routing_policies_get_without_preload_content( + def list_policies_api_v1_routing_policies_get_without_preload_content( self, workspace_id: Annotated[Optional[UUID], Field(description="Only stored policies in this workspace. Config-file policies are always included, being deployment-wide. Omit to list the stored policies of every workspace.")] = None, _request_timeout: Union[ @@ -1085,7 +1085,7 @@ def list_policies_v1_routing_policies_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._list_policies_v1_routing_policies_get_serialize( + _param = self._list_policies_api_v1_routing_policies_get_serialize( workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1104,7 +1104,7 @@ def list_policies_v1_routing_policies_get_without_preload_content( return response_data.response - def _list_policies_v1_routing_policies_get_serialize( + def _list_policies_api_v1_routing_policies_get_serialize( self, workspace_id, _request_auth, @@ -1155,7 +1155,7 @@ def _list_policies_v1_routing_policies_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/routing/policies', + resource_path='/api/v1/routing/policies', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1172,7 +1172,7 @@ def _list_policies_v1_routing_policies_get_serialize( @validate_call - def list_visible_routing_policies_v1_organizations_me_routing_policies_get( + def list_visible_routing_policies_api_v1_organizations_me_routing_policies_get( self, limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Maximum entries to return, stored and config-file together.")] = None, _request_timeout: Union[ @@ -1190,7 +1190,7 @@ def list_visible_routing_policies_v1_organizations_me_routing_policies_get( ) -> List[PolicyResponse]: """List Visible Routing Policies - List the routing policies in force in the workspaces this caller may see. Stored policies from the caller's visible workspaces plus the config-file policies, which are deployment-wide and resolve in every workspace. The response is the shape ``GET /v1/routing/policies`` answers, narrowed to the caller's own organization. + List the routing policies in force in the workspaces this caller may see. Stored policies from the caller's visible workspaces plus the config-file policies, which are deployment-wide and resolve in every workspace. The response is the shape ``GET /api/v1/routing/policies`` answers, narrowed to the caller's own organization. :param limit: Maximum entries to return, stored and config-file together. :type limit: int @@ -1216,7 +1216,7 @@ def list_visible_routing_policies_v1_organizations_me_routing_policies_get( :return: Returns the result object. """ # noqa: E501 - _param = self._list_visible_routing_policies_v1_organizations_me_routing_policies_get_serialize( + _param = self._list_visible_routing_policies_api_v1_organizations_me_routing_policies_get_serialize( limit=limit, _request_auth=_request_auth, _content_type=_content_type, @@ -1240,7 +1240,7 @@ def list_visible_routing_policies_v1_organizations_me_routing_policies_get( @validate_call - def list_visible_routing_policies_v1_organizations_me_routing_policies_get_with_http_info( + def list_visible_routing_policies_api_v1_organizations_me_routing_policies_get_with_http_info( self, limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Maximum entries to return, stored and config-file together.")] = None, _request_timeout: Union[ @@ -1258,7 +1258,7 @@ def list_visible_routing_policies_v1_organizations_me_routing_policies_get_with_ ) -> ApiResponse[List[PolicyResponse]]: """List Visible Routing Policies - List the routing policies in force in the workspaces this caller may see. Stored policies from the caller's visible workspaces plus the config-file policies, which are deployment-wide and resolve in every workspace. The response is the shape ``GET /v1/routing/policies`` answers, narrowed to the caller's own organization. + List the routing policies in force in the workspaces this caller may see. Stored policies from the caller's visible workspaces plus the config-file policies, which are deployment-wide and resolve in every workspace. The response is the shape ``GET /api/v1/routing/policies`` answers, narrowed to the caller's own organization. :param limit: Maximum entries to return, stored and config-file together. :type limit: int @@ -1284,7 +1284,7 @@ def list_visible_routing_policies_v1_organizations_me_routing_policies_get_with_ :return: Returns the result object. """ # noqa: E501 - _param = self._list_visible_routing_policies_v1_organizations_me_routing_policies_get_serialize( + _param = self._list_visible_routing_policies_api_v1_organizations_me_routing_policies_get_serialize( limit=limit, _request_auth=_request_auth, _content_type=_content_type, @@ -1308,7 +1308,7 @@ def list_visible_routing_policies_v1_organizations_me_routing_policies_get_with_ @validate_call - def list_visible_routing_policies_v1_organizations_me_routing_policies_get_without_preload_content( + def list_visible_routing_policies_api_v1_organizations_me_routing_policies_get_without_preload_content( self, limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Maximum entries to return, stored and config-file together.")] = None, _request_timeout: Union[ @@ -1326,7 +1326,7 @@ def list_visible_routing_policies_v1_organizations_me_routing_policies_get_witho ) -> RESTResponseType: """List Visible Routing Policies - List the routing policies in force in the workspaces this caller may see. Stored policies from the caller's visible workspaces plus the config-file policies, which are deployment-wide and resolve in every workspace. The response is the shape ``GET /v1/routing/policies`` answers, narrowed to the caller's own organization. + List the routing policies in force in the workspaces this caller may see. Stored policies from the caller's visible workspaces plus the config-file policies, which are deployment-wide and resolve in every workspace. The response is the shape ``GET /api/v1/routing/policies`` answers, narrowed to the caller's own organization. :param limit: Maximum entries to return, stored and config-file together. :type limit: int @@ -1352,7 +1352,7 @@ def list_visible_routing_policies_v1_organizations_me_routing_policies_get_witho :return: Returns the result object. """ # noqa: E501 - _param = self._list_visible_routing_policies_v1_organizations_me_routing_policies_get_serialize( + _param = self._list_visible_routing_policies_api_v1_organizations_me_routing_policies_get_serialize( limit=limit, _request_auth=_request_auth, _content_type=_content_type, @@ -1371,7 +1371,7 @@ def list_visible_routing_policies_v1_organizations_me_routing_policies_get_witho return response_data.response - def _list_visible_routing_policies_v1_organizations_me_routing_policies_get_serialize( + def _list_visible_routing_policies_api_v1_organizations_me_routing_policies_get_serialize( self, limit, _request_auth, @@ -1422,7 +1422,7 @@ def _list_visible_routing_policies_v1_organizations_me_routing_policies_get_seri return self.api_client.param_serialize( method='GET', - resource_path='/v1/organizations/me/routing-policies', + resource_path='/api/v1/organizations/me/routing-policies', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1439,7 +1439,7 @@ def _list_visible_routing_policies_v1_organizations_me_routing_policies_get_seri @validate_call - def rank_candidates_v1_routing_preferences_rank_post( + def rank_candidates_api_v1_routing_preferences_rank_post( self, rank_request: RankRequest, _request_timeout: Union[ @@ -1483,7 +1483,7 @@ def rank_candidates_v1_routing_preferences_rank_post( :return: Returns the result object. """ # noqa: E501 - _param = self._rank_candidates_v1_routing_preferences_rank_post_serialize( + _param = self._rank_candidates_api_v1_routing_preferences_rank_post_serialize( rank_request=rank_request, _request_auth=_request_auth, _content_type=_content_type, @@ -1507,7 +1507,7 @@ def rank_candidates_v1_routing_preferences_rank_post( @validate_call - def rank_candidates_v1_routing_preferences_rank_post_with_http_info( + def rank_candidates_api_v1_routing_preferences_rank_post_with_http_info( self, rank_request: RankRequest, _request_timeout: Union[ @@ -1551,7 +1551,7 @@ def rank_candidates_v1_routing_preferences_rank_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._rank_candidates_v1_routing_preferences_rank_post_serialize( + _param = self._rank_candidates_api_v1_routing_preferences_rank_post_serialize( rank_request=rank_request, _request_auth=_request_auth, _content_type=_content_type, @@ -1575,7 +1575,7 @@ def rank_candidates_v1_routing_preferences_rank_post_with_http_info( @validate_call - def rank_candidates_v1_routing_preferences_rank_post_without_preload_content( + def rank_candidates_api_v1_routing_preferences_rank_post_without_preload_content( self, rank_request: RankRequest, _request_timeout: Union[ @@ -1619,7 +1619,7 @@ def rank_candidates_v1_routing_preferences_rank_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._rank_candidates_v1_routing_preferences_rank_post_serialize( + _param = self._rank_candidates_api_v1_routing_preferences_rank_post_serialize( rank_request=rank_request, _request_auth=_request_auth, _content_type=_content_type, @@ -1638,7 +1638,7 @@ def rank_candidates_v1_routing_preferences_rank_post_without_preload_content( return response_data.response - def _rank_candidates_v1_routing_preferences_rank_post_serialize( + def _rank_candidates_api_v1_routing_preferences_rank_post_serialize( self, rank_request, _request_auth, @@ -1700,7 +1700,7 @@ def _rank_candidates_v1_routing_preferences_rank_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/routing/preferences/rank', + resource_path='/api/v1/routing/preferences/rank', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1717,7 +1717,7 @@ def _rank_candidates_v1_routing_preferences_rank_post_serialize( @validate_call - def routing_memory_status_v1_routing_status_get( + def routing_memory_status_api_v1_routing_status_get( self, user_id: Annotated[StrictStr, Field(description="Whose routing memory to report on.")], workspace_id: Annotated[Optional[UUID], Field(description="Which workspace's routing memory to report on. Omit for the default workspace.")] = None, @@ -1764,7 +1764,7 @@ def routing_memory_status_v1_routing_status_get( :return: Returns the result object. """ # noqa: E501 - _param = self._routing_memory_status_v1_routing_status_get_serialize( + _param = self._routing_memory_status_api_v1_routing_status_get_serialize( user_id=user_id, workspace_id=workspace_id, _request_auth=_request_auth, @@ -1789,7 +1789,7 @@ def routing_memory_status_v1_routing_status_get( @validate_call - def routing_memory_status_v1_routing_status_get_with_http_info( + def routing_memory_status_api_v1_routing_status_get_with_http_info( self, user_id: Annotated[StrictStr, Field(description="Whose routing memory to report on.")], workspace_id: Annotated[Optional[UUID], Field(description="Which workspace's routing memory to report on. Omit for the default workspace.")] = None, @@ -1836,7 +1836,7 @@ def routing_memory_status_v1_routing_status_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._routing_memory_status_v1_routing_status_get_serialize( + _param = self._routing_memory_status_api_v1_routing_status_get_serialize( user_id=user_id, workspace_id=workspace_id, _request_auth=_request_auth, @@ -1861,7 +1861,7 @@ def routing_memory_status_v1_routing_status_get_with_http_info( @validate_call - def routing_memory_status_v1_routing_status_get_without_preload_content( + def routing_memory_status_api_v1_routing_status_get_without_preload_content( self, user_id: Annotated[StrictStr, Field(description="Whose routing memory to report on.")], workspace_id: Annotated[Optional[UUID], Field(description="Which workspace's routing memory to report on. Omit for the default workspace.")] = None, @@ -1908,7 +1908,7 @@ def routing_memory_status_v1_routing_status_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._routing_memory_status_v1_routing_status_get_serialize( + _param = self._routing_memory_status_api_v1_routing_status_get_serialize( user_id=user_id, workspace_id=workspace_id, _request_auth=_request_auth, @@ -1928,7 +1928,7 @@ def routing_memory_status_v1_routing_status_get_without_preload_content( return response_data.response - def _routing_memory_status_v1_routing_status_get_serialize( + def _routing_memory_status_api_v1_routing_status_get_serialize( self, user_id, workspace_id, @@ -1984,7 +1984,7 @@ def _routing_memory_status_v1_routing_status_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/routing/status', + resource_path='/api/v1/routing/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2001,7 +2001,7 @@ def _routing_memory_status_v1_routing_status_get_serialize( @validate_call - def set_organization_routing_policy_v1_organizations_me_routing_policies_post( + def set_organization_routing_policy_api_v1_organizations_me_routing_policies_post( self, policy_request: PolicyRequest, _request_timeout: Union[ @@ -2045,7 +2045,7 @@ def set_organization_routing_policy_v1_organizations_me_routing_policies_post( :return: Returns the result object. """ # noqa: E501 - _param = self._set_organization_routing_policy_v1_organizations_me_routing_policies_post_serialize( + _param = self._set_organization_routing_policy_api_v1_organizations_me_routing_policies_post_serialize( policy_request=policy_request, _request_auth=_request_auth, _content_type=_content_type, @@ -2069,7 +2069,7 @@ def set_organization_routing_policy_v1_organizations_me_routing_policies_post( @validate_call - def set_organization_routing_policy_v1_organizations_me_routing_policies_post_with_http_info( + def set_organization_routing_policy_api_v1_organizations_me_routing_policies_post_with_http_info( self, policy_request: PolicyRequest, _request_timeout: Union[ @@ -2113,7 +2113,7 @@ def set_organization_routing_policy_v1_organizations_me_routing_policies_post_wi :return: Returns the result object. """ # noqa: E501 - _param = self._set_organization_routing_policy_v1_organizations_me_routing_policies_post_serialize( + _param = self._set_organization_routing_policy_api_v1_organizations_me_routing_policies_post_serialize( policy_request=policy_request, _request_auth=_request_auth, _content_type=_content_type, @@ -2137,7 +2137,7 @@ def set_organization_routing_policy_v1_organizations_me_routing_policies_post_wi @validate_call - def set_organization_routing_policy_v1_organizations_me_routing_policies_post_without_preload_content( + def set_organization_routing_policy_api_v1_organizations_me_routing_policies_post_without_preload_content( self, policy_request: PolicyRequest, _request_timeout: Union[ @@ -2181,7 +2181,7 @@ def set_organization_routing_policy_v1_organizations_me_routing_policies_post_wi :return: Returns the result object. """ # noqa: E501 - _param = self._set_organization_routing_policy_v1_organizations_me_routing_policies_post_serialize( + _param = self._set_organization_routing_policy_api_v1_organizations_me_routing_policies_post_serialize( policy_request=policy_request, _request_auth=_request_auth, _content_type=_content_type, @@ -2200,7 +2200,7 @@ def set_organization_routing_policy_v1_organizations_me_routing_policies_post_wi return response_data.response - def _set_organization_routing_policy_v1_organizations_me_routing_policies_post_serialize( + def _set_organization_routing_policy_api_v1_organizations_me_routing_policies_post_serialize( self, policy_request, _request_auth, @@ -2262,7 +2262,7 @@ def _set_organization_routing_policy_v1_organizations_me_routing_policies_post_s return self.api_client.param_serialize( method='POST', - resource_path='/v1/organizations/me/routing-policies', + resource_path='/api/v1/organizations/me/routing-policies', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2279,7 +2279,7 @@ def _set_organization_routing_policy_v1_organizations_me_routing_policies_post_s @validate_call - def set_policy_v1_routing_policies_post( + def set_policy_api_v1_routing_policies_post( self, policy_request: PolicyRequest, _request_timeout: Union[ @@ -2323,7 +2323,7 @@ def set_policy_v1_routing_policies_post( :return: Returns the result object. """ # noqa: E501 - _param = self._set_policy_v1_routing_policies_post_serialize( + _param = self._set_policy_api_v1_routing_policies_post_serialize( policy_request=policy_request, _request_auth=_request_auth, _content_type=_content_type, @@ -2347,7 +2347,7 @@ def set_policy_v1_routing_policies_post( @validate_call - def set_policy_v1_routing_policies_post_with_http_info( + def set_policy_api_v1_routing_policies_post_with_http_info( self, policy_request: PolicyRequest, _request_timeout: Union[ @@ -2391,7 +2391,7 @@ def set_policy_v1_routing_policies_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._set_policy_v1_routing_policies_post_serialize( + _param = self._set_policy_api_v1_routing_policies_post_serialize( policy_request=policy_request, _request_auth=_request_auth, _content_type=_content_type, @@ -2415,7 +2415,7 @@ def set_policy_v1_routing_policies_post_with_http_info( @validate_call - def set_policy_v1_routing_policies_post_without_preload_content( + def set_policy_api_v1_routing_policies_post_without_preload_content( self, policy_request: PolicyRequest, _request_timeout: Union[ @@ -2459,7 +2459,7 @@ def set_policy_v1_routing_policies_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._set_policy_v1_routing_policies_post_serialize( + _param = self._set_policy_api_v1_routing_policies_post_serialize( policy_request=policy_request, _request_auth=_request_auth, _content_type=_content_type, @@ -2478,7 +2478,7 @@ def set_policy_v1_routing_policies_post_without_preload_content( return response_data.response - def _set_policy_v1_routing_policies_post_serialize( + def _set_policy_api_v1_routing_policies_post_serialize( self, policy_request, _request_auth, @@ -2540,7 +2540,7 @@ def _set_policy_v1_routing_policies_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/routing/policies', + resource_path='/api/v1/routing/policies', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/scoped_budgets_api.py b/src/otari/_client/api/scoped_budgets_api.py index 2427f2f..96db256 100644 --- a/src/otari/_client/api/scoped_budgets_api.py +++ b/src/otari/_client/api/scoped_budgets_api.py @@ -41,7 +41,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def create_scoped_budget_v1_scoped_budgets_post( + def create_scoped_budget_api_v1_scoped_budgets_post( self, create_scoped_budget_request: CreateScopedBudgetRequest, _request_timeout: Union[ @@ -85,7 +85,7 @@ def create_scoped_budget_v1_scoped_budgets_post( :return: Returns the result object. """ # noqa: E501 - _param = self._create_scoped_budget_v1_scoped_budgets_post_serialize( + _param = self._create_scoped_budget_api_v1_scoped_budgets_post_serialize( create_scoped_budget_request=create_scoped_budget_request, _request_auth=_request_auth, _content_type=_content_type, @@ -109,7 +109,7 @@ def create_scoped_budget_v1_scoped_budgets_post( @validate_call - def create_scoped_budget_v1_scoped_budgets_post_with_http_info( + def create_scoped_budget_api_v1_scoped_budgets_post_with_http_info( self, create_scoped_budget_request: CreateScopedBudgetRequest, _request_timeout: Union[ @@ -153,7 +153,7 @@ def create_scoped_budget_v1_scoped_budgets_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_scoped_budget_v1_scoped_budgets_post_serialize( + _param = self._create_scoped_budget_api_v1_scoped_budgets_post_serialize( create_scoped_budget_request=create_scoped_budget_request, _request_auth=_request_auth, _content_type=_content_type, @@ -177,7 +177,7 @@ def create_scoped_budget_v1_scoped_budgets_post_with_http_info( @validate_call - def create_scoped_budget_v1_scoped_budgets_post_without_preload_content( + def create_scoped_budget_api_v1_scoped_budgets_post_without_preload_content( self, create_scoped_budget_request: CreateScopedBudgetRequest, _request_timeout: Union[ @@ -221,7 +221,7 @@ def create_scoped_budget_v1_scoped_budgets_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._create_scoped_budget_v1_scoped_budgets_post_serialize( + _param = self._create_scoped_budget_api_v1_scoped_budgets_post_serialize( create_scoped_budget_request=create_scoped_budget_request, _request_auth=_request_auth, _content_type=_content_type, @@ -240,7 +240,7 @@ def create_scoped_budget_v1_scoped_budgets_post_without_preload_content( return response_data.response - def _create_scoped_budget_v1_scoped_budgets_post_serialize( + def _create_scoped_budget_api_v1_scoped_budgets_post_serialize( self, create_scoped_budget_request, _request_auth, @@ -302,7 +302,7 @@ def _create_scoped_budget_v1_scoped_budgets_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/scoped-budgets', + resource_path='/api/v1/scoped-budgets', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -319,7 +319,7 @@ def _create_scoped_budget_v1_scoped_budgets_post_serialize( @validate_call - def delete_scoped_budget_v1_scoped_budgets_budget_id_delete( + def delete_scoped_budget_api_v1_scoped_budgets_budget_id_delete( self, budget_id: StrictStr, _request_timeout: Union[ @@ -363,7 +363,7 @@ def delete_scoped_budget_v1_scoped_budgets_budget_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_scoped_budget_v1_scoped_budgets_budget_id_delete_serialize( + _param = self._delete_scoped_budget_api_v1_scoped_budgets_budget_id_delete_serialize( budget_id=budget_id, _request_auth=_request_auth, _content_type=_content_type, @@ -387,7 +387,7 @@ def delete_scoped_budget_v1_scoped_budgets_budget_id_delete( @validate_call - def delete_scoped_budget_v1_scoped_budgets_budget_id_delete_with_http_info( + def delete_scoped_budget_api_v1_scoped_budgets_budget_id_delete_with_http_info( self, budget_id: StrictStr, _request_timeout: Union[ @@ -431,7 +431,7 @@ def delete_scoped_budget_v1_scoped_budgets_budget_id_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_scoped_budget_v1_scoped_budgets_budget_id_delete_serialize( + _param = self._delete_scoped_budget_api_v1_scoped_budgets_budget_id_delete_serialize( budget_id=budget_id, _request_auth=_request_auth, _content_type=_content_type, @@ -455,7 +455,7 @@ def delete_scoped_budget_v1_scoped_budgets_budget_id_delete_with_http_info( @validate_call - def delete_scoped_budget_v1_scoped_budgets_budget_id_delete_without_preload_content( + def delete_scoped_budget_api_v1_scoped_budgets_budget_id_delete_without_preload_content( self, budget_id: StrictStr, _request_timeout: Union[ @@ -499,7 +499,7 @@ def delete_scoped_budget_v1_scoped_budgets_budget_id_delete_without_preload_cont :return: Returns the result object. """ # noqa: E501 - _param = self._delete_scoped_budget_v1_scoped_budgets_budget_id_delete_serialize( + _param = self._delete_scoped_budget_api_v1_scoped_budgets_budget_id_delete_serialize( budget_id=budget_id, _request_auth=_request_auth, _content_type=_content_type, @@ -518,7 +518,7 @@ def delete_scoped_budget_v1_scoped_budgets_budget_id_delete_without_preload_cont return response_data.response - def _delete_scoped_budget_v1_scoped_budgets_budget_id_delete_serialize( + def _delete_scoped_budget_api_v1_scoped_budgets_budget_id_delete_serialize( self, budget_id, _request_auth, @@ -567,7 +567,7 @@ def _delete_scoped_budget_v1_scoped_budgets_budget_id_delete_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/v1/scoped-budgets/{budget_id}', + resource_path='/api/v1/scoped-budgets/{budget_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -584,7 +584,7 @@ def _delete_scoped_budget_v1_scoped_budgets_budget_id_delete_serialize( @validate_call - def get_scoped_budget_v1_scoped_budgets_budget_id_get( + def get_scoped_budget_api_v1_scoped_budgets_budget_id_get( self, budget_id: StrictStr, _request_timeout: Union[ @@ -628,7 +628,7 @@ def get_scoped_budget_v1_scoped_budgets_budget_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_scoped_budget_v1_scoped_budgets_budget_id_get_serialize( + _param = self._get_scoped_budget_api_v1_scoped_budgets_budget_id_get_serialize( budget_id=budget_id, _request_auth=_request_auth, _content_type=_content_type, @@ -652,7 +652,7 @@ def get_scoped_budget_v1_scoped_budgets_budget_id_get( @validate_call - def get_scoped_budget_v1_scoped_budgets_budget_id_get_with_http_info( + def get_scoped_budget_api_v1_scoped_budgets_budget_id_get_with_http_info( self, budget_id: StrictStr, _request_timeout: Union[ @@ -696,7 +696,7 @@ def get_scoped_budget_v1_scoped_budgets_budget_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_scoped_budget_v1_scoped_budgets_budget_id_get_serialize( + _param = self._get_scoped_budget_api_v1_scoped_budgets_budget_id_get_serialize( budget_id=budget_id, _request_auth=_request_auth, _content_type=_content_type, @@ -720,7 +720,7 @@ def get_scoped_budget_v1_scoped_budgets_budget_id_get_with_http_info( @validate_call - def get_scoped_budget_v1_scoped_budgets_budget_id_get_without_preload_content( + def get_scoped_budget_api_v1_scoped_budgets_budget_id_get_without_preload_content( self, budget_id: StrictStr, _request_timeout: Union[ @@ -764,7 +764,7 @@ def get_scoped_budget_v1_scoped_budgets_budget_id_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_scoped_budget_v1_scoped_budgets_budget_id_get_serialize( + _param = self._get_scoped_budget_api_v1_scoped_budgets_budget_id_get_serialize( budget_id=budget_id, _request_auth=_request_auth, _content_type=_content_type, @@ -783,7 +783,7 @@ def get_scoped_budget_v1_scoped_budgets_budget_id_get_without_preload_content( return response_data.response - def _get_scoped_budget_v1_scoped_budgets_budget_id_get_serialize( + def _get_scoped_budget_api_v1_scoped_budgets_budget_id_get_serialize( self, budget_id, _request_auth, @@ -832,7 +832,7 @@ def _get_scoped_budget_v1_scoped_budgets_budget_id_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/scoped-budgets/{budget_id}', + resource_path='/api/v1/scoped-budgets/{budget_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -849,7 +849,7 @@ def _get_scoped_budget_v1_scoped_budgets_budget_id_get_serialize( @validate_call - def list_scoped_budgets_v1_scoped_budgets_get( + def list_scoped_budgets_api_v1_scoped_budgets_get( self, scope_type: Optional[StrictStr] = None, scope_id: Optional[Annotated[str, Field(strict=True, max_length=255)]] = None, @@ -902,7 +902,7 @@ def list_scoped_budgets_v1_scoped_budgets_get( :return: Returns the result object. """ # noqa: E501 - _param = self._list_scoped_budgets_v1_scoped_budgets_get_serialize( + _param = self._list_scoped_budgets_api_v1_scoped_budgets_get_serialize( scope_type=scope_type, scope_id=scope_id, skip=skip, @@ -929,7 +929,7 @@ def list_scoped_budgets_v1_scoped_budgets_get( @validate_call - def list_scoped_budgets_v1_scoped_budgets_get_with_http_info( + def list_scoped_budgets_api_v1_scoped_budgets_get_with_http_info( self, scope_type: Optional[StrictStr] = None, scope_id: Optional[Annotated[str, Field(strict=True, max_length=255)]] = None, @@ -982,7 +982,7 @@ def list_scoped_budgets_v1_scoped_budgets_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_scoped_budgets_v1_scoped_budgets_get_serialize( + _param = self._list_scoped_budgets_api_v1_scoped_budgets_get_serialize( scope_type=scope_type, scope_id=scope_id, skip=skip, @@ -1009,7 +1009,7 @@ def list_scoped_budgets_v1_scoped_budgets_get_with_http_info( @validate_call - def list_scoped_budgets_v1_scoped_budgets_get_without_preload_content( + def list_scoped_budgets_api_v1_scoped_budgets_get_without_preload_content( self, scope_type: Optional[StrictStr] = None, scope_id: Optional[Annotated[str, Field(strict=True, max_length=255)]] = None, @@ -1062,7 +1062,7 @@ def list_scoped_budgets_v1_scoped_budgets_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._list_scoped_budgets_v1_scoped_budgets_get_serialize( + _param = self._list_scoped_budgets_api_v1_scoped_budgets_get_serialize( scope_type=scope_type, scope_id=scope_id, skip=skip, @@ -1084,7 +1084,7 @@ def list_scoped_budgets_v1_scoped_budgets_get_without_preload_content( return response_data.response - def _list_scoped_budgets_v1_scoped_budgets_get_serialize( + def _list_scoped_budgets_api_v1_scoped_budgets_get_serialize( self, scope_type, scope_id, @@ -1150,7 +1150,7 @@ def _list_scoped_budgets_v1_scoped_budgets_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/scoped-budgets', + resource_path='/api/v1/scoped-budgets', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1167,7 +1167,7 @@ def _list_scoped_budgets_v1_scoped_budgets_get_serialize( @validate_call - def update_scoped_budget_v1_scoped_budgets_budget_id_patch( + def update_scoped_budget_api_v1_scoped_budgets_budget_id_patch( self, budget_id: StrictStr, update_scoped_budget_request: UpdateScopedBudgetRequest, @@ -1214,7 +1214,7 @@ def update_scoped_budget_v1_scoped_budgets_budget_id_patch( :return: Returns the result object. """ # noqa: E501 - _param = self._update_scoped_budget_v1_scoped_budgets_budget_id_patch_serialize( + _param = self._update_scoped_budget_api_v1_scoped_budgets_budget_id_patch_serialize( budget_id=budget_id, update_scoped_budget_request=update_scoped_budget_request, _request_auth=_request_auth, @@ -1239,7 +1239,7 @@ def update_scoped_budget_v1_scoped_budgets_budget_id_patch( @validate_call - def update_scoped_budget_v1_scoped_budgets_budget_id_patch_with_http_info( + def update_scoped_budget_api_v1_scoped_budgets_budget_id_patch_with_http_info( self, budget_id: StrictStr, update_scoped_budget_request: UpdateScopedBudgetRequest, @@ -1286,7 +1286,7 @@ def update_scoped_budget_v1_scoped_budgets_budget_id_patch_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._update_scoped_budget_v1_scoped_budgets_budget_id_patch_serialize( + _param = self._update_scoped_budget_api_v1_scoped_budgets_budget_id_patch_serialize( budget_id=budget_id, update_scoped_budget_request=update_scoped_budget_request, _request_auth=_request_auth, @@ -1311,7 +1311,7 @@ def update_scoped_budget_v1_scoped_budgets_budget_id_patch_with_http_info( @validate_call - def update_scoped_budget_v1_scoped_budgets_budget_id_patch_without_preload_content( + def update_scoped_budget_api_v1_scoped_budgets_budget_id_patch_without_preload_content( self, budget_id: StrictStr, update_scoped_budget_request: UpdateScopedBudgetRequest, @@ -1358,7 +1358,7 @@ def update_scoped_budget_v1_scoped_budgets_budget_id_patch_without_preload_conte :return: Returns the result object. """ # noqa: E501 - _param = self._update_scoped_budget_v1_scoped_budgets_budget_id_patch_serialize( + _param = self._update_scoped_budget_api_v1_scoped_budgets_budget_id_patch_serialize( budget_id=budget_id, update_scoped_budget_request=update_scoped_budget_request, _request_auth=_request_auth, @@ -1378,7 +1378,7 @@ def update_scoped_budget_v1_scoped_budgets_budget_id_patch_without_preload_conte return response_data.response - def _update_scoped_budget_v1_scoped_budgets_budget_id_patch_serialize( + def _update_scoped_budget_api_v1_scoped_budgets_budget_id_patch_serialize( self, budget_id, update_scoped_budget_request, @@ -1443,7 +1443,7 @@ def _update_scoped_budget_v1_scoped_budgets_budget_id_patch_serialize( return self.api_client.param_serialize( method='PATCH', - resource_path='/v1/scoped-budgets/{budget_id}', + resource_path='/api/v1/scoped-budgets/{budget_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/search_api.py b/src/otari/_client/api/search_api.py index ba978bc..b47e5ea 100644 --- a/src/otari/_client/api/search_api.py +++ b/src/otari/_client/api/search_api.py @@ -39,9 +39,8 @@ def __init__(self, api_client=None) -> None: @validate_call - def create_search_for_tool_v1_search_search_tool_name_post( + def create_search_api_v1_search_post( self, - search_tool_name: Annotated[StrictStr, Field(description="Configured search tool to run against")], search_request: SearchRequest, _request_timeout: Union[ None, @@ -56,12 +55,10 @@ def create_search_for_tool_v1_search_search_tool_name_post( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> SearchResponse: - """Create Search For Tool + """Create Search - Run a search against the search tool named in the path. Identical to ``POST /v1/search`` except that the path names the tool, which is the form LiteLLM clients use. Any ``search_tool_name`` in the body is ignored. Authentication modes: - Master key: the ``user`` field is required and may name any existing user. - API key: usage and spend always bind to the key's own user. A ``user`` field naming a different user is rejected with 403 (or ignored, when the key's own ``reject_user_mismatch`` is false, or the deployment-wide setting is disabled and the key does not override it); it is never billed to that user. + Run a search against a configured search tool. The tool is taken from ``search_tool_name``, which may be omitted when exactly one tool is configured. Authentication modes: - Master key: the ``user`` field is required and may name any existing user. - API key: usage and spend always bind to the key's own user. A ``user`` field naming a different user is rejected with 403 (or ignored, when the key's own ``reject_user_mismatch`` is false, or the deployment-wide setting is disabled and the key does not override it); it is never billed to that user. - :param search_tool_name: Configured search tool to run against (required) - :type search_tool_name: str :param search_request: (required) :type search_request: SearchRequest :param _request_timeout: timeout setting for this request. If one @@ -86,8 +83,7 @@ def create_search_for_tool_v1_search_search_tool_name_post( :return: Returns the result object. """ # noqa: E501 - _param = self._create_search_for_tool_v1_search_search_tool_name_post_serialize( - search_tool_name=search_tool_name, + _param = self._create_search_api_v1_search_post_serialize( search_request=search_request, _request_auth=_request_auth, _content_type=_content_type, @@ -111,9 +107,8 @@ def create_search_for_tool_v1_search_search_tool_name_post( @validate_call - def create_search_for_tool_v1_search_search_tool_name_post_with_http_info( + def create_search_api_v1_search_post_with_http_info( self, - search_tool_name: Annotated[StrictStr, Field(description="Configured search tool to run against")], search_request: SearchRequest, _request_timeout: Union[ None, @@ -128,12 +123,10 @@ def create_search_for_tool_v1_search_search_tool_name_post_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[SearchResponse]: - """Create Search For Tool + """Create Search - Run a search against the search tool named in the path. Identical to ``POST /v1/search`` except that the path names the tool, which is the form LiteLLM clients use. Any ``search_tool_name`` in the body is ignored. Authentication modes: - Master key: the ``user`` field is required and may name any existing user. - API key: usage and spend always bind to the key's own user. A ``user`` field naming a different user is rejected with 403 (or ignored, when the key's own ``reject_user_mismatch`` is false, or the deployment-wide setting is disabled and the key does not override it); it is never billed to that user. + Run a search against a configured search tool. The tool is taken from ``search_tool_name``, which may be omitted when exactly one tool is configured. Authentication modes: - Master key: the ``user`` field is required and may name any existing user. - API key: usage and spend always bind to the key's own user. A ``user`` field naming a different user is rejected with 403 (or ignored, when the key's own ``reject_user_mismatch`` is false, or the deployment-wide setting is disabled and the key does not override it); it is never billed to that user. - :param search_tool_name: Configured search tool to run against (required) - :type search_tool_name: str :param search_request: (required) :type search_request: SearchRequest :param _request_timeout: timeout setting for this request. If one @@ -158,8 +151,7 @@ def create_search_for_tool_v1_search_search_tool_name_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_search_for_tool_v1_search_search_tool_name_post_serialize( - search_tool_name=search_tool_name, + _param = self._create_search_api_v1_search_post_serialize( search_request=search_request, _request_auth=_request_auth, _content_type=_content_type, @@ -183,9 +175,8 @@ def create_search_for_tool_v1_search_search_tool_name_post_with_http_info( @validate_call - def create_search_for_tool_v1_search_search_tool_name_post_without_preload_content( + def create_search_api_v1_search_post_without_preload_content( self, - search_tool_name: Annotated[StrictStr, Field(description="Configured search tool to run against")], search_request: SearchRequest, _request_timeout: Union[ None, @@ -200,12 +191,10 @@ def create_search_for_tool_v1_search_search_tool_name_post_without_preload_conte _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Create Search For Tool + """Create Search - Run a search against the search tool named in the path. Identical to ``POST /v1/search`` except that the path names the tool, which is the form LiteLLM clients use. Any ``search_tool_name`` in the body is ignored. Authentication modes: - Master key: the ``user`` field is required and may name any existing user. - API key: usage and spend always bind to the key's own user. A ``user`` field naming a different user is rejected with 403 (or ignored, when the key's own ``reject_user_mismatch`` is false, or the deployment-wide setting is disabled and the key does not override it); it is never billed to that user. + Run a search against a configured search tool. The tool is taken from ``search_tool_name``, which may be omitted when exactly one tool is configured. Authentication modes: - Master key: the ``user`` field is required and may name any existing user. - API key: usage and spend always bind to the key's own user. A ``user`` field naming a different user is rejected with 403 (or ignored, when the key's own ``reject_user_mismatch`` is false, or the deployment-wide setting is disabled and the key does not override it); it is never billed to that user. - :param search_tool_name: Configured search tool to run against (required) - :type search_tool_name: str :param search_request: (required) :type search_request: SearchRequest :param _request_timeout: timeout setting for this request. If one @@ -230,8 +219,7 @@ def create_search_for_tool_v1_search_search_tool_name_post_without_preload_conte :return: Returns the result object. """ # noqa: E501 - _param = self._create_search_for_tool_v1_search_search_tool_name_post_serialize( - search_tool_name=search_tool_name, + _param = self._create_search_api_v1_search_post_serialize( search_request=search_request, _request_auth=_request_auth, _content_type=_content_type, @@ -250,9 +238,8 @@ def create_search_for_tool_v1_search_search_tool_name_post_without_preload_conte return response_data.response - def _create_search_for_tool_v1_search_search_tool_name_post_serialize( + def _create_search_api_v1_search_post_serialize( self, - search_tool_name, search_request, _request_auth, _content_type, @@ -275,8 +262,6 @@ def _create_search_for_tool_v1_search_search_tool_name_post_serialize( _body_params: Optional[bytes] = None # process the path parameters - if search_tool_name is not None: - _path_params['search_tool_name'] = search_tool_name # process the query parameters # process the header parameters # process the form parameters @@ -315,7 +300,7 @@ def _create_search_for_tool_v1_search_search_tool_name_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/search/{search_tool_name}', + resource_path='/api/v1/search', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -332,8 +317,9 @@ def _create_search_for_tool_v1_search_search_tool_name_post_serialize( @validate_call - def create_search_v1_search_post( + def create_search_for_tool_api_v1_search_search_tool_name_post( self, + search_tool_name: Annotated[StrictStr, Field(description="Configured search tool to run against")], search_request: SearchRequest, _request_timeout: Union[ None, @@ -348,10 +334,12 @@ def create_search_v1_search_post( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> SearchResponse: - """Create Search + """Create Search For Tool - Run a search against a configured search tool. The tool is taken from ``search_tool_name``, which may be omitted when exactly one tool is configured. Authentication modes: - Master key: the ``user`` field is required and may name any existing user. - API key: usage and spend always bind to the key's own user. A ``user`` field naming a different user is rejected with 403 (or ignored, when the key's own ``reject_user_mismatch`` is false, or the deployment-wide setting is disabled and the key does not override it); it is never billed to that user. + Run a search against the search tool named in the path. Identical to ``POST /api/v1/search`` except that the path names the tool, which is the form LiteLLM clients use. Any ``search_tool_name`` in the body is ignored. Authentication modes: - Master key: the ``user`` field is required and may name any existing user. - API key: usage and spend always bind to the key's own user. A ``user`` field naming a different user is rejected with 403 (or ignored, when the key's own ``reject_user_mismatch`` is false, or the deployment-wide setting is disabled and the key does not override it); it is never billed to that user. + :param search_tool_name: Configured search tool to run against (required) + :type search_tool_name: str :param search_request: (required) :type search_request: SearchRequest :param _request_timeout: timeout setting for this request. If one @@ -376,7 +364,8 @@ def create_search_v1_search_post( :return: Returns the result object. """ # noqa: E501 - _param = self._create_search_v1_search_post_serialize( + _param = self._create_search_for_tool_api_v1_search_search_tool_name_post_serialize( + search_tool_name=search_tool_name, search_request=search_request, _request_auth=_request_auth, _content_type=_content_type, @@ -400,8 +389,9 @@ def create_search_v1_search_post( @validate_call - def create_search_v1_search_post_with_http_info( + def create_search_for_tool_api_v1_search_search_tool_name_post_with_http_info( self, + search_tool_name: Annotated[StrictStr, Field(description="Configured search tool to run against")], search_request: SearchRequest, _request_timeout: Union[ None, @@ -416,10 +406,12 @@ def create_search_v1_search_post_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[SearchResponse]: - """Create Search + """Create Search For Tool - Run a search against a configured search tool. The tool is taken from ``search_tool_name``, which may be omitted when exactly one tool is configured. Authentication modes: - Master key: the ``user`` field is required and may name any existing user. - API key: usage and spend always bind to the key's own user. A ``user`` field naming a different user is rejected with 403 (or ignored, when the key's own ``reject_user_mismatch`` is false, or the deployment-wide setting is disabled and the key does not override it); it is never billed to that user. + Run a search against the search tool named in the path. Identical to ``POST /api/v1/search`` except that the path names the tool, which is the form LiteLLM clients use. Any ``search_tool_name`` in the body is ignored. Authentication modes: - Master key: the ``user`` field is required and may name any existing user. - API key: usage and spend always bind to the key's own user. A ``user`` field naming a different user is rejected with 403 (or ignored, when the key's own ``reject_user_mismatch`` is false, or the deployment-wide setting is disabled and the key does not override it); it is never billed to that user. + :param search_tool_name: Configured search tool to run against (required) + :type search_tool_name: str :param search_request: (required) :type search_request: SearchRequest :param _request_timeout: timeout setting for this request. If one @@ -444,7 +436,8 @@ def create_search_v1_search_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_search_v1_search_post_serialize( + _param = self._create_search_for_tool_api_v1_search_search_tool_name_post_serialize( + search_tool_name=search_tool_name, search_request=search_request, _request_auth=_request_auth, _content_type=_content_type, @@ -468,8 +461,9 @@ def create_search_v1_search_post_with_http_info( @validate_call - def create_search_v1_search_post_without_preload_content( + def create_search_for_tool_api_v1_search_search_tool_name_post_without_preload_content( self, + search_tool_name: Annotated[StrictStr, Field(description="Configured search tool to run against")], search_request: SearchRequest, _request_timeout: Union[ None, @@ -484,10 +478,12 @@ def create_search_v1_search_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Create Search + """Create Search For Tool - Run a search against a configured search tool. The tool is taken from ``search_tool_name``, which may be omitted when exactly one tool is configured. Authentication modes: - Master key: the ``user`` field is required and may name any existing user. - API key: usage and spend always bind to the key's own user. A ``user`` field naming a different user is rejected with 403 (or ignored, when the key's own ``reject_user_mismatch`` is false, or the deployment-wide setting is disabled and the key does not override it); it is never billed to that user. + Run a search against the search tool named in the path. Identical to ``POST /api/v1/search`` except that the path names the tool, which is the form LiteLLM clients use. Any ``search_tool_name`` in the body is ignored. Authentication modes: - Master key: the ``user`` field is required and may name any existing user. - API key: usage and spend always bind to the key's own user. A ``user`` field naming a different user is rejected with 403 (or ignored, when the key's own ``reject_user_mismatch`` is false, or the deployment-wide setting is disabled and the key does not override it); it is never billed to that user. + :param search_tool_name: Configured search tool to run against (required) + :type search_tool_name: str :param search_request: (required) :type search_request: SearchRequest :param _request_timeout: timeout setting for this request. If one @@ -512,7 +508,8 @@ def create_search_v1_search_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._create_search_v1_search_post_serialize( + _param = self._create_search_for_tool_api_v1_search_search_tool_name_post_serialize( + search_tool_name=search_tool_name, search_request=search_request, _request_auth=_request_auth, _content_type=_content_type, @@ -531,8 +528,9 @@ def create_search_v1_search_post_without_preload_content( return response_data.response - def _create_search_v1_search_post_serialize( + def _create_search_for_tool_api_v1_search_search_tool_name_post_serialize( self, + search_tool_name, search_request, _request_auth, _content_type, @@ -555,6 +553,8 @@ def _create_search_v1_search_post_serialize( _body_params: Optional[bytes] = None # process the path parameters + if search_tool_name is not None: + _path_params['search_tool_name'] = search_tool_name # process the query parameters # process the header parameters # process the form parameters @@ -593,7 +593,7 @@ def _create_search_v1_search_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/search', + resource_path='/api/v1/search/{search_tool_name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/search_tools_api.py b/src/otari/_client/api/search_tools_api.py index c4cb11c..755deb7 100644 --- a/src/otari/_client/api/search_tools_api.py +++ b/src/otari/_client/api/search_tools_api.py @@ -43,7 +43,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def create_search_tool_v1_search_tools_post( + def create_search_tool_api_v1_search_tools_post( self, create_search_tool_request: CreateSearchToolRequest, _request_timeout: Union[ @@ -87,7 +87,7 @@ def create_search_tool_v1_search_tools_post( :return: Returns the result object. """ # noqa: E501 - _param = self._create_search_tool_v1_search_tools_post_serialize( + _param = self._create_search_tool_api_v1_search_tools_post_serialize( create_search_tool_request=create_search_tool_request, _request_auth=_request_auth, _content_type=_content_type, @@ -111,7 +111,7 @@ def create_search_tool_v1_search_tools_post( @validate_call - def create_search_tool_v1_search_tools_post_with_http_info( + def create_search_tool_api_v1_search_tools_post_with_http_info( self, create_search_tool_request: CreateSearchToolRequest, _request_timeout: Union[ @@ -155,7 +155,7 @@ def create_search_tool_v1_search_tools_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_search_tool_v1_search_tools_post_serialize( + _param = self._create_search_tool_api_v1_search_tools_post_serialize( create_search_tool_request=create_search_tool_request, _request_auth=_request_auth, _content_type=_content_type, @@ -179,7 +179,7 @@ def create_search_tool_v1_search_tools_post_with_http_info( @validate_call - def create_search_tool_v1_search_tools_post_without_preload_content( + def create_search_tool_api_v1_search_tools_post_without_preload_content( self, create_search_tool_request: CreateSearchToolRequest, _request_timeout: Union[ @@ -223,7 +223,7 @@ def create_search_tool_v1_search_tools_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._create_search_tool_v1_search_tools_post_serialize( + _param = self._create_search_tool_api_v1_search_tools_post_serialize( create_search_tool_request=create_search_tool_request, _request_auth=_request_auth, _content_type=_content_type, @@ -242,7 +242,7 @@ def create_search_tool_v1_search_tools_post_without_preload_content( return response_data.response - def _create_search_tool_v1_search_tools_post_serialize( + def _create_search_tool_api_v1_search_tools_post_serialize( self, create_search_tool_request, _request_auth, @@ -304,7 +304,7 @@ def _create_search_tool_v1_search_tools_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/search-tools', + resource_path='/api/v1/search-tools', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -321,7 +321,7 @@ def _create_search_tool_v1_search_tools_post_serialize( @validate_call - def delete_stored_search_tool_v1_search_tools_name_delete( + def delete_stored_search_tool_api_v1_search_tools_name_delete( self, name: StrictStr, _request_timeout: Union[ @@ -365,7 +365,7 @@ def delete_stored_search_tool_v1_search_tools_name_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_stored_search_tool_v1_search_tools_name_delete_serialize( + _param = self._delete_stored_search_tool_api_v1_search_tools_name_delete_serialize( name=name, _request_auth=_request_auth, _content_type=_content_type, @@ -389,7 +389,7 @@ def delete_stored_search_tool_v1_search_tools_name_delete( @validate_call - def delete_stored_search_tool_v1_search_tools_name_delete_with_http_info( + def delete_stored_search_tool_api_v1_search_tools_name_delete_with_http_info( self, name: StrictStr, _request_timeout: Union[ @@ -433,7 +433,7 @@ def delete_stored_search_tool_v1_search_tools_name_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_stored_search_tool_v1_search_tools_name_delete_serialize( + _param = self._delete_stored_search_tool_api_v1_search_tools_name_delete_serialize( name=name, _request_auth=_request_auth, _content_type=_content_type, @@ -457,7 +457,7 @@ def delete_stored_search_tool_v1_search_tools_name_delete_with_http_info( @validate_call - def delete_stored_search_tool_v1_search_tools_name_delete_without_preload_content( + def delete_stored_search_tool_api_v1_search_tools_name_delete_without_preload_content( self, name: StrictStr, _request_timeout: Union[ @@ -501,7 +501,7 @@ def delete_stored_search_tool_v1_search_tools_name_delete_without_preload_conten :return: Returns the result object. """ # noqa: E501 - _param = self._delete_stored_search_tool_v1_search_tools_name_delete_serialize( + _param = self._delete_stored_search_tool_api_v1_search_tools_name_delete_serialize( name=name, _request_auth=_request_auth, _content_type=_content_type, @@ -520,7 +520,7 @@ def delete_stored_search_tool_v1_search_tools_name_delete_without_preload_conten return response_data.response - def _delete_stored_search_tool_v1_search_tools_name_delete_serialize( + def _delete_stored_search_tool_api_v1_search_tools_name_delete_serialize( self, name, _request_auth, @@ -569,7 +569,7 @@ def _delete_stored_search_tool_v1_search_tools_name_delete_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/v1/search-tools/{name}', + resource_path='/api/v1/search-tools/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -586,7 +586,7 @@ def _delete_stored_search_tool_v1_search_tools_name_delete_serialize( @validate_call - def list_all_search_tools_v1_search_tools_get( + def list_all_search_tools_api_v1_search_tools_get( self, _request_timeout: Union[ None, @@ -603,7 +603,7 @@ def list_all_search_tools_v1_search_tools_get( ) -> SearchToolsResponse: """List All Search Tools - List every search tool ``POST /v1/search`` can name. ``stored`` are the editable rows written through this API; ``config`` are the config-file entries, which are still honored and are reported so the operator can see the whole set. Keys are never returned, only ``last4``. + List every search tool ``POST /api/v1/search`` can name. ``stored`` are the editable rows written through this API; ``config`` are the config-file entries, which are still honored and are reported so the operator can see the whole set. Keys are never returned, only ``last4``. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -627,7 +627,7 @@ def list_all_search_tools_v1_search_tools_get( :return: Returns the result object. """ # noqa: E501 - _param = self._list_all_search_tools_v1_search_tools_get_serialize( + _param = self._list_all_search_tools_api_v1_search_tools_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -649,7 +649,7 @@ def list_all_search_tools_v1_search_tools_get( @validate_call - def list_all_search_tools_v1_search_tools_get_with_http_info( + def list_all_search_tools_api_v1_search_tools_get_with_http_info( self, _request_timeout: Union[ None, @@ -666,7 +666,7 @@ def list_all_search_tools_v1_search_tools_get_with_http_info( ) -> ApiResponse[SearchToolsResponse]: """List All Search Tools - List every search tool ``POST /v1/search`` can name. ``stored`` are the editable rows written through this API; ``config`` are the config-file entries, which are still honored and are reported so the operator can see the whole set. Keys are never returned, only ``last4``. + List every search tool ``POST /api/v1/search`` can name. ``stored`` are the editable rows written through this API; ``config`` are the config-file entries, which are still honored and are reported so the operator can see the whole set. Keys are never returned, only ``last4``. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -690,7 +690,7 @@ def list_all_search_tools_v1_search_tools_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_all_search_tools_v1_search_tools_get_serialize( + _param = self._list_all_search_tools_api_v1_search_tools_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -712,7 +712,7 @@ def list_all_search_tools_v1_search_tools_get_with_http_info( @validate_call - def list_all_search_tools_v1_search_tools_get_without_preload_content( + def list_all_search_tools_api_v1_search_tools_get_without_preload_content( self, _request_timeout: Union[ None, @@ -729,7 +729,7 @@ def list_all_search_tools_v1_search_tools_get_without_preload_content( ) -> RESTResponseType: """List All Search Tools - List every search tool ``POST /v1/search`` can name. ``stored`` are the editable rows written through this API; ``config`` are the config-file entries, which are still honored and are reported so the operator can see the whole set. Keys are never returned, only ``last4``. + List every search tool ``POST /api/v1/search`` can name. ``stored`` are the editable rows written through this API; ``config`` are the config-file entries, which are still honored and are reported so the operator can see the whole set. Keys are never returned, only ``last4``. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -753,7 +753,7 @@ def list_all_search_tools_v1_search_tools_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._list_all_search_tools_v1_search_tools_get_serialize( + _param = self._list_all_search_tools_api_v1_search_tools_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -770,7 +770,7 @@ def list_all_search_tools_v1_search_tools_get_without_preload_content( return response_data.response - def _list_all_search_tools_v1_search_tools_get_serialize( + def _list_all_search_tools_api_v1_search_tools_get_serialize( self, _request_auth, _content_type, @@ -816,7 +816,7 @@ def _list_all_search_tools_v1_search_tools_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/search-tools', + resource_path='/api/v1/search-tools', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -833,7 +833,7 @@ def _list_all_search_tools_v1_search_tools_get_serialize( @validate_call - def list_search_providers_v1_search_tools_providers_get( + def list_search_providers_api_v1_search_tools_providers_get( self, _request_timeout: Union[ None, @@ -874,7 +874,7 @@ def list_search_providers_v1_search_tools_providers_get( :return: Returns the result object. """ # noqa: E501 - _param = self._list_search_providers_v1_search_tools_providers_get_serialize( + _param = self._list_search_providers_api_v1_search_tools_providers_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -896,7 +896,7 @@ def list_search_providers_v1_search_tools_providers_get( @validate_call - def list_search_providers_v1_search_tools_providers_get_with_http_info( + def list_search_providers_api_v1_search_tools_providers_get_with_http_info( self, _request_timeout: Union[ None, @@ -937,7 +937,7 @@ def list_search_providers_v1_search_tools_providers_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_search_providers_v1_search_tools_providers_get_serialize( + _param = self._list_search_providers_api_v1_search_tools_providers_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -959,7 +959,7 @@ def list_search_providers_v1_search_tools_providers_get_with_http_info( @validate_call - def list_search_providers_v1_search_tools_providers_get_without_preload_content( + def list_search_providers_api_v1_search_tools_providers_get_without_preload_content( self, _request_timeout: Union[ None, @@ -1000,7 +1000,7 @@ def list_search_providers_v1_search_tools_providers_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._list_search_providers_v1_search_tools_providers_get_serialize( + _param = self._list_search_providers_api_v1_search_tools_providers_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1017,7 +1017,7 @@ def list_search_providers_v1_search_tools_providers_get_without_preload_content( return response_data.response - def _list_search_providers_v1_search_tools_providers_get_serialize( + def _list_search_providers_api_v1_search_tools_providers_get_serialize( self, _request_auth, _content_type, @@ -1063,7 +1063,7 @@ def _list_search_providers_v1_search_tools_providers_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/search-tools/providers', + resource_path='/api/v1/search-tools/providers', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1080,7 +1080,7 @@ def _list_search_providers_v1_search_tools_providers_get_serialize( @validate_call - def reencrypt_stored_search_tool_keys_v1_search_tools_reencrypt_post( + def reencrypt_stored_search_tool_keys_api_v1_search_tools_reencrypt_post( self, _request_timeout: Union[ None, @@ -1097,7 +1097,7 @@ def reencrypt_stored_search_tool_keys_v1_search_tools_reencrypt_post( ) -> ReencryptSearchToolsResponse: """Reencrypt Stored Search Tool Keys - Re-encrypt stored search-tool keys with the primary OTARI_SECRET_KEY. The search-tool half of the ``OTARI_SECRET_KEY`` rotation procedure; run it alongside ``POST /v1/provider-credentials/reencrypt``. Rows that cannot be decrypted are left untouched and must be recovered by replacing the affected tool's key. + Re-encrypt stored search-tool keys with the primary OTARI_SECRET_KEY. The search-tool half of the ``OTARI_SECRET_KEY`` rotation procedure; run it alongside ``POST /api/v1/provider-credentials/reencrypt``. Rows that cannot be decrypted are left untouched and must be recovered by replacing the affected tool's key. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1121,7 +1121,7 @@ def reencrypt_stored_search_tool_keys_v1_search_tools_reencrypt_post( :return: Returns the result object. """ # noqa: E501 - _param = self._reencrypt_stored_search_tool_keys_v1_search_tools_reencrypt_post_serialize( + _param = self._reencrypt_stored_search_tool_keys_api_v1_search_tools_reencrypt_post_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1143,7 +1143,7 @@ def reencrypt_stored_search_tool_keys_v1_search_tools_reencrypt_post( @validate_call - def reencrypt_stored_search_tool_keys_v1_search_tools_reencrypt_post_with_http_info( + def reencrypt_stored_search_tool_keys_api_v1_search_tools_reencrypt_post_with_http_info( self, _request_timeout: Union[ None, @@ -1160,7 +1160,7 @@ def reencrypt_stored_search_tool_keys_v1_search_tools_reencrypt_post_with_http_i ) -> ApiResponse[ReencryptSearchToolsResponse]: """Reencrypt Stored Search Tool Keys - Re-encrypt stored search-tool keys with the primary OTARI_SECRET_KEY. The search-tool half of the ``OTARI_SECRET_KEY`` rotation procedure; run it alongside ``POST /v1/provider-credentials/reencrypt``. Rows that cannot be decrypted are left untouched and must be recovered by replacing the affected tool's key. + Re-encrypt stored search-tool keys with the primary OTARI_SECRET_KEY. The search-tool half of the ``OTARI_SECRET_KEY`` rotation procedure; run it alongside ``POST /api/v1/provider-credentials/reencrypt``. Rows that cannot be decrypted are left untouched and must be recovered by replacing the affected tool's key. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1184,7 +1184,7 @@ def reencrypt_stored_search_tool_keys_v1_search_tools_reencrypt_post_with_http_i :return: Returns the result object. """ # noqa: E501 - _param = self._reencrypt_stored_search_tool_keys_v1_search_tools_reencrypt_post_serialize( + _param = self._reencrypt_stored_search_tool_keys_api_v1_search_tools_reencrypt_post_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1206,7 +1206,7 @@ def reencrypt_stored_search_tool_keys_v1_search_tools_reencrypt_post_with_http_i @validate_call - def reencrypt_stored_search_tool_keys_v1_search_tools_reencrypt_post_without_preload_content( + def reencrypt_stored_search_tool_keys_api_v1_search_tools_reencrypt_post_without_preload_content( self, _request_timeout: Union[ None, @@ -1223,7 +1223,7 @@ def reencrypt_stored_search_tool_keys_v1_search_tools_reencrypt_post_without_pre ) -> RESTResponseType: """Reencrypt Stored Search Tool Keys - Re-encrypt stored search-tool keys with the primary OTARI_SECRET_KEY. The search-tool half of the ``OTARI_SECRET_KEY`` rotation procedure; run it alongside ``POST /v1/provider-credentials/reencrypt``. Rows that cannot be decrypted are left untouched and must be recovered by replacing the affected tool's key. + Re-encrypt stored search-tool keys with the primary OTARI_SECRET_KEY. The search-tool half of the ``OTARI_SECRET_KEY`` rotation procedure; run it alongside ``POST /api/v1/provider-credentials/reencrypt``. Rows that cannot be decrypted are left untouched and must be recovered by replacing the affected tool's key. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1247,7 +1247,7 @@ def reencrypt_stored_search_tool_keys_v1_search_tools_reencrypt_post_without_pre :return: Returns the result object. """ # noqa: E501 - _param = self._reencrypt_stored_search_tool_keys_v1_search_tools_reencrypt_post_serialize( + _param = self._reencrypt_stored_search_tool_keys_api_v1_search_tools_reencrypt_post_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1264,7 +1264,7 @@ def reencrypt_stored_search_tool_keys_v1_search_tools_reencrypt_post_without_pre return response_data.response - def _reencrypt_stored_search_tool_keys_v1_search_tools_reencrypt_post_serialize( + def _reencrypt_stored_search_tool_keys_api_v1_search_tools_reencrypt_post_serialize( self, _request_auth, _content_type, @@ -1310,7 +1310,7 @@ def _reencrypt_stored_search_tool_keys_v1_search_tools_reencrypt_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/search-tools/reencrypt', + resource_path='/api/v1/search-tools/reencrypt', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1327,7 +1327,7 @@ def _reencrypt_stored_search_tool_keys_v1_search_tools_reencrypt_post_serialize( @validate_call - def update_search_tool_v1_search_tools_name_patch( + def update_search_tool_api_v1_search_tools_name_patch( self, name: StrictStr, update_search_tool_request: UpdateSearchToolRequest, @@ -1374,7 +1374,7 @@ def update_search_tool_v1_search_tools_name_patch( :return: Returns the result object. """ # noqa: E501 - _param = self._update_search_tool_v1_search_tools_name_patch_serialize( + _param = self._update_search_tool_api_v1_search_tools_name_patch_serialize( name=name, update_search_tool_request=update_search_tool_request, _request_auth=_request_auth, @@ -1399,7 +1399,7 @@ def update_search_tool_v1_search_tools_name_patch( @validate_call - def update_search_tool_v1_search_tools_name_patch_with_http_info( + def update_search_tool_api_v1_search_tools_name_patch_with_http_info( self, name: StrictStr, update_search_tool_request: UpdateSearchToolRequest, @@ -1446,7 +1446,7 @@ def update_search_tool_v1_search_tools_name_patch_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._update_search_tool_v1_search_tools_name_patch_serialize( + _param = self._update_search_tool_api_v1_search_tools_name_patch_serialize( name=name, update_search_tool_request=update_search_tool_request, _request_auth=_request_auth, @@ -1471,7 +1471,7 @@ def update_search_tool_v1_search_tools_name_patch_with_http_info( @validate_call - def update_search_tool_v1_search_tools_name_patch_without_preload_content( + def update_search_tool_api_v1_search_tools_name_patch_without_preload_content( self, name: StrictStr, update_search_tool_request: UpdateSearchToolRequest, @@ -1518,7 +1518,7 @@ def update_search_tool_v1_search_tools_name_patch_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._update_search_tool_v1_search_tools_name_patch_serialize( + _param = self._update_search_tool_api_v1_search_tools_name_patch_serialize( name=name, update_search_tool_request=update_search_tool_request, _request_auth=_request_auth, @@ -1538,7 +1538,7 @@ def update_search_tool_v1_search_tools_name_patch_without_preload_content( return response_data.response - def _update_search_tool_v1_search_tools_name_patch_serialize( + def _update_search_tool_api_v1_search_tools_name_patch_serialize( self, name, update_search_tool_request, @@ -1603,7 +1603,7 @@ def _update_search_tool_v1_search_tools_name_patch_serialize( return self.api_client.param_serialize( method='PATCH', - resource_path='/v1/search-tools/{name}', + resource_path='/api/v1/search-tools/{name}', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/settings_api.py b/src/otari/_client/api/settings_api.py index cf1e0e7..b4ecc1a 100644 --- a/src/otari/_client/api/settings_api.py +++ b/src/otari/_client/api/settings_api.py @@ -43,7 +43,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def get_mail_settings_v1_settings_mail_get( + def get_mail_settings_api_v1_settings_mail_get( self, _request_timeout: Union[ None, @@ -84,7 +84,7 @@ def get_mail_settings_v1_settings_mail_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_mail_settings_v1_settings_mail_get_serialize( + _param = self._get_mail_settings_api_v1_settings_mail_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -106,7 +106,7 @@ def get_mail_settings_v1_settings_mail_get( @validate_call - def get_mail_settings_v1_settings_mail_get_with_http_info( + def get_mail_settings_api_v1_settings_mail_get_with_http_info( self, _request_timeout: Union[ None, @@ -147,7 +147,7 @@ def get_mail_settings_v1_settings_mail_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_mail_settings_v1_settings_mail_get_serialize( + _param = self._get_mail_settings_api_v1_settings_mail_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -169,7 +169,7 @@ def get_mail_settings_v1_settings_mail_get_with_http_info( @validate_call - def get_mail_settings_v1_settings_mail_get_without_preload_content( + def get_mail_settings_api_v1_settings_mail_get_without_preload_content( self, _request_timeout: Union[ None, @@ -210,7 +210,7 @@ def get_mail_settings_v1_settings_mail_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_mail_settings_v1_settings_mail_get_serialize( + _param = self._get_mail_settings_api_v1_settings_mail_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -227,7 +227,7 @@ def get_mail_settings_v1_settings_mail_get_without_preload_content( return response_data.response - def _get_mail_settings_v1_settings_mail_get_serialize( + def _get_mail_settings_api_v1_settings_mail_get_serialize( self, _request_auth, _content_type, @@ -273,7 +273,7 @@ def _get_mail_settings_v1_settings_mail_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/settings/mail', + resource_path='/api/v1/settings/mail', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -290,7 +290,7 @@ def _get_mail_settings_v1_settings_mail_get_serialize( @validate_call - def get_maintenance_mode_v1_settings_maintenance_mode_get( + def get_maintenance_mode_api_v1_settings_maintenance_mode_get( self, _request_timeout: Union[ None, @@ -331,7 +331,7 @@ def get_maintenance_mode_v1_settings_maintenance_mode_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_maintenance_mode_v1_settings_maintenance_mode_get_serialize( + _param = self._get_maintenance_mode_api_v1_settings_maintenance_mode_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -353,7 +353,7 @@ def get_maintenance_mode_v1_settings_maintenance_mode_get( @validate_call - def get_maintenance_mode_v1_settings_maintenance_mode_get_with_http_info( + def get_maintenance_mode_api_v1_settings_maintenance_mode_get_with_http_info( self, _request_timeout: Union[ None, @@ -394,7 +394,7 @@ def get_maintenance_mode_v1_settings_maintenance_mode_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_maintenance_mode_v1_settings_maintenance_mode_get_serialize( + _param = self._get_maintenance_mode_api_v1_settings_maintenance_mode_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -416,7 +416,7 @@ def get_maintenance_mode_v1_settings_maintenance_mode_get_with_http_info( @validate_call - def get_maintenance_mode_v1_settings_maintenance_mode_get_without_preload_content( + def get_maintenance_mode_api_v1_settings_maintenance_mode_get_without_preload_content( self, _request_timeout: Union[ None, @@ -457,7 +457,7 @@ def get_maintenance_mode_v1_settings_maintenance_mode_get_without_preload_conten :return: Returns the result object. """ # noqa: E501 - _param = self._get_maintenance_mode_v1_settings_maintenance_mode_get_serialize( + _param = self._get_maintenance_mode_api_v1_settings_maintenance_mode_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -474,7 +474,7 @@ def get_maintenance_mode_v1_settings_maintenance_mode_get_without_preload_conten return response_data.response - def _get_maintenance_mode_v1_settings_maintenance_mode_get_serialize( + def _get_maintenance_mode_api_v1_settings_maintenance_mode_get_serialize( self, _request_auth, _content_type, @@ -520,7 +520,7 @@ def _get_maintenance_mode_v1_settings_maintenance_mode_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/settings/maintenance-mode', + resource_path='/api/v1/settings/maintenance-mode', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -537,7 +537,7 @@ def _get_maintenance_mode_v1_settings_maintenance_mode_get_serialize( @validate_call - def get_settings_v1_settings_get( + def get_settings_api_v1_settings_get( self, _request_timeout: Union[ None, @@ -578,7 +578,7 @@ def get_settings_v1_settings_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_settings_v1_settings_get_serialize( + _param = self._get_settings_api_v1_settings_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -600,7 +600,7 @@ def get_settings_v1_settings_get( @validate_call - def get_settings_v1_settings_get_with_http_info( + def get_settings_api_v1_settings_get_with_http_info( self, _request_timeout: Union[ None, @@ -641,7 +641,7 @@ def get_settings_v1_settings_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_settings_v1_settings_get_serialize( + _param = self._get_settings_api_v1_settings_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -663,7 +663,7 @@ def get_settings_v1_settings_get_with_http_info( @validate_call - def get_settings_v1_settings_get_without_preload_content( + def get_settings_api_v1_settings_get_without_preload_content( self, _request_timeout: Union[ None, @@ -704,7 +704,7 @@ def get_settings_v1_settings_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_settings_v1_settings_get_serialize( + _param = self._get_settings_api_v1_settings_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -721,7 +721,7 @@ def get_settings_v1_settings_get_without_preload_content( return response_data.response - def _get_settings_v1_settings_get_serialize( + def _get_settings_api_v1_settings_get_serialize( self, _request_auth, _content_type, @@ -767,7 +767,7 @@ def _get_settings_v1_settings_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/settings', + resource_path='/api/v1/settings', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -784,7 +784,7 @@ def _get_settings_v1_settings_get_serialize( @validate_call - def rotate_master_key_v1_settings_master_key_rotate_post( + def rotate_master_key_api_v1_settings_master_key_rotate_post( self, _request_timeout: Union[ None, @@ -825,7 +825,7 @@ def rotate_master_key_v1_settings_master_key_rotate_post( :return: Returns the result object. """ # noqa: E501 - _param = self._rotate_master_key_v1_settings_master_key_rotate_post_serialize( + _param = self._rotate_master_key_api_v1_settings_master_key_rotate_post_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -847,7 +847,7 @@ def rotate_master_key_v1_settings_master_key_rotate_post( @validate_call - def rotate_master_key_v1_settings_master_key_rotate_post_with_http_info( + def rotate_master_key_api_v1_settings_master_key_rotate_post_with_http_info( self, _request_timeout: Union[ None, @@ -888,7 +888,7 @@ def rotate_master_key_v1_settings_master_key_rotate_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._rotate_master_key_v1_settings_master_key_rotate_post_serialize( + _param = self._rotate_master_key_api_v1_settings_master_key_rotate_post_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -910,7 +910,7 @@ def rotate_master_key_v1_settings_master_key_rotate_post_with_http_info( @validate_call - def rotate_master_key_v1_settings_master_key_rotate_post_without_preload_content( + def rotate_master_key_api_v1_settings_master_key_rotate_post_without_preload_content( self, _request_timeout: Union[ None, @@ -951,7 +951,7 @@ def rotate_master_key_v1_settings_master_key_rotate_post_without_preload_content :return: Returns the result object. """ # noqa: E501 - _param = self._rotate_master_key_v1_settings_master_key_rotate_post_serialize( + _param = self._rotate_master_key_api_v1_settings_master_key_rotate_post_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -968,7 +968,7 @@ def rotate_master_key_v1_settings_master_key_rotate_post_without_preload_content return response_data.response - def _rotate_master_key_v1_settings_master_key_rotate_post_serialize( + def _rotate_master_key_api_v1_settings_master_key_rotate_post_serialize( self, _request_auth, _content_type, @@ -1014,7 +1014,7 @@ def _rotate_master_key_v1_settings_master_key_rotate_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/settings/master-key/rotate', + resource_path='/api/v1/settings/master-key/rotate', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1031,7 +1031,7 @@ def _rotate_master_key_v1_settings_master_key_rotate_post_serialize( @validate_call - def send_test_mail_v1_settings_mail_test_post( + def send_test_mail_api_v1_settings_mail_test_post( self, send_test_mail_request: SendTestMailRequest, _request_timeout: Union[ @@ -1075,7 +1075,7 @@ def send_test_mail_v1_settings_mail_test_post( :return: Returns the result object. """ # noqa: E501 - _param = self._send_test_mail_v1_settings_mail_test_post_serialize( + _param = self._send_test_mail_api_v1_settings_mail_test_post_serialize( send_test_mail_request=send_test_mail_request, _request_auth=_request_auth, _content_type=_content_type, @@ -1099,7 +1099,7 @@ def send_test_mail_v1_settings_mail_test_post( @validate_call - def send_test_mail_v1_settings_mail_test_post_with_http_info( + def send_test_mail_api_v1_settings_mail_test_post_with_http_info( self, send_test_mail_request: SendTestMailRequest, _request_timeout: Union[ @@ -1143,7 +1143,7 @@ def send_test_mail_v1_settings_mail_test_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._send_test_mail_v1_settings_mail_test_post_serialize( + _param = self._send_test_mail_api_v1_settings_mail_test_post_serialize( send_test_mail_request=send_test_mail_request, _request_auth=_request_auth, _content_type=_content_type, @@ -1167,7 +1167,7 @@ def send_test_mail_v1_settings_mail_test_post_with_http_info( @validate_call - def send_test_mail_v1_settings_mail_test_post_without_preload_content( + def send_test_mail_api_v1_settings_mail_test_post_without_preload_content( self, send_test_mail_request: SendTestMailRequest, _request_timeout: Union[ @@ -1211,7 +1211,7 @@ def send_test_mail_v1_settings_mail_test_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._send_test_mail_v1_settings_mail_test_post_serialize( + _param = self._send_test_mail_api_v1_settings_mail_test_post_serialize( send_test_mail_request=send_test_mail_request, _request_auth=_request_auth, _content_type=_content_type, @@ -1230,7 +1230,7 @@ def send_test_mail_v1_settings_mail_test_post_without_preload_content( return response_data.response - def _send_test_mail_v1_settings_mail_test_post_serialize( + def _send_test_mail_api_v1_settings_mail_test_post_serialize( self, send_test_mail_request, _request_auth, @@ -1292,7 +1292,7 @@ def _send_test_mail_v1_settings_mail_test_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/settings/mail/test', + resource_path='/api/v1/settings/mail/test', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1309,7 +1309,7 @@ def _send_test_mail_v1_settings_mail_test_post_serialize( @validate_call - def update_maintenance_mode_v1_settings_maintenance_mode_patch( + def update_maintenance_mode_api_v1_settings_maintenance_mode_patch( self, update_maintenance_mode_request: UpdateMaintenanceModeRequest, _request_timeout: Union[ @@ -1353,7 +1353,7 @@ def update_maintenance_mode_v1_settings_maintenance_mode_patch( :return: Returns the result object. """ # noqa: E501 - _param = self._update_maintenance_mode_v1_settings_maintenance_mode_patch_serialize( + _param = self._update_maintenance_mode_api_v1_settings_maintenance_mode_patch_serialize( update_maintenance_mode_request=update_maintenance_mode_request, _request_auth=_request_auth, _content_type=_content_type, @@ -1377,7 +1377,7 @@ def update_maintenance_mode_v1_settings_maintenance_mode_patch( @validate_call - def update_maintenance_mode_v1_settings_maintenance_mode_patch_with_http_info( + def update_maintenance_mode_api_v1_settings_maintenance_mode_patch_with_http_info( self, update_maintenance_mode_request: UpdateMaintenanceModeRequest, _request_timeout: Union[ @@ -1421,7 +1421,7 @@ def update_maintenance_mode_v1_settings_maintenance_mode_patch_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._update_maintenance_mode_v1_settings_maintenance_mode_patch_serialize( + _param = self._update_maintenance_mode_api_v1_settings_maintenance_mode_patch_serialize( update_maintenance_mode_request=update_maintenance_mode_request, _request_auth=_request_auth, _content_type=_content_type, @@ -1445,7 +1445,7 @@ def update_maintenance_mode_v1_settings_maintenance_mode_patch_with_http_info( @validate_call - def update_maintenance_mode_v1_settings_maintenance_mode_patch_without_preload_content( + def update_maintenance_mode_api_v1_settings_maintenance_mode_patch_without_preload_content( self, update_maintenance_mode_request: UpdateMaintenanceModeRequest, _request_timeout: Union[ @@ -1489,7 +1489,7 @@ def update_maintenance_mode_v1_settings_maintenance_mode_patch_without_preload_c :return: Returns the result object. """ # noqa: E501 - _param = self._update_maintenance_mode_v1_settings_maintenance_mode_patch_serialize( + _param = self._update_maintenance_mode_api_v1_settings_maintenance_mode_patch_serialize( update_maintenance_mode_request=update_maintenance_mode_request, _request_auth=_request_auth, _content_type=_content_type, @@ -1508,7 +1508,7 @@ def update_maintenance_mode_v1_settings_maintenance_mode_patch_without_preload_c return response_data.response - def _update_maintenance_mode_v1_settings_maintenance_mode_patch_serialize( + def _update_maintenance_mode_api_v1_settings_maintenance_mode_patch_serialize( self, update_maintenance_mode_request, _request_auth, @@ -1570,7 +1570,7 @@ def _update_maintenance_mode_v1_settings_maintenance_mode_patch_serialize( return self.api_client.param_serialize( method='PATCH', - resource_path='/v1/settings/maintenance-mode', + resource_path='/api/v1/settings/maintenance-mode', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1587,7 +1587,7 @@ def _update_maintenance_mode_v1_settings_maintenance_mode_patch_serialize( @validate_call - def update_settings_v1_settings_patch( + def update_settings_api_v1_settings_patch( self, update_settings_request: UpdateSettingsRequest, _request_timeout: Union[ @@ -1631,7 +1631,7 @@ def update_settings_v1_settings_patch( :return: Returns the result object. """ # noqa: E501 - _param = self._update_settings_v1_settings_patch_serialize( + _param = self._update_settings_api_v1_settings_patch_serialize( update_settings_request=update_settings_request, _request_auth=_request_auth, _content_type=_content_type, @@ -1655,7 +1655,7 @@ def update_settings_v1_settings_patch( @validate_call - def update_settings_v1_settings_patch_with_http_info( + def update_settings_api_v1_settings_patch_with_http_info( self, update_settings_request: UpdateSettingsRequest, _request_timeout: Union[ @@ -1699,7 +1699,7 @@ def update_settings_v1_settings_patch_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._update_settings_v1_settings_patch_serialize( + _param = self._update_settings_api_v1_settings_patch_serialize( update_settings_request=update_settings_request, _request_auth=_request_auth, _content_type=_content_type, @@ -1723,7 +1723,7 @@ def update_settings_v1_settings_patch_with_http_info( @validate_call - def update_settings_v1_settings_patch_without_preload_content( + def update_settings_api_v1_settings_patch_without_preload_content( self, update_settings_request: UpdateSettingsRequest, _request_timeout: Union[ @@ -1767,7 +1767,7 @@ def update_settings_v1_settings_patch_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._update_settings_v1_settings_patch_serialize( + _param = self._update_settings_api_v1_settings_patch_serialize( update_settings_request=update_settings_request, _request_auth=_request_auth, _content_type=_content_type, @@ -1786,7 +1786,7 @@ def update_settings_v1_settings_patch_without_preload_content( return response_data.response - def _update_settings_v1_settings_patch_serialize( + def _update_settings_api_v1_settings_patch_serialize( self, update_settings_request, _request_auth, @@ -1848,7 +1848,7 @@ def _update_settings_v1_settings_patch_serialize( return self.api_client.param_serialize( method='PATCH', - resource_path='/v1/settings', + resource_path='/api/v1/settings', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/tool_settings_api.py b/src/otari/_client/api/tool_settings_api.py index 7c881da..377b1b2 100644 --- a/src/otari/_client/api/tool_settings_api.py +++ b/src/otari/_client/api/tool_settings_api.py @@ -40,7 +40,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def get_tool_settings_v1_tool_settings_get( + def get_tool_settings_api_v1_tool_settings_get( self, _request_timeout: Union[ None, @@ -81,7 +81,7 @@ def get_tool_settings_v1_tool_settings_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_tool_settings_v1_tool_settings_get_serialize( + _param = self._get_tool_settings_api_v1_tool_settings_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -103,7 +103,7 @@ def get_tool_settings_v1_tool_settings_get( @validate_call - def get_tool_settings_v1_tool_settings_get_with_http_info( + def get_tool_settings_api_v1_tool_settings_get_with_http_info( self, _request_timeout: Union[ None, @@ -144,7 +144,7 @@ def get_tool_settings_v1_tool_settings_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_tool_settings_v1_tool_settings_get_serialize( + _param = self._get_tool_settings_api_v1_tool_settings_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -166,7 +166,7 @@ def get_tool_settings_v1_tool_settings_get_with_http_info( @validate_call - def get_tool_settings_v1_tool_settings_get_without_preload_content( + def get_tool_settings_api_v1_tool_settings_get_without_preload_content( self, _request_timeout: Union[ None, @@ -207,7 +207,7 @@ def get_tool_settings_v1_tool_settings_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_tool_settings_v1_tool_settings_get_serialize( + _param = self._get_tool_settings_api_v1_tool_settings_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -224,7 +224,7 @@ def get_tool_settings_v1_tool_settings_get_without_preload_content( return response_data.response - def _get_tool_settings_v1_tool_settings_get_serialize( + def _get_tool_settings_api_v1_tool_settings_get_serialize( self, _request_auth, _content_type, @@ -270,7 +270,7 @@ def _get_tool_settings_v1_tool_settings_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/tool-settings', + resource_path='/api/v1/tool-settings', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -287,7 +287,7 @@ def _get_tool_settings_v1_tool_settings_get_serialize( @validate_call - def test_service_v1_tool_settings_service_test_post( + def test_service_api_v1_tool_settings_service_test_post( self, service: StrictStr, test_service_request: TestServiceRequest, @@ -334,7 +334,7 @@ def test_service_v1_tool_settings_service_test_post( :return: Returns the result object. """ # noqa: E501 - _param = self._test_service_v1_tool_settings_service_test_post_serialize( + _param = self._test_service_api_v1_tool_settings_service_test_post_serialize( service=service, test_service_request=test_service_request, _request_auth=_request_auth, @@ -359,7 +359,7 @@ def test_service_v1_tool_settings_service_test_post( @validate_call - def test_service_v1_tool_settings_service_test_post_with_http_info( + def test_service_api_v1_tool_settings_service_test_post_with_http_info( self, service: StrictStr, test_service_request: TestServiceRequest, @@ -406,7 +406,7 @@ def test_service_v1_tool_settings_service_test_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._test_service_v1_tool_settings_service_test_post_serialize( + _param = self._test_service_api_v1_tool_settings_service_test_post_serialize( service=service, test_service_request=test_service_request, _request_auth=_request_auth, @@ -431,7 +431,7 @@ def test_service_v1_tool_settings_service_test_post_with_http_info( @validate_call - def test_service_v1_tool_settings_service_test_post_without_preload_content( + def test_service_api_v1_tool_settings_service_test_post_without_preload_content( self, service: StrictStr, test_service_request: TestServiceRequest, @@ -478,7 +478,7 @@ def test_service_v1_tool_settings_service_test_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._test_service_v1_tool_settings_service_test_post_serialize( + _param = self._test_service_api_v1_tool_settings_service_test_post_serialize( service=service, test_service_request=test_service_request, _request_auth=_request_auth, @@ -498,7 +498,7 @@ def test_service_v1_tool_settings_service_test_post_without_preload_content( return response_data.response - def _test_service_v1_tool_settings_service_test_post_serialize( + def _test_service_api_v1_tool_settings_service_test_post_serialize( self, service, test_service_request, @@ -563,7 +563,7 @@ def _test_service_v1_tool_settings_service_test_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/tool-settings/{service}/test', + resource_path='/api/v1/tool-settings/{service}/test', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -580,7 +580,7 @@ def _test_service_v1_tool_settings_service_test_post_serialize( @validate_call - def update_tool_settings_v1_tool_settings_patch( + def update_tool_settings_api_v1_tool_settings_patch( self, update_tool_settings_request: UpdateToolSettingsRequest, _request_timeout: Union[ @@ -624,7 +624,7 @@ def update_tool_settings_v1_tool_settings_patch( :return: Returns the result object. """ # noqa: E501 - _param = self._update_tool_settings_v1_tool_settings_patch_serialize( + _param = self._update_tool_settings_api_v1_tool_settings_patch_serialize( update_tool_settings_request=update_tool_settings_request, _request_auth=_request_auth, _content_type=_content_type, @@ -648,7 +648,7 @@ def update_tool_settings_v1_tool_settings_patch( @validate_call - def update_tool_settings_v1_tool_settings_patch_with_http_info( + def update_tool_settings_api_v1_tool_settings_patch_with_http_info( self, update_tool_settings_request: UpdateToolSettingsRequest, _request_timeout: Union[ @@ -692,7 +692,7 @@ def update_tool_settings_v1_tool_settings_patch_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._update_tool_settings_v1_tool_settings_patch_serialize( + _param = self._update_tool_settings_api_v1_tool_settings_patch_serialize( update_tool_settings_request=update_tool_settings_request, _request_auth=_request_auth, _content_type=_content_type, @@ -716,7 +716,7 @@ def update_tool_settings_v1_tool_settings_patch_with_http_info( @validate_call - def update_tool_settings_v1_tool_settings_patch_without_preload_content( + def update_tool_settings_api_v1_tool_settings_patch_without_preload_content( self, update_tool_settings_request: UpdateToolSettingsRequest, _request_timeout: Union[ @@ -760,7 +760,7 @@ def update_tool_settings_v1_tool_settings_patch_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._update_tool_settings_v1_tool_settings_patch_serialize( + _param = self._update_tool_settings_api_v1_tool_settings_patch_serialize( update_tool_settings_request=update_tool_settings_request, _request_auth=_request_auth, _content_type=_content_type, @@ -779,7 +779,7 @@ def update_tool_settings_v1_tool_settings_patch_without_preload_content( return response_data.response - def _update_tool_settings_v1_tool_settings_patch_serialize( + def _update_tool_settings_api_v1_tool_settings_patch_serialize( self, update_tool_settings_request, _request_auth, @@ -841,7 +841,7 @@ def _update_tool_settings_v1_tool_settings_patch_serialize( return self.api_client.param_serialize( method='PATCH', - resource_path='/v1/tool-settings', + resource_path='/api/v1/tool-settings', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/tools_api.py b/src/otari/_client/api/tools_api.py index f698780..6ce2522 100644 --- a/src/otari/_client/api/tools_api.py +++ b/src/otari/_client/api/tools_api.py @@ -36,7 +36,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def list_tools_v1_tools_get( + def list_tools_api_v1_tools_get( self, _request_timeout: Union[ None, @@ -77,7 +77,7 @@ def list_tools_v1_tools_get( :return: Returns the result object. """ # noqa: E501 - _param = self._list_tools_v1_tools_get_serialize( + _param = self._list_tools_api_v1_tools_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -99,7 +99,7 @@ def list_tools_v1_tools_get( @validate_call - def list_tools_v1_tools_get_with_http_info( + def list_tools_api_v1_tools_get_with_http_info( self, _request_timeout: Union[ None, @@ -140,7 +140,7 @@ def list_tools_v1_tools_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_tools_v1_tools_get_serialize( + _param = self._list_tools_api_v1_tools_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -162,7 +162,7 @@ def list_tools_v1_tools_get_with_http_info( @validate_call - def list_tools_v1_tools_get_without_preload_content( + def list_tools_api_v1_tools_get_without_preload_content( self, _request_timeout: Union[ None, @@ -203,7 +203,7 @@ def list_tools_v1_tools_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._list_tools_v1_tools_get_serialize( + _param = self._list_tools_api_v1_tools_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -220,7 +220,7 @@ def list_tools_v1_tools_get_without_preload_content( return response_data.response - def _list_tools_v1_tools_get_serialize( + def _list_tools_api_v1_tools_get_serialize( self, _request_auth, _content_type, @@ -266,7 +266,7 @@ def _list_tools_v1_tools_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/tools', + resource_path='/api/v1/tools', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/usage_api.py b/src/otari/_client/api/usage_api.py index 3482b55..6ee9874 100644 --- a/src/otari/_client/api/usage_api.py +++ b/src/otari/_client/api/usage_api.py @@ -51,7 +51,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def count_usage_v1_usage_count_get( + def count_usage_api_v1_usage_count_get( self, start_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds)")] = None, end_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp < end_date (ISO 8601 or Unix epoch seconds)")] = None, @@ -66,7 +66,7 @@ def count_usage_v1_usage_count_get( api_key_id: Annotated[Optional[Annotated[List[StrictStr], Field(max_length=50)]], Field(description="Filter to one or more API key ids; repeatable (api_key_id=a&api_key_id=b). Several values match any of them. At most 50 per call.")] = None, priced: Annotated[Optional[StrictBool], Field(description="Filter by token-pricing state: true = only rows whose model tokens were priced, false = only rows that still need pricing (no cost at all, or tokens that were never metered because the model had no rate). A row charged only for gateway-run tool calls still counts as needing pricing.")] = None, tool: Annotated[Optional[StrictStr], Field(description="Filter to requests that ran a gateway-run tool. 'any' matches any tool; a tool name (web_search, code_execution) matches that tool specifically.")] = None, - counts_toward_budget: Annotated[Optional[StrictBool], Field(description="Filter by budget participation: true = only enforced gateway rows, false = only imported rows, narrowed past the filter of the same name on GET /v1/usage so the total matches what bulk delete and set-price can reach")] = None, + counts_toward_budget: Annotated[Optional[StrictBool], Field(description="Filter by budget participation: true = only enforced gateway rows, false = only imported rows, narrowed past the filter of the same name on GET /api/v1/usage so the total matches what bulk delete and set-price can reach")] = None, request_group_id: Annotated[Optional[Annotated[List[StrictStr], Field(max_length=1000)]], Field(description="Filter to the rows of one or more request groups; repeatable (request_group_id=a&request_group_id=b). A routed request writes one row per attempt, all sharing a request_group_id, so this returns a request's whole plan: its absorbed attempts and the attempt that served it. Ignore ordering by timestamp and read attempt_position to reconstruct the plan. At most 1000 ids per call.")] = None, workspace_id: Annotated[Optional[UUID], Field(description="Only usage recorded in this workspace.")] = None, _request_timeout: Union[ @@ -84,7 +84,7 @@ def count_usage_v1_usage_count_get( ) -> UsageCount: """Count Usage - Total number of usage logs matching the given filters. Serves the dashboard paginator's \"N of M\" total without changing the bare array contract of ``GET /v1/usage``. Runs only when the client asks (a separate request), so the ``COUNT(*)`` is not paid on every page load. With ``counts_toward_budget=false`` it also backs the \"select all N matching this filter\" affordance for bulk delete / set-price, which touch imported rows only. That value is the one place this count is narrower than ``GET /v1/usage``: it also excludes rows this deployment served itself, so the number an operator confirms is the number the mutation can reach. The list still pages the budget-exempt gateway rows it omits. + Total number of usage logs matching the given filters. Serves the dashboard paginator's \"N of M\" total without changing the bare array contract of ``GET /api/v1/usage``. Runs only when the client asks (a separate request), so the ``COUNT(*)`` is not paid on every page load. With ``counts_toward_budget=false`` it also backs the \"select all N matching this filter\" affordance for bulk delete / set-price, which touch imported rows only. That value is the one place this count is narrower than ``GET /api/v1/usage``: it also excludes rows this deployment served itself, so the number an operator confirms is the number the mutation can reach. The list still pages the budget-exempt gateway rows it omits. :param start_date: Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds) :type start_date: datetime @@ -112,7 +112,7 @@ def count_usage_v1_usage_count_get( :type priced: bool :param tool: Filter to requests that ran a gateway-run tool. 'any' matches any tool; a tool name (web_search, code_execution) matches that tool specifically. :type tool: str - :param counts_toward_budget: Filter by budget participation: true = only enforced gateway rows, false = only imported rows, narrowed past the filter of the same name on GET /v1/usage so the total matches what bulk delete and set-price can reach + :param counts_toward_budget: Filter by budget participation: true = only enforced gateway rows, false = only imported rows, narrowed past the filter of the same name on GET /api/v1/usage so the total matches what bulk delete and set-price can reach :type counts_toward_budget: bool :param request_group_id: Filter to the rows of one or more request groups; repeatable (request_group_id=a&request_group_id=b). A routed request writes one row per attempt, all sharing a request_group_id, so this returns a request's whole plan: its absorbed attempts and the attempt that served it. Ignore ordering by timestamp and read attempt_position to reconstruct the plan. At most 1000 ids per call. :type request_group_id: List[str] @@ -140,7 +140,7 @@ def count_usage_v1_usage_count_get( :return: Returns the result object. """ # noqa: E501 - _param = self._count_usage_v1_usage_count_get_serialize( + _param = self._count_usage_api_v1_usage_count_get_serialize( start_date=start_date, end_date=end_date, user_id=user_id, @@ -179,7 +179,7 @@ def count_usage_v1_usage_count_get( @validate_call - def count_usage_v1_usage_count_get_with_http_info( + def count_usage_api_v1_usage_count_get_with_http_info( self, start_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds)")] = None, end_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp < end_date (ISO 8601 or Unix epoch seconds)")] = None, @@ -194,7 +194,7 @@ def count_usage_v1_usage_count_get_with_http_info( api_key_id: Annotated[Optional[Annotated[List[StrictStr], Field(max_length=50)]], Field(description="Filter to one or more API key ids; repeatable (api_key_id=a&api_key_id=b). Several values match any of them. At most 50 per call.")] = None, priced: Annotated[Optional[StrictBool], Field(description="Filter by token-pricing state: true = only rows whose model tokens were priced, false = only rows that still need pricing (no cost at all, or tokens that were never metered because the model had no rate). A row charged only for gateway-run tool calls still counts as needing pricing.")] = None, tool: Annotated[Optional[StrictStr], Field(description="Filter to requests that ran a gateway-run tool. 'any' matches any tool; a tool name (web_search, code_execution) matches that tool specifically.")] = None, - counts_toward_budget: Annotated[Optional[StrictBool], Field(description="Filter by budget participation: true = only enforced gateway rows, false = only imported rows, narrowed past the filter of the same name on GET /v1/usage so the total matches what bulk delete and set-price can reach")] = None, + counts_toward_budget: Annotated[Optional[StrictBool], Field(description="Filter by budget participation: true = only enforced gateway rows, false = only imported rows, narrowed past the filter of the same name on GET /api/v1/usage so the total matches what bulk delete and set-price can reach")] = None, request_group_id: Annotated[Optional[Annotated[List[StrictStr], Field(max_length=1000)]], Field(description="Filter to the rows of one or more request groups; repeatable (request_group_id=a&request_group_id=b). A routed request writes one row per attempt, all sharing a request_group_id, so this returns a request's whole plan: its absorbed attempts and the attempt that served it. Ignore ordering by timestamp and read attempt_position to reconstruct the plan. At most 1000 ids per call.")] = None, workspace_id: Annotated[Optional[UUID], Field(description="Only usage recorded in this workspace.")] = None, _request_timeout: Union[ @@ -212,7 +212,7 @@ def count_usage_v1_usage_count_get_with_http_info( ) -> ApiResponse[UsageCount]: """Count Usage - Total number of usage logs matching the given filters. Serves the dashboard paginator's \"N of M\" total without changing the bare array contract of ``GET /v1/usage``. Runs only when the client asks (a separate request), so the ``COUNT(*)`` is not paid on every page load. With ``counts_toward_budget=false`` it also backs the \"select all N matching this filter\" affordance for bulk delete / set-price, which touch imported rows only. That value is the one place this count is narrower than ``GET /v1/usage``: it also excludes rows this deployment served itself, so the number an operator confirms is the number the mutation can reach. The list still pages the budget-exempt gateway rows it omits. + Total number of usage logs matching the given filters. Serves the dashboard paginator's \"N of M\" total without changing the bare array contract of ``GET /api/v1/usage``. Runs only when the client asks (a separate request), so the ``COUNT(*)`` is not paid on every page load. With ``counts_toward_budget=false`` it also backs the \"select all N matching this filter\" affordance for bulk delete / set-price, which touch imported rows only. That value is the one place this count is narrower than ``GET /api/v1/usage``: it also excludes rows this deployment served itself, so the number an operator confirms is the number the mutation can reach. The list still pages the budget-exempt gateway rows it omits. :param start_date: Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds) :type start_date: datetime @@ -240,7 +240,7 @@ def count_usage_v1_usage_count_get_with_http_info( :type priced: bool :param tool: Filter to requests that ran a gateway-run tool. 'any' matches any tool; a tool name (web_search, code_execution) matches that tool specifically. :type tool: str - :param counts_toward_budget: Filter by budget participation: true = only enforced gateway rows, false = only imported rows, narrowed past the filter of the same name on GET /v1/usage so the total matches what bulk delete and set-price can reach + :param counts_toward_budget: Filter by budget participation: true = only enforced gateway rows, false = only imported rows, narrowed past the filter of the same name on GET /api/v1/usage so the total matches what bulk delete and set-price can reach :type counts_toward_budget: bool :param request_group_id: Filter to the rows of one or more request groups; repeatable (request_group_id=a&request_group_id=b). A routed request writes one row per attempt, all sharing a request_group_id, so this returns a request's whole plan: its absorbed attempts and the attempt that served it. Ignore ordering by timestamp and read attempt_position to reconstruct the plan. At most 1000 ids per call. :type request_group_id: List[str] @@ -268,7 +268,7 @@ def count_usage_v1_usage_count_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._count_usage_v1_usage_count_get_serialize( + _param = self._count_usage_api_v1_usage_count_get_serialize( start_date=start_date, end_date=end_date, user_id=user_id, @@ -307,7 +307,7 @@ def count_usage_v1_usage_count_get_with_http_info( @validate_call - def count_usage_v1_usage_count_get_without_preload_content( + def count_usage_api_v1_usage_count_get_without_preload_content( self, start_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds)")] = None, end_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp < end_date (ISO 8601 or Unix epoch seconds)")] = None, @@ -322,7 +322,7 @@ def count_usage_v1_usage_count_get_without_preload_content( api_key_id: Annotated[Optional[Annotated[List[StrictStr], Field(max_length=50)]], Field(description="Filter to one or more API key ids; repeatable (api_key_id=a&api_key_id=b). Several values match any of them. At most 50 per call.")] = None, priced: Annotated[Optional[StrictBool], Field(description="Filter by token-pricing state: true = only rows whose model tokens were priced, false = only rows that still need pricing (no cost at all, or tokens that were never metered because the model had no rate). A row charged only for gateway-run tool calls still counts as needing pricing.")] = None, tool: Annotated[Optional[StrictStr], Field(description="Filter to requests that ran a gateway-run tool. 'any' matches any tool; a tool name (web_search, code_execution) matches that tool specifically.")] = None, - counts_toward_budget: Annotated[Optional[StrictBool], Field(description="Filter by budget participation: true = only enforced gateway rows, false = only imported rows, narrowed past the filter of the same name on GET /v1/usage so the total matches what bulk delete and set-price can reach")] = None, + counts_toward_budget: Annotated[Optional[StrictBool], Field(description="Filter by budget participation: true = only enforced gateway rows, false = only imported rows, narrowed past the filter of the same name on GET /api/v1/usage so the total matches what bulk delete and set-price can reach")] = None, request_group_id: Annotated[Optional[Annotated[List[StrictStr], Field(max_length=1000)]], Field(description="Filter to the rows of one or more request groups; repeatable (request_group_id=a&request_group_id=b). A routed request writes one row per attempt, all sharing a request_group_id, so this returns a request's whole plan: its absorbed attempts and the attempt that served it. Ignore ordering by timestamp and read attempt_position to reconstruct the plan. At most 1000 ids per call.")] = None, workspace_id: Annotated[Optional[UUID], Field(description="Only usage recorded in this workspace.")] = None, _request_timeout: Union[ @@ -340,7 +340,7 @@ def count_usage_v1_usage_count_get_without_preload_content( ) -> RESTResponseType: """Count Usage - Total number of usage logs matching the given filters. Serves the dashboard paginator's \"N of M\" total without changing the bare array contract of ``GET /v1/usage``. Runs only when the client asks (a separate request), so the ``COUNT(*)`` is not paid on every page load. With ``counts_toward_budget=false`` it also backs the \"select all N matching this filter\" affordance for bulk delete / set-price, which touch imported rows only. That value is the one place this count is narrower than ``GET /v1/usage``: it also excludes rows this deployment served itself, so the number an operator confirms is the number the mutation can reach. The list still pages the budget-exempt gateway rows it omits. + Total number of usage logs matching the given filters. Serves the dashboard paginator's \"N of M\" total without changing the bare array contract of ``GET /api/v1/usage``. Runs only when the client asks (a separate request), so the ``COUNT(*)`` is not paid on every page load. With ``counts_toward_budget=false`` it also backs the \"select all N matching this filter\" affordance for bulk delete / set-price, which touch imported rows only. That value is the one place this count is narrower than ``GET /api/v1/usage``: it also excludes rows this deployment served itself, so the number an operator confirms is the number the mutation can reach. The list still pages the budget-exempt gateway rows it omits. :param start_date: Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds) :type start_date: datetime @@ -368,7 +368,7 @@ def count_usage_v1_usage_count_get_without_preload_content( :type priced: bool :param tool: Filter to requests that ran a gateway-run tool. 'any' matches any tool; a tool name (web_search, code_execution) matches that tool specifically. :type tool: str - :param counts_toward_budget: Filter by budget participation: true = only enforced gateway rows, false = only imported rows, narrowed past the filter of the same name on GET /v1/usage so the total matches what bulk delete and set-price can reach + :param counts_toward_budget: Filter by budget participation: true = only enforced gateway rows, false = only imported rows, narrowed past the filter of the same name on GET /api/v1/usage so the total matches what bulk delete and set-price can reach :type counts_toward_budget: bool :param request_group_id: Filter to the rows of one or more request groups; repeatable (request_group_id=a&request_group_id=b). A routed request writes one row per attempt, all sharing a request_group_id, so this returns a request's whole plan: its absorbed attempts and the attempt that served it. Ignore ordering by timestamp and read attempt_position to reconstruct the plan. At most 1000 ids per call. :type request_group_id: List[str] @@ -396,7 +396,7 @@ def count_usage_v1_usage_count_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._count_usage_v1_usage_count_get_serialize( + _param = self._count_usage_api_v1_usage_count_get_serialize( start_date=start_date, end_date=end_date, user_id=user_id, @@ -430,7 +430,7 @@ def count_usage_v1_usage_count_get_without_preload_content( return response_data.response - def _count_usage_v1_usage_count_get_serialize( + def _count_usage_api_v1_usage_count_get_serialize( self, start_date, end_date, @@ -578,7 +578,7 @@ def _count_usage_v1_usage_count_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/usage/count', + resource_path='/api/v1/usage/count', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -595,7 +595,7 @@ def _count_usage_v1_usage_count_get_serialize( @validate_call - def delete_usage_rows_v1_usage_delete( + def delete_usage_rows_api_v1_usage_delete( self, usage_delete_request: UsageDeleteRequest, _request_timeout: Union[ @@ -639,7 +639,7 @@ def delete_usage_rows_v1_usage_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_usage_rows_v1_usage_delete_serialize( + _param = self._delete_usage_rows_api_v1_usage_delete_serialize( usage_delete_request=usage_delete_request, _request_auth=_request_auth, _content_type=_content_type, @@ -663,7 +663,7 @@ def delete_usage_rows_v1_usage_delete( @validate_call - def delete_usage_rows_v1_usage_delete_with_http_info( + def delete_usage_rows_api_v1_usage_delete_with_http_info( self, usage_delete_request: UsageDeleteRequest, _request_timeout: Union[ @@ -707,7 +707,7 @@ def delete_usage_rows_v1_usage_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_usage_rows_v1_usage_delete_serialize( + _param = self._delete_usage_rows_api_v1_usage_delete_serialize( usage_delete_request=usage_delete_request, _request_auth=_request_auth, _content_type=_content_type, @@ -731,7 +731,7 @@ def delete_usage_rows_v1_usage_delete_with_http_info( @validate_call - def delete_usage_rows_v1_usage_delete_without_preload_content( + def delete_usage_rows_api_v1_usage_delete_without_preload_content( self, usage_delete_request: UsageDeleteRequest, _request_timeout: Union[ @@ -775,7 +775,7 @@ def delete_usage_rows_v1_usage_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_usage_rows_v1_usage_delete_serialize( + _param = self._delete_usage_rows_api_v1_usage_delete_serialize( usage_delete_request=usage_delete_request, _request_auth=_request_auth, _content_type=_content_type, @@ -794,7 +794,7 @@ def delete_usage_rows_v1_usage_delete_without_preload_content( return response_data.response - def _delete_usage_rows_v1_usage_delete_serialize( + def _delete_usage_rows_api_v1_usage_delete_serialize( self, usage_delete_request, _request_auth, @@ -856,7 +856,7 @@ def _delete_usage_rows_v1_usage_delete_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/v1/usage', + resource_path='/api/v1/usage', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -873,7 +873,7 @@ def _delete_usage_rows_v1_usage_delete_serialize( @validate_call - def ingest_external_usage_v1_usage_external_events_post( + def ingest_external_usage_api_v1_usage_external_events_post( self, external_events_request: ExternalEventsRequest, _request_timeout: Union[ @@ -917,7 +917,7 @@ def ingest_external_usage_v1_usage_external_events_post( :return: Returns the result object. """ # noqa: E501 - _param = self._ingest_external_usage_v1_usage_external_events_post_serialize( + _param = self._ingest_external_usage_api_v1_usage_external_events_post_serialize( external_events_request=external_events_request, _request_auth=_request_auth, _content_type=_content_type, @@ -941,7 +941,7 @@ def ingest_external_usage_v1_usage_external_events_post( @validate_call - def ingest_external_usage_v1_usage_external_events_post_with_http_info( + def ingest_external_usage_api_v1_usage_external_events_post_with_http_info( self, external_events_request: ExternalEventsRequest, _request_timeout: Union[ @@ -985,7 +985,7 @@ def ingest_external_usage_v1_usage_external_events_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._ingest_external_usage_v1_usage_external_events_post_serialize( + _param = self._ingest_external_usage_api_v1_usage_external_events_post_serialize( external_events_request=external_events_request, _request_auth=_request_auth, _content_type=_content_type, @@ -1009,7 +1009,7 @@ def ingest_external_usage_v1_usage_external_events_post_with_http_info( @validate_call - def ingest_external_usage_v1_usage_external_events_post_without_preload_content( + def ingest_external_usage_api_v1_usage_external_events_post_without_preload_content( self, external_events_request: ExternalEventsRequest, _request_timeout: Union[ @@ -1053,7 +1053,7 @@ def ingest_external_usage_v1_usage_external_events_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._ingest_external_usage_v1_usage_external_events_post_serialize( + _param = self._ingest_external_usage_api_v1_usage_external_events_post_serialize( external_events_request=external_events_request, _request_auth=_request_auth, _content_type=_content_type, @@ -1072,7 +1072,7 @@ def ingest_external_usage_v1_usage_external_events_post_without_preload_content( return response_data.response - def _ingest_external_usage_v1_usage_external_events_post_serialize( + def _ingest_external_usage_api_v1_usage_external_events_post_serialize( self, external_events_request, _request_auth, @@ -1134,7 +1134,7 @@ def _ingest_external_usage_v1_usage_external_events_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/usage/external-events', + resource_path='/api/v1/usage/external-events', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1151,7 +1151,7 @@ def _ingest_external_usage_v1_usage_external_events_post_serialize( @validate_call - def list_in_flight_v1_usage_in_flight_get( + def list_in_flight_api_v1_usage_in_flight_get( self, _request_timeout: Union[ None, @@ -1192,7 +1192,7 @@ def list_in_flight_v1_usage_in_flight_get( :return: Returns the result object. """ # noqa: E501 - _param = self._list_in_flight_v1_usage_in_flight_get_serialize( + _param = self._list_in_flight_api_v1_usage_in_flight_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1214,7 +1214,7 @@ def list_in_flight_v1_usage_in_flight_get( @validate_call - def list_in_flight_v1_usage_in_flight_get_with_http_info( + def list_in_flight_api_v1_usage_in_flight_get_with_http_info( self, _request_timeout: Union[ None, @@ -1255,7 +1255,7 @@ def list_in_flight_v1_usage_in_flight_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_in_flight_v1_usage_in_flight_get_serialize( + _param = self._list_in_flight_api_v1_usage_in_flight_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1277,7 +1277,7 @@ def list_in_flight_v1_usage_in_flight_get_with_http_info( @validate_call - def list_in_flight_v1_usage_in_flight_get_without_preload_content( + def list_in_flight_api_v1_usage_in_flight_get_without_preload_content( self, _request_timeout: Union[ None, @@ -1318,7 +1318,7 @@ def list_in_flight_v1_usage_in_flight_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._list_in_flight_v1_usage_in_flight_get_serialize( + _param = self._list_in_flight_api_v1_usage_in_flight_get_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1335,7 +1335,7 @@ def list_in_flight_v1_usage_in_flight_get_without_preload_content( return response_data.response - def _list_in_flight_v1_usage_in_flight_get_serialize( + def _list_in_flight_api_v1_usage_in_flight_get_serialize( self, _request_auth, _content_type, @@ -1381,7 +1381,7 @@ def _list_in_flight_v1_usage_in_flight_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/usage/in-flight', + resource_path='/api/v1/usage/in-flight', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1398,7 +1398,7 @@ def _list_in_flight_v1_usage_in_flight_get_serialize( @validate_call - def list_usage_v1_usage_get( + def list_usage_api_v1_usage_get( self, start_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds)")] = None, end_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp < end_date (ISO 8601 or Unix epoch seconds)")] = None, @@ -1433,7 +1433,7 @@ def list_usage_v1_usage_get( ) -> List[UsageEntry]: """List Usage - List usage logs ordered by timestamp (most recent first). Supports optional filters for time range, user, status, failure status code, model, endpoint, provider, source, session (``source_label``), and request group (``request_group_id``, repeatable, which returns a routed request's whole attempt plan). Paginated via skip/limit. The return shape is a bare JSON array; external billing/analytics consumers depend on this, so the total row count for a paginated UI is served separately by ``GET /v1/usage/count`` rather than wrapped in an envelope here. Timestamps accept either ISO 8601 strings or Unix epoch seconds (numeric). + List usage logs ordered by timestamp (most recent first). Supports optional filters for time range, user, status, failure status code, model, endpoint, provider, source, session (``source_label``), and request group (``request_group_id``, repeatable, which returns a routed request's whole attempt plan). Paginated via skip/limit. The return shape is a bare JSON array; external billing/analytics consumers depend on this, so the total row count for a paginated UI is served separately by ``GET /api/v1/usage/count`` rather than wrapped in an envelope here. Timestamps accept either ISO 8601 strings or Unix epoch seconds (numeric). :param start_date: Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds) :type start_date: datetime @@ -1493,7 +1493,7 @@ def list_usage_v1_usage_get( :return: Returns the result object. """ # noqa: E501 - _param = self._list_usage_v1_usage_get_serialize( + _param = self._list_usage_api_v1_usage_get_serialize( start_date=start_date, end_date=end_date, user_id=user_id, @@ -1534,7 +1534,7 @@ def list_usage_v1_usage_get( @validate_call - def list_usage_v1_usage_get_with_http_info( + def list_usage_api_v1_usage_get_with_http_info( self, start_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds)")] = None, end_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp < end_date (ISO 8601 or Unix epoch seconds)")] = None, @@ -1569,7 +1569,7 @@ def list_usage_v1_usage_get_with_http_info( ) -> ApiResponse[List[UsageEntry]]: """List Usage - List usage logs ordered by timestamp (most recent first). Supports optional filters for time range, user, status, failure status code, model, endpoint, provider, source, session (``source_label``), and request group (``request_group_id``, repeatable, which returns a routed request's whole attempt plan). Paginated via skip/limit. The return shape is a bare JSON array; external billing/analytics consumers depend on this, so the total row count for a paginated UI is served separately by ``GET /v1/usage/count`` rather than wrapped in an envelope here. Timestamps accept either ISO 8601 strings or Unix epoch seconds (numeric). + List usage logs ordered by timestamp (most recent first). Supports optional filters for time range, user, status, failure status code, model, endpoint, provider, source, session (``source_label``), and request group (``request_group_id``, repeatable, which returns a routed request's whole attempt plan). Paginated via skip/limit. The return shape is a bare JSON array; external billing/analytics consumers depend on this, so the total row count for a paginated UI is served separately by ``GET /api/v1/usage/count`` rather than wrapped in an envelope here. Timestamps accept either ISO 8601 strings or Unix epoch seconds (numeric). :param start_date: Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds) :type start_date: datetime @@ -1629,7 +1629,7 @@ def list_usage_v1_usage_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_usage_v1_usage_get_serialize( + _param = self._list_usage_api_v1_usage_get_serialize( start_date=start_date, end_date=end_date, user_id=user_id, @@ -1670,7 +1670,7 @@ def list_usage_v1_usage_get_with_http_info( @validate_call - def list_usage_v1_usage_get_without_preload_content( + def list_usage_api_v1_usage_get_without_preload_content( self, start_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds)")] = None, end_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp < end_date (ISO 8601 or Unix epoch seconds)")] = None, @@ -1705,7 +1705,7 @@ def list_usage_v1_usage_get_without_preload_content( ) -> RESTResponseType: """List Usage - List usage logs ordered by timestamp (most recent first). Supports optional filters for time range, user, status, failure status code, model, endpoint, provider, source, session (``source_label``), and request group (``request_group_id``, repeatable, which returns a routed request's whole attempt plan). Paginated via skip/limit. The return shape is a bare JSON array; external billing/analytics consumers depend on this, so the total row count for a paginated UI is served separately by ``GET /v1/usage/count`` rather than wrapped in an envelope here. Timestamps accept either ISO 8601 strings or Unix epoch seconds (numeric). + List usage logs ordered by timestamp (most recent first). Supports optional filters for time range, user, status, failure status code, model, endpoint, provider, source, session (``source_label``), and request group (``request_group_id``, repeatable, which returns a routed request's whole attempt plan). Paginated via skip/limit. The return shape is a bare JSON array; external billing/analytics consumers depend on this, so the total row count for a paginated UI is served separately by ``GET /api/v1/usage/count`` rather than wrapped in an envelope here. Timestamps accept either ISO 8601 strings or Unix epoch seconds (numeric). :param start_date: Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds) :type start_date: datetime @@ -1765,7 +1765,7 @@ def list_usage_v1_usage_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._list_usage_v1_usage_get_serialize( + _param = self._list_usage_api_v1_usage_get_serialize( start_date=start_date, end_date=end_date, user_id=user_id, @@ -1801,7 +1801,7 @@ def list_usage_v1_usage_get_without_preload_content( return response_data.response - def _list_usage_v1_usage_get_serialize( + def _list_usage_api_v1_usage_get_serialize( self, start_date, end_date, @@ -1959,7 +1959,7 @@ def _list_usage_v1_usage_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/usage', + resource_path='/api/v1/usage', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1976,7 +1976,7 @@ def _list_usage_v1_usage_get_serialize( @validate_call - def set_usage_price_rows_v1_usage_set_price_post( + def set_usage_price_rows_api_v1_usage_set_price_post( self, usage_set_price_request: UsageSetPriceRequest, _request_timeout: Union[ @@ -2020,7 +2020,7 @@ def set_usage_price_rows_v1_usage_set_price_post( :return: Returns the result object. """ # noqa: E501 - _param = self._set_usage_price_rows_v1_usage_set_price_post_serialize( + _param = self._set_usage_price_rows_api_v1_usage_set_price_post_serialize( usage_set_price_request=usage_set_price_request, _request_auth=_request_auth, _content_type=_content_type, @@ -2044,7 +2044,7 @@ def set_usage_price_rows_v1_usage_set_price_post( @validate_call - def set_usage_price_rows_v1_usage_set_price_post_with_http_info( + def set_usage_price_rows_api_v1_usage_set_price_post_with_http_info( self, usage_set_price_request: UsageSetPriceRequest, _request_timeout: Union[ @@ -2088,7 +2088,7 @@ def set_usage_price_rows_v1_usage_set_price_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._set_usage_price_rows_v1_usage_set_price_post_serialize( + _param = self._set_usage_price_rows_api_v1_usage_set_price_post_serialize( usage_set_price_request=usage_set_price_request, _request_auth=_request_auth, _content_type=_content_type, @@ -2112,7 +2112,7 @@ def set_usage_price_rows_v1_usage_set_price_post_with_http_info( @validate_call - def set_usage_price_rows_v1_usage_set_price_post_without_preload_content( + def set_usage_price_rows_api_v1_usage_set_price_post_without_preload_content( self, usage_set_price_request: UsageSetPriceRequest, _request_timeout: Union[ @@ -2156,7 +2156,7 @@ def set_usage_price_rows_v1_usage_set_price_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._set_usage_price_rows_v1_usage_set_price_post_serialize( + _param = self._set_usage_price_rows_api_v1_usage_set_price_post_serialize( usage_set_price_request=usage_set_price_request, _request_auth=_request_auth, _content_type=_content_type, @@ -2175,7 +2175,7 @@ def set_usage_price_rows_v1_usage_set_price_post_without_preload_content( return response_data.response - def _set_usage_price_rows_v1_usage_set_price_post_serialize( + def _set_usage_price_rows_api_v1_usage_set_price_post_serialize( self, usage_set_price_request, _request_auth, @@ -2237,7 +2237,7 @@ def _set_usage_price_rows_v1_usage_set_price_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/usage/set-price', + resource_path='/api/v1/usage/set-price', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2254,7 +2254,7 @@ def _set_usage_price_rows_v1_usage_set_price_post_serialize( @validate_call - def usage_series_v1_usage_series_get( + def usage_series_api_v1_usage_series_get( self, group_by: Annotated[StrictStr, Field(description="Dimension to split the series by")], start_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds)")] = None, @@ -2346,7 +2346,7 @@ def usage_series_v1_usage_series_get( :return: Returns the result object. """ # noqa: E501 - _param = self._usage_series_v1_usage_series_get_serialize( + _param = self._usage_series_api_v1_usage_series_get_serialize( group_by=group_by, start_date=start_date, end_date=end_date, @@ -2386,7 +2386,7 @@ def usage_series_v1_usage_series_get( @validate_call - def usage_series_v1_usage_series_get_with_http_info( + def usage_series_api_v1_usage_series_get_with_http_info( self, group_by: Annotated[StrictStr, Field(description="Dimension to split the series by")], start_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds)")] = None, @@ -2478,7 +2478,7 @@ def usage_series_v1_usage_series_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._usage_series_v1_usage_series_get_serialize( + _param = self._usage_series_api_v1_usage_series_get_serialize( group_by=group_by, start_date=start_date, end_date=end_date, @@ -2518,7 +2518,7 @@ def usage_series_v1_usage_series_get_with_http_info( @validate_call - def usage_series_v1_usage_series_get_without_preload_content( + def usage_series_api_v1_usage_series_get_without_preload_content( self, group_by: Annotated[StrictStr, Field(description="Dimension to split the series by")], start_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds)")] = None, @@ -2610,7 +2610,7 @@ def usage_series_v1_usage_series_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._usage_series_v1_usage_series_get_serialize( + _param = self._usage_series_api_v1_usage_series_get_serialize( group_by=group_by, start_date=start_date, end_date=end_date, @@ -2645,7 +2645,7 @@ def usage_series_v1_usage_series_get_without_preload_content( return response_data.response - def _usage_series_v1_usage_series_get_serialize( + def _usage_series_api_v1_usage_series_get_serialize( self, group_by, start_date, @@ -2797,7 +2797,7 @@ def _usage_series_v1_usage_series_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/usage/series', + resource_path='/api/v1/usage/series', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2814,7 +2814,7 @@ def _usage_series_v1_usage_series_get_serialize( @validate_call - def usage_summary_v1_usage_summary_get( + def usage_summary_api_v1_usage_summary_get( self, start_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds)")] = None, end_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp < end_date (ISO 8601 or Unix epoch seconds)")] = None, @@ -2848,7 +2848,7 @@ def usage_summary_v1_usage_summary_get( ) -> UsageSummary: """Usage Summary - Aggregate spend, tokens, and request volume for the dashboard Usage page. Range-bounded (default last 30 days, hard-capped): unlike the raw ``/v1/usage`` list, every aggregate is scoped to a bounded window so it stays served by the timestamp index. Returns grand totals, breakdowns by model / user / API key / source / session (``source_label``) / endpoint / provider (top rows plus a reconciling ``other`` fold, billed token counts), the error taxonomy grouped by failure status code, and a UTC-bucketed time series carrying each bucket's error count and billed token composition (input incl. cache, cache read/write, output). Each breakdown is its own ``GROUP BY`` pass, so a caller that reads only the totals or the series should narrow ``dimensions`` rather than pay for all eight (the dashboard's tiles, timeline context, and model typeahead all do). Omitting the parameter keeps the full set. ``model``, ``user_id``, and ``api_key_id`` are repeatable: several values match any of them, so one chart can compare a handful of models, users, or keys. + Aggregate spend, tokens, and request volume for the dashboard Usage page. Range-bounded (default last 30 days, hard-capped): unlike the raw ``/api/v1/usage`` list, every aggregate is scoped to a bounded window so it stays served by the timestamp index. Returns grand totals, breakdowns by model / user / API key / source / session (``source_label``) / endpoint / provider (top rows plus a reconciling ``other`` fold, billed token counts), the error taxonomy grouped by failure status code, and a UTC-bucketed time series carrying each bucket's error count and billed token composition (input incl. cache, cache read/write, output). Each breakdown is its own ``GROUP BY`` pass, so a caller that reads only the totals or the series should narrow ``dimensions`` rather than pay for all eight (the dashboard's tiles, timeline context, and model typeahead all do). Omitting the parameter keeps the full set. ``model``, ``user_id``, and ``api_key_id`` are repeatable: several values match any of them, so one chart can compare a handful of models, users, or keys. :param start_date: Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds) :type start_date: datetime @@ -2906,7 +2906,7 @@ def usage_summary_v1_usage_summary_get( :return: Returns the result object. """ # noqa: E501 - _param = self._usage_summary_v1_usage_summary_get_serialize( + _param = self._usage_summary_api_v1_usage_summary_get_serialize( start_date=start_date, end_date=end_date, user_id=user_id, @@ -2946,7 +2946,7 @@ def usage_summary_v1_usage_summary_get( @validate_call - def usage_summary_v1_usage_summary_get_with_http_info( + def usage_summary_api_v1_usage_summary_get_with_http_info( self, start_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds)")] = None, end_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp < end_date (ISO 8601 or Unix epoch seconds)")] = None, @@ -2980,7 +2980,7 @@ def usage_summary_v1_usage_summary_get_with_http_info( ) -> ApiResponse[UsageSummary]: """Usage Summary - Aggregate spend, tokens, and request volume for the dashboard Usage page. Range-bounded (default last 30 days, hard-capped): unlike the raw ``/v1/usage`` list, every aggregate is scoped to a bounded window so it stays served by the timestamp index. Returns grand totals, breakdowns by model / user / API key / source / session (``source_label``) / endpoint / provider (top rows plus a reconciling ``other`` fold, billed token counts), the error taxonomy grouped by failure status code, and a UTC-bucketed time series carrying each bucket's error count and billed token composition (input incl. cache, cache read/write, output). Each breakdown is its own ``GROUP BY`` pass, so a caller that reads only the totals or the series should narrow ``dimensions`` rather than pay for all eight (the dashboard's tiles, timeline context, and model typeahead all do). Omitting the parameter keeps the full set. ``model``, ``user_id``, and ``api_key_id`` are repeatable: several values match any of them, so one chart can compare a handful of models, users, or keys. + Aggregate spend, tokens, and request volume for the dashboard Usage page. Range-bounded (default last 30 days, hard-capped): unlike the raw ``/api/v1/usage`` list, every aggregate is scoped to a bounded window so it stays served by the timestamp index. Returns grand totals, breakdowns by model / user / API key / source / session (``source_label``) / endpoint / provider (top rows plus a reconciling ``other`` fold, billed token counts), the error taxonomy grouped by failure status code, and a UTC-bucketed time series carrying each bucket's error count and billed token composition (input incl. cache, cache read/write, output). Each breakdown is its own ``GROUP BY`` pass, so a caller that reads only the totals or the series should narrow ``dimensions`` rather than pay for all eight (the dashboard's tiles, timeline context, and model typeahead all do). Omitting the parameter keeps the full set. ``model``, ``user_id``, and ``api_key_id`` are repeatable: several values match any of them, so one chart can compare a handful of models, users, or keys. :param start_date: Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds) :type start_date: datetime @@ -3038,7 +3038,7 @@ def usage_summary_v1_usage_summary_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._usage_summary_v1_usage_summary_get_serialize( + _param = self._usage_summary_api_v1_usage_summary_get_serialize( start_date=start_date, end_date=end_date, user_id=user_id, @@ -3078,7 +3078,7 @@ def usage_summary_v1_usage_summary_get_with_http_info( @validate_call - def usage_summary_v1_usage_summary_get_without_preload_content( + def usage_summary_api_v1_usage_summary_get_without_preload_content( self, start_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds)")] = None, end_date: Annotated[Optional[datetime], Field(description="Return logs with timestamp < end_date (ISO 8601 or Unix epoch seconds)")] = None, @@ -3112,7 +3112,7 @@ def usage_summary_v1_usage_summary_get_without_preload_content( ) -> RESTResponseType: """Usage Summary - Aggregate spend, tokens, and request volume for the dashboard Usage page. Range-bounded (default last 30 days, hard-capped): unlike the raw ``/v1/usage`` list, every aggregate is scoped to a bounded window so it stays served by the timestamp index. Returns grand totals, breakdowns by model / user / API key / source / session (``source_label``) / endpoint / provider (top rows plus a reconciling ``other`` fold, billed token counts), the error taxonomy grouped by failure status code, and a UTC-bucketed time series carrying each bucket's error count and billed token composition (input incl. cache, cache read/write, output). Each breakdown is its own ``GROUP BY`` pass, so a caller that reads only the totals or the series should narrow ``dimensions`` rather than pay for all eight (the dashboard's tiles, timeline context, and model typeahead all do). Omitting the parameter keeps the full set. ``model``, ``user_id``, and ``api_key_id`` are repeatable: several values match any of them, so one chart can compare a handful of models, users, or keys. + Aggregate spend, tokens, and request volume for the dashboard Usage page. Range-bounded (default last 30 days, hard-capped): unlike the raw ``/api/v1/usage`` list, every aggregate is scoped to a bounded window so it stays served by the timestamp index. Returns grand totals, breakdowns by model / user / API key / source / session (``source_label``) / endpoint / provider (top rows plus a reconciling ``other`` fold, billed token counts), the error taxonomy grouped by failure status code, and a UTC-bucketed time series carrying each bucket's error count and billed token composition (input incl. cache, cache read/write, output). Each breakdown is its own ``GROUP BY`` pass, so a caller that reads only the totals or the series should narrow ``dimensions`` rather than pay for all eight (the dashboard's tiles, timeline context, and model typeahead all do). Omitting the parameter keeps the full set. ``model``, ``user_id``, and ``api_key_id`` are repeatable: several values match any of them, so one chart can compare a handful of models, users, or keys. :param start_date: Return logs with timestamp >= start_date (ISO 8601 or Unix epoch seconds) :type start_date: datetime @@ -3170,7 +3170,7 @@ def usage_summary_v1_usage_summary_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._usage_summary_v1_usage_summary_get_serialize( + _param = self._usage_summary_api_v1_usage_summary_get_serialize( start_date=start_date, end_date=end_date, user_id=user_id, @@ -3205,7 +3205,7 @@ def usage_summary_v1_usage_summary_get_without_preload_content( return response_data.response - def _usage_summary_v1_usage_summary_get_serialize( + def _usage_summary_api_v1_usage_summary_get_serialize( self, start_date, end_date, @@ -3358,7 +3358,7 @@ def _usage_summary_v1_usage_summary_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/usage/summary', + resource_path='/api/v1/usage/summary', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/users_api.py b/src/otari/_client/api/users_api.py index 25241cb..fdfb9df 100644 --- a/src/otari/_client/api/users_api.py +++ b/src/otari/_client/api/users_api.py @@ -42,7 +42,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def create_user_v1_users_post( + def create_user_api_v1_users_post( self, create_user_request: CreateUserRequest, _request_timeout: Union[ @@ -86,7 +86,7 @@ def create_user_v1_users_post( :return: Returns the result object. """ # noqa: E501 - _param = self._create_user_v1_users_post_serialize( + _param = self._create_user_api_v1_users_post_serialize( create_user_request=create_user_request, _request_auth=_request_auth, _content_type=_content_type, @@ -110,7 +110,7 @@ def create_user_v1_users_post( @validate_call - def create_user_v1_users_post_with_http_info( + def create_user_api_v1_users_post_with_http_info( self, create_user_request: CreateUserRequest, _request_timeout: Union[ @@ -154,7 +154,7 @@ def create_user_v1_users_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_user_v1_users_post_serialize( + _param = self._create_user_api_v1_users_post_serialize( create_user_request=create_user_request, _request_auth=_request_auth, _content_type=_content_type, @@ -178,7 +178,7 @@ def create_user_v1_users_post_with_http_info( @validate_call - def create_user_v1_users_post_without_preload_content( + def create_user_api_v1_users_post_without_preload_content( self, create_user_request: CreateUserRequest, _request_timeout: Union[ @@ -222,7 +222,7 @@ def create_user_v1_users_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._create_user_v1_users_post_serialize( + _param = self._create_user_api_v1_users_post_serialize( create_user_request=create_user_request, _request_auth=_request_auth, _content_type=_content_type, @@ -241,7 +241,7 @@ def create_user_v1_users_post_without_preload_content( return response_data.response - def _create_user_v1_users_post_serialize( + def _create_user_api_v1_users_post_serialize( self, create_user_request, _request_auth, @@ -303,7 +303,7 @@ def _create_user_v1_users_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/users', + resource_path='/api/v1/users', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -320,7 +320,7 @@ def _create_user_v1_users_post_serialize( @validate_call - def delete_user_v1_users_user_id_delete( + def delete_user_api_v1_users_user_id_delete( self, user_id: StrictStr, _request_timeout: Union[ @@ -364,7 +364,7 @@ def delete_user_v1_users_user_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_user_v1_users_user_id_delete_serialize( + _param = self._delete_user_api_v1_users_user_id_delete_serialize( user_id=user_id, _request_auth=_request_auth, _content_type=_content_type, @@ -388,7 +388,7 @@ def delete_user_v1_users_user_id_delete( @validate_call - def delete_user_v1_users_user_id_delete_with_http_info( + def delete_user_api_v1_users_user_id_delete_with_http_info( self, user_id: StrictStr, _request_timeout: Union[ @@ -432,7 +432,7 @@ def delete_user_v1_users_user_id_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_user_v1_users_user_id_delete_serialize( + _param = self._delete_user_api_v1_users_user_id_delete_serialize( user_id=user_id, _request_auth=_request_auth, _content_type=_content_type, @@ -456,7 +456,7 @@ def delete_user_v1_users_user_id_delete_with_http_info( @validate_call - def delete_user_v1_users_user_id_delete_without_preload_content( + def delete_user_api_v1_users_user_id_delete_without_preload_content( self, user_id: StrictStr, _request_timeout: Union[ @@ -500,7 +500,7 @@ def delete_user_v1_users_user_id_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_user_v1_users_user_id_delete_serialize( + _param = self._delete_user_api_v1_users_user_id_delete_serialize( user_id=user_id, _request_auth=_request_auth, _content_type=_content_type, @@ -519,7 +519,7 @@ def delete_user_v1_users_user_id_delete_without_preload_content( return response_data.response - def _delete_user_v1_users_user_id_delete_serialize( + def _delete_user_api_v1_users_user_id_delete_serialize( self, user_id, _request_auth, @@ -568,7 +568,7 @@ def _delete_user_v1_users_user_id_delete_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/v1/users/{user_id}', + resource_path='/api/v1/users/{user_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -585,11 +585,9 @@ def _delete_user_v1_users_user_id_delete_serialize( @validate_call - def get_user_usage_v1_users_user_id_usage_get( + def get_user_api_v1_users_user_id_get( self, user_id: StrictStr, - skip: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, - limit: Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -602,17 +600,13 @@ def get_user_usage_v1_users_user_id_usage_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[UsageLogResponse]: - """Get User Usage + ) -> UserResponse: + """Get User - Get usage history for a specific user. + Get details of a specific user. :param user_id: (required) :type user_id: str - :param skip: - :type skip: int - :param limit: - :type limit: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -635,10 +629,8 @@ def get_user_usage_v1_users_user_id_usage_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_user_usage_v1_users_user_id_usage_get_serialize( + _param = self._get_user_api_v1_users_user_id_get_serialize( user_id=user_id, - skip=skip, - limit=limit, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -646,7 +638,7 @@ def get_user_usage_v1_users_user_id_usage_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsageLogResponse]", + '200': "UserResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -661,11 +653,9 @@ def get_user_usage_v1_users_user_id_usage_get( @validate_call - def get_user_usage_v1_users_user_id_usage_get_with_http_info( + def get_user_api_v1_users_user_id_get_with_http_info( self, user_id: StrictStr, - skip: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, - limit: Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -678,17 +668,13 @@ def get_user_usage_v1_users_user_id_usage_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[UsageLogResponse]]: - """Get User Usage + ) -> ApiResponse[UserResponse]: + """Get User - Get usage history for a specific user. + Get details of a specific user. :param user_id: (required) :type user_id: str - :param skip: - :type skip: int - :param limit: - :type limit: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -711,10 +697,8 @@ def get_user_usage_v1_users_user_id_usage_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_user_usage_v1_users_user_id_usage_get_serialize( + _param = self._get_user_api_v1_users_user_id_get_serialize( user_id=user_id, - skip=skip, - limit=limit, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -722,7 +706,7 @@ def get_user_usage_v1_users_user_id_usage_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsageLogResponse]", + '200': "UserResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -737,11 +721,9 @@ def get_user_usage_v1_users_user_id_usage_get_with_http_info( @validate_call - def get_user_usage_v1_users_user_id_usage_get_without_preload_content( + def get_user_api_v1_users_user_id_get_without_preload_content( self, user_id: StrictStr, - skip: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, - limit: Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -755,16 +737,12 @@ def get_user_usage_v1_users_user_id_usage_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get User Usage + """Get User - Get usage history for a specific user. + Get details of a specific user. :param user_id: (required) :type user_id: str - :param skip: - :type skip: int - :param limit: - :type limit: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -787,10 +765,8 @@ def get_user_usage_v1_users_user_id_usage_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_user_usage_v1_users_user_id_usage_get_serialize( + _param = self._get_user_api_v1_users_user_id_get_serialize( user_id=user_id, - skip=skip, - limit=limit, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -798,7 +774,7 @@ def get_user_usage_v1_users_user_id_usage_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsageLogResponse]", + '200': "UserResponse", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -808,11 +784,9 @@ def get_user_usage_v1_users_user_id_usage_get_without_preload_content( return response_data.response - def _get_user_usage_v1_users_user_id_usage_get_serialize( + def _get_user_api_v1_users_user_id_get_serialize( self, user_id, - skip, - limit, _request_auth, _content_type, _headers, @@ -837,14 +811,6 @@ def _get_user_usage_v1_users_user_id_usage_get_serialize( if user_id is not None: _path_params['user_id'] = user_id # process the query parameters - if skip is not None: - - _query_params.append(('skip', skip)) - - if limit is not None: - - _query_params.append(('limit', limit)) - # process the header parameters # process the form parameters # process the body parameter @@ -867,7 +833,7 @@ def _get_user_usage_v1_users_user_id_usage_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/users/{user_id}/usage', + resource_path='/api/v1/users/{user_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -884,9 +850,11 @@ def _get_user_usage_v1_users_user_id_usage_get_serialize( @validate_call - def get_user_v1_users_user_id_get( + def get_user_usage_api_v1_users_user_id_usage_get( self, user_id: StrictStr, + skip: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, + limit: Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -899,13 +867,17 @@ def get_user_v1_users_user_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> UserResponse: - """Get User + ) -> List[UsageLogResponse]: + """Get User Usage - Get details of a specific user. + Get usage history for a specific user. :param user_id: (required) :type user_id: str + :param skip: + :type skip: int + :param limit: + :type limit: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -928,8 +900,10 @@ def get_user_v1_users_user_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_user_v1_users_user_id_get_serialize( + _param = self._get_user_usage_api_v1_users_user_id_usage_get_serialize( user_id=user_id, + skip=skip, + limit=limit, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -937,7 +911,7 @@ def get_user_v1_users_user_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserResponse", + '200': "List[UsageLogResponse]", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -952,9 +926,11 @@ def get_user_v1_users_user_id_get( @validate_call - def get_user_v1_users_user_id_get_with_http_info( + def get_user_usage_api_v1_users_user_id_usage_get_with_http_info( self, user_id: StrictStr, + skip: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, + limit: Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -967,13 +943,17 @@ def get_user_v1_users_user_id_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserResponse]: - """Get User + ) -> ApiResponse[List[UsageLogResponse]]: + """Get User Usage - Get details of a specific user. + Get usage history for a specific user. :param user_id: (required) :type user_id: str + :param skip: + :type skip: int + :param limit: + :type limit: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -996,8 +976,10 @@ def get_user_v1_users_user_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_user_v1_users_user_id_get_serialize( + _param = self._get_user_usage_api_v1_users_user_id_usage_get_serialize( user_id=user_id, + skip=skip, + limit=limit, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1005,7 +987,7 @@ def get_user_v1_users_user_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserResponse", + '200': "List[UsageLogResponse]", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -1020,9 +1002,11 @@ def get_user_v1_users_user_id_get_with_http_info( @validate_call - def get_user_v1_users_user_id_get_without_preload_content( + def get_user_usage_api_v1_users_user_id_usage_get_without_preload_content( self, user_id: StrictStr, + skip: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, + limit: Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1036,12 +1020,16 @@ def get_user_v1_users_user_id_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get User + """Get User Usage - Get details of a specific user. + Get usage history for a specific user. :param user_id: (required) :type user_id: str + :param skip: + :type skip: int + :param limit: + :type limit: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1064,8 +1052,10 @@ def get_user_v1_users_user_id_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_user_v1_users_user_id_get_serialize( + _param = self._get_user_usage_api_v1_users_user_id_usage_get_serialize( user_id=user_id, + skip=skip, + limit=limit, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1073,7 +1063,7 @@ def get_user_v1_users_user_id_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserResponse", + '200': "List[UsageLogResponse]", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -1083,9 +1073,11 @@ def get_user_v1_users_user_id_get_without_preload_content( return response_data.response - def _get_user_v1_users_user_id_get_serialize( + def _get_user_usage_api_v1_users_user_id_usage_get_serialize( self, user_id, + skip, + limit, _request_auth, _content_type, _headers, @@ -1110,6 +1102,14 @@ def _get_user_v1_users_user_id_get_serialize( if user_id is not None: _path_params['user_id'] = user_id # process the query parameters + if skip is not None: + + _query_params.append(('skip', skip)) + + if limit is not None: + + _query_params.append(('limit', limit)) + # process the header parameters # process the form parameters # process the body parameter @@ -1132,7 +1132,7 @@ def _get_user_v1_users_user_id_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/users/{user_id}', + resource_path='/api/v1/users/{user_id}/usage', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1149,7 +1149,7 @@ def _get_user_v1_users_user_id_get_serialize( @validate_call - def list_users_v1_users_get( + def list_users_api_v1_users_get( self, skip: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, limit: Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]] = None, @@ -1196,7 +1196,7 @@ def list_users_v1_users_get( :return: Returns the result object. """ # noqa: E501 - _param = self._list_users_v1_users_get_serialize( + _param = self._list_users_api_v1_users_get_serialize( skip=skip, limit=limit, _request_auth=_request_auth, @@ -1221,7 +1221,7 @@ def list_users_v1_users_get( @validate_call - def list_users_v1_users_get_with_http_info( + def list_users_api_v1_users_get_with_http_info( self, skip: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, limit: Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]] = None, @@ -1268,7 +1268,7 @@ def list_users_v1_users_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_users_v1_users_get_serialize( + _param = self._list_users_api_v1_users_get_serialize( skip=skip, limit=limit, _request_auth=_request_auth, @@ -1293,7 +1293,7 @@ def list_users_v1_users_get_with_http_info( @validate_call - def list_users_v1_users_get_without_preload_content( + def list_users_api_v1_users_get_without_preload_content( self, skip: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, limit: Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]] = None, @@ -1340,7 +1340,7 @@ def list_users_v1_users_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._list_users_v1_users_get_serialize( + _param = self._list_users_api_v1_users_get_serialize( skip=skip, limit=limit, _request_auth=_request_auth, @@ -1360,7 +1360,7 @@ def list_users_v1_users_get_without_preload_content( return response_data.response - def _list_users_v1_users_get_serialize( + def _list_users_api_v1_users_get_serialize( self, skip, limit, @@ -1416,7 +1416,7 @@ def _list_users_v1_users_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/users', + resource_path='/api/v1/users', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1433,7 +1433,7 @@ def _list_users_v1_users_get_serialize( @validate_call - def update_user_v1_users_user_id_patch( + def update_user_api_v1_users_user_id_patch( self, user_id: StrictStr, update_user_request: UpdateUserRequest, @@ -1480,7 +1480,7 @@ def update_user_v1_users_user_id_patch( :return: Returns the result object. """ # noqa: E501 - _param = self._update_user_v1_users_user_id_patch_serialize( + _param = self._update_user_api_v1_users_user_id_patch_serialize( user_id=user_id, update_user_request=update_user_request, _request_auth=_request_auth, @@ -1505,7 +1505,7 @@ def update_user_v1_users_user_id_patch( @validate_call - def update_user_v1_users_user_id_patch_with_http_info( + def update_user_api_v1_users_user_id_patch_with_http_info( self, user_id: StrictStr, update_user_request: UpdateUserRequest, @@ -1552,7 +1552,7 @@ def update_user_v1_users_user_id_patch_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._update_user_v1_users_user_id_patch_serialize( + _param = self._update_user_api_v1_users_user_id_patch_serialize( user_id=user_id, update_user_request=update_user_request, _request_auth=_request_auth, @@ -1577,7 +1577,7 @@ def update_user_v1_users_user_id_patch_with_http_info( @validate_call - def update_user_v1_users_user_id_patch_without_preload_content( + def update_user_api_v1_users_user_id_patch_without_preload_content( self, user_id: StrictStr, update_user_request: UpdateUserRequest, @@ -1624,7 +1624,7 @@ def update_user_v1_users_user_id_patch_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._update_user_v1_users_user_id_patch_serialize( + _param = self._update_user_api_v1_users_user_id_patch_serialize( user_id=user_id, update_user_request=update_user_request, _request_auth=_request_auth, @@ -1644,7 +1644,7 @@ def update_user_v1_users_user_id_patch_without_preload_content( return response_data.response - def _update_user_v1_users_user_id_patch_serialize( + def _update_user_api_v1_users_user_id_patch_serialize( self, user_id, update_user_request, @@ -1709,7 +1709,7 @@ def _update_user_v1_users_user_id_patch_serialize( return self.api_client.param_serialize( method='PATCH', - resource_path='/v1/users/{user_id}', + resource_path='/api/v1/users/{user_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/web_search_api.py b/src/otari/_client/api/web_search_api.py index 84692da..4f7a335 100644 --- a/src/otari/_client/api/web_search_api.py +++ b/src/otari/_client/api/web_search_api.py @@ -39,7 +39,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def web_search_v1_web_search_search_get( + def web_search_api_v1_web_search_search_get( self, q: Annotated[str, Field(min_length=1, strict=True, description="The search query.")], max_results: Optional[Annotated[int, Field(le=20, strict=True, ge=1)]] = None, @@ -101,7 +101,7 @@ def web_search_v1_web_search_search_get( :return: Returns the result object. """ # noqa: E501 - _param = self._web_search_v1_web_search_search_get_serialize( + _param = self._web_search_api_v1_web_search_search_get_serialize( q=q, max_results=max_results, search_depth=search_depth, @@ -131,7 +131,7 @@ def web_search_v1_web_search_search_get( @validate_call - def web_search_v1_web_search_search_get_with_http_info( + def web_search_api_v1_web_search_search_get_with_http_info( self, q: Annotated[str, Field(min_length=1, strict=True, description="The search query.")], max_results: Optional[Annotated[int, Field(le=20, strict=True, ge=1)]] = None, @@ -193,7 +193,7 @@ def web_search_v1_web_search_search_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._web_search_v1_web_search_search_get_serialize( + _param = self._web_search_api_v1_web_search_search_get_serialize( q=q, max_results=max_results, search_depth=search_depth, @@ -223,7 +223,7 @@ def web_search_v1_web_search_search_get_with_http_info( @validate_call - def web_search_v1_web_search_search_get_without_preload_content( + def web_search_api_v1_web_search_search_get_without_preload_content( self, q: Annotated[str, Field(min_length=1, strict=True, description="The search query.")], max_results: Optional[Annotated[int, Field(le=20, strict=True, ge=1)]] = None, @@ -285,7 +285,7 @@ def web_search_v1_web_search_search_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._web_search_v1_web_search_search_get_serialize( + _param = self._web_search_api_v1_web_search_search_get_serialize( q=q, max_results=max_results, search_depth=search_depth, @@ -310,7 +310,7 @@ def web_search_v1_web_search_search_get_without_preload_content( return response_data.response - def _web_search_v1_web_search_search_get_serialize( + def _web_search_api_v1_web_search_search_get_serialize( self, q, max_results, @@ -388,7 +388,7 @@ def _web_search_v1_web_search_search_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/web-search/search', + resource_path='/api/v1/web-search/search', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/workspace_activation_api.py b/src/otari/_client/api/workspace_activation_api.py index b137df1..cbf5582 100644 --- a/src/otari/_client/api/workspace_activation_api.py +++ b/src/otari/_client/api/workspace_activation_api.py @@ -39,7 +39,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def create_workspace_activation_key_v1_workspaces_workspace_id_activation_key_post( + def create_workspace_activation_key_api_v1_workspaces_workspace_id_activation_key_post( self, workspace_id: UUID, _request_timeout: Union[ @@ -83,7 +83,7 @@ def create_workspace_activation_key_v1_workspaces_workspace_id_activation_key_po :return: Returns the result object. """ # noqa: E501 - _param = self._create_workspace_activation_key_v1_workspaces_workspace_id_activation_key_post_serialize( + _param = self._create_workspace_activation_key_api_v1_workspaces_workspace_id_activation_key_post_serialize( workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, @@ -107,7 +107,7 @@ def create_workspace_activation_key_v1_workspaces_workspace_id_activation_key_po @validate_call - def create_workspace_activation_key_v1_workspaces_workspace_id_activation_key_post_with_http_info( + def create_workspace_activation_key_api_v1_workspaces_workspace_id_activation_key_post_with_http_info( self, workspace_id: UUID, _request_timeout: Union[ @@ -151,7 +151,7 @@ def create_workspace_activation_key_v1_workspaces_workspace_id_activation_key_po :return: Returns the result object. """ # noqa: E501 - _param = self._create_workspace_activation_key_v1_workspaces_workspace_id_activation_key_post_serialize( + _param = self._create_workspace_activation_key_api_v1_workspaces_workspace_id_activation_key_post_serialize( workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, @@ -175,7 +175,7 @@ def create_workspace_activation_key_v1_workspaces_workspace_id_activation_key_po @validate_call - def create_workspace_activation_key_v1_workspaces_workspace_id_activation_key_post_without_preload_content( + def create_workspace_activation_key_api_v1_workspaces_workspace_id_activation_key_post_without_preload_content( self, workspace_id: UUID, _request_timeout: Union[ @@ -219,7 +219,7 @@ def create_workspace_activation_key_v1_workspaces_workspace_id_activation_key_po :return: Returns the result object. """ # noqa: E501 - _param = self._create_workspace_activation_key_v1_workspaces_workspace_id_activation_key_post_serialize( + _param = self._create_workspace_activation_key_api_v1_workspaces_workspace_id_activation_key_post_serialize( workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, @@ -238,7 +238,7 @@ def create_workspace_activation_key_v1_workspaces_workspace_id_activation_key_po return response_data.response - def _create_workspace_activation_key_v1_workspaces_workspace_id_activation_key_post_serialize( + def _create_workspace_activation_key_api_v1_workspaces_workspace_id_activation_key_post_serialize( self, workspace_id, _request_auth, @@ -287,7 +287,7 @@ def _create_workspace_activation_key_v1_workspaces_workspace_id_activation_key_p return self.api_client.param_serialize( method='POST', - resource_path='/v1/workspaces/{workspace_id}/activation/key', + resource_path='/api/v1/workspaces/{workspace_id}/activation/key', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -304,7 +304,7 @@ def _create_workspace_activation_key_v1_workspaces_workspace_id_activation_key_p @validate_call - def dismiss_workspace_activation_v1_workspaces_workspace_id_activation_dismiss_post( + def dismiss_workspace_activation_api_v1_workspaces_workspace_id_activation_dismiss_post( self, workspace_id: UUID, _request_timeout: Union[ @@ -348,7 +348,7 @@ def dismiss_workspace_activation_v1_workspaces_workspace_id_activation_dismiss_p :return: Returns the result object. """ # noqa: E501 - _param = self._dismiss_workspace_activation_v1_workspaces_workspace_id_activation_dismiss_post_serialize( + _param = self._dismiss_workspace_activation_api_v1_workspaces_workspace_id_activation_dismiss_post_serialize( workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, @@ -372,7 +372,7 @@ def dismiss_workspace_activation_v1_workspaces_workspace_id_activation_dismiss_p @validate_call - def dismiss_workspace_activation_v1_workspaces_workspace_id_activation_dismiss_post_with_http_info( + def dismiss_workspace_activation_api_v1_workspaces_workspace_id_activation_dismiss_post_with_http_info( self, workspace_id: UUID, _request_timeout: Union[ @@ -416,7 +416,7 @@ def dismiss_workspace_activation_v1_workspaces_workspace_id_activation_dismiss_p :return: Returns the result object. """ # noqa: E501 - _param = self._dismiss_workspace_activation_v1_workspaces_workspace_id_activation_dismiss_post_serialize( + _param = self._dismiss_workspace_activation_api_v1_workspaces_workspace_id_activation_dismiss_post_serialize( workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, @@ -440,7 +440,7 @@ def dismiss_workspace_activation_v1_workspaces_workspace_id_activation_dismiss_p @validate_call - def dismiss_workspace_activation_v1_workspaces_workspace_id_activation_dismiss_post_without_preload_content( + def dismiss_workspace_activation_api_v1_workspaces_workspace_id_activation_dismiss_post_without_preload_content( self, workspace_id: UUID, _request_timeout: Union[ @@ -484,7 +484,7 @@ def dismiss_workspace_activation_v1_workspaces_workspace_id_activation_dismiss_p :return: Returns the result object. """ # noqa: E501 - _param = self._dismiss_workspace_activation_v1_workspaces_workspace_id_activation_dismiss_post_serialize( + _param = self._dismiss_workspace_activation_api_v1_workspaces_workspace_id_activation_dismiss_post_serialize( workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, @@ -503,7 +503,7 @@ def dismiss_workspace_activation_v1_workspaces_workspace_id_activation_dismiss_p return response_data.response - def _dismiss_workspace_activation_v1_workspaces_workspace_id_activation_dismiss_post_serialize( + def _dismiss_workspace_activation_api_v1_workspaces_workspace_id_activation_dismiss_post_serialize( self, workspace_id, _request_auth, @@ -552,7 +552,7 @@ def _dismiss_workspace_activation_v1_workspaces_workspace_id_activation_dismiss_ return self.api_client.param_serialize( method='POST', - resource_path='/v1/workspaces/{workspace_id}/activation/dismiss', + resource_path='/api/v1/workspaces/{workspace_id}/activation/dismiss', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -569,7 +569,7 @@ def _dismiss_workspace_activation_v1_workspaces_workspace_id_activation_dismiss_ @validate_call - def get_workspace_activation_v1_workspaces_workspace_id_activation_get( + def get_workspace_activation_api_v1_workspaces_workspace_id_activation_get( self, workspace_id: UUID, _request_timeout: Union[ @@ -613,7 +613,7 @@ def get_workspace_activation_v1_workspaces_workspace_id_activation_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_workspace_activation_v1_workspaces_workspace_id_activation_get_serialize( + _param = self._get_workspace_activation_api_v1_workspaces_workspace_id_activation_get_serialize( workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, @@ -637,7 +637,7 @@ def get_workspace_activation_v1_workspaces_workspace_id_activation_get( @validate_call - def get_workspace_activation_v1_workspaces_workspace_id_activation_get_with_http_info( + def get_workspace_activation_api_v1_workspaces_workspace_id_activation_get_with_http_info( self, workspace_id: UUID, _request_timeout: Union[ @@ -681,7 +681,7 @@ def get_workspace_activation_v1_workspaces_workspace_id_activation_get_with_http :return: Returns the result object. """ # noqa: E501 - _param = self._get_workspace_activation_v1_workspaces_workspace_id_activation_get_serialize( + _param = self._get_workspace_activation_api_v1_workspaces_workspace_id_activation_get_serialize( workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, @@ -705,7 +705,7 @@ def get_workspace_activation_v1_workspaces_workspace_id_activation_get_with_http @validate_call - def get_workspace_activation_v1_workspaces_workspace_id_activation_get_without_preload_content( + def get_workspace_activation_api_v1_workspaces_workspace_id_activation_get_without_preload_content( self, workspace_id: UUID, _request_timeout: Union[ @@ -749,7 +749,7 @@ def get_workspace_activation_v1_workspaces_workspace_id_activation_get_without_p :return: Returns the result object. """ # noqa: E501 - _param = self._get_workspace_activation_v1_workspaces_workspace_id_activation_get_serialize( + _param = self._get_workspace_activation_api_v1_workspaces_workspace_id_activation_get_serialize( workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, @@ -768,7 +768,7 @@ def get_workspace_activation_v1_workspaces_workspace_id_activation_get_without_p return response_data.response - def _get_workspace_activation_v1_workspaces_workspace_id_activation_get_serialize( + def _get_workspace_activation_api_v1_workspaces_workspace_id_activation_get_serialize( self, workspace_id, _request_auth, @@ -817,7 +817,7 @@ def _get_workspace_activation_v1_workspaces_workspace_id_activation_get_serializ return self.api_client.param_serialize( method='GET', - resource_path='/v1/workspaces/{workspace_id}/activation', + resource_path='/api/v1/workspaces/{workspace_id}/activation', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/workspace_code_execution_policy_api.py b/src/otari/_client/api/workspace_code_execution_policy_api.py index fde0e2a..09dc6a7 100644 --- a/src/otari/_client/api/workspace_code_execution_policy_api.py +++ b/src/otari/_client/api/workspace_code_execution_policy_api.py @@ -38,7 +38,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def clear_workspace_code_execution_policy_v1_workspaces_workspace_id_code_execution_policy_delete( + def clear_workspace_code_execution_policy_api_v1_workspaces_workspace_id_code_execution_policy_delete( self, workspace_id: UUID, _request_timeout: Union[ @@ -82,7 +82,7 @@ def clear_workspace_code_execution_policy_v1_workspaces_workspace_id_code_execut :return: Returns the result object. """ # noqa: E501 - _param = self._clear_workspace_code_execution_policy_v1_workspaces_workspace_id_code_execution_policy_delete_serialize( + _param = self._clear_workspace_code_execution_policy_api_v1_workspaces_workspace_id_code_execution_policy_delete_serialize( workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, @@ -106,7 +106,7 @@ def clear_workspace_code_execution_policy_v1_workspaces_workspace_id_code_execut @validate_call - def clear_workspace_code_execution_policy_v1_workspaces_workspace_id_code_execution_policy_delete_with_http_info( + def clear_workspace_code_execution_policy_api_v1_workspaces_workspace_id_code_execution_policy_delete_with_http_info( self, workspace_id: UUID, _request_timeout: Union[ @@ -150,7 +150,7 @@ def clear_workspace_code_execution_policy_v1_workspaces_workspace_id_code_execut :return: Returns the result object. """ # noqa: E501 - _param = self._clear_workspace_code_execution_policy_v1_workspaces_workspace_id_code_execution_policy_delete_serialize( + _param = self._clear_workspace_code_execution_policy_api_v1_workspaces_workspace_id_code_execution_policy_delete_serialize( workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, @@ -174,7 +174,7 @@ def clear_workspace_code_execution_policy_v1_workspaces_workspace_id_code_execut @validate_call - def clear_workspace_code_execution_policy_v1_workspaces_workspace_id_code_execution_policy_delete_without_preload_content( + def clear_workspace_code_execution_policy_api_v1_workspaces_workspace_id_code_execution_policy_delete_without_preload_content( self, workspace_id: UUID, _request_timeout: Union[ @@ -218,7 +218,7 @@ def clear_workspace_code_execution_policy_v1_workspaces_workspace_id_code_execut :return: Returns the result object. """ # noqa: E501 - _param = self._clear_workspace_code_execution_policy_v1_workspaces_workspace_id_code_execution_policy_delete_serialize( + _param = self._clear_workspace_code_execution_policy_api_v1_workspaces_workspace_id_code_execution_policy_delete_serialize( workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, @@ -237,7 +237,7 @@ def clear_workspace_code_execution_policy_v1_workspaces_workspace_id_code_execut return response_data.response - def _clear_workspace_code_execution_policy_v1_workspaces_workspace_id_code_execution_policy_delete_serialize( + def _clear_workspace_code_execution_policy_api_v1_workspaces_workspace_id_code_execution_policy_delete_serialize( self, workspace_id, _request_auth, @@ -286,7 +286,7 @@ def _clear_workspace_code_execution_policy_v1_workspaces_workspace_id_code_execu return self.api_client.param_serialize( method='DELETE', - resource_path='/v1/workspaces/{workspace_id}/code-execution-policy', + resource_path='/api/v1/workspaces/{workspace_id}/code-execution-policy', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -303,7 +303,7 @@ def _clear_workspace_code_execution_policy_v1_workspaces_workspace_id_code_execu @validate_call - def get_workspace_code_execution_policy_v1_workspaces_workspace_id_code_execution_policy_get( + def get_workspace_code_execution_policy_api_v1_workspaces_workspace_id_code_execution_policy_get( self, workspace_id: UUID, _request_timeout: Union[ @@ -347,7 +347,7 @@ def get_workspace_code_execution_policy_v1_workspaces_workspace_id_code_executio :return: Returns the result object. """ # noqa: E501 - _param = self._get_workspace_code_execution_policy_v1_workspaces_workspace_id_code_execution_policy_get_serialize( + _param = self._get_workspace_code_execution_policy_api_v1_workspaces_workspace_id_code_execution_policy_get_serialize( workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, @@ -371,7 +371,7 @@ def get_workspace_code_execution_policy_v1_workspaces_workspace_id_code_executio @validate_call - def get_workspace_code_execution_policy_v1_workspaces_workspace_id_code_execution_policy_get_with_http_info( + def get_workspace_code_execution_policy_api_v1_workspaces_workspace_id_code_execution_policy_get_with_http_info( self, workspace_id: UUID, _request_timeout: Union[ @@ -415,7 +415,7 @@ def get_workspace_code_execution_policy_v1_workspaces_workspace_id_code_executio :return: Returns the result object. """ # noqa: E501 - _param = self._get_workspace_code_execution_policy_v1_workspaces_workspace_id_code_execution_policy_get_serialize( + _param = self._get_workspace_code_execution_policy_api_v1_workspaces_workspace_id_code_execution_policy_get_serialize( workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, @@ -439,7 +439,7 @@ def get_workspace_code_execution_policy_v1_workspaces_workspace_id_code_executio @validate_call - def get_workspace_code_execution_policy_v1_workspaces_workspace_id_code_execution_policy_get_without_preload_content( + def get_workspace_code_execution_policy_api_v1_workspaces_workspace_id_code_execution_policy_get_without_preload_content( self, workspace_id: UUID, _request_timeout: Union[ @@ -483,7 +483,7 @@ def get_workspace_code_execution_policy_v1_workspaces_workspace_id_code_executio :return: Returns the result object. """ # noqa: E501 - _param = self._get_workspace_code_execution_policy_v1_workspaces_workspace_id_code_execution_policy_get_serialize( + _param = self._get_workspace_code_execution_policy_api_v1_workspaces_workspace_id_code_execution_policy_get_serialize( workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, @@ -502,7 +502,7 @@ def get_workspace_code_execution_policy_v1_workspaces_workspace_id_code_executio return response_data.response - def _get_workspace_code_execution_policy_v1_workspaces_workspace_id_code_execution_policy_get_serialize( + def _get_workspace_code_execution_policy_api_v1_workspaces_workspace_id_code_execution_policy_get_serialize( self, workspace_id, _request_auth, @@ -551,7 +551,7 @@ def _get_workspace_code_execution_policy_v1_workspaces_workspace_id_code_executi return self.api_client.param_serialize( method='GET', - resource_path='/v1/workspaces/{workspace_id}/code-execution-policy', + resource_path='/api/v1/workspaces/{workspace_id}/code-execution-policy', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -568,7 +568,7 @@ def _get_workspace_code_execution_policy_v1_workspaces_workspace_id_code_executi @validate_call - def set_workspace_code_execution_policy_v1_workspaces_workspace_id_code_execution_policy_put( + def set_workspace_code_execution_policy_api_v1_workspaces_workspace_id_code_execution_policy_put( self, workspace_id: UUID, workspace_code_execution_policy_update: WorkspaceCodeExecutionPolicyUpdate, @@ -615,7 +615,7 @@ def set_workspace_code_execution_policy_v1_workspaces_workspace_id_code_executio :return: Returns the result object. """ # noqa: E501 - _param = self._set_workspace_code_execution_policy_v1_workspaces_workspace_id_code_execution_policy_put_serialize( + _param = self._set_workspace_code_execution_policy_api_v1_workspaces_workspace_id_code_execution_policy_put_serialize( workspace_id=workspace_id, workspace_code_execution_policy_update=workspace_code_execution_policy_update, _request_auth=_request_auth, @@ -640,7 +640,7 @@ def set_workspace_code_execution_policy_v1_workspaces_workspace_id_code_executio @validate_call - def set_workspace_code_execution_policy_v1_workspaces_workspace_id_code_execution_policy_put_with_http_info( + def set_workspace_code_execution_policy_api_v1_workspaces_workspace_id_code_execution_policy_put_with_http_info( self, workspace_id: UUID, workspace_code_execution_policy_update: WorkspaceCodeExecutionPolicyUpdate, @@ -687,7 +687,7 @@ def set_workspace_code_execution_policy_v1_workspaces_workspace_id_code_executio :return: Returns the result object. """ # noqa: E501 - _param = self._set_workspace_code_execution_policy_v1_workspaces_workspace_id_code_execution_policy_put_serialize( + _param = self._set_workspace_code_execution_policy_api_v1_workspaces_workspace_id_code_execution_policy_put_serialize( workspace_id=workspace_id, workspace_code_execution_policy_update=workspace_code_execution_policy_update, _request_auth=_request_auth, @@ -712,7 +712,7 @@ def set_workspace_code_execution_policy_v1_workspaces_workspace_id_code_executio @validate_call - def set_workspace_code_execution_policy_v1_workspaces_workspace_id_code_execution_policy_put_without_preload_content( + def set_workspace_code_execution_policy_api_v1_workspaces_workspace_id_code_execution_policy_put_without_preload_content( self, workspace_id: UUID, workspace_code_execution_policy_update: WorkspaceCodeExecutionPolicyUpdate, @@ -759,7 +759,7 @@ def set_workspace_code_execution_policy_v1_workspaces_workspace_id_code_executio :return: Returns the result object. """ # noqa: E501 - _param = self._set_workspace_code_execution_policy_v1_workspaces_workspace_id_code_execution_policy_put_serialize( + _param = self._set_workspace_code_execution_policy_api_v1_workspaces_workspace_id_code_execution_policy_put_serialize( workspace_id=workspace_id, workspace_code_execution_policy_update=workspace_code_execution_policy_update, _request_auth=_request_auth, @@ -779,7 +779,7 @@ def set_workspace_code_execution_policy_v1_workspaces_workspace_id_code_executio return response_data.response - def _set_workspace_code_execution_policy_v1_workspaces_workspace_id_code_execution_policy_put_serialize( + def _set_workspace_code_execution_policy_api_v1_workspaces_workspace_id_code_execution_policy_put_serialize( self, workspace_id, workspace_code_execution_policy_update, @@ -844,7 +844,7 @@ def _set_workspace_code_execution_policy_v1_workspaces_workspace_id_code_executi return self.api_client.param_serialize( method='PUT', - resource_path='/v1/workspaces/{workspace_id}/code-execution-policy', + resource_path='/api/v1/workspaces/{workspace_id}/code-execution-policy', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/workspace_member_budget_policies_api.py b/src/otari/_client/api/workspace_member_budget_policies_api.py index f3d4f9b..0783b54 100644 --- a/src/otari/_client/api/workspace_member_budget_policies_api.py +++ b/src/otari/_client/api/workspace_member_budget_policies_api.py @@ -44,7 +44,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def create_workspace_budget_default_v1_workspaces_workspace_id_member_budget_policies_post( + def create_workspace_budget_default_api_v1_workspaces_workspace_id_member_budget_policies_post( self, workspace_id: UUID, workspace_member_budget_policy_create: WorkspaceMemberBudgetPolicyCreate, @@ -91,7 +91,7 @@ def create_workspace_budget_default_v1_workspaces_workspace_id_member_budget_pol :return: Returns the result object. """ # noqa: E501 - _param = self._create_workspace_budget_default_v1_workspaces_workspace_id_member_budget_policies_post_serialize( + _param = self._create_workspace_budget_default_api_v1_workspaces_workspace_id_member_budget_policies_post_serialize( workspace_id=workspace_id, workspace_member_budget_policy_create=workspace_member_budget_policy_create, _request_auth=_request_auth, @@ -116,7 +116,7 @@ def create_workspace_budget_default_v1_workspaces_workspace_id_member_budget_pol @validate_call - def create_workspace_budget_default_v1_workspaces_workspace_id_member_budget_policies_post_with_http_info( + def create_workspace_budget_default_api_v1_workspaces_workspace_id_member_budget_policies_post_with_http_info( self, workspace_id: UUID, workspace_member_budget_policy_create: WorkspaceMemberBudgetPolicyCreate, @@ -163,7 +163,7 @@ def create_workspace_budget_default_v1_workspaces_workspace_id_member_budget_pol :return: Returns the result object. """ # noqa: E501 - _param = self._create_workspace_budget_default_v1_workspaces_workspace_id_member_budget_policies_post_serialize( + _param = self._create_workspace_budget_default_api_v1_workspaces_workspace_id_member_budget_policies_post_serialize( workspace_id=workspace_id, workspace_member_budget_policy_create=workspace_member_budget_policy_create, _request_auth=_request_auth, @@ -188,7 +188,7 @@ def create_workspace_budget_default_v1_workspaces_workspace_id_member_budget_pol @validate_call - def create_workspace_budget_default_v1_workspaces_workspace_id_member_budget_policies_post_without_preload_content( + def create_workspace_budget_default_api_v1_workspaces_workspace_id_member_budget_policies_post_without_preload_content( self, workspace_id: UUID, workspace_member_budget_policy_create: WorkspaceMemberBudgetPolicyCreate, @@ -235,7 +235,7 @@ def create_workspace_budget_default_v1_workspaces_workspace_id_member_budget_pol :return: Returns the result object. """ # noqa: E501 - _param = self._create_workspace_budget_default_v1_workspaces_workspace_id_member_budget_policies_post_serialize( + _param = self._create_workspace_budget_default_api_v1_workspaces_workspace_id_member_budget_policies_post_serialize( workspace_id=workspace_id, workspace_member_budget_policy_create=workspace_member_budget_policy_create, _request_auth=_request_auth, @@ -255,7 +255,7 @@ def create_workspace_budget_default_v1_workspaces_workspace_id_member_budget_pol return response_data.response - def _create_workspace_budget_default_v1_workspaces_workspace_id_member_budget_policies_post_serialize( + def _create_workspace_budget_default_api_v1_workspaces_workspace_id_member_budget_policies_post_serialize( self, workspace_id, workspace_member_budget_policy_create, @@ -320,7 +320,7 @@ def _create_workspace_budget_default_v1_workspaces_workspace_id_member_budget_po return self.api_client.param_serialize( method='POST', - resource_path='/v1/workspaces/{workspace_id}/member-budget-policies', + resource_path='/api/v1/workspaces/{workspace_id}/member-budget-policies', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -337,7 +337,7 @@ def _create_workspace_budget_default_v1_workspaces_workspace_id_member_budget_po @validate_call - def delete_workspace_budget_default_v1_workspaces_workspace_id_member_budget_policies_default_id_delete( + def delete_workspace_budget_default_api_v1_workspaces_workspace_id_member_budget_policies_default_id_delete( self, workspace_id: UUID, default_id: StrictStr, @@ -384,7 +384,7 @@ def delete_workspace_budget_default_v1_workspaces_workspace_id_member_budget_pol :return: Returns the result object. """ # noqa: E501 - _param = self._delete_workspace_budget_default_v1_workspaces_workspace_id_member_budget_policies_default_id_delete_serialize( + _param = self._delete_workspace_budget_default_api_v1_workspaces_workspace_id_member_budget_policies_default_id_delete_serialize( workspace_id=workspace_id, default_id=default_id, _request_auth=_request_auth, @@ -409,7 +409,7 @@ def delete_workspace_budget_default_v1_workspaces_workspace_id_member_budget_pol @validate_call - def delete_workspace_budget_default_v1_workspaces_workspace_id_member_budget_policies_default_id_delete_with_http_info( + def delete_workspace_budget_default_api_v1_workspaces_workspace_id_member_budget_policies_default_id_delete_with_http_info( self, workspace_id: UUID, default_id: StrictStr, @@ -456,7 +456,7 @@ def delete_workspace_budget_default_v1_workspaces_workspace_id_member_budget_pol :return: Returns the result object. """ # noqa: E501 - _param = self._delete_workspace_budget_default_v1_workspaces_workspace_id_member_budget_policies_default_id_delete_serialize( + _param = self._delete_workspace_budget_default_api_v1_workspaces_workspace_id_member_budget_policies_default_id_delete_serialize( workspace_id=workspace_id, default_id=default_id, _request_auth=_request_auth, @@ -481,7 +481,7 @@ def delete_workspace_budget_default_v1_workspaces_workspace_id_member_budget_pol @validate_call - def delete_workspace_budget_default_v1_workspaces_workspace_id_member_budget_policies_default_id_delete_without_preload_content( + def delete_workspace_budget_default_api_v1_workspaces_workspace_id_member_budget_policies_default_id_delete_without_preload_content( self, workspace_id: UUID, default_id: StrictStr, @@ -528,7 +528,7 @@ def delete_workspace_budget_default_v1_workspaces_workspace_id_member_budget_pol :return: Returns the result object. """ # noqa: E501 - _param = self._delete_workspace_budget_default_v1_workspaces_workspace_id_member_budget_policies_default_id_delete_serialize( + _param = self._delete_workspace_budget_default_api_v1_workspaces_workspace_id_member_budget_policies_default_id_delete_serialize( workspace_id=workspace_id, default_id=default_id, _request_auth=_request_auth, @@ -548,7 +548,7 @@ def delete_workspace_budget_default_v1_workspaces_workspace_id_member_budget_pol return response_data.response - def _delete_workspace_budget_default_v1_workspaces_workspace_id_member_budget_policies_default_id_delete_serialize( + def _delete_workspace_budget_default_api_v1_workspaces_workspace_id_member_budget_policies_default_id_delete_serialize( self, workspace_id, default_id, @@ -600,7 +600,7 @@ def _delete_workspace_budget_default_v1_workspaces_workspace_id_member_budget_po return self.api_client.param_serialize( method='DELETE', - resource_path='/v1/workspaces/{workspace_id}/member-budget-policies/{default_id}', + resource_path='/api/v1/workspaces/{workspace_id}/member-budget-policies/{default_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -617,7 +617,7 @@ def _delete_workspace_budget_default_v1_workspaces_workspace_id_member_budget_po @validate_call - def list_workspace_budget_defaults_v1_workspaces_workspace_id_member_budget_policies_get( + def list_workspace_budget_defaults_api_v1_workspaces_workspace_id_member_budget_policies_get( self, workspace_id: UUID, skip: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of records to skip")] = None, @@ -667,7 +667,7 @@ def list_workspace_budget_defaults_v1_workspaces_workspace_id_member_budget_poli :return: Returns the result object. """ # noqa: E501 - _param = self._list_workspace_budget_defaults_v1_workspaces_workspace_id_member_budget_policies_get_serialize( + _param = self._list_workspace_budget_defaults_api_v1_workspaces_workspace_id_member_budget_policies_get_serialize( workspace_id=workspace_id, skip=skip, limit=limit, @@ -693,7 +693,7 @@ def list_workspace_budget_defaults_v1_workspaces_workspace_id_member_budget_poli @validate_call - def list_workspace_budget_defaults_v1_workspaces_workspace_id_member_budget_policies_get_with_http_info( + def list_workspace_budget_defaults_api_v1_workspaces_workspace_id_member_budget_policies_get_with_http_info( self, workspace_id: UUID, skip: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of records to skip")] = None, @@ -743,7 +743,7 @@ def list_workspace_budget_defaults_v1_workspaces_workspace_id_member_budget_poli :return: Returns the result object. """ # noqa: E501 - _param = self._list_workspace_budget_defaults_v1_workspaces_workspace_id_member_budget_policies_get_serialize( + _param = self._list_workspace_budget_defaults_api_v1_workspaces_workspace_id_member_budget_policies_get_serialize( workspace_id=workspace_id, skip=skip, limit=limit, @@ -769,7 +769,7 @@ def list_workspace_budget_defaults_v1_workspaces_workspace_id_member_budget_poli @validate_call - def list_workspace_budget_defaults_v1_workspaces_workspace_id_member_budget_policies_get_without_preload_content( + def list_workspace_budget_defaults_api_v1_workspaces_workspace_id_member_budget_policies_get_without_preload_content( self, workspace_id: UUID, skip: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of records to skip")] = None, @@ -819,7 +819,7 @@ def list_workspace_budget_defaults_v1_workspaces_workspace_id_member_budget_poli :return: Returns the result object. """ # noqa: E501 - _param = self._list_workspace_budget_defaults_v1_workspaces_workspace_id_member_budget_policies_get_serialize( + _param = self._list_workspace_budget_defaults_api_v1_workspaces_workspace_id_member_budget_policies_get_serialize( workspace_id=workspace_id, skip=skip, limit=limit, @@ -840,7 +840,7 @@ def list_workspace_budget_defaults_v1_workspaces_workspace_id_member_budget_poli return response_data.response - def _list_workspace_budget_defaults_v1_workspaces_workspace_id_member_budget_policies_get_serialize( + def _list_workspace_budget_defaults_api_v1_workspaces_workspace_id_member_budget_policies_get_serialize( self, workspace_id, skip, @@ -899,7 +899,7 @@ def _list_workspace_budget_defaults_v1_workspaces_workspace_id_member_budget_pol return self.api_client.param_serialize( method='GET', - resource_path='/v1/workspaces/{workspace_id}/member-budget-policies', + resource_path='/api/v1/workspaces/{workspace_id}/member-budget-policies', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -916,7 +916,7 @@ def _list_workspace_budget_defaults_v1_workspaces_workspace_id_member_budget_pol @validate_call - def update_workspace_budget_default_v1_workspaces_workspace_id_member_budget_policies_default_id_patch( + def update_workspace_budget_default_api_v1_workspaces_workspace_id_member_budget_policies_default_id_patch( self, workspace_id: UUID, default_id: StrictStr, @@ -966,7 +966,7 @@ def update_workspace_budget_default_v1_workspaces_workspace_id_member_budget_pol :return: Returns the result object. """ # noqa: E501 - _param = self._update_workspace_budget_default_v1_workspaces_workspace_id_member_budget_policies_default_id_patch_serialize( + _param = self._update_workspace_budget_default_api_v1_workspaces_workspace_id_member_budget_policies_default_id_patch_serialize( workspace_id=workspace_id, default_id=default_id, workspace_member_budget_policy_update=workspace_member_budget_policy_update, @@ -992,7 +992,7 @@ def update_workspace_budget_default_v1_workspaces_workspace_id_member_budget_pol @validate_call - def update_workspace_budget_default_v1_workspaces_workspace_id_member_budget_policies_default_id_patch_with_http_info( + def update_workspace_budget_default_api_v1_workspaces_workspace_id_member_budget_policies_default_id_patch_with_http_info( self, workspace_id: UUID, default_id: StrictStr, @@ -1042,7 +1042,7 @@ def update_workspace_budget_default_v1_workspaces_workspace_id_member_budget_pol :return: Returns the result object. """ # noqa: E501 - _param = self._update_workspace_budget_default_v1_workspaces_workspace_id_member_budget_policies_default_id_patch_serialize( + _param = self._update_workspace_budget_default_api_v1_workspaces_workspace_id_member_budget_policies_default_id_patch_serialize( workspace_id=workspace_id, default_id=default_id, workspace_member_budget_policy_update=workspace_member_budget_policy_update, @@ -1068,7 +1068,7 @@ def update_workspace_budget_default_v1_workspaces_workspace_id_member_budget_pol @validate_call - def update_workspace_budget_default_v1_workspaces_workspace_id_member_budget_policies_default_id_patch_without_preload_content( + def update_workspace_budget_default_api_v1_workspaces_workspace_id_member_budget_policies_default_id_patch_without_preload_content( self, workspace_id: UUID, default_id: StrictStr, @@ -1118,7 +1118,7 @@ def update_workspace_budget_default_v1_workspaces_workspace_id_member_budget_pol :return: Returns the result object. """ # noqa: E501 - _param = self._update_workspace_budget_default_v1_workspaces_workspace_id_member_budget_policies_default_id_patch_serialize( + _param = self._update_workspace_budget_default_api_v1_workspaces_workspace_id_member_budget_policies_default_id_patch_serialize( workspace_id=workspace_id, default_id=default_id, workspace_member_budget_policy_update=workspace_member_budget_policy_update, @@ -1139,7 +1139,7 @@ def update_workspace_budget_default_v1_workspaces_workspace_id_member_budget_pol return response_data.response - def _update_workspace_budget_default_v1_workspaces_workspace_id_member_budget_policies_default_id_patch_serialize( + def _update_workspace_budget_default_api_v1_workspaces_workspace_id_member_budget_policies_default_id_patch_serialize( self, workspace_id, default_id, @@ -1207,7 +1207,7 @@ def _update_workspace_budget_default_v1_workspaces_workspace_id_member_budget_po return self.api_client.param_serialize( method='PATCH', - resource_path='/v1/workspaces/{workspace_id}/member-budget-policies/{default_id}', + resource_path='/api/v1/workspaces/{workspace_id}/member-budget-policies/{default_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/workspace_web_search_api.py b/src/otari/_client/api/workspace_web_search_api.py index 58dddff..45d717a 100644 --- a/src/otari/_client/api/workspace_web_search_api.py +++ b/src/otari/_client/api/workspace_web_search_api.py @@ -38,7 +38,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def clear_workspace_web_search_config_v1_workspaces_workspace_id_web_search_delete( + def clear_workspace_web_search_config_api_v1_workspaces_workspace_id_web_search_delete( self, workspace_id: UUID, _request_timeout: Union[ @@ -82,7 +82,7 @@ def clear_workspace_web_search_config_v1_workspaces_workspace_id_web_search_dele :return: Returns the result object. """ # noqa: E501 - _param = self._clear_workspace_web_search_config_v1_workspaces_workspace_id_web_search_delete_serialize( + _param = self._clear_workspace_web_search_config_api_v1_workspaces_workspace_id_web_search_delete_serialize( workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, @@ -106,7 +106,7 @@ def clear_workspace_web_search_config_v1_workspaces_workspace_id_web_search_dele @validate_call - def clear_workspace_web_search_config_v1_workspaces_workspace_id_web_search_delete_with_http_info( + def clear_workspace_web_search_config_api_v1_workspaces_workspace_id_web_search_delete_with_http_info( self, workspace_id: UUID, _request_timeout: Union[ @@ -150,7 +150,7 @@ def clear_workspace_web_search_config_v1_workspaces_workspace_id_web_search_dele :return: Returns the result object. """ # noqa: E501 - _param = self._clear_workspace_web_search_config_v1_workspaces_workspace_id_web_search_delete_serialize( + _param = self._clear_workspace_web_search_config_api_v1_workspaces_workspace_id_web_search_delete_serialize( workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, @@ -174,7 +174,7 @@ def clear_workspace_web_search_config_v1_workspaces_workspace_id_web_search_dele @validate_call - def clear_workspace_web_search_config_v1_workspaces_workspace_id_web_search_delete_without_preload_content( + def clear_workspace_web_search_config_api_v1_workspaces_workspace_id_web_search_delete_without_preload_content( self, workspace_id: UUID, _request_timeout: Union[ @@ -218,7 +218,7 @@ def clear_workspace_web_search_config_v1_workspaces_workspace_id_web_search_dele :return: Returns the result object. """ # noqa: E501 - _param = self._clear_workspace_web_search_config_v1_workspaces_workspace_id_web_search_delete_serialize( + _param = self._clear_workspace_web_search_config_api_v1_workspaces_workspace_id_web_search_delete_serialize( workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, @@ -237,7 +237,7 @@ def clear_workspace_web_search_config_v1_workspaces_workspace_id_web_search_dele return response_data.response - def _clear_workspace_web_search_config_v1_workspaces_workspace_id_web_search_delete_serialize( + def _clear_workspace_web_search_config_api_v1_workspaces_workspace_id_web_search_delete_serialize( self, workspace_id, _request_auth, @@ -286,7 +286,7 @@ def _clear_workspace_web_search_config_v1_workspaces_workspace_id_web_search_del return self.api_client.param_serialize( method='DELETE', - resource_path='/v1/workspaces/{workspace_id}/web-search', + resource_path='/api/v1/workspaces/{workspace_id}/web-search', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -303,7 +303,7 @@ def _clear_workspace_web_search_config_v1_workspaces_workspace_id_web_search_del @validate_call - def get_workspace_web_search_config_v1_workspaces_workspace_id_web_search_get( + def get_workspace_web_search_config_api_v1_workspaces_workspace_id_web_search_get( self, workspace_id: UUID, _request_timeout: Union[ @@ -347,7 +347,7 @@ def get_workspace_web_search_config_v1_workspaces_workspace_id_web_search_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_workspace_web_search_config_v1_workspaces_workspace_id_web_search_get_serialize( + _param = self._get_workspace_web_search_config_api_v1_workspaces_workspace_id_web_search_get_serialize( workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, @@ -371,7 +371,7 @@ def get_workspace_web_search_config_v1_workspaces_workspace_id_web_search_get( @validate_call - def get_workspace_web_search_config_v1_workspaces_workspace_id_web_search_get_with_http_info( + def get_workspace_web_search_config_api_v1_workspaces_workspace_id_web_search_get_with_http_info( self, workspace_id: UUID, _request_timeout: Union[ @@ -415,7 +415,7 @@ def get_workspace_web_search_config_v1_workspaces_workspace_id_web_search_get_wi :return: Returns the result object. """ # noqa: E501 - _param = self._get_workspace_web_search_config_v1_workspaces_workspace_id_web_search_get_serialize( + _param = self._get_workspace_web_search_config_api_v1_workspaces_workspace_id_web_search_get_serialize( workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, @@ -439,7 +439,7 @@ def get_workspace_web_search_config_v1_workspaces_workspace_id_web_search_get_wi @validate_call - def get_workspace_web_search_config_v1_workspaces_workspace_id_web_search_get_without_preload_content( + def get_workspace_web_search_config_api_v1_workspaces_workspace_id_web_search_get_without_preload_content( self, workspace_id: UUID, _request_timeout: Union[ @@ -483,7 +483,7 @@ def get_workspace_web_search_config_v1_workspaces_workspace_id_web_search_get_wi :return: Returns the result object. """ # noqa: E501 - _param = self._get_workspace_web_search_config_v1_workspaces_workspace_id_web_search_get_serialize( + _param = self._get_workspace_web_search_config_api_v1_workspaces_workspace_id_web_search_get_serialize( workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, @@ -502,7 +502,7 @@ def get_workspace_web_search_config_v1_workspaces_workspace_id_web_search_get_wi return response_data.response - def _get_workspace_web_search_config_v1_workspaces_workspace_id_web_search_get_serialize( + def _get_workspace_web_search_config_api_v1_workspaces_workspace_id_web_search_get_serialize( self, workspace_id, _request_auth, @@ -551,7 +551,7 @@ def _get_workspace_web_search_config_v1_workspaces_workspace_id_web_search_get_s return self.api_client.param_serialize( method='GET', - resource_path='/v1/workspaces/{workspace_id}/web-search', + resource_path='/api/v1/workspaces/{workspace_id}/web-search', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -568,7 +568,7 @@ def _get_workspace_web_search_config_v1_workspaces_workspace_id_web_search_get_s @validate_call - def set_workspace_web_search_config_v1_workspaces_workspace_id_web_search_put( + def set_workspace_web_search_config_api_v1_workspaces_workspace_id_web_search_put( self, workspace_id: UUID, workspace_web_search_config_update: WorkspaceWebSearchConfigUpdate, @@ -615,7 +615,7 @@ def set_workspace_web_search_config_v1_workspaces_workspace_id_web_search_put( :return: Returns the result object. """ # noqa: E501 - _param = self._set_workspace_web_search_config_v1_workspaces_workspace_id_web_search_put_serialize( + _param = self._set_workspace_web_search_config_api_v1_workspaces_workspace_id_web_search_put_serialize( workspace_id=workspace_id, workspace_web_search_config_update=workspace_web_search_config_update, _request_auth=_request_auth, @@ -640,7 +640,7 @@ def set_workspace_web_search_config_v1_workspaces_workspace_id_web_search_put( @validate_call - def set_workspace_web_search_config_v1_workspaces_workspace_id_web_search_put_with_http_info( + def set_workspace_web_search_config_api_v1_workspaces_workspace_id_web_search_put_with_http_info( self, workspace_id: UUID, workspace_web_search_config_update: WorkspaceWebSearchConfigUpdate, @@ -687,7 +687,7 @@ def set_workspace_web_search_config_v1_workspaces_workspace_id_web_search_put_wi :return: Returns the result object. """ # noqa: E501 - _param = self._set_workspace_web_search_config_v1_workspaces_workspace_id_web_search_put_serialize( + _param = self._set_workspace_web_search_config_api_v1_workspaces_workspace_id_web_search_put_serialize( workspace_id=workspace_id, workspace_web_search_config_update=workspace_web_search_config_update, _request_auth=_request_auth, @@ -712,7 +712,7 @@ def set_workspace_web_search_config_v1_workspaces_workspace_id_web_search_put_wi @validate_call - def set_workspace_web_search_config_v1_workspaces_workspace_id_web_search_put_without_preload_content( + def set_workspace_web_search_config_api_v1_workspaces_workspace_id_web_search_put_without_preload_content( self, workspace_id: UUID, workspace_web_search_config_update: WorkspaceWebSearchConfigUpdate, @@ -759,7 +759,7 @@ def set_workspace_web_search_config_v1_workspaces_workspace_id_web_search_put_wi :return: Returns the result object. """ # noqa: E501 - _param = self._set_workspace_web_search_config_v1_workspaces_workspace_id_web_search_put_serialize( + _param = self._set_workspace_web_search_config_api_v1_workspaces_workspace_id_web_search_put_serialize( workspace_id=workspace_id, workspace_web_search_config_update=workspace_web_search_config_update, _request_auth=_request_auth, @@ -779,7 +779,7 @@ def set_workspace_web_search_config_v1_workspaces_workspace_id_web_search_put_wi return response_data.response - def _set_workspace_web_search_config_v1_workspaces_workspace_id_web_search_put_serialize( + def _set_workspace_web_search_config_api_v1_workspaces_workspace_id_web_search_put_serialize( self, workspace_id, workspace_web_search_config_update, @@ -844,7 +844,7 @@ def _set_workspace_web_search_config_v1_workspaces_workspace_id_web_search_put_s return self.api_client.param_serialize( method='PUT', - resource_path='/v1/workspaces/{workspace_id}/web-search', + resource_path='/api/v1/workspaces/{workspace_id}/web-search', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/api/workspaces_api.py b/src/otari/_client/api/workspaces_api.py index 8015f80..a6cc276 100644 --- a/src/otari/_client/api/workspaces_api.py +++ b/src/otari/_client/api/workspaces_api.py @@ -46,7 +46,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def add_workspace_member_v1_workspaces_workspace_id_members_user_id_post( + def add_workspace_member_api_v1_workspaces_workspace_id_members_user_id_post( self, workspace_id: UUID, user_id: UUID, @@ -96,7 +96,7 @@ def add_workspace_member_v1_workspaces_workspace_id_members_user_id_post( :return: Returns the result object. """ # noqa: E501 - _param = self._add_workspace_member_v1_workspaces_workspace_id_members_user_id_post_serialize( + _param = self._add_workspace_member_api_v1_workspaces_workspace_id_members_user_id_post_serialize( workspace_id=workspace_id, user_id=user_id, role=role, @@ -122,7 +122,7 @@ def add_workspace_member_v1_workspaces_workspace_id_members_user_id_post( @validate_call - def add_workspace_member_v1_workspaces_workspace_id_members_user_id_post_with_http_info( + def add_workspace_member_api_v1_workspaces_workspace_id_members_user_id_post_with_http_info( self, workspace_id: UUID, user_id: UUID, @@ -172,7 +172,7 @@ def add_workspace_member_v1_workspaces_workspace_id_members_user_id_post_with_ht :return: Returns the result object. """ # noqa: E501 - _param = self._add_workspace_member_v1_workspaces_workspace_id_members_user_id_post_serialize( + _param = self._add_workspace_member_api_v1_workspaces_workspace_id_members_user_id_post_serialize( workspace_id=workspace_id, user_id=user_id, role=role, @@ -198,7 +198,7 @@ def add_workspace_member_v1_workspaces_workspace_id_members_user_id_post_with_ht @validate_call - def add_workspace_member_v1_workspaces_workspace_id_members_user_id_post_without_preload_content( + def add_workspace_member_api_v1_workspaces_workspace_id_members_user_id_post_without_preload_content( self, workspace_id: UUID, user_id: UUID, @@ -248,7 +248,7 @@ def add_workspace_member_v1_workspaces_workspace_id_members_user_id_post_without :return: Returns the result object. """ # noqa: E501 - _param = self._add_workspace_member_v1_workspaces_workspace_id_members_user_id_post_serialize( + _param = self._add_workspace_member_api_v1_workspaces_workspace_id_members_user_id_post_serialize( workspace_id=workspace_id, user_id=user_id, role=role, @@ -269,7 +269,7 @@ def add_workspace_member_v1_workspaces_workspace_id_members_user_id_post_without return response_data.response - def _add_workspace_member_v1_workspaces_workspace_id_members_user_id_post_serialize( + def _add_workspace_member_api_v1_workspaces_workspace_id_members_user_id_post_serialize( self, workspace_id, user_id, @@ -326,7 +326,7 @@ def _add_workspace_member_v1_workspaces_workspace_id_members_user_id_post_serial return self.api_client.param_serialize( method='POST', - resource_path='/v1/workspaces/{workspace_id}/members/{user_id}', + resource_path='/api/v1/workspaces/{workspace_id}/members/{user_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -343,7 +343,7 @@ def _add_workspace_member_v1_workspaces_workspace_id_members_user_id_post_serial @validate_call - def create_workspace_v1_workspaces_post( + def create_workspace_api_v1_workspaces_post( self, workspace_create: WorkspaceCreate, _request_timeout: Union[ @@ -387,7 +387,7 @@ def create_workspace_v1_workspaces_post( :return: Returns the result object. """ # noqa: E501 - _param = self._create_workspace_v1_workspaces_post_serialize( + _param = self._create_workspace_api_v1_workspaces_post_serialize( workspace_create=workspace_create, _request_auth=_request_auth, _content_type=_content_type, @@ -411,7 +411,7 @@ def create_workspace_v1_workspaces_post( @validate_call - def create_workspace_v1_workspaces_post_with_http_info( + def create_workspace_api_v1_workspaces_post_with_http_info( self, workspace_create: WorkspaceCreate, _request_timeout: Union[ @@ -455,7 +455,7 @@ def create_workspace_v1_workspaces_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._create_workspace_v1_workspaces_post_serialize( + _param = self._create_workspace_api_v1_workspaces_post_serialize( workspace_create=workspace_create, _request_auth=_request_auth, _content_type=_content_type, @@ -479,7 +479,7 @@ def create_workspace_v1_workspaces_post_with_http_info( @validate_call - def create_workspace_v1_workspaces_post_without_preload_content( + def create_workspace_api_v1_workspaces_post_without_preload_content( self, workspace_create: WorkspaceCreate, _request_timeout: Union[ @@ -523,7 +523,7 @@ def create_workspace_v1_workspaces_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._create_workspace_v1_workspaces_post_serialize( + _param = self._create_workspace_api_v1_workspaces_post_serialize( workspace_create=workspace_create, _request_auth=_request_auth, _content_type=_content_type, @@ -542,7 +542,7 @@ def create_workspace_v1_workspaces_post_without_preload_content( return response_data.response - def _create_workspace_v1_workspaces_post_serialize( + def _create_workspace_api_v1_workspaces_post_serialize( self, workspace_create, _request_auth, @@ -604,7 +604,7 @@ def _create_workspace_v1_workspaces_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/workspaces', + resource_path='/api/v1/workspaces', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -621,7 +621,7 @@ def _create_workspace_v1_workspaces_post_serialize( @validate_call - def delete_workspace_v1_workspaces_workspace_id_delete( + def delete_workspace_api_v1_workspaces_workspace_id_delete( self, workspace_id: UUID, _request_timeout: Union[ @@ -665,7 +665,7 @@ def delete_workspace_v1_workspaces_workspace_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_workspace_v1_workspaces_workspace_id_delete_serialize( + _param = self._delete_workspace_api_v1_workspaces_workspace_id_delete_serialize( workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, @@ -689,7 +689,7 @@ def delete_workspace_v1_workspaces_workspace_id_delete( @validate_call - def delete_workspace_v1_workspaces_workspace_id_delete_with_http_info( + def delete_workspace_api_v1_workspaces_workspace_id_delete_with_http_info( self, workspace_id: UUID, _request_timeout: Union[ @@ -733,7 +733,7 @@ def delete_workspace_v1_workspaces_workspace_id_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_workspace_v1_workspaces_workspace_id_delete_serialize( + _param = self._delete_workspace_api_v1_workspaces_workspace_id_delete_serialize( workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, @@ -757,7 +757,7 @@ def delete_workspace_v1_workspaces_workspace_id_delete_with_http_info( @validate_call - def delete_workspace_v1_workspaces_workspace_id_delete_without_preload_content( + def delete_workspace_api_v1_workspaces_workspace_id_delete_without_preload_content( self, workspace_id: UUID, _request_timeout: Union[ @@ -801,7 +801,7 @@ def delete_workspace_v1_workspaces_workspace_id_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_workspace_v1_workspaces_workspace_id_delete_serialize( + _param = self._delete_workspace_api_v1_workspaces_workspace_id_delete_serialize( workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, @@ -820,7 +820,7 @@ def delete_workspace_v1_workspaces_workspace_id_delete_without_preload_content( return response_data.response - def _delete_workspace_v1_workspaces_workspace_id_delete_serialize( + def _delete_workspace_api_v1_workspaces_workspace_id_delete_serialize( self, workspace_id, _request_auth, @@ -869,7 +869,7 @@ def _delete_workspace_v1_workspaces_workspace_id_delete_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/v1/workspaces/{workspace_id}', + resource_path='/api/v1/workspaces/{workspace_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -886,7 +886,7 @@ def _delete_workspace_v1_workspaces_workspace_id_delete_serialize( @validate_call - def get_workspace_v1_workspaces_workspace_id_get( + def get_workspace_api_v1_workspaces_workspace_id_get( self, workspace_id: UUID, _request_timeout: Union[ @@ -930,7 +930,7 @@ def get_workspace_v1_workspaces_workspace_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._get_workspace_v1_workspaces_workspace_id_get_serialize( + _param = self._get_workspace_api_v1_workspaces_workspace_id_get_serialize( workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, @@ -954,7 +954,7 @@ def get_workspace_v1_workspaces_workspace_id_get( @validate_call - def get_workspace_v1_workspaces_workspace_id_get_with_http_info( + def get_workspace_api_v1_workspaces_workspace_id_get_with_http_info( self, workspace_id: UUID, _request_timeout: Union[ @@ -998,7 +998,7 @@ def get_workspace_v1_workspaces_workspace_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_workspace_v1_workspaces_workspace_id_get_serialize( + _param = self._get_workspace_api_v1_workspaces_workspace_id_get_serialize( workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1022,7 +1022,7 @@ def get_workspace_v1_workspaces_workspace_id_get_with_http_info( @validate_call - def get_workspace_v1_workspaces_workspace_id_get_without_preload_content( + def get_workspace_api_v1_workspaces_workspace_id_get_without_preload_content( self, workspace_id: UUID, _request_timeout: Union[ @@ -1066,7 +1066,7 @@ def get_workspace_v1_workspaces_workspace_id_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_workspace_v1_workspaces_workspace_id_get_serialize( + _param = self._get_workspace_api_v1_workspaces_workspace_id_get_serialize( workspace_id=workspace_id, _request_auth=_request_auth, _content_type=_content_type, @@ -1085,7 +1085,7 @@ def get_workspace_v1_workspaces_workspace_id_get_without_preload_content( return response_data.response - def _get_workspace_v1_workspaces_workspace_id_get_serialize( + def _get_workspace_api_v1_workspaces_workspace_id_get_serialize( self, workspace_id, _request_auth, @@ -1134,7 +1134,7 @@ def _get_workspace_v1_workspaces_workspace_id_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/workspaces/{workspace_id}', + resource_path='/api/v1/workspaces/{workspace_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1151,7 +1151,7 @@ def _get_workspace_v1_workspaces_workspace_id_get_serialize( @validate_call - def list_workspace_members_v1_workspaces_workspace_id_members_get( + def list_workspace_members_api_v1_workspaces_workspace_id_members_get( self, workspace_id: UUID, skip: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of records to skip")] = None, @@ -1201,7 +1201,7 @@ def list_workspace_members_v1_workspaces_workspace_id_members_get( :return: Returns the result object. """ # noqa: E501 - _param = self._list_workspace_members_v1_workspaces_workspace_id_members_get_serialize( + _param = self._list_workspace_members_api_v1_workspaces_workspace_id_members_get_serialize( workspace_id=workspace_id, skip=skip, limit=limit, @@ -1227,7 +1227,7 @@ def list_workspace_members_v1_workspaces_workspace_id_members_get( @validate_call - def list_workspace_members_v1_workspaces_workspace_id_members_get_with_http_info( + def list_workspace_members_api_v1_workspaces_workspace_id_members_get_with_http_info( self, workspace_id: UUID, skip: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of records to skip")] = None, @@ -1277,7 +1277,7 @@ def list_workspace_members_v1_workspaces_workspace_id_members_get_with_http_info :return: Returns the result object. """ # noqa: E501 - _param = self._list_workspace_members_v1_workspaces_workspace_id_members_get_serialize( + _param = self._list_workspace_members_api_v1_workspaces_workspace_id_members_get_serialize( workspace_id=workspace_id, skip=skip, limit=limit, @@ -1303,7 +1303,7 @@ def list_workspace_members_v1_workspaces_workspace_id_members_get_with_http_info @validate_call - def list_workspace_members_v1_workspaces_workspace_id_members_get_without_preload_content( + def list_workspace_members_api_v1_workspaces_workspace_id_members_get_without_preload_content( self, workspace_id: UUID, skip: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of records to skip")] = None, @@ -1353,7 +1353,7 @@ def list_workspace_members_v1_workspaces_workspace_id_members_get_without_preloa :return: Returns the result object. """ # noqa: E501 - _param = self._list_workspace_members_v1_workspaces_workspace_id_members_get_serialize( + _param = self._list_workspace_members_api_v1_workspaces_workspace_id_members_get_serialize( workspace_id=workspace_id, skip=skip, limit=limit, @@ -1374,7 +1374,7 @@ def list_workspace_members_v1_workspaces_workspace_id_members_get_without_preloa return response_data.response - def _list_workspace_members_v1_workspaces_workspace_id_members_get_serialize( + def _list_workspace_members_api_v1_workspaces_workspace_id_members_get_serialize( self, workspace_id, skip, @@ -1433,7 +1433,7 @@ def _list_workspace_members_v1_workspaces_workspace_id_members_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/workspaces/{workspace_id}/members', + resource_path='/api/v1/workspaces/{workspace_id}/members', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1450,7 +1450,7 @@ def _list_workspace_members_v1_workspaces_workspace_id_members_get_serialize( @validate_call - def list_workspaces_v1_workspaces_get( + def list_workspaces_api_v1_workspaces_get( self, skip: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of records to skip")] = None, limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Maximum number of records to return")] = None, @@ -1497,7 +1497,7 @@ def list_workspaces_v1_workspaces_get( :return: Returns the result object. """ # noqa: E501 - _param = self._list_workspaces_v1_workspaces_get_serialize( + _param = self._list_workspaces_api_v1_workspaces_get_serialize( skip=skip, limit=limit, _request_auth=_request_auth, @@ -1522,7 +1522,7 @@ def list_workspaces_v1_workspaces_get( @validate_call - def list_workspaces_v1_workspaces_get_with_http_info( + def list_workspaces_api_v1_workspaces_get_with_http_info( self, skip: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of records to skip")] = None, limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Maximum number of records to return")] = None, @@ -1569,7 +1569,7 @@ def list_workspaces_v1_workspaces_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_workspaces_v1_workspaces_get_serialize( + _param = self._list_workspaces_api_v1_workspaces_get_serialize( skip=skip, limit=limit, _request_auth=_request_auth, @@ -1594,7 +1594,7 @@ def list_workspaces_v1_workspaces_get_with_http_info( @validate_call - def list_workspaces_v1_workspaces_get_without_preload_content( + def list_workspaces_api_v1_workspaces_get_without_preload_content( self, skip: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of records to skip")] = None, limit: Annotated[Optional[Annotated[int, Field(le=1000, strict=True, ge=1)]], Field(description="Maximum number of records to return")] = None, @@ -1641,7 +1641,7 @@ def list_workspaces_v1_workspaces_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._list_workspaces_v1_workspaces_get_serialize( + _param = self._list_workspaces_api_v1_workspaces_get_serialize( skip=skip, limit=limit, _request_auth=_request_auth, @@ -1661,7 +1661,7 @@ def list_workspaces_v1_workspaces_get_without_preload_content( return response_data.response - def _list_workspaces_v1_workspaces_get_serialize( + def _list_workspaces_api_v1_workspaces_get_serialize( self, skip, limit, @@ -1717,7 +1717,7 @@ def _list_workspaces_v1_workspaces_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/workspaces', + resource_path='/api/v1/workspaces', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1734,7 +1734,7 @@ def _list_workspaces_v1_workspaces_get_serialize( @validate_call - def remove_workspace_member_v1_workspaces_workspace_id_members_user_id_delete( + def remove_workspace_member_api_v1_workspaces_workspace_id_members_user_id_delete( self, workspace_id: UUID, user_id: UUID, @@ -1781,7 +1781,7 @@ def remove_workspace_member_v1_workspaces_workspace_id_members_user_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._remove_workspace_member_v1_workspaces_workspace_id_members_user_id_delete_serialize( + _param = self._remove_workspace_member_api_v1_workspaces_workspace_id_members_user_id_delete_serialize( workspace_id=workspace_id, user_id=user_id, _request_auth=_request_auth, @@ -1806,7 +1806,7 @@ def remove_workspace_member_v1_workspaces_workspace_id_members_user_id_delete( @validate_call - def remove_workspace_member_v1_workspaces_workspace_id_members_user_id_delete_with_http_info( + def remove_workspace_member_api_v1_workspaces_workspace_id_members_user_id_delete_with_http_info( self, workspace_id: UUID, user_id: UUID, @@ -1853,7 +1853,7 @@ def remove_workspace_member_v1_workspaces_workspace_id_members_user_id_delete_wi :return: Returns the result object. """ # noqa: E501 - _param = self._remove_workspace_member_v1_workspaces_workspace_id_members_user_id_delete_serialize( + _param = self._remove_workspace_member_api_v1_workspaces_workspace_id_members_user_id_delete_serialize( workspace_id=workspace_id, user_id=user_id, _request_auth=_request_auth, @@ -1878,7 +1878,7 @@ def remove_workspace_member_v1_workspaces_workspace_id_members_user_id_delete_wi @validate_call - def remove_workspace_member_v1_workspaces_workspace_id_members_user_id_delete_without_preload_content( + def remove_workspace_member_api_v1_workspaces_workspace_id_members_user_id_delete_without_preload_content( self, workspace_id: UUID, user_id: UUID, @@ -1925,7 +1925,7 @@ def remove_workspace_member_v1_workspaces_workspace_id_members_user_id_delete_wi :return: Returns the result object. """ # noqa: E501 - _param = self._remove_workspace_member_v1_workspaces_workspace_id_members_user_id_delete_serialize( + _param = self._remove_workspace_member_api_v1_workspaces_workspace_id_members_user_id_delete_serialize( workspace_id=workspace_id, user_id=user_id, _request_auth=_request_auth, @@ -1945,7 +1945,7 @@ def remove_workspace_member_v1_workspaces_workspace_id_members_user_id_delete_wi return response_data.response - def _remove_workspace_member_v1_workspaces_workspace_id_members_user_id_delete_serialize( + def _remove_workspace_member_api_v1_workspaces_workspace_id_members_user_id_delete_serialize( self, workspace_id, user_id, @@ -1997,7 +1997,7 @@ def _remove_workspace_member_v1_workspaces_workspace_id_members_user_id_delete_s return self.api_client.param_serialize( method='DELETE', - resource_path='/v1/workspaces/{workspace_id}/members/{user_id}', + resource_path='/api/v1/workspaces/{workspace_id}/members/{user_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2014,11 +2014,10 @@ def _remove_workspace_member_v1_workspaces_workspace_id_members_user_id_delete_s @validate_call - def update_workspace_member_role_v1_workspaces_workspace_id_members_user_id_patch( + def update_workspace_api_v1_workspaces_workspace_id_patch( self, workspace_id: UUID, - user_id: UUID, - role: Annotated[StrictStr, Field(description="Role to assign in this workspace.")], + workspace_update: WorkspaceUpdate, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2031,17 +2030,15 @@ def update_workspace_member_role_v1_workspaces_workspace_id_members_user_id_patc _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> WorkspaceMemberPublic: - """Update Workspace Member Role + ) -> WorkspacePublic: + """Update Workspace - Change a workspace member's role. + Rename a workspace or change its description. :param workspace_id: (required) :type workspace_id: UUID - :param user_id: (required) - :type user_id: UUID - :param role: Role to assign in this workspace. (required) - :type role: str + :param workspace_update: (required) + :type workspace_update: WorkspaceUpdate :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2064,10 +2061,9 @@ def update_workspace_member_role_v1_workspaces_workspace_id_members_user_id_patc :return: Returns the result object. """ # noqa: E501 - _param = self._update_workspace_member_role_v1_workspaces_workspace_id_members_user_id_patch_serialize( + _param = self._update_workspace_api_v1_workspaces_workspace_id_patch_serialize( workspace_id=workspace_id, - user_id=user_id, - role=role, + workspace_update=workspace_update, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2075,7 +2071,7 @@ def update_workspace_member_role_v1_workspaces_workspace_id_members_user_id_patc ) _response_types_map: Dict[str, Optional[str]] = { - '200': "WorkspaceMemberPublic", + '200': "WorkspacePublic", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -2090,11 +2086,10 @@ def update_workspace_member_role_v1_workspaces_workspace_id_members_user_id_patc @validate_call - def update_workspace_member_role_v1_workspaces_workspace_id_members_user_id_patch_with_http_info( + def update_workspace_api_v1_workspaces_workspace_id_patch_with_http_info( self, workspace_id: UUID, - user_id: UUID, - role: Annotated[StrictStr, Field(description="Role to assign in this workspace.")], + workspace_update: WorkspaceUpdate, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2107,17 +2102,15 @@ def update_workspace_member_role_v1_workspaces_workspace_id_members_user_id_patc _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[WorkspaceMemberPublic]: - """Update Workspace Member Role + ) -> ApiResponse[WorkspacePublic]: + """Update Workspace - Change a workspace member's role. + Rename a workspace or change its description. :param workspace_id: (required) :type workspace_id: UUID - :param user_id: (required) - :type user_id: UUID - :param role: Role to assign in this workspace. (required) - :type role: str + :param workspace_update: (required) + :type workspace_update: WorkspaceUpdate :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2140,10 +2133,9 @@ def update_workspace_member_role_v1_workspaces_workspace_id_members_user_id_patc :return: Returns the result object. """ # noqa: E501 - _param = self._update_workspace_member_role_v1_workspaces_workspace_id_members_user_id_patch_serialize( + _param = self._update_workspace_api_v1_workspaces_workspace_id_patch_serialize( workspace_id=workspace_id, - user_id=user_id, - role=role, + workspace_update=workspace_update, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2151,7 +2143,7 @@ def update_workspace_member_role_v1_workspaces_workspace_id_members_user_id_patc ) _response_types_map: Dict[str, Optional[str]] = { - '200': "WorkspaceMemberPublic", + '200': "WorkspacePublic", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -2166,11 +2158,10 @@ def update_workspace_member_role_v1_workspaces_workspace_id_members_user_id_patc @validate_call - def update_workspace_member_role_v1_workspaces_workspace_id_members_user_id_patch_without_preload_content( + def update_workspace_api_v1_workspaces_workspace_id_patch_without_preload_content( self, workspace_id: UUID, - user_id: UUID, - role: Annotated[StrictStr, Field(description="Role to assign in this workspace.")], + workspace_update: WorkspaceUpdate, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2184,16 +2175,14 @@ def update_workspace_member_role_v1_workspaces_workspace_id_members_user_id_patc _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Update Workspace Member Role + """Update Workspace - Change a workspace member's role. + Rename a workspace or change its description. :param workspace_id: (required) :type workspace_id: UUID - :param user_id: (required) - :type user_id: UUID - :param role: Role to assign in this workspace. (required) - :type role: str + :param workspace_update: (required) + :type workspace_update: WorkspaceUpdate :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2216,10 +2205,9 @@ def update_workspace_member_role_v1_workspaces_workspace_id_members_user_id_patc :return: Returns the result object. """ # noqa: E501 - _param = self._update_workspace_member_role_v1_workspaces_workspace_id_members_user_id_patch_serialize( + _param = self._update_workspace_api_v1_workspaces_workspace_id_patch_serialize( workspace_id=workspace_id, - user_id=user_id, - role=role, + workspace_update=workspace_update, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2227,7 +2215,7 @@ def update_workspace_member_role_v1_workspaces_workspace_id_members_user_id_patc ) _response_types_map: Dict[str, Optional[str]] = { - '200': "WorkspaceMemberPublic", + '200': "WorkspacePublic", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -2237,11 +2225,10 @@ def update_workspace_member_role_v1_workspaces_workspace_id_members_user_id_patc return response_data.response - def _update_workspace_member_role_v1_workspaces_workspace_id_members_user_id_patch_serialize( + def _update_workspace_api_v1_workspaces_workspace_id_patch_serialize( self, workspace_id, - user_id, - role, + workspace_update, _request_auth, _content_type, _headers, @@ -2265,16 +2252,12 @@ def _update_workspace_member_role_v1_workspaces_workspace_id_members_user_id_pat # process the path parameters if workspace_id is not None: _path_params['workspace_id'] = workspace_id - if user_id is not None: - _path_params['user_id'] = user_id # process the query parameters - if role is not None: - - _query_params.append(('role', role)) - # process the header parameters # process the form parameters # process the body parameter + if workspace_update is not None: + _body_params = workspace_update # set the HTTP header `Accept` @@ -2285,6 +2268,19 @@ def _update_workspace_member_role_v1_workspaces_workspace_id_members_user_id_pat ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -2294,7 +2290,7 @@ def _update_workspace_member_role_v1_workspaces_workspace_id_members_user_id_pat return self.api_client.param_serialize( method='PATCH', - resource_path='/v1/workspaces/{workspace_id}/members/{user_id}', + resource_path='/api/v1/workspaces/{workspace_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2311,10 +2307,11 @@ def _update_workspace_member_role_v1_workspaces_workspace_id_members_user_id_pat @validate_call - def update_workspace_v1_workspaces_workspace_id_patch( + def update_workspace_member_role_api_v1_workspaces_workspace_id_members_user_id_patch( self, workspace_id: UUID, - workspace_update: WorkspaceUpdate, + user_id: UUID, + role: Annotated[StrictStr, Field(description="Role to assign in this workspace.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2327,15 +2324,17 @@ def update_workspace_v1_workspaces_workspace_id_patch( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> WorkspacePublic: - """Update Workspace + ) -> WorkspaceMemberPublic: + """Update Workspace Member Role - Rename a workspace or change its description. + Change a workspace member's role. :param workspace_id: (required) :type workspace_id: UUID - :param workspace_update: (required) - :type workspace_update: WorkspaceUpdate + :param user_id: (required) + :type user_id: UUID + :param role: Role to assign in this workspace. (required) + :type role: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2358,9 +2357,10 @@ def update_workspace_v1_workspaces_workspace_id_patch( :return: Returns the result object. """ # noqa: E501 - _param = self._update_workspace_v1_workspaces_workspace_id_patch_serialize( + _param = self._update_workspace_member_role_api_v1_workspaces_workspace_id_members_user_id_patch_serialize( workspace_id=workspace_id, - workspace_update=workspace_update, + user_id=user_id, + role=role, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2368,7 +2368,7 @@ def update_workspace_v1_workspaces_workspace_id_patch( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "WorkspacePublic", + '200': "WorkspaceMemberPublic", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -2383,10 +2383,11 @@ def update_workspace_v1_workspaces_workspace_id_patch( @validate_call - def update_workspace_v1_workspaces_workspace_id_patch_with_http_info( + def update_workspace_member_role_api_v1_workspaces_workspace_id_members_user_id_patch_with_http_info( self, workspace_id: UUID, - workspace_update: WorkspaceUpdate, + user_id: UUID, + role: Annotated[StrictStr, Field(description="Role to assign in this workspace.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2399,15 +2400,17 @@ def update_workspace_v1_workspaces_workspace_id_patch_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[WorkspacePublic]: - """Update Workspace + ) -> ApiResponse[WorkspaceMemberPublic]: + """Update Workspace Member Role - Rename a workspace or change its description. + Change a workspace member's role. :param workspace_id: (required) :type workspace_id: UUID - :param workspace_update: (required) - :type workspace_update: WorkspaceUpdate + :param user_id: (required) + :type user_id: UUID + :param role: Role to assign in this workspace. (required) + :type role: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2430,9 +2433,10 @@ def update_workspace_v1_workspaces_workspace_id_patch_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._update_workspace_v1_workspaces_workspace_id_patch_serialize( + _param = self._update_workspace_member_role_api_v1_workspaces_workspace_id_members_user_id_patch_serialize( workspace_id=workspace_id, - workspace_update=workspace_update, + user_id=user_id, + role=role, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2440,7 +2444,7 @@ def update_workspace_v1_workspaces_workspace_id_patch_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "WorkspacePublic", + '200': "WorkspaceMemberPublic", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -2455,10 +2459,11 @@ def update_workspace_v1_workspaces_workspace_id_patch_with_http_info( @validate_call - def update_workspace_v1_workspaces_workspace_id_patch_without_preload_content( + def update_workspace_member_role_api_v1_workspaces_workspace_id_members_user_id_patch_without_preload_content( self, workspace_id: UUID, - workspace_update: WorkspaceUpdate, + user_id: UUID, + role: Annotated[StrictStr, Field(description="Role to assign in this workspace.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2472,14 +2477,16 @@ def update_workspace_v1_workspaces_workspace_id_patch_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Update Workspace + """Update Workspace Member Role - Rename a workspace or change its description. + Change a workspace member's role. :param workspace_id: (required) :type workspace_id: UUID - :param workspace_update: (required) - :type workspace_update: WorkspaceUpdate + :param user_id: (required) + :type user_id: UUID + :param role: Role to assign in this workspace. (required) + :type role: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2502,9 +2509,10 @@ def update_workspace_v1_workspaces_workspace_id_patch_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._update_workspace_v1_workspaces_workspace_id_patch_serialize( + _param = self._update_workspace_member_role_api_v1_workspaces_workspace_id_members_user_id_patch_serialize( workspace_id=workspace_id, - workspace_update=workspace_update, + user_id=user_id, + role=role, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2512,7 +2520,7 @@ def update_workspace_v1_workspaces_workspace_id_patch_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "WorkspacePublic", + '200': "WorkspaceMemberPublic", '422': "HTTPValidationError", } response_data = self.api_client.call_api( @@ -2522,10 +2530,11 @@ def update_workspace_v1_workspaces_workspace_id_patch_without_preload_content( return response_data.response - def _update_workspace_v1_workspaces_workspace_id_patch_serialize( + def _update_workspace_member_role_api_v1_workspaces_workspace_id_members_user_id_patch_serialize( self, workspace_id, - workspace_update, + user_id, + role, _request_auth, _content_type, _headers, @@ -2549,12 +2558,16 @@ def _update_workspace_v1_workspaces_workspace_id_patch_serialize( # process the path parameters if workspace_id is not None: _path_params['workspace_id'] = workspace_id + if user_id is not None: + _path_params['user_id'] = user_id # process the query parameters + if role is not None: + + _query_params.append(('role', role)) + # process the header parameters # process the form parameters # process the body parameter - if workspace_update is not None: - _body_params = workspace_update # set the HTTP header `Accept` @@ -2565,19 +2578,6 @@ def _update_workspace_v1_workspaces_workspace_id_patch_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -2587,7 +2587,7 @@ def _update_workspace_v1_workspaces_workspace_id_patch_serialize( return self.api_client.param_serialize( method='PATCH', - resource_path='/v1/workspaces/{workspace_id}', + resource_path='/api/v1/workspaces/{workspace_id}/members/{user_id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/src/otari/_client/models/accept_invitation_result_public.py b/src/otari/_client/models/accept_invitation_result_public.py index 16c67a0..ea33f06 100644 --- a/src/otari/_client/models/accept_invitation_result_public.py +++ b/src/otari/_client/models/accept_invitation_result_public.py @@ -25,7 +25,7 @@ class AcceptInvitationResultPublic(BaseModel): """ - What accepting produces: enough for the accept page to say where the visitor landed. No session and no token: accepting resolves the membership to ``active`` and stops there. The identity it resolves to is password-less on the roster until it is claimed, so the next step is ``POST /v1/auth/signup`` on the invited address, not a sign-in. + What accepting produces: enough for the accept page to say where the visitor landed. No session and no token: accepting resolves the membership to ``active`` and stops there. The identity it resolves to is password-less on the roster until it is claimed, so the next step is a sign-up on the invited address, not a sign-in. """ # noqa: E501 organization_name: StrictStr role: StrictStr diff --git a/src/otari/_client/models/active_organization_member_public.py b/src/otari/_client/models/active_organization_member_public.py index e042e9b..9844e56 100644 --- a/src/otari/_client/models/active_organization_member_public.py +++ b/src/otari/_client/models/active_organization_member_public.py @@ -27,7 +27,7 @@ class ActiveOrganizationMemberPublic(BaseModel): """ - A member row joined to the identity behind it, as the roster shows it. Field-for-field the platform's shape, so the ported roster page is not rewritten around a new contract, with two consequences of the OSS line: ``email`` is nullable here (a local operator identity has no sign-in address), and ``invitation_id`` is always null until the invitation flow rehomes, which is what fills it. ``attribution_user_id`` is the addition the platform has no counterpart for. Keys, budgets, and usage attach to the gateway's string-keyed ``users`` row, not to this UUID identity, so this carries the ``user_id`` a caller passes to ``POST /v1/keys`` to give this member a key. It is null when no usable row exists (nobody minted one, or it was soft-deleted through ``DELETE /v1/users``), which is the signal not to offer this member as a key owner: key creation would refuse. How the two ids converge is the open question in otari-ai#1727; this field is the join until it is answered, and is what lets either answer land without the dashboard changing. + A member row joined to the identity behind it, as the roster shows it. Field-for-field the platform's shape, so the ported roster page is not rewritten around a new contract, with two consequences of the OSS line: ``email`` is nullable here (a local operator identity has no sign-in address), and ``invitation_id`` is always null until the invitation flow rehomes, which is what fills it. ``attribution_user_id`` is the addition the platform has no counterpart for. Keys, budgets, and usage attach to the gateway's string-keyed ``users`` row, not to this UUID identity, so this carries the ``user_id`` a caller passes to when minting a key for this member. It is null when no usable row exists (nobody minted one, or it was soft-deleted through soft-deleted), which is the signal not to offer this member as a key owner: key creation would refuse. How the two ids converge is the open question in otari-ai#1727; this field is the join until it is answered, and is what lets either answer land without the dashboard changing. """ # noqa: E501 attribution_user_id: Optional[StrictStr] = None created_at: datetime diff --git a/src/otari/_client/models/create_key_request.py b/src/otari/_client/models/create_key_request.py index 393b779..36de433 100644 --- a/src/otari/_client/models/create_key_request.py +++ b/src/otari/_client/models/create_key_request.py @@ -30,7 +30,7 @@ class CreateKeyRequest(BaseModel): Request model for creating a new API key. """ # noqa: E501 allowed_models: Optional[List[StrictStr]] = Field(default=None, description="Model allow-list: null = any model, [] = deny all, or canonical instance:model entries (with instance:* / instance:prefix* wildcards).") - capture_agent_telemetry: Optional[StrictBool] = Field(default=None, description="Per-key override of the deployment-wide capture_agent_telemetry setting: null (default) inherits it, true always stores this key's coding-agent telemetry, false always discards it. Covers both behavioral events (tool_result, tool_decision, user_prompt, api_error) from POST /v1/logs and outcome-metric data points (lines of code, commits, pull requests, active time) from POST /v1/metrics. Usage capture and billing are unaffected either way.") + capture_agent_telemetry: Optional[StrictBool] = Field(default=None, description="Per-key override of the deployment-wide capture_agent_telemetry setting: null (default) inherits it, true always stores this key's coding-agent telemetry, false always discards it. Covers both behavioral events (tool_result, tool_decision, user_prompt, api_error) from POST /otlp/v1/logs and outcome-metric data points (lines of code, commits, pull requests, active time) from POST /otlp/v1/metrics. Usage capture and billing are unaffected either way.") exclude_from_budget: Optional[StrictBool] = Field(default=False, description="When true, requests on this key are logged with cost but never reserved, reconciled into the user's spend, or gated by budget.") expires_at: Optional[datetime] = Field(default=None, description="Optional expiration timestamp") key_name: Optional[StrictStr] = Field(default=None, description="Optional name for the key") diff --git a/src/otari/_client/models/create_search_tool_request.py b/src/otari/_client/models/create_search_tool_request.py index c544c40..819f40a 100644 --- a/src/otari/_client/models/create_search_tool_request.py +++ b/src/otari/_client/models/create_search_tool_request.py @@ -30,7 +30,7 @@ class CreateSearchToolRequest(BaseModel): """ # noqa: E501 api_base: Optional[StrictStr] = Field(default=None, description="Backend endpoint. Omit to inherit the provider's default (searxng inherits web_search_url).") api_key: Optional[StrictStr] = Field(default=None, description="Provider API key. Stored encrypted; never returned.") - name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Name callers pass as 'search_tool_name' or in /v1/search/{tool}.") + name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Name callers pass as 'search_tool_name' or in /api/v1/search/{tool}.") options: Optional[Dict[str, Any]] = Field(default=None, description="Provider-native request fields used as defaults (e.g. exa's 'type', searxng's 'engines').") provider: StrictStr = Field(description="Search provider, one of: exa, searxng.") timeout: Optional[Union[Annotated[float, Field(strict=True, gt=0.0)], Annotated[int, Field(strict=True, gt=0)]]] = Field(default=None, description="Per-request timeout in seconds.") diff --git a/src/otari/_client/models/create_session_request.py b/src/otari/_client/models/create_session_request.py index 52740c4..342a480 100644 --- a/src/otari/_client/models/create_session_request.py +++ b/src/otari/_client/models/create_session_request.py @@ -29,7 +29,7 @@ class CreateSessionRequest(BaseModel): Sign in to the dashboard with exactly one credential. A flat body with an optional field per credential, rather than a tagged union: it is one extra key on the wire, it generates a client type a hand-written form can fill in, and the validator below makes the two forms exclusive anyway. The example carries one credential, because a generated example is a body somebody will post: the schema alone would produce every field at once, which is the one shape the validator below refuses. """ # noqa: E501 email: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field(default=None, description="The identity's sign-in address.") - master_key: Optional[Annotated[str, Field(strict=True, max_length=512)]] = Field(default=None, description="The gateway master key; verified once and never stored by the browser. Accepted only while the operator identity has no password, which is to say while nobody has claimed this deployment (see GET /v1/bootstrap).") + master_key: Optional[Annotated[str, Field(strict=True, max_length=512)]] = Field(default=None, description="The gateway master key; verified once and never stored by the browser. Accepted only while the operator identity has no password, which is to say while nobody has claimed this deployment (see GET /api/v1/bootstrap).") password: Optional[Annotated[str, Field(strict=True, max_length=72)]] = Field(default=None, description="The identity's password.") __properties: ClassVar[List[str]] = ["email", "master_key", "password"] diff --git a/src/otari/_client/models/deployment_bootstrap.py b/src/otari/_client/models/deployment_bootstrap.py index 6bfa0b0..19ce9a7 100644 --- a/src/otari/_client/models/deployment_bootstrap.py +++ b/src/otari/_client/models/deployment_bootstrap.py @@ -27,7 +27,7 @@ class DeploymentBootstrap(BaseModel): """ What the dashboard shell needs before it can render anything. """ # noqa: E501 - data_plane_url: Optional[StrictStr] = Field(description="Where this deployment's inference traffic belongs, when it is not served here. The mirror of management_url: that one says where management lives when this deployment is not the control plane, this one says where the data plane is when this deployment is not it. Set only by a hosted control plane, which serves the dashboard but not inference (otari#822); null for standalone and hybrid, both of which serve inference at the address that reached this page. Not a human link target like management_url: it is the gateway's bare address, which the dashboard suffixes with /v1 to build its request snippets. So it must carry no /v1 path segment anywhere (a value ending in /v1, or a whole endpoint like /v1/chat/completions, renders that path twice) and no credential, since this response is unauthenticated. This gateway refuses both at startup; any deployment serving this contract should publish the same shape. Null on a hosted deployment means unconfigured, and the dashboard then shows no snippet rather than one naming this host.") + data_plane_url: Optional[StrictStr] = Field(description="Where this deployment's inference traffic belongs, when it is not served here. The mirror of management_url: that one says where management lives when this deployment is not the control plane, this one says where the data plane is when this deployment is not it. Set only by a hosted control plane, which serves the dashboard but not inference (otari#822); null for standalone and hybrid, both of which serve inference at the address that reached this page. Not a human link target like management_url: it is the gateway's bare address, which the dashboard suffixes with the API root to build its request snippets. So it must carry no API root anywhere (a value ending in /api/v1, or a whole endpoint like /api/v1/chat/completions, renders that path twice) and no credential, since this response is unauthenticated. This gateway refuses both at startup; any deployment serving this contract should publish the same shape. Null on a hosted deployment means unconfigured, and the dashboard then shows no snippet rather than one naming this host.") deployment_type: StrictStr = Field(description="Which deployment serves this URL. 'standalone' owns its own data and serves one tenant; 'hosted' owns its own data and serves many (otari.ai, or any deployment run as a control plane), which is why its management surfaces are the per-organization ones; 'hybrid' is a gateway attached to otari.ai, which is data-plane only and holds no management surface of its own.") docs_url: Optional[StrictStr] = Field(description="Where this deployment's documentation lives, when it is not the operator guide bundled with the gateway. Set, the dashboard's Documentation links open it in a new tab; null, they go to the bundled guide at /#/docs, which stays served either way. A link target an operator configured, validated at startup as an absolute http(s) URL carrying no credential, since this response is unauthenticated.") mail_ready: StrictBool = Field(description="Whether this deployment can deliver a message carrying a link back to itself (an invitation's accept link, and the verification and reset links to come), not merely whether a transport is configured: it also needs to know its own public URL to put in one. Lets the dashboard disable or hide a mail-dependent affordance instead of offering one that would fail at send time. Every message this control plane sends carries such a link, which is why this is one flag and not one per feature. False for a hybrid gateway, whose control plane is otari.ai and which sends no mail of its own.") @@ -37,7 +37,7 @@ class DeploymentBootstrap(BaseModel): passkeys_ready: StrictBool = Field(description="Whether this deployment can run a passkey ceremony at all: it has a relying-party ID (webauthn_rp_id, or derived from public_base_url) and an origin to serve one from. Distinct from 'passkey' in sign_in_methods, which is narrower and answers whether a registered passkey could sign somebody in *right now*: an operator with none yet needs this one, or the page that registers the first would be hidden from them. False for a hybrid gateway, which issues no session of its own.") privacy_url: Optional[StrictStr] = Field(description="Where this deployment's privacy notice lives. Set, the account menu's Data & Privacy row links to it; null, no address is configured and that row stays disabled, carrying the standing note that there is nothing to configure there yet. A link target an operator configured, validated at startup as an absolute http(s) URL carrying no credential, since this response is unauthenticated.") session_type: StrictStr = Field(description="The kind of session this deployment issues, not whether the caller holds one. 'local_operator' is the standalone operator sign-in (see sign_in_methods for which credential it currently accepts), 'hosted_user' an otari.ai account, and 'none' a deployment that issues no management session at all.") - sign_in_methods: List[StrictStr] = Field(description="How POST /v1/auth/session may be authenticated right now, sorted. 'master_key' is the first-boot credential and is offered until the operator identity has a password, which is what claiming the deployment means; 'password' replaces it from then on, and the master key stays the credential for the management API. 'passkey' appears alongside either one when this deployment is configured for WebAuthn and holds at least one passkey that its current relying-party ID can assert. Empty for a hybrid gateway, which issues no session. The login page renders from this rather than trying a credential to find out.") + sign_in_methods: List[StrictStr] = Field(description="How POST /api/v1/auth/session may be authenticated right now, sorted. 'master_key' is the first-boot credential and is offered until the operator identity has a password, which is what claiming the deployment means; 'password' replaces it from then on, and the master key stays the credential for the management API. 'passkey' appears alongside either one when this deployment is configured for WebAuthn and holds at least one passkey that its current relying-party ID can assert. Empty for a hybrid gateway, which issues no session. The login page renders from this rather than trying a credential to find out.") surfaces: List[StrictStr] = Field(description="Management API groups this deployment serves, sorted, which is what its dashboard pages gate on. Named surfaces, not capabilities: capability is otari.ai's word for the entitlement (licensing) axis, and this is the deployment (topology) axis. Empty for a hybrid gateway.") terms_url: Optional[StrictStr] = Field(description="Where this deployment's terms of service live. Set, the account menu carries a Terms of service row pointing at them; null, no address is configured and the menu carries no such row. A link target an operator configured, validated at startup as an absolute http(s) URL carrying no credential, since this response is unauthenticated.") __properties: ClassVar[List[str]] = ["data_plane_url", "deployment_type", "docs_url", "mail_ready", "maintenance_mode", "management_url", "oauth_providers", "passkeys_ready", "privacy_url", "session_type", "sign_in_methods", "surfaces", "terms_url"] diff --git a/src/otari/_client/models/mail_settings.py b/src/otari/_client/models/mail_settings.py index b2baddc..e924eb6 100644 --- a/src/otari/_client/models/mail_settings.py +++ b/src/otari/_client/models/mail_settings.py @@ -32,7 +32,7 @@ class MailSettings(BaseModel): from_name: StrictStr = Field(description="The 'From' display name on outgoing mail.") missing: List[StrictStr] = Field(description="Settings that must be set before mail works, in config order. Empty exactly when 'ready' is true, so the dashboard can name what to configure rather than only reporting that mail is off.") public_base_url: Optional[StrictStr] = Field(description="This deployment's own externally-reachable URL, used to build links in outgoing mail.") - ready: StrictBool = Field(description="Whether a message carrying a link back to this deployment can be sent, which is what every message the control plane sends needs. Matches 'mail_ready' on /v1/bootstrap.") + ready: StrictBool = Field(description="Whether a message carrying a link back to this deployment can be sent, which is what every message the control plane sends needs. Matches 'mail_ready' on /api/v1/bootstrap.") transport: StrictStr = Field(description="The transport a send would use: 'smtp', 'console' (logged, not delivered), or 'none'.") __properties: ClassVar[List[str]] = ["enabled", "from_email", "from_name", "missing", "public_base_url", "ready", "transport"] diff --git a/src/otari/_client/models/maintenance_mode.py b/src/otari/_client/models/maintenance_mode.py index 60411c4..30b02da 100644 --- a/src/otari/_client/models/maintenance_mode.py +++ b/src/otari/_client/models/maintenance_mode.py @@ -27,7 +27,7 @@ class MaintenanceMode(BaseModel): """ Whether this deployment is currently refusing new dashboard sign-ins. """ # noqa: E501 - enabled: StrictBool = Field(description="When true, POST /v1/auth/session refuses every credential with 503 so nobody starts a new dashboard session during a redeploy. Sessions already issued keep working, and the management API and the data plane are unaffected: a caller presenting the master key or an API key through the header is never frozen out.") + enabled: StrictBool = Field(description="When true, POST /api/v1/auth/session refuses every credential with 503 so nobody starts a new dashboard session during a redeploy. Sessions already issued keep working, and the management API and the data plane are unaffected: a caller presenting the master key or an API key through the header is never frozen out.") __properties: ClassVar[List[str]] = ["enabled"] model_config = ConfigDict( diff --git a/src/otari/_client/models/mcp_tool_definition.py b/src/otari/_client/models/mcp_tool_definition.py index 99a8da3..30ce3d5 100644 --- a/src/otari/_client/models/mcp_tool_definition.py +++ b/src/otari/_client/models/mcp_tool_definition.py @@ -30,7 +30,7 @@ class McpToolDefinition(BaseModel): annotations: Optional[Dict[str, Any]] = Field(default=None, description="Provider-native request fields used as defaults (e.g. exa's 'type', searxng's 'engines').") description: Optional[StrictStr] = Field(default=None, description="The server's own description, untrusted.") input_schema: Dict[str, Any] = Field(description="The tool's MCP inputSchema, unmodified.") - name: StrictStr = Field(description="The remote MCP tool name to send back to /v1/mcp/execute.") + name: StrictStr = Field(description="The remote MCP tool name to send back to /api/v1/mcp/execute.") __properties: ClassVar[List[str]] = ["annotations", "description", "input_schema", "name"] model_config = ConfigDict( diff --git a/src/otari/_client/models/mcp_tools_response.py b/src/otari/_client/models/mcp_tools_response.py index eaaf070..675c647 100644 --- a/src/otari/_client/models/mcp_tools_response.py +++ b/src/otari/_client/models/mcp_tools_response.py @@ -29,7 +29,7 @@ class McpToolsResponse(BaseModel): """ - The authorized catalog for one stored server. Carries no server URL, no credential, and no allowlist entry that the live catalog did not return (R-DISC-2). ``server_revision`` is what an application persists with a proposed call and sends back to ``/v1/mcp/execute``, so a stored-configuration change between the two is refused rather than executed. + The authorized catalog for one stored server. Carries no server URL, no credential, and no allowlist entry that the live catalog did not return (R-DISC-2). ``server_revision`` is what an application persists with a proposed call and sends back to ``/api/v1/mcp/execute``, so a stored-configuration change between the two is refused rather than executed. """ # noqa: E501 server_id: UUID server_revision: StrictStr = Field(description="An opaque revision of the stored server's URL, credential, enabled state and allowlist. It detects Otari-side and platform-side configuration changes only: a remote server that changes its own catalog or a tool's behavior behind an unchanged URL will not move it.") diff --git a/src/otari/_client/models/o_auth_session_response.py b/src/otari/_client/models/o_auth_session_response.py index 807628d..b27d8e8 100644 --- a/src/otari/_client/models/o_auth_session_response.py +++ b/src/otari/_client/models/o_auth_session_response.py @@ -27,7 +27,7 @@ class OAuthSessionResponse(BaseModel): """ - A dashboard session minted by an OAuth sign-in (the token travels only in the cookie). The same three fields ``POST /v1/auth/session`` answers, deliberately: the dashboard's sign-in path does not care which credential got it here. + A dashboard session minted by an OAuth sign-in (the token travels only in the cookie). The same three fields ``POST /api/v1/auth/session`` answers, deliberately: the dashboard's sign-in path does not care which credential got it here. """ # noqa: E501 active_organization_id: UUID = Field(description="The organization that identity is acting in, which scopes every tenancy surface.") expires_at: datetime = Field(description="When the session cookie stops being accepted.") diff --git a/src/otari/_client/models/organization_budget_update.py b/src/otari/_client/models/organization_budget_update.py index e7398e0..45a23b1 100644 --- a/src/otari/_client/models/organization_budget_update.py +++ b/src/otari/_client/models/organization_budget_update.py @@ -26,7 +26,7 @@ class OrganizationBudgetUpdate(BaseModel): """ - Replace a budget's label, figure and period. Every field is optional and keyed on ``model_fields_set``, matching ``PATCH /v1/budgets/{id}``'s own: an *omitted* field is left alone, and an explicit null clears it, so sending ``max_budget: null`` takes a budget back to uncapped, which is what the dashboard's dialog does. The period pair is still mutually exclusive, and setting one does not clear the other, which is why :func:`_require_single_period_source` re-checks the *resulting* pair rather than the submitted one. + Replace a budget's label, figure and period. Every field is optional and keyed on ``model_fields_set``, matching the deployment-wide budget update's own: an *omitted* field is left alone, and an explicit null clears it, so sending ``max_budget: null`` takes a budget back to uncapped, which is what the dashboard's dialog does. The period pair is still mutually exclusive, and setting one does not clear the other, which is why :func:`_require_single_period_source` re-checks the *resulting* pair rather than the submitted one. """ # noqa: E501 budget_duration_sec: Optional[Annotated[int, Field(strict=True, gt=0)]] = Field(default=None, description="Seconds between resets, counted from the last one. Mutually exclusive with reset_alignment") max_budget: Optional[Union[Annotated[float, Field(le=999999999999, strict=True, ge=0.0)], Annotated[int, Field(le=2147483647, strict=True, ge=0)]]] = Field(default=None, description="Maximum spend in USD over one period; null caps nothing") diff --git a/src/otari/_client/models/organization_model_pricing_update.py b/src/otari/_client/models/organization_model_pricing_update.py index b4913ac..e2279ef 100644 --- a/src/otari/_client/models/organization_model_pricing_update.py +++ b/src/otari/_client/models/organization_model_pricing_update.py @@ -28,7 +28,7 @@ class OrganizationModelPricingUpdate(BaseModel): """ - Replace an override's rates and period. ``effective_from`` is required here, where a create defaults it to now. A replacement states the whole row, so defaulting an omitted start would move a stored period to the present: an operator editing next quarter's rate through a client that does not send the field would silently bring it into effect today, or collide with the period that currently applies. Stating it is the only reading that cannot surprise. A full replacement rather than a patch: every rate field is present in the body and an omitted optional rate is cleared, so the stored row is exactly what was sent. That is the opposite of ``POST /v1/pricing``, which inherits an omitted cache rate from the model's previous version, and deliberately so: that surface versions a catalog where each write adds a row, while this one edits a single row in place and an inheriting patch would make the result depend on what happened to be stored before. ``model_key`` is absent because it is immutable. Repointing an override at another model is retiring one and creating another, which is two requests. + Replace an override's rates and period. ``effective_from`` is required here, where a create defaults it to now. A replacement states the whole row, so defaulting an omitted start would move a stored period to the present: an operator editing next quarter's rate through a client that does not send the field would silently bring it into effect today, or collide with the period that currently applies. Stating it is the only reading that cannot surprise. A full replacement rather than a patch: every rate field is present in the body and an omitted optional rate is cleared, so the stored row is exactly what was sent. That is the opposite of ``POST /api/v1/pricing``, which inherits an omitted cache rate from the model's previous version, and deliberately so: that surface versions a catalog where each write adds a row, while this one edits a single row in place and an inheriting patch would make the result depend on what happened to be stored before. ``model_key`` is absent because it is immutable. Repointing an override at another model is retiring one and creating another, which is two requests. """ # noqa: E501 cache_read_price_per_million: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="Price per 1M cached-input tokens") cache_write_1h_price_per_million: Optional[Union[Annotated[float, Field(strict=True, ge=0.0)], Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, description="Price per 1M Anthropic 1-hour cache-write tokens") diff --git a/src/otari/_client/models/organization_scoped_budget_update.py b/src/otari/_client/models/organization_scoped_budget_update.py index 928e95a..99b9966 100644 --- a/src/otari/_client/models/organization_scoped_budget_update.py +++ b/src/otari/_client/models/organization_scoped_budget_update.py @@ -26,7 +26,7 @@ class OrganizationScopedBudgetUpdate(BaseModel): """ - Relabel a ceiling, or point it at a different budget of this organization's. The scope and the provider narrowing are not editable, for the reason ``PATCH /v1/scoped-budgets/{id}`` gives: changing either moves the ceiling to a different identity while carrying its spend, which is a delete and a create, not an update. + Relabel a ceiling, or point it at a different budget of this organization's. The scope and the provider narrowing are not editable, for the reason the deployment-wide ceiling update gives: changing either moves the ceiling to a different identity while carrying its spend, which is a delete and a create, not an update. """ # noqa: E501 budget_id: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]] = None name: Optional[Annotated[str, Field(strict=True, max_length=200)]] = None diff --git a/src/otari/_client/models/passkey_session_response.py b/src/otari/_client/models/passkey_session_response.py index 3040830..3d0306b 100644 --- a/src/otari/_client/models/passkey_session_response.py +++ b/src/otari/_client/models/passkey_session_response.py @@ -27,7 +27,7 @@ class PasskeySessionResponse(BaseModel): """ - A dashboard session minted by a passkey (the token travels only in the cookie). The same three fields ``POST /v1/auth/session`` answers, deliberately: the dashboard's sign-in path does not care which credential got it here. + A dashboard session minted by a passkey (the token travels only in the cookie). The same three fields ``POST /api/v1/auth/session`` answers, deliberately: the dashboard's sign-in path does not care which credential got it here. """ # noqa: E501 active_organization_id: UUID = Field(description="The organization that identity is acting in, which scopes every tenancy surface.") expires_at: datetime = Field(description="When the session cookie stops being accepted.") diff --git a/src/otari/_client/models/password_response.py b/src/otari/_client/models/password_response.py index a9d7480..0e687e6 100644 --- a/src/otari/_client/models/password_response.py +++ b/src/otari/_client/models/password_response.py @@ -28,7 +28,7 @@ class PasswordResponse(BaseModel): What the identity signs in with now. """ # noqa: E501 email: StrictStr = Field(description="The address this identity signs in with.") - master_key_sign_in_retired: StrictBool = Field(description="Whether POST /v1/auth/session has stopped accepting the master key as a dashboard login. True once the operator identity has a password, which is what claiming the deployment means; a member setting their own password leaves an unclaimed deployment on the master key. Either way the master key stays the credential for the management API.") + master_key_sign_in_retired: StrictBool = Field(description="Whether POST /api/v1/auth/session has stopped accepting the master key as a dashboard login. True once the operator identity has a password, which is what claiming the deployment means; a member setting their own password leaves an unclaimed deployment on the master key. Either way the master key stays the credential for the management API.") __properties: ClassVar[List[str]] = ["email", "master_key_sign_in_retired"] model_config = ConfigDict( diff --git a/src/otari/_client/models/scoped_budget_response.py b/src/otari/_client/models/scoped_budget_response.py index 9e80d6e..5083fcd 100644 --- a/src/otari/_client/models/scoped_budget_response.py +++ b/src/otari/_client/models/scoped_budget_response.py @@ -25,7 +25,7 @@ class ScopedBudgetResponse(BaseModel): """ - One scoped ceiling and its live counters. Unlike ``/v1/budgets``, the counters are the row's own: a scoped ceiling is enforced against ``current_spend + reserved_spend``, so there is no rollup over users to compute. Every limit, along with ``budget_duration_sec`` and ``reset_alignment``, is read off the budget rather than stored here, and carried on the wire so a caller can render a ceiling without fetching every budget to resolve one id. + One scoped ceiling and its live counters. Unlike ``/api/v1/budgets``, the counters are the row's own: a scoped ceiling is enforced against ``current_spend + reserved_spend``, so there is no rollup over users to compute. Every limit, along with ``budget_duration_sec`` and ``reset_alignment``, is read off the budget rather than stored here, and carried on the wire so a caller can render a ceiling without fetching every budget to resolve one id. """ # noqa: E501 budget_duration_sec: Optional[StrictInt] budget_id: StrictStr diff --git a/src/otari/_client/models/search_request.py b/src/otari/_client/models/search_request.py index 5a3a39d..798d3c6 100644 --- a/src/otari/_client/models/search_request.py +++ b/src/otari/_client/models/search_request.py @@ -33,7 +33,7 @@ class SearchRequest(BaseModel): max_tokens_per_page: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, description="Approximate cap on the page content returned per result") query: Annotated[str, Field(min_length=1, strict=True)] = Field(description="The search query") search_domain_filter: Optional[Annotated[List[StrictStr], Field(max_length=20)]] = Field(default=None, description="Restrict results to these domains; prefix a domain with '-' to exclude it instead") - search_tool_name: Optional[StrictStr] = Field(default=None, description="Configured search tool to run against. Optional when exactly one tool is configured, and ignored on POST /v1/search/{search_tool_name}.") + search_tool_name: Optional[StrictStr] = Field(default=None, description="Configured search tool to run against. Optional when exactly one tool is configured, and ignored on POST /api/v1/search/{search_tool_name}.") user: Optional[StrictStr] = Field(default=None, description="User ID for usage attribution") __properties: ClassVar[List[str]] = ["country", "max_results", "max_tokens_per_page", "query", "search_domain_filter", "search_tool_name", "user"] diff --git a/src/otari/_client/models/search_tools_response.py b/src/otari/_client/models/search_tools_response.py index 129b14b..afabc30 100644 --- a/src/otari/_client/models/search_tools_response.py +++ b/src/otari/_client/models/search_tools_response.py @@ -27,7 +27,7 @@ class SearchToolsResponse(BaseModel): """ - Every search tool ``POST /v1/search`` can name, by where it came from. + Every search tool ``POST /api/v1/search`` can name, by where it came from. """ # noqa: E501 config: List[ConfigSearchToolSchema] stored: List[StoredSearchToolSchema] diff --git a/src/otari/_client/models/workspace_web_search_config_update.py b/src/otari/_client/models/workspace_web_search_config_update.py index 0c8b668..32d0dc0 100644 --- a/src/otari/_client/models/workspace_web_search_config_update.py +++ b/src/otari/_client/models/workspace_web_search_config_update.py @@ -30,7 +30,7 @@ class WorkspaceWebSearchConfigUpdate(BaseModel): """ # noqa: E501 allowed_domains: Optional[List[StrictStr]] = Field(default=None, description="Results are kept only from these domains; intersected with any list the request sends") blocked_domains: Optional[List[StrictStr]] = Field(default=None, description="Results from these domains are dropped; added to any list the request sends") - enabled: StrictBool = Field(description="False refuses web search for this workspace, both the otari_web_search tool and POST /v1/search. The fields below narrow the tool only.") + enabled: StrictBool = Field(description="False refuses web search for this workspace, both the otari_web_search tool and the search endpoint. The fields below narrow the tool only.") max_results: Optional[Annotated[int, Field(le=20, strict=True, gt=0)]] = Field(default=None, description="Ceiling on results one search returns; only ever lowers the effective limit, so at most 20") provider_options: Optional[Dict[str, Any]] = Field(default=None, description="Provider-native request fields used as defaults (e.g. exa's 'type', searxng's 'engines').") purpose_hint: Optional[Annotated[str, Field(strict=True, max_length=2048)]] = Field(default=None, description="Hint used when a request declares otari_web_search without one of its own")