{
  "components": {
    "schemas": {
      "nexus.v1.APIKeyCreatedReply": {
        "properties": {
          "api_key": {
            "$ref": "#/components/schemas/nexus.v1.APIKeyReply"
          },
          "secret": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.APIKeyReply": {
        "properties": {
          "allowed_cidrs": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "created_at": {
            "type": "string"
          },
          "customer_account_id": {
            "type": "string"
          },
          "environment": {
            "type": "string"
          },
          "expires_at": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "last_used_at": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "prefix": {
            "type": "string"
          },
          "revoked_at": {
            "type": "string"
          },
          "scopes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "service_account_id": {
            "type": "string"
          },
          "tenant_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.AccessCheckInput": {
        "properties": {
          "action": {
            "type": "string"
          },
          "attributes_json": {
            "type": "string"
          },
          "permission": {
            "type": "string"
          },
          "resource_id": {
            "type": "string"
          },
          "resource_type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.AccessDecisionReply": {
        "properties": {
          "action": {
            "type": "string"
          },
          "allowed": {
            "type": "boolean"
          },
          "index": {
            "format": "int32",
            "type": "integer"
          },
          "permission": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "resource_id": {
            "type": "string"
          },
          "resource_type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.AccountGroupListReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.AccountGroupReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.AccountGroupMemberReply": {
        "properties": {
          "account_type": {
            "type": "string"
          },
          "consent_status": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "customer_account_id": {
            "type": "string"
          },
          "customer_code": {
            "type": "string"
          },
          "customer_name": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "priority": {
            "format": "int32",
            "type": "integer"
          },
          "relationship": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.AccountGroupReply": {
        "properties": {
          "code": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "environment_id": {
            "type": "string"
          },
          "group_type": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "member_count": {
            "type": "string"
          },
          "members": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.AccountGroupMemberReply"
            },
            "type": "array"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.AcquireConcurrencyRequest": {
        "properties": {
          "customer_account_id": {
            "type": "string"
          },
          "model": {
            "type": "string"
          },
          "offer_id": {
            "type": "string"
          },
          "operation_key": {
            "type": "string"
          },
          "operation_type": {
            "type": "string"
          },
          "product_id": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ActivateAuthorizationModelRequest": {
        "properties": {
          "expected_revision": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "model_id": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "trial_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ActivateBreakGlassAccessRequestRequest": {
        "properties": {
          "duration_seconds": {
            "type": "string"
          },
          "expected_version": {
            "type": "string"
          },
          "request_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ActivateCustomerSegmentRevisionRequest": {
        "properties": {
          "expected_version": {
            "type": "string"
          },
          "revision_id": {
            "type": "string"
          },
          "segment_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ActivatePaymentConnectionRequest": {
        "properties": {
          "connection_id": {
            "type": "string"
          },
          "expected_version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.AdoptCapabilityRequest": {
        "properties": {
          "code": {
            "type": "string"
          },
          "model_route_code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "offer_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.AdoptableOfferListReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.AdoptableOfferReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.AdoptableOfferReply": {
        "properties": {
          "code": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "route_code": {
            "type": "string"
          },
          "sales_model": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ApproveSettlementReviewCaseRequest": {
        "properties": {
          "case_id": {
            "type": "string"
          },
          "comment": {
            "type": "string"
          },
          "execution_status": {
            "type": "string"
          },
          "expected_version": {
            "type": "string"
          },
          "failure_code": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.AssignSettlementReviewCaseRequest": {
        "properties": {
          "action": {
            "type": "string"
          },
          "case_id": {
            "type": "string"
          },
          "expected_version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.AudioUsageReply": {
        "properties": {
          "actual_quantity": {
            "type": "string"
          },
          "attempt_id": {
            "type": "string"
          },
          "execution_status": {
            "type": "string"
          },
          "meter_code": {
            "type": "string"
          },
          "operation_id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.AuthorizationCheckReply": {
        "properties": {
          "decisions": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.AuthorizationDecision"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.AuthorizationCheckRequest": {
        "properties": {
          "permissions": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.AuthorizationDecision": {
        "properties": {
          "allowed": {
            "type": "boolean"
          },
          "permission": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.AuthorizationModelActivationReply": {
        "properties": {
          "actor_id": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "model_id": {
            "type": "string"
          },
          "previous_model_id": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "revision": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.AuthorizationModelDifferenceReply": {
        "properties": {
          "action": {
            "type": "string"
          },
          "after": {
            "type": "boolean"
          },
          "after_reason": {
            "type": "string"
          },
          "before": {
            "type": "boolean"
          },
          "before_reason": {
            "type": "string"
          },
          "index": {
            "format": "int32",
            "type": "integer"
          },
          "resource_id": {
            "type": "string"
          },
          "resource_type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.AuthorizationModelReply": {
        "properties": {
          "config_json": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "published_at": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.AuthorizationModelStateReply": {
        "properties": {
          "active": {
            "$ref": "#/components/schemas/nexus.v1.AuthorizationModelReply"
          },
          "revision": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.AuthorizationModelTrialReply": {
        "properties": {
          "base_revision": {
            "type": "string"
          },
          "changes": {
            "format": "int32",
            "type": "integer"
          },
          "decisions": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.AuthorizationModelDifferenceReply"
            },
            "type": "array"
          },
          "expires_at": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "model_id": {
            "type": "string"
          },
          "newly_allowed": {
            "format": "int32",
            "type": "integer"
          },
          "newly_denied": {
            "format": "int32",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "nexus.v1.AuthorizationModelsReply": {
        "properties": {
          "active": {
            "$ref": "#/components/schemas/nexus.v1.AuthorizationModelReply"
          },
          "history": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.AuthorizationModelActivationReply"
            },
            "type": "array"
          },
          "revision": {
            "type": "string"
          },
          "versions": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.AuthorizationModelReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.AuthorizationPolicyReply": {
        "properties": {
          "action": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "data_scope": {
            "type": "string"
          },
          "effect": {
            "type": "string"
          },
          "filter_json": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "object_pattern": {
            "type": "string"
          },
          "priority": {
            "format": "int32",
            "type": "integer"
          },
          "status": {
            "type": "string"
          },
          "subject_ref": {
            "type": "string"
          },
          "subject_type": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.BatchAccessCheckReply": {
        "properties": {
          "decisions": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.AccessDecisionReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.BatchAccessCheckRequest": {
        "properties": {
          "checks": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.AccessCheckInput"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.BatchCustomerSegmentMembersRequest": {
        "properties": {
          "customer_account_ids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "segment_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.BatchReportMeteringEvidenceReply": {
        "properties": {
          "accepted_count": {
            "format": "int32",
            "type": "integer"
          },
          "acknowledgements": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.MeteringEvidenceAck"
            },
            "type": "array"
          },
          "acknowledgements_compacted": {
            "type": "boolean"
          },
          "duplicate_count": {
            "format": "int32",
            "type": "integer"
          },
          "failed_count": {
            "format": "int32",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "nexus.v1.BatchReportMeteringEvidenceRequest": {
        "properties": {
          "compact_acknowledgements": {
            "description": "Successful batches may omit per-item acknowledgements. Counts remain\n authoritative; any item failure forces the full acknowledgement list.",
            "type": "boolean"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.MeteringEvidenceItem"
            },
            "type": "array"
          },
          "operation_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.BillReply": {
        "properties": {
          "bill_no": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "period_end": {
            "type": "string"
          },
          "period_start": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "subtotal": {
            "type": "string"
          },
          "total": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.BreakGlassAccessRequestReply": {
        "properties": {
          "activated_at": {
            "type": "string"
          },
          "activated_by_id": {
            "type": "string"
          },
          "expires_at": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "requested_actions": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "requested_at": {
            "type": "string"
          },
          "requested_by_id": {
            "type": "string"
          },
          "review_comment": {
            "type": "string"
          },
          "reviewed_at": {
            "type": "string"
          },
          "reviewed_by_id": {
            "type": "string"
          },
          "revoked_at": {
            "type": "string"
          },
          "revoked_by_id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "tenant_id": {
            "type": "string"
          },
          "ticket_ref": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.BudgetPoolListReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.BudgetPoolReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.BudgetPoolReply": {
        "properties": {
          "code": {
            "type": "string"
          },
          "consumed_amount": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "enforcement": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "limit_amount": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "period_ends_at": {
            "type": "string"
          },
          "period_kind": {
            "type": "string"
          },
          "period_starts_at": {
            "type": "string"
          },
          "reserved_amount": {
            "type": "string"
          },
          "scope": {
            "type": "string"
          },
          "scope_ref_id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CancelCustomerPortalSubscriptionRequest": {
        "properties": {
          "subscription_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CancelSubscriptionRequest": {
        "properties": {
          "at_period_end": {
            "type": "boolean"
          },
          "reason": {
            "type": "string"
          },
          "subscription_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CapabilityCheck": {
        "properties": {
          "code": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "level": {
            "type": "string"
          },
          "passed": {
            "type": "boolean"
          },
          "title": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CapabilityConfiguration": {
        "properties": {
          "integration": {
            "$ref": "#/components/schemas/nexus.v1.CapabilityIntegrationConfig"
          },
          "metering": {
            "$ref": "#/components/schemas/nexus.v1.CapabilityMeteringConfig"
          },
          "pricing": {
            "$ref": "#/components/schemas/nexus.v1.CapabilityPricingConfig"
          }
        },
        "type": "object"
      },
      "nexus.v1.CapabilityExecutionProfileReply": {
        "description": "Runtime defaults are snapshots of the currently published Capability\n Revision. Sidecars must still supply the customer, resource identifier,\n execution key and authoritative estimated/actual quantity for each run.",
        "properties": {
          "billing_meter_code": {
            "type": "string"
          },
          "callback_mode": {
            "type": "string"
          },
          "capability_id": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "coordinated_reservation": {
            "type": "boolean"
          },
          "default_quality": {
            "type": "string"
          },
          "downgrade_quality": {
            "type": "string"
          },
          "entitlement_code": {
            "type": "string"
          },
          "entitlement_resource_type": {
            "type": "string"
          },
          "environment_id": {
            "type": "string"
          },
          "exhaustion_action": {
            "type": "string"
          },
          "grace_seconds": {
            "format": "int32",
            "type": "integer"
          },
          "kind": {
            "type": "string"
          },
          "max_participants": {
            "format": "int32",
            "type": "integer"
          },
          "max_session_seconds": {
            "format": "int32",
            "type": "integer"
          },
          "max_tokens": {
            "format": "int32",
            "type": "integer"
          },
          "media_billing_mode": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "offer_id": {
            "type": "string"
          },
          "operation_type": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          },
          "quality_weights": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          },
          "reclaim_on_delete": {
            "type": "boolean"
          },
          "requires_entitlement": {
            "type": "boolean"
          },
          "reservation_slice_seconds": {
            "format": "int32",
            "type": "integer"
          },
          "resource_type": {
            "type": "string"
          },
          "revision_id": {
            "type": "string"
          },
          "streaming": {
            "type": "boolean"
          },
          "traffic_dimension": {
            "type": "string"
          },
          "traffic_policy_id": {
            "type": "string"
          },
          "upstream_model": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CapabilityGeneratedRefs": {
        "properties": {
          "model_route_id": {
            "type": "string"
          },
          "offer_id": {
            "type": "string"
          },
          "plan_id": {
            "type": "string"
          },
          "plan_version_id": {
            "type": "string"
          },
          "price_book_id": {
            "type": "string"
          },
          "pricing_revision_id": {
            "type": "string"
          },
          "product_id": {
            "type": "string"
          },
          "sku_id": {
            "type": "string"
          },
          "sku_version_id": {
            "type": "string"
          },
          "traffic_policy_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CapabilityIntegrationConfig": {
        "properties": {
          "callback_mode": {
            "type": "string"
          },
          "coordinated_reservation": {
            "description": "Explicitly adopts the multi-resource execution coordinator. MODEL routes\n are wired automatically; other capability kinds use the trusted Sidecar\n ExecutionService contract. Existing revisions remain on their prior path.",
            "type": "boolean"
          },
          "default_quality": {
            "type": "string"
          },
          "downgrade_quality": {
            "type": "string"
          },
          "exhaustion_action": {
            "type": "string"
          },
          "grace_seconds": {
            "format": "int32",
            "type": "integer"
          },
          "max_participants": {
            "format": "int32",
            "type": "integer"
          },
          "max_session_seconds": {
            "format": "int32",
            "type": "integer"
          },
          "max_tokens": {
            "format": "int32",
            "type": "integer"
          },
          "media_billing_mode": {
            "description": "RTC media sessions are controlled by a trusted Sidecar. The Sidecar\n reports cumulative heartbeats; Nexus computes the normalized quantity\n from these immutable revision settings and returns an enforcement action.",
            "type": "string"
          },
          "operation_type": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          },
          "quality_weights": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          },
          "reclaim_on_delete": {
            "type": "boolean"
          },
          "reservation_slice_seconds": {
            "format": "int32",
            "type": "integer"
          },
          "resource_type": {
            "type": "string"
          },
          "streaming": {
            "type": "boolean"
          },
          "traffic_dimension": {
            "type": "string"
          },
          "traffic_limit": {
            "type": "string"
          },
          "traffic_window_seconds": {
            "format": "int32",
            "type": "integer"
          },
          "upstream_model": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CapabilityListReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.CapabilityReply"
            },
            "type": "array"
          },
          "next_cursor": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CapabilityMeteringConfig": {
        "properties": {
          "charge_on_failure": {
            "type": "boolean"
          },
          "meter_code": {
            "type": "string"
          },
          "quota_quantity": {
            "type": "string"
          },
          "quota_unit": {
            "type": "string"
          },
          "reset_period": {
            "type": "string"
          },
          "unlimited": {
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "nexus.v1.CapabilityPricingConfig": {
        "properties": {
          "billing_period": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "customer_segment_discount": {
            "type": "string"
          },
          "customer_segment_ids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "flat_amount": {
            "type": "string"
          },
          "included_quantity": {
            "type": "string"
          },
          "interval_count": {
            "format": "int32",
            "type": "integer"
          },
          "package_price": {
            "type": "string"
          },
          "package_size": {
            "type": "string"
          },
          "pricing_model": {
            "type": "string"
          },
          "sales_model": {
            "type": "string"
          },
          "tiers": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.CapabilityPricingTier"
            },
            "type": "array"
          },
          "trial_days": {
            "format": "int32",
            "type": "integer"
          },
          "unit_rate": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CapabilityPricingTier": {
        "properties": {
          "flat_fee": {
            "type": "string"
          },
          "unit_price": {
            "type": "string"
          },
          "up_to": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CapabilityReply": {
        "properties": {
          "code": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "current_revision": {
            "$ref": "#/components/schemas/nexus.v1.CapabilityRevisionReply"
          },
          "description": {
            "type": "string"
          },
          "draft_revision": {
            "$ref": "#/components/schemas/nexus.v1.CapabilityRevisionReply"
          },
          "environment_id": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CapabilityRevisionReply": {
        "properties": {
          "checks": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.CapabilityCheck"
            },
            "type": "array"
          },
          "config": {
            "$ref": "#/components/schemas/nexus.v1.CapabilityConfiguration"
          },
          "created_at": {
            "type": "string"
          },
          "generated_refs": {
            "$ref": "#/components/schemas/nexus.v1.CapabilityGeneratedRefs"
          },
          "id": {
            "type": "string"
          },
          "last_error": {
            "type": "string"
          },
          "published_at": {
            "type": "string"
          },
          "revision_no": {
            "format": "int32",
            "type": "integer"
          },
          "status": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CatalogProductReply": {
        "properties": {
          "plans": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.PlanReply"
            },
            "type": "array"
          },
          "product": {
            "$ref": "#/components/schemas/nexus.v1.ProductReply"
          },
          "skus": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.SKUReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.CheckEntitlementRequest": {
        "properties": {
          "customer_account_id": {
            "type": "string"
          },
          "entitlement_code": {
            "type": "string"
          },
          "required_amount": {
            "type": "string"
          },
          "resource_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CheckTrafficRequest": {
        "properties": {
          "customer_account_id": {
            "type": "string"
          },
          "model": {
            "type": "string"
          },
          "offer_id": {
            "type": "string"
          },
          "operation_key": {
            "description": "Stable per business execution. It is hashed before decision evidence is\n stored and is never returned by list APIs.",
            "type": "string"
          },
          "operation_type": {
            "type": "string"
          },
          "product_id": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CommitCreditsRequest": {
        "properties": {
          "actual_quantity": {
            "type": "string"
          },
          "dimensions_json": {
            "type": "string"
          },
          "execution_status": {
            "type": "string"
          },
          "failure_code": {
            "type": "string"
          },
          "meter_code": {
            "type": "string"
          },
          "occurred_at": {
            "type": "string"
          },
          "reservation_id": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "source_event_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CommitEntitlementQuotaRequest": {
        "properties": {
          "actual_amount": {
            "type": "string"
          },
          "reservation_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CommitExecutionRequest": {
        "properties": {
          "execution_key": {
            "type": "string"
          },
          "execution_status": {
            "type": "string"
          },
          "failure_code": {
            "type": "string"
          },
          "operation_id": {
            "type": "string"
          },
          "quota_actuals": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.ExecutionQuotaActual"
            },
            "type": "array"
          },
          "reservation_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CompareCustomerSegmentRevisionRequest": {
        "description": "Compares a validated candidate to the segment's active rule in read-only\n shadow mode. It never writes RULE membership or returns Trait values.",
        "properties": {
          "limit": {
            "format": "int32",
            "type": "integer"
          },
          "revision_id": {
            "type": "string"
          },
          "segment_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CompleteAudioUsageRequest": {
        "properties": {
          "actual_quantity": {
            "type": "string"
          },
          "capability_id": {
            "description": "Optional published capability identity from its execution profile. Nexus\n validates it against offer_id and freezes the revision on the Operation.",
            "type": "string"
          },
          "customer_account_id": {
            "type": "string"
          },
          "dimensions_json": {
            "type": "string"
          },
          "estimated_quantity": {
            "type": "string"
          },
          "execution_status": {
            "description": "SUCCEEDED or FAILED. A FAILED operation is handled by the failure-charge policy.",
            "type": "string"
          },
          "failure_code": {
            "type": "string"
          },
          "meter_code": {
            "description": "The single meter that determines the credit reservation and settlement.",
            "type": "string"
          },
          "model": {
            "type": "string"
          },
          "offer_id": {
            "type": "string"
          },
          "operation_key": {
            "type": "string"
          },
          "operation_type": {
            "description": "AUDIO_TRANSCRIBE, AUDIO_SPEECH, AUDIO_GENERATE or AUDIO_PROCESS.",
            "type": "string"
          },
          "provider": {
            "type": "string"
          },
          "provider_request_id": {
            "type": "string"
          },
          "source_event_id": {
            "description": "Stable upstream event ID. Reusing it makes a callback retry idempotent.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ComposedProductListReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.ComposedProductReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.ComposedProductPriceReply": {
        "properties": {
          "amount": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "price_book_id": {
            "type": "string"
          },
          "pricing_model": {
            "type": "string"
          },
          "revision": {
            "format": "int32",
            "type": "integer"
          },
          "rule_set_id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ComposedProductReply": {
        "properties": {
          "components": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.ProductCapabilityComponentReply"
            },
            "type": "array"
          },
          "offer": {
            "$ref": "#/components/schemas/nexus.v1.OfferReply"
          },
          "plan": {
            "$ref": "#/components/schemas/nexus.v1.PlanReply"
          },
          "price": {
            "$ref": "#/components/schemas/nexus.v1.ComposedProductPriceReply"
          },
          "price_ready": {
            "description": "Presence is significant: false means the product exists but still needs\n a published price. Keep the field on the wire instead of letting proto3\n JSON omit the false value and forcing Console clients to guess.",
            "type": "boolean"
          },
          "product": {
            "$ref": "#/components/schemas/nexus.v1.ProductReply"
          }
        },
        "type": "object"
      },
      "nexus.v1.CompositeExecutionComponent": {
        "properties": {
          "component_key": {
            "description": "Stable within the root execution, for example `model`, `image-1` or\n `video-transcode`. Nexus derives the child execution key from it.",
            "type": "string"
          },
          "execution": {
            "$ref": "#/components/schemas/nexus.v1.PrepareExecutionRequest"
          }
        },
        "type": "object"
      },
      "nexus.v1.CompositeExecutionComponentReply": {
        "properties": {
          "component_key": {
            "type": "string"
          },
          "execution_key": {
            "type": "string"
          },
          "reservation": {
            "$ref": "#/components/schemas/nexus.v1.ExecutionReservationReply"
          }
        },
        "type": "object"
      },
      "nexus.v1.CompositeExecutionReply": {
        "properties": {
          "components": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.CompositeExecutionComponentReply"
            },
            "type": "array"
          },
          "customer_account_id": {
            "type": "string"
          },
          "execution_key": {
            "type": "string"
          },
          "root_span_id": {
            "type": "string"
          },
          "trace_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ConcurrencyAcquireReply": {
        "properties": {
          "allowed": {
            "type": "boolean"
          },
          "decisions": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.TrafficLimitDecisionReply"
            },
            "type": "array"
          },
          "evidence_recorded": {
            "type": "boolean"
          },
          "leases": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.ConcurrencyLeaseReply"
            },
            "type": "array"
          },
          "limited": {
            "type": "boolean"
          },
          "retry_after_ms": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ConcurrencyLeaseListReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.ConcurrencyLeaseReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.ConcurrencyLeaseReply": {
        "properties": {
          "acquired_at": {
            "type": "string"
          },
          "dimension": {
            "type": "string"
          },
          "dimension_value": {
            "type": "string"
          },
          "expires_at": {
            "type": "string"
          },
          "lease_id": {
            "type": "string"
          },
          "operation_key": {
            "type": "string"
          },
          "policy_code": {
            "type": "string"
          },
          "policy_id": {
            "type": "string"
          },
          "release_reason": {
            "type": "string"
          },
          "released_at": {
            "type": "string"
          },
          "renewed_at": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ConcurrencyPolicyListReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.ConcurrencyPolicyReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.ConcurrencyPolicyReply": {
        "properties": {
          "code": {
            "type": "string"
          },
          "dimension": {
            "type": "string"
          },
          "dimension_value": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "lease_seconds": {
            "format": "int32",
            "type": "integer"
          },
          "max_concurrency": {
            "format": "int32",
            "type": "integer"
          },
          "status": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ConcurrencyReleaseReply": {
        "properties": {
          "released": {
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "nexus.v1.ConfigureFundingPolicyRequest": {
        "properties": {
          "account_group_id": {
            "type": "string"
          },
          "beneficiary_customer_account_id": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "expected_version": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "sources": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.FundingPolicySourceInput"
            },
            "type": "array"
          },
          "template_fork_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ConsoleBootstrapReply": {
        "properties": {
          "current_environment": {
            "$ref": "#/components/schemas/nexus.v1.EnvironmentReply"
          },
          "current_workspace": {
            "$ref": "#/components/schemas/nexus.v1.TenantReply"
          },
          "dependencies": {
            "$ref": "#/components/schemas/nexus.v1.ConsoleDependencySummary"
          },
          "environments": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.EnvironmentReply"
            },
            "type": "array"
          },
          "scopes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "unread_notifications": {
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/nexus.v1.GetMeReply"
          },
          "visible_navigation": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "workspaces": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.TenantReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.ConsoleDependencySummary": {
        "properties": {
          "database_ready": {
            "type": "boolean"
          },
          "event_bus_ready": {
            "type": "boolean"
          },
          "event_bus_required": {
            "type": "boolean"
          },
          "payment_mode": {
            "type": "string"
          },
          "redis_ready": {
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "nexus.v1.ConsoleSearchReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.ConsoleSearchResult"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.ConsoleSearchResult": {
        "properties": {
          "environment_id": {
            "type": "string"
          },
          "href": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "subtitle": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CouponDefinitionListReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.CouponDefinitionReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.CouponDefinitionReply": {
        "properties": {
          "campaign_code": {
            "type": "string"
          },
          "campaign_id": {
            "type": "string"
          },
          "campaign_name": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "discount_type": {
            "type": "string"
          },
          "discount_value": {
            "type": "string"
          },
          "first_purchase_only": {
            "type": "boolean"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CouponReply": {
        "properties": {
          "campaign_id": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "definition_id": {
            "type": "string"
          },
          "expires_at": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "max_redemptions": {
            "format": "int32",
            "type": "integer"
          },
          "redeemed_count": {
            "format": "int32",
            "type": "integer"
          },
          "status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CreateAPIKeyRequest": {
        "properties": {
          "allowed_cidrs": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "customer_account_id": {
            "description": "Optional. When set, this key can charge and inspect only this customer.",
            "type": "string"
          },
          "environment": {
            "type": "string"
          },
          "expires_at": {
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "scopes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "service_account_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CreateAccountGroupRequest": {
        "properties": {
          "code": {
            "type": "string"
          },
          "group_type": {
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CreateAuthorizationModelRequest": {
        "properties": {
          "config_json": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CreateAuthorizationPolicyRequest": {
        "properties": {
          "action": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "data_scope": {
            "type": "string"
          },
          "effect": {
            "type": "string"
          },
          "filter_json": {
            "type": "string"
          },
          "object_pattern": {
            "type": "string"
          },
          "priority": {
            "format": "int32",
            "type": "integer"
          },
          "subject_ref": {
            "type": "string"
          },
          "subject_type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CreateBreakGlassAccessRequestRequest": {
        "properties": {
          "reason": {
            "type": "string"
          },
          "requested_actions": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "ticket_ref": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CreateBudgetPoolRequest": {
        "properties": {
          "code": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "enforcement": {
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          },
          "limit_amount": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "period_ends_at": {
            "type": "string"
          },
          "period_kind": {
            "type": "string"
          },
          "period_starts_at": {
            "type": "string"
          },
          "scope": {
            "type": "string"
          },
          "scope_ref_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CreateCapabilityRequest": {
        "properties": {
          "code": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CreateCapabilityRevisionRequest": {
        "properties": {
          "capability_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CreateComposedProductRequest": {
        "properties": {
          "billing_period": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "components": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.ProductCapabilityComponentInput"
            },
            "type": "array"
          },
          "description": {
            "type": "string"
          },
          "interval_count": {
            "format": "int32",
            "type": "integer"
          },
          "metadata_json": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "sales_model": {
            "type": "string"
          },
          "trial_days": {
            "format": "int32",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "nexus.v1.CreateComposedProductRevisionRequest": {
        "properties": {
          "billing_period": {
            "type": "string"
          },
          "components": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.ProductCapabilityComponentInput"
            },
            "type": "array"
          },
          "expected_version": {
            "type": "string"
          },
          "interval_count": {
            "format": "int32",
            "type": "integer"
          },
          "product_id": {
            "type": "string"
          },
          "sales_model": {
            "type": "string"
          },
          "trial_days": {
            "format": "int32",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "nexus.v1.CreateCouponRequest": {
        "properties": {
          "budget_amount": {
            "type": "string"
          },
          "campaign_code": {
            "type": "string"
          },
          "campaign_name": {
            "type": "string"
          },
          "campaign_redemption_limit": {
            "type": "string"
          },
          "combinability": {
            "type": "string"
          },
          "coupon_code": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "customer_segments": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "discount_type": {
            "type": "string"
          },
          "discount_value": {
            "type": "string"
          },
          "duration_cycles": {
            "format": "int32",
            "type": "integer"
          },
          "duration_type": {
            "type": "string"
          },
          "eligible_offer_ids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "expires_at": {
            "type": "string"
          },
          "first_purchase_only": {
            "type": "boolean"
          },
          "max_redemptions": {
            "format": "int32",
            "type": "integer"
          },
          "maximum_discount": {
            "type": "string"
          },
          "minimum_subtotal": {
            "type": "string"
          },
          "per_customer_limit": {
            "format": "int32",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "nexus.v1.CreateCustomerAccountRequest": {
        "properties": {
          "account_type": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "environment_id": {
            "type": "string"
          },
          "external_ref": {
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          },
          "metadata_json": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CreateCustomerPortalAPIKeyRequest": {
        "properties": {
          "allowed_cidrs": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "environment": {
            "type": "string"
          },
          "expires_at": {
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CreateCustomerPortalOrderRequest": {
        "properties": {
          "idempotency_key": {
            "type": "string"
          },
          "quote_id": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CreateCustomerPortalPaymentIntentRequest": {
        "properties": {
          "idempotency_key": {
            "type": "string"
          },
          "order_id": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          },
          "return_url": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CreateCustomerSegmentRequest": {
        "properties": {
          "code": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "environment_id": {
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          },
          "mode": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CreateCustomerSegmentRevisionRequest": {
        "description": "Dynamic segment rules are versioned and previewed before any future\n evaluator may write RULE memberships. `condition_json` is a typed AST,\n rather than a free-form SQL or arbitrary metadata expression.",
        "properties": {
          "condition_json": {
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          },
          "segment_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CreateMarketingCampaignRequest": {
        "properties": {
          "amount": {
            "type": "string"
          },
          "asset_code": {
            "type": "string"
          },
          "benefit_expires_after_seconds": {
            "type": "string"
          },
          "benefit_type": {
            "type": "string"
          },
          "budget_amount": {
            "type": "string"
          },
          "capability_id": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "coupon_definition_id": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "eligible_api_key_id": {
            "type": "string"
          },
          "ends_at": {
            "type": "string"
          },
          "environment_id": {
            "type": "string"
          },
          "max_grants": {
            "type": "string"
          },
          "max_grants_per_customer": {
            "type": "string"
          },
          "meter_code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "offer_id": {
            "type": "string"
          },
          "product_id": {
            "type": "string"
          },
          "starts_at": {
            "type": "string"
          },
          "trigger_type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CreateMarketingCampaignRevisionRequest": {
        "properties": {
          "campaign_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CreateMarketingExperimentRequest": {
        "properties": {
          "attribution_model": {
            "type": "string"
          },
          "attribution_window_seconds": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "ends_at": {
            "type": "string"
          },
          "environment_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "objective_event": {
            "type": "string"
          },
          "starts_at": {
            "type": "string"
          },
          "variants": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.MarketingExperimentVariantInput"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.CreateNotificationTemplateRequest": {
        "properties": {
          "body_template": {
            "type": "string"
          },
          "channel": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "locale": {
            "type": "string"
          },
          "subject_template": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CreateOfferRequest": {
        "properties": {
          "code": {
            "type": "string"
          },
          "ends_at": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "plan_version_id": {
            "type": "string"
          },
          "sales_model": {
            "type": "string"
          },
          "sku_version_id": {
            "type": "string"
          },
          "starts_at": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CreateOrderRequest": {
        "properties": {
          "idempotency_key": {
            "type": "string"
          },
          "quote_id": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CreateOrganizationUnitRequest": {
        "properties": {
          "attributes_json": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "parent_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CreatePaymentConnectionRequest": {
        "properties": {
          "api_secret_ref": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "environment_id": {
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          },
          "merchant_account_id": {
            "type": "string"
          },
          "mode": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          },
          "webhook_secret_ref": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CreatePaymentIntentRequest": {
        "properties": {
          "idempotency_key": {
            "type": "string"
          },
          "order_id": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          },
          "return_url": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CreatePlanRequest": {
        "properties": {
          "billing_period": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "interval_count": {
            "format": "int32",
            "type": "integer"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.PlanItemInput"
            },
            "type": "array"
          },
          "name": {
            "type": "string"
          },
          "product_id": {
            "type": "string"
          },
          "trial_days": {
            "format": "int32",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "nexus.v1.CreatePolicyRequest": {
        "properties": {
          "code": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "policy_type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CreatePolicyRevisionRequest": {
        "properties": {
          "policy_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CreatePriceBookRequest": {
        "properties": {
          "code": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "market": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "priority": {
            "format": "int32",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "nexus.v1.CreatePricingRevisionRequest": {
        "properties": {
          "adjustments_json": {
            "type": "string"
          },
          "effective_from": {
            "type": "string"
          },
          "effective_to": {
            "type": "string"
          },
          "offer_id": {
            "type": "string"
          },
          "price_book_id": {
            "type": "string"
          },
          "pricing_model": {
            "type": "string"
          },
          "rules_json": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CreatePrincipalBillingAssignmentRequest": {
        "properties": {
          "cost_center_id": {
            "type": "string"
          },
          "customer_account_id": {
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          },
          "principal_id": {
            "type": "string"
          },
          "principal_type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CreateProductRequest": {
        "properties": {
          "category": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "metadata_json": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CreateRefundRequest": {
        "properties": {
          "amount": {
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          },
          "order_id": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CreateRoleRequest": {
        "properties": {
          "code": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "permissions": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.CreateSKURequest": {
        "properties": {
          "attributes_json": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "display_name": {
            "type": "string"
          },
          "entitlement_template_json": {
            "type": "string"
          },
          "product_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CreateServiceAccountRequest": {
        "properties": {
          "allowed_scopes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "code": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CreateTenantRequest": {
        "properties": {
          "billing_timezone": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "default_currency": {
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CreateWebhookEndpointRequest": {
        "properties": {
          "subscribed_events": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "url": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CreditBalanceReply": {
        "properties": {
          "asset_code": {
            "type": "string"
          },
          "available": {
            "type": "string"
          },
          "reserved": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "wallet_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CreditReservationReply": {
        "properties": {
          "billable": {
            "type": "boolean"
          },
          "business_id": {
            "type": "string"
          },
          "committed_amount": {
            "type": "string"
          },
          "committed_quantity": {
            "type": "string"
          },
          "customer_account_id": {
            "type": "string"
          },
          "estimated_quantity": {
            "type": "string"
          },
          "execution_status": {
            "type": "string"
          },
          "expires_at": {
            "type": "string"
          },
          "failure_charge_policy_source": {
            "type": "string"
          },
          "funding_allocations": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.ReservationFundingAllocationReply"
            },
            "type": "array"
          },
          "funding_policy_revision_id": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "ingress_api_key_id": {
            "type": "string"
          },
          "meter_code": {
            "type": "string"
          },
          "offer_id": {
            "type": "string"
          },
          "product_id": {
            "type": "string"
          },
          "released_amount": {
            "type": "string"
          },
          "reserved_amount": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CustomerAccountReply": {
        "properties": {
          "account_type": {
            "type": "string"
          },
          "available_credits": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "environment_id": {
            "type": "string"
          },
          "external_ref": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "metadata_json": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "reserved_credits": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CustomerMemberReply": {
        "properties": {
          "accepted_at": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "customer_account_id": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "user_id": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CustomerPortalAccountReply": {
        "properties": {
          "available_credits": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "customer_role": {
            "type": "string"
          },
          "environment": {
            "type": "string"
          },
          "environment_id": {
            "type": "string"
          },
          "external_ref": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "reserved_credits": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CustomerPortalOfferListReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.CustomerPortalOfferReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.CustomerPortalOfferReply": {
        "properties": {
          "code": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "sales_model": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CustomerPortalOperationReply": {
        "properties": {
          "actual_quantity": {
            "type": "string"
          },
          "billing_meter_code": {
            "type": "string"
          },
          "committed_credits": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "failure_code": {
            "type": "string"
          },
          "finalized_at": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "operation_type": {
            "type": "string"
          },
          "released_credits": {
            "type": "string"
          },
          "reserved_credits": {
            "type": "string"
          },
          "settlement_amount": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CustomerPortalOrderDetailReply": {
        "description": "Customer-facing projection only; no payment credentials, provider payloads,\n internal policy snapshots or administrative customer data.",
        "properties": {
          "currency": {
            "type": "string"
          },
          "customer_account_id": {
            "type": "string"
          },
          "customer_role": {
            "type": "string"
          },
          "discount_total": {
            "type": "string"
          },
          "environment_id": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.CustomerPortalOrderItemReply"
            },
            "type": "array"
          },
          "order_no": {
            "type": "string"
          },
          "paid_amount": {
            "type": "string"
          },
          "refunded_amount": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "tenant_id": {
            "type": "string"
          },
          "total": {
            "type": "string"
          },
          "user_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CustomerPortalOrderItemReply": {
        "properties": {
          "discount_amount": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "quantity": {
            "type": "string"
          },
          "total": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CustomerPortalOrderReply": {
        "properties": {
          "created_at": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "order_no": {
            "type": "string"
          },
          "paid_amount": {
            "type": "string"
          },
          "refunded_amount": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "total": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CustomerPortalPaymentProviderListReply": {
        "properties": {
          "data": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.CustomerPortalSubscriptionReply": {
        "properties": {
          "cancel_at_period_end": {
            "type": "boolean"
          },
          "current_period_end": {
            "type": "string"
          },
          "current_period_start": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "offer_id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CustomerPortalSummaryReply": {
        "properties": {
          "available_credits": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "customer_account_id": {
            "type": "string"
          },
          "customer_role": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "reserved_credits": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CustomerSegmentEvaluationJobReply": {
        "properties": {
          "added_count": {
            "format": "int32",
            "type": "integer"
          },
          "attempts": {
            "format": "int32",
            "type": "integer"
          },
          "changed_count": {
            "format": "int32",
            "type": "integer"
          },
          "cursor_customer_id": {
            "type": "string"
          },
          "ending_member_count": {
            "format": "int32",
            "type": "integer"
          },
          "evaluated_count": {
            "format": "int32",
            "type": "integer"
          },
          "finished_at": {
            "type": "string"
          },
          "has_error": {
            "type": "boolean"
          },
          "id": {
            "type": "string"
          },
          "matched_count": {
            "format": "int32",
            "type": "integer"
          },
          "removed_count": {
            "format": "int32",
            "type": "integer"
          },
          "requested_at": {
            "type": "string"
          },
          "revision_id": {
            "type": "string"
          },
          "segment_id": {
            "type": "string"
          },
          "started_at": {
            "type": "string"
          },
          "starting_member_count": {
            "format": "int32",
            "type": "integer"
          },
          "status": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CustomerSegmentMemberReply": {
        "properties": {
          "created_at": {
            "type": "string"
          },
          "customer_account_id": {
            "type": "string"
          },
          "customer_code": {
            "type": "string"
          },
          "customer_name": {
            "type": "string"
          },
          "source": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CustomerSegmentMembershipChangeReply": {
        "properties": {
          "affected_count": {
            "format": "int32",
            "type": "integer"
          },
          "segment_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CustomerSegmentReply": {
        "properties": {
          "code": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "environment_id": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "member_count": {
            "type": "string"
          },
          "mode": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CustomerSegmentRevisionComparisonMatch": {
        "properties": {
          "consulted_trait_keys": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "customer_account_id": {
            "type": "string"
          },
          "customer_code": {
            "type": "string"
          },
          "customer_name": {
            "type": "string"
          },
          "disposition": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CustomerSegmentRevisionComparisonReply": {
        "properties": {
          "active_matched_count": {
            "format": "int32",
            "type": "integer"
          },
          "active_revision_id": {
            "type": "string"
          },
          "added_count": {
            "format": "int32",
            "type": "integer"
          },
          "candidate_matched_count": {
            "format": "int32",
            "type": "integer"
          },
          "candidate_revision_id": {
            "type": "string"
          },
          "changes": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.CustomerSegmentRevisionComparisonMatch"
            },
            "type": "array"
          },
          "evaluated_count": {
            "format": "int32",
            "type": "integer"
          },
          "removed_count": {
            "format": "int32",
            "type": "integer"
          },
          "segment_id": {
            "type": "string"
          },
          "warnings": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.CustomerSegmentRevisionPreviewMatch": {
        "properties": {
          "consulted_trait_keys": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "customer_account_id": {
            "type": "string"
          },
          "customer_code": {
            "type": "string"
          },
          "customer_name": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CustomerSegmentRevisionPreviewReply": {
        "properties": {
          "evaluated_count": {
            "format": "int32",
            "type": "integer"
          },
          "matched_count": {
            "format": "int32",
            "type": "integer"
          },
          "matches": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.CustomerSegmentRevisionPreviewMatch"
            },
            "type": "array"
          },
          "revision_id": {
            "type": "string"
          },
          "rule_hash": {
            "type": "string"
          },
          "segment_id": {
            "type": "string"
          },
          "warnings": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.CustomerSegmentRevisionReply": {
        "properties": {
          "condition_json": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "revision_no": {
            "format": "int32",
            "type": "integer"
          },
          "segment_id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "validation_report_json": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CustomerTraitReply": {
        "properties": {
          "customer_account_id": {
            "type": "string"
          },
          "environment_id": {
            "type": "string"
          },
          "expires_at": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "observed_at": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "source_ref": {
            "type": "string"
          },
          "trait_key": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "value_json": {
            "type": "string"
          },
          "value_type": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CustomerWorkspaceCount": {
        "properties": {
          "key": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CustomerWorkspaceOperation": {
        "properties": {
          "created_at": {
            "type": "string"
          },
          "execution_status": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "operation_key": {
            "type": "string"
          },
          "operation_type": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.CustomerWorkspaceReply": {
        "properties": {
          "available_actions": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "counts": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.CustomerWorkspaceCount"
            },
            "type": "array"
          },
          "customer": {
            "$ref": "#/components/schemas/nexus.v1.CustomerAccountReply"
          },
          "recent_operations": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.CustomerWorkspaceOperation"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.DashboardLayoutReply": {
        "properties": {
          "updated_at": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "widget_ids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "widget_sizes": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "nexus.v1.DashboardPriorityTask": {
        "properties": {
          "code": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "href": {
            "type": "string"
          },
          "severity": {
            "description": "INFO, WARNING or CRITICAL. Clients must tolerate future values.",
            "type": "string"
          },
          "title": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.DashboardReply": {
        "properties": {
          "comparison": {
            "$ref": "#/components/schemas/nexus.v1.DashboardSummary"
          },
          "comparison_credit_consumption_series": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.DashboardSeriesPoint"
            },
            "type": "array"
          },
          "comparison_end": {
            "type": "string"
          },
          "comparison_start": {
            "type": "string"
          },
          "credit_consumption_series": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.DashboardSeriesPoint"
            },
            "type": "array"
          },
          "interval": {
            "type": "string"
          },
          "metrics": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.Metric"
            },
            "type": "array"
          },
          "period_end": {
            "type": "string"
          },
          "period_start": {
            "type": "string"
          },
          "priority_tasks": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.DashboardPriorityTask"
            },
            "type": "array"
          },
          "role_view": {
            "description": "Role-aware Console projection. Existing metric fields remain compatible.",
            "type": "string"
          },
          "summary": {
            "$ref": "#/components/schemas/nexus.v1.DashboardSummary"
          }
        },
        "type": "object"
      },
      "nexus.v1.DashboardSeriesPoint": {
        "properties": {
          "period": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.DashboardSummary": {
        "properties": {
          "available_credits": {
            "type": "string"
          },
          "call_count": {
            "type": "string"
          },
          "consumed_credits": {
            "type": "string"
          },
          "p95_latency_ms": {
            "type": "string"
          },
          "pending_reconciliation": {
            "type": "string"
          },
          "reserved_credits": {
            "type": "string"
          },
          "review_required": {
            "type": "string"
          },
          "success_rate": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.DataScopeReply": {
        "properties": {
          "allowed": {
            "type": "boolean"
          },
          "filter_json": {
            "type": "string"
          },
          "matched_policy_ids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "reason": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.DeactivatePaymentConnectionRequest": {
        "properties": {
          "connection_id": {
            "type": "string"
          },
          "expected_version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.DeleteTenantRequest": {
        "properties": {
          "confirmation_code": {
            "type": "string"
          },
          "expected_version": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "tenant_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.DisableWebhookEndpointRequest": {
        "properties": {
          "endpoint_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.EnqueueNotificationRequest": {
        "properties": {
          "category": {
            "type": "string"
          },
          "channel": {
            "type": "string"
          },
          "event_id": {
            "type": "string"
          },
          "locale": {
            "type": "string"
          },
          "recipient_user_id": {
            "type": "string"
          },
          "template_code": {
            "type": "string"
          },
          "variables": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "nexus.v1.EntitlementDecisionReply": {
        "properties": {
          "allowed": {
            "type": "boolean"
          },
          "available": {
            "type": "string"
          },
          "consumed": {
            "type": "string"
          },
          "entitlement_code": {
            "type": "string"
          },
          "limit": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "reserved": {
            "type": "string"
          },
          "resource_id": {
            "type": "string"
          },
          "unit": {
            "type": "string"
          },
          "unlimited": {
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "nexus.v1.EntitlementQuotaReservationReply": {
        "properties": {
          "business_id": {
            "type": "string"
          },
          "committed_amount": {
            "type": "string"
          },
          "customer_account_id": {
            "type": "string"
          },
          "entitlement_code": {
            "type": "string"
          },
          "expires_at": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "reclaimed_amount": {
            "type": "string"
          },
          "released_amount": {
            "type": "string"
          },
          "requested_amount": {
            "type": "string"
          },
          "resource_id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "unit": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.EntitlementReply": {
        "properties": {
          "code": {
            "type": "string"
          },
          "customer_account_id": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "quantity": {
            "type": "string"
          },
          "reset_period": {
            "type": "string"
          },
          "resource_id": {
            "type": "string"
          },
          "resource_type": {
            "type": "string"
          },
          "source_id": {
            "type": "string"
          },
          "source_type": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "unit": {
            "type": "string"
          },
          "valid_from": {
            "type": "string"
          },
          "valid_to": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.EnvironmentReply": {
        "properties": {
          "code": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.EraseTraceContentRequest": {
        "description": "Removes only optional Preview/Digest/ciphertext evidence. Operation, Span\n timing/status, Usage and settlement evidence are deliberately retained.",
        "properties": {
          "customer_account_id": {
            "type": "string"
          },
          "operation_id": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "scope": {
            "type": "string"
          },
          "trace_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ExecuteTraceContentErasureRequestRequest": {
        "properties": {
          "expected_version": {
            "type": "string"
          },
          "request_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ExecutionConcurrencyLeaseReply": {
        "properties": {
          "dimension": {
            "type": "string"
          },
          "dimension_value": {
            "type": "string"
          },
          "expires_at": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "policy_code": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ExecutionDelegationReply": {
        "properties": {
          "allowed_actions": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "allowed_meter_codes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "created_at": {
            "type": "string"
          },
          "delegate_api_key_id": {
            "type": "string"
          },
          "delegate_service_account_id": {
            "type": "string"
          },
          "delegate_tenant_id": {
            "type": "string"
          },
          "expires_at": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "last_used_at": {
            "type": "string"
          },
          "operation_id": {
            "type": "string"
          },
          "revoked_at": {
            "type": "string"
          },
          "token": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ExecutionEstimate": {
        "properties": {
          "meter_code": {
            "type": "string"
          },
          "quantity": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ExecutionQuotaActual": {
        "properties": {
          "actual_amount": {
            "type": "string"
          },
          "reservation_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ExecutionQuotaRequirement": {
        "properties": {
          "amount": {
            "type": "string"
          },
          "entitlement_code": {
            "type": "string"
          },
          "resource_id": {
            "type": "string"
          },
          "ttl_seconds": {
            "format": "int32",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "nexus.v1.ExecutionQuotaReservationReply": {
        "properties": {
          "entitlement_code": {
            "type": "string"
          },
          "expires_at": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "requested_amount": {
            "type": "string"
          },
          "resource_id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ExecutionReservationReply": {
        "properties": {
          "concurrency_leases": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.ExecutionConcurrencyLeaseReply"
            },
            "type": "array"
          },
          "last_error_code": {
            "type": "string"
          },
          "next_reconcile_at": {
            "type": "string"
          },
          "operation_id": {
            "type": "string"
          },
          "provider_started_at": {
            "type": "string"
          },
          "quotas": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.ExecutionQuotaReservationReply"
            },
            "type": "array"
          },
          "reconciliation_attempts": {
            "format": "int32",
            "type": "integer"
          },
          "reservation_id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ExplainPoliciesRequest": {
        "properties": {
          "context_json": {
            "type": "string"
          },
          "policy_type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.FailureChargePolicyListReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.FailureChargePolicyReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.FailureChargePolicyReply": {
        "properties": {
          "charge_on_failure": {
            "type": "boolean"
          },
          "id": {
            "type": "string"
          },
          "meter_code": {
            "type": "string"
          },
          "offer_id": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.FinalizeMeteringOperationRequest": {
        "properties": {
          "execution_status": {
            "type": "string"
          },
          "failure_code": {
            "type": "string"
          },
          "operation_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ForkPolicyTemplateRequest": {
        "properties": {
          "code": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "slot_bindings_json": {
            "type": "string"
          },
          "target_kind": {
            "type": "string"
          },
          "template_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.FundingPolicyReply": {
        "properties": {
          "account_group_id": {
            "type": "string"
          },
          "active_revision_id": {
            "type": "string"
          },
          "beneficiary_customer_account_id": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "environment_id": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "mode": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "revision_no": {
            "type": "string"
          },
          "source_template_fork_id": {
            "type": "string"
          },
          "source_template_id": {
            "type": "string"
          },
          "source_template_version": {
            "format": "int32",
            "type": "integer"
          },
          "sources": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.FundingPolicySourceReply"
            },
            "type": "array"
          },
          "status": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.FundingPolicySourceInput": {
        "properties": {
          "consent_required": {
            "type": "boolean"
          },
          "consent_status": {
            "type": "string"
          },
          "customer_account_id": {
            "type": "string"
          },
          "priority": {
            "format": "int32",
            "type": "integer"
          },
          "transaction_cap": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.FundingPolicySourceReply": {
        "properties": {
          "account_type": {
            "type": "string"
          },
          "consent_required": {
            "type": "boolean"
          },
          "consent_status": {
            "type": "string"
          },
          "customer_account_id": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "priority": {
            "format": "int32",
            "type": "integer"
          },
          "transaction_cap": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.GenerateBillRequest": {
        "properties": {
          "currency": {
            "type": "string"
          },
          "period_end": {
            "type": "string"
          },
          "period_start": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.GetMeReply": {
        "properties": {
          "avatar_url": {
            "description": "Optional OIDC/Casdoor portrait. The Console falls back to initials when\n the issuer does not expose a safe HTTPS avatar URL.",
            "type": "string"
          },
          "customer_account_id": {
            "description": "Set only for a customer-portal identity. Tenant operators never receive it.",
            "type": "string"
          },
          "display_name": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "scopes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "tenant_id": {
            "type": "string"
          },
          "user_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.GrantCreditsRequest": {
        "properties": {
          "amount": {
            "type": "string"
          },
          "customer_account_id": {
            "type": "string"
          },
          "eligible_api_key_id": {
            "type": "string"
          },
          "eligible_meter_code": {
            "type": "string"
          },
          "eligible_offer_id": {
            "type": "string"
          },
          "eligible_product_id": {
            "description": "Marketing scopes are accepted only when source_type=PROMOTION. Each\n configured scope must match the server-derived spend context to be used.",
            "type": "string"
          },
          "expires_at": {
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          },
          "priority": {
            "format": "int32",
            "type": "integer"
          },
          "reason": {
            "type": "string"
          },
          "source_id": {
            "type": "string"
          },
          "source_type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.HealthReply": {
        "properties": {
          "service": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "timestamp": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.IdentitySyncAuditReply": {
        "properties": {
          "action": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "occurred_at": {
            "type": "string"
          },
          "resource_type": {
            "type": "string"
          },
          "result": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "subject": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.IdentitySyncStatusReply": {
        "properties": {
          "configured": {
            "type": "boolean"
          },
          "cursor_status": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          },
          "failed_events": {
            "type": "string"
          },
          "granted_users": {
            "type": "string"
          },
          "issuer": {
            "type": "string"
          },
          "last_completed_at": {
            "type": "string"
          },
          "last_error": {
            "type": "string"
          },
          "last_started_at": {
            "type": "string"
          },
          "mapped_roles": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.IngestCustomerTraitRequest": {
        "properties": {
          "customer_account_id": {
            "type": "string"
          },
          "expires_at": {
            "type": "string"
          },
          "observed_at": {
            "type": "string"
          },
          "schema_version": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "source_event_id": {
            "type": "string"
          },
          "source_ref": {
            "type": "string"
          },
          "trait_key": {
            "type": "string"
          },
          "value_json": {
            "type": "string"
          },
          "value_type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.IngestUsageRequest": {
        "properties": {
          "business_id": {
            "type": "string"
          },
          "dimensions_json": {
            "type": "string"
          },
          "execution_status": {
            "type": "string"
          },
          "failure_code": {
            "type": "string"
          },
          "meter_code": {
            "type": "string"
          },
          "occurred_at": {
            "type": "string"
          },
          "offer_id": {
            "type": "string"
          },
          "quantity": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "source_event_id": {
            "type": "string"
          },
          "subject_id": {
            "type": "string"
          },
          "subject_type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.InvitationPreviewReply": {
        "properties": {
          "email": {
            "type": "string"
          },
          "expires_at": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "role_codes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "status": {
            "type": "string"
          },
          "tenant_id": {
            "type": "string"
          },
          "tenant_name": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.InvitationReply": {
        "properties": {
          "email": {
            "type": "string"
          },
          "expires_at": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "role_codes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "status": {
            "type": "string"
          },
          "tenant_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.InvitationTokenRequest": {
        "properties": {
          "token": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.InviteCustomerMemberRequest": {
        "properties": {
          "customer_account_id": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "role": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.InviteMemberRequest": {
        "properties": {
          "email": {
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          },
          "role_codes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "tenant_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.InvoiceReply": {
        "properties": {
          "amount": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "document_url": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "invoice_no": {
            "type": "string"
          },
          "issued_at": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          },
          "provider_invoice_id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.IssueExecutionDelegationRequest": {
        "description": "The returned token is a short-lived capability and must be forwarded in\n X-Nexus-Execution-Delegation together with the shared service's own API key.\n It is operation-scoped and never authorizes settlement or ownership changes.",
        "properties": {
          "allowed_actions": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "allowed_meter_codes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "idempotency_key": {
            "type": "string"
          },
          "operation_id": {
            "type": "string"
          },
          "ttl_seconds": {
            "format": "int32",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "nexus.v1.ListAPIKeysReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.APIKeyReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.ListAuthorizationPoliciesReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.AuthorizationPolicyReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.ListBreakGlassAccessRequestsReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.BreakGlassAccessRequestReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.ListCustomerAccountsReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.CustomerAccountReply"
            },
            "type": "array"
          },
          "next_cursor": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ListCustomerMembersReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.CustomerMemberReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.ListCustomerPortalAccountsReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.CustomerPortalAccountReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.ListCustomerPortalOperationsReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.CustomerPortalOperationReply"
            },
            "type": "array"
          },
          "next_cursor": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ListCustomerPortalOrdersReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.CustomerPortalOrderReply"
            },
            "type": "array"
          },
          "next_cursor": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ListCustomerPortalSubscriptionsReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.CustomerPortalSubscriptionReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.ListCustomerSegmentEvaluationJobsReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.CustomerSegmentEvaluationJobReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.ListCustomerSegmentMembersReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.CustomerSegmentMemberReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.ListCustomerSegmentRevisionsReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.CustomerSegmentRevisionReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.ListCustomerSegmentsReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.CustomerSegmentReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.ListCustomerTraitsReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.CustomerTraitReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.ListEntitlementsReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.EntitlementReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.ListEnvironmentsReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.EnvironmentReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.ListIdentitySyncAuditsReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.IdentitySyncAuditReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.ListInboxReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.NotificationDeliveryReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.ListInvoicesReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.InvoiceReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.ListMembersReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.MemberReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.ListNotificationTemplatesReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.NotificationTemplateReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.ListOperationsReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.OperationRecord"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.ListOrdersReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.OrderReply"
            },
            "type": "array"
          },
          "next_cursor": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ListOrganizationUnitsReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.OrganizationUnitReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.ListPermissionsReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.PermissionReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.ListPrincipalBillingAssignmentsReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.PrincipalBillingAssignmentReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.ListProviderPriceBindingsReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.ProviderPriceBindingReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.ListRolesReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.RoleReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.ListServiceAccountsReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.ServiceAccountReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.ListSubscriptionsReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.SubscriptionReply"
            },
            "type": "array"
          },
          "next_cursor": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ListTenantsReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.TenantReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.ListWebhookEndpointsReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.WebhookEndpointReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.MarkExecutionProviderStartedRequest": {
        "properties": {
          "execution_key": {
            "type": "string"
          },
          "operation_id": {
            "type": "string"
          },
          "reservation_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.MarkInboxReadRequest": {
        "properties": {
          "delivery_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.MarketingBenefitGrantListReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.MarketingBenefitGrantReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.MarketingBenefitGrantReply": {
        "properties": {
          "amount": {
            "type": "string"
          },
          "benefit_type": {
            "type": "string"
          },
          "campaign_code": {
            "type": "string"
          },
          "campaign_id": {
            "type": "string"
          },
          "campaign_name": {
            "type": "string"
          },
          "campaign_revision_id": {
            "type": "string"
          },
          "coupon_code_id": {
            "type": "string"
          },
          "credit_bucket_id": {
            "type": "string"
          },
          "customer_account_id": {
            "type": "string"
          },
          "entitlement_grant_id": {
            "type": "string"
          },
          "granted_at": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "revision_no": {
            "format": "int32",
            "type": "integer"
          },
          "revoke_reason": {
            "type": "string"
          },
          "revoked_at": {
            "type": "string"
          },
          "snapshot_json": {
            "type": "string"
          },
          "source_event_id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "trigger_key": {
            "type": "string"
          },
          "trigger_type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.MarketingCampaignListReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.MarketingCampaignReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.MarketingCampaignReply": {
        "properties": {
          "affected_revision": {
            "$ref": "#/components/schemas/nexus.v1.MarketingCampaignRevisionReply"
          },
          "code": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "current_revision": {
            "$ref": "#/components/schemas/nexus.v1.MarketingCampaignRevisionReply"
          },
          "current_revision_id": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "stats": {
            "$ref": "#/components/schemas/nexus.v1.MarketingCampaignStatsReply"
          },
          "status": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.MarketingCampaignRevisionReply": {
        "properties": {
          "amount": {
            "type": "string"
          },
          "approved_at": {
            "type": "string"
          },
          "asset_code": {
            "type": "string"
          },
          "benefit_expires_after_seconds": {
            "type": "string"
          },
          "benefit_type": {
            "type": "string"
          },
          "budget_amount": {
            "type": "string"
          },
          "capability_id": {
            "type": "string"
          },
          "coupon_definition_id": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "eligible_api_key_id": {
            "type": "string"
          },
          "ends_at": {
            "type": "string"
          },
          "environment_id": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "max_grants": {
            "type": "string"
          },
          "max_grants_per_customer": {
            "type": "string"
          },
          "meter_code": {
            "type": "string"
          },
          "offer_id": {
            "type": "string"
          },
          "product_id": {
            "type": "string"
          },
          "published_at": {
            "type": "string"
          },
          "revision_no": {
            "format": "int32",
            "type": "integer"
          },
          "starts_at": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "trigger_type": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.MarketingCampaignSimulationReply": {
        "properties": {
          "amount": {
            "type": "string"
          },
          "benefit_type": {
            "type": "string"
          },
          "campaign_id": {
            "type": "string"
          },
          "campaign_revision_id": {
            "type": "string"
          },
          "customer_account_id": {
            "type": "string"
          },
          "eligible": {
            "type": "boolean"
          },
          "existing_benefit_grant_id": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "source_fact": {
            "type": "string"
          },
          "trigger_type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.MarketingCampaignStatsReply": {
        "description": "Server-derived runtime projection for the current published revision. A\n missing remaining field means that cap is unlimited; it never means zero.",
        "properties": {
          "budget_remaining": {
            "type": "string"
          },
          "grant_slots_remaining": {
            "type": "string"
          },
          "granted_amount": {
            "type": "string"
          },
          "granted_count": {
            "type": "string"
          },
          "revoked_count": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.MarketingExperimentAnalyticsReply": {
        "properties": {
          "experiment_id": {
            "type": "string"
          },
          "generated_at": {
            "type": "string"
          },
          "variants": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.MarketingExperimentVariantAnalyticsReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.MarketingExperimentListReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.MarketingExperimentReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.MarketingExperimentReply": {
        "properties": {
          "attribution_model": {
            "type": "string"
          },
          "attribution_window_seconds": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "ends_at": {
            "type": "string"
          },
          "environment_id": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "objective_event": {
            "type": "string"
          },
          "starts_at": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "variants": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.MarketingExperimentVariantReply"
            },
            "type": "array"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.MarketingExperimentVariantAnalyticsReply": {
        "properties": {
          "assignments": {
            "type": "string"
          },
          "attributed_revenue": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "conversion_rate": {
            "type": "string"
          },
          "conversions": {
            "type": "string"
          },
          "expected_cost": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "roi": {
            "type": "string"
          },
          "variant_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.MarketingExperimentVariantInput": {
        "properties": {
          "allocation_bps": {
            "format": "int32",
            "type": "integer"
          },
          "campaign_ids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "code": {
            "type": "string"
          },
          "expected_cost_per_assignment": {
            "type": "string"
          },
          "is_control": {
            "type": "boolean"
          },
          "name": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.MarketingExperimentVariantReply": {
        "properties": {
          "allocation_bps": {
            "format": "int32",
            "type": "integer"
          },
          "campaign_ids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "code": {
            "type": "string"
          },
          "expected_cost_per_assignment": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "is_control": {
            "type": "boolean"
          },
          "name": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.MediaHeartbeatReply": {
        "properties": {
          "action": {
            "type": "string"
          },
          "attempt_id": {
            "type": "string"
          },
          "authorized_units": {
            "type": "string"
          },
          "billing_units": {
            "type": "string"
          },
          "downgrade_quality": {
            "type": "string"
          },
          "duplicate": {
            "type": "boolean"
          },
          "grace_seconds": {
            "format": "int32",
            "type": "integer"
          },
          "reason": {
            "type": "string"
          },
          "remaining_units": {
            "type": "string"
          },
          "stage": {
            "type": "string"
          },
          "usage_event_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.MediaQualitySlice": {
        "description": "A cumulative quality slice is derived from a trusted RTC provider's room\n and participant events. Repeating the whole breakdown on every heartbeat\n makes retries stateless while preserving quality changes during a meeting.",
        "properties": {
          "participant_seconds": {
            "type": "string"
          },
          "quality": {
            "type": "string"
          },
          "room_seconds": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.MemberReply": {
        "properties": {
          "directory_role_codes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "display_name": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "role_codes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "status": {
            "type": "string"
          },
          "tenant_id": {
            "type": "string"
          },
          "user_id": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.MeterListReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.MeterReply"
            },
            "type": "array"
          },
          "next_cursor": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.MeterReply": {
        "properties": {
          "aggregation": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "event_type": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "unit": {
            "type": "string"
          },
          "value_type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.MeteringAttemptReply": {
        "properties": {
          "attempt_key": {
            "type": "string"
          },
          "ended_at": {
            "type": "string"
          },
          "execution_delegation_id": {
            "type": "string"
          },
          "failure_code": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "metadata_json": {
            "type": "string"
          },
          "model": {
            "type": "string"
          },
          "operation_id": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          },
          "provider_request_id": {
            "type": "string"
          },
          "reporter_api_key_id": {
            "type": "string"
          },
          "reporter_service_account_id": {
            "type": "string"
          },
          "reporter_tenant_id": {
            "type": "string"
          },
          "started_at": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.MeteringCorrelationKey": {
        "properties": {
          "api_key_id": {
            "type": "string"
          },
          "entry_point": {
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "namespace": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.MeteringEvidenceAck": {
        "properties": {
          "accepted": {
            "type": "boolean"
          },
          "duplicate": {
            "type": "boolean"
          },
          "error_code": {
            "type": "string"
          },
          "event_key": {
            "type": "string"
          },
          "evidence_id": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "retryable": {
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "nexus.v1.MeteringEvidenceItem": {
        "properties": {
          "event_key": {
            "description": "Stable key used by the caller to correlate an acknowledgement. For usage\n this should be source_event_id; for a Span it should include span_id and\n sequence_no.",
            "type": "string"
          },
          "span": {
            "$ref": "#/components/schemas/nexus.v1.ReportMeteringSpanRequest"
          },
          "usage": {
            "$ref": "#/components/schemas/nexus.v1.ReportMeteringUsageRequest"
          }
        },
        "type": "object"
      },
      "nexus.v1.MeteringExecutionReservationReply": {
        "properties": {
          "id": {
            "type": "string"
          },
          "last_error_code": {
            "type": "string"
          },
          "next_reconcile_at": {
            "type": "string"
          },
          "provider_started_at": {
            "type": "string"
          },
          "reconciliation_attempts": {
            "format": "int32",
            "type": "integer"
          },
          "status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.MeteringOperationListReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.MeteringOperationReply"
            },
            "type": "array"
          },
          "next_cursor": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.MeteringOperationReply": {
        "properties": {
          "attempts": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.MeteringAttemptReply"
            },
            "type": "array"
          },
          "billing_meter_code": {
            "type": "string"
          },
          "capability_id": {
            "type": "string"
          },
          "capability_revision_id": {
            "type": "string"
          },
          "commercial_snapshot_json": {
            "type": "string"
          },
          "correlation_keys": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.MeteringCorrelationKey"
            },
            "type": "array"
          },
          "created_at": {
            "type": "string"
          },
          "credit_reservation_id": {
            "type": "string"
          },
          "customer_account_id": {
            "type": "string"
          },
          "entry_point": {
            "type": "string"
          },
          "estimates": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.MeteringQuantity"
            },
            "type": "array"
          },
          "execution_reservation": {
            "$ref": "#/components/schemas/nexus.v1.MeteringExecutionReservationReply"
          },
          "execution_status": {
            "type": "string"
          },
          "expires_at": {
            "type": "string"
          },
          "failure_code": {
            "type": "string"
          },
          "finalized_at": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "ingress_api_key_id": {
            "type": "string"
          },
          "metadata_json": {
            "type": "string"
          },
          "model_route_id": {
            "type": "string"
          },
          "offer_id": {
            "type": "string"
          },
          "operation_key": {
            "type": "string"
          },
          "operation_type": {
            "type": "string"
          },
          "owner_tenant_id": {
            "description": "Immutable commercial and Trace owner selected by the root initiator.\n Reporter tenants on Attempts, Usage Events and Spans are execution\n identities only and never replace this owner.",
            "type": "string"
          },
          "product_id": {
            "type": "string"
          },
          "resource_id": {
            "type": "string"
          },
          "resource_type": {
            "type": "string"
          },
          "settlement": {
            "$ref": "#/components/schemas/nexus.v1.MeteringSettlementReply"
          },
          "sku_id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "subject_id": {
            "type": "string"
          },
          "subject_type": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "usage_events": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.MeteringUsageEventReply"
            },
            "type": "array"
          },
          "usage_totals": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.MeteringQuantity"
            },
            "type": "array"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.MeteringQuantity": {
        "properties": {
          "meter_code": {
            "type": "string"
          },
          "quantity": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.MeteringSettlementAllocationReply": {
        "description": "Allocation evidence is frozen at reservation/settlement time.  It shows the\n bucket source and eligibility constraints that actually funded this\n operation, rather than a mutable current wallet balance.",
        "properties": {
          "bucket_id": {
            "type": "string"
          },
          "consumed_amount": {
            "type": "string"
          },
          "eligible_api_key_id": {
            "type": "string"
          },
          "eligible_meter_code": {
            "type": "string"
          },
          "eligible_offer_id": {
            "type": "string"
          },
          "eligible_product_id": {
            "type": "string"
          },
          "original_amount": {
            "type": "string"
          },
          "released_amount": {
            "type": "string"
          },
          "reserved_amount": {
            "type": "string"
          },
          "source_id": {
            "type": "string"
          },
          "source_type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.MeteringSettlementReply": {
        "properties": {
          "allocations": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.MeteringSettlementAllocationReply"
            },
            "type": "array"
          },
          "billable": {
            "type": "boolean"
          },
          "committed_amount": {
            "type": "string"
          },
          "committed_quantity": {
            "type": "string"
          },
          "estimated_quantity": {
            "type": "string"
          },
          "execution_status": {
            "type": "string"
          },
          "expires_at": {
            "type": "string"
          },
          "failure_charge_policy_source": {
            "type": "string"
          },
          "meter_code": {
            "type": "string"
          },
          "released_amount": {
            "type": "string"
          },
          "reservation_id": {
            "type": "string"
          },
          "reserved_amount": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.MeteringSpanContentReply": {
        "properties": {
          "content_capture": {
            "type": "string"
          },
          "input_digest": {
            "type": "string"
          },
          "input_preview": {
            "type": "string"
          },
          "operation_id": {
            "type": "string"
          },
          "output_digest": {
            "type": "string"
          },
          "output_preview": {
            "type": "string"
          },
          "span_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.MeteringSpanLink": {
        "properties": {
          "attributes_json": {
            "type": "string"
          },
          "relation": {
            "type": "string"
          },
          "span_id": {
            "type": "string"
          },
          "trace_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.MeteringSpanListReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.MeteringSpanReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.MeteringSpanReply": {
        "properties": {
          "attributes_json": {
            "type": "string"
          },
          "content_available": {
            "type": "boolean"
          },
          "content_capture": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "ended_at": {
            "type": "string"
          },
          "entry_point": {
            "type": "string"
          },
          "error_code": {
            "type": "string"
          },
          "error_message": {
            "type": "string"
          },
          "error_type": {
            "type": "string"
          },
          "execution_delegation_id": {
            "type": "string"
          },
          "first_reporter_api_key_id": {
            "type": "string"
          },
          "first_reporter_service_account_id": {
            "type": "string"
          },
          "first_reporter_tenant_id": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "last_reporter_api_key_id": {
            "type": "string"
          },
          "last_reporter_service_account_id": {
            "type": "string"
          },
          "last_reporter_tenant_id": {
            "type": "string"
          },
          "links": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.MeteringSpanLink"
            },
            "type": "array"
          },
          "name": {
            "type": "string"
          },
          "operation_id": {
            "type": "string"
          },
          "parent_span_id": {
            "type": "string"
          },
          "sequence_no": {
            "type": "string"
          },
          "span_id": {
            "type": "string"
          },
          "span_key": {
            "type": "string"
          },
          "started_at": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "trace_id": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.MeteringTraceListReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.MeteringTraceReply"
            },
            "type": "array"
          },
          "next_cursor": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.MeteringTraceReply": {
        "properties": {
          "capability_id": {
            "type": "string"
          },
          "customer_account_id": {
            "type": "string"
          },
          "ended_at": {
            "type": "string"
          },
          "entry_point": {
            "type": "string"
          },
          "execution_status": {
            "type": "string"
          },
          "failed_span_count": {
            "type": "string"
          },
          "failure_code": {
            "type": "string"
          },
          "operation_count": {
            "type": "string"
          },
          "operation_id": {
            "type": "string"
          },
          "operation_key": {
            "type": "string"
          },
          "operation_status": {
            "type": "string"
          },
          "operation_type": {
            "type": "string"
          },
          "product_id": {
            "type": "string"
          },
          "root_span_id": {
            "type": "string"
          },
          "root_span_name": {
            "type": "string"
          },
          "span_count": {
            "type": "string"
          },
          "started_at": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "trace_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.MeteringUsageEventReply": {
        "properties": {
          "attempt_id": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "cumulative_quantity": {
            "type": "string"
          },
          "dimensions_json": {
            "type": "string"
          },
          "duplicate": {
            "type": "boolean"
          },
          "execution_delegation_id": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "meter_code": {
            "type": "string"
          },
          "observed_at": {
            "type": "string"
          },
          "operation_id": {
            "type": "string"
          },
          "reporter_api_key_id": {
            "type": "string"
          },
          "reporter_service_account_id": {
            "type": "string"
          },
          "reporter_tenant_id": {
            "type": "string"
          },
          "sequence_no": {
            "type": "string"
          },
          "source_event_id": {
            "type": "string"
          },
          "stage": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.Metric": {
        "properties": {
          "name": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ModelChatCompletionChunk": {
        "properties": {
          "attempt_id": {
            "type": "string"
          },
          "data_json": {
            "description": "A provider-native OpenAI-compatible chunk, serialized as JSON.",
            "type": "string"
          },
          "done": {
            "type": "boolean"
          },
          "operation_id": {
            "type": "string"
          },
          "usage": {
            "$ref": "#/components/schemas/nexus.v1.ModelUsageReply"
          }
        },
        "type": "object"
      },
      "nexus.v1.ModelChatCompletionReply": {
        "properties": {
          "attempt_id": {
            "type": "string"
          },
          "content": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "model": {
            "type": "string"
          },
          "operation_id": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          },
          "usage": {
            "$ref": "#/components/schemas/nexus.v1.ModelUsageReply"
          }
        },
        "type": "object"
      },
      "nexus.v1.ModelChatCompletionRequest": {
        "properties": {
          "customer_account_id": {
            "type": "string"
          },
          "max_tokens": {
            "format": "int32",
            "type": "integer"
          },
          "messages_json": {
            "type": "string"
          },
          "model": {
            "type": "string"
          },
          "offer_id": {
            "type": "string"
          },
          "operation_key": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ModelProviderListReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.ModelProviderReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.ModelProviderProbeReply": {
        "properties": {
          "checked_at": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "latency_ms": {
            "type": "string"
          },
          "ready": {
            "type": "boolean"
          },
          "status": {
            "description": "READY, EMBEDDED_READY, NOT_CONFIGURED, AUTH_FAILED, RATE_LIMITED or UNAVAILABLE.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ModelProviderReply": {
        "properties": {
          "base_url": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "default_provider": {
            "type": "boolean"
          },
          "mock": {
            "type": "boolean"
          },
          "ready": {
            "type": "boolean"
          },
          "transport": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ModelRouteListReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.ModelRouteReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.ModelRouteReply": {
        "properties": {
          "billing_meter_code": {
            "type": "string"
          },
          "capabilities_json": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "display_name": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "max_tokens": {
            "format": "int32",
            "type": "integer"
          },
          "offer_id": {
            "type": "string"
          },
          "provider_code": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "upstream_model": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ModelUsageReply": {
        "properties": {
          "completion_tokens": {
            "type": "string"
          },
          "prompt_tokens": {
            "type": "string"
          },
          "total_tokens": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.NotificationDeliveryReply": {
        "properties": {
          "attempts": {
            "format": "int32",
            "type": "integer"
          },
          "body": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "channel": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "event_id": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          },
          "provider_message_id": {
            "type": "string"
          },
          "read_at": {
            "type": "string"
          },
          "recipient": {
            "type": "string"
          },
          "sent_at": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "subject": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.NotificationPreferenceReply": {
        "properties": {
          "category": {
            "type": "string"
          },
          "channel": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "nexus.v1.NotificationTemplateReply": {
        "properties": {
          "body_template": {
            "type": "string"
          },
          "channel": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "locale": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "subject_template": {
            "type": "string"
          },
          "version": {
            "format": "int32",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "nexus.v1.OfferReply": {
        "properties": {
          "code": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "sales_model": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.OperationPolicyReplayReply": {
        "properties": {
          "context_summary_json": {
            "type": "string"
          },
          "current_explanation": {
            "$ref": "#/components/schemas/nexus.v1.PolicyExplanationReply"
          },
          "observed_decisions": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.PolicyDecisionReply"
            },
            "type": "array"
          },
          "operation_created_at": {
            "type": "string"
          },
          "operation_id": {
            "type": "string"
          },
          "policy_type": {
            "type": "string"
          },
          "warnings": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.OperationRecord": {
        "properties": {
          "fields": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "nexus.v1.OrderDetailReply": {
        "properties": {
          "entitlements": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.EntitlementReply"
            },
            "type": "array"
          },
          "order": {
            "$ref": "#/components/schemas/nexus.v1.OrderReply"
          },
          "order_lines": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.OrderLineReply"
            },
            "type": "array"
          },
          "payment_intents": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.PaymentIntentReply"
            },
            "type": "array"
          },
          "refunds": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.RefundReply"
            },
            "type": "array"
          },
          "subscriptions": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.SubscriptionReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.OrderLineReply": {
        "properties": {
          "discount_amount": {
            "type": "string"
          },
          "entitlement_snapshot_json": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "offer_code": {
            "type": "string"
          },
          "offer_id": {
            "type": "string"
          },
          "offer_name": {
            "type": "string"
          },
          "order_id": {
            "type": "string"
          },
          "plan_version_id": {
            "type": "string"
          },
          "pricing_snapshot_json": {
            "description": "Immutable snapshots are intended for advanced audit views only.",
            "type": "string"
          },
          "quantity": {
            "type": "string"
          },
          "sku_version_id": {
            "type": "string"
          },
          "subtotal": {
            "type": "string"
          },
          "total": {
            "type": "string"
          },
          "unit_amount": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.OrderReply": {
        "properties": {
          "created_at": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "customer_account_id": {
            "type": "string"
          },
          "discount_total": {
            "type": "string"
          },
          "expires_at": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "order_no": {
            "type": "string"
          },
          "paid_amount": {
            "type": "string"
          },
          "quote_id": {
            "type": "string"
          },
          "refunded_amount": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "subtotal": {
            "type": "string"
          },
          "total": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.OrganizationUnitReply": {
        "properties": {
          "attributes_json": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "parent_id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PauseMarketingCampaignRequest": {
        "properties": {
          "campaign_id": {
            "type": "string"
          },
          "expected_version": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PaymentConnectionCheckReply": {
        "properties": {
          "code": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "level": {
            "type": "string"
          },
          "passed": {
            "type": "boolean"
          },
          "title": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PaymentConnectionListReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.PaymentConnectionReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.PaymentConnectionReply": {
        "properties": {
          "api_secret_ref": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "environment_id": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "last_probe_at": {
            "type": "string"
          },
          "last_probe_status": {
            "type": "string"
          },
          "merchant_account_id": {
            "type": "string"
          },
          "mode": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "validation_report": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.PaymentConnectionCheckReply"
            },
            "type": "array"
          },
          "version": {
            "type": "string"
          },
          "webhook_secret_ref": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PaymentIntentReply": {
        "properties": {
          "amount": {
            "type": "string"
          },
          "checkout_url": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "customer_account_id": {
            "type": "string"
          },
          "expires_at": {
            "type": "string"
          },
          "failure_code": {
            "type": "string"
          },
          "failure_message": {
            "type": "string"
          },
          "gateway_mode": {
            "description": "Immutable money boundary captured when the intent is created.",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "order_id": {
            "type": "string"
          },
          "payment_connection_id": {
            "description": "Activated environment connection selected when this intent was created.\n Empty identifies a legacy deployment-level provider configuration.",
            "type": "string"
          },
          "provider": {
            "type": "string"
          },
          "provider_intent_id": {
            "type": "string"
          },
          "provider_price_id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PaymentWebhookReply": {
        "properties": {
          "accepted": {
            "type": "boolean"
          },
          "duplicate": {
            "type": "boolean"
          },
          "order_id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PaymentWebhookRequest": {
        "properties": {
          "amount": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "event_id": {
            "type": "string"
          },
          "event_type": {
            "type": "string"
          },
          "nonce": {
            "type": "string"
          },
          "occurred_at": {
            "type": "string"
          },
          "payload_json": {
            "type": "string"
          },
          "payment_connection_id": {
            "description": "Environment-scoped provider webhook routes include this stable ID so\n signature verification uses the same connection as the payment intent.",
            "type": "string"
          },
          "provider": {
            "type": "string"
          },
          "provider_intent_id": {
            "type": "string"
          },
          "provider_transaction_id": {
            "type": "string"
          },
          "serial": {
            "type": "string"
          },
          "signature": {
            "type": "string"
          },
          "timestamp": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PermissionReply": {
        "properties": {
          "code": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "grantable": {
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "nexus.v1.PlanItemInput": {
        "properties": {
          "included_quantity": {
            "type": "string"
          },
          "meter_id": {
            "type": "string"
          },
          "quantity": {
            "type": "string"
          },
          "sku_version_id": {
            "type": "string"
          },
          "sort_order": {
            "format": "int32",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "nexus.v1.PlanItemReply": {
        "properties": {
          "included_quantity": {
            "type": "string"
          },
          "meter_code": {
            "type": "string"
          },
          "meter_id": {
            "type": "string"
          },
          "quantity": {
            "type": "string"
          },
          "sku_code": {
            "type": "string"
          },
          "sku_display_name": {
            "type": "string"
          },
          "sku_id": {
            "type": "string"
          },
          "sku_version_id": {
            "type": "string"
          },
          "sort_order": {
            "format": "int32",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "nexus.v1.PlanReply": {
        "properties": {
          "billing_period": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "interval_count": {
            "format": "int32",
            "type": "integer"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.PlanItemReply"
            },
            "type": "array"
          },
          "name": {
            "type": "string"
          },
          "product_id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "trial_days": {
            "format": "int32",
            "type": "integer"
          },
          "version_id": {
            "type": "string"
          },
          "version_no": {
            "format": "int32",
            "type": "integer"
          },
          "version_status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PolicyBindingInput": {
        "properties": {
          "binding_priority": {
            "format": "int32",
            "type": "integer"
          },
          "environment_id": {
            "type": "string"
          },
          "resource_ref": {
            "type": "string"
          },
          "resource_type": {
            "type": "string"
          },
          "subject_ref": {
            "type": "string"
          },
          "subject_type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PolicyBindingReply": {
        "properties": {
          "binding_priority": {
            "format": "int32",
            "type": "integer"
          },
          "environment_id": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "resource_ref": {
            "type": "string"
          },
          "resource_type": {
            "type": "string"
          },
          "subject_ref": {
            "type": "string"
          },
          "subject_type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PolicyCheckReply": {
        "properties": {
          "code": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "level": {
            "type": "string"
          },
          "passed": {
            "type": "boolean"
          },
          "title": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PolicyDecisionAnalyticsReply": {
        "properties": {
          "allowed": {
            "type": "string"
          },
          "by_business_type": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.PolicyDecisionMetricReply"
            },
            "type": "array"
          },
          "by_policy": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.PolicyDecisionPolicyMetricReply"
            },
            "type": "array"
          },
          "failure_charge": {
            "$ref": "#/components/schemas/nexus.v1.PolicyDecisionFailureMetricReply"
          },
          "from": {
            "type": "string"
          },
          "limited": {
            "type": "string"
          },
          "pricing": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.PolicyDecisionPricingMetricReply"
            },
            "type": "array"
          },
          "to": {
            "type": "string"
          },
          "total": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PolicyDecisionFailureMetricReply": {
        "properties": {
          "charge": {
            "type": "string"
          },
          "comparable": {
            "type": "string"
          },
          "match": {
            "type": "string"
          },
          "mismatch": {
            "type": "string"
          },
          "no_charge": {
            "type": "string"
          },
          "total": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PolicyDecisionListReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.PolicyDecisionReply"
            },
            "type": "array"
          },
          "next_cursor": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PolicyDecisionMetricReply": {
        "properties": {
          "allowed": {
            "type": "string"
          },
          "business_type": {
            "type": "string"
          },
          "executor": {
            "type": "string"
          },
          "limited": {
            "type": "string"
          },
          "total": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PolicyDecisionPolicyMetricReply": {
        "properties": {
          "dimension": {
            "type": "string"
          },
          "policy_code": {
            "type": "string"
          },
          "rejected": {
            "type": "string"
          },
          "total": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PolicyDecisionPricingMetricReply": {
        "properties": {
          "comparable": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "difference_total": {
            "type": "string"
          },
          "discount": {
            "type": "string"
          },
          "hypothetical_total": {
            "type": "string"
          },
          "max_absolute_difference": {
            "type": "string"
          },
          "quotes": {
            "type": "string"
          },
          "subtotal": {
            "type": "string"
          },
          "total": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PolicyDecisionReply": {
        "properties": {
          "business_id": {
            "type": "string"
          },
          "business_type": {
            "type": "string"
          },
          "candidates_json": {
            "type": "string"
          },
          "context_summary_json": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "decision_hash": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "outcome_json": {
            "type": "string"
          },
          "policy_revision_id": {
            "type": "string"
          },
          "trace_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PolicyExecutorAdoptionReply": {
        "properties": {
          "adopted_at": {
            "type": "string"
          },
          "adopted_by": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "executor": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "mode": {
            "type": "string"
          },
          "policy_type": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PolicyExplanationCandidateReply": {
        "properties": {
          "condition_matched": {
            "type": "boolean"
          },
          "effect_json": {
            "type": "string"
          },
          "exclusion_group": {
            "type": "string"
          },
          "max_matches": {
            "format": "int32",
            "type": "integer"
          },
          "policy_code": {
            "type": "string"
          },
          "policy_id": {
            "type": "string"
          },
          "policy_name": {
            "type": "string"
          },
          "priority": {
            "format": "int32",
            "type": "integer"
          },
          "revision_id": {
            "type": "string"
          },
          "revision_no": {
            "format": "int32",
            "type": "integer"
          },
          "rollout": {
            "$ref": "#/components/schemas/nexus.v1.PolicyRolloutReply"
          },
          "rollout_apply": {
            "type": "boolean"
          },
          "rollout_bucket": {
            "format": "int32",
            "type": "integer"
          },
          "rollout_eligible": {
            "type": "boolean"
          },
          "selected": {
            "type": "boolean"
          },
          "selection_reason": {
            "type": "string"
          },
          "stack_group": {
            "type": "string"
          },
          "stack_mode": {
            "type": "string"
          },
          "steps": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.PolicySimulationStepReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.PolicyExplanationReply": {
        "properties": {
          "candidates": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.PolicyExplanationCandidateReply"
            },
            "type": "array"
          },
          "policy_type": {
            "type": "string"
          },
          "warnings": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.PolicyListReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.PolicyReply"
            },
            "type": "array"
          },
          "next_cursor": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PolicyReferenceOptionListReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.PolicyReferenceOptionReply"
            },
            "type": "array"
          },
          "next_cursor": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PolicyReferenceOptionReply": {
        "properties": {
          "description": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PolicyReply": {
        "properties": {
          "code": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "current_revision": {
            "$ref": "#/components/schemas/nexus.v1.PolicyRevisionReply"
          },
          "description": {
            "type": "string"
          },
          "draft_revision": {
            "$ref": "#/components/schemas/nexus.v1.PolicyRevisionReply"
          },
          "history_revisions": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.PolicyRevisionReply"
            },
            "type": "array"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "pending_revision": {
            "$ref": "#/components/schemas/nexus.v1.PolicyRevisionReply"
          },
          "policy_type": {
            "type": "string"
          },
          "source_template_fork_id": {
            "type": "string"
          },
          "source_template_id": {
            "type": "string"
          },
          "source_template_version": {
            "format": "int32",
            "type": "integer"
          },
          "status": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PolicyRevisionReply": {
        "properties": {
          "bindings": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.PolicyBindingReply"
            },
            "type": "array"
          },
          "checks": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.PolicyCheckReply"
            },
            "type": "array"
          },
          "condition_json": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "effect_json": {
            "type": "string"
          },
          "effective_from": {
            "type": "string"
          },
          "effective_to": {
            "type": "string"
          },
          "exclusion_group": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "max_matches": {
            "format": "int32",
            "type": "integer"
          },
          "priority": {
            "format": "int32",
            "type": "integer"
          },
          "revision_no": {
            "format": "int32",
            "type": "integer"
          },
          "rollout": {
            "$ref": "#/components/schemas/nexus.v1.PolicyRolloutReply"
          },
          "stack_group": {
            "type": "string"
          },
          "stack_mode": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PolicyRolloutInput": {
        "properties": {
          "customer_account_ids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "mode": {
            "type": "string"
          },
          "percentage": {
            "format": "int32",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "nexus.v1.PolicyRolloutReply": {
        "properties": {
          "customer_account_ids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "mode": {
            "type": "string"
          },
          "percentage": {
            "format": "int32",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "nexus.v1.PolicySimulationReply": {
        "properties": {
          "effect_json": {
            "type": "string"
          },
          "matched": {
            "type": "boolean"
          },
          "policy_id": {
            "type": "string"
          },
          "policy_type": {
            "type": "string"
          },
          "revision_id": {
            "type": "string"
          },
          "steps": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.PolicySimulationStepReply"
            },
            "type": "array"
          },
          "warnings": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.PolicySimulationStepReply": {
        "properties": {
          "detail": {
            "type": "string"
          },
          "field": {
            "type": "string"
          },
          "matched": {
            "type": "boolean"
          },
          "operator": {
            "type": "string"
          },
          "path": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PolicyTemplateForkReply": {
        "properties": {
          "code": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "definition_snapshot_json": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "environment_id": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "slot_bindings_json": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "target_href": {
            "type": "string"
          },
          "target_id": {
            "type": "string"
          },
          "target_kind": {
            "type": "string"
          },
          "template_id": {
            "type": "string"
          },
          "template_version": {
            "format": "int32",
            "type": "integer"
          },
          "updated_at": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PolicyTemplateListReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.PolicyTemplateReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.PolicyTemplateReply": {
        "properties": {
          "category": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "definition_json": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "domain": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "policy_type": {
            "type": "string"
          },
          "recommended_order": {
            "format": "int32",
            "type": "integer"
          },
          "slot_schema_json": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "tags": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "version": {
            "format": "int32",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "nexus.v1.PrepareCompositeExecutionRequest": {
        "properties": {
          "components": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.CompositeExecutionComponent"
            },
            "type": "array"
          },
          "customer_account_id": {
            "description": "The billing owner is declared once at the ingress. A component cannot\n replace it with a different customer account.",
            "type": "string"
          },
          "execution_key": {
            "description": "Stable business id for the whole user-visible run. The component keys are\n deterministically derived from it and can be safely replayed after a\n process crash.",
            "type": "string"
          },
          "root_span_id": {
            "type": "string"
          },
          "trace_id": {
            "description": "Canonical W3C identifiers of the caller-owned root span. Normal SDK span\n reporting carries the durable parent/child topology for each component.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PrepareExecutionRequest": {
        "properties": {
          "billing_meter_code": {
            "type": "string"
          },
          "capability_id": {
            "description": "Capability is resolved from a previously fetched published execution\n profile. Metering validates it against the trusted Offer snapshot and\n freezes the corresponding revision on the Operation for Trace/audit.",
            "type": "string"
          },
          "capability_revision_id": {
            "description": "Revision returned by the profile. A fresh execution rejects a stale\n revision instead of silently adopting a newer price/route policy. An\n idempotent retry for an already-created execution still returns the\n original reservation.",
            "type": "string"
          },
          "customer_account_id": {
            "type": "string"
          },
          "estimates": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.ExecutionEstimate"
            },
            "type": "array"
          },
          "execution_key": {
            "type": "string"
          },
          "model": {
            "type": "string"
          },
          "offer_id": {
            "type": "string"
          },
          "operation_type": {
            "type": "string"
          },
          "provider": {
            "description": "Provider must come from a trusted route or Sidecar configuration. It is\n used to acquire provider-scoped capacity leases before external I/O.",
            "type": "string"
          },
          "quotas": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.ExecutionQuotaRequirement"
            },
            "type": "array"
          },
          "resource_id": {
            "type": "string"
          },
          "resource_type": {
            "type": "string"
          },
          "subject_id": {
            "type": "string"
          },
          "subject_type": {
            "type": "string"
          },
          "ttl_seconds": {
            "format": "int32",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "nexus.v1.PreviewCustomerSegmentRevisionRequest": {
        "properties": {
          "limit": {
            "format": "int32",
            "type": "integer"
          },
          "revision_id": {
            "type": "string"
          },
          "segment_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PriceBookReply": {
        "properties": {
          "code": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "market": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PriceTrace": {
        "properties": {
          "amount": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PricingRevisionReply": {
        "properties": {
          "checksum": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "offer_id": {
            "type": "string"
          },
          "price_book_id": {
            "type": "string"
          },
          "revision": {
            "format": "int32",
            "type": "integer"
          },
          "status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PrincipalBillingAssignmentReply": {
        "properties": {
          "cost_center_id": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "customer_account_id": {
            "type": "string"
          },
          "effective_from": {
            "type": "string"
          },
          "effective_until": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "principal_id": {
            "type": "string"
          },
          "principal_type": {
            "type": "string"
          },
          "retired_at": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ProbeModelProviderRequest": {
        "properties": {
          "code": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ProductCapabilityComponentInput": {
        "properties": {
          "capability_id": {
            "type": "string"
          },
          "included_quantity": {
            "type": "string"
          },
          "quantity": {
            "type": "string"
          },
          "sort_order": {
            "format": "int32",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "nexus.v1.ProductCapabilityComponentReply": {
        "properties": {
          "capability_code": {
            "type": "string"
          },
          "capability_id": {
            "type": "string"
          },
          "capability_kind": {
            "type": "string"
          },
          "capability_name": {
            "type": "string"
          },
          "capability_revision_id": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "included_quantity": {
            "type": "string"
          },
          "meter_code": {
            "type": "string"
          },
          "meter_id": {
            "type": "string"
          },
          "quantity": {
            "type": "string"
          },
          "sku_version_id": {
            "type": "string"
          },
          "sort_order": {
            "format": "int32",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "nexus.v1.ProductReply": {
        "properties": {
          "category": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "metadata_json": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "version": {
            "description": "Version zero is the first valid optimistic-lock revision. Preserve it in\n JSON so clients can immediately update a newly created product.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ProviderPriceBindingReply": {
        "properties": {
          "created_at": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "offer_id": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          },
          "provider_amount": {
            "type": "string"
          },
          "provider_price_id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PublishCapabilityRevisionRequest": {
        "properties": {
          "capability_id": {
            "type": "string"
          },
          "expected_version": {
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          },
          "revision_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PublishComposedProductPriceRequest": {
        "properties": {
          "amount": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "expected_version": {
            "type": "string"
          },
          "pricing_model": {
            "type": "string"
          },
          "product_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PublishMarketingCampaignRevisionRequest": {
        "properties": {
          "campaign_id": {
            "type": "string"
          },
          "expected_version": {
            "type": "string"
          },
          "revision_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PublishNotificationTemplateRequest": {
        "properties": {
          "template_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PublishPlanVersionRequest": {
        "properties": {
          "plan_version_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PublishPolicyRevisionRequest": {
        "properties": {
          "expected_version": {
            "type": "string"
          },
          "policy_id": {
            "type": "string"
          },
          "revision_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PublishPricingRevisionRequest": {
        "properties": {
          "expected_revision": {
            "format": "int32",
            "type": "integer"
          },
          "rule_set_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PublishSKUVersionRequest": {
        "properties": {
          "sku_version_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PutAccountGroupMemberRequest": {
        "properties": {
          "account_group_id": {
            "type": "string"
          },
          "consent_status": {
            "type": "string"
          },
          "customer_account_id": {
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          },
          "priority": {
            "format": "int32",
            "type": "integer"
          },
          "relationship": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PutConcurrencyPolicyRequest": {
        "properties": {
          "code": {
            "type": "string"
          },
          "dimension": {
            "type": "string"
          },
          "dimension_value": {
            "type": "string"
          },
          "lease_seconds": {
            "format": "int32",
            "type": "integer"
          },
          "max_concurrency": {
            "format": "int32",
            "type": "integer"
          },
          "status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PutCustomerTraitRequest": {
        "properties": {
          "customer_account_id": {
            "type": "string"
          },
          "expected_version": {
            "type": "string"
          },
          "expires_at": {
            "type": "string"
          },
          "source_ref": {
            "type": "string"
          },
          "trait_key": {
            "type": "string"
          },
          "value_json": {
            "type": "string"
          },
          "value_type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PutModelRouteRequest": {
        "properties": {
          "billing_meter_code": {
            "type": "string"
          },
          "capabilities_json": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "display_name": {
            "type": "string"
          },
          "max_tokens": {
            "format": "int32",
            "type": "integer"
          },
          "offer_id": {
            "type": "string"
          },
          "provider_code": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "upstream_model": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.PutRateLimitPolicyRequest": {
        "properties": {
          "algorithm": {
            "description": "FIXED_WINDOW is the compatibility default. TOKEN_BUCKET refills evenly\n during window_seconds and permits short bursts up to limit_count.\n SLIDING_WINDOW enforces an exact rolling window using an opaque Redis ZSET.",
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "dimension": {
            "type": "string"
          },
          "dimension_value": {
            "type": "string"
          },
          "limit_count": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "unit_mode": {
            "description": "REQUEST counts calls. TOKEN consumes a server-derived token/cost estimate;\n public traffic:check calls remain request-weighted by design.",
            "type": "string"
          },
          "window_seconds": {
            "format": "int32",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "nexus.v1.PutTraceCapturePolicyRequest": {
        "properties": {
          "capability_id": {
            "type": "string"
          },
          "customer_account_id": {
            "type": "string"
          },
          "expected_version": {
            "type": "string"
          },
          "legal_hold": {
            "type": "boolean"
          },
          "mode": {
            "type": "string"
          },
          "retention_days": {
            "format": "int32",
            "type": "integer"
          },
          "scope": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.QuoteCustomerPortalRequest": {
        "properties": {
          "coupon_code": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "offer_id": {
            "type": "string"
          },
          "quantity": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.QuotePolicyReplayReply": {
        "properties": {
          "context_summary_json": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "current_explanation": {
            "$ref": "#/components/schemas/nexus.v1.PolicyExplanationReply"
          },
          "customer_account_id": {
            "type": "string"
          },
          "discount_total": {
            "type": "string"
          },
          "observed_decisions": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.PolicyDecisionReply"
            },
            "type": "array"
          },
          "offer_id": {
            "type": "string"
          },
          "pricing_snapshot_json": {
            "type": "string"
          },
          "quote_created_at": {
            "type": "string"
          },
          "quote_id": {
            "type": "string"
          },
          "subtotal": {
            "type": "string"
          },
          "total": {
            "type": "string"
          },
          "warnings": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.QuoteReply": {
        "properties": {
          "adjustment_discount": {
            "type": "string"
          },
          "coupon_discount": {
            "type": "string"
          },
          "coupon_reservation_id": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "customer_account_id": {
            "type": "string"
          },
          "expires_at": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "quantity": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "subtotal": {
            "type": "string"
          },
          "total": {
            "type": "string"
          },
          "trace": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.PriceTrace"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.QuoteRequest": {
        "properties": {
          "coupon_code": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "customer_account_id": {
            "description": "Stable SaaS customer account. When supplied, Nexus uses it for coupon\n limits and every downstream commercial fact instead of customer_ref.",
            "type": "string"
          },
          "customer_ref": {
            "type": "string"
          },
          "customer_segments": {
            "description": "Deprecated: customer segments are commercial facts resolved by Nexus from\n the authenticated customer account. Production requests that set this\n field are rejected; use a pricing simulation endpoint for overrides.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "first_purchase": {
            "description": "Deprecated: first-purchase eligibility is resolved from trusted order\n history and cannot be asserted by a caller.",
            "type": "boolean"
          },
          "offer_id": {
            "type": "string"
          },
          "quantity": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.RateLimitPolicyListReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.RateLimitPolicyReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.RateLimitPolicyReply": {
        "properties": {
          "algorithm": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "dimension": {
            "type": "string"
          },
          "dimension_value": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "limit_count": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "unit_mode": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "window_seconds": {
            "format": "int32",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "nexus.v1.ReadyReply": {
        "properties": {
          "failed_checks": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "status": {
            "type": "string"
          },
          "timestamp": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ReclaimEntitlementQuotaRequest": {
        "properties": {
          "amount": {
            "type": "string"
          },
          "business_id": {
            "type": "string"
          },
          "customer_account_id": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "reservation_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.RefundAllocatedAmountsReply": {
        "description": "Monetary allocation fields use currency minor units encoded as strings.\n These are purchase-time facts, never recalculated using current catalogue prices.",
        "properties": {
          "amount_minor": {
            "type": "string"
          },
          "line_discount_minor": {
            "type": "string"
          },
          "shared_discount_minor": {
            "type": "string"
          },
          "subtotal_minor": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.RefundAllocatedItemReply": {
        "properties": {
          "amounts": {
            "$ref": "#/components/schemas/nexus.v1.RefundAllocatedAmountsReply"
          },
          "order_line_id": {
            "type": "string"
          },
          "quantity": {
            "type": "string"
          },
          "remaining_quantity": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.RefundAllocatedLineReply": {
        "properties": {
          "amounts": {
            "$ref": "#/components/schemas/nexus.v1.RefundAllocatedAmountsReply"
          },
          "order_line_id": {
            "type": "string"
          },
          "quantity": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.RefundEffectListReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.RefundEffectReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.RefundEffectReply": {
        "properties": {
          "attempts": {
            "format": "int32",
            "type": "integer"
          },
          "completed_at": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "decision_json": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "policy_version": {
            "type": "string"
          },
          "result_json": {
            "type": "string"
          },
          "source_id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.RefundEffectRetryReply": {
        "properties": {
          "queued": {
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "nexus.v1.RefundItemQuantityRequest": {
        "properties": {
          "order_line_id": {
            "type": "string"
          },
          "quantity": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.RefundItemsAllocationReply": {
        "properties": {
          "amounts": {
            "$ref": "#/components/schemas/nexus.v1.RefundAllocatedAmountsReply"
          },
          "currency": {
            "type": "string"
          },
          "lines": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.RefundAllocatedItemReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.RefundOrderAllocationReply": {
        "properties": {
          "amounts": {
            "$ref": "#/components/schemas/nexus.v1.RefundAllocatedAmountsReply"
          },
          "currency": {
            "type": "string"
          },
          "lines": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.RefundAllocatedLineReply"
            },
            "type": "array"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.RefundPreviewReply": {
        "properties": {
          "available_amount": {
            "type": "string"
          },
          "coupon_action": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "customer_account_id": {
            "type": "string"
          },
          "discount_amount": {
            "type": "string"
          },
          "entitlement_action": {
            "type": "string"
          },
          "environment_id": {
            "type": "string"
          },
          "full_refund": {
            "type": "boolean"
          },
          "item_allocation": {
            "$ref": "#/components/schemas/nexus.v1.RefundOrderAllocationReply"
          },
          "items_unavailable_reason": {
            "type": "string"
          },
          "mode": {
            "type": "string"
          },
          "order_id": {
            "type": "string"
          },
          "order_version": {
            "type": "string"
          },
          "paid_amount": {
            "type": "string"
          },
          "pending_amount": {
            "type": "string"
          },
          "policy_version": {
            "type": "string"
          },
          "preview_token": {
            "type": "string"
          },
          "refunded_amount": {
            "type": "string"
          },
          "requested_amount": {
            "type": "string"
          },
          "selected_items": {
            "$ref": "#/components/schemas/nexus.v1.RefundItemsAllocationReply"
          },
          "transaction_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.RefundPreviewRequest": {
        "properties": {
          "amount": {
            "description": "Optional for RETURN_ITEMS: the server calculates the original net amount.",
            "type": "string"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.RefundItemQuantityRequest"
            },
            "type": "array"
          },
          "mode": {
            "description": "LEGACY_CASH (compatibility), COMPENSATION (keep benefits), RETURN_ITEMS.",
            "type": "string"
          },
          "order_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.RefundReply": {
        "properties": {
          "amount": {
            "type": "string"
          },
          "completed_at": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "customer_account_id": {
            "type": "string"
          },
          "effects_status": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "mode": {
            "type": "string"
          },
          "order_id": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          },
          "provider_refund_id": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "recovery_state": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.RefundRequestListReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.RefundRequestReply"
            },
            "type": "array"
          },
          "next_cursor": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.RefundRequestLookup": {
        "properties": {
          "request_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.RefundRequestReply": {
        "properties": {
          "amount": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "customer_account_id": {
            "type": "string"
          },
          "effects_status": {
            "type": "string"
          },
          "execution_status": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "mode": {
            "type": "string"
          },
          "order_id": {
            "type": "string"
          },
          "policy_version": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "recovery_state": {
            "type": "string"
          },
          "refund_id": {
            "type": "string"
          },
          "requested_by": {
            "type": "string"
          },
          "review_reason": {
            "type": "string"
          },
          "reviewed_by": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ReleaseConcurrencyLeaseRequest": {
        "properties": {
          "lease_id": {
            "type": "string"
          },
          "operation_key": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ReleaseCreditsRequest": {
        "properties": {
          "reason": {
            "type": "string"
          },
          "reservation_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ReleaseEntitlementQuotaRequest": {
        "properties": {
          "reason": {
            "type": "string"
          },
          "reservation_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ReleaseExecutionRequest": {
        "properties": {
          "execution_key": {
            "type": "string"
          },
          "operation_id": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "reservation_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ReleaseMeteringOperationRequest": {
        "properties": {
          "operation_id": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.RenewConcurrencyLeaseRequest": {
        "properties": {
          "lease_id": {
            "type": "string"
          },
          "operation_key": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ReplayOperationPoliciesRequest": {
        "properties": {
          "operation_id": {
            "type": "string"
          },
          "policy_type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ReplayQuotePoliciesRequest": {
        "properties": {
          "quote_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ReportMediaHeartbeatRequest": {
        "properties": {
          "current_participants": {
            "format": "int32",
            "type": "integer"
          },
          "current_quality": {
            "type": "string"
          },
          "execution_key": {
            "type": "string"
          },
          "observed_at": {
            "type": "string"
          },
          "operation_id": {
            "type": "string"
          },
          "provider_session_id": {
            "type": "string"
          },
          "quality_slices": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.MediaQualitySlice"
            },
            "type": "array"
          },
          "reservation_id": {
            "type": "string"
          },
          "sequence_no": {
            "type": "string"
          },
          "source_event_id": {
            "type": "string"
          },
          "stage": {
            "description": "PROGRESS keeps the execution open. FINAL freezes authoritative media\n usage before the caller invokes CommitExecution with the returned amount.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ReportMeteringSpanRequest": {
        "properties": {
          "attributes_json": {
            "type": "string"
          },
          "content_capture": {
            "type": "string"
          },
          "ended_at": {
            "type": "string"
          },
          "entry_point": {
            "type": "string"
          },
          "error_code": {
            "type": "string"
          },
          "error_message": {
            "type": "string"
          },
          "error_type": {
            "type": "string"
          },
          "input_digest": {
            "type": "string"
          },
          "input_preview": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "links": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.MeteringSpanLink"
            },
            "type": "array"
          },
          "name": {
            "type": "string"
          },
          "operation_id": {
            "type": "string"
          },
          "output_digest": {
            "type": "string"
          },
          "output_preview": {
            "type": "string"
          },
          "parent_span_id": {
            "type": "string"
          },
          "sequence_no": {
            "type": "string"
          },
          "span_id": {
            "type": "string"
          },
          "span_key": {
            "type": "string"
          },
          "started_at": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "trace_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ReportMeteringUsageRequest": {
        "properties": {
          "attempt_id": {
            "type": "string"
          },
          "cumulative_quantity": {
            "type": "string"
          },
          "dimensions_json": {
            "type": "string"
          },
          "meter_code": {
            "type": "string"
          },
          "observed_at": {
            "type": "string"
          },
          "operation_id": {
            "type": "string"
          },
          "sequence_no": {
            "type": "string"
          },
          "source_event_id": {
            "type": "string"
          },
          "stage": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.RequestInvoiceRequest": {
        "properties": {
          "bill_id": {
            "type": "string"
          },
          "tax_number": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.RequestRefundRequest": {
        "properties": {
          "amount": {
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.RefundItemQuantityRequest"
            },
            "type": "array"
          },
          "mode": {
            "type": "string"
          },
          "order_id": {
            "type": "string"
          },
          "preview_token": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.RequestTraceContentErasureRequest": {
        "properties": {
          "customer_account_id": {
            "type": "string"
          },
          "operation_id": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "scope": {
            "type": "string"
          },
          "ticket_ref": {
            "type": "string"
          },
          "trace_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ReservationFundingAllocationReply": {
        "properties": {
          "account_type": {
            "type": "string"
          },
          "committed_amount": {
            "type": "string"
          },
          "customer_account_id": {
            "type": "string"
          },
          "ordinal": {
            "format": "int32",
            "type": "integer"
          },
          "released_amount": {
            "type": "string"
          },
          "reserved_amount": {
            "type": "string"
          },
          "transaction_cap": {
            "type": "string"
          },
          "wallet_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ReserveCreditsRequest": {
        "properties": {
          "business_id": {
            "type": "string"
          },
          "customer_account_id": {
            "type": "string"
          },
          "estimated_quantity": {
            "type": "string"
          },
          "meter_code": {
            "type": "string"
          },
          "offer_id": {
            "type": "string"
          },
          "ttl_seconds": {
            "format": "int32",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "nexus.v1.ReserveEntitlementQuotaRequest": {
        "properties": {
          "amount": {
            "type": "string"
          },
          "business_id": {
            "type": "string"
          },
          "customer_account_id": {
            "type": "string"
          },
          "entitlement_code": {
            "type": "string"
          },
          "resource_id": {
            "type": "string"
          },
          "ttl_seconds": {
            "format": "int32",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "nexus.v1.ResolveDataScopeRequest": {
        "properties": {
          "action": {
            "type": "string"
          },
          "permission": {
            "type": "string"
          },
          "resource_type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ResolveSettlementReviewCaseRequest": {
        "properties": {
          "case_id": {
            "type": "string"
          },
          "expected_version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.RestoreCustomerSegmentRevisionRequest": {
        "properties": {
          "idempotency_key": {
            "type": "string"
          },
          "revision_id": {
            "type": "string"
          },
          "segment_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ResumeMarketingCampaignRequest": {
        "properties": {
          "campaign_id": {
            "type": "string"
          },
          "expected_version": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.RetireComposedProductRequest": {
        "properties": {
          "expected_version": {
            "type": "string"
          },
          "product_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.RetireMarketingCampaignRequest": {
        "properties": {
          "campaign_id": {
            "type": "string"
          },
          "expected_version": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.RetirePrincipalBillingAssignmentRequest": {
        "properties": {
          "assignment_id": {
            "type": "string"
          },
          "expected_version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.RetryCustomerSegmentEvaluationJobRequest": {
        "properties": {
          "job_id": {
            "type": "string"
          },
          "segment_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.RetryDeadLetterRequest": {
        "properties": {
          "dead_letter_id": {
            "type": "string"
          },
          "note": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.RetryRefundEffectRequest": {
        "properties": {
          "effect_id": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "refund_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ReviewBreakGlassAccessRequestRequest": {
        "properties": {
          "comment": {
            "type": "string"
          },
          "decision": {
            "type": "string"
          },
          "expected_version": {
            "type": "string"
          },
          "request_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ReviewMarketingCampaignRevisionRequest": {
        "properties": {
          "campaign_id": {
            "type": "string"
          },
          "comment": {
            "type": "string"
          },
          "decision": {
            "type": "string"
          },
          "expected_version": {
            "type": "string"
          },
          "revision_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ReviewPolicyRevisionRequest": {
        "properties": {
          "comment": {
            "type": "string"
          },
          "decision": {
            "type": "string"
          },
          "expected_version": {
            "type": "string"
          },
          "policy_id": {
            "type": "string"
          },
          "revision_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ReviewRefundRequestRequest": {
        "properties": {
          "reason": {
            "type": "string"
          },
          "request_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ReviewTraceContentErasureRequestRequest": {
        "properties": {
          "comment": {
            "type": "string"
          },
          "decision": {
            "type": "string"
          },
          "expected_version": {
            "type": "string"
          },
          "request_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.RevokeAPIKeyRequest": {
        "properties": {
          "api_key_id": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.RevokeBreakGlassAccessRequestRequest": {
        "properties": {
          "expected_version": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "request_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.RevokeCustomerPortalAPIKeyRequest": {
        "properties": {
          "api_key_id": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.RevokeExecutionDelegationRequest": {
        "properties": {
          "delegation_id": {
            "type": "string"
          },
          "expected_version": {
            "type": "string"
          },
          "operation_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.RevokeMarketingBenefitGrantRequest": {
        "properties": {
          "benefit_grant_id": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.RoleReply": {
        "properties": {
          "code": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "is_system": {
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "permissions": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "status": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.RollbackPolicyRequest": {
        "properties": {
          "policy_id": {
            "type": "string"
          },
          "source_revision_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.SKUReply": {
        "properties": {
          "attributes_json": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "display_name": {
            "type": "string"
          },
          "entitlement_template_json": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "product_id": {
            "type": "string"
          },
          "published_version_id": {
            "type": "string"
          },
          "published_version_no": {
            "format": "int32",
            "type": "integer"
          },
          "status": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "version_id": {
            "type": "string"
          },
          "version_no": {
            "format": "int32",
            "type": "integer"
          },
          "version_status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.SavePlanRevisionRequest": {
        "properties": {
          "billing_period": {
            "type": "string"
          },
          "expected_version_no": {
            "format": "int32",
            "type": "integer"
          },
          "interval_count": {
            "format": "int32",
            "type": "integer"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.PlanItemInput"
            },
            "type": "array"
          },
          "name": {
            "type": "string"
          },
          "plan_id": {
            "type": "string"
          },
          "trial_days": {
            "format": "int32",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "nexus.v1.SaveSKURevisionRequest": {
        "properties": {
          "attributes_json": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "display_name": {
            "type": "string"
          },
          "entitlement_template_json": {
            "type": "string"
          },
          "expected_version": {
            "type": "string"
          },
          "sku_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.SchedulePolicyRevisionRequest": {
        "properties": {
          "effective_from": {
            "type": "string"
          },
          "expected_version": {
            "type": "string"
          },
          "policy_id": {
            "type": "string"
          },
          "revision_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ServiceAccountReply": {
        "properties": {
          "allowed_scopes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "code": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "owner_display_name": {
            "type": "string"
          },
          "owner_email": {
            "type": "string"
          },
          "owner_user_id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "tenant_id": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.SessionEventsReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.MeteringSpanReply"
            },
            "type": "array"
          },
          "next_cursor": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.SetBudgetPoolStatusRequest": {
        "properties": {
          "budget_pool_id": {
            "type": "string"
          },
          "expected_version": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.SetFailureChargePolicyRequest": {
        "properties": {
          "charge_on_failure": {
            "type": "boolean"
          },
          "meter_code": {
            "type": "string"
          },
          "offer_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.SetNotificationPreferenceRequest": {
        "properties": {
          "category": {
            "type": "string"
          },
          "channel": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "nexus.v1.SettlementReviewCaseListReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.SettlementReviewCaseReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.SettlementReviewCaseReply": {
        "properties": {
          "approval_comment": {
            "type": "string"
          },
          "approved_at": {
            "type": "string"
          },
          "approved_by_id": {
            "type": "string"
          },
          "approved_execution_status": {
            "type": "string"
          },
          "approved_failure_code": {
            "type": "string"
          },
          "assigned_at": {
            "type": "string"
          },
          "assigned_to_id": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "environment_id": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "impact_snapshot_json": {
            "type": "string"
          },
          "operation_id": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "resolved_at": {
            "type": "string"
          },
          "resolved_by_id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.SettlementReviewResolutionReply": {
        "properties": {
          "operation": {
            "$ref": "#/components/schemas/nexus.v1.MeteringOperationReply"
          },
          "review_case": {
            "$ref": "#/components/schemas/nexus.v1.SettlementReviewCaseReply"
          }
        },
        "type": "object"
      },
      "nexus.v1.SettlementTestReply": {
        "properties": {
          "actual_quantity": {
            "type": "string"
          },
          "attempt_id": {
            "type": "string"
          },
          "estimated_quantity": {
            "type": "string"
          },
          "execution_status": {
            "type": "string"
          },
          "operation_id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.SettlementTestRequest": {
        "properties": {
          "actual_quantity": {
            "type": "string"
          },
          "capability_id": {
            "type": "string"
          },
          "estimated_quantity": {
            "type": "string"
          },
          "execution_status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.SimulateAuthorizationModelRequest": {
        "properties": {
          "checks": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.AccessCheckInput"
            },
            "type": "array"
          },
          "model_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.SimulateMarketingCampaignRequest": {
        "properties": {
          "campaign_id": {
            "type": "string"
          },
          "customer_account_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.SimulatePolicyRevisionRequest": {
        "properties": {
          "context_json": {
            "type": "string"
          },
          "policy_id": {
            "type": "string"
          },
          "revision_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.StartMarketingExperimentRequest": {
        "properties": {
          "expected_version": {
            "type": "string"
          },
          "experiment_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.StartMeteringAttemptRequest": {
        "properties": {
          "attempt_key": {
            "type": "string"
          },
          "metadata_json": {
            "type": "string"
          },
          "model": {
            "type": "string"
          },
          "operation_id": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          },
          "provider_request_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.StartMeteringOperationRequest": {
        "properties": {
          "billing_meter_code": {
            "type": "string"
          },
          "capability_id": {
            "type": "string"
          },
          "correlation_keys": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.MeteringCorrelationKey"
            },
            "type": "array"
          },
          "customer_account_id": {
            "type": "string"
          },
          "entry_point": {
            "type": "string"
          },
          "estimates": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.MeteringQuantity"
            },
            "type": "array"
          },
          "metadata_json": {
            "type": "string"
          },
          "model_route_id": {
            "type": "string"
          },
          "offer_id": {
            "type": "string"
          },
          "operation_key": {
            "type": "string"
          },
          "operation_type": {
            "type": "string"
          },
          "resource_id": {
            "type": "string"
          },
          "resource_type": {
            "type": "string"
          },
          "subject_id": {
            "type": "string"
          },
          "subject_type": {
            "type": "string"
          },
          "ttl_seconds": {
            "format": "int32",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "nexus.v1.SubmitMarketingCampaignRevisionRequest": {
        "properties": {
          "campaign_id": {
            "type": "string"
          },
          "expected_version": {
            "type": "string"
          },
          "revision_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.SubmitPolicyRevisionRequest": {
        "properties": {
          "expected_version": {
            "type": "string"
          },
          "policy_id": {
            "type": "string"
          },
          "revision_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.SubscriptionReply": {
        "properties": {
          "cancel_at_period_end": {
            "type": "boolean"
          },
          "current_period_end": {
            "type": "string"
          },
          "current_period_start": {
            "type": "string"
          },
          "customer_account_id": {
            "type": "string"
          },
          "grace_ends_at": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "offer_id": {
            "type": "string"
          },
          "payment_provider": {
            "type": "string"
          },
          "provider_subscription_id": {
            "type": "string"
          },
          "renewal_strategy": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.SyncPaymentIntentRequest": {
        "properties": {
          "payment_intent_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.TenantReply": {
        "properties": {
          "billing_timezone": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "default_currency": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.TraceCapturePolicyListReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.TraceCapturePolicyReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.TraceCapturePolicyReply": {
        "properties": {
          "capability_id": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "customer_account_id": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "legal_hold": {
            "type": "boolean"
          },
          "mode": {
            "type": "string"
          },
          "retention_days": {
            "format": "int32",
            "type": "integer"
          },
          "scope": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.TraceContentErasureReceiptListReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.TraceContentErasureReceiptReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.TraceContentErasureReceiptReply": {
        "properties": {
          "approved_at": {
            "type": "string"
          },
          "approved_by_id": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "customer_account_id": {
            "type": "string"
          },
          "erased_span_count": {
            "type": "string"
          },
          "erasure_request_id": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "operation_id": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "requested_by_id": {
            "type": "string"
          },
          "requested_by_type": {
            "type": "string"
          },
          "scope": {
            "type": "string"
          },
          "trace_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.TraceContentErasureRequestListReply": {
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.TraceContentErasureRequestReply"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "nexus.v1.TraceContentErasureRequestReply": {
        "properties": {
          "customer_account_id": {
            "type": "string"
          },
          "executed_at": {
            "type": "string"
          },
          "executed_by_id": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "operation_id": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          },
          "receipt_id": {
            "type": "string"
          },
          "requested_at": {
            "type": "string"
          },
          "requested_by_id": {
            "type": "string"
          },
          "review_comment": {
            "type": "string"
          },
          "reviewed_at": {
            "type": "string"
          },
          "reviewed_by_id": {
            "type": "string"
          },
          "scope": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "ticket_ref": {
            "type": "string"
          },
          "trace_id": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.TrafficDecisionReply": {
        "properties": {
          "allowed": {
            "type": "boolean"
          },
          "decisions": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.TrafficLimitDecisionReply"
            },
            "type": "array"
          },
          "evidence_recorded": {
            "type": "boolean"
          },
          "limited": {
            "type": "boolean"
          },
          "retry_after_ms": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.TrafficLimitDecisionReply": {
        "properties": {
          "allowed": {
            "type": "boolean"
          },
          "dimension": {
            "type": "string"
          },
          "dimension_value": {
            "type": "string"
          },
          "policy_code": {
            "type": "string"
          },
          "remaining": {
            "type": "string"
          },
          "retry_after_ms": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.UpdateAuthorizationPolicyRequest": {
        "properties": {
          "action": {
            "type": "string"
          },
          "data_scope": {
            "type": "string"
          },
          "effect": {
            "type": "string"
          },
          "expected_version": {
            "type": "string"
          },
          "filter_json": {
            "type": "string"
          },
          "object_pattern": {
            "type": "string"
          },
          "policy_id": {
            "type": "string"
          },
          "priority": {
            "format": "int32",
            "type": "integer"
          },
          "status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.UpdateCapabilityRevisionRequest": {
        "properties": {
          "capability_id": {
            "type": "string"
          },
          "config": {
            "$ref": "#/components/schemas/nexus.v1.CapabilityConfiguration"
          },
          "description": {
            "type": "string"
          },
          "expected_version": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "revision_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.UpdateCatalogProductRequest": {
        "properties": {
          "category": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "expected_version": {
            "type": "string"
          },
          "metadata_json": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "product_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.UpdateComposedProductRequest": {
        "properties": {
          "category": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "expected_version": {
            "type": "string"
          },
          "metadata_json": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "product_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.UpdateCustomerAccountRequest": {
        "properties": {
          "customer_account_id": {
            "type": "string"
          },
          "expected_version": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.UpdateCustomerMemberRequest": {
        "properties": {
          "customer_account_id": {
            "type": "string"
          },
          "expected_version": {
            "type": "string"
          },
          "member_id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.UpdateCustomerSegmentRequest": {
        "properties": {
          "description": {
            "type": "string"
          },
          "expected_version": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "segment_id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.UpdateDashboardLayoutRequest": {
        "properties": {
          "expected_version": {
            "type": "string"
          },
          "widget_ids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "widget_sizes": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          }
        },
        "type": "object"
      },
      "nexus.v1.UpdateInvoiceStatusRequest": {
        "properties": {
          "document_url": {
            "type": "string"
          },
          "expected_version": {
            "type": "string"
          },
          "invoice_id": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          },
          "provider_invoice_id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.UpdateMarketingCampaignRevisionRequest": {
        "properties": {
          "amount": {
            "type": "string"
          },
          "asset_code": {
            "type": "string"
          },
          "benefit_expires_after_seconds": {
            "type": "string"
          },
          "benefit_type": {
            "type": "string"
          },
          "budget_amount": {
            "type": "string"
          },
          "campaign_id": {
            "type": "string"
          },
          "capability_id": {
            "type": "string"
          },
          "coupon_definition_id": {
            "type": "string"
          },
          "eligible_api_key_id": {
            "type": "string"
          },
          "ends_at": {
            "type": "string"
          },
          "environment_id": {
            "type": "string"
          },
          "expected_version": {
            "type": "string"
          },
          "max_grants": {
            "type": "string"
          },
          "max_grants_per_customer": {
            "type": "string"
          },
          "meter_code": {
            "type": "string"
          },
          "offer_id": {
            "type": "string"
          },
          "product_id": {
            "type": "string"
          },
          "revision_id": {
            "type": "string"
          },
          "starts_at": {
            "type": "string"
          },
          "trigger_type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.UpdateMemberRequest": {
        "properties": {
          "expected_version": {
            "type": "string"
          },
          "member_id": {
            "type": "string"
          },
          "role_codes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "status": {
            "type": "string"
          },
          "tenant_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.UpdatePaymentConnectionRequest": {
        "properties": {
          "api_secret_ref": {
            "type": "string"
          },
          "connection_id": {
            "type": "string"
          },
          "expected_version": {
            "type": "string"
          },
          "merchant_account_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "webhook_secret_ref": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.UpdatePolicyExecutorAdoptionRequest": {
        "properties": {
          "expected_version": {
            "type": "string"
          },
          "mode": {
            "type": "string"
          },
          "policy_type": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.UpdatePolicyRevisionRequest": {
        "properties": {
          "bindings": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.PolicyBindingInput"
            },
            "type": "array"
          },
          "condition_json": {
            "type": "string"
          },
          "effect_json": {
            "type": "string"
          },
          "effective_from": {
            "type": "string"
          },
          "effective_to": {
            "type": "string"
          },
          "exclusion_group": {
            "type": "string"
          },
          "expected_version": {
            "type": "string"
          },
          "max_matches": {
            "format": "int32",
            "type": "integer"
          },
          "policy_id": {
            "type": "string"
          },
          "priority": {
            "format": "int32",
            "type": "integer"
          },
          "revision_id": {
            "type": "string"
          },
          "rollout": {
            "$ref": "#/components/schemas/nexus.v1.PolicyRolloutInput"
          },
          "stack_group": {
            "type": "string"
          },
          "stack_mode": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.UpdateRoleRequest": {
        "properties": {
          "description": {
            "type": "string"
          },
          "expected_version": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "permissions": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "role_id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.UpdateServiceAccountRequest": {
        "properties": {
          "expected_version": {
            "type": "string"
          },
          "service_account_id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.UpsertProviderPriceBindingRequest": {
        "properties": {
          "currency": {
            "type": "string"
          },
          "offer_id": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          },
          "provider_amount": {
            "type": "string"
          },
          "provider_price_id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.UsageEventReply": {
        "properties": {
          "billable": {
            "type": "boolean"
          },
          "duplicate": {
            "type": "boolean"
          },
          "execution_status": {
            "type": "string"
          },
          "failure_charge_policy_source": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ValidateCapabilityRevisionRequest": {
        "properties": {
          "capability_id": {
            "type": "string"
          },
          "expected_version": {
            "type": "string"
          },
          "revision_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ValidateCustomerSegmentRevisionRequest": {
        "properties": {
          "expected_version": {
            "type": "string"
          },
          "revision_id": {
            "type": "string"
          },
          "segment_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ValidatePaymentConnectionRequest": {
        "properties": {
          "connection_id": {
            "type": "string"
          },
          "expected_version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.ValidatePolicyRevisionRequest": {
        "properties": {
          "expected_version": {
            "type": "string"
          },
          "policy_id": {
            "type": "string"
          },
          "revision_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.VersionReply": {
        "properties": {
          "build_time": {
            "type": "string"
          },
          "commit": {
            "type": "string"
          },
          "go_version": {
            "type": "string"
          },
          "service": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.WebhookEndpointCreatedReply": {
        "properties": {
          "endpoint": {
            "$ref": "#/components/schemas/nexus.v1.WebhookEndpointReply"
          },
          "signing_secret": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.WebhookEndpointReply": {
        "properties": {
          "created_at": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "subscribed_events": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "url": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.WorkerReadiness": {
        "properties": {
          "current_tasks": {
            "type": "string"
          },
          "failure_count": {
            "type": "string"
          },
          "instance_id": {
            "type": "string"
          },
          "last_batch_duration_ms": {
            "type": "string"
          },
          "last_batch_name": {
            "type": "string"
          },
          "last_seen_at": {
            "type": "string"
          },
          "last_success_at": {
            "type": "string"
          },
          "mode": {
            "type": "string"
          },
          "service_name": {
            "type": "string"
          },
          "stale": {
            "type": "boolean"
          },
          "version": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "nexus.v1.WorkspaceReadinessReply": {
        "description": "This is a control-plane readiness projection, not a liveness probe. API\n reachability is implied by a successful response; external Provider/payment\n delivery still requires its own sandbox evidence before a release.",
        "properties": {
          "active_customers": {
            "type": "string"
          },
          "active_meters": {
            "type": "string"
          },
          "active_model_routes": {
            "type": "string"
          },
          "database_ready": {
            "type": "boolean"
          },
          "dead_letters": {
            "type": "string"
          },
          "event_bus_ready": {
            "type": "boolean"
          },
          "event_bus_required": {
            "type": "boolean"
          },
          "fresh_worker_count": {
            "type": "string"
          },
          "oldest_dead_letter_age_seconds": {
            "type": "string"
          },
          "oldest_pending_reconciliation_age_seconds": {
            "type": "string"
          },
          "oldest_review_required_age_seconds": {
            "description": "Zero means no record of that backlog type exists. Use its corresponding\n count to distinguish an empty queue from a very recent record.",
            "type": "string"
          },
          "payment_mode": {
            "description": "Safe, non-secret money boundary: DISABLED, SIMULATION, SANDBOX, or LIVE.",
            "type": "string"
          },
          "payment_reconciliation_mismatches": {
            "type": "string"
          },
          "pending_reconciliation": {
            "type": "string"
          },
          "published_capabilities": {
            "type": "string"
          },
          "redis_ready": {
            "description": "These are sampled independently when this operator projection is read.\n A failed dependency does not erase durable backlog evidence from the same\n response. event_bus_ready is true when the bus is intentionally optional.",
            "type": "boolean"
          },
          "review_required": {
            "type": "string"
          },
          "stale_worker_count": {
            "type": "string"
          },
          "trace_content_policy_configured": {
            "type": "boolean"
          },
          "trace_content_purged_last_24h": {
            "type": "string"
          },
          "trace_content_retained_spans": {
            "description": "Content-free lifecycle counters. They make retention progress observable\n without exposing captured prompt/output material.",
            "type": "string"
          },
          "workers": {
            "items": {
              "$ref": "#/components/schemas/nexus.v1.WorkerReadiness"
            },
            "type": "array"
          }
        },
        "type": "object"
      }
    }
  },
  "info": {
    "description": "Nexus SaaS Commerce Control Plane",
    "title": "Nexus API",
    "version": "1.0.0"
  },
  "openapi": "3.0.3",
  "paths": {
    "/api/v1/system/version": {
      "get": {
        "operationId": "System_Version",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.VersionReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "System"
        ]
      }
    },
    "/healthz": {
      "get": {
        "operationId": "System_Health",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.HealthReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "System"
        ]
      }
    },
    "/readyz": {
      "get": {
        "operationId": "System_Ready",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ReadyReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "System"
        ]
      }
    },
    "/v1/api-keys": {
      "get": {
        "operationId": "TenantService_ListAPIKeys",
        "parameters": [
          {
            "in": "query",
            "name": "environment",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListAPIKeysReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      },
      "post": {
        "operationId": "TenantService_CreateAPIKey",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CreateAPIKeyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.APIKeyCreatedReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/api-keys/{api_key_id}/revoke": {
      "post": {
        "operationId": "TenantService_RevokeAPIKey",
        "parameters": [
          {
            "in": "path",
            "name": "api_key_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.RevokeAPIKeyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.APIKeyReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/api-keys/{api_key_id}:revoke": {
      "post": {
        "operationId": "TenantService_RevokeAPIKey",
        "parameters": [
          {
            "in": "path",
            "name": "api_key_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.RevokeAPIKeyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.APIKeyReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/audio/usage:complete": {
      "post": {
        "description": "CompleteAudioUsage is a trusted audio-provider/sidecar callback. It turns one\n completed ASR, TTS, generation or processing attempt into a metering\n operation, usage report and credit settlement.",
        "operationId": "ModelGatewayService_CompleteAudioUsage",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CompleteAudioUsageRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.AudioUsageReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "ModelGatewayService"
        ]
      }
    },
    "/v1/authorization/models": {
      "get": {
        "operationId": "AuthorizationService_ListModels",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.AuthorizationModelsReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "AuthorizationService"
        ]
      },
      "post": {
        "operationId": "AuthorizationService_CreateModel",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CreateAuthorizationModelRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.AuthorizationModelReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "AuthorizationService"
        ]
      }
    },
    "/v1/authorization/models/{model_id}:activate": {
      "post": {
        "operationId": "AuthorizationService_ActivateModel",
        "parameters": [
          {
            "in": "path",
            "name": "model_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.ActivateAuthorizationModelRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.AuthorizationModelStateReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "AuthorizationService"
        ]
      }
    },
    "/v1/authorization/models/{model_id}:simulate": {
      "post": {
        "operationId": "AuthorizationService_SimulateModel",
        "parameters": [
          {
            "in": "path",
            "name": "model_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.SimulateAuthorizationModelRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.AuthorizationModelTrialReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "AuthorizationService"
        ]
      }
    },
    "/v1/authorization/policies": {
      "get": {
        "operationId": "AuthorizationService_ListPolicies",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListAuthorizationPoliciesReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "AuthorizationService"
        ]
      },
      "post": {
        "operationId": "AuthorizationService_CreatePolicy",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CreateAuthorizationPolicyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.AuthorizationPolicyReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "AuthorizationService"
        ]
      }
    },
    "/v1/authorization/policies/{policy_id}": {
      "put": {
        "operationId": "AuthorizationService_UpdatePolicy",
        "parameters": [
          {
            "in": "path",
            "name": "policy_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.UpdateAuthorizationPolicyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.AuthorizationPolicyReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "AuthorizationService"
        ]
      }
    },
    "/v1/authorization:batch-check": {
      "post": {
        "operationId": "AuthorizationService_BatchCheck",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.BatchAccessCheckRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.BatchAccessCheckReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "AuthorizationService"
        ]
      }
    },
    "/v1/authorization:check": {
      "post": {
        "operationId": "TenantService_AuthorizationCheck",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.AuthorizationCheckRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.AuthorizationCheckReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/authorization:data-scope": {
      "post": {
        "operationId": "AuthorizationService_ResolveDataScope",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.ResolveDataScopeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.DataScopeReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "AuthorizationService"
        ]
      }
    },
    "/v1/billing/account-groups": {
      "get": {
        "operationId": "BillingService_ListAccountGroups",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.AccountGroupListReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "BillingService"
        ]
      },
      "post": {
        "operationId": "BillingService_CreateAccountGroup",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CreateAccountGroupRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.AccountGroupReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/billing/account-groups/{account_group_id}": {
      "get": {
        "operationId": "BillingService_GetAccountGroup",
        "parameters": [
          {
            "in": "path",
            "name": "account_group_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.AccountGroupReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/billing/account-groups/{account_group_id}/members/{customer_account_id}": {
      "put": {
        "operationId": "BillingService_PutAccountGroupMember",
        "parameters": [
          {
            "in": "path",
            "name": "account_group_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "customer_account_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.PutAccountGroupMemberRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.AccountGroupMemberReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/billing/failure-charge-policies": {
      "get": {
        "operationId": "BillingService_ListFailureChargePolicies",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.FailureChargePolicyListReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/billing/failure-charge-policy": {
      "get": {
        "operationId": "BillingService_GetFailureChargePolicy",
        "parameters": [
          {
            "in": "query",
            "name": "offer_id",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "meter_code",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.FailureChargePolicyReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "BillingService"
        ]
      },
      "put": {
        "operationId": "BillingService_SetFailureChargePolicy",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.SetFailureChargePolicyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.FailureChargePolicyReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/billing/funding-policies/{beneficiary_customer_account_id}": {
      "get": {
        "operationId": "BillingService_GetFundingPolicy",
        "parameters": [
          {
            "in": "path",
            "name": "beneficiary_customer_account_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.FundingPolicyReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "BillingService"
        ]
      },
      "put": {
        "operationId": "BillingService_ConfigureFundingPolicy",
        "parameters": [
          {
            "in": "path",
            "name": "beneficiary_customer_account_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.ConfigureFundingPolicyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.FundingPolicyReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/bills:generate": {
      "post": {
        "operationId": "BillingService_GenerateBill",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.GenerateBillRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.BillReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/break-glass-requests": {
      "get": {
        "operationId": "TenantService_ListBreakGlassAccessRequests",
        "parameters": [
          {
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListBreakGlassAccessRequestsReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      },
      "post": {
        "operationId": "TenantService_CreateBreakGlassAccessRequest",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CreateBreakGlassAccessRequestRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.BreakGlassAccessRequestReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/break-glass-requests/{request_id}:activate": {
      "post": {
        "operationId": "TenantService_ActivateBreakGlassAccessRequest",
        "parameters": [
          {
            "in": "path",
            "name": "request_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.ActivateBreakGlassAccessRequestRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.BreakGlassAccessRequestReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/break-glass-requests/{request_id}:review": {
      "post": {
        "operationId": "TenantService_ReviewBreakGlassAccessRequest",
        "parameters": [
          {
            "in": "path",
            "name": "request_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.ReviewBreakGlassAccessRequestRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.BreakGlassAccessRequestReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/break-glass-requests/{request_id}:revoke": {
      "post": {
        "operationId": "TenantService_RevokeBreakGlassAccessRequest",
        "parameters": [
          {
            "in": "path",
            "name": "request_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.RevokeBreakGlassAccessRequestRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.BreakGlassAccessRequestReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/budgets": {
      "get": {
        "operationId": "BillingService_ListBudgetPools",
        "parameters": [
          {
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.BudgetPoolListReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "BillingService"
        ]
      },
      "post": {
        "operationId": "BillingService_CreateBudgetPool",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CreateBudgetPoolRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.BudgetPoolReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/budgets/{budget_pool_id}:status": {
      "post": {
        "operationId": "BillingService_SetBudgetPoolStatus",
        "parameters": [
          {
            "in": "path",
            "name": "budget_pool_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.SetBudgetPoolStatusRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.BudgetPoolReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/capabilities": {
      "get": {
        "operationId": "CapabilityService_ListCapabilities",
        "parameters": [
          {
            "in": "query",
            "name": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "kind",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CapabilityListReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CapabilityService"
        ]
      },
      "post": {
        "operationId": "CapabilityService_CreateCapability",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CreateCapabilityRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CapabilityReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CapabilityService"
        ]
      }
    },
    "/v1/capabilities/{capability_id}": {
      "get": {
        "operationId": "CapabilityService_GetCapability",
        "parameters": [
          {
            "in": "path",
            "name": "capability_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CapabilityReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CapabilityService"
        ]
      }
    },
    "/v1/capabilities/{capability_id}/execution-profile": {
      "get": {
        "description": "Returns the published, trusted execution defaults for a capability. This\n is intended for a Sidecar/SDK at runtime: it eliminates copying Offer,\n Meter, provider and quota identifiers from the Console into application\n configuration. It never returns credentials or mutable pricing rules.",
        "operationId": "CapabilityService_GetCapabilityExecutionProfile",
        "parameters": [
          {
            "in": "path",
            "name": "capability_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CapabilityExecutionProfileReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CapabilityService"
        ]
      }
    },
    "/v1/capabilities/{capability_id}/revisions": {
      "post": {
        "operationId": "CapabilityService_CreateCapabilityRevision",
        "parameters": [
          {
            "in": "path",
            "name": "capability_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CreateCapabilityRevisionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CapabilityReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CapabilityService"
        ]
      }
    },
    "/v1/capabilities/{capability_id}/revisions/{revision_id}": {
      "patch": {
        "operationId": "CapabilityService_UpdateCapabilityRevision",
        "parameters": [
          {
            "in": "path",
            "name": "capability_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "revision_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.UpdateCapabilityRevisionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CapabilityReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CapabilityService"
        ]
      }
    },
    "/v1/capabilities/{capability_id}/revisions/{revision_id}:publish": {
      "post": {
        "operationId": "CapabilityService_PublishCapabilityRevision",
        "parameters": [
          {
            "in": "path",
            "name": "capability_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "revision_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.PublishCapabilityRevisionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CapabilityReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CapabilityService"
        ]
      }
    },
    "/v1/capabilities/{capability_id}/revisions/{revision_id}:validate": {
      "post": {
        "operationId": "CapabilityService_ValidateCapabilityRevision",
        "parameters": [
          {
            "in": "path",
            "name": "capability_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "revision_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.ValidateCapabilityRevisionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CapabilityReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CapabilityService"
        ]
      }
    },
    "/v1/capabilities/{capability_id}:settlement-test": {
      "post": {
        "operationId": "CapabilityService_RunSettlementTest",
        "parameters": [
          {
            "in": "path",
            "name": "capability_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.SettlementTestRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.SettlementTestReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CapabilityService"
        ]
      }
    },
    "/v1/capabilities:adopt": {
      "post": {
        "operationId": "CapabilityService_AdoptCapability",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.AdoptCapabilityRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CapabilityReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CapabilityService"
        ]
      }
    },
    "/v1/catalog/adoptable-offers": {
      "get": {
        "operationId": "CapabilityService_ListAdoptableOffers",
        "parameters": [
          {
            "in": "query",
            "name": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.AdoptableOfferListReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CapabilityService"
        ]
      }
    },
    "/v1/catalog/composed-products": {
      "get": {
        "operationId": "CommerceService_ListComposedProducts",
        "parameters": [
          {
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ComposedProductListReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CommerceService"
        ]
      },
      "post": {
        "description": "Creates a sale-ready product from published Capability revisions. Nexus\n resolves the immutable SKU version and Meter for every component so a\n caller never has to assemble catalog internals by ID.",
        "operationId": "CommerceService_CreateComposedProduct",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CreateComposedProductRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ComposedProductReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CommerceService"
        ]
      }
    },
    "/v1/catalog/composed-products/{product_id}": {
      "get": {
        "operationId": "CommerceService_GetComposedProduct",
        "parameters": [
          {
            "in": "path",
            "name": "product_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ComposedProductReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CommerceService"
        ]
      },
      "patch": {
        "description": "Updates the mutable catalogue identity without rewriting published plan,\n offer, capability or pricing snapshots.",
        "operationId": "CommerceService_UpdateComposedProduct",
        "parameters": [
          {
            "in": "path",
            "name": "product_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.UpdateComposedProductRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ComposedProductReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CommerceService"
        ]
      }
    },
    "/v1/catalog/composed-products/{product_id}/revisions": {
      "post": {
        "operationId": "CommerceService_CreateComposedProductRevision",
        "parameters": [
          {
            "in": "path",
            "name": "product_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CreateComposedProductRevisionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ComposedProductReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CommerceService"
        ]
      }
    },
    "/v1/catalog/composed-products/{product_id}:publish-price": {
      "post": {
        "description": "Publishes a simple flat or per-unit price for a composed product in one\n transaction. The price book and immutable rule revision cannot be left in\n a partially-created state by a Console workflow failure.",
        "operationId": "CommerceService_PublishComposedProductPrice",
        "parameters": [
          {
            "in": "path",
            "name": "product_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.PublishComposedProductPriceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ComposedProductReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CommerceService"
        ]
      }
    },
    "/v1/catalog/composed-products/{product_id}:retire": {
      "post": {
        "operationId": "CommerceService_RetireComposedProduct",
        "parameters": [
          {
            "in": "path",
            "name": "product_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.RetireComposedProductRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ComposedProductReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CommerceService"
        ]
      }
    },
    "/v1/catalog/offers": {
      "post": {
        "operationId": "CommerceService_CreateOffer",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CreateOfferRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.OfferReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CommerceService"
        ]
      }
    },
    "/v1/catalog/plan-versions/{plan_version_id}:publish": {
      "post": {
        "operationId": "CommerceService_PublishPlanVersion",
        "parameters": [
          {
            "in": "path",
            "name": "plan_version_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.PublishPlanVersionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.PlanReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CommerceService"
        ]
      }
    },
    "/v1/catalog/plans": {
      "post": {
        "operationId": "CommerceService_CreatePlan",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CreatePlanRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.PlanReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CommerceService"
        ]
      }
    },
    "/v1/catalog/plans/{plan_id}": {
      "patch": {
        "description": "Saves a plan draft or forks a published plan into a new draft revision.",
        "operationId": "CommerceService_SavePlanRevision",
        "parameters": [
          {
            "in": "path",
            "name": "plan_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.SavePlanRevisionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.PlanReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CommerceService"
        ]
      }
    },
    "/v1/catalog/products": {
      "post": {
        "operationId": "CommerceService_CreateProduct",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CreateProductRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ProductReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CommerceService"
        ]
      }
    },
    "/v1/catalog/products/{product_id}": {
      "get": {
        "description": "Returns the complete management workspace for a product, including its\n latest SKU and plan revisions. This endpoint also works before a product\n has been composed into an Offer.",
        "operationId": "CommerceService_GetCatalogProduct",
        "parameters": [
          {
            "in": "path",
            "name": "product_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CatalogProductReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CommerceService"
        ]
      },
      "patch": {
        "operationId": "CommerceService_UpdateCatalogProduct",
        "parameters": [
          {
            "in": "path",
            "name": "product_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.UpdateCatalogProductRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CatalogProductReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CommerceService"
        ]
      }
    },
    "/v1/catalog/products/{product_id}/skus": {
      "post": {
        "operationId": "CommerceService_CreateSKU",
        "parameters": [
          {
            "in": "path",
            "name": "product_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CreateSKURequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.SKUReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CommerceService"
        ]
      }
    },
    "/v1/catalog/sku-versions/{sku_version_id}:publish": {
      "post": {
        "operationId": "CommerceService_PublishSKUVersion",
        "parameters": [
          {
            "in": "path",
            "name": "sku_version_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.PublishSKUVersionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.SKUReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CommerceService"
        ]
      }
    },
    "/v1/catalog/skus/{sku_id}": {
      "patch": {
        "description": "Saves mutable SKU fields into the current draft, or creates a new draft\n revision when the current revision has already been published.",
        "operationId": "CommerceService_SaveSKURevision",
        "parameters": [
          {
            "in": "path",
            "name": "sku_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.SaveSKURevisionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.SKUReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CommerceService"
        ]
      }
    },
    "/v1/chat/completions": {
      "post": {
        "operationId": "ModelGatewayService_ChatCompletion",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.ModelChatCompletionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ModelChatCompletionReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "ModelGatewayService"
        ]
      }
    },
    "/v1/chat/completions:stream": {
      "post": {
        "description": "ChatCompletionStream relays provider chunks as Server-Sent Events. Nexus\n reserves before the first chunk and settles once Bifrost reports final usage.",
        "operationId": "ModelGatewayService_ChatCompletionStream",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.ModelChatCompletionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ModelChatCompletionChunk"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "ModelGatewayService"
        ]
      }
    },
    "/v1/composite-executions": {
      "post": {
        "description": "PrepareCompositeExecution coordinates independently billable child\n operations under one customer-owned business execution. Every component\n keeps its own reservation and settlement evidence; the root key and trace\n context make the end-to-end flow queryable without collapsing meters.",
        "operationId": "ExecutionService_PrepareCompositeExecution",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.PrepareCompositeExecutionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CompositeExecutionReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "ExecutionService"
        ]
      }
    },
    "/v1/console/bootstrap": {
      "get": {
        "operationId": "OperationsService_GetConsoleBootstrap",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ConsoleBootstrapReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "OperationsService"
        ]
      }
    },
    "/v1/console/customers/{customer_account_id}/workspace": {
      "get": {
        "operationId": "TenantService_GetCustomerWorkspace",
        "parameters": [
          {
            "in": "path",
            "name": "customer_account_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CustomerWorkspaceReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/console/dashboard-layout": {
      "get": {
        "operationId": "OperationsService_GetDashboardLayout",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.DashboardLayoutReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "OperationsService"
        ]
      },
      "patch": {
        "operationId": "OperationsService_UpdateDashboardLayout",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.UpdateDashboardLayoutRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.DashboardLayoutReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "OperationsService"
        ]
      }
    },
    "/v1/console/overview": {
      "get": {
        "operationId": "OperationsService_GetDashboard",
        "parameters": [
          {
            "description": "Optional calendar month in YYYY-MM. Credit consumption is evaluated in\n the workspace billing timezone; an empty value selects the current month.",
            "in": "query",
            "name": "month",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Inclusive local calendar dates in the workspace billing timezone. They\n supersede month when both are present and are limited to 366 days.",
            "in": "query",
            "name": "from",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "to",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "DAY, WEEK or MONTH. Empty defaults to DAY.",
            "in": "query",
            "name": "interval",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "NONE or PREVIOUS_PERIOD. Empty defaults to PREVIOUS_PERIOD.",
            "in": "query",
            "name": "compare",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.DashboardReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "OperationsService"
        ]
      }
    },
    "/v1/console/search": {
      "get": {
        "operationId": "OperationsService_SearchConsoleResources",
        "parameters": [
          {
            "in": "query",
            "name": "q",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "types",
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ConsoleSearchReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "OperationsService"
        ]
      }
    },
    "/v1/credits/balance": {
      "get": {
        "operationId": "BillingService_GetCreditBalance",
        "parameters": [
          {
            "in": "query",
            "name": "customer_account_id",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CreditBalanceReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/credits/grants": {
      "post": {
        "operationId": "BillingService_GrantCredits",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.GrantCreditsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CreditBalanceReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/credits/reservations": {
      "post": {
        "operationId": "BillingService_ReserveCredits",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.ReserveCreditsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CreditReservationReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/credits/reservations/{reservation_id}:commit": {
      "post": {
        "operationId": "BillingService_CommitCredits",
        "parameters": [
          {
            "in": "path",
            "name": "reservation_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CommitCreditsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CreditReservationReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/credits/reservations/{reservation_id}:release": {
      "post": {
        "operationId": "BillingService_ReleaseCredits",
        "parameters": [
          {
            "in": "path",
            "name": "reservation_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.ReleaseCreditsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CreditReservationReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/customer-portal/accounts": {
      "get": {
        "operationId": "TenantService_ListCustomerPortalAccounts",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListCustomerPortalAccountsReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/customer-portal/api-keys": {
      "get": {
        "operationId": "TenantService_ListCustomerPortalAPIKeys",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListAPIKeysReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      },
      "post": {
        "operationId": "TenantService_CreateCustomerPortalAPIKey",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CreateCustomerPortalAPIKeyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.APIKeyCreatedReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/customer-portal/api-keys/{api_key_id}/revoke": {
      "post": {
        "operationId": "TenantService_RevokeCustomerPortalAPIKey",
        "parameters": [
          {
            "in": "path",
            "name": "api_key_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.RevokeCustomerPortalAPIKeyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.APIKeyReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/customer-portal/api-keys/{api_key_id}:revoke": {
      "post": {
        "operationId": "TenantService_RevokeCustomerPortalAPIKey",
        "parameters": [
          {
            "in": "path",
            "name": "api_key_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.RevokeCustomerPortalAPIKeyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.APIKeyReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/customer-portal/offers": {
      "get": {
        "description": "Customer-facing catalog and quote endpoints derive tenant and customer\n scope from the authenticated portal member; callers cannot select either.",
        "operationId": "CommerceService_ListCustomerPortalOffers",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CustomerPortalOfferListReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CommerceService"
        ]
      }
    },
    "/v1/customer-portal/operations": {
      "get": {
        "operationId": "TenantService_ListCustomerPortalOperations",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          },
          {
            "description": "Opaque keyset cursor returned by the previous page. Account scope remains\n derived from the authenticated customer member and is never caller-set.",
            "in": "query",
            "name": "cursor",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListCustomerPortalOperationsReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/customer-portal/orders": {
      "get": {
        "operationId": "TenantService_ListCustomerPortalOrders",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListCustomerPortalOrdersReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      },
      "post": {
        "operationId": "CheckoutService_CreateCustomerPortalOrder",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CreateCustomerPortalOrderRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.OrderReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CheckoutService"
        ]
      }
    },
    "/v1/customer-portal/orders/{order_id}": {
      "get": {
        "operationId": "CheckoutService_GetCustomerPortalOrder",
        "parameters": [
          {
            "in": "path",
            "name": "order_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CustomerPortalOrderDetailReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CheckoutService"
        ]
      }
    },
    "/v1/customer-portal/payment-providers": {
      "get": {
        "operationId": "CheckoutService_ListCustomerPortalPaymentProviders",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CustomerPortalPaymentProviderListReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CheckoutService"
        ]
      }
    },
    "/v1/customer-portal/payments/intents": {
      "post": {
        "operationId": "CheckoutService_CreateCustomerPortalPaymentIntent",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CreateCustomerPortalPaymentIntentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.PaymentIntentReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CheckoutService"
        ]
      }
    },
    "/v1/customer-portal/quotes": {
      "post": {
        "operationId": "CommerceService_QuoteCustomerPortal",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.QuoteCustomerPortalRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.QuoteReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CommerceService"
        ]
      }
    },
    "/v1/customer-portal/subscriptions": {
      "get": {
        "operationId": "TenantService_ListCustomerPortalSubscriptions",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListCustomerPortalSubscriptionsReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/customer-portal/subscriptions/{subscription_id}:cancel": {
      "post": {
        "operationId": "CheckoutService_CancelCustomerPortalSubscription",
        "parameters": [
          {
            "in": "path",
            "name": "subscription_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CancelCustomerPortalSubscriptionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.SubscriptionReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CheckoutService"
        ]
      }
    },
    "/v1/customer-portal/summary": {
      "get": {
        "operationId": "TenantService_GetCustomerPortalSummary",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CustomerPortalSummaryReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/customer-segments": {
      "get": {
        "operationId": "TenantService_ListCustomerSegments",
        "parameters": [
          {
            "in": "query",
            "name": "environment_id",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListCustomerSegmentsReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      },
      "post": {
        "operationId": "TenantService_CreateCustomerSegment",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CreateCustomerSegmentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CustomerSegmentReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/customer-segments/{segment_id}": {
      "get": {
        "operationId": "TenantService_GetCustomerSegment",
        "parameters": [
          {
            "in": "path",
            "name": "segment_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CustomerSegmentReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      },
      "patch": {
        "operationId": "TenantService_UpdateCustomerSegment",
        "parameters": [
          {
            "in": "path",
            "name": "segment_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.UpdateCustomerSegmentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CustomerSegmentReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/customer-segments/{segment_id}/evaluation-jobs": {
      "get": {
        "operationId": "TenantService_ListCustomerSegmentEvaluationJobs",
        "parameters": [
          {
            "in": "path",
            "name": "segment_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListCustomerSegmentEvaluationJobsReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/customer-segments/{segment_id}/evaluation-jobs/{job_id}:retry": {
      "post": {
        "operationId": "TenantService_RetryCustomerSegmentEvaluationJob",
        "parameters": [
          {
            "in": "path",
            "name": "segment_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.RetryCustomerSegmentEvaluationJobRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CustomerSegmentEvaluationJobReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/customer-segments/{segment_id}/members": {
      "get": {
        "operationId": "TenantService_ListCustomerSegmentMembers",
        "parameters": [
          {
            "in": "path",
            "name": "segment_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListCustomerSegmentMembersReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/customer-segments/{segment_id}/members:batch-add": {
      "post": {
        "operationId": "TenantService_AddCustomerSegmentMembers",
        "parameters": [
          {
            "in": "path",
            "name": "segment_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.BatchCustomerSegmentMembersRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CustomerSegmentMembershipChangeReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/customer-segments/{segment_id}/members:batch-remove": {
      "post": {
        "operationId": "TenantService_RemoveCustomerSegmentMembers",
        "parameters": [
          {
            "in": "path",
            "name": "segment_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.BatchCustomerSegmentMembersRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CustomerSegmentMembershipChangeReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/customer-segments/{segment_id}/revisions": {
      "get": {
        "operationId": "TenantService_ListCustomerSegmentRevisions",
        "parameters": [
          {
            "in": "path",
            "name": "segment_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListCustomerSegmentRevisionsReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      },
      "post": {
        "operationId": "TenantService_CreateCustomerSegmentRevision",
        "parameters": [
          {
            "in": "path",
            "name": "segment_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CreateCustomerSegmentRevisionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CustomerSegmentRevisionReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/customer-segments/{segment_id}/revisions/{revision_id}": {
      "get": {
        "operationId": "TenantService_GetCustomerSegmentRevision",
        "parameters": [
          {
            "in": "path",
            "name": "segment_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "revision_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CustomerSegmentRevisionReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/customer-segments/{segment_id}/revisions/{revision_id}:activate": {
      "post": {
        "operationId": "TenantService_ActivateCustomerSegmentRevision",
        "parameters": [
          {
            "in": "path",
            "name": "segment_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "revision_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.ActivateCustomerSegmentRevisionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CustomerSegmentRevisionReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/customer-segments/{segment_id}/revisions/{revision_id}:compare-active": {
      "post": {
        "operationId": "TenantService_CompareCustomerSegmentRevision",
        "parameters": [
          {
            "in": "path",
            "name": "segment_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "revision_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CompareCustomerSegmentRevisionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CustomerSegmentRevisionComparisonReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/customer-segments/{segment_id}/revisions/{revision_id}:preview": {
      "post": {
        "operationId": "TenantService_PreviewCustomerSegmentRevision",
        "parameters": [
          {
            "in": "path",
            "name": "segment_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "revision_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.PreviewCustomerSegmentRevisionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CustomerSegmentRevisionPreviewReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/customer-segments/{segment_id}/revisions/{revision_id}:restore": {
      "post": {
        "operationId": "TenantService_RestoreCustomerSegmentRevision",
        "parameters": [
          {
            "in": "path",
            "name": "segment_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "revision_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.RestoreCustomerSegmentRevisionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CustomerSegmentRevisionReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/customer-segments/{segment_id}/revisions/{revision_id}:validate": {
      "post": {
        "operationId": "TenantService_ValidateCustomerSegmentRevision",
        "parameters": [
          {
            "in": "path",
            "name": "segment_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "revision_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.ValidateCustomerSegmentRevisionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CustomerSegmentRevisionReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/customer-traits:ingest": {
      "post": {
        "operationId": "TenantService_IngestCustomerTrait",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.IngestCustomerTraitRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CustomerTraitReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/customers": {
      "get": {
        "operationId": "TenantService_ListCustomerAccounts",
        "parameters": [
          {
            "in": "query",
            "name": "environment_id",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListCustomerAccountsReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      },
      "post": {
        "operationId": "TenantService_CreateCustomerAccount",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CreateCustomerAccountRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CustomerAccountReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/customers/{customer_account_id}": {
      "get": {
        "operationId": "TenantService_GetCustomerAccount",
        "parameters": [
          {
            "in": "path",
            "name": "customer_account_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CustomerAccountReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      },
      "patch": {
        "operationId": "TenantService_UpdateCustomerAccount",
        "parameters": [
          {
            "in": "path",
            "name": "customer_account_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.UpdateCustomerAccountRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CustomerAccountReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/customers/{customer_account_id}/members": {
      "get": {
        "operationId": "TenantService_ListCustomerMembers",
        "parameters": [
          {
            "in": "path",
            "name": "customer_account_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListCustomerMembersReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      },
      "post": {
        "operationId": "TenantService_InviteCustomerMember",
        "parameters": [
          {
            "in": "path",
            "name": "customer_account_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.InviteCustomerMemberRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CustomerMemberReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/customers/{customer_account_id}/members/{member_id}": {
      "patch": {
        "operationId": "TenantService_UpdateCustomerMember",
        "parameters": [
          {
            "in": "path",
            "name": "customer_account_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "member_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.UpdateCustomerMemberRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CustomerMemberReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/customers/{customer_account_id}/segments": {
      "get": {
        "operationId": "TenantService_ListCustomerSegmentsForCustomer",
        "parameters": [
          {
            "in": "path",
            "name": "customer_account_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListCustomerSegmentsReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/customers/{customer_account_id}/traits": {
      "get": {
        "operationId": "TenantService_ListCustomerTraits",
        "parameters": [
          {
            "in": "path",
            "name": "customer_account_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListCustomerTraitsReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/customers/{customer_account_id}/traits/{trait_key}": {
      "put": {
        "operationId": "TenantService_PutCustomerTrait",
        "parameters": [
          {
            "in": "path",
            "name": "customer_account_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "trait_key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.PutCustomerTraitRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CustomerTraitReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/entitlements": {
      "get": {
        "operationId": "CheckoutService_ListEntitlements",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListEntitlementsReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CheckoutService"
        ]
      }
    },
    "/v1/entitlements/quota-reservations": {
      "post": {
        "operationId": "EntitlementService_ReserveQuota",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.ReserveEntitlementQuotaRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.EntitlementQuotaReservationReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "EntitlementService"
        ]
      }
    },
    "/v1/entitlements/quota-reservations/{reservation_id}:commit": {
      "post": {
        "operationId": "EntitlementService_CommitQuota",
        "parameters": [
          {
            "in": "path",
            "name": "reservation_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CommitEntitlementQuotaRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.EntitlementQuotaReservationReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "EntitlementService"
        ]
      }
    },
    "/v1/entitlements/quota-reservations/{reservation_id}:reclaim": {
      "post": {
        "operationId": "EntitlementService_ReclaimQuota",
        "parameters": [
          {
            "in": "path",
            "name": "reservation_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.ReclaimEntitlementQuotaRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.EntitlementQuotaReservationReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "EntitlementService"
        ]
      }
    },
    "/v1/entitlements/quota-reservations/{reservation_id}:release": {
      "post": {
        "operationId": "EntitlementService_ReleaseQuota",
        "parameters": [
          {
            "in": "path",
            "name": "reservation_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.ReleaseEntitlementQuotaRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.EntitlementQuotaReservationReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "EntitlementService"
        ]
      }
    },
    "/v1/entitlements:check": {
      "post": {
        "operationId": "EntitlementService_Check",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CheckEntitlementRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.EntitlementDecisionReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "EntitlementService"
        ]
      }
    },
    "/v1/environments": {
      "get": {
        "operationId": "TenantService_ListEnvironments",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListEnvironmentsReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/executions": {
      "post": {
        "operationId": "ExecutionService_PrepareExecution",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.PrepareExecutionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ExecutionReservationReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "ExecutionService"
        ]
      }
    },
    "/v1/executions/{reservation_id}:commit": {
      "post": {
        "operationId": "ExecutionService_CommitExecution",
        "parameters": [
          {
            "in": "path",
            "name": "reservation_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CommitExecutionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ExecutionReservationReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "ExecutionService"
        ]
      }
    },
    "/v1/executions/{reservation_id}:media-heartbeat": {
      "post": {
        "operationId": "ExecutionService_ReportMediaHeartbeat",
        "parameters": [
          {
            "in": "path",
            "name": "reservation_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.ReportMediaHeartbeatRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.MediaHeartbeatReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "ExecutionService"
        ]
      }
    },
    "/v1/executions/{reservation_id}:provider-started": {
      "post": {
        "operationId": "ExecutionService_MarkExecutionProviderStarted",
        "parameters": [
          {
            "in": "path",
            "name": "reservation_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.MarkExecutionProviderStartedRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ExecutionReservationReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "ExecutionService"
        ]
      }
    },
    "/v1/executions/{reservation_id}:release": {
      "post": {
        "operationId": "ExecutionService_ReleaseExecution",
        "parameters": [
          {
            "in": "path",
            "name": "reservation_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.ReleaseExecutionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ExecutionReservationReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "ExecutionService"
        ]
      }
    },
    "/v1/invitations:accept": {
      "post": {
        "operationId": "TenantService_AcceptInvitation",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.InvitationTokenRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.MemberReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/invitations:preview": {
      "post": {
        "description": "Invitee-only operations. The token is submitted in a POST body, never in\n a tenant header; the service requires a signed verified-email identity.",
        "operationId": "TenantService_PreviewInvitation",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.InvitationTokenRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.InvitationPreviewReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/invoices": {
      "get": {
        "operationId": "BillingService_ListInvoices",
        "parameters": [
          {
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListInvoicesReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "BillingService"
        ]
      },
      "post": {
        "operationId": "BillingService_RequestInvoice",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.RequestInvoiceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.InvoiceReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/invoices/{invoice_id}": {
      "get": {
        "operationId": "BillingService_GetInvoice",
        "parameters": [
          {
            "in": "path",
            "name": "invoice_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.InvoiceReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/invoices/{invoice_id}:status": {
      "post": {
        "operationId": "BillingService_UpdateInvoiceStatus",
        "parameters": [
          {
            "in": "path",
            "name": "invoice_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.UpdateInvoiceStatusRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.InvoiceReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/marketing/benefit-grants": {
      "get": {
        "operationId": "MarketingService_ListBenefitGrants",
        "parameters": [
          {
            "in": "query",
            "name": "campaign_id",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "customer_account_id",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.MarketingBenefitGrantListReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MarketingService"
        ]
      }
    },
    "/v1/marketing/benefit-grants/{benefit_grant_id}:revoke": {
      "post": {
        "operationId": "MarketingService_RevokeBenefitGrant",
        "parameters": [
          {
            "in": "path",
            "name": "benefit_grant_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.RevokeMarketingBenefitGrantRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.MarketingBenefitGrantReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MarketingService"
        ]
      }
    },
    "/v1/marketing/campaigns": {
      "get": {
        "operationId": "MarketingService_ListCampaigns",
        "parameters": [
          {
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.MarketingCampaignListReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MarketingService"
        ]
      },
      "post": {
        "operationId": "MarketingService_CreateCampaign",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CreateMarketingCampaignRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.MarketingCampaignReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MarketingService"
        ]
      }
    },
    "/v1/marketing/campaigns/{campaign_id}": {
      "get": {
        "operationId": "MarketingService_GetCampaign",
        "parameters": [
          {
            "in": "path",
            "name": "campaign_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.MarketingCampaignReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MarketingService"
        ]
      }
    },
    "/v1/marketing/campaigns/{campaign_id}/revisions": {
      "post": {
        "operationId": "MarketingService_CreateCampaignRevision",
        "parameters": [
          {
            "in": "path",
            "name": "campaign_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CreateMarketingCampaignRevisionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.MarketingCampaignReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MarketingService"
        ]
      }
    },
    "/v1/marketing/campaigns/{campaign_id}/revisions/{revision_id}": {
      "patch": {
        "operationId": "MarketingService_UpdateCampaignRevision",
        "parameters": [
          {
            "in": "path",
            "name": "campaign_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "revision_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.UpdateMarketingCampaignRevisionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.MarketingCampaignReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MarketingService"
        ]
      }
    },
    "/v1/marketing/campaigns/{campaign_id}/revisions/{revision_id}:publish": {
      "post": {
        "operationId": "MarketingService_PublishCampaignRevision",
        "parameters": [
          {
            "in": "path",
            "name": "campaign_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "revision_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.PublishMarketingCampaignRevisionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.MarketingCampaignReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MarketingService"
        ]
      }
    },
    "/v1/marketing/campaigns/{campaign_id}/revisions/{revision_id}:review": {
      "post": {
        "operationId": "MarketingService_ReviewCampaignRevision",
        "parameters": [
          {
            "in": "path",
            "name": "campaign_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "revision_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.ReviewMarketingCampaignRevisionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.MarketingCampaignReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MarketingService"
        ]
      }
    },
    "/v1/marketing/campaigns/{campaign_id}/revisions/{revision_id}:submit-review": {
      "post": {
        "operationId": "MarketingService_SubmitCampaignRevision",
        "parameters": [
          {
            "in": "path",
            "name": "campaign_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "revision_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.SubmitMarketingCampaignRevisionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.MarketingCampaignReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MarketingService"
        ]
      }
    },
    "/v1/marketing/campaigns/{campaign_id}:pause": {
      "post": {
        "operationId": "MarketingService_PauseCampaign",
        "parameters": [
          {
            "in": "path",
            "name": "campaign_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.PauseMarketingCampaignRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.MarketingCampaignReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MarketingService"
        ]
      }
    },
    "/v1/marketing/campaigns/{campaign_id}:resume": {
      "post": {
        "operationId": "MarketingService_ResumeCampaign",
        "parameters": [
          {
            "in": "path",
            "name": "campaign_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.ResumeMarketingCampaignRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.MarketingCampaignReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MarketingService"
        ]
      }
    },
    "/v1/marketing/campaigns/{campaign_id}:retire": {
      "post": {
        "operationId": "MarketingService_RetireCampaign",
        "parameters": [
          {
            "in": "path",
            "name": "campaign_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.RetireMarketingCampaignRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.MarketingCampaignReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MarketingService"
        ]
      }
    },
    "/v1/marketing/campaigns/{campaign_id}:simulate": {
      "post": {
        "description": "SimulateCampaign evaluates a real customer fact without emitting a Grant,\n changing a wallet, reserving quota, or creating a coupon code.",
        "operationId": "MarketingService_SimulateCampaign",
        "parameters": [
          {
            "in": "path",
            "name": "campaign_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.SimulateMarketingCampaignRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.MarketingCampaignSimulationReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MarketingService"
        ]
      }
    },
    "/v1/marketing/experiments": {
      "get": {
        "operationId": "MarketingService_ListExperiments",
        "parameters": [
          {
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.MarketingExperimentListReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MarketingService"
        ]
      },
      "post": {
        "operationId": "MarketingService_CreateExperiment",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CreateMarketingExperimentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.MarketingExperimentReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MarketingService"
        ]
      }
    },
    "/v1/marketing/experiments/{experiment_id}/analytics": {
      "get": {
        "operationId": "MarketingService_GetExperimentAnalytics",
        "parameters": [
          {
            "in": "path",
            "name": "experiment_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.MarketingExperimentAnalyticsReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MarketingService"
        ]
      }
    },
    "/v1/marketing/experiments/{experiment_id}:start": {
      "post": {
        "operationId": "MarketingService_StartExperiment",
        "parameters": [
          {
            "in": "path",
            "name": "experiment_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.StartMarketingExperimentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.MarketingExperimentReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MarketingService"
        ]
      }
    },
    "/v1/me": {
      "get": {
        "operationId": "TenantService_GetMe",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.GetMeReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/members": {
      "get": {
        "operationId": "TenantService_ListMembers",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListMembersReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/metering/operations": {
      "get": {
        "operationId": "MeteringService_ListOperations",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "customer_account_id",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "include_settlement",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Stable caller idempotency/business key. This is intentionally an exact\n match (not a fuzzy search) so a Sidecar can recover one interrupted\n operation without enumerating a tenant's whole ledger.",
            "in": "query",
            "name": "operation_key",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.MeteringOperationListReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MeteringService"
        ]
      },
      "post": {
        "operationId": "MeteringService_StartOperation",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.StartMeteringOperationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.MeteringOperationReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MeteringService"
        ]
      }
    },
    "/v1/metering/operations/{operation_id}": {
      "get": {
        "operationId": "MeteringService_GetOperation",
        "parameters": [
          {
            "in": "path",
            "name": "operation_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.MeteringOperationReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MeteringService"
        ]
      }
    },
    "/v1/metering/operations/{operation_id}/attempts": {
      "post": {
        "operationId": "MeteringService_StartAttempt",
        "parameters": [
          {
            "in": "path",
            "name": "operation_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.StartMeteringAttemptRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.MeteringAttemptReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MeteringService"
        ]
      }
    },
    "/v1/metering/operations/{operation_id}/attempts/{attempt_id}/usage:report": {
      "post": {
        "operationId": "MeteringService_ReportUsage",
        "parameters": [
          {
            "in": "path",
            "name": "operation_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "attempt_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.ReportMeteringUsageRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.MeteringUsageEventReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MeteringService"
        ]
      }
    },
    "/v1/metering/operations/{operation_id}/delegations": {
      "post": {
        "operationId": "MeteringService_IssueExecutionDelegation",
        "parameters": [
          {
            "in": "path",
            "name": "operation_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.IssueExecutionDelegationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ExecutionDelegationReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MeteringService"
        ]
      }
    },
    "/v1/metering/operations/{operation_id}/delegations/{delegation_id}:revoke": {
      "post": {
        "operationId": "MeteringService_RevokeExecutionDelegation",
        "parameters": [
          {
            "in": "path",
            "name": "operation_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "delegation_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.RevokeExecutionDelegationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ExecutionDelegationReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MeteringService"
        ]
      }
    },
    "/v1/metering/operations/{operation_id}/evidence:batch-report": {
      "post": {
        "description": "BatchReportEvidence amortizes transport and authentication overhead while\n preserving an acknowledgement per idempotent evidence item. Every item is\n constrained to the same root Operation and execution delegation.",
        "operationId": "MeteringService_BatchReportEvidence",
        "parameters": [
          {
            "in": "path",
            "name": "operation_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.BatchReportMeteringEvidenceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.BatchReportMeteringEvidenceReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MeteringService"
        ]
      }
    },
    "/v1/metering/operations/{operation_id}/spans": {
      "get": {
        "operationId": "MeteringService_ListSpans",
        "parameters": [
          {
            "in": "path",
            "name": "operation_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.MeteringSpanListReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MeteringService"
        ]
      }
    },
    "/v1/metering/operations/{operation_id}/spans/{span_id}": {
      "get": {
        "operationId": "MeteringService_GetSpan",
        "parameters": [
          {
            "in": "path",
            "name": "operation_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "span_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.MeteringSpanReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MeteringService"
        ]
      }
    },
    "/v1/metering/operations/{operation_id}/spans/{span_id}/content": {
      "get": {
        "operationId": "MeteringService_GetSpanContent",
        "parameters": [
          {
            "in": "path",
            "name": "operation_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "span_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.MeteringSpanContentReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MeteringService"
        ]
      }
    },
    "/v1/metering/operations/{operation_id}/spans:report": {
      "post": {
        "operationId": "MeteringService_ReportSpan",
        "parameters": [
          {
            "in": "path",
            "name": "operation_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.ReportMeteringSpanRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.MeteringSpanReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MeteringService"
        ]
      }
    },
    "/v1/metering/operations/{operation_id}:finalize": {
      "post": {
        "operationId": "MeteringService_FinalizeOperation",
        "parameters": [
          {
            "in": "path",
            "name": "operation_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.FinalizeMeteringOperationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.MeteringOperationReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MeteringService"
        ]
      }
    },
    "/v1/metering/operations/{operation_id}:release": {
      "post": {
        "operationId": "MeteringService_ReleaseOperation",
        "parameters": [
          {
            "in": "path",
            "name": "operation_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.ReleaseMeteringOperationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.MeteringOperationReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MeteringService"
        ]
      }
    },
    "/v1/metering/session-events": {
      "get": {
        "description": "Read-only playback of immutable replay events, never execution or retry.",
        "operationId": "MeteringService_ListSessionEvents",
        "parameters": [
          {
            "in": "query",
            "name": "session_id",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "customer_account_id",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.SessionEventsReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MeteringService"
        ]
      }
    },
    "/v1/metering/settlement-review-cases": {
      "get": {
        "operationId": "MeteringService_ListSettlementReviewCases",
        "parameters": [
          {
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.SettlementReviewCaseListReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MeteringService"
        ]
      }
    },
    "/v1/metering/settlement-review-cases/{case_id}:approve": {
      "post": {
        "operationId": "MeteringService_ApproveSettlementReviewCase",
        "parameters": [
          {
            "in": "path",
            "name": "case_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.ApproveSettlementReviewCaseRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.SettlementReviewCaseReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MeteringService"
        ]
      }
    },
    "/v1/metering/settlement-review-cases/{case_id}:assign": {
      "post": {
        "operationId": "MeteringService_AssignSettlementReviewCase",
        "parameters": [
          {
            "in": "path",
            "name": "case_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.AssignSettlementReviewCaseRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.SettlementReviewCaseReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MeteringService"
        ]
      }
    },
    "/v1/metering/settlement-review-cases/{case_id}:resolve": {
      "post": {
        "operationId": "MeteringService_ResolveSettlementReviewCase",
        "parameters": [
          {
            "in": "path",
            "name": "case_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.ResolveSettlementReviewCaseRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.SettlementReviewResolutionReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MeteringService"
        ]
      }
    },
    "/v1/metering/trace-capture-policies": {
      "get": {
        "operationId": "MeteringService_ListTraceCapturePolicies",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.TraceCapturePolicyListReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MeteringService"
        ]
      },
      "put": {
        "operationId": "MeteringService_PutTraceCapturePolicy",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.PutTraceCapturePolicyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.TraceCapturePolicyReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MeteringService"
        ]
      }
    },
    "/v1/metering/trace-content-erasure-receipts": {
      "get": {
        "operationId": "MeteringService_ListTraceContentErasureReceipts",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "customer_account_id",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.TraceContentErasureReceiptListReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MeteringService"
        ]
      }
    },
    "/v1/metering/trace-content-erasure-requests": {
      "get": {
        "operationId": "MeteringService_ListTraceContentErasureRequests",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "customer_account_id",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.TraceContentErasureRequestListReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MeteringService"
        ]
      },
      "post": {
        "operationId": "MeteringService_RequestTraceContentErasure",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.RequestTraceContentErasureRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.TraceContentErasureRequestReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MeteringService"
        ]
      }
    },
    "/v1/metering/trace-content-erasure-requests/{request_id}:execute": {
      "post": {
        "operationId": "MeteringService_ExecuteTraceContentErasureRequest",
        "parameters": [
          {
            "in": "path",
            "name": "request_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.ExecuteTraceContentErasureRequestRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.TraceContentErasureReceiptReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MeteringService"
        ]
      }
    },
    "/v1/metering/trace-content-erasure-requests/{request_id}:review": {
      "post": {
        "operationId": "MeteringService_ReviewTraceContentErasureRequest",
        "parameters": [
          {
            "in": "path",
            "name": "request_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.ReviewTraceContentErasureRequestRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.TraceContentErasureRequestReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MeteringService"
        ]
      }
    },
    "/v1/metering/traces": {
      "get": {
        "operationId": "MeteringService_ListTraces",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "customer_account_id",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "operation_status",
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "in": "query",
            "name": "entry_point",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "operation_type",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.MeteringTraceListReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MeteringService"
        ]
      }
    },
    "/v1/metering/traces/{trace_id}/spans": {
      "get": {
        "description": "ListTraceSpans returns every Span carrying one W3C Trace ID. This is the\n cross-operation view used by a composite execution: each child Operation\n remains independently billable, while the diagnostic trace stays whole.",
        "operationId": "MeteringService_ListTraceSpans",
        "parameters": [
          {
            "in": "path",
            "name": "trace_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.MeteringSpanListReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MeteringService"
        ]
      }
    },
    "/v1/metering/traces:erase-content": {
      "post": {
        "operationId": "MeteringService_EraseTraceContent",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.EraseTraceContentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.TraceContentErasureReceiptReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "MeteringService"
        ]
      }
    },
    "/v1/meters": {
      "get": {
        "operationId": "CapabilityService_ListMeters",
        "parameters": [
          {
            "in": "query",
            "name": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.MeterListReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CapabilityService"
        ]
      }
    },
    "/v1/models/providers": {
      "get": {
        "operationId": "ModelGatewayService_ListModelProviders",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ModelProviderListReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "ModelGatewayService"
        ]
      }
    },
    "/v1/models/providers/{code}:probe": {
      "post": {
        "description": "ProbeModelProvider performs a bounded, read-only provider readiness check.\n It never returns provider credentials or upstream response content.",
        "operationId": "ModelGatewayService_ProbeModelProvider",
        "parameters": [
          {
            "in": "path",
            "name": "code",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.ProbeModelProviderRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ModelProviderProbeReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "ModelGatewayService"
        ]
      }
    },
    "/v1/models/routes": {
      "get": {
        "operationId": "ModelGatewayService_ListModelRoutes",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ModelRouteListReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "ModelGatewayService"
        ]
      }
    },
    "/v1/models/routes/{code}": {
      "put": {
        "operationId": "ModelGatewayService_PutModelRoute",
        "parameters": [
          {
            "in": "path",
            "name": "code",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.PutModelRouteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ModelRouteReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "ModelGatewayService"
        ]
      }
    },
    "/v1/notifications/deliveries": {
      "post": {
        "operationId": "NotificationService_EnqueueNotification",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.EnqueueNotificationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.NotificationDeliveryReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "NotificationService"
        ]
      }
    },
    "/v1/notifications/inbox": {
      "get": {
        "operationId": "NotificationService_ListInbox",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListInboxReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "NotificationService"
        ]
      }
    },
    "/v1/notifications/inbox/{delivery_id}:read": {
      "post": {
        "operationId": "NotificationService_MarkInboxRead",
        "parameters": [
          {
            "in": "path",
            "name": "delivery_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.MarkInboxReadRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.NotificationDeliveryReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "NotificationService"
        ]
      }
    },
    "/v1/notifications/preferences/{category}/{channel}": {
      "put": {
        "operationId": "NotificationService_SetPreference",
        "parameters": [
          {
            "in": "path",
            "name": "category",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "channel",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.SetNotificationPreferenceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.NotificationPreferenceReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "NotificationService"
        ]
      }
    },
    "/v1/notifications/templates": {
      "get": {
        "operationId": "NotificationService_ListTemplates",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListNotificationTemplatesReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "NotificationService"
        ]
      },
      "post": {
        "operationId": "NotificationService_CreateTemplate",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CreateNotificationTemplateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.NotificationTemplateReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "NotificationService"
        ]
      }
    },
    "/v1/notifications/templates/{template_id}:publish": {
      "post": {
        "operationId": "NotificationService_PublishTemplate",
        "parameters": [
          {
            "in": "path",
            "name": "template_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.PublishNotificationTemplateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.NotificationTemplateReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "NotificationService"
        ]
      }
    },
    "/v1/notifications/webhook-endpoints": {
      "get": {
        "operationId": "NotificationService_ListWebhookEndpoints",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListWebhookEndpointsReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "NotificationService"
        ]
      },
      "post": {
        "operationId": "NotificationService_CreateWebhookEndpoint",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CreateWebhookEndpointRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.WebhookEndpointCreatedReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "NotificationService"
        ]
      }
    },
    "/v1/notifications/webhook-endpoints/{endpoint_id}:disable": {
      "post": {
        "operationId": "NotificationService_DisableWebhookEndpoint",
        "parameters": [
          {
            "in": "path",
            "name": "endpoint_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.DisableWebhookEndpointRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.WebhookEndpointReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "NotificationService"
        ]
      }
    },
    "/v1/operations/audit": {
      "get": {
        "operationId": "OperationsService_ListAuditRecords",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListOperationsReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "OperationsService"
        ]
      }
    },
    "/v1/operations/billing": {
      "get": {
        "operationId": "OperationsService_ListBillingRecords",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListOperationsReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "OperationsService"
        ]
      }
    },
    "/v1/operations/catalog": {
      "get": {
        "operationId": "OperationsService_ListCatalogRecords",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListOperationsReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "OperationsService"
        ]
      }
    },
    "/v1/operations/dashboard": {
      "get": {
        "operationId": "OperationsService_GetDashboard",
        "parameters": [
          {
            "description": "Optional calendar month in YYYY-MM. Credit consumption is evaluated in\n the workspace billing timezone; an empty value selects the current month.",
            "in": "query",
            "name": "month",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Inclusive local calendar dates in the workspace billing timezone. They\n supersede month when both are present and are limited to 366 days.",
            "in": "query",
            "name": "from",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "to",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "DAY, WEEK or MONTH. Empty defaults to DAY.",
            "in": "query",
            "name": "interval",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "NONE or PREVIOUS_PERIOD. Empty defaults to PREVIOUS_PERIOD.",
            "in": "query",
            "name": "compare",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.DashboardReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "OperationsService"
        ]
      }
    },
    "/v1/operations/dead-letters": {
      "get": {
        "operationId": "OperationsService_ListDeadLetters",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListOperationsReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "OperationsService"
        ]
      }
    },
    "/v1/operations/dead-letters/{dead_letter_id}:retry": {
      "post": {
        "operationId": "OperationsService_RetryDeadLetter",
        "parameters": [
          {
            "in": "path",
            "name": "dead_letter_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.RetryDeadLetterRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.OperationRecord"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "OperationsService"
        ]
      }
    },
    "/v1/operations/identity-sync/audits": {
      "get": {
        "operationId": "OperationsService_ListIdentitySyncAudits",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListIdentitySyncAuditsReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "OperationsService"
        ]
      }
    },
    "/v1/operations/identity-sync/status": {
      "get": {
        "operationId": "OperationsService_GetIdentitySyncStatus",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.IdentitySyncStatusReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "OperationsService"
        ]
      }
    },
    "/v1/operations/orders": {
      "get": {
        "operationId": "OperationsService_ListOrderRecords",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListOperationsReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "OperationsService"
        ]
      }
    },
    "/v1/operations/pricing": {
      "get": {
        "operationId": "OperationsService_ListPricingRecords",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListOperationsReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "OperationsService"
        ]
      }
    },
    "/v1/operations/promotions": {
      "get": {
        "operationId": "OperationsService_ListPromotionRecords",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListOperationsReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "OperationsService"
        ]
      }
    },
    "/v1/operations/reconciliation-runs": {
      "get": {
        "operationId": "OperationsService_ListReconciliationRuns",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListOperationsReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "OperationsService"
        ]
      }
    },
    "/v1/operations/webhook-deliveries": {
      "get": {
        "operationId": "OperationsService_ListWebhookDeliveries",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListOperationsReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "OperationsService"
        ]
      }
    },
    "/v1/operations/workspace-readiness": {
      "get": {
        "operationId": "OperationsService_GetWorkspaceReadiness",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.WorkspaceReadinessReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "OperationsService"
        ]
      }
    },
    "/v1/orders": {
      "get": {
        "operationId": "CheckoutService_ListOrders",
        "parameters": [
          {
            "in": "query",
            "name": "customer_account_id",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListOrdersReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CheckoutService"
        ]
      },
      "post": {
        "operationId": "CheckoutService_CreateOrder",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CreateOrderRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.OrderReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CheckoutService"
        ]
      }
    },
    "/v1/orders/{order_id}": {
      "get": {
        "operationId": "CheckoutService_GetOrderDetail",
        "parameters": [
          {
            "in": "path",
            "name": "order_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.OrderDetailReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CheckoutService"
        ]
      }
    },
    "/v1/orders/{order_id}/refund-preview": {
      "post": {
        "operationId": "CheckoutService_PreviewRefund",
        "parameters": [
          {
            "in": "path",
            "name": "order_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.RefundPreviewRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.RefundPreviewReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CheckoutService"
        ]
      }
    },
    "/v1/organization-units": {
      "get": {
        "operationId": "TenantService_ListOrganizationUnits",
        "parameters": [
          {
            "in": "query",
            "name": "kind",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListOrganizationUnitsReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      },
      "post": {
        "operationId": "TenantService_CreateOrganizationUnit",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CreateOrganizationUnitRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.OrganizationUnitReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/payment-connections": {
      "get": {
        "operationId": "CheckoutService_ListPaymentConnections",
        "parameters": [
          {
            "in": "query",
            "name": "environment_id",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "provider",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.PaymentConnectionListReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CheckoutService"
        ]
      },
      "post": {
        "operationId": "CheckoutService_CreatePaymentConnection",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CreatePaymentConnectionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.PaymentConnectionReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CheckoutService"
        ]
      }
    },
    "/v1/payment-connections/{connection_id}": {
      "patch": {
        "operationId": "CheckoutService_UpdatePaymentConnection",
        "parameters": [
          {
            "in": "path",
            "name": "connection_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.UpdatePaymentConnectionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.PaymentConnectionReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CheckoutService"
        ]
      }
    },
    "/v1/payment-connections/{connection_id}:activate": {
      "post": {
        "operationId": "CheckoutService_ActivatePaymentConnection",
        "parameters": [
          {
            "in": "path",
            "name": "connection_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.ActivatePaymentConnectionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.PaymentConnectionReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CheckoutService"
        ]
      }
    },
    "/v1/payment-connections/{connection_id}:deactivate": {
      "post": {
        "operationId": "CheckoutService_DeactivatePaymentConnection",
        "parameters": [
          {
            "in": "path",
            "name": "connection_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.DeactivatePaymentConnectionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.PaymentConnectionReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CheckoutService"
        ]
      }
    },
    "/v1/payment-connections/{connection_id}:validate": {
      "post": {
        "operationId": "CheckoutService_ValidatePaymentConnection",
        "parameters": [
          {
            "in": "path",
            "name": "connection_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.ValidatePaymentConnectionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.PaymentConnectionReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CheckoutService"
        ]
      }
    },
    "/v1/payments/intents": {
      "post": {
        "operationId": "CheckoutService_CreatePaymentIntent",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CreatePaymentIntentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.PaymentIntentReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CheckoutService"
        ]
      }
    },
    "/v1/payments/intents/{payment_intent_id}:sync": {
      "post": {
        "operationId": "CheckoutService_SyncPaymentIntent",
        "parameters": [
          {
            "in": "path",
            "name": "payment_intent_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.SyncPaymentIntentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.PaymentIntentReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CheckoutService"
        ]
      }
    },
    "/v1/payments/webhooks/{provider}": {
      "post": {
        "operationId": "CheckoutService_HandlePaymentWebhook",
        "parameters": [
          {
            "in": "path",
            "name": "provider",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.PaymentWebhookRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.PaymentWebhookReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CheckoutService"
        ]
      }
    },
    "/v1/permissions": {
      "get": {
        "operationId": "TenantService_ListPermissions",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListPermissionsReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/policies": {
      "get": {
        "operationId": "PolicyService_ListPolicies",
        "parameters": [
          {
            "in": "query",
            "name": "policy_type",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.PolicyListReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "PolicyService"
        ]
      },
      "post": {
        "operationId": "PolicyService_CreatePolicy",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CreatePolicyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.PolicyReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "PolicyService"
        ]
      }
    },
    "/v1/policies/{policy_id}": {
      "get": {
        "operationId": "PolicyService_GetPolicy",
        "parameters": [
          {
            "in": "path",
            "name": "policy_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.PolicyReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "PolicyService"
        ]
      }
    },
    "/v1/policies/{policy_id}/revisions": {
      "post": {
        "operationId": "PolicyService_CreatePolicyRevision",
        "parameters": [
          {
            "in": "path",
            "name": "policy_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CreatePolicyRevisionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.PolicyReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "PolicyService"
        ]
      }
    },
    "/v1/policies/{policy_id}/revisions/{revision_id}": {
      "patch": {
        "operationId": "PolicyService_UpdatePolicyRevision",
        "parameters": [
          {
            "in": "path",
            "name": "policy_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "revision_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.UpdatePolicyRevisionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.PolicyReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "PolicyService"
        ]
      }
    },
    "/v1/policies/{policy_id}/revisions/{revision_id}:publish": {
      "post": {
        "operationId": "PolicyService_PublishPolicyRevision",
        "parameters": [
          {
            "in": "path",
            "name": "policy_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "revision_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.PublishPolicyRevisionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.PolicyReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "PolicyService"
        ]
      }
    },
    "/v1/policies/{policy_id}/revisions/{revision_id}:review": {
      "post": {
        "operationId": "PolicyService_ReviewPolicyRevision",
        "parameters": [
          {
            "in": "path",
            "name": "policy_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "revision_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.ReviewPolicyRevisionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.PolicyReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "PolicyService"
        ]
      }
    },
    "/v1/policies/{policy_id}/revisions/{revision_id}:schedule": {
      "post": {
        "operationId": "PolicyService_SchedulePolicyRevision",
        "parameters": [
          {
            "in": "path",
            "name": "policy_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "revision_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.SchedulePolicyRevisionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.PolicyReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "PolicyService"
        ]
      }
    },
    "/v1/policies/{policy_id}/revisions/{revision_id}:simulate": {
      "post": {
        "operationId": "PolicyService_SimulatePolicyRevision",
        "parameters": [
          {
            "in": "path",
            "name": "policy_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "revision_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.SimulatePolicyRevisionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.PolicySimulationReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "PolicyService"
        ]
      }
    },
    "/v1/policies/{policy_id}/revisions/{revision_id}:submit-review": {
      "post": {
        "operationId": "PolicyService_SubmitPolicyRevision",
        "parameters": [
          {
            "in": "path",
            "name": "policy_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "revision_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.SubmitPolicyRevisionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.PolicyReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "PolicyService"
        ]
      }
    },
    "/v1/policies/{policy_id}/revisions/{revision_id}:validate": {
      "post": {
        "operationId": "PolicyService_ValidatePolicyRevision",
        "parameters": [
          {
            "in": "path",
            "name": "policy_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "revision_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.ValidatePolicyRevisionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.PolicyReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "PolicyService"
        ]
      }
    },
    "/v1/policies/{policy_id}:rollback": {
      "post": {
        "operationId": "PolicyService_RollbackPolicy",
        "parameters": [
          {
            "in": "path",
            "name": "policy_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.RollbackPolicyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.PolicyReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "PolicyService"
        ]
      }
    },
    "/v1/policies:explain": {
      "post": {
        "operationId": "PolicyService_ExplainPolicies",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.ExplainPoliciesRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.PolicyExplanationReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "PolicyService"
        ]
      }
    },
    "/v1/policy-decisions": {
      "get": {
        "operationId": "PolicyService_ListPolicyDecisions",
        "parameters": [
          {
            "in": "query",
            "name": "business_type",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "business_id",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "trace_id",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.PolicyDecisionListReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "PolicyService"
        ]
      }
    },
    "/v1/policy-decisions:analytics": {
      "get": {
        "operationId": "PolicyService_GetPolicyDecisionAnalytics",
        "parameters": [
          {
            "in": "query",
            "name": "from",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "to",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "business_type",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.PolicyDecisionAnalyticsReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "PolicyService"
        ]
      }
    },
    "/v1/policy-executors/{policy_type}": {
      "get": {
        "operationId": "PolicyService_GetPolicyExecutorAdoption",
        "parameters": [
          {
            "in": "path",
            "name": "policy_type",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.PolicyExecutorAdoptionReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "PolicyService"
        ]
      },
      "put": {
        "operationId": "PolicyService_UpdatePolicyExecutorAdoption",
        "parameters": [
          {
            "in": "path",
            "name": "policy_type",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.UpdatePolicyExecutorAdoptionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.PolicyExecutorAdoptionReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "PolicyService"
        ]
      }
    },
    "/v1/policy-reference-options": {
      "get": {
        "operationId": "PolicyService_ListPolicyReferenceOptions",
        "parameters": [
          {
            "in": "query",
            "name": "field",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.PolicyReferenceOptionListReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "PolicyService"
        ]
      }
    },
    "/v1/policy-replays/operations/{operation_id}": {
      "post": {
        "operationId": "PolicyService_ReplayOperationPolicies",
        "parameters": [
          {
            "in": "path",
            "name": "operation_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.ReplayOperationPoliciesRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.OperationPolicyReplayReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "PolicyService"
        ]
      }
    },
    "/v1/policy-replays/quotes/{quote_id}": {
      "post": {
        "operationId": "PolicyService_ReplayQuotePolicies",
        "parameters": [
          {
            "in": "path",
            "name": "quote_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.ReplayQuotePoliciesRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.QuotePolicyReplayReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "PolicyService"
        ]
      }
    },
    "/v1/policy-template-forks/{fork_id}": {
      "get": {
        "operationId": "PolicyService_GetPolicyTemplateFork",
        "parameters": [
          {
            "in": "path",
            "name": "fork_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.PolicyTemplateForkReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "PolicyService"
        ]
      }
    },
    "/v1/policy-templates": {
      "get": {
        "operationId": "PolicyService_ListPolicyTemplates",
        "parameters": [
          {
            "in": "query",
            "name": "domain",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "policy_type",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.PolicyTemplateListReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "PolicyService"
        ]
      }
    },
    "/v1/policy-templates/{template_id}": {
      "get": {
        "operationId": "PolicyService_GetPolicyTemplate",
        "parameters": [
          {
            "in": "path",
            "name": "template_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.PolicyTemplateReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "PolicyService"
        ]
      }
    },
    "/v1/policy-templates/{template_id}:fork": {
      "post": {
        "operationId": "PolicyService_ForkPolicyTemplate",
        "parameters": [
          {
            "in": "path",
            "name": "template_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.ForkPolicyTemplateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.PolicyTemplateForkReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "PolicyService"
        ]
      }
    },
    "/v1/pricing/price-books": {
      "post": {
        "operationId": "CommerceService_CreatePriceBook",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CreatePriceBookRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.PriceBookReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CommerceService"
        ]
      }
    },
    "/v1/pricing/quotes": {
      "post": {
        "operationId": "CommerceService_Quote",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.QuoteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.QuoteReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CommerceService"
        ]
      }
    },
    "/v1/pricing/rule-sets": {
      "post": {
        "operationId": "CommerceService_CreatePricingRevision",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CreatePricingRevisionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.PricingRevisionReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CommerceService"
        ]
      }
    },
    "/v1/pricing/rule-sets/{rule_set_id}:publish": {
      "post": {
        "operationId": "CommerceService_PublishPricingRevision",
        "parameters": [
          {
            "in": "path",
            "name": "rule_set_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.PublishPricingRevisionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.PricingRevisionReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CommerceService"
        ]
      }
    },
    "/v1/principal-billing-assignments": {
      "get": {
        "operationId": "TenantService_ListPrincipalBillingAssignments",
        "parameters": [
          {
            "in": "query",
            "name": "principal_type",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "principal_id",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListPrincipalBillingAssignmentsReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      },
      "post": {
        "operationId": "TenantService_CreatePrincipalBillingAssignment",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CreatePrincipalBillingAssignmentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.PrincipalBillingAssignmentReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/principal-billing-assignments/{assignment_id}:retire": {
      "post": {
        "operationId": "TenantService_RetirePrincipalBillingAssignment",
        "parameters": [
          {
            "in": "path",
            "name": "assignment_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.RetirePrincipalBillingAssignmentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.PrincipalBillingAssignmentReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/promotions/coupon-definitions": {
      "get": {
        "description": "A typed selector for marketing coupon grants. It deliberately returns\n definitions rather than coupon codes: generated codes are bound to a\n customer when the trusted marketing trigger fires.",
        "operationId": "CommerceService_ListCouponDefinitions",
        "parameters": [
          {
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CouponDefinitionListReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CommerceService"
        ]
      }
    },
    "/v1/promotions/coupons": {
      "post": {
        "operationId": "CommerceService_CreateCoupon",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CreateCouponRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.CouponReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CommerceService"
        ]
      }
    },
    "/v1/provider-price-bindings": {
      "get": {
        "operationId": "CheckoutService_ListProviderPriceBindings",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListProviderPriceBindingsReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CheckoutService"
        ]
      },
      "post": {
        "operationId": "CheckoutService_UpsertProviderPriceBinding",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.UpsertProviderPriceBindingRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ProviderPriceBindingReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CheckoutService"
        ]
      }
    },
    "/v1/refund-requests": {
      "get": {
        "operationId": "CheckoutService_ListRefundRequests",
        "parameters": [
          {
            "in": "query",
            "name": "order_id",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.RefundRequestListReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CheckoutService"
        ]
      },
      "post": {
        "operationId": "CheckoutService_RequestRefund",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.RequestRefundRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.RefundRequestReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CheckoutService"
        ]
      }
    },
    "/v1/refund-requests/{request_id}": {
      "get": {
        "operationId": "CheckoutService_GetRefundRequest",
        "parameters": [
          {
            "in": "path",
            "name": "request_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.RefundRequestReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CheckoutService"
        ]
      }
    },
    "/v1/refund-requests/{request_id}:approve": {
      "post": {
        "operationId": "CheckoutService_ApproveRefundRequest",
        "parameters": [
          {
            "in": "path",
            "name": "request_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.ReviewRefundRequestRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.RefundRequestReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CheckoutService"
        ]
      }
    },
    "/v1/refund-requests/{request_id}:reject": {
      "post": {
        "operationId": "CheckoutService_RejectRefundRequest",
        "parameters": [
          {
            "in": "path",
            "name": "request_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.ReviewRefundRequestRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.RefundRequestReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CheckoutService"
        ]
      }
    },
    "/v1/refund-requests/{request_id}:withdraw": {
      "post": {
        "operationId": "CheckoutService_WithdrawRefundRequest",
        "parameters": [
          {
            "in": "path",
            "name": "request_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.RefundRequestLookup"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.RefundRequestReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CheckoutService"
        ]
      }
    },
    "/v1/refunds": {
      "post": {
        "operationId": "CheckoutService_CreateRefund",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CreateRefundRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.RefundReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CheckoutService"
        ]
      }
    },
    "/v1/refunds/{refund_id}": {
      "get": {
        "operationId": "CheckoutService_GetRefund",
        "parameters": [
          {
            "in": "path",
            "name": "refund_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.RefundReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CheckoutService"
        ]
      }
    },
    "/v1/refunds/{refund_id}/effects": {
      "get": {
        "operationId": "CheckoutService_ListRefundEffects",
        "parameters": [
          {
            "in": "path",
            "name": "refund_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.RefundEffectListReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CheckoutService"
        ]
      }
    },
    "/v1/refunds/{refund_id}/effects/{effect_id}:retry": {
      "post": {
        "operationId": "CheckoutService_RetryRefundEffect",
        "parameters": [
          {
            "in": "path",
            "name": "refund_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "effect_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.RetryRefundEffectRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.RefundEffectRetryReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CheckoutService"
        ]
      }
    },
    "/v1/roles": {
      "get": {
        "operationId": "TenantService_ListRoles",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListRolesReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      },
      "post": {
        "operationId": "TenantService_CreateRole",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CreateRoleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.RoleReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/roles/{role_id}": {
      "put": {
        "operationId": "TenantService_UpdateRole",
        "parameters": [
          {
            "in": "path",
            "name": "role_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.UpdateRoleRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.RoleReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/service-accounts": {
      "get": {
        "operationId": "TenantService_ListServiceAccounts",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListServiceAccountsReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      },
      "post": {
        "operationId": "TenantService_CreateServiceAccount",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CreateServiceAccountRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ServiceAccountReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/service-accounts/{service_account_id}": {
      "patch": {
        "operationId": "TenantService_UpdateServiceAccount",
        "parameters": [
          {
            "in": "path",
            "name": "service_account_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.UpdateServiceAccountRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ServiceAccountReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/subscriptions": {
      "get": {
        "operationId": "CheckoutService_ListSubscriptions",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "customer_account_id",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListSubscriptionsReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CheckoutService"
        ]
      }
    },
    "/v1/subscriptions/{subscription_id}": {
      "get": {
        "operationId": "CheckoutService_GetSubscription",
        "parameters": [
          {
            "in": "path",
            "name": "subscription_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.SubscriptionReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CheckoutService"
        ]
      }
    },
    "/v1/subscriptions/{subscription_id}:cancel": {
      "post": {
        "operationId": "CheckoutService_CancelSubscription",
        "parameters": [
          {
            "in": "path",
            "name": "subscription_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CancelSubscriptionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.SubscriptionReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "CheckoutService"
        ]
      }
    },
    "/v1/tenants": {
      "get": {
        "operationId": "TenantService_ListTenants",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ListTenantsReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      },
      "post": {
        "operationId": "TenantService_CreateTenant",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CreateTenantRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.TenantReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/tenants/{tenant_id}/invitations": {
      "post": {
        "operationId": "TenantService_InviteMember",
        "parameters": [
          {
            "in": "path",
            "name": "tenant_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.InviteMemberRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.InvitationReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/tenants/{tenant_id}/members/{member_id}": {
      "patch": {
        "operationId": "TenantService_UpdateMember",
        "parameters": [
          {
            "in": "path",
            "name": "tenant_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "member_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.UpdateMemberRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.MemberReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/tenants/{tenant_id}:delete": {
      "post": {
        "description": "Soft-deletes a workspace. Nexus closes the tenant and disables every\n credential/environment while retaining business and audit records.",
        "operationId": "TenantService_DeleteTenant",
        "parameters": [
          {
            "in": "path",
            "name": "tenant_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.DeleteTenantRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.TenantReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TenantService"
        ]
      }
    },
    "/v1/traffic/concurrency-leases": {
      "get": {
        "operationId": "TrafficService_ListConcurrencyLeases",
        "parameters": [
          {
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ConcurrencyLeaseListReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TrafficService"
        ]
      }
    },
    "/v1/traffic/concurrency-policies": {
      "get": {
        "operationId": "TrafficService_ListConcurrencyPolicies",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ConcurrencyPolicyListReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TrafficService"
        ]
      }
    },
    "/v1/traffic/concurrency-policies/{code}": {
      "put": {
        "operationId": "TrafficService_PutConcurrencyPolicy",
        "parameters": [
          {
            "in": "path",
            "name": "code",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.PutConcurrencyPolicyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ConcurrencyPolicyReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TrafficService"
        ]
      }
    },
    "/v1/traffic/concurrency:acquire": {
      "post": {
        "operationId": "TrafficService_AcquireConcurrency",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.AcquireConcurrencyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ConcurrencyAcquireReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TrafficService"
        ]
      }
    },
    "/v1/traffic/concurrency:release": {
      "post": {
        "operationId": "TrafficService_ReleaseConcurrencyLease",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.ReleaseConcurrencyLeaseRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ConcurrencyReleaseReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TrafficService"
        ]
      }
    },
    "/v1/traffic/concurrency:renew": {
      "post": {
        "operationId": "TrafficService_RenewConcurrencyLease",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.RenewConcurrencyLeaseRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.ConcurrencyLeaseReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TrafficService"
        ]
      }
    },
    "/v1/traffic/policies": {
      "get": {
        "operationId": "TrafficService_ListRateLimitPolicies",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "format": "int32",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.RateLimitPolicyListReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TrafficService"
        ]
      }
    },
    "/v1/traffic/policies/{code}": {
      "put": {
        "operationId": "TrafficService_PutRateLimitPolicy",
        "parameters": [
          {
            "in": "path",
            "name": "code",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.PutRateLimitPolicyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.RateLimitPolicyReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TrafficService"
        ]
      }
    },
    "/v1/traffic:check": {
      "post": {
        "operationId": "TrafficService_CheckTraffic",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.CheckTrafficRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.TrafficDecisionReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "TrafficService"
        ]
      }
    },
    "/v1/usage/events": {
      "post": {
        "operationId": "BillingService_IngestUsage",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nexus.v1.IngestUsageRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/nexus.v1.UsageEventReply"
                }
              }
            },
            "description": "OK"
          }
        },
        "tags": [
          "BillingService"
        ]
      }
    },
    "/v1/openai/chat/completions": {
      "post": {
        "operationId": "OpenAI_ChatCompletions",
        "tags": [
          "OpenAI compatible"
        ],
        "description": "Raw HTTP gateway. JSON messages (not messages_json); stream=true returns SSE. The gateway owns metering and settlement.",
        "parameters": [
          {
            "name": "X-Nexus-Operation-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "model",
                  "messages"
                ],
                "properties": {
                  "model": {
                    "type": "string"
                  },
                  "messages": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  },
                  "stream": {
                    "type": "boolean"
                  },
                  "max_tokens": {
                    "type": "integer"
                  },
                  "max_completion_tokens": {
                    "type": "integer"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OpenAI-compatible JSON or text/event-stream; consume terminal SSE errors and usage."
          },
          "400": {
            "description": "Invalid request"
          },
          "401": {
            "description": "Authentication required"
          },
          "402": {
            "description": "Insufficient credit"
          },
          "403": {
            "description": "Permission denied"
          },
          "429": {
            "description": "Rate limited"
          },
          "502": {
            "description": "Provider unavailable"
          }
        }
      }
    },
    "/v1/payment-connections/{connection_id}/webhooks/stripe": {
      "post": {
        "operationId": "Stripe_ReceiveWebhook",
        "tags": [
          "Payment webhooks"
        ],
        "description": "Stripe snapshot event delivery. Verify original request bytes using the connection signing secret; not a bearer-authenticated commerce write.",
        "parameters": [
          {
            "name": "connection_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Stripe-Signature",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true,
                "description": "Original signed Stripe snapshot event. Do not reconstruct or reserialize the payload before signature verification."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Event durably handled, not proof of completed cash refund"
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "AuthorizationService"
    },
    {
      "name": "BillingService"
    },
    {
      "name": "CapabilityService"
    },
    {
      "name": "CheckoutService"
    },
    {
      "name": "CommerceService"
    },
    {
      "name": "EntitlementService"
    },
    {
      "description": "ExecutionService is the trusted Sidecar contract for capabilities whose\n provider call happens outside Nexus. It coordinates credit, entitlement and\n concurrency reservations without accepting self-asserted usage as payment\n truth; callers still report authoritative Metering events before Commit.",
      "name": "ExecutionService"
    },
    {
      "description": "MarketingService manages versioned eligibility definitions only. Publishing\n a revision makes it eligible for the trusted grant worker; it never changes\n a wallet or quota from a Console request.",
      "name": "MarketingService"
    },
    {
      "name": "MeteringService"
    },
    {
      "name": "ModelGatewayService"
    },
    {
      "name": "NotificationService"
    },
    {
      "name": "OperationsService"
    },
    {
      "name": "PolicyService"
    },
    {
      "description": "System exposes process-level endpoints that are safe to use from probes and\n deployment automation. Business APIs live in their own bounded contexts.",
      "name": "System"
    },
    {
      "name": "TenantService"
    },
    {
      "name": "TrafficService"
    }
  ]
}