{
  "openapi": "3.0.1",
  "info": {
    "title": "Temporal Cloud Ops API",
    "description": "Programmatic access to manage Temporal Cloud control plane resources including namespaces, users, service accounts, and more.\n\n## Authentication\n\nAll API requests require authentication using an API Key. Include your API key in the `Authorization` header using the Bearer scheme:\n\n```\nAuthorization: Bearer YOUR_API_KEY\n```\n\nAPI keys can be created and managed through the [API Keys endpoints](#tag/API-Keys) or via the Temporal Cloud UI. For more information, see [API Keys Documentation](https://docs.temporal.io/cloud/api-keys).\n\n## Authorization\n\nThe API uses Role-Based Access Control (RBAC) to manage permissions. Each operation requires specific role-based permissions in addition to a valid API key.\n\n### Account-Level Roles\n\n- **Account Owner** - Full account administration access\n- **Account Admin** - Manage namespaces, users, and service accounts  \n- **Account Developer** - Create namespaces and manage Nexus endpoints\n- **Finance Admin** - View usage and billing information\n- **Account Read** - Read-only access to account resources\n\n### Namespace-Level Roles\n\n- **Namespace Admin** - Full access to namespace configuration and data\n- **Namespace Write** - Execute workflows and modify workflow data\n- **Namespace Read** - Read-only access to namespace data\n\nNamespace-level permissions are scoped to specific namespaces. A user or service account may have different permission levels across different namespaces.\n\nFor detailed information about roles and permissions, see [Access Control Documentation](https://docs.temporal.io/cloud/users).",
    "version": "v0.27.0",
    "x-logo": {
      "url": "https://images.ctfassets.net/0uuz8ydxyd9p/4YGUnEoCaH9SyoUDhlJkau/e1600205d17eeee3033d926ef06664a9/Temporal_LogoLockup_Horizontal_dark_1.svg"
    }
  },
  "externalDocs": {
    "description": "Temporal Cloud Documentation",
    "url": "https://docs.temporal.io/cloud"
  },
  "servers": [
    {
      "url": "/"
    }
  ],
  "security": [
    {
      "ApiKey": []
    }
  ],
  "tags": [
    {
      "name": "Namespaces",
      "description": "Manage Temporal Cloud namespaces"
    },
    {
      "name": "Users",
      "description": "Manage users and their namespace access"
    },
    {
      "name": "Service Accounts",
      "description": "Manage service accounts and their namespace access"
    },
    {
      "name": "API Keys",
      "description": "Manage API keys for authentication"
    },
    {
      "name": "Groups",
      "description": "Manage user groups and group membership"
    },
    {
      "name": "Nexus",
      "description": "Manage Nexus endpoints"
    },
    {
      "name": "High Availability",
      "description": "Manage high availability (multi-region, multi-cloud, and same-region replication) namespace configurations"
    },
    {
      "name": "Export",
      "description": "Manage workflow history export configurations"
    },
    {
      "name": "Connectivity Rules",
      "description": "Manage network connectivity rules"
    },
    {
      "name": "Caller Rate Limits",
      "description": "Manage per-caller rate limits for namespaces (Pre-Release: To get early access contact Temporal Cloud support)."
    },
    {
      "name": "Regions",
      "description": "Query available regions"
    },
    {
      "name": "Account",
      "description": "Manage account settings and usage"
    },
    {
      "name": "Custom Roles",
      "description": "Manage custom roles and their permissions"
    },
    {
      "name": "Projects",
      "description": "Manage projects and project-level access control. Projects are an upcoming feature and may not be enabled for your account. Contact Temporal support to request access."
    },
    {
      "name": "Operations",
      "description": "Query async operation status"
    }
  ],
  "paths": {
    "/cloud/account": {
      "get": {
        "tags": [
          "Account"
        ],
        "summary": "Get account details",
        "description": "Returns detailed information about the account",
        "externalDocs": {
          "description": "Billing documentation",
          "url": "https://docs.temporal.io/cloud/billing-and-cost"
        },
        "operationId": "GetAccount",
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetAccountResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Account"
        ],
        "summary": "Update account details",
        "description": "Updates account configuration and settings",
        "externalDocs": {
          "description": "Billing documentation",
          "url": "https://docs.temporal.io/cloud/billing-and-cost"
        },
        "operationId": "UpdateAccount",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/v1UpdateAccountRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1UpdateAccountResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/cloud/api-keys": {
      "get": {
        "tags": [
          "API Keys"
        ],
        "summary": "List all API keys",
        "description": "Returns a list of all API keys in the account",
        "externalDocs": {
          "description": "API Keys documentation",
          "url": "https://docs.temporal.io/cloud/api-keys"
        },
        "operationId": "GetApiKeys",
        "parameters": [
          {
            "name": "pageSize",
            "in": "query",
            "description": "The requested size of the page to retrieve - optional.\nCannot exceed 1000. Defaults to 100.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageToken",
            "in": "query",
            "description": "The page token if this is continuing from another response - optional.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ownerId",
            "in": "query",
            "description": "Filter api keys by owner id - optional.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ownerType",
            "in": "query",
            "description": "Filter api keys by owner type - optional.\n\n - OWNER_TYPE_USER: The owner is a user.\n - OWNER_TYPE_SERVICE_ACCOUNT: The owner is a service account.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string",
              "default": "OWNER_TYPE_UNSPECIFIED",
              "enum": [
                "OWNER_TYPE_UNSPECIFIED",
                "OWNER_TYPE_USER",
                "OWNER_TYPE_SERVICE_ACCOUNT"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetApiKeysResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "API Keys"
        ],
        "summary": "Create an API key",
        "description": "Creates a new API key for programmatic access",
        "externalDocs": {
          "description": "API Keys documentation",
          "url": "https://docs.temporal.io/cloud/api-keys"
        },
        "operationId": "CreateApiKey",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/v1CreateApiKeyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1CreateApiKeyResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/cloud/api-keys/{keyId}": {
      "get": {
        "tags": [
          "API Keys"
        ],
        "summary": "Get API key details",
        "description": "Returns detailed information about a specific API key",
        "externalDocs": {
          "description": "API Keys documentation",
          "url": "https://docs.temporal.io/cloud/api-keys"
        },
        "operationId": "GetApiKey",
        "parameters": [
          {
            "name": "keyId",
            "in": "path",
            "description": "The id of the api key to get.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetApiKeyResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "API Keys"
        ],
        "summary": "Update an API key",
        "description": "Updates an existing API key's properties",
        "externalDocs": {
          "description": "API Keys documentation",
          "url": "https://docs.temporal.io/cloud/api-keys"
        },
        "operationId": "UpdateApiKey",
        "parameters": [
          {
            "name": "keyId",
            "in": "path",
            "description": "The id of the api key to update.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CloudServiceUpdateApiKeyBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1UpdateApiKeyResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      },
      "delete": {
        "tags": [
          "API Keys"
        ],
        "summary": "Delete an API key",
        "description": "Revokes and deletes an API key",
        "externalDocs": {
          "description": "API Keys documentation",
          "url": "https://docs.temporal.io/cloud/api-keys"
        },
        "operationId": "DeleteApiKey",
        "parameters": [
          {
            "name": "keyId",
            "in": "path",
            "description": "The id of the api key to delete.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resourceVersion",
            "in": "query",
            "description": "The version of the api key for which this delete is intended for.\nThe latest version can be found in the GetApiKey operation response.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "asyncOperationId",
            "in": "query",
            "description": "The id to use for this async operation - optional.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1DeleteApiKeyResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      }
    },
    "/cloud/audit-log-sink-validate": {
      "post": {
        "tags": [
          "Account"
        ],
        "summary": "Validate audit log sink",
        "description": "Validate customer audit log sink is accessible from Temporal's workflow by delivering an empty file to the specified sink. The operation verifies that the sink is correctly configured, accessible and ready to receive audit logs.",
        "externalDocs": {
          "description": "Audit logging documentation",
          "url": "https://docs.temporal.io/cloud/audit-logging"
        },
        "operationId": "ValidateAccountAuditLogSink",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/v1ValidateAccountAuditLogSinkRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1ValidateAccountAuditLogSinkResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/cloud/audit-log-sinks": {
      "get": {
        "tags": [
          "Account"
        ],
        "summary": "List audit log sinks",
        "description": "Returns a list of all audit log sinks for the account",
        "externalDocs": {
          "description": "Audit logging documentation",
          "url": "https://docs.temporal.io/cloud/audit-logging"
        },
        "operationId": "GetAccountAuditLogSinks",
        "parameters": [
          {
            "name": "pageSize",
            "in": "query",
            "description": "The requested size of the page to retrieve. Cannot exceed 1000.\nDefaults to 100 if not specified.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageToken",
            "in": "query",
            "description": "The page token if this is continuing from another response - optional.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetAccountAuditLogSinksResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Account"
        ],
        "summary": "Create audit log sink",
        "description": "Creates a new audit log sink for exporting audit logs",
        "externalDocs": {
          "description": "Audit logging documentation",
          "url": "https://docs.temporal.io/cloud/audit-logging"
        },
        "operationId": "CreateAccountAuditLogSink",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/v1CreateAccountAuditLogSinkRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1CreateAccountAuditLogSinkResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/cloud/audit-log-sinks/{name}": {
      "get": {
        "tags": [
          "Account"
        ],
        "summary": "Get audit log sink details",
        "description": "Returns detailed information about a specific audit log sink",
        "externalDocs": {
          "description": "Audit logging documentation",
          "url": "https://docs.temporal.io/cloud/audit-logging"
        },
        "operationId": "GetAccountAuditLogSink",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "description": "The name of the sink to retrieve.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetAccountAuditLogSinkResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Account"
        ],
        "summary": "Delete audit log sink",
        "description": "Removes an audit log sink from the account",
        "externalDocs": {
          "description": "Audit logging documentation",
          "url": "https://docs.temporal.io/cloud/audit-logging"
        },
        "operationId": "DeleteAccountAuditLogSink",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "description": "The name of the sink to delete.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resourceVersion",
            "in": "query",
            "description": "The version of the sink to delete. The latest version can be\nretrieved using the GetAccountAuditLogSink call.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "asyncOperationId",
            "in": "query",
            "description": "The ID to use for this async operation - optional.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1DeleteAccountAuditLogSinkResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      }
    },
    "/cloud/audit-log-sinks/{spec.name}": {
      "post": {
        "tags": [
          "Account"
        ],
        "summary": "Update audit log sink",
        "description": "Updates an existing audit log sink's configuration",
        "externalDocs": {
          "description": "Audit logging documentation",
          "url": "https://docs.temporal.io/cloud/audit-logging"
        },
        "operationId": "UpdateAccountAuditLogSink",
        "parameters": [
          {
            "name": "spec.name",
            "in": "path",
            "description": "Name of the sink e.g. \"audit_log_01\"",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CloudServiceUpdateAccountAuditLogSinkBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1UpdateAccountAuditLogSinkResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/cloud/audit-logs": {
      "get": {
        "tags": [
          "Account"
        ],
        "summary": "Get audit logs",
        "description": "Returns a paginated list of audit logs for the account, optionally filtered by time range",
        "externalDocs": {
          "description": "Audit logging documentation",
          "url": "https://docs.temporal.io/cloud/audit-logging"
        },
        "operationId": "GetAuditLogs",
        "parameters": [
          {
            "name": "pageSize",
            "in": "query",
            "description": "The requested size of the page to retrieve - optional.\nCannot exceed 1000. Defaults to 100.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageToken",
            "in": "query",
            "description": "The page token if this is continuing from another response - optional.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "startTimeInclusive",
            "in": "query",
            "description": "Filter for UTC time >= (defaults to 30 days ago) - optional.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "endTimeExclusive",
            "in": "query",
            "description": "Filter for UTC time < (defaults to current time) - optional.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetAuditLogsResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      }
    },
    "/cloud/billing-reports": {
      "post": {
        "tags": [
          "Billing"
        ],
        "summary": "Create a billing report",
        "description": "Creates a billing report for the account",
        "externalDocs": {
          "description": "Billing report documentation",
          "url": "https://docs.temporal.io/cloud/billing-reports"
        },
        "operationId": "CreateBillingReport",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/v1CreateBillingReportRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1CreateBillingReportResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/cloud/billing-reports/{billingReportId}": {
      "get": {
        "tags": [
          "Billing"
        ],
        "summary": "Get a billing report",
        "description": "Gets an existing billing report for the account",
        "externalDocs": {
          "description": "Billing report documentation",
          "url": "https://docs.temporal.io/cloud/billing-reports"
        },
        "operationId": "GetBillingReport",
        "parameters": [
          {
            "name": "billingReportId",
            "in": "path",
            "description": "The id of the billing report to retrieve.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetBillingReportResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      }
    },
    "/cloud/connectivity-rules": {
      "get": {
        "tags": [
          "Connectivity Rules"
        ],
        "summary": "List all connectivity rules",
        "description": "Returns a list of all connectivity rules in the account",
        "externalDocs": {
          "description": "Connectivity documentation",
          "url": "https://docs.temporal.io/cloud/connectivity"
        },
        "operationId": "GetConnectivityRules",
        "parameters": [
          {
            "name": "pageSize",
            "in": "query",
            "description": "The requested size of the page to retrieve.\nOptional, defaults to 100.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageToken",
            "in": "query",
            "description": "The page token if this is continuing from another response.\nOptional, defaults to empty.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "namespace",
            "in": "query",
            "description": "Filter connectivity rule by the namespace id.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "projectId",
            "in": "query",
            "description": "Filter connectivity rules by project id - optional.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetConnectivityRulesResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Connectivity Rules"
        ],
        "summary": "Create connectivity rule",
        "description": "Creates a new connectivity rule for network access control",
        "externalDocs": {
          "description": "Connectivity documentation",
          "url": "https://docs.temporal.io/cloud/connectivity"
        },
        "operationId": "CreateConnectivityRule",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/v1CreateConnectivityRuleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1CreateConnectivityRuleResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/cloud/connectivity-rules/{connectivityRuleId}": {
      "get": {
        "tags": [
          "Connectivity Rules"
        ],
        "summary": "Get connectivity rule details",
        "description": "Returns detailed information about a specific connectivity rule",
        "externalDocs": {
          "description": "Connectivity documentation",
          "url": "https://docs.temporal.io/cloud/connectivity"
        },
        "operationId": "GetConnectivityRule",
        "parameters": [
          {
            "name": "connectivityRuleId",
            "in": "path",
            "description": "The id of the connectivity rule to get.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetConnectivityRuleResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Connectivity Rules"
        ],
        "summary": "Delete connectivity rule",
        "description": "Removes a connectivity rule from the account",
        "externalDocs": {
          "description": "Connectivity documentation",
          "url": "https://docs.temporal.io/cloud/connectivity"
        },
        "operationId": "DeleteConnectivityRule",
        "parameters": [
          {
            "name": "connectivityRuleId",
            "in": "path",
            "description": "The ID of the connectivity rule that need be deleted, required.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resourceVersion",
            "in": "query",
            "description": "The resource version which should be the same from the the db, required\nThe latest version can be found in the GetConnectivityRule operation response",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "asyncOperationId",
            "in": "query",
            "description": "The id to use for this async operation.\nOptional, if not provided a random id will be generated.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1DeleteConnectivityRuleResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      }
    },
    "/cloud/current-identity": {
      "get": {
        "tags": [
          "Account"
        ],
        "summary": "Get current identity",
        "description": "Returns information about the currently authenticated user or service account principal",
        "operationId": "GetCurrentIdentity",
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetCurrentIdentityResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      }
    },
    "/cloud/custom-roles": {
      "get": {
        "tags": [
          "Custom Roles"
        ],
        "summary": "List custom roles",
        "description": "Returns a list of custom roles in the account",
        "externalDocs": {
          "description": "Custom roles documentation",
          "url": "https://docs.temporal.io/cloud/custom-roles"
        },
        "operationId": "GetCustomRoles",
        "parameters": [
          {
            "name": "pageSize",
            "in": "query",
            "description": "The requested size of the page to retrieve.\nCannot exceed 1000. Defaults to 100.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageToken",
            "in": "query",
            "description": "The page token if this is continuing from another response.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "projectId",
            "in": "query",
            "description": "Filter to only the custom roles scoped to this project - optional.\nIf unset, only account-scoped custom roles are returned.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetCustomRolesResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Custom Roles"
        ],
        "summary": "Create a custom role",
        "description": "Creates a new custom role in the account",
        "externalDocs": {
          "description": "Custom roles documentation",
          "url": "https://docs.temporal.io/cloud/custom-roles"
        },
        "operationId": "CreateCustomRole",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/v1CreateCustomRoleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1CreateCustomRoleResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/cloud/custom-roles/{roleId}": {
      "get": {
        "tags": [
          "Custom Roles"
        ],
        "summary": "Get custom role by ID",
        "description": "Returns details for a specific custom role",
        "externalDocs": {
          "description": "Custom roles documentation",
          "url": "https://docs.temporal.io/cloud/custom-roles"
        },
        "operationId": "GetCustomRole",
        "parameters": [
          {
            "name": "roleId",
            "in": "path",
            "description": "The ID of the custom role to retrieve.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetCustomRoleResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Custom Roles"
        ],
        "summary": "Update a custom role",
        "description": "Updates an existing custom role",
        "externalDocs": {
          "description": "Custom roles documentation",
          "url": "https://docs.temporal.io/cloud/custom-roles"
        },
        "operationId": "UpdateCustomRole",
        "parameters": [
          {
            "name": "roleId",
            "in": "path",
            "description": "The ID of the custom role to update.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CloudServiceUpdateCustomRoleBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1UpdateCustomRoleResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      },
      "delete": {
        "tags": [
          "Custom Roles"
        ],
        "summary": "Delete a custom role",
        "description": "Deletes a custom role from the account",
        "externalDocs": {
          "description": "Custom roles documentation",
          "url": "https://docs.temporal.io/cloud/custom-roles"
        },
        "operationId": "DeleteCustomRole",
        "parameters": [
          {
            "name": "roleId",
            "in": "path",
            "description": "The ID of the custom role to delete.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resourceVersion",
            "in": "query",
            "description": "The version of the custom role for which this delete is intended.\nThe latest version can be found in the GetCustomRole operation response.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "asyncOperationId",
            "in": "query",
            "description": "The ID to use for this async operation.\nOptional, if not provided a random ID will be generated.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1DeleteCustomRoleResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      }
    },
    "/cloud/namespaces": {
      "get": {
        "tags": [
          "Namespaces"
        ],
        "summary": "List all namespaces",
        "description": "Returns a list of all namespaces in the account",
        "externalDocs": {
          "description": "Namespace management documentation",
          "url": "https://docs.temporal.io/cloud/namespaces"
        },
        "operationId": "GetNamespaces",
        "parameters": [
          {
            "name": "pageSize",
            "in": "query",
            "description": "The requested size of the page to retrieve.\nCannot exceed 1000.\nOptional, defaults to 100.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageToken",
            "in": "query",
            "description": "The page token if this is continuing from another response.\nOptional, defaults to empty.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "name",
            "in": "query",
            "description": "Filter namespaces by their name.\nOptional, defaults to empty.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "projectId",
            "in": "query",
            "description": "Filter namespaces by project id - optional.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetNamespacesResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Namespaces"
        ],
        "summary": "Create a namespace",
        "description": "Creates a new namespace in the account",
        "externalDocs": {
          "description": "Namespace management documentation",
          "url": "https://docs.temporal.io/cloud/namespaces"
        },
        "operationId": "CreateNamespace",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/v1CreateNamespaceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1CreateNamespaceResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/cloud/namespaces/{namespace}": {
      "get": {
        "tags": [
          "Namespaces"
        ],
        "summary": "Get namespace details",
        "description": "Returns detailed information about a specific namespace",
        "externalDocs": {
          "description": "Namespace management documentation",
          "url": "https://docs.temporal.io/cloud/namespaces"
        },
        "operationId": "GetNamespace",
        "parameters": [
          {
            "name": "namespace",
            "in": "path",
            "description": "The namespace to get.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetNamespaceResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Namespaces"
        ],
        "summary": "Update a namespace",
        "description": "Updates configuration for an existing namespace",
        "externalDocs": {
          "description": "Namespace management documentation",
          "url": "https://docs.temporal.io/cloud/namespaces"
        },
        "operationId": "UpdateNamespace",
        "parameters": [
          {
            "name": "namespace",
            "in": "path",
            "description": "The namespace to update.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CloudServiceUpdateNamespaceBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1UpdateNamespaceResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      },
      "delete": {
        "tags": [
          "Namespaces"
        ],
        "summary": "Delete a namespace",
        "description": "Permanently deletes a namespace and all its data",
        "externalDocs": {
          "description": "Namespace management documentation",
          "url": "https://docs.temporal.io/cloud/namespaces"
        },
        "operationId": "DeleteNamespace",
        "parameters": [
          {
            "name": "namespace",
            "in": "path",
            "description": "The namespace to delete.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resourceVersion",
            "in": "query",
            "description": "The version of the namespace for which this delete is intended for.\nThe latest version can be found in the namespace status.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "asyncOperationId",
            "in": "query",
            "description": "The id to use for this async operation.\nOptional, if not provided a random id will be generated.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1DeleteNamespaceResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      }
    },
    "/cloud/namespaces/{namespace}/add-region": {
      "post": {
        "tags": [
          "High Availability"
        ],
        "summary": "Add namespace replica",
        "description": "Adds a new replica to an existing namespace",
        "externalDocs": {
          "description": "High availability namespace documentation",
          "url": "https://docs.temporal.io/cloud/high-availability"
        },
        "operationId": "AddNamespaceRegion",
        "parameters": [
          {
            "name": "namespace",
            "in": "path",
            "description": "The namespace to add the region to.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CloudServiceAddNamespaceRegionBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1AddNamespaceRegionResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/cloud/namespaces/{namespace}/caller-ratelimits": {
      "get": {
        "tags": [
          "Caller Rate Limits"
        ],
        "summary": "List caller rate limits",
        "description": "Returns a list of all caller rate limits for a namespace",
        "operationId": "GetCallerRateLimits",
        "parameters": [
          {
            "name": "namespace",
            "in": "path",
            "description": "The target namespace for the caller rate limits.\nRequired.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "The size of the page to retrieve.\nOptional, defaults to 100. Cannot exceed 1000.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageToken",
            "in": "query",
            "description": "Optional. The page token when continuing from another response.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "callerFilter.callerType",
            "in": "query",
            "description": "The type of caller to filter on.\nRequired when caller_filter is set. Accepted values are \"namespace\".",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "callerFilter.default",
            "in": "query",
            "description": "Optional, list the default rate limit for the type.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "callerFilter.caller",
            "in": "query",
            "description": "Optional, list the rate limit for a specific caller.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetCallerRateLimitsResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Caller Rate Limits"
        ],
        "summary": "Create caller rate limit",
        "description": "Creates a new caller rate limit that limits the requests per second a caller can make to a namespace",
        "operationId": "CreateCallerRateLimit",
        "parameters": [
          {
            "name": "namespace",
            "in": "path",
            "description": "The target namespace for this caller rate limit.\nRequired.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CloudServiceCreateCallerRateLimitBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1CreateCallerRateLimitResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/cloud/namespaces/{namespace}/caller-ratelimits/{callerRateLimitId}": {
      "get": {
        "tags": [
          "Caller Rate Limits"
        ],
        "summary": "Get caller rate limit details",
        "description": "Returns detailed information about a specific caller rate limit",
        "operationId": "GetCallerRateLimit",
        "parameters": [
          {
            "name": "namespace",
            "in": "path",
            "description": "The target namespace for the caller rate limit.\nRequired.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "callerRateLimitId",
            "in": "path",
            "description": "The id of the caller rate limit.\nRequired.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetCallerRateLimitResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Caller Rate Limits"
        ],
        "summary": "Update caller rate limit",
        "description": "Updates an existing caller rate limit's configuration",
        "operationId": "UpdateCallerRateLimit",
        "parameters": [
          {
            "name": "namespace",
            "in": "path",
            "description": "The target namespace for the caller rate limit.\nRequired.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "callerRateLimitId",
            "in": "path",
            "description": "The id of the caller rate limit.\nRequired.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CloudServiceUpdateCallerRateLimitBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1UpdateCallerRateLimitResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      },
      "delete": {
        "tags": [
          "Caller Rate Limits"
        ],
        "summary": "Delete caller rate limit",
        "description": "Removes a caller rate limit from a namespace",
        "operationId": "DeleteCallerRateLimit",
        "parameters": [
          {
            "name": "namespace",
            "in": "path",
            "description": "The target namespace for the caller rate limit.\nRequired.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "callerRateLimitId",
            "in": "path",
            "description": "The id of the caller rate limit.\nRequired.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resourceVersion",
            "in": "query",
            "description": "The version of the caller rate limit spec being deleted.\nThe latest version can be found in the GetCallerRateLimit operation response.\nRequired.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "asyncOperationId",
            "in": "query",
            "description": "The id to use for this async operation.\nOptional, if not provided a random id will be generated.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1DeleteCallerRateLimitResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      }
    },
    "/cloud/namespaces/{namespace}/capacity-info": {
      "get": {
        "tags": [
          "Namespaces"
        ],
        "summary": "Get namespace capacity information",
        "description": "Returns capacity information for a namespace. This includes provisioned capacity options, on-demand limits, and 7 day historical APS statistics useful for capacity planning.",
        "externalDocs": {
          "description": "Capacity modes information documentation",
          "url": "https://docs.temporal.io/cloud/capacity-modes"
        },
        "operationId": "GetNamespaceCapacityInfo",
        "parameters": [
          {
            "name": "namespace",
            "in": "path",
            "description": "The namespace identifier.\nRequired.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetNamespaceCapacityInfoResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      }
    },
    "/cloud/namespaces/{namespace}/export-sink-validate": {
      "post": {
        "tags": [
          "Export"
        ],
        "summary": "Validate history export sink configuration",
        "description": "Tests workflow history export sink configuration by delivering a test file to verify accessibility",
        "externalDocs": {
          "description": "Export documentation",
          "url": "https://docs.temporal.io/cloud/export"
        },
        "operationId": "ValidateNamespaceExportSink",
        "parameters": [
          {
            "name": "namespace",
            "in": "path",
            "description": "The namespace to which the sink belongs.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CloudServiceValidateNamespaceExportSinkBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1ValidateNamespaceExportSinkResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/cloud/namespaces/{namespace}/export-sinks": {
      "get": {
        "tags": [
          "Export"
        ],
        "summary": "List history export sinks",
        "description": "Returns a list of all workflow history export sinks for a namespace",
        "externalDocs": {
          "description": "Export documentation",
          "url": "https://docs.temporal.io/cloud/export"
        },
        "operationId": "GetNamespaceExportSinks",
        "parameters": [
          {
            "name": "namespace",
            "in": "path",
            "description": "The namespace to which the sinks belong.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "The requested size of the page to retrieve. Cannot exceed 1000.\nDefaults to 100 if not specified.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageToken",
            "in": "query",
            "description": "The page token if this is continuing from another response - optional.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetNamespaceExportSinksResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Export"
        ],
        "summary": "Create history export sink",
        "description": "Creates a new workflow history export sink",
        "externalDocs": {
          "description": "Export documentation",
          "url": "https://docs.temporal.io/cloud/export"
        },
        "operationId": "CreateNamespaceExportSink",
        "parameters": [
          {
            "name": "namespace",
            "in": "path",
            "description": "The namespace under which the sink is configured.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CloudServiceCreateNamespaceExportSinkBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1CreateNamespaceExportSinkResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/cloud/namespaces/{namespace}/export-sinks/{name}": {
      "get": {
        "tags": [
          "Export"
        ],
        "summary": "Get history sink details",
        "description": "Returns detailed information about a specific workflow history export sink",
        "externalDocs": {
          "description": "Export documentation",
          "url": "https://docs.temporal.io/cloud/export"
        },
        "operationId": "GetNamespaceExportSink",
        "parameters": [
          {
            "name": "namespace",
            "in": "path",
            "description": "The namespace to which the sink belongs.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "name",
            "in": "path",
            "description": "The name of the sink to retrieve.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetNamespaceExportSinkResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Export"
        ],
        "summary": "Delete history export sink",
        "description": "Removes a workflow history export sink from a namespace",
        "externalDocs": {
          "description": "Export documentation",
          "url": "https://docs.temporal.io/cloud/export"
        },
        "operationId": "DeleteNamespaceExportSink",
        "parameters": [
          {
            "name": "namespace",
            "in": "path",
            "description": "The namespace to which the sink belongs.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "name",
            "in": "path",
            "description": "The name of the sink to delete.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resourceVersion",
            "in": "query",
            "description": "The version of the sink to delete. The latest version can be\nretrieved using the GetNamespaceExportSink call.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "asyncOperationId",
            "in": "query",
            "description": "The ID to use for this async operation - optional.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1DeleteNamespaceExportSinkResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      }
    },
    "/cloud/namespaces/{namespace}/export-sinks/{spec.name}": {
      "post": {
        "tags": [
          "Export"
        ],
        "summary": "Update history export sink",
        "description": "Updates an existing workflow history export sink's configuration",
        "externalDocs": {
          "description": "Export documentation",
          "url": "https://docs.temporal.io/cloud/export"
        },
        "operationId": "UpdateNamespaceExportSink",
        "parameters": [
          {
            "name": "namespace",
            "in": "path",
            "description": "The namespace to which the sink belongs.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "spec.name",
            "in": "path",
            "description": "The unique name of the export sink, it can't be changed once set.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CloudServiceUpdateNamespaceExportSinkBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1UpdateNamespaceExportSinkResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/cloud/namespaces/{namespace}/failover-region": {
      "post": {
        "tags": [
          "High Availability"
        ],
        "summary": "Failover namespace region",
        "description": "Initiates a regional failover for a high availability namespace",
        "externalDocs": {
          "description": "High availability namespace documentation",
          "url": "https://docs.temporal.io/cloud/high-availability"
        },
        "operationId": "FailoverNamespaceRegion",
        "parameters": [
          {
            "name": "namespace",
            "in": "path",
            "description": "The namespace to failover.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CloudServiceFailoverNamespaceRegionBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1FailoverNamespaceRegionResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/cloud/namespaces/{namespace}/move-to-project": {
      "post": {
        "tags": [
          "Projects"
        ],
        "summary": "Move a namespace to a project",
        "description": "Moves a namespace to a different project within the same account.",
        "operationId": "MoveNamespaceToProject",
        "parameters": [
          {
            "name": "namespace",
            "in": "path",
            "description": "The namespace to move.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CloudServiceMoveNamespaceToProjectBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1MoveNamespaceToProjectResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/cloud/namespaces/{namespace}/regions/{region}": {
      "delete": {
        "tags": [
          "High Availability"
        ],
        "summary": "Remove namespace replica",
        "description": "Removes a replica from a high availability namespace",
        "externalDocs": {
          "description": "High availability namespace documentation",
          "url": "https://docs.temporal.io/cloud/high-availability"
        },
        "operationId": "DeleteNamespaceRegion",
        "parameters": [
          {
            "name": "namespace",
            "in": "path",
            "description": "The namespace to delete a region.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "region",
            "in": "path",
            "description": "The id of the standby region to be deleted.\nThe GetRegions API can be used to get the list of valid region ids.\nExample: \"aws-us-west-2\".",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resourceVersion",
            "in": "query",
            "description": "The version of the namespace for which this delete region operation is intended for.\nThe latest version can be found in the GetNamespace operation response.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "asyncOperationId",
            "in": "query",
            "description": "The id to use for this async operation - optional.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1DeleteNamespaceRegionResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      }
    },
    "/cloud/namespaces/{namespace}/rename-custom-search-attribute": {
      "post": {
        "tags": [
          "Namespaces"
        ],
        "summary": "Rename custom search attribute",
        "description": "Renames a custom search attribute in a namespace",
        "externalDocs": {
          "description": "Custom Search Attributes documentation",
          "url": "https://docs.temporal.io/search-attribute#custom-search-attribute"
        },
        "operationId": "RenameCustomSearchAttribute",
        "parameters": [
          {
            "name": "namespace",
            "in": "path",
            "description": "The namespace to rename the custom search attribute for.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CloudServiceRenameCustomSearchAttributeBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1RenameCustomSearchAttributeResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/cloud/namespaces/{namespace}/service-account-assignments": {
      "get": {
        "tags": [
          "Service Accounts"
        ],
        "summary": "List service accounts with access to a namespace",
        "description": "Returns the service accounts that have access to the namespace, including each service account's namespace-level access.",
        "externalDocs": {
          "description": "Service Accounts documentation",
          "url": "https://docs.temporal.io/cloud/service-accounts"
        },
        "operationId": "GetServiceAccountNamespaceAssignments",
        "parameters": [
          {
            "name": "namespace",
            "in": "path",
            "description": "The namespace to get service accounts for.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "The requested size of the page to retrieve - optional.\nCannot exceed 1000. Defaults to 100.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageToken",
            "in": "query",
            "description": "The page token if this is continuing from another response - optional.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetServiceAccountNamespaceAssignmentsResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      }
    },
    "/cloud/namespaces/{namespace}/service-accounts/{serviceAccountId}/access": {
      "post": {
        "tags": [
          "Service Accounts"
        ],
        "summary": "Set service account namespace access",
        "description": "Configures a service account's permissions for a specific namespace",
        "externalDocs": {
          "description": "Service Accounts documentation",
          "url": "https://docs.temporal.io/cloud/service-accounts"
        },
        "operationId": "SetServiceAccountNamespaceAccess",
        "parameters": [
          {
            "name": "namespace",
            "in": "path",
            "description": "The namespace to set permissions for.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "serviceAccountId",
            "in": "path",
            "description": "The ID of the service account to update.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CloudServiceSetServiceAccountNamespaceAccessBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1SetServiceAccountNamespaceAccessResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/cloud/namespaces/{namespace}/update-tags": {
      "post": {
        "tags": [
          "Namespaces"
        ],
        "summary": "Update namespace tags",
        "description": "Updates the tags associated with a namespace",
        "externalDocs": {
          "description": "Namespace tag documentation",
          "url": "https://docs.temporal.io/cloud/namespaces#tag-a-namespace"
        },
        "operationId": "UpdateNamespaceTags",
        "parameters": [
          {
            "name": "namespace",
            "in": "path",
            "description": "The namespace to set tags for.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CloudServiceUpdateNamespaceTagsBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1UpdateNamespaceTagsResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/cloud/namespaces/{namespace}/user-assignments": {
      "get": {
        "tags": [
          "Users"
        ],
        "summary": "Get users with access to a namespace",
        "description": "Returns the users that have access to the namespace, including each user's namespace-level access.",
        "externalDocs": {
          "description": "Users documentation",
          "url": "https://docs.temporal.io/cloud/users"
        },
        "operationId": "GetUserNamespaceAssignments",
        "parameters": [
          {
            "name": "namespace",
            "in": "path",
            "description": "The namespace to get users for.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "The requested size of the page to retrieve - optional.\nCannot exceed 1000. Defaults to 100.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageToken",
            "in": "query",
            "description": "The page token if this is continuing from another response - optional.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetUserNamespaceAssignmentsResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      }
    },
    "/cloud/namespaces/{namespace}/user-group-assignments": {
      "get": {
        "tags": [
          "Groups"
        ],
        "summary": "List user groups with access to a namespace",
        "description": "Returns the user groups that have access to the namespace, including each group's namespace-level access.",
        "externalDocs": {
          "description": "User groups documentation",
          "url": "https://docs.temporal.io/cloud/user-groups"
        },
        "operationId": "GetUserGroupNamespaceAssignments",
        "parameters": [
          {
            "name": "namespace",
            "in": "path",
            "description": "The namespace to get user groups for.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "The requested size of the page to retrieve - optional.\nCannot exceed 1000. Defaults to 100.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageToken",
            "in": "query",
            "description": "The page token if this is continuing from another response - optional.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetUserGroupNamespaceAssignmentsResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      }
    },
    "/cloud/namespaces/{namespace}/user-groups/{groupId}/access": {
      "post": {
        "tags": [
          "Groups"
        ],
        "summary": "Set user group namespace access",
        "description": "Configures a user group's permissions for a specific namespace",
        "externalDocs": {
          "description": "User groups documentation",
          "url": "https://docs.temporal.io/cloud/user-groups"
        },
        "operationId": "SetUserGroupNamespaceAccess",
        "parameters": [
          {
            "name": "namespace",
            "in": "path",
            "description": "The namespace to set permissions for.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "groupId",
            "in": "path",
            "description": "The id of the group to set permissions for.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CloudServiceSetUserGroupNamespaceAccessBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1SetUserGroupNamespaceAccessResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/cloud/namespaces/{namespace}/users/{userId}/access": {
      "post": {
        "tags": [
          "Users"
        ],
        "summary": "Set user namespace access",
        "description": "Configures a user's permissions for a specific namespace",
        "externalDocs": {
          "description": "Namespace permissions documentation",
          "url": "https://docs.temporal.io/cloud/users-namespace-level-permissions"
        },
        "operationId": "SetUserNamespaceAccess",
        "parameters": [
          {
            "name": "namespace",
            "in": "path",
            "description": "The namespace to set permissions for",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "userId",
            "in": "path",
            "description": "The id of the user to set permissions for",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CloudServiceSetUserNamespaceAccessBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1SetUserNamespaceAccessResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/cloud/nexus/endpoints": {
      "get": {
        "tags": [
          "Nexus"
        ],
        "summary": "List all Nexus endpoints",
        "description": "Returns a list of all Nexus endpoints in the account",
        "externalDocs": {
          "description": "Nexus documentation",
          "url": "https://docs.temporal.io/nexus"
        },
        "operationId": "GetNexusEndpoints",
        "parameters": [
          {
            "name": "pageSize",
            "in": "query",
            "description": "The requested size of the page to retrieve - optional.\nCannot exceed 1000. Defaults to 100.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageToken",
            "in": "query",
            "description": "The page token if this is continuing from another response - optional.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "targetNamespaceId",
            "in": "query",
            "description": "optional, treated as an AND if specified",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "targetTaskQueue",
            "in": "query",
            "description": "optional, treated as an AND if specified",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "name",
            "in": "query",
            "description": "Filter endpoints by their name - optional, treated as an AND if specified. Specifying this will result in zero or one results.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "projectId",
            "in": "query",
            "description": "Filter endpoints by their project id - optional.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetNexusEndpointsResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Nexus"
        ],
        "summary": "Create a Nexus endpoint",
        "description": "Creates a new Nexus endpoint for cross-namespace communication",
        "externalDocs": {
          "description": "Nexus documentation",
          "url": "https://docs.temporal.io/nexus"
        },
        "operationId": "CreateNexusEndpoint",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/v1CreateNexusEndpointRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1CreateNexusEndpointResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/cloud/nexus/endpoints/{endpointId}": {
      "get": {
        "tags": [
          "Nexus"
        ],
        "summary": "Get Nexus endpoint details",
        "description": "Returns detailed information about a specific Nexus endpoint",
        "externalDocs": {
          "description": "Nexus documentation",
          "url": "https://docs.temporal.io/nexus"
        },
        "operationId": "GetNexusEndpoint",
        "parameters": [
          {
            "name": "endpointId",
            "in": "path",
            "description": "The id of the nexus endpoint to get.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetNexusEndpointResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Nexus"
        ],
        "summary": "Update a Nexus endpoint",
        "description": "Updates an existing Nexus endpoint's configuration",
        "externalDocs": {
          "description": "Nexus documentation",
          "url": "https://docs.temporal.io/nexus"
        },
        "operationId": "UpdateNexusEndpoint",
        "parameters": [
          {
            "name": "endpointId",
            "in": "path",
            "description": "The id of the nexus endpoint to update.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CloudServiceUpdateNexusEndpointBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1UpdateNexusEndpointResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      },
      "delete": {
        "tags": [
          "Nexus"
        ],
        "summary": "Delete a Nexus endpoint",
        "description": "Removes a Nexus endpoint from the account",
        "externalDocs": {
          "description": "Nexus documentation",
          "url": "https://docs.temporal.io/nexus"
        },
        "operationId": "DeleteNexusEndpoint",
        "parameters": [
          {
            "name": "endpointId",
            "in": "path",
            "description": "The id of the nexus endpoint to delete.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resourceVersion",
            "in": "query",
            "description": "The version of the endpoint for which this delete is intended for.\nThe latest version can be found in the GetNexusEndpoint operation response.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "asyncOperationId",
            "in": "query",
            "description": "The id to use for this async operation - optional.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1DeleteNexusEndpointResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      }
    },
    "/cloud/nexus/endpoints/{endpointId}/move-to-project": {
      "post": {
        "tags": [
          "Projects"
        ],
        "summary": "Move a Nexus endpoint to a project",
        "description": "Moves a Nexus endpoint to a different project within the same account.",
        "operationId": "MoveNexusEndpointToProject",
        "parameters": [
          {
            "name": "endpointId",
            "in": "path",
            "description": "The id of the nexus endpoint to move.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CloudServiceMoveNexusEndpointToProjectBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1MoveNexusEndpointToProjectResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/cloud/operations/{asyncOperationId}": {
      "get": {
        "tags": [
          "Operations"
        ],
        "summary": "Get async operation status",
        "description": "Returns the current status and details of an asynchronous operation",
        "operationId": "GetAsyncOperation",
        "parameters": [
          {
            "name": "asyncOperationId",
            "in": "path",
            "description": "The id of the async operation to get",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetAsyncOperationResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      }
    },
    "/cloud/projects": {
      "get": {
        "tags": [
          "Projects"
        ],
        "summary": "List all projects",
        "description": "Returns a list of all projects in the account.",
        "operationId": "GetProjects",
        "parameters": [
          {
            "name": "pageSize",
            "in": "query",
            "description": "The requested size of the page to retrieve - optional.\nCannot exceed 1000. Defaults to 100.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageToken",
            "in": "query",
            "description": "The page token if this is continuing from another response - optional.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "projectIds",
            "in": "query",
            "description": "Filter by project IDs - optional.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetProjectsResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Projects"
        ],
        "summary": "Create a project",
        "description": "Creates a new project.",
        "operationId": "CreateProject",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/v1CreateProjectRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1CreateProjectResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/cloud/projects/{projectId}": {
      "get": {
        "tags": [
          "Projects"
        ],
        "summary": "Get a project",
        "description": "Returns the project with the given id.",
        "operationId": "GetProject",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "description": "The id of the project to get",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetProjectResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Projects"
        ],
        "summary": "Update a project",
        "description": "Updates the configuration of an existing project.",
        "operationId": "UpdateProject",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "description": "The id of the project to update.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CloudServiceUpdateProjectBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1UpdateProjectResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      },
      "delete": {
        "tags": [
          "Projects"
        ],
        "summary": "Delete a project",
        "description": "Deletes an existing project.",
        "operationId": "DeleteProject",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "description": "The id of the project to delete.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resourceVersion",
            "in": "query",
            "description": "The version of the project for which this delete is intended for.\nThe latest version can be found in the GetProject operation response.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "asyncOperationId",
            "in": "query",
            "description": "The id to use for this async operation.\nOptional, if not provided a random id will be generated.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1DeleteProjectResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      }
    },
    "/cloud/projects/{projectId}/service-account-assignments": {
      "get": {
        "tags": [
          "Projects"
        ],
        "summary": "List service accounts with access to a project",
        "description": "Returns the service accounts that have access to the project, including each service account's project-level access.",
        "operationId": "GetServiceAccountProjectAssignments",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "description": "The id of the project to get service accounts for.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "The requested size of the page to retrieve - optional.\nCannot exceed 1000. Defaults to 100.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageToken",
            "in": "query",
            "description": "The page token if this is continuing from another response - optional.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetServiceAccountProjectAssignmentsResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      }
    },
    "/cloud/projects/{projectId}/service-accounts": {
      "get": {
        "tags": [
          "Projects"
        ],
        "summary": "List project-scoped service accounts",
        "description": "Returns the service accounts that are scoped to the project.",
        "operationId": "GetProjectScopedServiceAccounts",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "description": "The project to list project scoped service accounts for.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "The requested size of the page to retrieve - optional.\nCannot exceed 1000. Defaults to 100.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageToken",
            "in": "query",
            "description": "The page token if this is continuing from another response - optional.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetProjectScopedServiceAccountsResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      }
    },
    "/cloud/projects/{projectId}/service-accounts/{serviceAccountId}/access": {
      "post": {
        "tags": [
          "Projects"
        ],
        "summary": "Set service account project access",
        "description": "Sets or removes a service account's access to a project.",
        "operationId": "SetServiceAccountProjectAccess",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "description": "The project to set permissions for.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "serviceAccountId",
            "in": "path",
            "description": "The id of the service account to set permissions for.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CloudServiceSetServiceAccountProjectAccessBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1SetServiceAccountProjectAccessResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/cloud/projects/{projectId}/user-assignments": {
      "get": {
        "tags": [
          "Projects"
        ],
        "summary": "List users with access to a project",
        "description": "Returns the users that have access to the project, including each user's project-level access.",
        "operationId": "GetUserProjectAssignments",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "description": "The id of the project to get users for.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "The requested size of the page to retrieve - optional.\nCannot exceed 1000. Defaults to 100.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageToken",
            "in": "query",
            "description": "The page token if this is continuing from another response - optional.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetUserProjectAssignmentsResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      }
    },
    "/cloud/projects/{projectId}/user-group-assignments": {
      "get": {
        "tags": [
          "Projects"
        ],
        "summary": "List user groups with access to a project",
        "description": "Returns the user groups that have access to the project, including each group's project-level access.",
        "operationId": "GetUserGroupProjectAssignments",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "description": "The id of the project to get user groups for.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "The requested size of the page to retrieve - optional.\nCannot exceed 1000. Defaults to 100.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageToken",
            "in": "query",
            "description": "The page token if this is continuing from another response - optional.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetUserGroupProjectAssignmentsResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      }
    },
    "/cloud/projects/{projectId}/user-groups/{groupId}/access": {
      "post": {
        "tags": [
          "Projects"
        ],
        "summary": "Set user group project access",
        "description": "Sets or removes a user group's access to a project.",
        "operationId": "SetUserGroupProjectAccess",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "description": "The project to set permissions for.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "groupId",
            "in": "path",
            "description": "The id of the group to set permissions for.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CloudServiceSetUserGroupProjectAccessBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1SetUserGroupProjectAccessResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/cloud/projects/{projectId}/users/{userId}/access": {
      "post": {
        "tags": [
          "Projects"
        ],
        "summary": "Set user project access",
        "description": "Sets or removes a user's access to a project.",
        "operationId": "SetUserProjectAccess",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "description": "The project to set permissions for.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "userId",
            "in": "path",
            "description": "The id of the user to set permissions for.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CloudServiceSetUserProjectAccessBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1SetUserProjectAccessResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/cloud/regions": {
      "get": {
        "tags": [
          "Regions"
        ],
        "summary": "List all regions",
        "description": "Returns a list of all available cloud regions",
        "externalDocs": {
          "description": "Regions documentation",
          "url": "https://docs.temporal.io/cloud/regions"
        },
        "operationId": "GetRegions",
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetRegionsResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      }
    },
    "/cloud/regions/{region}": {
      "get": {
        "tags": [
          "Regions"
        ],
        "summary": "Get region details",
        "description": "Returns detailed information about a specific region",
        "externalDocs": {
          "description": "Regions documentation",
          "url": "https://docs.temporal.io/cloud/regions"
        },
        "operationId": "GetRegion",
        "parameters": [
          {
            "name": "region",
            "in": "path",
            "description": "The id of the region to get.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetRegionResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      }
    },
    "/cloud/service-accounts": {
      "get": {
        "tags": [
          "Service Accounts"
        ],
        "summary": "List all service accounts",
        "description": "Returns a list of all service accounts in the account",
        "externalDocs": {
          "description": "Service Accounts documentation",
          "url": "https://docs.temporal.io/cloud/service-accounts"
        },
        "operationId": "GetServiceAccounts",
        "parameters": [
          {
            "name": "pageSize",
            "in": "query",
            "description": "The requested size of the page to retrieve - optional.\nCannot exceed 1000. Defaults to 100.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageToken",
            "in": "query",
            "description": "The page token if this is continuing from another response - optional.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetServiceAccountsResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Service Accounts"
        ],
        "summary": "Create a service account",
        "description": "Creates a new service account for automated access",
        "externalDocs": {
          "description": "Service Accounts documentation",
          "url": "https://docs.temporal.io/cloud/service-accounts"
        },
        "operationId": "CreateServiceAccount",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/v1CreateServiceAccountRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1CreateServiceAccountResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/cloud/service-accounts/{serviceAccountId}": {
      "get": {
        "tags": [
          "Service Accounts"
        ],
        "summary": "Get service account details",
        "description": "Returns detailed information about a specific service account",
        "externalDocs": {
          "description": "Service Accounts documentation",
          "url": "https://docs.temporal.io/cloud/service-accounts"
        },
        "operationId": "GetServiceAccount",
        "parameters": [
          {
            "name": "serviceAccountId",
            "in": "path",
            "description": "ID of the service account to retrieve.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetServiceAccountResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Service Accounts"
        ],
        "summary": "Update a service account",
        "description": "Updates an existing service account's properties",
        "externalDocs": {
          "description": "Service Accounts documentation",
          "url": "https://docs.temporal.io/cloud/service-accounts"
        },
        "operationId": "UpdateServiceAccount",
        "parameters": [
          {
            "name": "serviceAccountId",
            "in": "path",
            "description": "The ID of the service account to update.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CloudServiceUpdateServiceAccountBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1UpdateServiceAccountResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      },
      "delete": {
        "tags": [
          "Service Accounts"
        ],
        "summary": "Delete a service account",
        "description": "Removes a service account from the account",
        "externalDocs": {
          "description": "Service Accounts documentation",
          "url": "https://docs.temporal.io/cloud/service-accounts"
        },
        "operationId": "DeleteServiceAccount",
        "parameters": [
          {
            "name": "serviceAccountId",
            "in": "path",
            "description": "The ID of the service account to delete;",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resourceVersion",
            "in": "query",
            "description": "The version of the service account for which this update is intended for.\nThe latest version can be found in the GetServiceAccount response.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "asyncOperationId",
            "in": "query",
            "description": "The ID to use for this async operation - optional.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1DeleteServiceAccountResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      }
    },
    "/cloud/user-groups": {
      "get": {
        "tags": [
          "Groups"
        ],
        "summary": "List all user groups",
        "description": "Returns a list of all user groups in the account",
        "externalDocs": {
          "description": "User groups documentation",
          "url": "https://docs.temporal.io/cloud/users-account-level-roles"
        },
        "operationId": "GetUserGroups",
        "parameters": [
          {
            "name": "pageSize",
            "in": "query",
            "description": "The requested size of the page to retrieve - optional.\nCannot exceed 1000. Defaults to 100.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageToken",
            "in": "query",
            "description": "The page token if this is continuing from another response - optional.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "namespace",
            "in": "query",
            "description": "Filter groups by the namespace they have access to - optional.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "displayName",
            "in": "query",
            "description": "Filter groups by the display name - optional.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "googleGroup.emailAddress",
            "in": "query",
            "description": "Filter groups by the google group email - optional.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "scimGroup.idpId",
            "in": "query",
            "description": "Filter groups by the SCIM IDP id - optional.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetUserGroupsResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Groups"
        ],
        "summary": "Create a user group",
        "description": "Creates a new user group for managing permissions",
        "externalDocs": {
          "description": "User groups documentation",
          "url": "https://docs.temporal.io/cloud/user-groups"
        },
        "operationId": "CreateUserGroup",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/v1CreateUserGroupRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1CreateUserGroupResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/cloud/user-groups/{groupId}": {
      "get": {
        "tags": [
          "Groups"
        ],
        "summary": "Get user group details",
        "description": "Returns detailed information about a specific user group",
        "externalDocs": {
          "description": "User groups documentation",
          "url": "https://docs.temporal.io/cloud/user-groups"
        },
        "operationId": "GetUserGroup",
        "parameters": [
          {
            "name": "groupId",
            "in": "path",
            "description": "The id of the group to get.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetUserGroupResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Groups"
        ],
        "summary": "Update a user group",
        "description": "Updates an existing user group's properties",
        "externalDocs": {
          "description": "User groups documentation",
          "url": "https://docs.temporal.io/cloud/user-groups"
        },
        "operationId": "UpdateUserGroup",
        "parameters": [
          {
            "name": "groupId",
            "in": "path",
            "description": "The id of the group to update.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CloudServiceUpdateUserGroupBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1UpdateUserGroupResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      },
      "delete": {
        "tags": [
          "Groups"
        ],
        "summary": "Delete a user group",
        "description": "Removes a user group from the account",
        "externalDocs": {
          "description": "User groups documentation",
          "url": "https://docs.temporal.io/cloud/user-groups"
        },
        "operationId": "DeleteUserGroup",
        "parameters": [
          {
            "name": "groupId",
            "in": "path",
            "description": "The id of the group to delete.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resourceVersion",
            "in": "query",
            "description": "The version of the group for which this delete is intended for.\nThe latest version can be found in the GetGroup operation response.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "asyncOperationId",
            "in": "query",
            "description": "The id to use for this async operation.\nOptional, if not provided a random id will be generated.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1DeleteUserGroupResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      }
    },
    "/cloud/user-groups/{groupId}/members": {
      "get": {
        "tags": [
          "Groups"
        ],
        "summary": "List users in a group",
        "description": "Returns a list of all users in a user group",
        "externalDocs": {
          "description": "User groups documentation",
          "url": "https://docs.temporal.io/cloud/user-groups"
        },
        "operationId": "GetUserGroupMembers",
        "parameters": [
          {
            "name": "groupId",
            "in": "path",
            "description": "The group id to list members of.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "The requested size of the page to retrieve - optional.\nCannot exceed 1000. Defaults to 100.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageToken",
            "in": "query",
            "description": "The page token if this is continuing from another response - optional.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetUserGroupMembersResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Groups"
        ],
        "summary": "Add user to group",
        "description": "Adds a user to a user group (Cloud groups only)",
        "externalDocs": {
          "description": "User groups documentation",
          "url": "https://docs.temporal.io/cloud/user-groups"
        },
        "operationId": "AddUserGroupMember",
        "parameters": [
          {
            "name": "groupId",
            "in": "path",
            "description": "The id of the group to add the member for.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CloudServiceAddUserGroupMemberBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1AddUserGroupMemberResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/cloud/user-groups/{groupId}/remove-member": {
      "post": {
        "tags": [
          "Groups"
        ],
        "summary": "Remove user from group",
        "description": "Removes a user from a user group (Cloud groups only)",
        "externalDocs": {
          "description": "User groups documentation",
          "url": "https://docs.temporal.io/cloud/user-groups"
        },
        "operationId": "RemoveUserGroupMember",
        "parameters": [
          {
            "name": "groupId",
            "in": "path",
            "description": "The id of the group to add the member for.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CloudServiceRemoveUserGroupMemberBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1RemoveUserGroupMemberResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/cloud/users": {
      "get": {
        "tags": [
          "Users"
        ],
        "summary": "List all users",
        "description": "Returns a list of all users in the account",
        "externalDocs": {
          "description": "User management documentation",
          "url": "https://docs.temporal.io/cloud/users"
        },
        "operationId": "listUsers",
        "parameters": [
          {
            "name": "pageSize",
            "in": "query",
            "description": "The requested size of the page to retrieve - optional.\nCannot exceed 1000. Defaults to 100.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageToken",
            "in": "query",
            "description": "The page token if this is continuing from another response - optional.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "email",
            "in": "query",
            "description": "Filter users by email address - optional.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "namespace",
            "in": "query",
            "description": "Filter users by the namespace they have access to - optional.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "includeGroupMemberships",
            "in": "query",
            "description": "Whether to include each user's group memberships in the response - optional.\nDefaults to false.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetUsersResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Users"
        ],
        "summary": "Create a user",
        "description": "Creates a new user in the account",
        "operationId": "CreateUser",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/v1CreateUserRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1CreateUserResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/cloud/users/{userId}": {
      "get": {
        "tags": [
          "Users"
        ],
        "summary": "Get user by ID",
        "description": "Takes a user ID, returns user details",
        "externalDocs": {
          "description": "User management documentation",
          "url": "https://docs.temporal.io/cloud/users"
        },
        "operationId": "GetUser",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "description": "The id of the user to get",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "includeGroupMemberships",
            "in": "query",
            "description": "Whether to include the user's group memberships in the response - optional.\nDefaults to false.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetUserResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Users"
        ],
        "summary": "Update a user",
        "description": "Updates an existing user's details",
        "operationId": "UpdateUser",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "description": "The id of the user to update",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CloudServiceUpdateUserBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1UpdateUserResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      },
      "delete": {
        "tags": [
          "Users"
        ],
        "summary": "Delete a user",
        "description": "Removes a user from the account",
        "operationId": "DeleteUser",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "description": "The id of the user to delete",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "resourceVersion",
            "in": "query",
            "description": "The version of the user for which this delete is intended for\nThe latest version can be found in the GetUser operation response",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "asyncOperationId",
            "in": "query",
            "description": "The id to use for this async operation - optional",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1DeleteUserResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/rpcStatus"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AccountAccessRole": {
        "type": "string",
        "description": " - ROLE_OWNER: Gives full access to the account, including users, namespaces, and billing.\n - ROLE_ADMIN: Gives full access to the account, including users and namespaces.\n - ROLE_DEVELOPER: Gives access to create namespaces on the account.\n - ROLE_FINANCE_ADMIN: Gives read only access and write access for billing.\n - ROLE_READ: Gives read only access to the account.\n - ROLE_METRICS_READ: Gives read only access to the account metrics.",
        "default": "ROLE_UNSPECIFIED",
        "enum": [
          "ROLE_UNSPECIFIED",
          "ROLE_OWNER",
          "ROLE_ADMIN",
          "ROLE_DEVELOPER",
          "ROLE_FINANCE_ADMIN",
          "ROLE_READ",
          "ROLE_METRICS_READ"
        ]
      },
      "BillingReportBillingReportState": {
        "type": "string",
        "default": "BILLING_REPORT_STATE_UNSPECIFIED",
        "enum": [
          "BILLING_REPORT_STATE_UNSPECIFIED",
          "BILLING_REPORT_STATE_IN_PROGRESS",
          "BILLING_REPORT_STATE_GENERATED",
          "BILLING_REPORT_STATE_FAILED"
        ]
      },
      "BillingReportDownload": {
        "type": "object",
        "properties": {
          "fileFormat": {
            "$ref": "#/components/schemas/DownloadFileFormat"
          },
          "fileSizeBytes": {
            "type": "string",
            "description": "The size of the file in bytes. Useful for pre-allocating space, progress indicators, etc.",
            "format": "int64"
          },
          "url": {
            "type": "string",
            "description": "The download url."
          },
          "urlExpirationTime": {
            "type": "string",
            "description": "The time when the download url will expire.",
            "format": "date-time"
          }
        }
      },
      "BillingReportSpecBillingReportGranularity": {
        "type": "string",
        "default": "BILLING_REPORT_GRANULARITY_UNSPECIFIED",
        "enum": [
          "BILLING_REPORT_GRANULARITY_UNSPECIFIED",
          "BILLING_REPORT_GRANULARITY_HOURLY",
          "BILLING_REPORT_GRANULARITY_DAILY",
          "BILLING_REPORT_GRANULARITY_MONTHLY"
        ]
      },
      "CapacityRequest": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "The id of the async operation that is creating/updating/deleting the capacity, if any."
          },
          "endTime": {
            "type": "string",
            "description": "The date and time when the capacity request was completed or failed.",
            "format": "date-time"
          },
          "spec": {
            "$ref": "#/components/schemas/v1CapacitySpec"
          },
          "startTime": {
            "type": "string",
            "description": "The date and time when the capacity request was created.",
            "format": "date-time"
          },
          "state": {
            "$ref": "#/components/schemas/CapacityRequestState"
          }
        }
      },
      "CapacityRequestState": {
        "type": "string",
        "default": "STATE_CAPACITY_REQUEST_UNSPECIFIED",
        "enum": [
          "STATE_CAPACITY_REQUEST_UNSPECIFIED",
          "STATE_CAPACITY_REQUEST_COMPLETED",
          "STATE_CAPACITY_REQUEST_IN_PROGRESS",
          "STATE_CAPACITY_REQUEST_FAILED"
        ]
      },
      "CloudServiceAddNamespaceRegionBody": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "The id to use for this async operation - optional."
          },
          "region": {
            "type": "string",
            "description": "The id of the standby region to add to the namespace.\nThe GetRegions API can be used to get the list of valid region ids.\nExample: \"aws-us-west-2\"."
          },
          "resourceVersion": {
            "type": "string",
            "description": "The version of the namespace for which this add region operation is intended for.\nThe latest version can be found in the GetNamespace operation response."
          }
        }
      },
      "CloudServiceAddUserGroupMemberBody": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "The id to use for this async operation.\nOptional, if not provided a random id will be generated."
          },
          "memberId": {
            "$ref": "#/components/schemas/v1UserGroupMemberId"
          }
        }
      },
      "CloudServiceCreateCallerRateLimitBody": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "The id to use for this async operation.\nOptional, if not provided a random id will be generated."
          },
          "spec": {
            "$ref": "#/components/schemas/v1CallerRateLimitSpec"
          }
        }
      },
      "CloudServiceCreateNamespaceExportSinkBody": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "Optional. The ID to use for this async operation."
          },
          "spec": {
            "$ref": "#/components/schemas/v1ExportSinkSpec"
          }
        }
      },
      "CloudServiceFailoverNamespaceRegionBody": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "The id to use for this async operation - optional."
          },
          "region": {
            "type": "string",
            "description": "The id of the region to failover to.\nMust be a region that the namespace is currently available in."
          }
        }
      },
      "CloudServiceMoveNamespaceToProjectBody": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "The id to use for this async operation.\nOptional, if not provided a random id will be generated."
          },
          "destinationProjectId": {
            "type": "string",
            "description": "The project to move the namespace to."
          },
          "expectedSourceProjectId": {
            "type": "string",
            "description": "The project the caller expects the namespace to currently belong to."
          },
          "resourceVersion": {
            "type": "string",
            "description": "The version of the namespace for which this move is intended for.\nThe latest version can be found in the GetNamespace operation response."
          },
          "ruleIds": {
            "$ref": "#/components/schemas/v1ConnectivityRuleIDs"
          },
          "unrestricted": {
            "$ref": "#/components/schemas/v1NoConnectivityRules"
          }
        }
      },
      "CloudServiceMoveNexusEndpointToProjectBody": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "The id to use for this async operation - optional."
          },
          "destinationProjectId": {
            "type": "string",
            "description": "The id of the project to move the endpoint to."
          },
          "expectedSourceProjectId": {
            "type": "string",
            "description": "The id of the project the caller expects the endpoint to currently belong to."
          },
          "resourceVersion": {
            "type": "string",
            "description": "The version of the endpoint for which this move is intended for.\nThe latest version can be found in the GetNexusEndpoint operation response."
          }
        }
      },
      "CloudServiceRemoveUserGroupMemberBody": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "The id to use for this async operation.\nOptional, if not provided a random id will be generated."
          },
          "memberId": {
            "$ref": "#/components/schemas/v1UserGroupMemberId"
          }
        }
      },
      "CloudServiceRenameCustomSearchAttributeBody": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "The id to use for this async operation.\nOptional, if not provided a random id will be generated."
          },
          "existingCustomSearchAttributeName": {
            "type": "string",
            "description": "The existing name of the custom search attribute to be renamed."
          },
          "newCustomSearchAttributeName": {
            "type": "string",
            "description": "The new name of the custom search attribute."
          },
          "resourceVersion": {
            "type": "string",
            "description": "The version of the namespace for which this update is intended for.\nThe latest version can be found in the namespace status."
          }
        }
      },
      "CloudServiceSetServiceAccountNamespaceAccessBody": {
        "type": "object",
        "properties": {
          "access": {
            "$ref": "#/components/schemas/v1NamespaceAccess"
          },
          "asyncOperationId": {
            "type": "string",
            "description": "The ID to use for this async operation - optional."
          },
          "resourceVersion": {
            "type": "string",
            "description": "The version of the service account for which this update is intended for.\nThe latest version can be found in the GetServiceAccount response."
          }
        }
      },
      "CloudServiceSetServiceAccountProjectAccessBody": {
        "type": "object",
        "properties": {
          "access": {
            "$ref": "#/components/schemas/v1ProjectAccess"
          },
          "asyncOperationId": {
            "type": "string",
            "description": "The id to use for this async operation - optional."
          },
          "resourceVersion": {
            "type": "string",
            "description": "The version of the service account for which this update is intended for.\nThe latest version can be found in the GetServiceAccount operation response."
          }
        }
      },
      "CloudServiceSetUserGroupNamespaceAccessBody": {
        "type": "object",
        "properties": {
          "access": {
            "$ref": "#/components/schemas/v1NamespaceAccess"
          },
          "asyncOperationId": {
            "type": "string",
            "description": "The id to use for this async operation - optional."
          },
          "resourceVersion": {
            "type": "string",
            "description": "The version of the group for which this update is intended for.\nThe latest version can be found in the GetGroup operation response."
          }
        }
      },
      "CloudServiceSetUserGroupProjectAccessBody": {
        "type": "object",
        "properties": {
          "access": {
            "$ref": "#/components/schemas/v1ProjectAccess"
          },
          "asyncOperationId": {
            "type": "string",
            "description": "The id to use for this async operation - optional."
          },
          "resourceVersion": {
            "type": "string",
            "description": "The version of the group for which this update is intended for.\nThe latest version can be found in the GetGroup operation response."
          }
        }
      },
      "CloudServiceSetUserNamespaceAccessBody": {
        "type": "object",
        "properties": {
          "access": {
            "$ref": "#/components/schemas/v1NamespaceAccess"
          },
          "asyncOperationId": {
            "title": "The id to use for this async operation - optional",
            "type": "string"
          },
          "resourceVersion": {
            "title": "The version of the user for which this update is intended for\nThe latest version can be found in the GetUser operation response",
            "type": "string"
          }
        }
      },
      "CloudServiceSetUserProjectAccessBody": {
        "type": "object",
        "properties": {
          "access": {
            "$ref": "#/components/schemas/v1ProjectAccess"
          },
          "asyncOperationId": {
            "type": "string",
            "description": "The id to use for this async operation - optional."
          },
          "resourceVersion": {
            "type": "string",
            "description": "The version of the user for which this update is intended for.\nThe latest version can be found in the GetUser operation response."
          }
        }
      },
      "CloudServiceUpdateAccountAuditLogSinkBody": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "The ID to use for this async operation - optional."
          },
          "resourceVersion": {
            "type": "string",
            "description": "The version of the audit log sink to update. The latest version can be\nretrieved using the GetAuditLogSink call."
          },
          "spec": {
            "title": "The updated audit log sink specification.",
            "type": "object",
            "properties": {
              "enabled": {
                "type": "boolean",
                "description": "Enabled indicates whether the sink is enabled or not."
              },
              "kinesisSink": {
                "$ref": "#/components/schemas/v1KinesisSpec"
              },
              "pubSubSink": {
                "$ref": "#/components/schemas/v1PubSubSpec"
              }
            },
            "description": "The updated audit log sink specification."
          }
        }
      },
      "CloudServiceUpdateApiKeyBody": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "The id to use for this async operation - optional."
          },
          "resourceVersion": {
            "type": "string",
            "description": "The version of the api key for which this update is intended for.\nThe latest version can be found in the GetApiKey operation response."
          },
          "spec": {
            "$ref": "#/components/schemas/v1ApiKeySpec"
          }
        }
      },
      "CloudServiceUpdateCallerRateLimitBody": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "The id to use for this async operation.\nOptional, if not provided a random id will be generated."
          },
          "resourceVersion": {
            "type": "string",
            "description": "The version of the caller rate limit spec being updated.\nThe latest version can be found in the GetCallerRateLimit operation response.\nRequired."
          },
          "spec": {
            "$ref": "#/components/schemas/v1CallerRateLimitSpec"
          }
        }
      },
      "CloudServiceUpdateCustomRoleBody": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "The ID to use for this async operation.\nOptional, if not provided a random ID will be generated."
          },
          "resourceVersion": {
            "type": "string",
            "description": "The version of the custom role for which this update is intended.\nThe latest version can be found in the GetCustomRole operation response."
          },
          "spec": {
            "$ref": "#/components/schemas/v1CustomRoleSpec"
          }
        }
      },
      "CloudServiceUpdateNamespaceBody": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "The id to use for this async operation.\nOptional, if not provided a random id will be generated."
          },
          "resourceVersion": {
            "type": "string",
            "description": "The version of the namespace for which this update is intended for.\nThe latest version can be found in the namespace status."
          },
          "spec": {
            "$ref": "#/components/schemas/v1NamespaceSpec"
          }
        }
      },
      "CloudServiceUpdateNamespaceExportSinkBody": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "The ID to use for this async operation - optional."
          },
          "resourceVersion": {
            "type": "string",
            "description": "The version of the sink to update. The latest version can be\nretrieved using the GetNamespaceExportSink call."
          },
          "spec": {
            "title": "The updated export sink specification.",
            "type": "object",
            "properties": {
              "azureBlob": {
                "$ref": "#/components/schemas/v1AzureBlobSpec"
              },
              "enabled": {
                "type": "boolean",
                "description": "A flag indicating whether the export sink is enabled or not."
              },
              "filter": {
                "$ref": "#/components/schemas/ExportSinkSpecSinkFilter"
              },
              "gcs": {
                "$ref": "#/components/schemas/v1GCSSpec"
              },
              "s3": {
                "$ref": "#/components/schemas/v1S3Spec"
              }
            },
            "description": "The updated export sink specification."
          }
        }
      },
      "CloudServiceUpdateNamespaceTagsBody": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "The id to use for this async operation - optional."
          },
          "tagsToRemove": {
            "type": "array",
            "description": "A list of tag keys to remove.\nIf a tag key doesn't exist, it is silently ignored.\nAt least one of tags_to_upsert or tags_to_remove must be specified.",
            "items": {
              "type": "string"
            }
          },
          "tagsToUpsert": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "A list of tags to add or update.\nIf a key of an existing tag is added, the tag's value is updated.\nAt least one of tags_to_upsert or tags_to_remove must be specified."
          }
        }
      },
      "CloudServiceUpdateNexusEndpointBody": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "The id to use for this async operation - optional."
          },
          "resourceVersion": {
            "type": "string",
            "description": "The version of the nexus endpoint for which this update is intended for.\nThe latest version can be found in the GetNexusEndpoint operation response."
          },
          "spec": {
            "$ref": "#/components/schemas/v1EndpointSpec"
          }
        }
      },
      "CloudServiceUpdateProjectBody": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "The id to use for this async operation.\nOptional, if not provided a random id will be generated."
          },
          "resourceVersion": {
            "type": "string",
            "description": "The version of the project for which this update is intended for.\nThe latest version can be found in the GetProject operation response."
          },
          "spec": {
            "$ref": "#/components/schemas/v1ProjectSpec"
          }
        }
      },
      "CloudServiceUpdateServiceAccountBody": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "The ID to use for this async operation - optional."
          },
          "resourceVersion": {
            "type": "string",
            "description": "The version of the service account for which this update is intended for.\nThe latest version can be found in the GetServiceAccount response."
          },
          "spec": {
            "$ref": "#/components/schemas/v1ServiceAccountSpec"
          }
        }
      },
      "CloudServiceUpdateUserBody": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "title": "The id to use for this async operation - optional",
            "type": "string"
          },
          "resourceVersion": {
            "title": "The version of the user for which this update is intended for\nThe latest version can be found in the GetUser operation response",
            "type": "string"
          },
          "spec": {
            "$ref": "#/components/schemas/v1UserSpec"
          }
        }
      },
      "CloudServiceUpdateUserGroupBody": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "The id to use for this async operation.\nOptional, if not provided a random id will be generated."
          },
          "resourceVersion": {
            "type": "string",
            "description": "The version of the group for which this update is intended for.\nThe latest version can be found in the GetGroup operation response."
          },
          "spec": {
            "$ref": "#/components/schemas/v1UserGroupSpec"
          }
        }
      },
      "CloudServiceValidateNamespaceExportSinkBody": {
        "type": "object",
        "properties": {
          "spec": {
            "$ref": "#/components/schemas/v1ExportSinkSpec"
          }
        }
      },
      "CodecServerSpecCustomErrorMessage": {
        "type": "object",
        "properties": {
          "default": {
            "$ref": "#/components/schemas/CustomErrorMessageErrorMessage"
          }
        }
      },
      "CustomErrorMessageErrorMessage": {
        "type": "object",
        "properties": {
          "link": {
            "type": "string",
            "description": "A link that is displayed along side the configured message."
          },
          "message": {
            "type": "string",
            "description": "A message to display."
          }
        }
      },
      "CustomRoleSpecResources": {
        "type": "object",
        "properties": {
          "allowAll": {
            "type": "boolean",
            "description": "Whether the permission applies to all resources of the given type."
          },
          "resourceIds": {
            "type": "array",
            "description": "The resource IDs the permission applies to. Can be empty if allow_all is true.",
            "items": {
              "type": "string"
            }
          },
          "resourceType": {
            "type": "string",
            "description": "The resource type the permission applies to."
          }
        }
      },
      "DownloadFileFormat": {
        "type": "string",
        "default": "FILE_FORMAT_UNSPECIFIED",
        "enum": [
          "FILE_FORMAT_UNSPECIFIED",
          "FILE_FORMAT_CSV"
        ]
      },
      "EncryptionValidationSpecEncryptionValidationMode": {
        "type": "string",
        "description": " - ENCRYPTION_VALIDATION_MODE_DISABLED: Disables encryption validation.\n - ENCRYPTION_VALIDATION_MODE_WARN: Allows requests with unencrypted payloads, but emits warning metrics when validation fails.\n - ENCRYPTION_VALIDATION_MODE_DENY: Rejects requests with unencrypted payloads when validation fails.",
        "default": "ENCRYPTION_VALIDATION_MODE_UNSPECIFIED",
        "enum": [
          "ENCRYPTION_VALIDATION_MODE_UNSPECIFIED",
          "ENCRYPTION_VALIDATION_MODE_DISABLED",
          "ENCRYPTION_VALIDATION_MODE_WARN",
          "ENCRYPTION_VALIDATION_MODE_DENY"
        ]
      },
      "ExportSinkSpecSinkFilter": {
        "type": "object",
        "properties": {
          "disableStandaloneActivityExport": {
            "type": "boolean",
            "description": "Whether to disable export of standalone activity events."
          }
        }
      },
      "GetCallerRateLimitsRequestCallerFilter": {
        "type": "object",
        "properties": {
          "caller": {
            "type": "string",
            "description": "Optional, list the rate limit for a specific caller."
          },
          "callerType": {
            "type": "string",
            "description": "The type of caller to filter on.\nRequired when caller_filter is set. Accepted values are \"namespace\"."
          },
          "default": {
            "type": "boolean",
            "description": "Optional, list the default rate limit for the type."
          }
        }
      },
      "GetUserGroupsRequestGoogleGroupFilter": {
        "type": "object",
        "properties": {
          "emailAddress": {
            "type": "string",
            "description": "Filter groups by the google group email - optional."
          }
        }
      },
      "GetUserGroupsRequestSCIMGroupFilter": {
        "type": "object",
        "properties": {
          "idpId": {
            "type": "string",
            "description": "Filter groups by the SCIM IDP id - optional."
          }
        }
      },
      "NamespaceCapacityInfoCapacityModeOptions": {
        "type": "object",
        "properties": {
          "onDemand": {
            "$ref": "#/components/schemas/NamespaceCapacityInfoCapacityModeOptionsOnDemand"
          },
          "provisioned": {
            "$ref": "#/components/schemas/NamespaceCapacityInfoCapacityModeOptionsProvisioned"
          }
        }
      },
      "NamespaceCapacityInfoCapacityModeOptionsOnDemand": {
        "type": "object",
        "properties": {
          "apsLimit": {
            "title": "The APS limit that would apply to this namespace in on-demand mode.\nSee: https://docs.temporal.io/cloud/limits#actions-per-second",
            "type": "number",
            "format": "double"
          }
        }
      },
      "NamespaceCapacityInfoCapacityModeOptionsProvisioned": {
        "type": "object",
        "properties": {
          "maxAvailableTruValue": {
            "type": "number",
            "description": "The maximum TRU value that can currently be set for this namespace.\nThis may be lower than the highest value in valid_tru_values due to\ninventory constraints.",
            "format": "double"
          },
          "validTruValues": {
            "type": "array",
            "description": "The valid TRU (Temporal Resource Unit) values that can be set.\nThese are the discrete capacity tiers available for selection.",
            "items": {
              "type": "number",
              "format": "double"
            }
          }
        }
      },
      "NamespaceCapacityInfoStats": {
        "type": "object",
        "properties": {
          "aps": {
            "$ref": "#/components/schemas/NamespaceCapacityInfoStatsSummary"
          }
        }
      },
      "NamespaceCapacityInfoStatsSummary": {
        "type": "object",
        "properties": {
          "mean": {
            "type": "number",
            "format": "double"
          },
          "p90": {
            "type": "number",
            "format": "double"
          },
          "p99": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "NamespaceSpecSearchAttributeType": {
        "type": "string",
        "default": "SEARCH_ATTRIBUTE_TYPE_UNSPECIFIED",
        "enum": [
          "SEARCH_ATTRIBUTE_TYPE_UNSPECIFIED",
          "SEARCH_ATTRIBUTE_TYPE_TEXT",
          "SEARCH_ATTRIBUTE_TYPE_KEYWORD",
          "SEARCH_ATTRIBUTE_TYPE_INT",
          "SEARCH_ATTRIBUTE_TYPE_DOUBLE",
          "SEARCH_ATTRIBUTE_TYPE_BOOL",
          "SEARCH_ATTRIBUTE_TYPE_DATETIME",
          "SEARCH_ATTRIBUTE_TYPE_KEYWORD_LIST"
        ]
      },
      "ProjectAccessProjectRole": {
        "type": "string",
        "description": " - PROJECT_ROLE_ADMIN: Full access to the project, including managing project membership.\n - PROJECT_ROLE_WRITE: Write access to project resources.\n - PROJECT_ROLE_READ: Read-only access to project resources.\n - PROJECT_ROLE_LIST: Access to list resources within the project.\n - PROJECT_ROLE_CONTRIBUTE: Access to contribute to workflows within the project.\n - PROJECT_ROLE_MEMBER: Basic membership; grants read-only access to the project.\n - PROJECT_ROLE_DEVELOPER: Inherited from the account developer role; cannot be assigned directly.",
        "default": "PROJECT_ROLE_UNSPECIFIED",
        "enum": [
          "PROJECT_ROLE_UNSPECIFIED",
          "PROJECT_ROLE_ADMIN",
          "PROJECT_ROLE_WRITE",
          "PROJECT_ROLE_READ",
          "PROJECT_ROLE_LIST",
          "PROJECT_ROLE_CONTRIBUTE",
          "PROJECT_ROLE_MEMBER",
          "PROJECT_ROLE_DEVELOPER"
        ]
      },
      "RegionCloudProvider": {
        "type": "string",
        "description": "The cloud provider that's hosting the region.",
        "default": "CLOUD_PROVIDER_UNSPECIFIED",
        "enum": [
          "CLOUD_PROVIDER_UNSPECIFIED",
          "CLOUD_PROVIDER_AWS",
          "CLOUD_PROVIDER_GCP",
          "CLOUD_PROVIDER_AZURE"
        ]
      },
      "ReplicaReplicaState": {
        "type": "string",
        "description": " - REPLICA_STATE_ADDING: This replica is currently being added to the namespace.\n - REPLICA_STATE_ACTIVE: This replica is healthy and active.\n - REPLICA_STATE_REMOVING: This replica is currently being removed from the namespace.\n - REPLICA_STATE_FAILED: This replica is in a failed state, reach out to Temporal Cloud support for remediation.",
        "default": "REPLICA_STATE_UNSPECIFIED",
        "enum": [
          "REPLICA_STATE_UNSPECIFIED",
          "REPLICA_STATE_ADDING",
          "REPLICA_STATE_ACTIVE",
          "REPLICA_STATE_REMOVING",
          "REPLICA_STATE_FAILED"
        ]
      },
      "cloudnamespacev1LifecycleSpec": {
        "type": "object",
        "properties": {
          "enableDeleteProtection": {
            "type": "boolean",
            "description": "Flag to enable delete protection for the namespace."
          }
        }
      },
      "cloudprojectv1LifecycleSpec": {
        "type": "object",
        "properties": {
          "enableDeleteProtection": {
            "type": "boolean",
            "description": "If true, the project cannot be deleted."
          }
        }
      },
      "protobufAny": {
        "type": "object",
        "properties": {
          "@type": {
            "type": "string",
            "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n  value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n  URL, or have them precompiled into a binary to avoid any\n  lookup. Therefore, binary compatibility needs to be preserved\n  on changes to types. (Use versioned type names to manage\n  breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics."
          }
        },
        "additionalProperties": {
          "type": "object"
        },
        "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n    Foo foo = ...;\n    Any any;\n    any.PackFrom(foo);\n    ...\n    if (any.UnpackTo(&foo)) {\n      ...\n    }\n\nExample 2: Pack and unpack a message in Java.\n\n    Foo foo = ...;\n    Any any = Any.pack(foo);\n    ...\n    if (any.is(Foo.class)) {\n      foo = any.unpack(Foo.class);\n    }\n    // or ...\n    if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n      foo = any.unpack(Foo.getDefaultInstance());\n    }\n\n Example 3: Pack and unpack a message in Python.\n\n    foo = Foo(...)\n    any = Any()\n    any.Pack(foo)\n    ...\n    if any.Is(Foo.DESCRIPTOR):\n      any.Unpack(foo)\n      ...\n\n Example 4: Pack and unpack a message in Go\n\n     foo := &pb.Foo{...}\n     any, err := anypb.New(foo)\n     if err != nil {\n       ...\n     }\n     ...\n     foo := &pb.Foo{}\n     if err := any.UnmarshalTo(foo); err != nil {\n       ...\n     }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n    package google.profile;\n    message Person {\n      string first_name = 1;\n      string last_name = 2;\n    }\n\n    {\n      \"@type\": \"type.googleapis.com/google.profile.Person\",\n      \"firstName\": <string>,\n      \"lastName\": <string>\n    }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n    {\n      \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n      \"value\": \"1.212s\"\n    }"
      },
      "protobufNullValue": {
        "type": "string",
        "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\nThe JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value.",
        "default": "NULL_VALUE",
        "enum": [
          "NULL_VALUE"
        ]
      },
      "rpcStatus": {
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "format": "int32"
          },
          "details": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/protobufAny"
            }
          },
          "message": {
            "type": "string"
          }
        }
      },
      "usagev1Summary": {
        "type": "object",
        "properties": {
          "endTime": {
            "title": "End of UTC day for now (exclusive)",
            "type": "string",
            "format": "date-time"
          },
          "incomplete": {
            "title": "True if data for given time window is not fully available yet (e.g. delays)\nWhen true, records for the given time range could still be added/updated in the future (until false)",
            "type": "boolean"
          },
          "recordGroups": {
            "title": "Records grouped by namespace",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/v1RecordGroup"
            }
          },
          "startTime": {
            "title": "Start of UTC day for now (inclusive)",
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "v1AWSPrivateLinkInfo": {
        "type": "object",
        "properties": {
          "allowedPrincipalArns": {
            "type": "array",
            "description": "The list of principal arns that are allowed to access the namespace on the private link.",
            "items": {
              "type": "string"
            }
          },
          "vpcEndpointServiceNames": {
            "type": "array",
            "description": "The list of vpc endpoint service names that are associated with the namespace.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "v1Access": {
        "type": "object",
        "properties": {
          "accountAccess": {
            "$ref": "#/components/schemas/v1AccountAccess"
          },
          "namespaceAccesses": {
            "title": "The map of namespace accesses\nThe key is the namespace name and the value is the access to the namespace",
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/v1NamespaceAccess"
            }
          },
          "projectAccesses": {
            "title": "The map of project accesses\nThe key is the project ID and the value is the access to the project",
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/v1ProjectAccess"
            }
          }
        }
      },
      "v1Account": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "The id of the async operation that is updating the account, if any."
          },
          "id": {
            "type": "string",
            "description": "The id of the account."
          },
          "metrics": {
            "$ref": "#/components/schemas/v1Metrics"
          },
          "resourceVersion": {
            "type": "string",
            "description": "The current version of the account specification.\nThe next update operation will have to include this version."
          },
          "spec": {
            "$ref": "#/components/schemas/v1AccountSpec"
          },
          "state": {
            "$ref": "#/components/schemas/v1ResourceState"
          }
        }
      },
      "v1AccountAccess": {
        "type": "object",
        "properties": {
          "customRoles": {
            "title": "List of custom role IDs assigned to the user or service account.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "role": {
            "$ref": "#/components/schemas/AccountAccessRole"
          }
        }
      },
      "v1AccountSpec": {
        "type": "object",
        "properties": {
          "authenticationSettings": {
            "$ref": "#/components/schemas/v1AuthenticationSettings"
          },
          "metrics": {
            "$ref": "#/components/schemas/v1MetricsSpec"
          }
        }
      },
      "v1AddNamespaceRegionResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1AddUserGroupMemberResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1AllowedCloudNamespacePolicySpec": {
        "type": "object",
        "properties": {
          "namespaceId": {
            "type": "string",
            "description": "The namespace that is allowed to call into this endpoint. Calling namespace must be in same account as the endpoint."
          }
        }
      },
      "v1ApiKey": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "The id of the async operation that is creating/updating/deleting the API key, if any."
          },
          "createdTime": {
            "type": "string",
            "description": "The date and time when the API key was created.",
            "format": "date-time"
          },
          "id": {
            "type": "string",
            "description": "The id of the API Key."
          },
          "lastModifiedTime": {
            "type": "string",
            "description": "The date and time when the API key was last modified.\nWill not be set if the API key has never been modified.",
            "format": "date-time"
          },
          "resourceVersion": {
            "type": "string",
            "description": "The current version of the API key specification.\nThe next update operation will have to include this version."
          },
          "spec": {
            "$ref": "#/components/schemas/v1ApiKeySpec"
          },
          "state": {
            "$ref": "#/components/schemas/v1ResourceState"
          }
        }
      },
      "v1ApiKeyAuthSpec": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean",
            "description": "Flag to enable API key auth (default: disabled).\nNote: disabling API key auth will cause existing API key connections to fail."
          }
        }
      },
      "v1ApiKeySpec": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string",
            "description": "The description of the API key."
          },
          "disabled": {
            "type": "boolean",
            "description": "True if the API key is disabled."
          },
          "displayName": {
            "type": "string",
            "description": "The display name of the API key."
          },
          "expiryTime": {
            "type": "string",
            "description": "The expiry time of the API key.",
            "format": "date-time"
          },
          "ownerId": {
            "type": "string",
            "description": "The id of the owner to create the API key for.\nThe owner id is immutable. Once set during creation, it cannot be changed.\nThe owner id is the id of the user when the owner type is user.\nThe owner id is the id of the service account when the owner type is service account."
          },
          "ownerType": {
            "$ref": "#/components/schemas/v1OwnerType"
          }
        }
      },
      "v1AsyncOperation": {
        "type": "object",
        "properties": {
          "checkDuration": {
            "type": "string",
            "description": "The recommended duration to check back for an update in the operation's state."
          },
          "failureReason": {
            "type": "string",
            "description": "If the operation failed, the reason for the failure."
          },
          "finishedTime": {
            "type": "string",
            "description": "The date and time when the operation completed.",
            "format": "date-time"
          },
          "id": {
            "type": "string",
            "description": "The operation id."
          },
          "operationInput": {
            "$ref": "#/components/schemas/protobufAny"
          },
          "operationType": {
            "type": "string",
            "description": "The type of operation being performed."
          },
          "startedTime": {
            "type": "string",
            "description": "The date and time when the operation initiated.",
            "format": "date-time"
          },
          "state": {
            "$ref": "#/components/schemas/v1AsyncOperationState"
          }
        }
      },
      "v1AsyncOperationState": {
        "type": "string",
        "description": " - STATE_PENDING: The operation is pending.\n - STATE_IN_PROGRESS: The operation is in progress.\n - STATE_FAILED: The operation failed, check failure_reason for more details.\n - STATE_CANCELLED: The operation was cancelled.\n - STATE_FULFILLED: The operation was fulfilled.\n - STATE_REJECTED: The operation was rejected.",
        "default": "STATE_UNSPECIFIED",
        "enum": [
          "STATE_UNSPECIFIED",
          "STATE_PENDING",
          "STATE_IN_PROGRESS",
          "STATE_FAILED",
          "STATE_CANCELLED",
          "STATE_FULFILLED",
          "STATE_REJECTED"
        ]
      },
      "v1AuditLogSink": {
        "title": "AuditLogSink is only used by Audit Log",
        "type": "object",
        "properties": {
          "errorMessage": {
            "type": "string",
            "description": "An error message describing any issues with the audit log sink, if applicable."
          },
          "health": {
            "$ref": "#/components/schemas/v1AuditLogSinkHealth"
          },
          "lastSucceededTime": {
            "type": "string",
            "description": "The last succeeded timestamp for the internal workflow responsible for adding data to the sink.",
            "format": "date-time"
          },
          "name": {
            "title": "Name of the sink e.g. \"audit_log_01\"",
            "type": "string"
          },
          "resourceVersion": {
            "type": "string",
            "description": "The version of the audit log sink resource."
          },
          "spec": {
            "$ref": "#/components/schemas/v1AuditLogSinkSpec"
          },
          "state": {
            "$ref": "#/components/schemas/v1ResourceState"
          }
        }
      },
      "v1AuditLogSinkHealth": {
        "type": "string",
        "description": "The health status of the audit log sink.\n\n - HEALTH_OK: The audit log sink is healthy and functioning correctly.\n - HEALTH_ERROR_INTERNAL: The audit log sink has an internal error.\n - HEALTH_ERROR_USER_CONFIGURATION: The audit log sink has a configuration error.",
        "default": "HEALTH_UNSPECIFIED",
        "enum": [
          "HEALTH_UNSPECIFIED",
          "HEALTH_OK",
          "HEALTH_ERROR_INTERNAL",
          "HEALTH_ERROR_USER_CONFIGURATION"
        ]
      },
      "v1AuditLogSinkSpec": {
        "title": "AuditLogSinkSpec is only used by Audit Log",
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean",
            "description": "Enabled indicates whether the sink is enabled or not."
          },
          "kinesisSink": {
            "$ref": "#/components/schemas/v1KinesisSpec"
          },
          "name": {
            "title": "Name of the sink e.g. \"audit_log_01\"",
            "type": "string"
          },
          "pubSubSink": {
            "$ref": "#/components/schemas/v1PubSubSpec"
          }
        }
      },
      "v1AuthenticationSettings": {
        "type": "object",
        "properties": {
          "restrictSessionLifetimes": {
            "type": "boolean",
            "description": "Restricts Cloud web UI session lifetimes for users in this account."
          }
        }
      },
      "v1AzureBlobSpec": {
        "type": "object",
        "properties": {
          "containerName": {
            "type": "string",
            "description": "The name of the destination Azure Blob container where Temporal will send data."
          },
          "region": {
            "type": "string",
            "description": "The region where the Azure storage account is located."
          },
          "resourceGroup": {
            "type": "string",
            "description": "The Azure resource group that contains the storage account."
          },
          "storageAccount": {
            "type": "string",
            "description": "The name of the destination Azure storage account where Temporal will send data."
          },
          "subscriptionId": {
            "type": "string",
            "description": "The Azure subscription ID that contains the storage account."
          },
          "tenantId": {
            "type": "string",
            "description": "The customer's Azure tenant ID where the storage account exists and where Temporal's app registration is consented/granted access."
          }
        }
      },
      "v1BillingReport": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "The async operation id associated with the billing report generation."
          },
          "downloadInfo": {
            "title": "The download information for the billing report.\nFor future-proofness this is repeated as we may return multiple files (e.g. csv+meta/json, split by size/date, etc.)",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BillingReportDownload"
            }
          },
          "generatedTime": {
            "type": "string",
            "description": "The date and time when the billing report generation completed.",
            "format": "date-time"
          },
          "id": {
            "type": "string",
            "description": "The id of the billing report."
          },
          "requestedTime": {
            "type": "string",
            "description": "The date and time when the billing report was requested.",
            "format": "date-time"
          },
          "spec": {
            "$ref": "#/components/schemas/v1BillingReportSpec"
          },
          "state": {
            "$ref": "#/components/schemas/BillingReportBillingReportState"
          }
        }
      },
      "v1BillingReportSpec": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string",
            "description": "The description for the billing report.\nOptional, default is empty."
          },
          "downloadUrlExpirationDuration": {
            "type": "string",
            "description": "The duration after which the download url will expire.\nOptional, default is 5 minutes and maximum is 1 hour."
          },
          "endTimeExclusive": {
            "type": "string",
            "description": "The end time of the billing report (in UTC).",
            "format": "date-time"
          },
          "granularity": {
            "$ref": "#/components/schemas/BillingReportSpecBillingReportGranularity"
          },
          "startTimeInclusive": {
            "type": "string",
            "description": "The start time of the billing report (in UTC).",
            "format": "date-time"
          }
        }
      },
      "v1CallerRateLimit": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "The id of any ongoing operation that is creating, updating, or deleting the caller rate limit."
          },
          "createdTime": {
            "type": "string",
            "description": "The date and time when the caller rate limit was created.",
            "format": "date-time"
          },
          "id": {
            "type": "string",
            "description": "The id of the caller rate limit. This is generated by the server and is immutable."
          },
          "lastModifiedTime": {
            "type": "string",
            "description": "The date and time when the caller rate limit was last modified.",
            "format": "date-time"
          },
          "namespace": {
            "type": "string",
            "description": "The target namespace. This is immutable."
          },
          "resourceVersion": {
            "type": "string",
            "description": "The current version of the caller rate limit specification.\nThe next update or delete operations must include this version."
          },
          "spec": {
            "$ref": "#/components/schemas/v1CallerRateLimitSpec"
          },
          "state": {
            "$ref": "#/components/schemas/v1ResourceState"
          }
        },
        "description": "The caller rate limit resource.\nA caller rate limit sets a request per second limit for a caller making requests to a target namespace.\nThe 'target namespace' is the namespace being protected."
      },
      "v1CallerRateLimitSpec": {
        "type": "object",
        "properties": {
          "namespaceDefault": {
            "$ref": "#/components/schemas/v1NamespaceDefaultCallerRateLimit"
          },
          "namespaceLimit": {
            "$ref": "#/components/schemas/v1NamespaceCallerRateLimit"
          }
        },
        "description": "The specification for a caller rate limit."
      },
      "v1Capacity": {
        "type": "object",
        "properties": {
          "latestRequest": {
            "$ref": "#/components/schemas/CapacityRequest"
          },
          "onDemand": {
            "$ref": "#/components/schemas/v1CapacityOnDemand"
          },
          "provisioned": {
            "$ref": "#/components/schemas/v1CapacityProvisioned"
          }
        }
      },
      "v1CapacityOnDemand": {
        "type": "object"
      },
      "v1CapacityProvisioned": {
        "type": "object",
        "properties": {
          "currentValue": {
            "type": "number",
            "description": "The current provisioned capacity for the namespace in Temporal Resource Units.\nCan be different from the requested capacity in latest_request if the request is still in progress.",
            "format": "double"
          }
        }
      },
      "v1CapacitySpec": {
        "type": "object",
        "properties": {
          "onDemand": {
            "$ref": "#/components/schemas/v1CapacitySpecOnDemand"
          },
          "provisioned": {
            "$ref": "#/components/schemas/v1CapacitySpecProvisioned"
          }
        }
      },
      "v1CapacitySpecOnDemand": {
        "type": "object"
      },
      "v1CapacitySpecProvisioned": {
        "type": "object",
        "properties": {
          "value": {
            "type": "number",
            "description": "The units of provisioned capacity in TRU (Temporal Resource Units).\nEach TRU unit assigned to the namespace will entitle it with additional APS limits as specified in the documentation.",
            "format": "double"
          }
        }
      },
      "v1CertificateFilterSpec": {
        "type": "object",
        "properties": {
          "commonName": {
            "type": "string",
            "description": "The common_name in the certificate.\nOptional, default is empty."
          },
          "organization": {
            "type": "string",
            "description": "The organization in the certificate.\nOptional, default is empty."
          },
          "organizationalUnit": {
            "type": "string",
            "description": "The organizational_unit in the certificate.\nOptional, default is empty."
          },
          "subjectAlternativeName": {
            "type": "string",
            "description": "The subject_alternative_name in the certificate.\nOptional, default is empty."
          }
        }
      },
      "v1CloudGroupSpec": {
        "type": "object"
      },
      "v1CodecServerSpec": {
        "type": "object",
        "properties": {
          "customErrorMessage": {
            "$ref": "#/components/schemas/CodecServerSpecCustomErrorMessage"
          },
          "endpoint": {
            "type": "string",
            "description": "The codec server endpoint."
          },
          "includeCrossOriginCredentials": {
            "type": "boolean",
            "description": "Whether to include cross-origin credentials."
          },
          "passAccessToken": {
            "type": "boolean",
            "description": "Whether to pass the user access token with your endpoint."
          }
        }
      },
      "v1ConnectivityRule": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "The id of the async operation that is creating/updating/deleting the connectivity rule, if any."
          },
          "createdTime": {
            "type": "string",
            "description": "The date and time when the connectivity rule was created.",
            "format": "date-time"
          },
          "id": {
            "type": "string",
            "description": "The id of the private connectivity rule."
          },
          "projectId": {
            "type": "string",
            "description": "The ID of the project this connectivity rule belongs to."
          },
          "resourceVersion": {
            "type": "string",
            "description": "The current version of the connectivity rule specification.\nThe next update operation will have to include this version."
          },
          "spec": {
            "$ref": "#/components/schemas/v1ConnectivityRuleSpec"
          },
          "state": {
            "$ref": "#/components/schemas/v1ResourceState"
          }
        }
      },
      "v1ConnectivityRuleIDs": {
        "type": "object",
        "properties": {
          "connectivityRuleIds": {
            "type": "array",
            "description": "One or more rule ids to attach in the destination project.",
            "items": {
              "type": "string"
            }
          }
        },
        "description": "The full set of connectivity rules a namespace should carry after a move."
      },
      "v1ConnectivityRuleSpec": {
        "type": "object",
        "properties": {
          "privateRule": {
            "$ref": "#/components/schemas/v1PrivateConnectivityRule"
          },
          "publicRule": {
            "$ref": "#/components/schemas/v1PublicConnectivityRule"
          }
        },
        "description": "The connectivity rule specification passed in on create/update operations."
      },
      "v1CreateAccountAuditLogSinkRequest": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "Optional. The ID to use for this async operation."
          },
          "spec": {
            "$ref": "#/components/schemas/v1AuditLogSinkSpec"
          }
        }
      },
      "v1CreateAccountAuditLogSinkResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1CreateApiKeyRequest": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "The id to use for this async operation - optional."
          },
          "spec": {
            "$ref": "#/components/schemas/v1ApiKeySpec"
          }
        }
      },
      "v1CreateApiKeyResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          },
          "keyId": {
            "type": "string",
            "description": "The id of the api key created."
          },
          "token": {
            "type": "string",
            "description": "The token of the api key created.\nThis is a secret and should be stored securely.\nIt will not be retrievable after this response."
          }
        }
      },
      "v1CreateBillingReportRequest": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "Optional, if not provided a random id will be generated."
          },
          "spec": {
            "$ref": "#/components/schemas/v1BillingReportSpec"
          }
        }
      },
      "v1CreateBillingReportResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          },
          "billingReportId": {
            "type": "string",
            "description": "The id of the billing report created."
          }
        }
      },
      "v1CreateCallerRateLimitResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          },
          "callerRateLimitId": {
            "type": "string",
            "description": "The id of the created caller rate limit."
          },
          "namespace": {
            "type": "string",
            "description": "The target namespace for this caller rate limit."
          }
        }
      },
      "v1CreateConnectivityRuleRequest": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "The id to use for this async operation.\nOptional, if not provided a random id will be generated."
          },
          "projectId": {
            "type": "string",
            "description": "The ID of the project this connectivity rule belongs to - optional.\nIf not set, the connectivity rule will be created in the account's default project."
          },
          "spec": {
            "$ref": "#/components/schemas/v1ConnectivityRuleSpec"
          }
        }
      },
      "v1CreateConnectivityRuleResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          },
          "connectivityRuleId": {
            "type": "string",
            "description": "The id of the connectivity rule that was created."
          }
        }
      },
      "v1CreateCustomRoleRequest": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "The ID to use for this async operation.\nOptional, if not provided a random ID will be generated."
          },
          "spec": {
            "$ref": "#/components/schemas/v1CustomRoleSpec"
          }
        }
      },
      "v1CreateCustomRoleResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          },
          "roleId": {
            "type": "string",
            "description": "The ID of the custom role created."
          }
        }
      },
      "v1CreateNamespaceExportSinkResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1CreateNamespaceRequest": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "The id to use for this async operation.\nOptional, if not provided a random id will be generated."
          },
          "projectId": {
            "type": "string",
            "description": "The id of the project to create the namespace in - optional.\nIf not set, the namespace will be created in the account's default project."
          },
          "spec": {
            "$ref": "#/components/schemas/v1NamespaceSpec"
          },
          "tags": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "The tags to add to the namespace.\nNote: This field can be set by global admins or account owners only."
          }
        }
      },
      "v1CreateNamespaceResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          },
          "namespace": {
            "type": "string",
            "description": "The namespace that was created."
          }
        }
      },
      "v1CreateNexusEndpointRequest": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "The id to use for this async operation - optional."
          },
          "projectId": {
            "type": "string",
            "description": "The id of the project to associate this endpoint with - optional.\nIf not set, the endpoint will be created in the account's default project."
          },
          "spec": {
            "$ref": "#/components/schemas/v1EndpointSpec"
          }
        }
      },
      "v1CreateNexusEndpointResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          },
          "endpointId": {
            "type": "string",
            "description": "The id of the endpoint that was created."
          }
        }
      },
      "v1CreateProjectRequest": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "The id to use for this async operation.\nOptional, if not provided a random id will be generated."
          },
          "spec": {
            "$ref": "#/components/schemas/v1ProjectSpec"
          }
        }
      },
      "v1CreateProjectResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          },
          "projectId": {
            "type": "string",
            "description": "The id of the project that was created."
          }
        }
      },
      "v1CreateServiceAccountRequest": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "The ID to use for this async operation - optional."
          },
          "spec": {
            "$ref": "#/components/schemas/v1ServiceAccountSpec"
          }
        }
      },
      "v1CreateServiceAccountResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          },
          "serviceAccountId": {
            "type": "string",
            "description": "The ID of the created service account."
          }
        }
      },
      "v1CreateUserGroupRequest": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "The id to use for this async operation.\nOptional, if not provided a random id will be generated."
          },
          "spec": {
            "$ref": "#/components/schemas/v1UserGroupSpec"
          }
        }
      },
      "v1CreateUserGroupResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          },
          "groupId": {
            "type": "string",
            "description": "The id of the group that was created."
          }
        }
      },
      "v1CreateUserRequest": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "title": "The id to use for this async operation - optional",
            "type": "string"
          },
          "spec": {
            "$ref": "#/components/schemas/v1UserSpec"
          }
        }
      },
      "v1CreateUserResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          },
          "userId": {
            "title": "The id of the user that was invited",
            "type": "string"
          }
        }
      },
      "v1CustomRole": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "The id of the async operation that is creating/updating/deleting the custom role, if any."
          },
          "createdTime": {
            "type": "string",
            "description": "The date and time when the custom role was created.",
            "format": "date-time"
          },
          "id": {
            "type": "string",
            "description": "The id of the custom role."
          },
          "lastModifiedTime": {
            "type": "string",
            "description": "The date and time when the custom role was last modified.\nWill not be set if the custom role has never been modified.",
            "format": "date-time"
          },
          "resourceVersion": {
            "type": "string",
            "description": "The current version of the custom role specification.\nThe next update operation will have to include this version."
          },
          "spec": {
            "$ref": "#/components/schemas/v1CustomRoleSpec"
          },
          "state": {
            "$ref": "#/components/schemas/v1ResourceState"
          }
        }
      },
      "v1CustomRoleSpec": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string",
            "description": "The description of the custom role."
          },
          "name": {
            "type": "string",
            "description": "The name of the custom role."
          },
          "permissions": {
            "type": "array",
            "description": "The permissions assigned to the custom role.",
            "items": {
              "$ref": "#/components/schemas/v1CustomRoleSpecPermission"
            }
          },
          "projectId": {
            "title": "The id of the project this custom role is scoped to - optional.\nIf unset, the custom role is scoped to the account: it can reference resources anywhere in the\naccount and can be assigned to principals at the account level.\nIf set, the custom role is scoped to the project: its resources must belong to that project, it\nis not shared across projects, and it can only be assigned to principals within that project.\nImmutable once the custom role is created - it cannot be changed via UpdateCustomRole.",
            "type": "string"
          }
        }
      },
      "v1CustomRoleSpecPermission": {
        "type": "object",
        "properties": {
          "actions": {
            "type": "array",
            "description": "The actions allowed by the permission.",
            "items": {
              "type": "string"
            }
          },
          "resources": {
            "$ref": "#/components/schemas/CustomRoleSpecResources"
          }
        }
      },
      "v1DeleteAccountAuditLogSinkResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1DeleteApiKeyResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1DeleteCallerRateLimitResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1DeleteConnectivityRuleResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1DeleteCustomRoleResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1DeleteNamespaceExportSinkResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1DeleteNamespaceRegionResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1DeleteNamespaceResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1DeleteNexusEndpointResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1DeleteProjectResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1DeleteServiceAccountResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1DeleteUserGroupResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1DeleteUserResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1EncryptionValidationSpec": {
        "type": "object",
        "properties": {
          "inspectFailure": {
            "type": "boolean",
            "description": "Whether to inspect the message and stack_trace fields for Failure messages."
          },
          "inspectHeader": {
            "type": "boolean",
            "description": "Whether workflow headers should be inspected for encryption validation."
          },
          "metadataKey": {
            "type": "string",
            "description": "(Optional) The payload metadata key used to identify encrypted payloads.\nDefault value is \"encoding\" if omitted."
          },
          "metadataValues": {
            "type": "array",
            "description": "(Optional) The payload metadata values used to identify encrypted payloads.\nDefault value is [\"binary/encrypted\"] if omitted.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "$ref": "#/components/schemas/EncryptionValidationSpecEncryptionValidationMode"
          }
        }
      },
      "v1Endpoint": {
        "title": "An endpoint that receives and then routes Nexus requests",
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "The id of any ongoing async operation that is creating, updating, or deleting the endpoint, if any."
          },
          "createdTime": {
            "type": "string",
            "description": "The date and time when the endpoint was created.",
            "format": "date-time"
          },
          "id": {
            "type": "string",
            "description": "The id of the endpoint. This is generated by the server and is immutable."
          },
          "lastModifiedTime": {
            "type": "string",
            "description": "The date and time when the endpoint was last modified.",
            "format": "date-time"
          },
          "projectId": {
            "type": "string",
            "description": "The id of the project this endpoint belongs to."
          },
          "resourceVersion": {
            "type": "string",
            "description": "The current version of the endpoint specification.\nThe next update operation must include this version."
          },
          "spec": {
            "$ref": "#/components/schemas/v1EndpointSpec"
          },
          "state": {
            "$ref": "#/components/schemas/v1ResourceState"
          }
        }
      },
      "v1EndpointPolicySpec": {
        "type": "object",
        "properties": {
          "allowedCloudNamespacePolicySpec": {
            "$ref": "#/components/schemas/v1AllowedCloudNamespacePolicySpec"
          }
        }
      },
      "v1EndpointSpec": {
        "type": "object",
        "properties": {
          "description": {
            "$ref": "#/components/schemas/v1Payload"
          },
          "name": {
            "type": "string",
            "description": "The name of the endpoint. Must be unique within an account.\nThe name must match `^[a-zA-Z][a-zA-Z0-9\\-]*[a-zA-Z0-9]$`.\nThis field is mutable."
          },
          "policySpecs": {
            "type": "array",
            "description": "The set of policies (e.g. authorization) for the endpoint. Each request's caller\nmust match with at least one of the specs to be accepted by the endpoint.\nThis field is mutable.",
            "items": {
              "$ref": "#/components/schemas/v1EndpointPolicySpec"
            }
          },
          "targetSpec": {
            "$ref": "#/components/schemas/v1EndpointTargetSpec"
          }
        }
      },
      "v1EndpointTargetSpec": {
        "type": "object",
        "properties": {
          "workerTargetSpec": {
            "$ref": "#/components/schemas/v1WorkerTargetSpec"
          }
        }
      },
      "v1Endpoints": {
        "type": "object",
        "properties": {
          "grpcAddress": {
            "type": "string",
            "description": "The gRPC address for API key client connections (may be empty if API keys are disabled)."
          },
          "mtlsGrpcAddress": {
            "type": "string",
            "description": "The gRPC address for mTLS client connections (may be empty if mTLS is disabled)."
          },
          "webAddress": {
            "type": "string",
            "description": "The web UI address."
          }
        }
      },
      "v1ExportSink": {
        "type": "object",
        "properties": {
          "errorMessage": {
            "type": "string",
            "description": "An error message describing any issues with the export sink, if applicable."
          },
          "health": {
            "$ref": "#/components/schemas/v1ExportSinkHealth"
          },
          "lastHealthCheckTime": {
            "type": "string",
            "description": "The timestamp of the last health check performed on the export sink.",
            "format": "date-time"
          },
          "latestDataExportTime": {
            "type": "string",
            "description": "The timestamp of the latest successful data export.",
            "format": "date-time"
          },
          "name": {
            "title": "The unique name of the export sink, once set it can't be changed",
            "type": "string"
          },
          "resourceVersion": {
            "type": "string",
            "description": "The version of the export sink resource."
          },
          "spec": {
            "$ref": "#/components/schemas/v1ExportSinkSpec"
          },
          "state": {
            "$ref": "#/components/schemas/v1ResourceState"
          }
        }
      },
      "v1ExportSinkHealth": {
        "type": "string",
        "default": "HEALTH_UNSPECIFIED",
        "enum": [
          "HEALTH_UNSPECIFIED",
          "HEALTH_OK",
          "HEALTH_ERROR_INTERNAL",
          "HEALTH_ERROR_USER_CONFIGURATION"
        ]
      },
      "v1ExportSinkSpec": {
        "type": "object",
        "properties": {
          "azureBlob": {
            "$ref": "#/components/schemas/v1AzureBlobSpec"
          },
          "enabled": {
            "type": "boolean",
            "description": "A flag indicating whether the export sink is enabled or not."
          },
          "filter": {
            "$ref": "#/components/schemas/ExportSinkSpecSinkFilter"
          },
          "gcs": {
            "$ref": "#/components/schemas/v1GCSSpec"
          },
          "name": {
            "type": "string",
            "description": "The unique name of the export sink, it can't be changed once set."
          },
          "s3": {
            "$ref": "#/components/schemas/v1S3Spec"
          }
        }
      },
      "v1FailoverNamespaceRegionResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1FairnessSpec": {
        "type": "object",
        "properties": {
          "taskQueueFairnessEnabled": {
            "type": "boolean",
            "description": "Flag to enable task queue fairness for the namespace (default: disabled)."
          }
        }
      },
      "v1GCSSpec": {
        "type": "object",
        "properties": {
          "bucketName": {
            "type": "string",
            "description": "The name of the destination GCS bucket where Temporal will send data."
          },
          "gcpProjectId": {
            "type": "string",
            "description": "The GCP project ID associated with the GCS bucket and service account."
          },
          "region": {
            "title": "The region of the gcs bucket",
            "type": "string"
          },
          "saId": {
            "type": "string",
            "description": "The customer service account ID that Temporal Cloud impersonates for writing records to the customer's GCS bucket."
          }
        }
      },
      "v1GetAccountAuditLogSinkResponse": {
        "type": "object",
        "properties": {
          "sink": {
            "$ref": "#/components/schemas/v1AuditLogSink"
          }
        }
      },
      "v1GetAccountAuditLogSinksResponse": {
        "type": "object",
        "properties": {
          "nextPageToken": {
            "type": "string",
            "description": "The next page token, set if there is another page."
          },
          "sinks": {
            "type": "array",
            "description": "The list of audit log sinks retrieved.",
            "items": {
              "$ref": "#/components/schemas/v1AuditLogSink"
            }
          }
        }
      },
      "v1GetAccountResponse": {
        "type": "object",
        "properties": {
          "account": {
            "$ref": "#/components/schemas/v1Account"
          }
        }
      },
      "v1GetApiKeyResponse": {
        "type": "object",
        "properties": {
          "apiKey": {
            "$ref": "#/components/schemas/v1ApiKey"
          }
        }
      },
      "v1GetApiKeysResponse": {
        "type": "object",
        "properties": {
          "apiKeys": {
            "type": "array",
            "description": "The list of api keys in ascending id order.",
            "items": {
              "$ref": "#/components/schemas/v1ApiKey"
            }
          },
          "nextPageToken": {
            "type": "string",
            "description": "The next page's token."
          }
        }
      },
      "v1GetAsyncOperationResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1GetAuditLogsResponse": {
        "type": "object",
        "properties": {
          "logs": {
            "title": "The list of audit logs ordered by emit time, log_id",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/v1LogRecord"
            }
          },
          "nextPageToken": {
            "type": "string",
            "description": "The next page's token."
          }
        }
      },
      "v1GetBillingReportResponse": {
        "type": "object",
        "properties": {
          "billingReport": {
            "$ref": "#/components/schemas/v1BillingReport"
          }
        }
      },
      "v1GetCallerRateLimitResponse": {
        "type": "object",
        "properties": {
          "callerRateLimit": {
            "$ref": "#/components/schemas/v1CallerRateLimit"
          }
        }
      },
      "v1GetCallerRateLimitsResponse": {
        "type": "object",
        "properties": {
          "callerRateLimits": {
            "type": "array",
            "description": "The list of caller rate limits.",
            "items": {
              "$ref": "#/components/schemas/v1CallerRateLimit"
            }
          },
          "nextPageToken": {
            "type": "string",
            "description": "The page token to list the next page of rate limits."
          }
        }
      },
      "v1GetConnectivityRuleResponse": {
        "type": "object",
        "properties": {
          "connectivityRule": {
            "$ref": "#/components/schemas/v1ConnectivityRule"
          }
        }
      },
      "v1GetConnectivityRulesResponse": {
        "type": "object",
        "properties": {
          "connectivityRules": {
            "title": "connectivity_rules returned",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/v1ConnectivityRule"
            }
          },
          "nextPageToken": {
            "title": "The next page token",
            "type": "string"
          }
        }
      },
      "v1GetCurrentIdentityResponse": {
        "type": "object",
        "properties": {
          "principalApiKey": {
            "$ref": "#/components/schemas/v1ApiKey"
          },
          "serviceAccount": {
            "$ref": "#/components/schemas/v1ServiceAccount"
          },
          "user": {
            "$ref": "#/components/schemas/v1User"
          }
        }
      },
      "v1GetCustomRoleResponse": {
        "type": "object",
        "properties": {
          "customRole": {
            "$ref": "#/components/schemas/v1CustomRole"
          }
        }
      },
      "v1GetCustomRolesResponse": {
        "type": "object",
        "properties": {
          "customRoles": {
            "type": "array",
            "description": "The list of custom roles in ascending ID order.",
            "items": {
              "$ref": "#/components/schemas/v1CustomRole"
            }
          },
          "nextPageToken": {
            "type": "string",
            "description": "The next page token."
          }
        }
      },
      "v1GetNamespaceCapacityInfoResponse": {
        "type": "object",
        "properties": {
          "capacityInfo": {
            "$ref": "#/components/schemas/v1NamespaceCapacityInfo"
          }
        }
      },
      "v1GetNamespaceExportSinkResponse": {
        "type": "object",
        "properties": {
          "sink": {
            "$ref": "#/components/schemas/v1ExportSink"
          }
        }
      },
      "v1GetNamespaceExportSinksResponse": {
        "type": "object",
        "properties": {
          "nextPageToken": {
            "type": "string",
            "description": "The next page token, set if there is another page."
          },
          "sinks": {
            "type": "array",
            "description": "The list of export sinks retrieved.",
            "items": {
              "$ref": "#/components/schemas/v1ExportSink"
            }
          }
        }
      },
      "v1GetNamespaceResponse": {
        "type": "object",
        "properties": {
          "namespace": {
            "$ref": "#/components/schemas/v1Namespace"
          }
        }
      },
      "v1GetNamespacesResponse": {
        "type": "object",
        "properties": {
          "namespaces": {
            "type": "array",
            "description": "The list of namespaces in ascending name order.",
            "items": {
              "$ref": "#/components/schemas/v1Namespace"
            }
          },
          "nextPageToken": {
            "type": "string",
            "description": "The next page's token."
          }
        }
      },
      "v1GetNexusEndpointResponse": {
        "type": "object",
        "properties": {
          "endpoint": {
            "$ref": "#/components/schemas/v1Endpoint"
          }
        }
      },
      "v1GetNexusEndpointsResponse": {
        "type": "object",
        "properties": {
          "endpoints": {
            "type": "array",
            "description": "The list of endpoints in ascending id order.",
            "items": {
              "$ref": "#/components/schemas/v1Endpoint"
            }
          },
          "nextPageToken": {
            "type": "string",
            "description": "The next page's token."
          }
        }
      },
      "v1GetProjectResponse": {
        "type": "object",
        "properties": {
          "project": {
            "$ref": "#/components/schemas/v1Project"
          }
        }
      },
      "v1GetProjectScopedServiceAccountsResponse": {
        "type": "object",
        "properties": {
          "nextPageToken": {
            "type": "string",
            "description": "The next page token, set if there is another page."
          },
          "serviceAccounts": {
            "type": "array",
            "description": "The list of project scoped service accounts in ascending ID order.",
            "items": {
              "$ref": "#/components/schemas/v1ServiceAccount"
            }
          }
        }
      },
      "v1GetProjectsResponse": {
        "type": "object",
        "properties": {
          "nextPageToken": {
            "title": "The next page's token",
            "type": "string"
          },
          "projects": {
            "title": "The list of projects in ascending ids order",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/v1Project"
            }
          }
        }
      },
      "v1GetRegionResponse": {
        "type": "object",
        "properties": {
          "region": {
            "$ref": "#/components/schemas/v1Region"
          }
        }
      },
      "v1GetRegionsResponse": {
        "type": "object",
        "properties": {
          "regions": {
            "type": "array",
            "description": "The temporal cloud regions.",
            "items": {
              "$ref": "#/components/schemas/v1Region"
            }
          }
        }
      },
      "v1GetServiceAccountNamespaceAssignmentsResponse": {
        "type": "object",
        "properties": {
          "nextPageToken": {
            "type": "string",
            "description": "The next page's token."
          },
          "serviceAccounts": {
            "type": "array",
            "description": "The list of service accounts with access to the namespace.",
            "items": {
              "$ref": "#/components/schemas/v1ServiceAccountNamespaceAssignment"
            }
          }
        }
      },
      "v1GetServiceAccountProjectAssignmentsResponse": {
        "type": "object",
        "properties": {
          "nextPageToken": {
            "type": "string",
            "description": "The next page's token."
          },
          "serviceAccounts": {
            "type": "array",
            "description": "The list of service accounts with access to the project.",
            "items": {
              "$ref": "#/components/schemas/v1ServiceAccountProjectAssignment"
            }
          }
        }
      },
      "v1GetServiceAccountResponse": {
        "type": "object",
        "properties": {
          "serviceAccount": {
            "$ref": "#/components/schemas/v1ServiceAccount"
          }
        }
      },
      "v1GetServiceAccountsResponse": {
        "type": "object",
        "properties": {
          "nextPageToken": {
            "type": "string",
            "description": "The next page token, set if there is another page."
          },
          "serviceAccount": {
            "type": "array",
            "description": "The list of service accounts in ascending ID order.",
            "items": {
              "$ref": "#/components/schemas/v1ServiceAccount"
            }
          }
        }
      },
      "v1GetUsageResponse": {
        "type": "object",
        "properties": {
          "nextPageToken": {
            "type": "string",
            "description": "The next page's token."
          },
          "summaries": {
            "title": "The list of data based on granularity (per Day for now)\nOrdered by: time range in ascending order",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/usagev1Summary"
            }
          }
        }
      },
      "v1GetUserGroupMembersResponse": {
        "type": "object",
        "properties": {
          "members": {
            "title": "The list of group members",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/v1UserGroupMember"
            }
          },
          "nextPageToken": {
            "type": "string",
            "description": "The next page's token."
          }
        }
      },
      "v1GetUserGroupNamespaceAssignmentsResponse": {
        "type": "object",
        "properties": {
          "groups": {
            "type": "array",
            "description": "The list of user groups with access to the namespace.",
            "items": {
              "$ref": "#/components/schemas/v1UserGroupNamespaceAssignment"
            }
          },
          "nextPageToken": {
            "type": "string",
            "description": "The next page's token."
          }
        }
      },
      "v1GetUserGroupProjectAssignmentsResponse": {
        "type": "object",
        "properties": {
          "groups": {
            "type": "array",
            "description": "The list of user groups with access to the project.",
            "items": {
              "$ref": "#/components/schemas/v1UserGroupProjectAssignment"
            }
          },
          "nextPageToken": {
            "type": "string",
            "description": "The next page's token."
          }
        }
      },
      "v1GetUserGroupResponse": {
        "type": "object",
        "properties": {
          "group": {
            "$ref": "#/components/schemas/v1UserGroup"
          }
        }
      },
      "v1GetUserGroupsResponse": {
        "type": "object",
        "properties": {
          "groups": {
            "type": "array",
            "description": "The list of groups in ascending name order.",
            "items": {
              "$ref": "#/components/schemas/v1UserGroup"
            }
          },
          "nextPageToken": {
            "type": "string",
            "description": "The next page's token."
          }
        }
      },
      "v1GetUserNamespaceAssignmentsResponse": {
        "type": "object",
        "properties": {
          "nextPageToken": {
            "type": "string",
            "description": "The next page's token."
          },
          "users": {
            "type": "array",
            "description": "The list of users with access to the namespace.",
            "items": {
              "$ref": "#/components/schemas/v1UserNamespaceAssignment"
            }
          }
        }
      },
      "v1GetUserProjectAssignmentsResponse": {
        "type": "object",
        "properties": {
          "nextPageToken": {
            "type": "string",
            "description": "The next page's token."
          },
          "users": {
            "type": "array",
            "description": "The list of users with access to the project.",
            "items": {
              "$ref": "#/components/schemas/v1UserProjectAssignment"
            }
          }
        }
      },
      "v1GetUserResponse": {
        "type": "object",
        "properties": {
          "user": {
            "$ref": "#/components/schemas/v1User"
          }
        }
      },
      "v1GetUsersResponse": {
        "type": "object",
        "properties": {
          "nextPageToken": {
            "title": "The next page's token",
            "type": "string"
          },
          "users": {
            "title": "The list of users in ascending ids order",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/v1User"
            }
          }
        }
      },
      "v1GoogleGroupSpec": {
        "type": "object",
        "properties": {
          "emailAddress": {
            "type": "string",
            "description": "The email address of the Google group.\nThe email address is immutable. Once set during creation, it cannot be changed."
          }
        }
      },
      "v1GroupBy": {
        "type": "object",
        "properties": {
          "key": {
            "$ref": "#/components/schemas/v1GroupByKey"
          },
          "value": {
            "type": "string"
          }
        }
      },
      "v1GroupByKey": {
        "type": "string",
        "default": "GROUP_BY_KEY_UNSPECIFIED",
        "enum": [
          "GROUP_BY_KEY_UNSPECIFIED",
          "GROUP_BY_KEY_NAMESPACE"
        ]
      },
      "v1HighAvailabilitySpec": {
        "type": "object",
        "properties": {
          "disableManagedFailover": {
            "type": "boolean",
            "description": "Flag to disable managed failover for the namespace."
          },
          "disablePassivePollerForwarding": {
            "title": "Flag to disable passive poller forwarding for this namespace.",
            "type": "boolean"
          }
        }
      },
      "v1Invitation": {
        "type": "object",
        "properties": {
          "createdTime": {
            "title": "The date and time when the user was created",
            "type": "string",
            "format": "date-time"
          },
          "expiredTime": {
            "title": "The date and time when the invitation expires or has expired",
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "v1KinesisSpec": {
        "type": "object",
        "properties": {
          "destinationUri": {
            "type": "string",
            "description": "Destination Kinesis endpoint arn for temporal to send data to."
          },
          "region": {
            "type": "string",
            "description": "The sink's region."
          },
          "roleName": {
            "title": "The role Temporal Cloud assumes when writing records to Kinesis",
            "type": "string"
          }
        }
      },
      "v1Limits": {
        "type": "object",
        "properties": {
          "actionsPerSecondLimit": {
            "type": "integer",
            "description": "The number of actions per second (APS) that is currently allowed for the namespace.\nThe namespace may be throttled if its APS exceeds the limit.",
            "format": "int32"
          }
        }
      },
      "v1LogRecord": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "The ID of the async operation."
          },
          "emitTime": {
            "type": "string",
            "description": "Time when the log was emitted.",
            "format": "date-time"
          },
          "logId": {
            "type": "string",
            "description": "Unique ID for the log record."
          },
          "operation": {
            "type": "string",
            "description": "The operation performed."
          },
          "principal": {
            "$ref": "#/components/schemas/v1Principal"
          },
          "rawDetails": {
            "type": "object",
            "description": "The raw details of the operation."
          },
          "status": {
            "type": "string",
            "description": "The status of the operation."
          },
          "version": {
            "type": "integer",
            "description": "The internal version of the log message.  Can be used in deduplication if needed.",
            "format": "int32"
          },
          "xForwardedFor": {
            "type": "string",
            "description": "The originating IP address of the request."
          }
        },
        "description": "LogRecord represents an audit log entry from Temporal, structured for easy parsing and analysis."
      },
      "v1Metrics": {
        "type": "object",
        "properties": {
          "uri": {
            "type": "string",
            "description": "The prometheus metrics endpoint uri.\nThis is only populated when the metrics is enabled in the metrics specification."
          }
        }
      },
      "v1MetricsSpec": {
        "type": "object",
        "properties": {
          "acceptedClientCa": {
            "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$",
            "type": "string",
            "description": "The ca cert(s) in PEM format that clients connecting to the metrics endpoint can use for authentication.\nThis must only be one value, but the CA can have a chain.",
            "format": "byte"
          }
        }
      },
      "v1MoveNamespaceToProjectResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1MoveNexusEndpointToProjectResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1MtlsAuthSpec": {
        "type": "object",
        "properties": {
          "acceptedClientCa": {
            "title": "The ca cert(s) in PEM format that the clients can use for authentication and authorization.\nThis must only be one value, but the CA can have a chain.",
            "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$",
            "type": "string",
            "format": "byte"
          },
          "certificateFilters": {
            "type": "array",
            "description": "Certificate filters which, if specified, only allow connections from client certificates whose distinguished name properties match at least one of the filters.\nThis allows limiting access to specific end-entity certificates.\nOptional, default is empty.",
            "items": {
              "$ref": "#/components/schemas/v1CertificateFilterSpec"
            }
          },
          "enabled": {
            "title": "Flag to enable mTLS auth (default: disabled).\nNote: disabling mTLS auth will cause existing mTLS connections to fail.",
            "type": "boolean"
          }
        }
      },
      "v1Namespace": {
        "type": "object",
        "properties": {
          "activeRegion": {
            "type": "string",
            "description": "The currently active region for the namespace."
          },
          "asyncOperationId": {
            "type": "string",
            "description": "The id of the async operation that is creating/updating/deleting the namespace, if any."
          },
          "capacity": {
            "$ref": "#/components/schemas/v1Capacity"
          },
          "connectivityRules": {
            "type": "array",
            "description": "The connectivity rules that are set on this namespace.",
            "items": {
              "$ref": "#/components/schemas/v1ConnectivityRule"
            }
          },
          "createdTime": {
            "type": "string",
            "description": "The date and time when the namespace was created.",
            "format": "date-time"
          },
          "endpoints": {
            "$ref": "#/components/schemas/v1Endpoints"
          },
          "lastModifiedTime": {
            "type": "string",
            "description": "The date and time when the namespace was last modified.\nWill not be set if the namespace has never been modified.",
            "format": "date-time"
          },
          "limits": {
            "$ref": "#/components/schemas/v1Limits"
          },
          "namespace": {
            "type": "string",
            "description": "The namespace identifier."
          },
          "privateConnectivities": {
            "type": "array",
            "description": "The private connectivities for the namespace, if any.",
            "items": {
              "$ref": "#/components/schemas/v1PrivateConnectivity"
            }
          },
          "projectId": {
            "type": "string",
            "description": "The id of the project this namespace belongs to."
          },
          "regionStatus": {
            "title": "The status of each region where the namespace is available.\nThe id of the region is the key and the status is the value of the map.\ndeprecated: Use replicas field instead.",
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/v1NamespaceRegionStatus"
            }
          },
          "replicas": {
            "title": "The status of each replica where the namespace is available.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/v1Replica"
            }
          },
          "resourceVersion": {
            "type": "string",
            "description": "The current version of the namespace specification.\nThe next update operation will have to include this version."
          },
          "spec": {
            "$ref": "#/components/schemas/v1NamespaceSpec"
          },
          "state": {
            "$ref": "#/components/schemas/v1ResourceState"
          },
          "tags": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "The tags for the namespace."
          }
        }
      },
      "v1NamespaceAccess": {
        "type": "object",
        "properties": {
          "permission": {
            "$ref": "#/components/schemas/v1NamespaceAccessPermission"
          }
        }
      },
      "v1NamespaceAccessPermission": {
        "type": "string",
        "description": " - PERMISSION_ADMIN: Gives full access to the namespace, including assigning namespace access to other users.\n - PERMISSION_WRITE: Gives write access to the namespace configuration and workflows within the namespace.\n - PERMISSION_READ: Gives read only access to the namespace configuration and workflows within the namespace.",
        "default": "PERMISSION_UNSPECIFIED",
        "enum": [
          "PERMISSION_UNSPECIFIED",
          "PERMISSION_ADMIN",
          "PERMISSION_WRITE",
          "PERMISSION_READ"
        ]
      },
      "v1NamespaceCallerRateLimit": {
        "type": "object",
        "properties": {
          "namespaceId": {
            "type": "string",
            "description": "The calling namespace to match exactly.\nRequired. Immutable."
          },
          "rps": {
            "type": "number",
            "description": "The number of requests per second that are allowed.\nMust be non-negative and finite. A value of 0 denies all traffic from this caller.",
            "format": "double"
          }
        },
        "description": "The limit for a specific calling namespace."
      },
      "v1NamespaceCapacityInfo": {
        "type": "object",
        "properties": {
          "currentCapacity": {
            "$ref": "#/components/schemas/v1Capacity"
          },
          "hasLegacyLimits": {
            "type": "boolean",
            "description": "Whether the namespace's APS limit was set by Temporal Support."
          },
          "modeOptions": {
            "$ref": "#/components/schemas/NamespaceCapacityInfoCapacityModeOptions"
          },
          "namespace": {
            "type": "string",
            "description": "The namespace identifier."
          },
          "stats": {
            "$ref": "#/components/schemas/NamespaceCapacityInfoStats"
          }
        },
        "description": "NamespaceCapacityInfo contains detailed capacity information for a namespace."
      },
      "v1NamespaceDefaultCallerRateLimit": {
        "type": "object",
        "properties": {
          "rps": {
            "type": "number",
            "description": "The number of requests per second that are allowed.\nMust be non-negative and finite. A value of 0 denies all traffic.",
            "format": "double"
          }
        },
        "description": "The default limit for calling namespaces."
      },
      "v1NamespaceRegionStatus": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "The id of the async operation that is making changes to where the namespace is available, if any."
          },
          "state": {
            "$ref": "#/components/schemas/v1NamespaceRegionStatusState"
          }
        }
      },
      "v1NamespaceRegionStatusState": {
        "type": "string",
        "description": " - STATE_ADDING: The region is being added to the namespace.\n - STATE_ACTIVE: The namespace is active in this region.\n - STATE_PASSIVE: The namespace is passive in this region.\n - STATE_REMOVING: The region is being removed from the namespace.\n - STATE_FAILED: The region failed to be added/removed, check failure_reason in the last async_operation status for more details.",
        "default": "STATE_UNSPECIFIED",
        "enum": [
          "STATE_UNSPECIFIED",
          "STATE_ADDING",
          "STATE_ACTIVE",
          "STATE_PASSIVE",
          "STATE_REMOVING",
          "STATE_FAILED"
        ]
      },
      "v1NamespaceScopedAccess": {
        "type": "object",
        "properties": {
          "access": {
            "$ref": "#/components/schemas/v1NamespaceAccess"
          },
          "namespace": {
            "type": "string",
            "description": "The namespace the service account is assigned to - immutable."
          }
        }
      },
      "v1NamespaceSpec": {
        "type": "object",
        "properties": {
          "apiKeyAuth": {
            "$ref": "#/components/schemas/v1ApiKeyAuthSpec"
          },
          "capacitySpec": {
            "$ref": "#/components/schemas/v1CapacitySpec"
          },
          "codecServer": {
            "$ref": "#/components/schemas/v1CodecServerSpec"
          },
          "connectivityRuleIds": {
            "title": "The private connectivity configuration for the namespace.\nThis will apply the connectivity rules specified to the namespace.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "description": {
            "title": "The description is a human-readable description of the namespace purpose.\nMust be at most 255 printable ASCII characters plus whitespace.\nOptional, default is empty.",
            "type": "string"
          },
          "encryptionValidation": {
            "$ref": "#/components/schemas/v1EncryptionValidationSpec"
          },
          "fairness": {
            "$ref": "#/components/schemas/v1FairnessSpec"
          },
          "highAvailability": {
            "$ref": "#/components/schemas/v1HighAvailabilitySpec"
          },
          "lifecycle": {
            "$ref": "#/components/schemas/cloudnamespacev1LifecycleSpec"
          },
          "mtlsAuth": {
            "$ref": "#/components/schemas/v1MtlsAuthSpec"
          },
          "name": {
            "type": "string",
            "description": "The name to use for the namespace.\nThis will create a namespace that's available at '<name>.<account>.tmprl.cloud:7233'.\nThe name is immutable. Once set, it cannot be changed."
          },
          "regions": {
            "title": "The ids of the regions where the namespace should be available.\nThe GetRegions API can be used to get the list of valid region ids.\nSpecifying more than one region makes the namespace \"global\", which is currently a preview only feature with restricted access.\nPlease reach out to Temporal support for more information on global namespaces.\nWhen provisioned the global namespace will be active on the first region in the list and passive on the rest.\nNumber of supported regions is 2.\nThe regions is immutable. Once set, it cannot be changed.\nExample: [\"aws-us-west-2\"].\nDeprecated: Use replicas field instead.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "replicas": {
            "title": "The replication configuration for the namespace.\nAt least one replica must be specified.\nOnly one replica can be marked to be the desired active one.\nThe status of each replica is available in the Namespace.replicas field.\nUse HighAvailabilitySpec to set the preferred primary replica ID.\nIf the preferred primary replica ID is not set, the first replica in this replicas list will be the preferred primary.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/v1ReplicaSpec"
            }
          },
          "retentionDays": {
            "type": "integer",
            "description": "The number of days the workflows data will be retained for.\nChanges to the retention period may impact your storage costs.\nAny changes to the retention period will be applied to all new running workflows.",
            "format": "int32"
          },
          "searchAttributes": {
            "title": "The custom search attributes to use for the namespace.\nThe name of the attribute is the key and the type is the value.\nNote: currently deleting a search attribute is not supported.\nOptional, default is empty.",
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/NamespaceSpecSearchAttributeType"
            }
          }
        }
      },
      "v1NoConnectivityRules": {
        "type": "object"
      },
      "v1OwnerType": {
        "type": "string",
        "description": " - OWNER_TYPE_USER: The owner is a user.\n - OWNER_TYPE_SERVICE_ACCOUNT: The owner is a service account.",
        "default": "OWNER_TYPE_UNSPECIFIED",
        "enum": [
          "OWNER_TYPE_UNSPECIFIED",
          "OWNER_TYPE_USER",
          "OWNER_TYPE_SERVICE_ACCOUNT"
        ]
      },
      "v1Payload": {
        "type": "object",
        "properties": {
          "data": {
            "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$",
            "type": "string",
            "format": "byte"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$",
              "type": "string",
              "format": "byte"
            }
          }
        },
        "description": "Represents some binary (byte array) data (ex: activity input parameters or workflow result) with\nmetadata which describes this binary data (format, encoding, encryption, etc). Serialization\nof the data may be user-defined."
      },
      "v1Principal": {
        "type": "object",
        "properties": {
          "apiKeyId": {
            "type": "string",
            "description": "The api key id of the principal if provided."
          },
          "id": {
            "type": "string",
            "description": "The id of the principal."
          },
          "name": {
            "type": "string",
            "description": "The name of the principal."
          },
          "type": {
            "type": "string",
            "description": "The type of the principal. \nPossible type values: user, serviceaccount."
          }
        }
      },
      "v1PrivateConnectivity": {
        "type": "object",
        "properties": {
          "awsPrivateLink": {
            "$ref": "#/components/schemas/v1AWSPrivateLinkInfo"
          },
          "region": {
            "type": "string",
            "description": "The id of the region where the private connectivity applies."
          }
        }
      },
      "v1PrivateConnectivityRule": {
        "type": "object",
        "properties": {
          "azurePeResourceId": {
            "title": "azure_pe_resource_id is the ARM resource ID of the customer's Azure Private Endpoint.\nRequired for Azure private connectivity rules.\nExample: \"/subscriptions/{sub}/resourceGroups/{rg}/providers/Microsoft.Network/privateEndpoints/{name}\"",
            "type": "string"
          },
          "connectionId": {
            "type": "string",
            "description": "Connection id provided by user to enforce the private connectivity.\nFor AWS: VPC endpoint ID (e.g. \"vpce-0123456789abcdef0\").\nFor GCP: PSC connection ID (numeric string).\nFor Azure: not set by the customer; populated internally with the PPv2 LinkID\nreturned by the infra plane during Private Endpoint connection approval."
          },
          "gcpProjectId": {
            "type": "string",
            "description": "For GCP private connectivity service, GCP needs both GCP project id and the Private Service Connect Connection IDs.\nAWS only needs the connection_id."
          },
          "region": {
            "title": "The region of the connectivity rule. This should align with the namespace.\nExample: \"aws-us-west-2\", \"gcp-us-central1\", \"azure-eastus\"",
            "type": "string"
          }
        },
        "description": "A private connectivity rule allows connections from a specific private vpc only."
      },
      "v1Project": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "title": "The id of the async operation that is creating/updating/deleting the project, if any",
            "type": "string"
          },
          "createdTime": {
            "title": "The date and time when the project was created",
            "type": "string",
            "format": "date-time"
          },
          "id": {
            "title": "The id of the user",
            "type": "string"
          },
          "lastModifiedTime": {
            "title": "The date and time when the project was last modified\nWill not be set if the project has never been modified",
            "type": "string",
            "format": "date-time"
          },
          "resourceVersion": {
            "title": "The current version of the project specification\nThe next update operation will have to include this version",
            "type": "string"
          },
          "spec": {
            "$ref": "#/components/schemas/v1ProjectSpec"
          },
          "state": {
            "$ref": "#/components/schemas/v1ResourceState"
          }
        }
      },
      "v1ProjectAccess": {
        "type": "object",
        "properties": {
          "customRoles": {
            "title": "List of project-scoped custom role IDs assigned to the principal for this project.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "role": {
            "$ref": "#/components/schemas/ProjectAccessProjectRole"
          }
        }
      },
      "v1ProjectScopedAccess": {
        "type": "object",
        "properties": {
          "access": {
            "$ref": "#/components/schemas/v1ProjectAccess"
          },
          "namespaceAccesses": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/v1NamespaceAccess"
            },
            "description": "The map of namespace accesses - mutable.\nThe key is the namespace name and the value is the access to the namespace."
          },
          "projectId": {
            "type": "string",
            "description": "The ID of the project the service account is assigned to - immutable."
          }
        }
      },
      "v1ProjectSpec": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string",
            "description": "A description of the project."
          },
          "displayName": {
            "type": "string",
            "description": "The display name of the project."
          },
          "lifecycle": {
            "$ref": "#/components/schemas/cloudprojectv1LifecycleSpec"
          }
        }
      },
      "v1PubSubSpec": {
        "type": "object",
        "properties": {
          "gcpProjectId": {
            "title": "The gcp project id of pubsub topic and service account",
            "type": "string"
          },
          "serviceAccountId": {
            "title": "The customer service account id that Temporal Cloud impersonates for writing records to customer's pubsub topic",
            "type": "string"
          },
          "topicName": {
            "title": "Destination pubsub topic name for us",
            "type": "string"
          }
        }
      },
      "v1PublicConnectivityRule": {
        "type": "object",
        "properties": {
          "enableStableIps": {
            "title": "Flag to determine namespace is connected via a predictable set of IPs on public internet",
            "type": "boolean"
          }
        },
        "description": "A public connectivity rule allows access to the namespace via the public internet."
      },
      "v1Record": {
        "type": "object",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/v1RecordType"
          },
          "unit": {
            "$ref": "#/components/schemas/v1RecordUnit"
          },
          "value": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "v1RecordGroup": {
        "type": "object",
        "properties": {
          "groupBys": {
            "type": "array",
            "description": "GroupBy keys and their values for this record group. Multiple fields are combined with logical AND.",
            "items": {
              "$ref": "#/components/schemas/v1GroupBy"
            }
          },
          "records": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/v1Record"
            }
          }
        }
      },
      "v1RecordType": {
        "type": "string",
        "default": "RECORD_TYPE_UNSPECIFIED",
        "enum": [
          "RECORD_TYPE_UNSPECIFIED",
          "RECORD_TYPE_ACTIONS",
          "RECORD_TYPE_ACTIVE_STORAGE",
          "RECORD_TYPE_RETAINED_STORAGE"
        ]
      },
      "v1RecordUnit": {
        "type": "string",
        "default": "RECORD_UNIT_UNSPECIFIED",
        "enum": [
          "RECORD_UNIT_UNSPECIFIED",
          "RECORD_UNIT_NUMBER",
          "RECORD_UNIT_BYTE_SECONDS"
        ]
      },
      "v1Region": {
        "type": "object",
        "properties": {
          "cloudProvider": {
            "$ref": "#/components/schemas/RegionCloudProvider"
          },
          "cloudProviderRegion": {
            "type": "string",
            "description": "The region identifier as defined by the cloud provider."
          },
          "id": {
            "type": "string",
            "description": "The id of the temporal cloud region."
          },
          "location": {
            "type": "string",
            "description": "The human readable location of the region."
          }
        }
      },
      "v1RemoveUserGroupMemberResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1RenameCustomSearchAttributeResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1Replica": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The id of the replica. This is generated by Temporal after a replica is created."
          },
          "isPrimary": {
            "type": "boolean",
            "description": "Whether this replica is currently the primary one."
          },
          "region": {
            "type": "string",
            "description": "The cloud provider and region of this replica."
          },
          "state": {
            "$ref": "#/components/schemas/ReplicaReplicaState"
          }
        }
      },
      "v1ReplicaSpec": {
        "type": "object",
        "properties": {
          "region": {
            "type": "string",
            "description": "The id of the region where the replica should be placed.\nThe GetRegions API can be used to get the list of valid region ids.\nAll the replicas must adhere to the region's max_in_region_replicas limit and connectable_region_ids.\nRequired. Immutable.\nExample: \"aws-us-west-2\"."
          }
        }
      },
      "v1ResourceState": {
        "type": "string",
        "description": " - RESOURCE_STATE_ACTIVATING: The resource is being activated.\n - RESOURCE_STATE_ACTIVATION_FAILED: The resource failed to activate. This is an error state. Reach out to support for remediation.\n - RESOURCE_STATE_ACTIVE: The resource is active and ready to use.\n - RESOURCE_STATE_UPDATING: The resource is being updated.\n - RESOURCE_STATE_UPDATE_FAILED: The resource failed to update. This is an error state. Reach out to support for remediation.\n - RESOURCE_STATE_DELETING: The resource is being deleted.\n - RESOURCE_STATE_DELETE_FAILED: The resource failed to delete. This is an error state. Reach out to support for remediation.\n - RESOURCE_STATE_DELETED: The resource has been deleted.\n - RESOURCE_STATE_SUSPENDED: The resource is suspended and not available for use. Reach out to support for remediation.\n - RESOURCE_STATE_EXPIRED: The resource has expired and is no longer available for use.",
        "default": "RESOURCE_STATE_UNSPECIFIED",
        "enum": [
          "RESOURCE_STATE_UNSPECIFIED",
          "RESOURCE_STATE_ACTIVATING",
          "RESOURCE_STATE_ACTIVATION_FAILED",
          "RESOURCE_STATE_ACTIVE",
          "RESOURCE_STATE_UPDATING",
          "RESOURCE_STATE_UPDATE_FAILED",
          "RESOURCE_STATE_DELETING",
          "RESOURCE_STATE_DELETE_FAILED",
          "RESOURCE_STATE_DELETED",
          "RESOURCE_STATE_SUSPENDED",
          "RESOURCE_STATE_EXPIRED"
        ]
      },
      "v1S3Spec": {
        "type": "object",
        "properties": {
          "awsAccountId": {
            "type": "string",
            "description": "The AWS account ID associated with the S3 bucket and the assumed role."
          },
          "bucketName": {
            "type": "string",
            "description": "The name of the destination S3 bucket where Temporal will send data."
          },
          "kmsArn": {
            "type": "string",
            "description": "The AWS Key Management Service (KMS) ARN used for encryption."
          },
          "region": {
            "type": "string",
            "description": "The region where the S3 bucket is located."
          },
          "roleName": {
            "type": "string",
            "description": "The IAM role that Temporal Cloud assumes for writing records to the customer's S3 bucket."
          }
        }
      },
      "v1SCIMGroupSpec": {
        "type": "object",
        "properties": {
          "idpId": {
            "type": "string",
            "description": "The id used in the upstream identity provider."
          }
        }
      },
      "v1ServiceAccount": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "The id of the async operation that is creating/updating/deleting the service account, if any."
          },
          "createdTime": {
            "type": "string",
            "description": "The date and time when the service account was created.",
            "format": "date-time"
          },
          "id": {
            "type": "string",
            "description": "The id of the service account."
          },
          "lastModifiedTime": {
            "type": "string",
            "description": "The date and time when the service account was last modified\nWill not be set if the service account has never been modified.",
            "format": "date-time"
          },
          "resourceVersion": {
            "type": "string",
            "description": "The current version of the service account specification.\nThe next update operation will have to include this version."
          },
          "spec": {
            "$ref": "#/components/schemas/v1ServiceAccountSpec"
          },
          "state": {
            "$ref": "#/components/schemas/v1ResourceState"
          }
        }
      },
      "v1ServiceAccountNamespaceAssignment": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The ID of the service account."
          },
          "inheritedAccess": {
            "type": "boolean",
            "description": "True if the service account has inherited access to the namespace through an account or project role."
          },
          "name": {
            "type": "string",
            "description": "The name of the service account."
          },
          "namespaceAccess": {
            "$ref": "#/components/schemas/v1NamespaceAccess"
          },
          "resourceVersion": {
            "type": "string",
            "description": "The current resource version of the service account."
          }
        }
      },
      "v1ServiceAccountProjectAssignment": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The id of the service account."
          },
          "inheritedAccess": {
            "title": "True if the user has inherited access to the project through an account role",
            "type": "boolean"
          },
          "name": {
            "type": "string",
            "description": "The name of the service account."
          },
          "projectAccess": {
            "$ref": "#/components/schemas/v1ProjectAccess"
          },
          "resourceVersion": {
            "type": "string"
          }
        }
      },
      "v1ServiceAccountSpec": {
        "type": "object",
        "properties": {
          "access": {
            "$ref": "#/components/schemas/v1Access"
          },
          "description": {
            "type": "string",
            "description": "The description associated with the service account - optional.\nThe description is mutable."
          },
          "name": {
            "type": "string",
            "description": "The name associated with the service account.\nThe name is mutable, but must be unique across all your active service accounts."
          },
          "namespaceScopedAccess": {
            "$ref": "#/components/schemas/v1NamespaceScopedAccess"
          },
          "projectScopedAccess": {
            "$ref": "#/components/schemas/v1ProjectScopedAccess"
          }
        }
      },
      "v1SetServiceAccountNamespaceAccessResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1SetServiceAccountProjectAccessResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1SetUserGroupNamespaceAccessResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1SetUserGroupProjectAccessResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1SetUserNamespaceAccessResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1SetUserProjectAccessResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1UpdateAccountAuditLogSinkResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1UpdateAccountRequest": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "type": "string",
            "description": "The id to use for this async operation.\nOptional, if not provided a random id will be generated."
          },
          "resourceVersion": {
            "type": "string",
            "description": "The version of the account for which this update is intended for.\nThe latest version can be found in the GetAccount operation response."
          },
          "spec": {
            "$ref": "#/components/schemas/v1AccountSpec"
          }
        }
      },
      "v1UpdateAccountResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1UpdateApiKeyResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1UpdateCallerRateLimitResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1UpdateCustomRoleResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1UpdateNamespaceExportSinkResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1UpdateNamespaceResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1UpdateNamespaceTagsResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1UpdateNexusEndpointResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1UpdateProjectResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1UpdateServiceAccountResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1UpdateUserGroupResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1UpdateUserResponse": {
        "type": "object",
        "properties": {
          "asyncOperation": {
            "$ref": "#/components/schemas/v1AsyncOperation"
          }
        }
      },
      "v1User": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "title": "The id of the async operation that is creating/updating/deleting the user, if any",
            "type": "string"
          },
          "createdTime": {
            "title": "The date and time when the user was created",
            "type": "string",
            "format": "date-time"
          },
          "groupMemberships": {
            "type": "array",
            "description": "The SCIM and Cloud groups the user is a member of, without their access or roles.\nThis field is only set if include_group_memberships in the GetUser or GetUsers request is true\nand the caller has access to the user's full identity information.",
            "items": {
              "$ref": "#/components/schemas/v1UserGroupMembership"
            }
          },
          "id": {
            "title": "The id of the user",
            "type": "string"
          },
          "invitation": {
            "$ref": "#/components/schemas/v1Invitation"
          },
          "lastModifiedTime": {
            "title": "The date and time when the user was last modified\nWill not be set if the user has never been modified",
            "type": "string",
            "format": "date-time"
          },
          "resourceVersion": {
            "title": "The current version of the user specification\nThe next update operation will have to include this version",
            "type": "string"
          },
          "spec": {
            "$ref": "#/components/schemas/v1UserSpec"
          },
          "state": {
            "$ref": "#/components/schemas/v1ResourceState"
          }
        }
      },
      "v1UserGroup": {
        "type": "object",
        "properties": {
          "asyncOperationId": {
            "title": "The id of the async operation that is creating/updating/deleting the group, if any",
            "type": "string"
          },
          "createdTime": {
            "title": "The date and time when the group was created",
            "type": "string",
            "format": "date-time"
          },
          "id": {
            "title": "The id of the group",
            "type": "string"
          },
          "lastModifiedTime": {
            "title": "The date and time when the group was last modified\nWill not be set if the group has never been modified",
            "type": "string",
            "format": "date-time"
          },
          "resourceVersion": {
            "title": "The current version of the group specification\nThe next update operation will have to include this version",
            "type": "string"
          },
          "spec": {
            "$ref": "#/components/schemas/v1UserGroupSpec"
          },
          "state": {
            "$ref": "#/components/schemas/v1ResourceState"
          }
        }
      },
      "v1UserGroupMember": {
        "type": "object",
        "properties": {
          "createdTime": {
            "type": "string",
            "format": "date-time"
          },
          "memberId": {
            "$ref": "#/components/schemas/v1UserGroupMemberId"
          }
        }
      },
      "v1UserGroupMemberId": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "string"
          }
        }
      },
      "v1UserGroupMembership": {
        "type": "object",
        "properties": {
          "displayName": {
            "type": "string",
            "description": "The display name of the group."
          },
          "groupId": {
            "type": "string",
            "description": "The id of the group."
          }
        },
        "description": "A group the user is a member of."
      },
      "v1UserGroupNamespaceAssignment": {
        "type": "object",
        "properties": {
          "displayName": {
            "type": "string",
            "description": "The display name of the group."
          },
          "id": {
            "type": "string",
            "description": "The ID of the group."
          },
          "inheritedAccess": {
            "type": "boolean",
            "description": "True if the group has inherited access to the namespace through an account or project role."
          },
          "namespaceAccess": {
            "$ref": "#/components/schemas/v1NamespaceAccess"
          },
          "resourceVersion": {
            "type": "string",
            "description": "The current resource version of the group."
          }
        }
      },
      "v1UserGroupProjectAssignment": {
        "type": "object",
        "properties": {
          "displayName": {
            "title": "The display name of the group",
            "type": "string"
          },
          "id": {
            "title": "The id of the group",
            "type": "string"
          },
          "inheritedAccess": {
            "title": "True if the group has inherited access to the project through an account role",
            "type": "boolean"
          },
          "projectAccess": {
            "$ref": "#/components/schemas/v1ProjectAccess"
          },
          "resourceVersion": {
            "type": "string"
          }
        }
      },
      "v1UserGroupSpec": {
        "type": "object",
        "properties": {
          "access": {
            "$ref": "#/components/schemas/v1Access"
          },
          "cloudGroup": {
            "$ref": "#/components/schemas/v1CloudGroupSpec"
          },
          "displayName": {
            "type": "string",
            "description": "The display name of the group."
          },
          "googleGroup": {
            "$ref": "#/components/schemas/v1GoogleGroupSpec"
          },
          "scimGroup": {
            "$ref": "#/components/schemas/v1SCIMGroupSpec"
          }
        }
      },
      "v1UserNamespaceAssignment": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "description": "The email of the user."
          },
          "id": {
            "type": "string",
            "description": "The ID of the user."
          },
          "inheritedAccess": {
            "type": "boolean",
            "description": "True if the user has inherited access to the namespace through an account or project role."
          },
          "namespaceAccess": {
            "$ref": "#/components/schemas/v1NamespaceAccess"
          },
          "resourceVersion": {
            "type": "string",
            "description": "The current resource version of the user."
          }
        }
      },
      "v1UserProjectAssignment": {
        "type": "object",
        "properties": {
          "email": {
            "title": "The email of the user",
            "type": "string"
          },
          "id": {
            "title": "The id of the user",
            "type": "string"
          },
          "inheritedAccess": {
            "title": "True if the user has inherited access to the project through an account role",
            "type": "boolean"
          },
          "projectAccess": {
            "$ref": "#/components/schemas/v1ProjectAccess"
          },
          "resourceVersion": {
            "type": "string",
            "description": "The current resource version of the user."
          }
        }
      },
      "v1UserSpec": {
        "type": "object",
        "properties": {
          "access": {
            "$ref": "#/components/schemas/v1Access"
          },
          "email": {
            "title": "The email address associated to the user",
            "type": "string"
          }
        }
      },
      "v1ValidateAccountAuditLogSinkRequest": {
        "type": "object",
        "properties": {
          "spec": {
            "$ref": "#/components/schemas/v1AuditLogSinkSpec"
          }
        }
      },
      "v1ValidateAccountAuditLogSinkResponse": {
        "type": "object"
      },
      "v1ValidateNamespaceExportSinkResponse": {
        "type": "object"
      },
      "v1WorkerTargetSpec": {
        "type": "object",
        "properties": {
          "namespaceId": {
            "type": "string",
            "description": "The target cloud namespace to route requests to. Namespace must be in same account as the endpoint. This field is mutable."
          },
          "taskQueue": {
            "type": "string",
            "description": "The task queue on the cloud namespace to route requests to. This field is mutable."
          }
        }
      }
    },
    "securitySchemes": {
      "ApiKey": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "x-original-swagger-version": "2.0"
}
