{
  "openapi": "3.1.0",
  "info": {
    "title": "Trackdesk public API",
    "version": "1.0",
    "description": "Tenant ID\n=========\n\nPlease, fill in your tenant ID, a.k.a. the subdomain on which is your program running.\nIn case of https://my-awesome-affiliate-system.trackdesk.com, your tenant ID is my-awesome-affiliate-system\n\nAPI key\n=======\n\nPlease, fill in your API key from your settings.\n\nHow to get an API key?\n=================\n\n1. Navigate to your program URL, e.g. https://my-awesome-affiliate-system.trackdesk.com.\n2. Click on your name at the right top corner.\n3. Click on Settings.\n4. Click on Personal access tokens in Integrations section.\n5. Generate new API key and copy its content to the input above.\n\nOAuth2\n======\n\nCreate a confidential client in Settings -> Integrations -> OAuth2, under OAuth2 credentials. Use client_credentials for machine access, or authorization_code for access approved by a user. Authorization requests go to https://{tenantId}.trackdesk.com/oauth/authorize and must use a registered redirect_uri plus PKCE S256; a loopback redirect may arrive on any port. Exchange codes, rotate refresh tokens, and request client_credentials tokens at https://{tenantId}.trackdesk.com/api/node/oauth/token. Authenticate the client via HTTP Basic or the client_id/client_secret form fields. Revoke an access or refresh token at https://{tenantId}.trackdesk.com/api/node/oauth/revoke. Access tokens expire after 1 hour.\n",
    "termsOfService": "https://trackdesk.com/terms-conditions",
    "contact": {
      "name": "Trackdesk Support",
      "url": "https://trackdesk.com",
      "email": "support@trackdesk.com"
    },
    "license": {
      "name": "Trackdesk licenced",
      "url": "https://trackdesk.com/terms-conditions"
    }
  },
  "servers": [
    {
      "url": "https://{tenantId}.trackdesk.com",
      "description": "Production server",
      "variables": {
        "tenantId": {
          "default": "-- replace me --",
          "description": "Tenant ID of current tenant"
        }
      }
    }
  ],
  "security": [
    {
      "X-Api-Key": []
    },
    {
      "OAuth2": [
        "api"
      ]
    }
  ],
  "paths": {
    "/api/node/account-notes/v1": {
      "post": {
        "tags": [
          "Account Notes V1"
        ],
        "summary": "Create account note",
        "description": "Creates a new note attached to a specific affiliate account.\n - Errors: may use ERROR_CODE_ACCOUNT_NOT_FOUND when account_id does not exist.",
        "operationId": "AccountNoteService_CreateAccountNote",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/account_notes.v1.CreateAccountNoteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/account_notes.v1.CreateAccountNoteResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/account-notes/v1/account/{accountId}": {
      "get": {
        "tags": [
          "Account Notes V1"
        ],
        "summary": "List account notes for account",
        "description": "Lists notes for a given affiliate account ordered by creation time.",
        "operationId": "AccountNoteService_ListAccountNotesForAccount",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "description": "Affiliate account UUID whose notes are requested.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "account_id",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/account_notes.v1.ListAccountNotesForAccountResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/account-notes/v1/{id}": {
      "delete": {
        "tags": [
          "Account Notes V1"
        ],
        "summary": "Delete account note",
        "description": "Removes a note by its unique identifier.",
        "operationId": "AccountNoteService_DeleteAccountNote",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Note UUID to delete.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "id",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/account_notes.v1.DeleteAccountNoteResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/affiliate-bonuses/v1": {
      "post": {
        "tags": [
          "Affiliate Bonuses V1"
        ],
        "summary": "Create affiliate bonus",
        "description": "Creates a standalone bonus in one of the currencies configured for the tenant.",
        "operationId": "AffiliateBonusService_CreateAffiliateBonus",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/affiliate_bonuses.v1.CreateAffiliateBonusRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/affiliate_bonuses.v1.CreateAffiliateBonusResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/affiliate-bonuses/v1/list": {
      "post": {
        "tags": [
          "Affiliate Bonuses V1"
        ],
        "summary": "List affiliate bonuses",
        "description": "Lists affiliate bonuses with optional affiliate, settlement, and creation date filters.",
        "operationId": "AffiliateBonusService_ListAffiliateBonuses",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/affiliate_bonuses.v1.ListAffiliateBonusesRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/affiliate_bonuses.v1.ListAffiliateBonusesResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/affiliate-bonuses/v1/{id}": {
      "get": {
        "tags": [
          "Affiliate Bonuses V1"
        ],
        "summary": "Get affiliate bonus",
        "description": "Returns an affiliate bonus by id.",
        "operationId": "AffiliateBonusService_GetAffiliateBonus",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id path parameter.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "id",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/affiliate_bonuses.v1.GetAffiliateBonusResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Affiliate Bonuses V1"
        ],
        "summary": "Update affiliate bonus",
        "description": "Replaces the editable fields of an unsettled affiliate bonus. The affiliate cannot be changed.",
        "operationId": "AffiliateBonusService_UpdateAffiliateBonus",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Affiliate bonus UUID.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "id",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "value": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/types.v1.Decimal"
                      }
                    ],
                    "title": "value",
                    "description": "Bonus value in the currency below. Negative values are allowed, zero is not."
                  },
                  "currency": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/types.v1.Currency"
                      }
                    ],
                    "title": "currency",
                    "description": "Currency of the bonus. Must be one of the currencies configured for the tenant."
                  },
                  "note": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/google.protobuf.StringValue"
                      }
                    ],
                    "title": "note",
                    "maxLength": 1000,
                    "description": "(OPTIONAL) Optional internal note."
                  },
                  "billableAt": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/google.protobuf.Timestamp"
                      }
                    ],
                    "title": "billable_at",
                    "description": "(OPTIONAL) Date from which the bonus counts towards the open balance and can be settled.\n Defaults to the current time on create; leaves the stored value untouched on update."
                  }
                },
                "title": "affiliate_bonuses.v1.UpdateAffiliateBonusRequest",
                "required": [
                  "value",
                  "currency"
                ],
                "additionalProperties": false,
                "description": "Request to update an affiliate bonus."
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/affiliate_bonuses.v1.UpdateAffiliateBonusResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Affiliate Bonuses V1"
        ],
        "summary": "Delete affiliate bonus",
        "description": "Deletes an unsettled affiliate bonus.",
        "operationId": "AffiliateBonusService_DeleteAffiliateBonus",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id path parameter.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "id",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/affiliate_bonuses.v1.DeleteAffiliateBonusResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/affiliates/v1": {
      "post": {
        "tags": [
          "Affiliates V1"
        ],
        "summary": "List affiliates",
        "description": "List the existing affiliates in your system.",
        "operationId": "AffiliateService_ListAffiliates",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/affiliates.v1.ListAffiliatesRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/affiliates.v1.ListAffiliatesResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/affiliates/v1/register-with-user": {
      "post": {
        "tags": [
          "Affiliates V1"
        ],
        "summary": "Create new affiliate",
        "description": "Creates a new affiliate in your system.",
        "operationId": "AffiliateService_RegisterAffiliateWithUser",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/affiliates.v1.RegisterAffiliateWithUserRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/affiliates.v1.RegisterAffiliateWithUserResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/affiliates/v1/registration-data/{accountId}": {
      "get": {
        "tags": [
          "Affiliates V1"
        ],
        "summary": "Affiliate registration data",
        "description": "Get the data the affiliate filled in during registration.",
        "operationId": "AffiliateService_GetAffiliateRegistrationData",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "description": "Account ID of the affiliate.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "account_id",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/affiliates.v1.GetAffiliateRegistrationDataResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Affiliates V1"
        ],
        "summary": "Create affiliate registration data",
        "description": "Create affiliate registration data for the affiliate.",
        "operationId": "AffiliateService_CreateAffiliateRegistrationData",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "description": "Account ID of the affiliate.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "account_id",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "data": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/affiliates.v1.AffiliateRegistrationData"
                      }
                    ],
                    "title": "data",
                    "description": "Registration data of the affiliate."
                  }
                },
                "title": "affiliates.v1.CreateAffiliateRegistrationDataRequest",
                "required": [
                  "data"
                ],
                "additionalProperties": false,
                "description": "Create affiliate registration data."
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/affiliates.v1.CreateAffiliateRegistrationDataResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/affiliates/v1/{accountId}": {
      "get": {
        "tags": [
          "Affiliates V1"
        ],
        "summary": "Affiliate details",
        "description": "Get detailed information about a specific affiliate.",
        "operationId": "AffiliateService_GetAffiliate",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "description": "Account ID of the affiliate.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "account_id",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/affiliates.v1.GetAffiliateResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Affiliates V1"
        ],
        "summary": "Delete affiliate",
        "description": "Deletes affiliate from the system.",
        "operationId": "AffiliateService_DeleteAffiliate",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "description": "Account ID of the affiliate.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "account_id",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/affiliates.v1.DeleteAffiliateResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/affiliates/v1/{sourcePublicId.value}/billing-status": {
      "put": {
        "tags": [
          "Affiliates V1"
        ],
        "summary": "Set affiliate billing status",
        "description": "Lets you change the billing status of an affiliate. Affiliates with an excluded billing status are left out of open balances and settlements.",
        "operationId": "AffiliateService_SetAffiliateBillingStatus",
        "parameters": [
          {
            "name": "sourcePublicId.value",
            "in": "path",
            "description": "The sourcePublicId.value path parameter.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "value",
              "maxLength": 50,
              "minLength": 2,
              "pattern": "^[a-z0-9][a-z0-9_-]*[a-z0-9]$"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "billingStatus": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/enums.v1.AffiliateBillingStatus"
                      }
                    ],
                    "not": {
                      "enum": [
                        "AFFILIATE_BILLING_STATUS_UNSPECIFIED"
                      ]
                    },
                    "title": "billing_status",
                    "description": "New billing status to be set for the affiliate.\nenum.defined_only = true\n"
                  }
                },
                "title": "affiliates.v1.SetAffiliateBillingStatusRequest",
                "required": [
                  "billingStatus"
                ],
                "additionalProperties": false,
                "description": "Set affiliate billing status."
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/affiliates.v1.SetAffiliateBillingStatusResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/affiliates/v1/{sourcePublicId.value}/status": {
      "put": {
        "tags": [
          "Affiliates V1"
        ],
        "summary": "Set affiliate status",
        "description": "Lets you change the status of an affiliate.",
        "operationId": "AffiliateService_SetAffiliateStatus",
        "parameters": [
          {
            "name": "sourcePublicId.value",
            "in": "path",
            "description": "The sourcePublicId.value path parameter.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "value",
              "maxLength": 50,
              "minLength": 2,
              "pattern": "^[a-z0-9][a-z0-9_-]*[a-z0-9]$"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "status": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/enums.v1.AccountStatus"
                      }
                    ],
                    "not": {
                      "enum": [
                        "ACCOUNT_STATUS_UNSPECIFIED"
                      ]
                    },
                    "title": "status",
                    "description": "New status to be set for the affiliate.\nenum.defined_only = true\n"
                  },
                  "rejection": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/affiliates.v1.SetAffiliateStatusRequest.Rejection"
                      }
                    ],
                    "title": "rejection",
                    "description": "(OPTIONAL) Rejection details. Optional; only honored when the transition is Pending -> Disabled."
                  }
                },
                "title": "affiliates.v1.SetAffiliateStatusRequest",
                "required": [
                  "status"
                ],
                "additionalProperties": false,
                "description": "Set affiliate status."
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/affiliates.v1.SetAffiliateStatusResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/affiliates/v1/{sourcePublicId.value}/tier": {
      "put": {
        "tags": [
          "Affiliates V1"
        ],
        "summary": "Set affiliate tier",
        "description": "Set a tier for the selected affiliates.",
        "operationId": "AffiliateService_SetAffiliateTier",
        "parameters": [
          {
            "name": "sourcePublicId.value",
            "in": "path",
            "description": "The sourcePublicId.value path parameter.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "value",
              "maxLength": 50,
              "minLength": 2,
              "pattern": "^[a-z0-9][a-z0-9_-]*[a-z0-9]$"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "tierId": {
                    "type": "string",
                    "title": "tier_id",
                    "format": "uuid",
                    "description": "Identifier of the new tier to be applied to the affiliate."
                  }
                },
                "title": "affiliates.v1.SetAffiliateTierRequest",
                "required": [
                  "tierId"
                ],
                "additionalProperties": false,
                "description": "Set affiliate tier."
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/affiliates.v1.SetAffiliateTierResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/billing-details/v1": {
      "post": {
        "tags": [
          "Billing Details V1"
        ],
        "summary": "Set billing detail",
        "description": "Fill in the billing details for affiliate's account.",
        "operationId": "BillingDetailService_SetBillingDetail",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/billing_details.v1.SetBillingDetailRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/billing_details.v1.SetBillingDetailResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/billing/v1/account-balances/{accountId}": {
      "get": {
        "tags": [
          "Billing Balance V1"
        ],
        "summary": "Get balances for account",
        "description": "Retrieves balance breakdown for a specific affiliate including open, on-hold, and settled amounts.",
        "operationId": "BalanceService_GetBalancesForAccount",
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "description": "ID of the affiliate to whom balances are credited.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "account_id",
              "format": "uuid"
            }
          },
          {
            "name": "until",
            "in": "query",
            "description": "Day until which the open balance is computed. When omitted, the current time is used.",
            "required": false,
            "schema": {
              "type": "string",
              "examples": [
                "2023-01-15T01:30:15.01Z",
                "2024-12-25T12:00:00Z"
              ],
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/billing.v1.GetBalancesForAccountResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/billing/v1/account-settlements": {
      "get": {
        "tags": [
          "Billing Settlement V1"
        ],
        "summary": "List affiliate settlements",
        "description": "Lists all settlements for a specific affiliate or all affiliates.",
        "operationId": "SettlementService_ListAccountSettlements",
        "parameters": [
          {
            "name": "pagination.limit",
            "in": "query",
            "description": "Maximum number of items to return (1-500).",
            "schema": {
              "exclusiveMinimum": 0,
              "type": "integer",
              "title": "limit",
              "maximum": 500
            }
          },
          {
            "name": "pagination.offset",
            "in": "query",
            "description": "Number of items to skip from the start of the result set.",
            "schema": {
              "type": "integer",
              "title": "offset"
            }
          },
          {
            "name": "timeRange.from",
            "in": "query",
            "description": "A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC.",
            "schema": {
              "type": "string",
              "examples": [
                "2023-01-15T01:30:15.01Z",
                "2024-12-25T12:00:00Z"
              ],
              "format": "date-time"
            }
          },
          {
            "name": "timeRange.to",
            "in": "query",
            "description": "A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC.",
            "schema": {
              "type": "string",
              "examples": [
                "2023-01-15T01:30:15.01Z",
                "2024-12-25T12:00:00Z"
              ],
              "format": "date-time"
            }
          },
          {
            "name": "accountId",
            "in": "query",
            "description": "ID of affiliate for which to show affiliate settlements.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/billing.v1.ListAccountSettlementsResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/billing/v1/account-settlements/{id}": {
      "delete": {
        "tags": [
          "Billing Settlement V1"
        ],
        "summary": "Delete affiliate settlement",
        "description": "Deletes settlement for specific affiliate without deleting the entirety of a single settlement.",
        "operationId": "SettlementService_DeleteAccountSettlement",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "ID of individual affiliate settlements to be deleted.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "id",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/billing.v1.DeleteAccountSettlementResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/billing/v1/account-settlements/{id}/status": {
      "put": {
        "tags": [
          "Billing Settlement V1"
        ],
        "summary": "Update affiliate settlement status",
        "description": "Updates the status of a single affiliate settlement.\n Manual status change is forbidden for Tipalti settlements, and the ERROR status cannot be set manually.",
        "operationId": "SettlementService_UpdateAccountSettlementStatus",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "ID of the affiliate settlement",
            "required": true,
            "schema": {
              "type": "string",
              "title": "id",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "status": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/enums.v1.AccountSettlementStatus"
                      }
                    ],
                    "not": {
                      "enum": [
                        "ACCOUNT_SETTLEMENT_STATUS_UNSPECIFIED"
                      ]
                    },
                    "title": "status",
                    "description": "New status of the affiliate settlement\nenum.defined_only = true\n"
                  }
                },
                "title": "billing.v1.UpdateAccountSettlementStatusRequest",
                "required": [
                  "status"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/billing.v1.UpdateAccountSettlementStatusResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/billing/v1/open-balances": {
      "get": {
        "tags": [
          "Billing Balance V1"
        ],
        "summary": "List open balances",
        "description": "Lists open balances for affiliates with details about conversion and commission amounts by status.",
        "operationId": "BalanceService_ListOpenBalances",
        "parameters": [
          {
            "name": "pagination.limit",
            "in": "query",
            "description": "Maximum number of items to return (1-500).",
            "schema": {
              "exclusiveMinimum": 0,
              "type": "integer",
              "title": "limit",
              "maximum": 500
            }
          },
          {
            "name": "pagination.offset",
            "in": "query",
            "description": "Number of items to skip from the start of the result set.",
            "schema": {
              "type": "integer",
              "title": "offset"
            }
          },
          {
            "name": "filter.until",
            "in": "query",
            "description": "Day until which the settlement is settled.",
            "schema": {
              "type": "string",
              "examples": [
                "2023-01-15T01:30:15.01Z",
                "2024-12-25T12:00:00Z"
              ],
              "format": "date-time"
            }
          },
          {
            "name": "filter.minAmount.value",
            "in": "query",
            "description": "The filter.minAmount.value query parameter.",
            "schema": {
              "type": "string",
              "title": "value",
              "pattern": "^-?\\d+(\\.\\d+)?$"
            }
          },
          {
            "name": "filter.defaultPaymentMethodTypes",
            "in": "query",
            "description": "Payment methods used for the settlement.",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/payment_methods.v1.PaymentMethodType"
              },
              "title": "default_payment_method_types",
              "uniqueItems": true
            }
          },
          {
            "name": "filter.minConversionCount",
            "in": "query",
            "description": "Minimum conversion count of open balance required for generation of affiliate settlement.",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "filter.minConversionSourceCount",
            "in": "query",
            "description": "Minimum conversion source count of open balance required for generation of affiliate settlement",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "filter.tierIds",
            "in": "query",
            "description": "(OPTIONAL) Affiliate tiers of of settled affiliates.",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "(OPTIONAL) "
              },
              "title": "tier_ids",
              "uniqueItems": true
            }
          },
          {
            "name": "filter.conversionTypeIds",
            "in": "query",
            "description": "(OPTIONAL) ",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "(OPTIONAL) "
              },
              "title": "conversion_type_ids",
              "uniqueItems": true
            }
          },
          {
            "name": "filter.offerIds",
            "in": "query",
            "description": "(OPTIONAL) ",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "(OPTIONAL) "
              },
              "title": "offer_ids",
              "uniqueItems": true
            }
          },
          {
            "name": "filter.revenueOriginIds",
            "in": "query",
            "description": "(OPTIONAL) ",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "(OPTIONAL) "
              },
              "title": "revenue_origin_ids",
              "uniqueItems": true
            }
          },
          {
            "name": "filter.affiliateTagIds",
            "in": "query",
            "description": "(OPTIONAL) Filter affiliates whose accounts have at least one of these tag IDs assigned (OR semantics).",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "(OPTIONAL) "
              },
              "title": "affiliate_tag_ids",
              "uniqueItems": true
            }
          },
          {
            "name": "filter.offerTagIds",
            "in": "query",
            "description": "(OPTIONAL) Filter rows by offers having at least one of these tag IDs assigned (OR semantics).",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "(OPTIONAL) "
              },
              "title": "offer_tag_ids",
              "uniqueItems": true
            }
          },
          {
            "name": "filter.revenueOriginTagIds",
            "in": "query",
            "description": "(OPTIONAL) Filter rows by advertisers (revenue origins) having at least one of these tag IDs assigned (OR semantics).",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "(OPTIONAL) "
              },
              "title": "revenue_origin_tag_ids",
              "uniqueItems": true
            }
          },
          {
            "name": "filter.includeBonuses",
            "in": "query",
            "description": "Whether unsettled affiliate bonuses count towards the open balance and get settled. Bonuses are included when omitted.",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/billing.v1.ListOpenBalancesResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/billing/v1/open-balances/list": {
      "post": {
        "tags": [
          "Billing Balance V1"
        ],
        "summary": "List open balances",
        "description": "Lists open balances for affiliates with details about conversion and commission amounts by status.",
        "operationId": "BalanceService_ListOpenBalances2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/billing.v1.ListOpenBalancesRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/billing.v1.ListOpenBalancesResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/billing/v1/settle-balances": {
      "post": {
        "tags": [
          "Billing Settlement V1"
        ],
        "summary": "Create settlement",
        "description": "Creates a new settlement for selected affiliates covering balances up to the specified date.",
        "operationId": "SettlementService_SettleBalances",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/billing.v1.SettleBalancesRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/billing.v1.SettleBalancesResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/billing/v1/settlements": {
      "get": {
        "tags": [
          "Billing Settlement V1"
        ],
        "summary": "List settlements",
        "description": "List all existing settlements in the selected timeframe.",
        "operationId": "SettlementService_ListSettlements",
        "parameters": [
          {
            "name": "pagination.limit",
            "in": "query",
            "description": "Maximum number of items to return (1-500).",
            "schema": {
              "exclusiveMinimum": 0,
              "type": "integer",
              "title": "limit",
              "maximum": 500
            }
          },
          {
            "name": "pagination.offset",
            "in": "query",
            "description": "Number of items to skip from the start of the result set.",
            "schema": {
              "type": "integer",
              "title": "offset"
            }
          },
          {
            "name": "timeRange.from",
            "in": "query",
            "description": "A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC.",
            "schema": {
              "type": "string",
              "examples": [
                "2023-01-15T01:30:15.01Z",
                "2024-12-25T12:00:00Z"
              ],
              "format": "date-time"
            }
          },
          {
            "name": "timeRange.to",
            "in": "query",
            "description": "A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC.",
            "schema": {
              "type": "string",
              "examples": [
                "2023-01-15T01:30:15.01Z",
                "2024-12-25T12:00:00Z"
              ],
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/billing.v1.ListSettlementsResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/billing/v1/settlements/{id}": {
      "get": {
        "tags": [
          "Billing Settlement V1"
        ],
        "summary": "Get settlement",
        "description": "Get information about the settlement.",
        "operationId": "SettlementService_GetSettlement",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Unique ID of the settlement",
            "required": true,
            "schema": {
              "type": "string",
              "title": "id",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/billing.v1.GetSettlementResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Billing Settlement V1"
        ],
        "summary": "Delete settlement",
        "description": "Delete the entirety of a single settlement. This might include settlements of multiple affiliates.",
        "operationId": "SettlementService_DeleteSettlement",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "ID of settlements to be deleted.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "id",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/billing.v1.DeleteSettlementResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/clicks/v1": {
      "post": {
        "tags": [
          "Clicks V1"
        ],
        "summary": "Create click",
        "description": "Creates a new click in the system.",
        "operationId": "ClicksService_CreateClick",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/clicks.v1.CreateClickRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/clicks.v1.CreateClickResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/clients/v1": {
      "patch": {
        "tags": [
          "Clients V1"
        ],
        "summary": "Update client",
        "description": "Updates mutable fields of a client. Fields absent from the request are left unchanged.",
        "operationId": "ClientService_UpdateClient",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/clients.v1.UpdateClientRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/clients.v1.UpdateClientResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/clients/v1/metrics": {
      "get": {
        "tags": [
          "Client Metrics V1"
        ],
        "summary": "List client metrics",
        "description": "Returns all integer and decimal metrics defined for the revenue origin.",
        "operationId": "ClientMetricService_ListClientMetrics",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/client_metrics.v1.ListClientMetricsResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/clients/v1/metrics/movements/list": {
      "post": {
        "tags": [
          "Client Metrics Movement V1"
        ],
        "summary": "List client metric movements",
        "description": "Returns a paginated list of metric movements matching the given filters.",
        "operationId": "ClientMetricMovementService_ListClientMetricMovements",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/client_metrics.v1.ListClientMetricMovementsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/client_metrics.v1.ListClientMetricMovementsResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/clients/v1/metrics/{id}/name": {
      "patch": {
        "tags": [
          "Client Metrics V1"
        ],
        "summary": "Update client metric name",
        "description": "Updates the display name of an existing client metric.",
        "operationId": "ClientMetricService_UpdateClientMetricName",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Internal identifier of the metric.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "id",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "title": "name",
                    "maxLength": 100,
                    "minLength": 1,
                    "description": "New display name."
                  }
                },
                "title": "client_metrics.v1.UpdateClientMetricNameRequest",
                "required": [
                  "name"
                ],
                "additionalProperties": false,
                "description": "Update the name of a client metric."
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/client_metrics.v1.UpdateClientMetricNameResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/clients/v1/metrics/{id}/visibility": {
      "patch": {
        "tags": [
          "Client Metrics V1"
        ],
        "summary": "Update client metric visibility",
        "description": "Controls whether the metric is visible in the UI.",
        "operationId": "ClientMetricService_UpdateClientMetricVisibility",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Internal identifier of the metric.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "id",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "visible": {
                    "type": "boolean",
                    "title": "visible",
                    "description": "New visibility state."
                  }
                },
                "title": "client_metrics.v1.UpdateClientMetricVisibilityRequest",
                "required": [
                  "visible"
                ],
                "additionalProperties": false,
                "description": "Update the visibility of a client metric."
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/client_metrics.v1.UpdateClientMetricVisibilityResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/conversion-types/v1/for-cid/{cid}": {
      "get": {
        "tags": [
          "Conversion Types V1"
        ],
        "summary": "List conversion types available for CID",
        "description": "Provides a list of conversion types that are available for the requesting click identifier (CID)",
        "operationId": "ConversionTypesService_ListConversionTypesAvailableForCid",
        "parameters": [
          {
            "name": "cid",
            "in": "path",
            "description": "The cid path parameter.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "cid",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/conversion_types.v1.ListConversionTypesAvailableForCidResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/conversions/v1/update-status-by-external-id": {
      "post": {
        "tags": [
          "Conversions Statuses By External Id V1"
        ],
        "summary": "Change conversion status by External ID",
        "description": "Update the status of conversions by matching with external ID (see [Conversion sources](#tag--tracking.v1.ConversionSourceService) for more details).",
        "operationId": "ConversionStatusesByExternalIdService_UpdateConversionStatusByExternalId",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/conversions.v1.UpdateConversionStatusByExternalIdRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/conversions.v1.UpdateConversionStatusByExternalIdResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/conversions/v1/{id}/status": {
      "put": {
        "tags": [
          "Conversions V1"
        ],
        "summary": "Set conversion status",
        "description": "Change the status of an already existing conversion.",
        "operationId": "ConversionsService_SetConversionStatus",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Conversion's unique identifier.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "id",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "status": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/conversions.v1.ConversionStatus"
                      }
                    ],
                    "not": {
                      "enum": [
                        "CONVERSION_STATUS_UNSPECIFIED"
                      ]
                    },
                    "title": "status",
                    "description": "New status for the conversion."
                  }
                },
                "title": "conversions.v1.SetConversionStatusRequest",
                "additionalProperties": false,
                "description": "Change conversion status"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/conversions.v1.SetConversionStatusResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/coupons/v1": {
      "post": {
        "tags": [
          "Coupons V1"
        ],
        "summary": "Create a new coupon.",
        "description": "Creates a new coupon in the system.",
        "operationId": "CouponsService_CreateCoupon",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/coupons.v1.CreateCouponRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/coupons.v1.CreateCouponResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/coupons/v1/list": {
      "post": {
        "tags": [
          "Coupons V1"
        ],
        "summary": "List coupons",
        "description": "Returns a list of all existing coupons in the system.",
        "operationId": "CouponsService_ListCoupons",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/coupons.v1.ListCouponsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/coupons.v1.ListCouponsResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/coupons/v1/{id}": {
      "delete": {
        "tags": [
          "Coupons V1"
        ],
        "summary": "Delete coupon",
        "description": "Delete an existing coupon from the system.",
        "operationId": "CouponsService_DeleteCoupon",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Unique ID of the coupon.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "id",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/coupons.v1.DeleteCouponResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/offer-caps/v1": {
      "post": {
        "tags": [
          "Offer Caps V1"
        ],
        "summary": "Create offer cap",
        "description": "Creates a new conversion cap for an offer. The cap defines daily, weekly or monthly limits on conversions\n (by count or revenue), optionally split by source, with a fallback redirect when the cap is reached.",
        "operationId": "OfferCapsService_CreateOfferCap",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/offer_caps.v1.CreateOfferCapRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/offer_caps.v1.CreateOfferCapResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/offer-caps/v1/offer/{offerId}": {
      "get": {
        "tags": [
          "Offer Caps V1"
        ],
        "summary": "List offer caps",
        "description": "Returns all conversion caps configured for a specific offer,\n including their limits, current utilization, and source-specific overrides.",
        "operationId": "OfferCapsService_ListOfferCaps",
        "parameters": [
          {
            "name": "offerId",
            "in": "path",
            "description": "Offer identifier (UUID) whose caps are listed.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "offer_id",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/offer_caps.v1.ListOfferCapsResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/offer-caps/v1/{id}": {
      "delete": {
        "tags": [
          "Offer Caps V1"
        ],
        "summary": "Delete offer cap",
        "description": "Permanently removes a conversion cap from an offer by its ID.",
        "operationId": "OfferCapsService_DeleteOfferCap",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Cap identifier (UUID) to delete.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "id",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/offer_caps.v1.DeleteOfferCapResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/offer-caps/v1/{offerCapId}/source/{sourceId}": {
      "post": {
        "tags": [
          "Offer Caps V1"
        ],
        "summary": "Add offer cap source limit",
        "description": "Sets a per-source limit override for an existing offer cap.\n Overrides the default source limit for a specific affiliate source.",
        "operationId": "OfferCapsService_AddOfferCapSourceLimit",
        "parameters": [
          {
            "name": "offerCapId",
            "in": "path",
            "description": "Cap identifier (UUID) the override is added to.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "offer_cap_id",
              "format": "uuid"
            }
          },
          {
            "name": "sourceId",
            "in": "path",
            "description": "Source identifier (UUID) the override applies to. The source must not be overridden on the cap yet.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "source_id",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "limit": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/offer_caps.v1.Limit"
                      }
                    ],
                    "title": "limit",
                    "description": "Limit applied to the source instead of the cap's default source limit."
                  }
                },
                "title": "offer_caps.v1.AddOfferCapSourceLimitRequest",
                "required": [
                  "limit"
                ],
                "additionalProperties": false,
                "description": "Request to override the limit of a single source on a cap."
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/offer_caps.v1.AddOfferCapSourceLimitResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Offer Caps V1"
        ],
        "summary": "Remove offer cap source limit",
        "description": "Removes the per-source limit override for a specific source on an offer cap,\n reverting it to the cap's default source limit.",
        "operationId": "OfferCapsService_RemoveOfferCapSourceLimit",
        "parameters": [
          {
            "name": "offerCapId",
            "in": "path",
            "description": "Cap identifier (UUID) the override is removed from.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "offer_cap_id",
              "format": "uuid"
            }
          },
          {
            "name": "sourceId",
            "in": "path",
            "description": "Source identifier (UUID) whose override is removed.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "source_id",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/offer_caps.v1.RemoveOfferCapSourceLimitResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/offers/v1": {
      "post": {
        "tags": [
          "Offers V1"
        ],
        "summary": "Create offer",
        "description": "Creates an offer with the supplied configuration, pricing and landing pages, and publishes it.\n All landing pages must use the same link type (either all direct or all redirect). By default the\n offer is published immediately; set `publish_at` to schedule it to go live at a future time instead.\n Returns the created offer together with its pricing and landing pages.",
        "operationId": "OffersService_CreateOffer",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/offers.v1.CreateOfferRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/offers.v1.CreateOfferResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/offers/v1/landing-pages/{id}": {
      "put": {
        "tags": [
          "Offers Landing Pages V1"
        ],
        "summary": "Update landing page",
        "description": "Updates an existing landing page. The link type provided must match the landing page's existing link type.",
        "operationId": "LandingPagesService_UpdateLandingPage",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Landing page identifier (UUID) to update.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "id",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "allOf": [
                  {
                    "oneOf": [
                      {
                        "required": [
                          "directLink"
                        ]
                      },
                      {
                        "required": [
                          "redirectLink"
                        ]
                      }
                    ]
                  }
                ],
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "directLink": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/offers.v1.DirectLinkParams"
                          }
                        ],
                        "title": "direct_link",
                        "description": "Update for a landing page that uses a direct tracking link."
                      }
                    },
                    "title": "direct_link"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "redirectLink": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/offers.v1.RedirectLinkParams"
                          }
                        ],
                        "title": "redirect_link",
                        "description": "Update for a landing page that uses a redirect tracking link."
                      }
                    },
                    "title": "redirect_link"
                  }
                ],
                "unevaluatedProperties": false,
                "not": {
                  "allOf": [
                    {
                      "anyOf": [
                        {
                          "required": [
                            "directLink"
                          ]
                        },
                        {
                          "required": [
                            "redirectLink"
                          ]
                        }
                      ]
                    },
                    {
                      "not": {
                        "oneOf": [
                          {
                            "required": [
                              "directLink"
                            ]
                          },
                          {
                            "required": [
                              "redirectLink"
                            ]
                          }
                        ]
                      }
                    }
                  ]
                },
                "properties": {
                  "name": {
                    "type": "string",
                    "title": "name",
                    "maxLength": 255,
                    "minLength": 1,
                    "description": "New landing page display name."
                  },
                  "url": {
                    "type": "string",
                    "title": "url",
                    "minLength": 1,
                    "description": "New destination URL the landing page points to."
                  },
                  "status": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/enums.v1.LandingPageStatus"
                      }
                    ],
                    "not": {
                      "enum": [
                        "LANDING_PAGE_STATUS_UNSPECIFIED"
                      ]
                    },
                    "title": "status",
                    "description": "New landing page status (enabled or disabled)."
                  }
                },
                "title": "offers.v1.UpdateLandingPageRequest",
                "required": [
                  "name",
                  "url",
                  "status"
                ],
                "description": "Request to update an existing landing page. The provided link variant must match the landing page's existing\n tracking type; switching tracking type is not supported."
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/offers.v1.UpdateLandingPageResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/offers/v1/list": {
      "post": {
        "tags": [
          "Offers V1"
        ],
        "summary": "List offers",
        "description": "Lists offers matching the given filters, each returned together with its pricing and landing pages,\n in the same shape returned by create.",
        "operationId": "OffersService_ListOffers",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/offers.v1.ListOffersRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/offers.v1.ListOffersResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/offers/v1/{id}": {
      "get": {
        "tags": [
          "Offers V1"
        ],
        "summary": "Get offer",
        "description": "Retrieves an offer together with its pricing and landing pages, in the same shape returned by create.",
        "operationId": "OffersService_GetOffer",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Offer identifier (UUID) to retrieve.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "id",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/offers.v1.GetOfferResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/offers/v1/{id}/data": {
      "put": {
        "tags": [
          "Offers V1"
        ],
        "summary": "Update offer",
        "description": "Updates the offer's general settings (name, visibility, targeting, tags, description, ...) and its\n status. Provide the full new settings; the offer's pricing and landing pages are left untouched and\n are updated through their own endpoints. Returns the updated offer.",
        "operationId": "OffersService_UpdateOffer",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Identifier (UUID) of the offer to update.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "id",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "offer": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/offers.v1.OfferParams"
                      }
                    ],
                    "title": "offer",
                    "description": "The full new general settings for the offer. Replaces the offer's existing settings."
                  },
                  "status": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/enums.v1.OfferStatus"
                      }
                    ],
                    "not": {
                      "enum": [
                        "OFFER_STATUS_UNSPECIFIED"
                      ]
                    },
                    "title": "status",
                    "description": "New status for the offer. Setting it to active requires the offer to have pricing configured.\nenum.defined_only = true\n"
                  },
                  "publishAt": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/google.protobuf.Timestamp"
                      }
                    ],
                    "title": "publish_at",
                    "description": "(OPTIONAL) When to automatically publish the offer. Leave unset to keep the offer's current schedule, or set a\n future time to (re)schedule it.\ntimestamp.gt_now = true\n"
                  }
                },
                "title": "offers.v1.UpdateOfferRequest",
                "required": [
                  "offer",
                  "status"
                ],
                "additionalProperties": false,
                "description": "Request to update an offer's general settings."
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/offers.v1.UpdateOfferResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/offers/v1/{id}/pricing": {
      "put": {
        "tags": [
          "Offers V1"
        ],
        "summary": "Update offer pricing",
        "description": "Updates the pricing settings of the offer (conversion type settings and targeting groups). Returns the\n updated pricing.",
        "operationId": "OffersService_UpdateOfferPricing",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Identifier (UUID) of the offer whose pricing is updated.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "id",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "pricing": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/offers.v1.OfferPricingParams"
                      }
                    ],
                    "title": "pricing",
                    "description": "The new pricing settings for the offer."
                  }
                },
                "title": "offers.v1.UpdateOfferPricingRequest",
                "required": [
                  "pricing"
                ],
                "additionalProperties": false,
                "description": "Request to update an offer's pricing settings."
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/offers.v1.UpdateOfferPricingResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/offers/v1/{offerId}/affiliates/sources": {
      "post": {
        "tags": [
          "Offers Affiliates V1"
        ],
        "summary": "Set affiliate access to offer",
        "description": "Sets the access level (allowed or forbidden) of one or more affiliate sources on the offer, creating an\n assignment for sources that are not yet assigned and updating the access level of those that already are.\n Returns the resulting assignments.",
        "operationId": "OfferAffiliatesService_SetAffiliatesAccessToOffer",
        "parameters": [
          {
            "name": "offerId",
            "in": "path",
            "description": "Offer identifier (UUID) the sources are being assigned to.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "offer_id",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "sourceIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "title": "source_ids",
                    "minItems": 1,
                    "uniqueItems": true,
                    "description": "Source identifiers (UUIDs) to assign. Must be unique and contain at least one entry."
                  },
                  "access": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/enums.v1.OfferAccess"
                      }
                    ],
                    "not": {
                      "enum": [
                        "OFFER_ACCESS_UNSPECIFIED"
                      ]
                    },
                    "title": "access",
                    "description": "Access level to grant each source (allowed or forbidden).\nenum.defined_only = true\n"
                  }
                },
                "title": "offers.v1.SetAffiliatesAccessToOfferRequest",
                "required": [
                  "sourceIds",
                  "access"
                ],
                "additionalProperties": false,
                "description": "Request to set the access level of one or more affiliate sources on an offer, creating the assignment when it does not exist yet."
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/offers.v1.SetAffiliatesAccessToOfferResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/offers/v1/{offerId}/affiliates/sources/list": {
      "post": {
        "tags": [
          "Offers Affiliates V1"
        ],
        "summary": "List affiliates assignments to offer",
        "description": "Lists the affiliate assignments to the offer, each together with its access level, assignment time\n and any pending application details.",
        "operationId": "OfferAffiliatesService_ListAffiliateAssignmentsToOffer",
        "parameters": [
          {
            "name": "offerId",
            "in": "path",
            "description": "Offer identifier (UUID) whose assignments are listed.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "offer_id",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "pagination": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/types.v1.OptionalPaginationParams"
                      }
                    ],
                    "title": "pagination",
                    "description": "(OPTIONAL) Pagination of the listed source assignments. Omit to list all of them."
                  }
                },
                "title": "offers.v1.ListAffiliateAssignmentsToOfferRequest",
                "additionalProperties": false,
                "description": "Request to list the affiliates assigned to an offer."
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/offers.v1.ListAffiliateAssignmentsToOfferResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/offers/v1/{offerId}/creatives": {
      "get": {
        "tags": [
          "Offers Creatives V1"
        ],
        "summary": "List offer creatives",
        "description": "Lists the promotional creatives configured for this offer, each identified by its unique id.",
        "operationId": "OfferCreativesService_ListOfferCreatives",
        "parameters": [
          {
            "name": "offerId",
            "in": "path",
            "description": "Offer identifier (UUID).",
            "required": true,
            "schema": {
              "type": "string",
              "title": "offer_id",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/offers.v1.ListOfferCreativesResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Offers Creatives V1"
        ],
        "summary": "Create offer creative",
        "description": "Adds a single content-based creative (HTML, text link, external video or post) to the offer and\n returns it with its generated id. File-based creatives (image banners, videos, ZIP archives) are\n added through the creative upload endpoint instead.",
        "operationId": "OfferCreativesService_CreateOfferCreative",
        "parameters": [
          {
            "name": "offerId",
            "in": "path",
            "description": "Offer identifier (UUID).",
            "required": true,
            "schema": {
              "type": "string",
              "title": "offer_id",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "type": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/enums.v1.CreativeType"
                      }
                    ],
                    "not": {
                      "enum": [
                        "CREATIVE_TYPE_UNSPECIFIED"
                      ]
                    },
                    "title": "type",
                    "description": "Type of the creative. Must be a content-based type; file-based types use the upload endpoint.\nenum.defined_only = true\n"
                  },
                  "content": {
                    "type": "string",
                    "title": "content",
                    "maxLength": 100000,
                    "minLength": 1,
                    "description": "Creative content (URL, HTML, or text up to 100000 chars)."
                  },
                  "name": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/google.protobuf.StringValue"
                      }
                    ],
                    "title": "name",
                    "maxLength": 255,
                    "minLength": 1,
                    "description": "(OPTIONAL) Human-readable name of the creative (1-255 chars)."
                  },
                  "note": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/google.protobuf.StringValue"
                      }
                    ],
                    "title": "note",
                    "maxLength": 1000,
                    "minLength": 1,
                    "description": "(OPTIONAL) Internal note for the creative (1-1000 chars)."
                  },
                  "visibleInGetLink": {
                    "type": "boolean",
                    "title": "visible_in_get_link",
                    "description": "Whether the creative is exposed in the affiliate \"Get link\" interface."
                  }
                },
                "title": "offers.v1.CreateOfferCreativeRequest",
                "required": [
                  "type",
                  "content",
                  "visibleInGetLink"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/offers.v1.CreateOfferCreativeResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/offers/v1/{offerId}/creatives/{creativeId}": {
      "put": {
        "tags": [
          "Offers Creatives V1"
        ],
        "summary": "Update offer creative",
        "description": "Updates the editable fields (content, name, note, visibility) of a single creative identified by\n its id. The creative's type, uploaded file and metadata are left unchanged.",
        "operationId": "OfferCreativesService_UpdateOfferCreative",
        "parameters": [
          {
            "name": "offerId",
            "in": "path",
            "description": "Offer identifier (UUID).",
            "required": true,
            "schema": {
              "type": "string",
              "title": "offer_id",
              "format": "uuid"
            }
          },
          {
            "name": "creativeId",
            "in": "path",
            "description": "Identifier (UUID) of the creative to update.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "creative_id",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "content": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/google.protobuf.StringValue"
                      }
                    ],
                    "title": "content",
                    "maxLength": 100000,
                    "minLength": 1,
                    "description": "(OPTIONAL) New creative content (URL, HTML, or text up to 100000 chars). Leave unset to keep the current content."
                  },
                  "name": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/google.protobuf.StringValue"
                      }
                    ],
                    "title": "name",
                    "maxLength": 255,
                    "minLength": 1,
                    "description": "(OPTIONAL) Human-readable name of the creative (1-255 chars)."
                  },
                  "note": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/google.protobuf.StringValue"
                      }
                    ],
                    "title": "note",
                    "maxLength": 1000,
                    "minLength": 1,
                    "description": "(OPTIONAL) Internal note for the creative (1-1000 chars)."
                  },
                  "visibleInGetLink": {
                    "type": "boolean",
                    "title": "visible_in_get_link",
                    "description": "Whether the creative is exposed in the affiliate \"Get link\" interface."
                  }
                },
                "title": "offers.v1.UpdateOfferCreativeRequest",
                "required": [
                  "visibleInGetLink"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/offers.v1.UpdateOfferCreativeResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Offers Creatives V1"
        ],
        "summary": "Delete offer creative",
        "description": "Removes a single creative identified by its id from the offer.",
        "operationId": "OfferCreativesService_DeleteOfferCreative",
        "parameters": [
          {
            "name": "offerId",
            "in": "path",
            "description": "Offer identifier (UUID).",
            "required": true,
            "schema": {
              "type": "string",
              "title": "offer_id",
              "format": "uuid"
            }
          },
          {
            "name": "creativeId",
            "in": "path",
            "description": "Identifier (UUID) of the creative to delete.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "creative_id",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/offers.v1.DeleteOfferCreativeResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/offers/v1/{offerId}/landing-pages": {
      "post": {
        "tags": [
          "Offers Landing Pages V1"
        ],
        "summary": "Create landing pages",
        "description": "Creates one or more landing pages for an offer. Each landing page declares either a direct or redirect tracking\n link. All landing pages in a single request must use the same link type.",
        "operationId": "LandingPagesService_CreateLandingPages",
        "parameters": [
          {
            "name": "offerId",
            "in": "path",
            "description": "Offer identifier (UUID) the landing pages are being created for.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "offer_id",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "landingPages": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/offers.v1.LandingPageParams"
                    },
                    "title": "landing_pages",
                    "minItems": 1,
                    "description": "Landing pages to create. Must contain at least one entry and all entries must share the same link type."
                  }
                },
                "title": "offers.v1.CreateLandingPagesRequest",
                "required": [
                  "landingPages"
                ],
                "additionalProperties": false,
                "description": "Request to create one or more landing pages for an offer. All landing pages in the list must use the same link type.\ncreate_landing_pages.uniform_link_type // all landing pages in a single request must use the same link type\n"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/offers.v1.CreateLandingPagesResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/offers/v1/{offerId}/landing-pages/list": {
      "post": {
        "tags": [
          "Offers Landing Pages V1"
        ],
        "summary": "List landing pages by offer",
        "description": "Lists all landing pages assigned to an offer. Each item carries either direct or redirect tracking link metadata.",
        "operationId": "LandingPagesService_ListLandingPages",
        "parameters": [
          {
            "name": "offerId",
            "in": "path",
            "description": "Offer identifier (UUID) whose landing pages are listed.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "offer_id",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "pagination": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/types.v1.PaginationParams"
                      }
                    ],
                    "title": "pagination",
                    "description": "Pagination of the listed landing pages."
                  }
                },
                "title": "offers.v1.ListLandingPagesRequest",
                "required": [
                  "pagination"
                ],
                "additionalProperties": false,
                "description": "Request to list landing pages assigned to an offer."
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/offers.v1.ListLandingPagesResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/offers/v1/{offerId}/landing-pages/prioritize": {
      "put": {
        "tags": [
          "Offers Landing Pages V1"
        ],
        "summary": "Prioritize landing pages",
        "description": "Sets the priority order used to pick which redirect landing page an offer serves to a visitor.\n\n When a redirect tracking link is clicked, the offer's redirect landing pages are matched against the visitor's\n location, language, device and operating system. Among the pages whose targeting rules match, the one appearing\n earliest in `ordered_landing_page_ids` is chosen as the single redirect destination — earlier position means\n higher priority. Landing pages omitted from the list rank below every listed page.\n\n For this reason, order landing pages from the most specific targeting rules to the most general, so a broad\n catch-all page cannot win ahead of a more specific page that also matches the visitor.\n\n Only redirect landing pages use this ordering; direct landing pages are unaffected.",
        "operationId": "LandingPagesService_PrioritizeLandingPages",
        "parameters": [
          {
            "name": "offerId",
            "in": "path",
            "description": "Offer identifier (UUID) whose landing pages are being reordered.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "offer_id",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "orderedLandingPageIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "title": "ordered_landing_page_ids",
                    "minItems": 1,
                    "uniqueItems": true,
                    "description": "Landing page identifiers (UUIDs) listed in the desired priority order. Must be unique and contain at least one entry."
                  }
                },
                "title": "offers.v1.PrioritizeLandingPagesRequest",
                "required": [
                  "orderedLandingPageIds"
                ],
                "additionalProperties": false,
                "description": "Request to set the priority order of landing pages for an offer."
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/offers.v1.PrioritizeLandingPagesResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/payment-method-types/v1/supported": {
      "get": {
        "tags": [
          "Payment Methods Types V1"
        ],
        "summary": "List supported payment method types",
        "description": "Returns all payment method types enabled in the system along with their supported currencies.",
        "operationId": "PaymentMethodTypesService_ListSupportedPaymentMethodTypes",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/payment_methods.v1.ListSupportedPaymentMethodTypesResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/payment-methods/v1": {
      "post": {
        "tags": [
          "Payment Methods V1"
        ],
        "summary": "Create a new payment method",
        "description": "Creates a new payment method for the affiliate account.\n Once created, it can be set as a default payment method using `SetPaymentMethodAccountDefault` endpoint.",
        "operationId": "PaymentMethodService_CreatePaymentMethod",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/payment_methods.v1.CreatePaymentMethodRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/payment_methods.v1.CreatePaymentMethodResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/payment-methods/v1/{id}": {
      "patch": {
        "tags": [
          "Payment Methods V1"
        ],
        "summary": "Update payment method",
        "description": "Updates the data for selected payment method.",
        "operationId": "PaymentMethodService_UpdatePaymentMethod",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Payment method identification.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "id",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "type": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/payment_methods.v1.PaymentMethodType"
                      }
                    ],
                    "not": {
                      "enum": [
                        "PAYMENT_METHOD_TYPE_UNSPECIFIED"
                      ]
                    },
                    "title": "type",
                    "description": "Type of the payment method."
                  },
                  "currency": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/types.v1.Currency"
                      }
                    ],
                    "title": "currency",
                    "description": "Currency for the payment method. Uses ISO 4217 format."
                  },
                  "data": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/payment_methods.v1.PaymentMethodData"
                      }
                    ],
                    "title": "data",
                    "description": "Payment method data."
                  }
                },
                "title": "payment_methods.v1.UpdatePaymentMethodRequest",
                "required": [
                  "currency",
                  "data"
                ],
                "additionalProperties": false,
                "description": "Update existing payment method."
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/payment_methods.v1.UpdatePaymentMethodResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/revenue-origin-billing/v1/claim-balances": {
      "post": {
        "tags": [
          "Revenue Origin Billing Claim V1"
        ],
        "summary": "Create advertiser settlement",
        "description": "Generates a settlement for specific advertiser.",
        "operationId": "ClaimService_ClaimBalances",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/revenue_origin_billing.v1.ClaimBalancesRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/revenue_origin_billing.v1.ClaimBalancesResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/revenue-origin-billing/v1/claims": {
      "get": {
        "tags": [
          "Revenue Origin Billing Claim V1"
        ],
        "summary": "List advertiser settlements",
        "description": "Provides a list of existing advertiser settlements.",
        "operationId": "ClaimService_ListClaims",
        "parameters": [
          {
            "name": "pagination.limit",
            "in": "query",
            "description": "Maximum number of items to return (1-500).",
            "schema": {
              "exclusiveMinimum": 0,
              "type": "integer",
              "title": "limit",
              "maximum": 500
            }
          },
          {
            "name": "pagination.offset",
            "in": "query",
            "description": "Number of items to skip from the start of the result set.",
            "schema": {
              "type": "integer",
              "title": "offset"
            }
          },
          {
            "name": "timeRange.from",
            "in": "query",
            "description": "A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC.",
            "schema": {
              "type": "string",
              "examples": [
                "2023-01-15T01:30:15.01Z",
                "2024-12-25T12:00:00Z"
              ],
              "format": "date-time"
            }
          },
          {
            "name": "timeRange.to",
            "in": "query",
            "description": "A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC.",
            "schema": {
              "type": "string",
              "examples": [
                "2023-01-15T01:30:15.01Z",
                "2024-12-25T12:00:00Z"
              ],
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/revenue_origin_billing.v1.ListClaimsResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/revenue-origin-billing/v1/claims/{id}": {
      "get": {
        "tags": [
          "Revenue Origin Billing Claim V1"
        ],
        "summary": "Get advertiser settlement",
        "description": "Provides details of specific advertiser settlement details.",
        "operationId": "ClaimService_GetClaim",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Advertiser settlement ID.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "id",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/revenue_origin_billing.v1.GetClaimResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Revenue Origin Billing Claim V1"
        ],
        "summary": "Delete advertiser settlement",
        "description": "Deletes the selected advertiser settlement.",
        "operationId": "ClaimService_DeleteClaim",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Advertiser settlement ID.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "id",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/revenue_origin_billing.v1.DeleteClaimResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/revenue-origin-billing/v1/open-balances": {
      "get": {
        "tags": [
          "Revenue Origin Billing Balance V1"
        ],
        "summary": "Advertiser open balance",
        "description": "Get information about current open balance per individual advertiser.",
        "operationId": "RevenueOriginBalanceService_ListRevenueOriginOpenBalances",
        "parameters": [
          {
            "name": "pagination.limit",
            "in": "query",
            "description": "Maximum number of items to return (1-500).",
            "schema": {
              "exclusiveMinimum": 0,
              "type": "integer",
              "title": "limit",
              "maximum": 500
            }
          },
          {
            "name": "pagination.offset",
            "in": "query",
            "description": "Number of items to skip from the start of the result set.",
            "schema": {
              "type": "integer",
              "title": "offset"
            }
          },
          {
            "name": "filter.until",
            "in": "query",
            "description": "Include balances up to this date.",
            "required": true,
            "schema": {
              "type": "string",
              "examples": [
                "2023-01-15T01:30:15.01Z",
                "2024-12-25T12:00:00Z"
              ],
              "format": "date-time"
            }
          },
          {
            "name": "filter.minAmount.value",
            "in": "query",
            "description": "The filter.minAmount.value query parameter.",
            "schema": {
              "type": "string",
              "title": "value",
              "pattern": "^-?\\d+(\\.\\d+)?$"
            }
          },
          {
            "name": "filter.revenueOriginTagIds",
            "in": "query",
            "description": "(OPTIONAL) Filter rows by advertisers (revenue origins) having at least one of these tag IDs assigned (OR semantics).",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid",
                "description": "(OPTIONAL) "
              },
              "title": "revenue_origin_tag_ids",
              "uniqueItems": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/revenue_origin_billing.v1.ListRevenueOriginOpenBalancesResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/revenue-origins/v1": {
      "post": {
        "tags": [
          "Revenue Origins V1"
        ],
        "summary": "Create new advertiser",
        "description": "Creates a new advertiser in your system.",
        "operationId": "RevenueOriginsService_CreateRevenueOrigin",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/revenue_origins.v1.CreateRevenueOriginRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/revenue_origins.v1.CreateRevenueOriginResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/revenue-origins/v1/list": {
      "post": {
        "tags": [
          "Revenue Origins V1"
        ],
        "summary": "List advertisers",
        "description": "List the existing advertisers in your system.",
        "operationId": "RevenueOriginsService_ListRevenueOrigins",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/revenue_origins.v1.ListRevenueOriginsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/revenue_origins.v1.ListRevenueOriginsResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/revenue-origins/v1/{id}": {
      "patch": {
        "tags": [
          "Revenue Origins V1"
        ],
        "summary": "Update advertiser",
        "description": "Update the advertiser in your system.",
        "operationId": "RevenueOriginsService_UpdateRevenueOrigin",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "ID of the advertiser.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "id",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "title": "name",
                    "maxLength": 255,
                    "minLength": 1,
                    "description": "Name of the advertiser."
                  },
                  "billingDetail": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/revenue_origins.v1.RevenueOriginBillingDetail"
                      }
                    ],
                    "title": "billing_detail",
                    "description": "Billing details of the advertiser."
                  },
                  "adminNote": {
                    "type": "string",
                    "title": "admin_note",
                    "maxLength": 255,
                    "description": "Admin note to the advertiser."
                  }
                },
                "title": "revenue_origins.v1.UpdateRevenueOriginRequest",
                "required": [
                  "name",
                  "billingDetail",
                  "adminNote"
                ],
                "additionalProperties": false,
                "description": "Update advertiser."
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/revenue_origins.v1.UpdateRevenueOriginResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/settings/v1/timezone": {
      "get": {
        "tags": [
          "Settings Tenant Profile V1"
        ],
        "summary": "Get default timezone",
        "description": "Returns the default timezone configured in the general settings of the tenant.",
        "operationId": "TenantProfileService_GetDefaultTimezone",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/settings.v1.GetDefaultTimezoneResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/tags/v1": {
      "get": {
        "tags": [
          "Tags V1"
        ],
        "summary": "List tags",
        "description": "Lists all tags in the system.",
        "operationId": "TagsService_ListTags",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/tags.v1.ListTagsResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Tags V1"
        ],
        "summary": "Create new tag",
        "description": "Creates a new tag in the system.",
        "operationId": "TagsService_CreateTag",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/tags.v1.CreateTagRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/tags.v1.CreateTagResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/tags/v1/{id}": {
      "get": {
        "tags": [
          "Tags V1"
        ],
        "summary": "Get tag details",
        "description": "Provides details of existing tag in the system.",
        "operationId": "TagsService_GetTag",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Tag identifier.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "id",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/tags.v1.GetTagResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Tags V1"
        ],
        "summary": "Delete tag",
        "description": "Deletes a tag from the system.",
        "operationId": "TagsService_DeleteTag",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Tag identifier.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "id",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/tags.v1.DeleteTagResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/tiers/v1": {
      "get": {
        "tags": [
          "Tiers V1"
        ],
        "summary": "List affiliate tiers",
        "description": "Returns a list of active affiliate tiers and their associated payout rates.",
        "operationId": "TiersService_ListTiers",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/tiers.v1.ListTiersResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Tiers V1"
        ],
        "summary": "Create affiliate tier",
        "description": "Creates a new affiliate tier in the system.",
        "operationId": "TiersService_CreateTier",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/tiers.v1.CreateTierRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/tiers.v1.CreateTierResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/tiers/v1/{id}": {
      "get": {
        "tags": [
          "Tiers V1"
        ],
        "summary": "Affiliate tier detail",
        "description": "Returns the detail of specific affiliate tier with the payout rates.",
        "operationId": "TiersService_GetTier",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Unique identifier of the affiliate tier.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "id",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/tiers.v1.GetTierResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Tiers V1"
        ],
        "summary": "Delete affiliate tier",
        "description": "Deletes a specific affiliate tier. A tier cannot be deleted if affiliates are still assigned to it. Default tier cannot be deleted.",
        "operationId": "TiersService_DeleteTier",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "ID of the tier to be deleted.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "id",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/tiers.v1.DeleteTierResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "Tiers V1"
        ],
        "summary": "Update affiliate tier",
        "description": "Updates the values of selected affiliate tier.",
        "operationId": "TiersService_UpdateTier",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "ID of the tier to be updated.",
            "required": true,
            "schema": {
              "type": "string",
              "title": "id",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "title": "name",
                    "maxLength": 50,
                    "minLength": 1,
                    "description": "Name of the tier."
                  },
                  "defaultRate": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/types.v1.Decimal"
                      }
                    ],
                    "title": "default_rate",
                    "description": "Default affiliate payout rate for the tier. Uses decimal as a string."
                  }
                },
                "title": "tiers.v1.UpdateTierRequest",
                "required": [
                  "name",
                  "defaultRate"
                ],
                "additionalProperties": false,
                "description": "Update an existing affiliate tier."
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/tiers.v1.UpdateTierResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/tipalti-payments/v1/settlements/{settlementId}/list-payable-account-settlements": {
      "get": {
        "tags": [
          "Tipalti Payments V1"
        ],
        "summary": "List payable account settlements of a settlement",
        "description": "Retrieve list of payable and unpaid account settlements via Tipalti.",
        "operationId": "TipaltiPaymentsService_ListPayableAccountSettlements",
        "parameters": [
          {
            "name": "settlementId",
            "in": "path",
            "description": "Unique ID of a settlement",
            "required": true,
            "schema": {
              "type": "string",
              "title": "settlement_id",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/tipalti.v1.ListPayableAccountSettlementsResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/tipalti-payments/v1/settlements/{settlementId}/payment-batch": {
      "post": {
        "tags": [
          "Tipalti Payments V1"
        ],
        "summary": "Create Tipalti payment batch",
        "description": "Sends new payment batch to Tipalti system for specified settlement.\n\n Account settlements of the specified settlement are included in the payment batch only if it has Tipalti payment method, is still unpaid and\n Tipalti payee corresponding to the account settlement's affiliate is in payable state.",
        "operationId": "TipaltiPaymentsService_CreatePaymentBatch",
        "parameters": [
          {
            "name": "settlementId",
            "in": "path",
            "description": "Unique ID of a settlement",
            "required": true,
            "schema": {
              "type": "string",
              "title": "settlement_id",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/tipalti.v1.CreatePaymentBatchResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/tipalti-payments/v1/settlements/{settlementId}/payment-batch/status": {
      "post": {
        "tags": [
          "Tipalti Payments V1"
        ],
        "summary": "Check payment batch status",
        "description": "Checks status of a specific Tipalti payment batch of given settlement and refreshes the payment data of the settlement.\n This should be used only if there is need to manually synchronize payment data with new state in Tipalti system.\n\n You can then see the refreshed data in SettlementService.GetSettlement endpoint.",
        "operationId": "TipaltiPaymentsService_CheckPaymentBatchStatus",
        "parameters": [
          {
            "name": "settlementId",
            "in": "path",
            "description": "Unique ID of a settlement",
            "required": true,
            "schema": {
              "type": "string",
              "title": "settlement_id"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "paymentBatchId": {
                    "type": "string",
                    "title": "payment_batch_id",
                    "description": "Unique ID of a payment batch"
                  }
                },
                "title": "tipalti.v1.CheckPaymentBatchStatusRequest",
                "additionalProperties": false
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/tipalti.v1.CheckPaymentBatchStatusResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/tracking-links/v1/build": {
      "post": {
        "tags": [
          "Tracking Links V1"
        ],
        "summary": "BuildTrackingLink",
        "description": "Build a tracking link",
        "operationId": "TrackingLinksService_BuildTrackingLink",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/tracking_links.v1.BuildTrackingLinkRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/tracking_links.v1.BuildTrackingLinkResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/webhooks/v1": {
      "get": {
        "tags": [
          "Webhooks V1"
        ],
        "summary": "List active webhooks",
        "description": "Returns a list of currently active webhooks.",
        "operationId": "WebhooksService_ListWebhooks",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/webhooks.v1.ListWebhooksResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Webhooks V1"
        ],
        "summary": "Create a new webhook",
        "description": "Creates new webhooks in the system.",
        "operationId": "WebhooksService_CreateWebhook",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/webhooks.v1.CreateWebhookRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/webhooks.v1.CreateWebhookResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/webhooks/v1/test": {
      "post": {
        "tags": [
          "Webhooks V1"
        ],
        "summary": "Test webhook response",
        "description": "Triggers specific webhook to test functionality and sent data.",
        "operationId": "WebhooksService_SendWebhook",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/webhooks.v1.SendWebhookRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/webhooks.v1.SendWebhookResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/node/webhooks/v1/{id}": {
      "delete": {
        "tags": [
          "Webhooks V1"
        ],
        "summary": "Delete webhook",
        "description": "Deletes a specific webhook from the system.",
        "operationId": "WebhooksService_DeleteWebhook",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Unique identifier of the webhook",
            "required": true,
            "schema": {
              "type": "string",
              "title": "id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/webhooks.v1.DeleteWebhookResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/tracking/client/v1": {
      "post": {
        "tags": [
          "Tracking Conversion Source V1"
        ],
        "summary": "Create client",
        "description": "Create client associated with the click.",
        "operationId": "ConversionSourceService_CreateClient",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/tracking.v1.CreateClientRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/tracking.v1.CreateClientResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/tracking/clients/v1/metrics/movements": {
      "post": {
        "tags": [
          "Client Metrics Tracking V1"
        ],
        "summary": "Create client metric movement",
        "description": "Records metric values for a client identified by external_client_id. Duplicate requests with the same request_id are silently ignored.",
        "operationId": "ClientMetricTrackingService_CreateClientMetricMovement",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/client_metrics.v1.CreateClientMetricMovementRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/client_metrics.v1.CreateClientMetricMovementResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/tracking/conversion/v1": {
      "get": {
        "tags": [
          "Tracking Conversion V1"
        ],
        "summary": "Create conversion",
        "description": "Create a new conversion in the system.",
        "operationId": "ConversionService_CreateConversion2",
        "parameters": [
          {
            "name": "cid",
            "in": "query",
            "description": "The click identification associated with the conversion. When cid is filled, then external_cid/external_client_id cannot be filled.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "externalCid",
            "in": "query",
            "description": "External CID associated with the conversion. See [Conversion sources](#tag--tracking.v1.ConversionSourceService) for more details. when external_cid is filled, then revenue_origin_id must also be filled, and cid/external_client_id cannot be filled",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "externalClientId",
            "in": "query",
            "description": "External client ID associated with the conversion. When external_client_id is filled, then revenue_origin_id must also be filled, and cid/external_cid cannot be filled",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "couponCodes",
            "in": "query",
            "description": "Coupons to be redeemed within the conversion. when coupon codes are not empty, then revenue_origin_id must also be filled",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "maxLength": 255,
                "minLength": 1
              },
              "title": "coupon_codes"
            }
          },
          {
            "name": "revenueOriginId",
            "in": "query",
            "description": "Assigned revenue origin. Can be obtained from unique trackdesk identifiers in the settings.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "conversionTypeCode",
            "in": "query",
            "description": "Type of the conversion.",
            "schema": {
              "type": "string",
              "title": "conversion_type_code",
              "maxLength": 20,
              "minLength": 1
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "Status of the conversion.\nenum.defined_only = true\n",
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/conversions.v1.ConversionStatus"
                }
              ],
              "not": {
                "enum": [
                  "CONVERSION_STATUS_NOT_ALLOWED",
                  "CONVERSION_STATUS_QUALITY_CONTROL"
                ]
              },
              "title": "status"
            }
          },
          {
            "name": "amount.value",
            "in": "query",
            "description": "The amount.value query parameter.",
            "schema": {
              "type": "string",
              "title": "value",
              "pattern": "^-?\\d+(\\.\\d+)?$"
            }
          },
          {
            "name": "currency.code",
            "in": "query",
            "description": "The three-letter currency code defined in ISO 4217.",
            "schema": {
              "type": "string",
              "title": "code",
              "maxLength": 3,
              "minLength": 3,
              "pattern": "^[A-Z]*$"
            }
          },
          {
            "name": "externalId",
            "in": "query",
            "description": "External ID is used for deduplication of conversions. Only one conversion per Conversion Type can have the same External ID (for Network accounts, per Conversion Type and Revenue Origin); a repeated request does not create a second conversion.",
            "schema": {
              "type": "string",
              "title": "external_id",
              "maxLength": 255
            }
          },
          {
            "name": "customerId",
            "in": "query",
            "description": "Customer ID, your specific custom identifier.",
            "schema": {
              "type": "string",
              "title": "customer_id",
              "maxLength": 255
            }
          },
          {
            "name": "customParams.advS1",
            "in": "query",
            "description": "Custom adv S1 parameter assigned to a conversion.",
            "schema": {
              "type": "string",
              "title": "adv_s1",
              "maxLength": 255
            }
          },
          {
            "name": "customParams.advS2",
            "in": "query",
            "description": "Custom adv S2 parameter assigned to a conversion.",
            "schema": {
              "type": "string",
              "title": "adv_s2",
              "maxLength": 255
            }
          },
          {
            "name": "customParams.advS3",
            "in": "query",
            "description": "Custom adv S3 parameter assigned to a conversion.",
            "schema": {
              "type": "string",
              "title": "adv_s3",
              "maxLength": 255
            }
          },
          {
            "name": "customParams.advS4",
            "in": "query",
            "description": "Custom adv S4 parameter assigned to a conversion.",
            "schema": {
              "type": "string",
              "title": "adv_s4",
              "maxLength": 255
            }
          },
          {
            "name": "customParams.advS5",
            "in": "query",
            "description": "Custom adv S5 parameter assigned to a conversion.",
            "schema": {
              "type": "string",
              "title": "adv_s5",
              "maxLength": 255
            }
          },
          {
            "name": "qualified",
            "in": "query",
            "description": "Qualification baseline evaluation value - override default behavior.",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "createdAt",
            "in": "query",
            "description": "The date-time when the conversion was created. Must be in the past. Uses RFC 3339 formatting (e.g. \"2036-07-21T17:32:28Z\"). If not provided, the current time-stamp will be used.",
            "schema": {
              "type": "string",
              "examples": [
                "2023-01-15T01:30:15.01Z",
                "2024-12-25T12:00:00Z"
              ],
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/tracking.v1.CreateConversionResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Tracking Conversion V1"
        ],
        "summary": "Create conversion",
        "description": "Create a new conversion in the system.",
        "operationId": "ConversionService_CreateConversion",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/tracking.v1.CreateConversionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/tracking.v1.CreateConversionResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/tracking/conversion/v1/update": {
      "get": {
        "tags": [
          "Tracking Conversion V1"
        ],
        "summary": "Update conversion",
        "description": "Update selected properties of a conversion.",
        "operationId": "ConversionService_UpdateConversion2",
        "parameters": [
          {
            "name": "identifier.id",
            "in": "query",
            "description": "(OPTIONAL) ID of the conversion.",
            "required": false,
            "schema": {
              "type": "string",
              "title": "id",
              "format": "uuid"
            }
          },
          {
            "name": "identifier.external.revenueOriginId",
            "in": "query",
            "description": "Revenue origin associated with the conversion. You can find this information in your unique trackdesk identifiers in the Settings.",
            "schema": {
              "type": "string",
              "title": "revenue_origin_id",
              "format": "uuid"
            }
          },
          {
            "name": "identifier.external.externalId",
            "in": "query",
            "description": "External ID associated with the conversion.",
            "schema": {
              "type": "string",
              "title": "external_id",
              "maxLength": 255,
              "minLength": 1
            }
          },
          {
            "name": "identifier.external.conversionTypeCode",
            "in": "query",
            "description": "Code of the conversion type.",
            "schema": {
              "type": "string",
              "title": "conversion_type_code",
              "maxLength": 20,
              "minLength": 1
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "(OPTIONAL) Status of the conversion. Won't be changed if not filled.",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/conversions.v1.ConversionStatus"
                }
              ],
              "not": {
                "enum": [
                  "CONVERSION_STATUS_NOT_ALLOWED",
                  "CONVERSION_STATUS_QUALITY_CONTROL"
                ]
              },
              "title": "status"
            }
          },
          {
            "name": "revenue.value",
            "in": "query",
            "description": "The revenue.value query parameter.",
            "schema": {
              "type": "string",
              "title": "value",
              "pattern": "^-?\\d+(\\.\\d+)?$"
            }
          },
          {
            "name": "cost.value",
            "in": "query",
            "description": "The cost.value query parameter.",
            "schema": {
              "type": "string",
              "title": "value",
              "pattern": "^-?\\d+(\\.\\d+)?$"
            }
          },
          {
            "name": "conversionAmount.value",
            "in": "query",
            "description": "The conversionAmount.value query parameter.",
            "schema": {
              "type": "string",
              "title": "value",
              "pattern": "^-?\\d+(\\.\\d+)?$"
            }
          },
          {
            "name": "externalId",
            "in": "query",
            "description": "External ID is used for deduplication of conversions. Only one conversion per Conversion Type can have the same External ID (for Network accounts, per Conversion Type and Revenue Origin). Won't be changed if not filled.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "customerId",
            "in": "query",
            "description": "Customer ID, your specific custom identifier. Won't be changed if not filled.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "customAdvParams.advS1",
            "in": "query",
            "description": "Custom adv S1 parameter assigned to a conversion. Won't be changed if not filled.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "customAdvParams.advS2",
            "in": "query",
            "description": "Custom adv S2 parameter assigned to a conversion. Won't be changed if not filled.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "customAdvParams.advS3",
            "in": "query",
            "description": "Custom adv S3 parameter assigned to a conversion. Won't be changed if not filled.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "customAdvParams.advS4",
            "in": "query",
            "description": "Custom adv S4 parameter assigned to a conversion. Won't be changed if not filled.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "customAdvParams.advS5",
            "in": "query",
            "description": "Custom adv S5 parameter assigned to a conversion. Won't be changed if not filled.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "customAffParams.affS1",
            "in": "query",
            "description": "Custom aff S1 parameter assigned to a conversion source. Won't be changed if not filled.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "customAffParams.affS2",
            "in": "query",
            "description": "Custom aff S2 parameter assigned to a conversion source. Won't be changed if not filled.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "customAffParams.affS3",
            "in": "query",
            "description": "Custom aff S3 parameter assigned to a conversion source. Won't be changed if not filled.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "customAffParams.affS4",
            "in": "query",
            "description": "Custom aff S4 parameter assigned to a conversion source. Won't be changed if not filled.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "customAffParams.affS5",
            "in": "query",
            "description": "Custom aff S5 parameter assigned to a conversion source. Won't be changed if not filled.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/tracking.v1.UpdateConversionResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Tracking Conversion V1"
        ],
        "summary": "Update conversion",
        "description": "Update selected properties of a conversion.",
        "operationId": "ConversionService_UpdateConversion",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/tracking.v1.UpdateConversionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/tracking.v1.UpdateConversionResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/tracking/coupon/v1/redeem": {
      "post": {
        "tags": [
          "Tracking Coupon Redemption V1"
        ],
        "summary": "Redeem coupon",
        "description": "Looks up the affiliate associated with any of the provided coupon codes and returns a coupon redemption identifier (CID) for conversion attribution.",
        "operationId": "CouponRedemptionService_RedeemCoupon",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/tracking.v1.RedeemCouponRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/tracking.v1.RedeemCouponResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/tracking/external-cid/v1": {
      "post": {
        "tags": [
          "Tracking Conversion Source V1"
        ],
        "summary": "Set external CID",
        "description": "Pairs an external click identifier with a click (CID), so conversions can later be attributed by the external CID.",
        "operationId": "ConversionSourceService_SetExternalCid",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/tracking.v1.SetExternalCidRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/tracking.v1.SetExternalCidResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/reports/affiliate-overview-report/v1": {
      "post": {
        "tags": [
          "Reports V1"
        ],
        "summary": "Affiliate overview report",
        "description": "Deprecated: Shows data related to individual affiliates and their performance.",
        "operationId": "ReportsService_AffiliateOverviewReport",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/reports.v1.AffiliateOverviewReportRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reports.v1.AffiliateOverviewReportResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/reports/click-report/v1": {
      "post": {
        "tags": [
          "Reports V1"
        ],
        "summary": "Click report",
        "description": "Provides information about registered clicks.",
        "operationId": "ReportsService_ClickReport",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/reports.v1.ClickReportRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reports.v1.ClickReportResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/reports/conversion-report/v1": {
      "post": {
        "tags": [
          "Reports V1"
        ],
        "summary": "Conversion report",
        "description": "Shows data related to conversions tracked by the system.",
        "operationId": "ReportsService_ConversionReport",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/reports.v1.ConversionReportRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reports.v1.ConversionReportResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/reports/country-overview-report/v1": {
      "post": {
        "tags": [
          "Reports V1"
        ],
        "summary": "Country overview",
        "description": "Deprecated: Displays performance data grouped by specific countries.",
        "operationId": "ReportsService_CountryOverviewReport",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/reports.v1.CountryOverviewReportRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reports.v1.CountryOverviewReportResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/reports/daily-overview-report/v1": {
      "post": {
        "tags": [
          "Reports V1"
        ],
        "summary": "Daily overview report",
        "description": "Features overview of the daily performance, providing data such as clicks, conversions, revenue, payouts etc. per given day.",
        "operationId": "ReportsService_DailyOverviewReport",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/reports.v1.DailyOverviewReportRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reports.v1.DailyOverviewReportResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/reports/general-overview-report/v1": {
      "post": {
        "tags": [
          "Reports V1"
        ],
        "summary": "General overview",
        "description": "Provides a comprehensive performance overview with data aggregated at multiple levels\n (such as daily, country, affiliate, offer, etc.).",
        "operationId": "ReportsService_GeneralOverviewReport",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/reports.v1.GeneralOverviewReportRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reports.v1.GeneralOverviewReportResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/reports/offer-overview-report/v1": {
      "post": {
        "tags": [
          "Reports V1"
        ],
        "summary": "Offer overview",
        "description": "Deprecated: Shows performance overview grouped by individual offers.",
        "operationId": "ReportsService_OfferOverviewReport",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/reports.v1.OfferOverviewReportRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/reports.v1.OfferOverviewReportResponse"
                }
              }
            }
          },
          "default": {
            "description": "An unexpected error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/google.rpc.Status"
                }
              }
            }
          }
        }
      }
    },
    "/api/storage/upload-offer-creative": {
      "post": {
        "description": "Upload a promotional creative whose content is a file and attach it to the offer in a single request.\nThis is the file-based counterpart to the offer creatives service, which manages the content-based\ncreatives and also lists, edits and removes the creatives created here.\nSend the request as `multipart/form-data`, with the binary in the `file` field and the creative's metadata\nin the remaining fields. The file size is measured server-side; the pixel width and height may be supplied\nby the caller for image and video creatives. Set `creativeId` to replace the file of an existing creative\ninstead of creating a new one. Returns the created or replaced creative together with its metadata.",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "creativeId": {
                    "description": "Id (UUID) of an existing creative whose file to replace. Leave unset to create a new creative.",
                    "type": "string"
                  },
                  "file": {
                    "description": "The creative's binary content: the banner image, the video, or the ZIP archive.",
                    "format": "binary",
                    "type": "string"
                  },
                  "height": {
                    "description": "Height of the creative in pixels. Applies to image and video creatives.",
                    "type": "integer"
                  },
                  "name": {
                    "description": "Human-readable name of the creative (1-255 characters).",
                    "type": "string"
                  },
                  "note": {
                    "description": "Internal note for the creative, not shown to affiliates (1-1000 characters).",
                    "type": "string"
                  },
                  "offerId": {
                    "description": "Identifier (UUID) of the offer the creative is added to.",
                    "type": "string"
                  },
                  "type": {
                    "description": "Type of the creative. Must be a file-based type: CREATIVE_TYPE_IMAGE_BANNER, CREATIVE_TYPE_VIDEO or CREATIVE_TYPE_ZIP.",
                    "type": "string"
                  },
                  "visibleInGetLink": {
                    "description": "Whether the creative is exposed in the affiliate \\",
                    "type": "boolean"
                  },
                  "width": {
                    "description": "Width of the creative in pixels. Applies to image and video creatives.",
                    "type": "integer"
                  }
                },
                "required": [
                  "offerId",
                  "type",
                  "file"
                ],
                "type": "object"
              }
            }
          },
          "description": "Identifier (UUID) of the offer the creative is added to."
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/storage.UploadOfferCreativeResponse"
                }
              }
            },
            "description": "A successful response."
          }
        },
        "summary": "Upload offer creative",
        "operationId": "OfferCreativesService_UploadOfferCreative",
        "tags": [
          "Offers Creatives V1"
        ]
      }
    },
    "/api/node/oauth/check": {
      "get": {
        "description": "Checks whether an access token or API key is valid. Revoked authorizations, deleted clients and disabled accounts are rejected.",
        "operationId": "OAuth2_CheckCredential",
        "responses": {
          "204": {
            "description": "The credential is valid."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/errorsv1.ErrorResponse"
                }
              }
            },
            "description": "The credential is missing, malformed, expired or revoked."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/errorsv1.ErrorResponse"
                }
              }
            },
            "description": "Tenant maintenance."
          }
        },
        "security": [
          {
            "X-Api-Key": []
          },
          {
            "OAuth2": [
              "api"
            ]
          }
        ],
        "summary": "Check the presented credential",
        "tags": [
          "O Auth"
        ]
      }
    },
    "/api/node/oauth/register": {
      "post": {
        "description": "RFC 7591 dynamic client registration, so a client can obtain a client_id without anyone entering one by hand. Registration is\nunauthenticated and rate limited per IP. It always produces a public client holding no secret, limited to the authorization_code\nand refresh_token grants, and owned by nobody: the client can do nothing at all until a resource owner authorizes it on the\nconsent screen. A registration nobody consents to is deleted within two hours. A client asking to authenticate with a secret is\nregistered with none instead, as the response says. Other metadata that cannot be honoured is refused rather than silently narrowed;\nanything else the request sends is ignored.",
        "operationId": "OAuth2_RegisterClient",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/oauth_registration.registrationRequest",
                "summary": "request",
                "description": "Client metadata."
              }
            }
          },
          "description": "Client metadata.",
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/oauth_registration.registrationResponse"
                }
              }
            },
            "description": "Client registered."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/oauth_registration.errorResponse"
                }
              }
            },
            "description": "Unreadable body, a redirect URI that cannot be registered, or other metadata that cannot be honoured."
          },
          "429": {
            "description": "Too many registrations from this address."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/errorsv1.ErrorResponse"
                }
              }
            },
            "description": "Tenant maintenance."
          }
        },
        "summary": "Register an OAuth client",
        "tags": [
          "O Auth"
        ],
        "security": []
      }
    },
    "/api/node/oauth/revoke": {
      "post": {
        "description": "RFC 7009-style revocation endpoint accepting either an access token or a refresh token. Whichever is presented, revocation takes\nthe complete user authorization behind it, including rotated refresh tokens and every access token derived from the grant. Access\ntokens issued through client_credentials cannot be revoked individually; they return unsupported_token_type. Delete the client to\ninvalidate its access tokens. Unknown tokens return success. Confidential clients authenticate as at the token endpoint.",
        "operationId": "OAuth2_RevokeToken",
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "properties": {
                  "client_id": {
                    "description": "Client identifier; may be sent via HTTP Basic authentication instead.",
                    "type": "string"
                  },
                  "client_secret": {
                    "description": "Client secret; may be sent via HTTP Basic authentication instead.",
                    "format": "password",
                    "type": "string"
                  },
                  "token": {
                    "description": "Token",
                    "type": "string"
                  },
                  "token_type_hint": {
                    "description": "Optional. The token type is detected either way.",
                    "enum": [
                      "access_token",
                      "refresh_token"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "token"
                ],
                "type": "object"
              }
            }
          },
          "description": "Optional. The token type is detected either way.",
          "required": true
        },
        "responses": {
          "200": {
            "description": "Token revoked or already invalid."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/oauth_token.errorResponse"
                }
              }
            },
            "description": "Malformed request or unsupported_token_type for a client_credentials access token."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/oauth_token.errorResponse"
                }
              }
            },
            "description": "Unknown client or wrong client secret."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/errorsv1.ErrorResponse"
                }
              }
            },
            "description": "Tenant maintenance."
          }
        },
        "summary": "Revoke an OAuth grant",
        "tags": [
          "O Auth"
        ],
        "security": []
      }
    },
    "/api/node/oauth/token": {
      "post": {
        "description": "OAuth2 token endpoint for the client_credentials, authorization_code, and refresh_token grants. Confidential clients authenticate\nwith HTTP Basic or client_id and client_secret form fields, using exactly one method. Authorization codes require the original\nredirect_uri and PKCE code_verifier. Refresh tokens are rotated on every use.",
        "operationId": "OAuth2_CreateToken",
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "properties": {
                  "client_id": {
                    "description": "Client identifier; may be sent via HTTP Basic authentication instead.",
                    "type": "string"
                  },
                  "client_secret": {
                    "description": "Client secret; may be sent via HTTP Basic authentication instead.",
                    "format": "password",
                    "type": "string"
                  },
                  "code": {
                    "description": "Required for authorization_code. The single-use code returned by the authorization endpoint.",
                    "type": "string"
                  },
                  "code_verifier": {
                    "description": "Required for authorization_code. PKCE verifier corresponding to the S256 challenge.",
                    "type": "string"
                  },
                  "grant_type": {
                    "description": "Grant type",
                    "enum": [
                      "client_credentials",
                      "authorization_code",
                      "refresh_token"
                    ],
                    "type": "string"
                  },
                  "redirect_uri": {
                    "description": "Required for authorization_code and must exactly match the authorization request.",
                    "format": "uri",
                    "type": "string"
                  },
                  "refresh_token": {
                    "description": "Required for refresh_token. A successful request rotates this token.",
                    "type": "string"
                  },
                  "scope": {
                    "description": "Optional. The only supported scope is api.",
                    "enum": [
                      "api"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "grant_type"
                ],
                "type": "object"
              }
            }
          },
          "description": "Client identifier; may be sent via HTTP Basic authentication instead.",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/oauth_token.tokenResponse"
                }
              }
            },
            "description": "Access token issued."
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/oauth_token.errorResponse"
                }
              }
            },
            "description": "Malformed request, invalid grant or scope, or unsupported grant type."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/oauth_token.errorResponse"
                }
              }
            },
            "description": "Unknown client or wrong client secret."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/errorsv1.ErrorResponse"
                }
              }
            },
            "description": "Tenant maintenance."
          }
        },
        "summary": "Create or refresh an access token",
        "tags": [
          "O Auth"
        ],
        "security": []
      }
    }
  },
  "components": {
    "securitySchemes": {
      "OAuth2": {
        "type": "oauth2",
        "description": "OAuth2 client credentials and authorization code grants. Authorization code requests require PKCE S256.",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "/api/node/oauth/token",
            "scopes": {
              "api": "Full API access (inherits the account's role permissions)"
            }
          },
          "authorizationCode": {
            "authorizationUrl": "/oauth/authorize",
            "tokenUrl": "/api/node/oauth/token",
            "refreshUrl": "/api/node/oauth/token",
            "scopes": {
              "api": "Access as the consenting user, subject to current role permissions"
            }
          }
        }
      },
      "X-Api-Key": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Api-Key"
      }
    },
    "schemas": {
      "account_notes.v1.CreateAccountNoteRequest": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "title": "account_id",
            "format": "uuid",
            "description": "Affiliate account UUID the note belongs to."
          },
          "note": {
            "type": "string",
            "title": "note",
            "maxLength": 255,
            "minLength": 1,
            "description": "The note text (1-255 characters)."
          }
        },
        "title": "account_notes.v1.CreateAccountNoteRequest",
        "required": [
          "accountId",
          "note"
        ],
        "additionalProperties": false,
        "description": "Request to create a new note for an affiliate account."
      },
      "account_notes.v1.CreateAccountNoteResponse": {
        "type": "object",
        "title": "account_notes.v1.CreateAccountNoteResponse",
        "additionalProperties": false,
        "description": "Empty response when note is created successfully."
      },
      "account_notes.v1.DeleteAccountNoteRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "format": "uuid",
            "description": "Note UUID to delete."
          }
        },
        "title": "account_notes.v1.DeleteAccountNoteRequest",
        "required": [
          "id"
        ],
        "additionalProperties": false,
        "description": "Request to delete an existing note by id."
      },
      "account_notes.v1.DeleteAccountNoteResponse": {
        "type": "object",
        "title": "account_notes.v1.DeleteAccountNoteResponse",
        "additionalProperties": false,
        "description": "Empty response when note is deleted successfully."
      },
      "account_notes.v1.ListAccountNotesForAccountRequest": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "title": "account_id",
            "format": "uuid",
            "description": "Affiliate account UUID whose notes are requested."
          }
        },
        "title": "account_notes.v1.ListAccountNotesForAccountRequest",
        "required": [
          "accountId"
        ],
        "additionalProperties": false,
        "description": "Request to list notes for a given affiliate account."
      },
      "account_notes.v1.ListAccountNotesForAccountResponse": {
        "type": "object",
        "properties": {
          "accountNotes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/account_notes.v1.ListAccountNotesForAccountResponse.AccountNote"
            },
            "title": "account_notes",
            "description": "Notes for the requested account."
          }
        },
        "title": "account_notes.v1.ListAccountNotesForAccountResponse",
        "required": [
          "accountNotes"
        ],
        "additionalProperties": false,
        "description": "Response containing notes for an affiliate account."
      },
      "account_notes.v1.ListAccountNotesForAccountResponse.AccountNote": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Note UUID."
          },
          "author": {
            "allOf": [
              {
                "$ref": "#/components/schemas/account_notes.v1.ListAccountNotesForAccountResponse.Author"
              }
            ],
            "title": "author",
            "description": "Information about who created the note."
          },
          "note": {
            "type": "string",
            "title": "note",
            "description": "Note text."
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "created_at",
            "description": "Timestamp when the note was created (UTC)."
          }
        },
        "title": "account_notes.v1.ListAccountNotesForAccountResponse.AccountNote",
        "required": [
          "id",
          "author",
          "note",
          "createdAt"
        ],
        "additionalProperties": false,
        "description": "A single account note entry."
      },
      "account_notes.v1.ListAccountNotesForAccountResponse.Author": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "title": "account_id",
            "description": "Author's account id (internal user account identifier)."
          },
          "name": {
            "type": "string",
            "title": "name",
            "description": "Author's display name."
          }
        },
        "title": "account_notes.v1.ListAccountNotesForAccountResponse.Author",
        "required": [
          "accountId",
          "name"
        ],
        "additionalProperties": false,
        "description": "Author of a note (the user creating the note)."
      },
      "affiliate_bonuses.v1.AffiliateBonus": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Affiliate bonus UUID."
          },
          "affiliate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/affiliate_bonuses.v1.AffiliateBonus.Affiliate"
              }
            ],
            "title": "affiliate",
            "description": "Affiliate receiving the bonus."
          },
          "value": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "value",
            "description": "Bonus value. It can be negative or zero."
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Currency"
              }
            ],
            "title": "currency",
            "description": "Currency of the bonus."
          },
          "note": {
            "type": "string",
            "title": "note",
            "description": "Internal note, empty when no note was provided."
          },
          "settled": {
            "type": "boolean",
            "title": "settled",
            "description": "Whether the bonus is included in an account settlement."
          },
          "accountSettlementId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "account_settlement_id",
            "description": "(OPTIONAL) Affiliate-specific settlement UUID, when settled."
          },
          "settlementId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "settlement_id",
            "description": "(OPTIONAL) Parent settlement UUID used to construct the settlement link, when settled."
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "created_at",
            "description": "Timestamp when the bonus was created."
          },
          "billableAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "billable_at",
            "description": "Date from which the bonus counts towards the open balance and can be settled."
          },
          "modifiedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "modified_at",
            "description": "Timestamp when the bonus was last changed."
          }
        },
        "title": "affiliate_bonuses.v1.AffiliateBonus",
        "required": [
          "id",
          "affiliate",
          "value",
          "currency",
          "note",
          "settled",
          "createdAt",
          "billableAt",
          "modifiedAt"
        ],
        "additionalProperties": false,
        "description": "A standalone balance adjustment assigned to an affiliate."
      },
      "affiliate_bonuses.v1.AffiliateBonus.Affiliate": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "title": "account_id",
            "description": "Affiliate account UUID."
          },
          "name": {
            "type": "string",
            "title": "name",
            "description": "Affiliate display name."
          },
          "email": {
            "type": "string",
            "title": "email",
            "description": "Affiliate email."
          }
        },
        "title": "affiliate_bonuses.v1.AffiliateBonus.Affiliate",
        "required": [
          "accountId",
          "name",
          "email"
        ],
        "additionalProperties": false,
        "description": "Affiliate receiving the bonus."
      },
      "affiliate_bonuses.v1.AffiliateBonusFilters": {
        "type": "object",
        "properties": {
          "timeRange": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.TimeRange"
              }
            ],
            "title": "time_range",
            "description": "(OPTIONAL) Inclusive creation date range."
          },
          "billableTimeRange": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.TimeRange"
              }
            ],
            "title": "billable_time_range",
            "description": "(OPTIONAL) Inclusive billable date range."
          },
          "accountIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "account_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) Affiliate account UUIDs."
          },
          "settlementIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "settlement_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) Parent settlement UUIDs."
          }
        },
        "title": "affiliate_bonuses.v1.AffiliateBonusFilters",
        "additionalProperties": false,
        "description": "Filters available when listing affiliate bonuses."
      },
      "affiliate_bonuses.v1.CreateAffiliateBonusRequest": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "title": "account_id",
            "format": "uuid",
            "description": "Affiliate account UUID."
          },
          "value": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "value",
            "description": "Bonus value in the currency below. Negative values are allowed, zero is not."
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Currency"
              }
            ],
            "title": "currency",
            "description": "Currency of the bonus. Must be one of the currencies configured for the tenant."
          },
          "note": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "note",
            "maxLength": 1000,
            "description": "(OPTIONAL) Optional internal note."
          },
          "billableAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "billable_at",
            "description": "(OPTIONAL) Date from which the bonus counts towards the open balance and can be settled.\n Defaults to the current time on create; leaves the stored value untouched on update."
          }
        },
        "title": "affiliate_bonuses.v1.CreateAffiliateBonusRequest",
        "required": [
          "accountId",
          "value",
          "currency"
        ],
        "additionalProperties": false,
        "description": "Request to create an affiliate bonus."
      },
      "affiliate_bonuses.v1.CreateAffiliateBonusResponse": {
        "type": "object",
        "properties": {
          "affiliateBonus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/affiliate_bonuses.v1.AffiliateBonus"
              }
            ],
            "title": "affiliate_bonus"
          }
        },
        "title": "affiliate_bonuses.v1.CreateAffiliateBonusResponse",
        "required": [
          "affiliateBonus"
        ],
        "additionalProperties": false,
        "description": "Response containing the created affiliate bonus."
      },
      "affiliate_bonuses.v1.DeleteAffiliateBonusRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "format": "uuid"
          }
        },
        "title": "affiliate_bonuses.v1.DeleteAffiliateBonusRequest",
        "required": [
          "id"
        ],
        "additionalProperties": false,
        "description": "Request to delete an affiliate bonus."
      },
      "affiliate_bonuses.v1.DeleteAffiliateBonusResponse": {
        "type": "object",
        "title": "affiliate_bonuses.v1.DeleteAffiliateBonusResponse",
        "additionalProperties": false,
        "description": "Empty response when the affiliate bonus is deleted successfully."
      },
      "affiliate_bonuses.v1.GetAffiliateBonusRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "format": "uuid"
          }
        },
        "title": "affiliate_bonuses.v1.GetAffiliateBonusRequest",
        "required": [
          "id"
        ],
        "additionalProperties": false,
        "description": "Request to get an affiliate bonus."
      },
      "affiliate_bonuses.v1.GetAffiliateBonusResponse": {
        "type": "object",
        "properties": {
          "affiliateBonus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/affiliate_bonuses.v1.AffiliateBonus"
              }
            ],
            "title": "affiliate_bonus"
          }
        },
        "title": "affiliate_bonuses.v1.GetAffiliateBonusResponse",
        "required": [
          "affiliateBonus"
        ],
        "additionalProperties": false,
        "description": "Response containing the requested affiliate bonus."
      },
      "affiliate_bonuses.v1.ListAffiliateBonusesRequest": {
        "type": "object",
        "properties": {
          "pagination": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.PaginationParams"
              }
            ],
            "title": "pagination"
          },
          "filters": {
            "allOf": [
              {
                "$ref": "#/components/schemas/affiliate_bonuses.v1.AffiliateBonusFilters"
              }
            ],
            "title": "filters",
            "description": "(OPTIONAL) "
          }
        },
        "title": "affiliate_bonuses.v1.ListAffiliateBonusesRequest",
        "required": [
          "pagination"
        ],
        "additionalProperties": false,
        "description": "Request to list affiliate bonuses."
      },
      "affiliate_bonuses.v1.ListAffiliateBonusesResponse": {
        "type": "object",
        "properties": {
          "pagination": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Pagination"
              }
            ],
            "title": "pagination"
          },
          "affiliateBonuses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/affiliate_bonuses.v1.AffiliateBonus"
            },
            "title": "affiliate_bonuses"
          }
        },
        "title": "affiliate_bonuses.v1.ListAffiliateBonusesResponse",
        "required": [
          "pagination",
          "affiliateBonuses"
        ],
        "additionalProperties": false,
        "description": "Response containing affiliate bonuses and pagination metadata."
      },
      "affiliate_bonuses.v1.UpdateAffiliateBonusRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "format": "uuid",
            "description": "Affiliate bonus UUID."
          },
          "value": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "value",
            "description": "Bonus value in the currency below. Negative values are allowed, zero is not."
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Currency"
              }
            ],
            "title": "currency",
            "description": "Currency of the bonus. Must be one of the currencies configured for the tenant."
          },
          "note": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "note",
            "maxLength": 1000,
            "description": "(OPTIONAL) Optional internal note."
          },
          "billableAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "billable_at",
            "description": "(OPTIONAL) Date from which the bonus counts towards the open balance and can be settled.\n Defaults to the current time on create; leaves the stored value untouched on update."
          }
        },
        "title": "affiliate_bonuses.v1.UpdateAffiliateBonusRequest",
        "required": [
          "id",
          "value",
          "currency"
        ],
        "additionalProperties": false,
        "description": "Request to update an affiliate bonus."
      },
      "affiliate_bonuses.v1.UpdateAffiliateBonusResponse": {
        "type": "object",
        "properties": {
          "affiliateBonus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/affiliate_bonuses.v1.AffiliateBonus"
              }
            ],
            "title": "affiliate_bonus"
          }
        },
        "title": "affiliate_bonuses.v1.UpdateAffiliateBonusResponse",
        "required": [
          "affiliateBonus"
        ],
        "additionalProperties": false,
        "description": "Response containing the updated affiliate bonus."
      },
      "affiliates.v1.Affiliate": {
        "type": "object",
        "properties": {
          "registeredAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "registered_at",
            "description": "Timestamp of the date of affiliate's registration."
          },
          "publicId": {
            "type": "string",
            "title": "public_id",
            "description": "Public ID of the affiliate."
          },
          "email": {
            "type": "string",
            "title": "email",
            "description": "Email of the affiliate."
          },
          "name": {
            "type": "string",
            "title": "name",
            "description": "Full name of the affiliate."
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.AccountStatus"
              }
            ],
            "title": "status",
            "description": "Status of the affiliate."
          },
          "tierId": {
            "type": "string",
            "title": "tier_id",
            "description": "Identifier of the current tier to which the affiliate is assigned."
          },
          "tierName": {
            "type": "string",
            "title": "tier_name",
            "description": "Name of the tier to which the affiliate is assigned."
          },
          "registrationCountryCode": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "registration_country_code",
            "description": "Country from which the original affiliate registration came in. Uses ISO 3166-1 alpha-2 (two-letter) format."
          },
          "accountId": {
            "type": "string",
            "title": "account_id",
            "description": "Identifier of the account of the affiliate, useful for getting information about billing details and other information."
          },
          "sourceId": {
            "type": "string",
            "title": "source_id",
            "description": "Traffic source ID."
          },
          "sourceStatus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.SourceStatus"
              }
            ],
            "title": "source_status",
            "description": "Traffic source status."
          },
          "fraudSuspicion": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.FraudSuspicion"
              }
            ],
            "title": "fraud_suspicion",
            "description": "Designates if the affiliate is currently flagged by the fraud suspicion system."
          },
          "ipAddress": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "ip_address",
            "description": "IP address from which the original registration came through."
          },
          "referralAccount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/affiliates.v1.Affiliate.ReferralAccount"
              }
            ],
            "title": "referral_account",
            "description": "Parent affiliate (for MLM)."
          },
          "defaultRedirectDomain": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "default_redirect_domain",
            "description": "Default redirect domain for affiliate."
          },
          "managerAccount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/affiliates.v1.Affiliate.ManagerAccount"
              }
            ],
            "title": "manager_account",
            "description": "Manager account."
          },
          "registrationData": {
            "allOf": [
              {
                "$ref": "#/components/schemas/affiliates.v1.AffiliateRegistrationData"
              }
            ],
            "title": "registration_data",
            "description": "(OPTIONAL) Affiliate registration data."
          },
          "tagIds": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "(OPTIONAL) "
            },
            "title": "tag_ids",
            "description": "(OPTIONAL) Tag IDs assigned to the affiliate."
          },
          "protected": {
            "type": "boolean",
            "title": "protected",
            "description": "Affiliate is protected and cannot be modified."
          },
          "billingDetail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/billing_details.v1.BillingDetail"
              }
            ],
            "title": "billing_detail",
            "description": "(OPTIONAL) Billing detail of the affiliate."
          },
          "paymentMethods": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/payment_methods.v1.PaymentMethod"
            },
            "title": "payment_methods",
            "description": "(OPTIONAL) Payment methods of the affiliate."
          },
          "billingStatus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.AffiliateBillingStatus"
              }
            ],
            "title": "billing_status",
            "description": "Billing status of the affiliate. Affiliates with an excluded billing status are left out of open balances and settlements."
          }
        },
        "title": "affiliates.v1.Affiliate",
        "required": [
          "protected",
          "billingStatus"
        ],
        "additionalProperties": false,
        "description": "Affiliate"
      },
      "affiliates.v1.Affiliate.ManagerAccount": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Unique ID of the manager."
          },
          "name": {
            "type": "string",
            "title": "name",
            "description": "Full name of the manager."
          },
          "assignedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "assigned_at",
            "description": "Timestamp of the date when the affiliate was assigned to the manager."
          }
        },
        "title": "affiliates.v1.Affiliate.ManagerAccount",
        "additionalProperties": false
      },
      "affiliates.v1.Affiliate.ReferralAccount": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Unique ID of the affiliate."
          },
          "name": {
            "type": "string",
            "title": "name",
            "description": "Full name of the affiliate."
          }
        },
        "title": "affiliates.v1.Affiliate.ReferralAccount",
        "additionalProperties": false,
        "description": "Referral account is the affiliate's unique identifier used throughout the system."
      },
      "affiliates.v1.AffiliateRegistrationData": {
        "type": "object",
        "properties": {
          "telephone": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "telephone",
            "maxLength": 20
          },
          "messenger": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Messenger"
              }
            ],
            "title": "messenger",
            "description": "optional"
          },
          "websiteUrl": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "website_url",
            "format": "uri"
          },
          "promotionChannels": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "promotion_channels",
            "maxLength": 255
          },
          "audience": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "audience",
            "maxLength": 255
          },
          "currentTraffic": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "current_traffic",
            "maxLength": 255
          },
          "expectedTraffic": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "expected_traffic",
            "maxLength": 255
          },
          "affiliateType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "affiliate_type",
            "maxLength": 255
          },
          "previousExperience": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "previous_experience",
            "maxLength": 255
          },
          "customQuestionAnswers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/types.v1.CustomQuestionAnswer"
            },
            "title": "custom_question_answers",
            "maxItems": 15
          }
        },
        "title": "affiliates.v1.AffiliateRegistrationData",
        "additionalProperties": false
      },
      "affiliates.v1.AffiliatesFilters": {
        "type": "object",
        "properties": {
          "registeredFrom": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "registered_from",
            "description": "Timestamp of the date of affiliate's registration, start date of filtered results."
          },
          "registeredTo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "registered_to",
            "description": "Timestamp of the date of affiliate's registration, end date of filtered results."
          },
          "publicIds": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "minLength": 1
            },
            "title": "public_ids",
            "uniqueItems": true,
            "description": "Public ID's of affiliates to be filtered."
          },
          "emails": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "email"
            },
            "title": "emails",
            "uniqueItems": true,
            "description": "Emails of the affiliates to be filtered."
          },
          "name": {
            "type": "string",
            "title": "name",
            "maxLength": 255,
            "description": "Name of affiliates to be filtered."
          },
          "statuses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/enums.v1.AccountStatus"
            },
            "title": "statuses",
            "uniqueItems": true,
            "description": "Specific affiliate statuses to be filtered."
          },
          "tierIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "title": "tier_ids",
            "uniqueItems": true,
            "description": "Specific tiers in which affiliates are present."
          },
          "registrationCountryCodes": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[A-Z]{2}$"
            },
            "title": "registration_country_codes",
            "uniqueItems": true,
            "description": "Country codes of affiliates to be filtered. Uses ISO 3166-1 alpha-2 (two-letter) format."
          },
          "sourceStatuses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/enums.v1.SourceStatus"
            },
            "title": "source_statuses",
            "uniqueItems": true,
            "description": "Traffic source status."
          },
          "referralAccountIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "title": "referral_account_ids",
            "uniqueItems": true,
            "description": "Parent affiliate."
          },
          "fraudSuspicion": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.FraudSuspicionFilter"
              }
            ],
            "title": "fraud_suspicion",
            "description": "(OPTIONAL) Filters affiliates who are flagged by the fraud detection system."
          },
          "managerAccountIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "title": "manager_account_ids",
            "uniqueItems": true,
            "description": "Filters affiliates assigned to specific managers."
          },
          "assignedToManager": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.BoolValue"
              }
            ],
            "title": "assigned_to_manager",
            "description": "Filters affiliates assigned to any manager."
          },
          "accountIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "title": "account_ids",
            "uniqueItems": true,
            "description": "Filters affiliates by specific account IDs."
          },
          "tagIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "tag_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) Filters affiliates by specific tag IDs."
          },
          "hasBillingDetail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.BoolValue"
              }
            ],
            "title": "has_billing_detail",
            "description": "(OPTIONAL) Filters affiliates by presence of billing details."
          },
          "hasPaymentMethod": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.BoolValue"
              }
            ],
            "title": "has_payment_method",
            "description": "(OPTIONAL) Filters affiliates by presence of any payment method."
          },
          "paymentMethodTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/payment_methods.v1.PaymentMethodType"
            },
            "title": "payment_method_types",
            "uniqueItems": true,
            "description": "(OPTIONAL) Filters affiliates who have a payment method of any of the specified types."
          },
          "billingStatuses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/enums.v1.AffiliateBillingStatus"
            },
            "title": "billing_statuses",
            "uniqueItems": true,
            "description": "(OPTIONAL) Filters affiliates by billing status."
          }
        },
        "title": "affiliates.v1.AffiliatesFilters",
        "additionalProperties": false,
        "description": "Filters available for affiliates."
      },
      "affiliates.v1.CreateAffiliateRegistrationDataRequest": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "title": "account_id",
            "format": "uuid",
            "description": "Account ID of the affiliate."
          },
          "data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/affiliates.v1.AffiliateRegistrationData"
              }
            ],
            "title": "data",
            "description": "Registration data of the affiliate."
          }
        },
        "title": "affiliates.v1.CreateAffiliateRegistrationDataRequest",
        "required": [
          "accountId",
          "data"
        ],
        "additionalProperties": false,
        "description": "Create affiliate registration data."
      },
      "affiliates.v1.CreateAffiliateRegistrationDataResponse": {
        "type": "object",
        "properties": {
          "data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/affiliates.v1.AffiliateRegistrationData"
              }
            ],
            "title": "data",
            "description": "Registration data of the affiliate."
          }
        },
        "title": "affiliates.v1.CreateAffiliateRegistrationDataResponse",
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "description": "Created registration data of the affiliate."
      },
      "affiliates.v1.DeleteAffiliateRequest": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "title": "account_id",
            "format": "uuid",
            "description": "Account ID of the affiliate."
          }
        },
        "title": "affiliates.v1.DeleteAffiliateRequest",
        "additionalProperties": false,
        "description": "Delete affiliate"
      },
      "affiliates.v1.DeleteAffiliateResponse": {
        "type": "object",
        "title": "affiliates.v1.DeleteAffiliateResponse",
        "additionalProperties": false,
        "description": "Deletion request response."
      },
      "affiliates.v1.GetAffiliateRegistrationDataRequest": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "title": "account_id",
            "format": "uuid",
            "description": "Account ID of the affiliate."
          }
        },
        "title": "affiliates.v1.GetAffiliateRegistrationDataRequest",
        "required": [
          "accountId"
        ],
        "additionalProperties": false,
        "description": "Get data affiliate filled in during registration."
      },
      "affiliates.v1.GetAffiliateRegistrationDataResponse": {
        "type": "object",
        "properties": {
          "data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/affiliates.v1.AffiliateRegistrationData"
              }
            ],
            "title": "data",
            "description": "(OPTIONAL) Registration data of the affiliate."
          }
        },
        "title": "affiliates.v1.GetAffiliateRegistrationDataResponse",
        "additionalProperties": false,
        "description": "Registration data of requested affiliate."
      },
      "affiliates.v1.GetAffiliateRequest": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "title": "account_id",
            "format": "uuid",
            "description": "Account ID of the affiliate."
          }
        },
        "title": "affiliates.v1.GetAffiliateRequest",
        "additionalProperties": false,
        "description": "Get affiliate details"
      },
      "affiliates.v1.GetAffiliateResponse": {
        "type": "object",
        "properties": {
          "affiliate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/affiliates.v1.Affiliate"
              }
            ],
            "title": "affiliate"
          }
        },
        "title": "affiliates.v1.GetAffiliateResponse",
        "additionalProperties": false,
        "description": "Details of the requested affiliate."
      },
      "affiliates.v1.ListAffiliatesRequest": {
        "type": "object",
        "properties": {
          "pagination": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.OptionalPaginationParams"
              }
            ],
            "title": "pagination",
            "description": "(OPTIONAL) Pagination offset of the listed affiliates."
          },
          "filters": {
            "allOf": [
              {
                "$ref": "#/components/schemas/affiliates.v1.AffiliatesFilters"
              }
            ],
            "title": "filters",
            "description": "(OPTIONAL) Additional filters to be applied."
          }
        },
        "title": "affiliates.v1.ListAffiliatesRequest",
        "additionalProperties": false,
        "description": "List affiliates in the system"
      },
      "affiliates.v1.ListAffiliatesResponse": {
        "type": "object",
        "properties": {
          "affiliates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/affiliates.v1.Affiliate"
            },
            "title": "affiliates"
          },
          "pagination": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Pagination"
              }
            ],
            "title": "pagination"
          }
        },
        "title": "affiliates.v1.ListAffiliatesResponse",
        "required": [
          "pagination"
        ],
        "additionalProperties": false,
        "description": "List of affiliates matching the pagination and filters"
      },
      "affiliates.v1.RegisterAffiliateWithUserRequest": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "title": "email",
            "format": "email",
            "description": "Affiliate's email"
          },
          "password": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "password",
            "maxLength": 255,
            "minLength": 6,
            "description": "Password to be set for the affiliate by default."
          },
          "name": {
            "type": "string",
            "title": "name",
            "maxLength": 255,
            "minLength": 1,
            "description": "Full name of the affiliate."
          },
          "publicId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.SourcePublicId"
              }
            ],
            "title": "public_id",
            "description": "(OPTIONAL) Creates a unique public identifier for the affiliate."
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.AccountStatus"
              }
            ],
            "not": {
              "enum": [
                "ACCOUNT_STATUS_UNSPECIFIED"
              ]
            },
            "title": "status",
            "description": "Status of the affiliate. Designates if the system counts incoming traffic from the affiliate see [this article](https://help.trackdesk.com/en/articles/6495339-affiliate-statuses) for more details.\nenum.defined_only = true\n"
          },
          "referralAccountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "referral_account_id",
            "format": "uuid",
            "description": "Account ID of parent affiliate. If filled, then affiliate will have the specified user added as their MLM parent."
          },
          "shouldSendWelcomeEmail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.BoolValue"
              }
            ],
            "title": "should_send_welcome_email",
            "description": "Designates if a welcome mail with login link should be sent to the affiliate on creation."
          },
          "registrationCountryCode": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "registration_country_code",
            "pattern": "^[A-Z]{2}$",
            "description": "(OPTIONAL) Country from which the original affiliate registration came in. Uses ISO 3166-1 alpha-2 (two-letter) format."
          }
        },
        "title": "affiliates.v1.RegisterAffiliateWithUserRequest",
        "additionalProperties": false,
        "description": "Create new affiliate"
      },
      "affiliates.v1.RegisterAffiliateWithUserResponse": {
        "type": "object",
        "title": "affiliates.v1.RegisterAffiliateWithUserResponse",
        "additionalProperties": false,
        "description": "Feedback message about the creation of a new affiliate."
      },
      "affiliates.v1.SetAffiliateBillingStatusRequest": {
        "type": "object",
        "properties": {
          "sourcePublicId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.SourcePublicId"
              }
            ],
            "title": "source_public_id",
            "description": "Traffic source public ID."
          },
          "billingStatus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.AffiliateBillingStatus"
              }
            ],
            "not": {
              "enum": [
                "AFFILIATE_BILLING_STATUS_UNSPECIFIED"
              ]
            },
            "title": "billing_status",
            "description": "New billing status to be set for the affiliate.\nenum.defined_only = true\n"
          }
        },
        "title": "affiliates.v1.SetAffiliateBillingStatusRequest",
        "required": [
          "sourcePublicId",
          "billingStatus"
        ],
        "additionalProperties": false,
        "description": "Set affiliate billing status."
      },
      "affiliates.v1.SetAffiliateBillingStatusResponse": {
        "type": "object",
        "properties": {
          "billingStatus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.AffiliateBillingStatus"
              }
            ],
            "title": "billing_status"
          }
        },
        "title": "affiliates.v1.SetAffiliateBillingStatusResponse",
        "required": [
          "billingStatus"
        ],
        "additionalProperties": false,
        "description": "Feedback message about new billing status assignment."
      },
      "affiliates.v1.SetAffiliateStatusRequest": {
        "type": "object",
        "properties": {
          "sourcePublicId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.SourcePublicId"
              }
            ],
            "title": "source_public_id",
            "description": "Traffic source public ID."
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.AccountStatus"
              }
            ],
            "not": {
              "enum": [
                "ACCOUNT_STATUS_UNSPECIFIED"
              ]
            },
            "title": "status",
            "description": "New status to be set for the affiliate.\nenum.defined_only = true\n"
          },
          "rejection": {
            "allOf": [
              {
                "$ref": "#/components/schemas/affiliates.v1.SetAffiliateStatusRequest.Rejection"
              }
            ],
            "title": "rejection",
            "description": "(OPTIONAL) Rejection details. Optional; only honored when the transition is Pending -> Disabled."
          }
        },
        "title": "affiliates.v1.SetAffiliateStatusRequest",
        "required": [
          "sourcePublicId",
          "status"
        ],
        "additionalProperties": false,
        "description": "Set affiliate status."
      },
      "affiliates.v1.SetAffiliateStatusRequest.Rejection": {
        "type": "object",
        "properties": {
          "reason": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "reason",
            "maxLength": 1000,
            "description": "(OPTIONAL) Optional rejection reason. Saved with the decision and injected into the rejection email\n template as {rejectionReason} when non-empty."
          },
          "sendEmail": {
            "type": "boolean",
            "title": "send_email",
            "description": "Whether to send the rejection email to the affiliate."
          }
        },
        "title": "affiliates.v1.SetAffiliateStatusRequest.Rejection",
        "required": [
          "sendEmail"
        ],
        "additionalProperties": false,
        "description": "Rejection-specific details. Only honored when rejecting a pending affiliate registration\n (transitioning from Pending to Disabled); ignored for any other status transition."
      },
      "affiliates.v1.SetAffiliateStatusResponse": {
        "type": "object",
        "properties": {
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.AccountStatus"
              }
            ],
            "title": "status"
          }
        },
        "title": "affiliates.v1.SetAffiliateStatusResponse",
        "required": [
          "status"
        ],
        "additionalProperties": false,
        "description": "Feedback message about new status assignment."
      },
      "affiliates.v1.SetAffiliateTierRequest": {
        "type": "object",
        "properties": {
          "sourcePublicId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.SourcePublicId"
              }
            ],
            "title": "source_public_id",
            "description": "Public ID of affiliate to be updated."
          },
          "tierId": {
            "type": "string",
            "title": "tier_id",
            "format": "uuid",
            "description": "Identifier of the new tier to be applied to the affiliate."
          }
        },
        "title": "affiliates.v1.SetAffiliateTierRequest",
        "required": [
          "sourcePublicId",
          "tierId"
        ],
        "additionalProperties": false,
        "description": "Set affiliate tier."
      },
      "affiliates.v1.SetAffiliateTierResponse": {
        "type": "object",
        "properties": {
          "tierId": {
            "type": "string",
            "title": "tier_id"
          }
        },
        "title": "affiliates.v1.SetAffiliateTierResponse",
        "additionalProperties": false,
        "description": "Feedback message about assigning of a different affiliate tier."
      },
      "billing.v1.AccountSettlement": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Unique ID of the account settlement."
          },
          "accountId": {
            "type": "string",
            "title": "account_id",
            "description": "Unique ID of an account associated with the settlement."
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "amount",
            "description": "Settlement amount."
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Currency"
              }
            ],
            "title": "currency",
            "description": "Currency of the settlement."
          },
          "accountName": {
            "type": "string",
            "title": "account_name",
            "description": "Name of the account."
          },
          "billingDetail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/billing.v1.AccountSettlement.BillingDetail"
              }
            ],
            "title": "billing_detail",
            "description": "Billing details for the settlement."
          },
          "paymentMethod": {
            "allOf": [
              {
                "$ref": "#/components/schemas/billing.v1.AccountSettlement.PaymentMethod"
              }
            ],
            "title": "payment_method",
            "description": "Payment method used for the settlement."
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "created_at",
            "description": "Creation timestamp."
          },
          "originalCurrencyAmounts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/billing.v1.AccountSettlement.Amount"
            },
            "title": "original_currency_amounts",
            "description": "List of amounts in original currencies."
          },
          "tenantBillingDetail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/settings.v1.BillingDetail"
              }
            ],
            "title": "tenant_billing_detail",
            "description": "Billing details for the tenant."
          },
          "settledUntil": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "settled_until",
            "description": "Time until which all yet unsettled items were included into the settlement."
          },
          "paymentData": {
            "allOf": [
              {
                "$ref": "#/components/schemas/billing.v1.AccountSettlement.PaymentData"
              }
            ],
            "title": "payment_data",
            "description": "(OPTIONAL) Payment data associated with the settlement."
          },
          "confirmo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/billing.v1.AccountSettlement.Confirmo"
              }
            ],
            "title": "confirmo",
            "description": "(OPTIONAL) Confirmo export information."
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.AccountSettlementStatus"
              }
            ],
            "title": "status",
            "description": "Status of the account settlement."
          },
          "recoverable": {
            "type": "boolean",
            "title": "recoverable",
            "description": "Indicates when the settlement is in a Tipalti error state an admin can recover (cancel to open\n balance or settle manually/externally)."
          },
          "adjustable": {
            "type": "boolean",
            "title": "adjustable",
            "description": "Indicates whether the settled amount can still be adjusted. Only true while the settlement is\n new (not yet paid, and for Tipalti not yet sent via \"Pay via Tipalti\")."
          }
        },
        "title": "billing.v1.AccountSettlement",
        "required": [
          "id",
          "accountId",
          "amount",
          "currency",
          "accountName",
          "billingDetail",
          "paymentMethod",
          "createdAt",
          "originalCurrencyAmounts",
          "tenantBillingDetail",
          "settledUntil",
          "status",
          "recoverable",
          "adjustable"
        ],
        "additionalProperties": false
      },
      "billing.v1.AccountSettlement.Amount": {
        "type": "object",
        "properties": {
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "amount",
            "description": "Amount value."
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Currency"
              }
            ],
            "title": "currency",
            "description": "Currency of the amount."
          },
          "exchangeRate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "exchange_rate",
            "description": "(OPTIONAL) Exchange rate applied."
          },
          "exchangedAmount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "exchanged_amount",
            "description": "Amount with applied exchange rate."
          },
          "earningType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.EarningType"
              }
            ],
            "title": "earning_type",
            "description": "Earning type associated with the amount."
          }
        },
        "title": "billing.v1.AccountSettlement.Amount",
        "required": [
          "amount",
          "currency",
          "exchangedAmount",
          "earningType"
        ],
        "additionalProperties": false,
        "description": "Amount contains details about the settlement amount."
      },
      "billing.v1.AccountSettlement.BillingDetail": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "title": "name",
            "description": "Name associated with the billing detail."
          },
          "addressLine1": {
            "type": "string",
            "title": "address_line1",
            "description": "First line of the address."
          },
          "city": {
            "type": "string",
            "title": "city",
            "description": "City of the address."
          },
          "countryCode": {
            "type": "string",
            "title": "country_code",
            "description": "Country code of the address."
          },
          "postalCode": {
            "type": "string",
            "title": "postal_code",
            "description": "Postal code of the address."
          },
          "addressLine2": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "address_line2",
            "description": "Second line of the address (optional)."
          },
          "invoicingEmail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "invoicing_email",
            "description": "Invoicing email (optional)."
          },
          "vat": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "vat",
            "description": "VAT number (optional)."
          }
        },
        "title": "billing.v1.AccountSettlement.BillingDetail",
        "additionalProperties": false,
        "description": "BillingDetail contains billing-related information."
      },
      "billing.v1.AccountSettlement.Confirmo": {
        "type": "object",
        "properties": {
          "exportable": {
            "type": "boolean",
            "title": "exportable"
          },
          "unexportableReason": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.ConfirmoUnexportableReason"
              }
            ],
            "title": "unexportable_reason"
          }
        },
        "title": "billing.v1.AccountSettlement.Confirmo",
        "required": [
          "exportable",
          "unexportableReason"
        ],
        "additionalProperties": false
      },
      "billing.v1.AccountSettlement.PaymentData": {
        "type": "object",
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "stripeConnect": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/billing.v1.AccountSettlement.PaymentData.StripeConnectPaymentData"
                  }
                ],
                "title": "stripe_connect",
                "description": "Stripe Connect payment data."
              }
            },
            "title": "stripe_connect"
          },
          {
            "type": "object",
            "properties": {
              "tipalti": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/billing.v1.AccountSettlement.PaymentData.TipaltiPaymentData"
                  }
                ],
                "title": "tipalti",
                "description": "Tipalti payment data."
              }
            },
            "title": "tipalti"
          }
        ],
        "unevaluatedProperties": false,
        "not": {
          "allOf": [
            {
              "anyOf": [
                {
                  "required": [
                    "stripeConnect"
                  ]
                },
                {
                  "required": [
                    "tipalti"
                  ]
                }
              ]
            },
            {
              "not": {
                "oneOf": [
                  {
                    "required": [
                      "stripeConnect"
                    ]
                  },
                  {
                    "required": [
                      "tipalti"
                    ]
                  }
                ]
              }
            }
          ]
        },
        "title": "billing.v1.AccountSettlement.PaymentData",
        "description": "PaymentData contains payment-related information."
      },
      "billing.v1.AccountSettlement.PaymentData.StripeConnectPaymentData": {
        "type": "object",
        "properties": {
          "transferId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "transfer_id",
            "description": "(OPTIONAL) Stripe transfer id (tr_...) of the successful transfer, the reconciliation handle in the\n Stripe dashboard. Unset until a transfer succeeds."
          },
          "lastError": {
            "allOf": [
              {
                "$ref": "#/components/schemas/billing.v1.AccountSettlement.PaymentData.StripeConnectPaymentData.Error"
              }
            ],
            "title": "last_error",
            "description": "(OPTIONAL) Set when the most recent transfer attempt failed. Cleared once a transfer succeeds."
          }
        },
        "title": "billing.v1.AccountSettlement.PaymentData.StripeConnectPaymentData",
        "additionalProperties": false,
        "description": "Stripe Connect payment data holds details specific to Stripe Connect transfers."
      },
      "billing.v1.AccountSettlement.PaymentData.StripeConnectPaymentData.Error": {
        "type": "object",
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "code": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/stripe_connect.v1.TransferErrorCode"
                  }
                ],
                "title": "code",
                "description": "(OPTIONAL) A failure detected by Trackdesk. The client maps this code to a localized message."
              }
            },
            "title": "code"
          },
          {
            "type": "object",
            "properties": {
              "stripeMessage": {
                "type": "string",
                "title": "stripe_message",
                "description": "(OPTIONAL) A message forwarded from Stripe. The client displays it as-is."
              }
            },
            "title": "stripe_message"
          }
        ],
        "unevaluatedProperties": false,
        "not": {
          "allOf": [
            {
              "anyOf": [
                {
                  "required": [
                    "code"
                  ]
                },
                {
                  "required": [
                    "stripeMessage"
                  ]
                }
              ]
            },
            {
              "not": {
                "oneOf": [
                  {
                    "required": [
                      "code"
                    ]
                  },
                  {
                    "required": [
                      "stripeMessage"
                    ]
                  }
                ]
              }
            }
          ]
        },
        "title": "billing.v1.AccountSettlement.PaymentData.StripeConnectPaymentData.Error"
      },
      "billing.v1.AccountSettlement.PaymentData.TipaltiPaymentData": {
        "type": "object",
        "properties": {
          "paymentInstructions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/billing.v1.AccountSettlement.PaymentData.TipaltiPaymentData.PaymentInstruction"
            },
            "title": "payment_instructions",
            "description": "List of payment instructions.\n\n Each instruction represents a payment attempt made by Tipalti system.\n For more information about the containing data you can check the Tipalti documentation: https://documentation.tipalti.com/reference/get_api-v1-payment-batches-id-instructions"
          }
        },
        "title": "billing.v1.AccountSettlement.PaymentData.TipaltiPaymentData",
        "additionalProperties": false,
        "description": "TipaltiPaymentData holds details specific to Tipalti payments."
      },
      "billing.v1.AccountSettlement.PaymentData.TipaltiPaymentData.PaymentInstruction": {
        "type": "object",
        "properties": {
          "paymentBatchId": {
            "type": "string",
            "title": "payment_batch_id",
            "description": "Unique identifier for the payment batch."
          },
          "payeeIsPayable": {
            "type": "boolean",
            "title": "payee_is_payable",
            "description": "Indicates if the payee is payable."
          },
          "instructionStatus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "instruction_status",
            "description": "Status of the instruction."
          },
          "paymentStatus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "payment_status",
            "description": "Status of the payment."
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/billing.v1.AccountSettlement.PaymentData.TipaltiPaymentData.PaymentInstruction.Error"
            },
            "title": "errors",
            "description": "List of errors in the payment instruction.\n\n Provides details on errors within a payment instruction as received from Tipalti.\n For more information you can check Tipalti documentation: https://documentation.tipalti.com/reference/http-status-codes#api-error-object"
          }
        },
        "title": "billing.v1.AccountSettlement.PaymentData.TipaltiPaymentData.PaymentInstruction",
        "additionalProperties": false
      },
      "billing.v1.AccountSettlement.PaymentData.TipaltiPaymentData.PaymentInstruction.Error": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "title": "code",
            "description": "Error code."
          },
          "message": {
            "type": "string",
            "title": "message",
            "description": "Error message."
          },
          "docUrl": {
            "type": "string",
            "title": "doc_url",
            "description": "Documentation URL."
          },
          "type": {
            "type": "string",
            "title": "type",
            "description": "Type of error."
          }
        },
        "title": "billing.v1.AccountSettlement.PaymentData.TipaltiPaymentData.PaymentInstruction.Error",
        "additionalProperties": false
      },
      "billing.v1.AccountSettlement.PaymentMethod": {
        "type": "object",
        "properties": {
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/payment_methods.v1.PaymentMethodType"
              }
            ],
            "title": "type",
            "description": "Type of the payment method."
          },
          "currencyCode": {
            "type": "string",
            "title": "currency_code",
            "description": "Currency code for the payment method."
          },
          "data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/payment_methods.v1.PaymentMethodData"
              }
            ],
            "title": "data",
            "description": "Data associated with the payment method."
          }
        },
        "title": "billing.v1.AccountSettlement.PaymentMethod",
        "additionalProperties": false,
        "description": "PaymentMethod contains payment method details."
      },
      "billing.v1.CurrencyBalance": {
        "type": "object",
        "properties": {
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Currency"
              }
            ],
            "title": "currency"
          },
          "openBalance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "open_balance"
          },
          "onHoldBalance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "on_hold_balance"
          }
        },
        "title": "billing.v1.CurrencyBalance",
        "required": [
          "currency",
          "openBalance",
          "onHoldBalance"
        ],
        "additionalProperties": false
      },
      "billing.v1.DeleteAccountSettlementRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "format": "uuid",
            "description": "ID of individual affiliate settlements to be deleted."
          }
        },
        "title": "billing.v1.DeleteAccountSettlementRequest",
        "additionalProperties": false
      },
      "billing.v1.DeleteAccountSettlementResponse": {
        "type": "object",
        "title": "billing.v1.DeleteAccountSettlementResponse",
        "additionalProperties": false
      },
      "billing.v1.DeleteSettlementRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "format": "uuid",
            "description": "ID of settlements to be deleted."
          }
        },
        "title": "billing.v1.DeleteSettlementRequest",
        "additionalProperties": false
      },
      "billing.v1.DeleteSettlementResponse": {
        "type": "object",
        "title": "billing.v1.DeleteSettlementResponse",
        "additionalProperties": false
      },
      "billing.v1.GetBalancesForAccountRequest": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "title": "account_id",
            "format": "uuid",
            "description": "ID of the affiliate to whom balances are credited."
          },
          "until": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "until",
            "description": "(OPTIONAL) Day until which the open balance is computed. When omitted, the current time is used."
          }
        },
        "title": "billing.v1.GetBalancesForAccountRequest",
        "required": [
          "accountId"
        ],
        "additionalProperties": false
      },
      "billing.v1.GetBalancesForAccountResponse": {
        "type": "object",
        "properties": {
          "conversionOpenBalance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "conversion_open_balance",
            "description": "Total balance generated from approved conversions."
          },
          "conversionOnHoldBalance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "conversion_on_hold_balance",
            "description": "Total balance generated from on-hold conversions."
          },
          "commissionOpenBalance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "commission_open_balance",
            "description": "Total balance generated from approved MLM commissions."
          },
          "commissionOnHoldBalance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "commission_on_hold_balance",
            "description": "Total balance generated from on-hold MLM commissions."
          },
          "clientRevshareOpenBalance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "client_revshare_open_balance",
            "description": "Total balance generated from client revenue shares."
          },
          "openBalance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "open_balance",
            "description": "Sum of balance generated from approved conversions and MLM commissions."
          },
          "onHoldBalance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "on_hold_balance",
            "description": "Sum of balance generated from on-hold conversions and MLM commissions."
          },
          "settledBalance": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/billing.v1.GetBalancesForAccountResponse.SettledBalanceAmount"
            },
            "title": "settled_balance",
            "description": "Settled balance amounts grouped by currency."
          },
          "defaultPaymentMethod": {
            "allOf": [
              {
                "$ref": "#/components/schemas/billing.v1.PaymentMethodBalance"
              }
            ],
            "title": "default_payment_method",
            "description": "(OPTIONAL) Default payment method balance with open balance converted to the payment method's currency."
          },
          "usdBalances": {
            "allOf": [
              {
                "$ref": "#/components/schemas/billing.v1.GetBalancesForAccountResponse.UsdBalances"
              }
            ],
            "title": "usd_balances",
            "description": "(OPTIONAL) Open and settled balances converted to USD. Absent when no exchange rate is available to convert to USD."
          },
          "affiliateBonusOpenBalance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "affiliate_bonus_open_balance",
            "description": "Total balance generated from unsettled affiliate bonuses."
          }
        },
        "title": "billing.v1.GetBalancesForAccountResponse",
        "required": [
          "conversionOpenBalance",
          "conversionOnHoldBalance",
          "commissionOpenBalance",
          "commissionOnHoldBalance",
          "clientRevshareOpenBalance",
          "openBalance",
          "onHoldBalance",
          "settledBalance",
          "affiliateBonusOpenBalance"
        ],
        "additionalProperties": false
      },
      "billing.v1.GetBalancesForAccountResponse.SettledBalanceAmount": {
        "type": "object",
        "properties": {
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "amount",
            "description": "Settled amount in the given currency."
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Currency"
              }
            ],
            "title": "currency",
            "description": "Currency of the settled amount."
          }
        },
        "title": "billing.v1.GetBalancesForAccountResponse.SettledBalanceAmount",
        "required": [
          "amount",
          "currency"
        ],
        "additionalProperties": false,
        "description": "Settled balance amounts grouped by currency."
      },
      "billing.v1.GetBalancesForAccountResponse.UsdBalances": {
        "type": "object",
        "properties": {
          "openBalance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "open_balance",
            "description": "Open balance converted to USD."
          },
          "openBalanceApproximate": {
            "type": "boolean",
            "title": "open_balance_approximate",
            "description": "True when the primary currency differs from USD, so the open balance is an approximate conversion."
          },
          "settledBalance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "settled_balance",
            "description": "Settled balance summed in USD."
          }
        },
        "title": "billing.v1.GetBalancesForAccountResponse.UsdBalances",
        "required": [
          "openBalance",
          "openBalanceApproximate",
          "settledBalance"
        ],
        "additionalProperties": false,
        "description": "Open and settled balances converted to USD, for consumers that always display balances in USD."
      },
      "billing.v1.GetSettlementRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "format": "uuid",
            "description": "Unique ID of the settlement"
          }
        },
        "title": "billing.v1.GetSettlementRequest",
        "additionalProperties": false,
        "description": "Get settlement details"
      },
      "billing.v1.GetSettlementResponse": {
        "type": "object",
        "properties": {
          "settlement": {
            "allOf": [
              {
                "$ref": "#/components/schemas/billing.v1.Settlement"
              }
            ],
            "title": "settlement",
            "description": "Details of the settlement"
          },
          "accountSettlements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/billing.v1.AccountSettlement"
            },
            "title": "account_settlements",
            "description": "Details of account settlements of affiliates"
          }
        },
        "title": "billing.v1.GetSettlementResponse",
        "additionalProperties": false,
        "description": "Details of the requested settlement"
      },
      "billing.v1.ListAccountSettlementsRequest": {
        "type": "object",
        "properties": {
          "pagination": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.PaginationParams"
              }
            ],
            "title": "pagination",
            "description": "Pagination."
          },
          "timeRange": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.TimeRange"
              }
            ],
            "title": "time_range",
            "description": "Timerange for which to list settlements."
          },
          "accountId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "account_id",
            "format": "uuid",
            "description": "ID of affiliate for which to show affiliate settlements."
          }
        },
        "title": "billing.v1.ListAccountSettlementsRequest",
        "required": [
          "pagination",
          "timeRange"
        ],
        "additionalProperties": false
      },
      "billing.v1.ListAccountSettlementsResponse": {
        "type": "object",
        "properties": {
          "accountSettlements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/billing.v1.AccountSettlement"
            },
            "title": "account_settlements",
            "description": "Individual affiliate settlements."
          },
          "pagination": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Pagination"
              }
            ],
            "title": "pagination",
            "description": "Pagination."
          }
        },
        "title": "billing.v1.ListAccountSettlementsResponse",
        "required": [
          "pagination"
        ],
        "additionalProperties": false
      },
      "billing.v1.ListOpenBalancesRequest": {
        "type": "object",
        "properties": {
          "pagination": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.PaginationParams"
              }
            ],
            "title": "pagination"
          },
          "filter": {
            "allOf": [
              {
                "$ref": "#/components/schemas/billing.v1.OpenBalanceFilter"
              }
            ],
            "title": "filter"
          }
        },
        "title": "billing.v1.ListOpenBalancesRequest",
        "required": [
          "pagination",
          "filter"
        ],
        "additionalProperties": false
      },
      "billing.v1.ListOpenBalancesResponse": {
        "type": "object",
        "properties": {
          "balances": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/billing.v1.ListOpenBalancesResponse.Balance"
            },
            "title": "balances"
          },
          "pagination": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Pagination"
              }
            ],
            "title": "pagination"
          }
        },
        "title": "billing.v1.ListOpenBalancesResponse",
        "required": [
          "balances",
          "pagination"
        ],
        "additionalProperties": false
      },
      "billing.v1.ListOpenBalancesResponse.Balance": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "title": "account_id",
            "description": "ID of the affiliate to whom the open balance is credited."
          },
          "name": {
            "type": "string",
            "title": "name",
            "description": "Name of the affiliate to whom the open balance is credited."
          },
          "conversionOpenBalance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "conversion_open_balance",
            "description": "Total amount of payout sourced from approved conversions."
          },
          "conversionOnHoldBalance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "conversion_on_hold_balance",
            "description": "Total amount of payout sourced from on-hold conversions."
          },
          "commissionOpenBalance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "commission_open_balance",
            "description": "Total amount of payout sourced from approved MLM commissions."
          },
          "commissionOnHoldBalance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "commission_on_hold_balance",
            "description": "Total amount of payout sourced from on-hold MLM commissions."
          },
          "clientRevshareOpenBalance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "client_revshare_open_balance",
            "description": "Total amount of revenue share sourced from clients."
          },
          "openBalance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "open_balance",
            "description": "Total amount of payout sourced from approved conversions and MLM commissions."
          },
          "onHoldBalance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "on_hold_balance",
            "description": "Total amount of payout sourced from on-hold conversions and MLM commissions."
          },
          "defaultPaymentMethod": {
            "allOf": [
              {
                "$ref": "#/components/schemas/billing.v1.PaymentMethodBalance"
              }
            ],
            "title": "default_payment_method",
            "description": "Payment method the affiliate has selected as default."
          },
          "hasBillingDetails": {
            "type": "boolean",
            "title": "has_billing_details",
            "description": "Denotes if affiliate has filled their billing details."
          },
          "openBalanceConversionCount": {
            "type": "integer",
            "title": "open_balance_conversion_count",
            "description": "Total count of approved conversions."
          },
          "openBalanceConversionSourceCount": {
            "type": "integer",
            "title": "open_balance_conversion_source_count",
            "description": "Total count of unique conversion sources of approved conversions."
          },
          "balancesByCurrency": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/billing.v1.CurrencyBalance"
            },
            "title": "balances_by_currency"
          },
          "affiliateBonusOpenBalance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "affiliate_bonus_open_balance",
            "description": "Total amount of payout sourced from unsettled affiliate bonuses."
          }
        },
        "title": "billing.v1.ListOpenBalancesResponse.Balance",
        "required": [
          "accountId",
          "name",
          "conversionOpenBalance",
          "conversionOnHoldBalance",
          "commissionOpenBalance",
          "commissionOnHoldBalance",
          "clientRevshareOpenBalance",
          "openBalance",
          "onHoldBalance",
          "defaultPaymentMethod",
          "hasBillingDetails",
          "openBalanceConversionCount",
          "openBalanceConversionSourceCount",
          "balancesByCurrency",
          "affiliateBonusOpenBalance"
        ],
        "additionalProperties": false
      },
      "billing.v1.ListSettlementsRequest": {
        "type": "object",
        "properties": {
          "pagination": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.PaginationParams"
              }
            ],
            "title": "pagination",
            "description": "Pagination."
          },
          "timeRange": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.TimeRange"
              }
            ],
            "title": "time_range",
            "description": "Timerange for which to list settlements."
          }
        },
        "title": "billing.v1.ListSettlementsRequest",
        "required": [
          "pagination",
          "timeRange"
        ],
        "additionalProperties": false
      },
      "billing.v1.ListSettlementsResponse": {
        "type": "object",
        "properties": {
          "settlements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/billing.v1.Settlement"
            },
            "title": "settlements",
            "description": "List all existing settlements."
          },
          "pagination": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Pagination"
              }
            ],
            "title": "pagination",
            "description": "Pagination."
          }
        },
        "title": "billing.v1.ListSettlementsResponse",
        "required": [
          "pagination"
        ],
        "additionalProperties": false
      },
      "billing.v1.OpenBalanceFilter": {
        "type": "object",
        "properties": {
          "until": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "until",
            "description": "Day until which the settlement is settled."
          },
          "minAmount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "min_amount",
            "description": "Minimum amount of open balance required for generation of affiliate settlement."
          },
          "defaultPaymentMethodTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/payment_methods.v1.PaymentMethodType"
            },
            "title": "default_payment_method_types",
            "uniqueItems": true,
            "description": "Payment methods used for the settlement."
          },
          "minConversionCount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.UInt32Value"
              }
            ],
            "title": "min_conversion_count",
            "minimum": 1,
            "description": "(OPTIONAL) Minimum conversion count of open balance required for generation of affiliate settlement."
          },
          "minConversionSourceCount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.UInt32Value"
              }
            ],
            "title": "min_conversion_source_count",
            "minimum": 1,
            "description": "(OPTIONAL) Minimum conversion source count of open balance required for generation of affiliate settlement"
          },
          "tierIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "tier_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) Affiliate tiers of of settled affiliates."
          },
          "conversionTypeIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "conversion_type_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) "
          },
          "offerIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "offer_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) "
          },
          "revenueOriginIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "revenue_origin_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) "
          },
          "affiliateTagIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "affiliate_tag_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) Filter affiliates whose accounts have at least one of these tag IDs assigned (OR semantics)."
          },
          "offerTagIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "offer_tag_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) Filter rows by offers having at least one of these tag IDs assigned (OR semantics)."
          },
          "revenueOriginTagIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "revenue_origin_tag_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) Filter rows by advertisers (revenue origins) having at least one of these tag IDs assigned (OR semantics)."
          },
          "includeBonuses": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.BoolValue"
              }
            ],
            "title": "include_bonuses",
            "description": "(OPTIONAL) Whether unsettled affiliate bonuses count towards the open balance and get settled. Bonuses are included when omitted."
          }
        },
        "title": "billing.v1.OpenBalanceFilter",
        "required": [
          "until"
        ],
        "additionalProperties": false
      },
      "billing.v1.PaymentMethodBalance": {
        "type": "object",
        "properties": {
          "paymentMethodType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/payment_methods.v1.PaymentMethodType"
              }
            ],
            "title": "payment_method_type",
            "description": "Payment method type."
          },
          "paymentMethodCurrency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Currency"
              }
            ],
            "title": "payment_method_currency",
            "description": "Payment method currency."
          },
          "openBalance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "open_balance",
            "description": "Open balance."
          }
        },
        "title": "billing.v1.PaymentMethodBalance",
        "required": [
          "paymentMethodType",
          "paymentMethodCurrency",
          "openBalance"
        ],
        "additionalProperties": false
      },
      "billing.v1.SettleBalancesRequest": {
        "type": "object",
        "properties": {
          "filter": {
            "allOf": [
              {
                "$ref": "#/components/schemas/billing.v1.OpenBalanceFilter"
              }
            ],
            "title": "filter",
            "description": "Filter the open balance that should be used to create settlement."
          },
          "accountIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "title": "account_ids",
            "description": "Affiliate IDs for which to create settlement."
          },
          "note": {
            "type": "string",
            "title": "note",
            "maxLength": 100,
            "description": "Optional note for created settlement."
          }
        },
        "title": "billing.v1.SettleBalancesRequest",
        "required": [
          "filter"
        ],
        "additionalProperties": false
      },
      "billing.v1.SettleBalancesResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "ID of the settlement as a whole."
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "amount",
            "description": "Total amount payable for the entire settlement."
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Currency"
              }
            ],
            "title": "currency",
            "description": "Currency used in the settlement."
          },
          "until": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "until",
            "description": "Settled until day."
          },
          "note": {
            "type": "string",
            "title": "note",
            "description": "Optional note for the settlements."
          },
          "accountSettlements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/billing.v1.SettleBalancesResponse.AccountSettlement"
            },
            "title": "account_settlements",
            "description": "Individual affiliate settlements generated within the entire settlement."
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/billing.v1.SettleBalancesResponse.AccountSettlementError"
            },
            "title": "errors",
            "description": "Error messages for individual affiliate settlements."
          }
        },
        "title": "billing.v1.SettleBalancesResponse",
        "additionalProperties": false
      },
      "billing.v1.SettleBalancesResponse.AccountSettlement": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "ID of the settlement created for specific affiliate."
          },
          "accountId": {
            "type": "string",
            "title": "account_id",
            "description": "ID of the affiliate for whom the settlement was created."
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "amount",
            "description": "Total payout created in the settlement."
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Currency"
              }
            ],
            "title": "currency",
            "description": "Currency used for the settlement."
          }
        },
        "title": "billing.v1.SettleBalancesResponse.AccountSettlement",
        "additionalProperties": false
      },
      "billing.v1.SettleBalancesResponse.AccountSettlementError": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "title": "account_id",
            "description": "ID of the affiliate."
          },
          "error": {
            "type": "string",
            "title": "error",
            "description": "Error message generated by the system."
          }
        },
        "title": "billing.v1.SettleBalancesResponse.AccountSettlementError",
        "additionalProperties": false
      },
      "billing.v1.Settlement": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Unique identifier for the settlement."
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "amount",
            "description": "Settlement amount."
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Currency"
              }
            ],
            "title": "currency",
            "description": "Currency of the settlement."
          },
          "until": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "until",
            "description": "Expiration time of the settlement."
          },
          "note": {
            "type": "string",
            "title": "note",
            "description": "Additional notes."
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "created_at",
            "description": "Creation timestamp."
          },
          "tenantBillingDetail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/settings.v1.BillingDetail"
              }
            ],
            "title": "tenant_billing_detail",
            "description": "Billing details for the tenant."
          },
          "paymentData": {
            "allOf": [
              {
                "$ref": "#/components/schemas/billing.v1.Settlement.PaymentData"
              }
            ],
            "title": "payment_data",
            "description": "Payment data associated with the settlement."
          },
          "newAccountSettlementsCount": {
            "type": "integer",
            "title": "new_account_settlements_count",
            "description": "Count of account settlements with status New."
          },
          "inProgressAccountSettlementsCount": {
            "type": "integer",
            "title": "in_progress_account_settlements_count",
            "description": "Count of account settlements with status In Progress."
          },
          "paidAccountSettlementsCount": {
            "type": "integer",
            "title": "paid_account_settlements_count",
            "description": "Count of account settlements with status Paid."
          },
          "errorAccountSettlementsCount": {
            "type": "integer",
            "title": "error_account_settlements_count",
            "description": "Count of account settlements with status Error."
          },
          "accountSettlementAmounts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/billing.v1.Settlement.AccountSettlementAmount"
            },
            "title": "account_settlement_amounts",
            "description": "Amounts of account corresponding settlement."
          },
          "settledManuallyAccountSettlementsCount": {
            "type": "integer",
            "title": "settled_manually_account_settlements_count",
            "description": "Count of account settlements with status Settled manually."
          }
        },
        "title": "billing.v1.Settlement",
        "required": [
          "newAccountSettlementsCount",
          "inProgressAccountSettlementsCount",
          "paidAccountSettlementsCount",
          "errorAccountSettlementsCount",
          "accountSettlementAmounts",
          "settledManuallyAccountSettlementsCount"
        ],
        "additionalProperties": false
      },
      "billing.v1.Settlement.AccountSettlementAmount": {
        "type": "object",
        "properties": {
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "amount",
            "description": "Account settlement amount."
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Currency"
              }
            ],
            "title": "currency",
            "description": "Currency of the account settlement."
          }
        },
        "title": "billing.v1.Settlement.AccountSettlementAmount",
        "required": [
          "amount",
          "currency"
        ],
        "additionalProperties": false
      },
      "billing.v1.Settlement.PaymentData": {
        "type": "object",
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "stripeConnect": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/billing.v1.Settlement.PaymentData.StripeConnectPaymentData"
                  }
                ],
                "title": "stripe_connect",
                "description": "Stripe Connect payment data holds details specific to Stripe Connect payments."
              }
            },
            "title": "stripe_connect"
          },
          {
            "type": "object",
            "properties": {
              "tipalti": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/billing.v1.Settlement.PaymentData.TipaltiPaymentData"
                  }
                ],
                "title": "tipalti",
                "description": "Tipalti payment data holds details specific to Tipalti payments."
              }
            },
            "title": "tipalti"
          }
        ],
        "unevaluatedProperties": false,
        "not": {
          "allOf": [
            {
              "anyOf": [
                {
                  "required": [
                    "stripeConnect"
                  ]
                },
                {
                  "required": [
                    "tipalti"
                  ]
                }
              ]
            },
            {
              "not": {
                "oneOf": [
                  {
                    "required": [
                      "stripeConnect"
                    ]
                  },
                  {
                    "required": [
                      "tipalti"
                    ]
                  }
                ]
              }
            }
          ]
        },
        "title": "billing.v1.Settlement.PaymentData",
        "description": "Payment data associated with the settlement."
      },
      "billing.v1.Settlement.PaymentData.StripeConnectPaymentData": {
        "type": "object",
        "properties": {
          "transferIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "title": "transfer_ids",
            "description": "Stripe transfer ids (tr_...) of the transfers that already succeeded for this settlement."
          }
        },
        "title": "billing.v1.Settlement.PaymentData.StripeConnectPaymentData",
        "required": [
          "transferIds"
        ],
        "additionalProperties": false,
        "description": "Stripe Connect payment data holds details specific to Stripe Connect payments."
      },
      "billing.v1.Settlement.PaymentData.TipaltiPaymentData": {
        "type": "object",
        "properties": {
          "paymentBatches": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/billing.v1.Settlement.PaymentData.TipaltiPaymentData.PaymentBatch"
            },
            "title": "payment_batches",
            "description": "List of payment batches.\n\n PaymentBatch represents a batch of payments sent to Tipalti system.\n For more information about the containing data you can check the Tipalti documentation: https://documentation.tipalti.com/reference/get_api-v1-payment-batches-id"
          }
        },
        "title": "billing.v1.Settlement.PaymentData.TipaltiPaymentData",
        "additionalProperties": false,
        "description": "Tipalti payment data holds details specific to Tipalti payments."
      },
      "billing.v1.Settlement.PaymentData.TipaltiPaymentData.PaymentBatch": {
        "type": "object",
        "properties": {
          "paymentBatchId": {
            "type": "string",
            "title": "payment_batch_id",
            "description": "Unique identifier for the payment batch."
          },
          "name": {
            "type": "string",
            "title": "name",
            "description": "Name of the payment batch."
          },
          "status": {
            "type": "string",
            "title": "status",
            "description": "Status of the payment batch."
          },
          "isValidForSubmission": {
            "type": "boolean",
            "title": "is_valid_for_submission",
            "description": "Indicates if the batch is valid for submission."
          },
          "submissionTime": {
            "type": "string",
            "title": "submission_time",
            "description": "Time of submission."
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/billing.v1.Settlement.PaymentData.TipaltiPaymentData.PaymentBatch.Error"
            },
            "title": "errors",
            "description": "List of errors in the payment batch.\n\n Error provides details on errors within a payment batch as received from Tipalti.\n For more information you can check Tipalti documentation: https://documentation.tipalti.com/reference/http-status-codes#api-error-object"
          },
          "inspectionPossibleAfter": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "inspection_possible_after",
            "description": "Time after which inspection is possible."
          }
        },
        "title": "billing.v1.Settlement.PaymentData.TipaltiPaymentData.PaymentBatch",
        "additionalProperties": false
      },
      "billing.v1.Settlement.PaymentData.TipaltiPaymentData.PaymentBatch.Error": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "title": "code",
            "description": "Error code."
          },
          "message": {
            "type": "string",
            "title": "message",
            "description": "Error message."
          },
          "docUrl": {
            "type": "string",
            "title": "doc_url",
            "description": "Documentation URL."
          },
          "parameter": {
            "type": "string",
            "title": "parameter",
            "description": "Parameter causing the error."
          }
        },
        "title": "billing.v1.Settlement.PaymentData.TipaltiPaymentData.PaymentBatch.Error",
        "additionalProperties": false
      },
      "billing.v1.UpdateAccountSettlementStatusRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "format": "uuid",
            "description": "ID of the affiliate settlement"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.AccountSettlementStatus"
              }
            ],
            "not": {
              "enum": [
                "ACCOUNT_SETTLEMENT_STATUS_UNSPECIFIED"
              ]
            },
            "title": "status",
            "description": "New status of the affiliate settlement\nenum.defined_only = true\n"
          }
        },
        "title": "billing.v1.UpdateAccountSettlementStatusRequest",
        "required": [
          "id",
          "status"
        ],
        "additionalProperties": false
      },
      "billing.v1.UpdateAccountSettlementStatusResponse": {
        "type": "object",
        "title": "billing.v1.UpdateAccountSettlementStatusResponse",
        "additionalProperties": false
      },
      "billing_details.v1.BillingDetail": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Unique identifier of the billing detail"
          },
          "accountId": {
            "type": "string",
            "title": "account_id",
            "description": "Account for which the billing details are set. Commonly used for identifying details of affiliates."
          },
          "name": {
            "type": "string",
            "title": "name",
            "description": "Full name present on the billing details"
          },
          "addressLine1": {
            "type": "string",
            "title": "address_line1",
            "description": "First line of the address"
          },
          "city": {
            "type": "string",
            "title": "city",
            "description": "City of the address"
          },
          "countryCode": {
            "type": "string",
            "title": "country_code",
            "description": "Country code for the address. Uses ISO-3166, two letter formatting."
          },
          "subdivisionCode": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "subdivision_code",
            "description": "Subdivision code for the address. Uses ISO 3166-2, two letter formatting."
          },
          "postalCode": {
            "type": "string",
            "title": "postal_code",
            "description": "Postal code of the address"
          },
          "addressLine2": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "address_line2",
            "description": "Second line of the address"
          },
          "invoicingEmail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "invoicing_email",
            "description": "Email used for invoicing"
          },
          "vat": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "vat",
            "description": "VAT information"
          }
        },
        "title": "billing_details.v1.BillingDetail",
        "additionalProperties": false,
        "description": "Billing detail"
      },
      "billing_details.v1.SetBillingDetailRequest": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "title": "account_id",
            "format": "uuid",
            "description": "Identifier of the account"
          },
          "name": {
            "type": "string",
            "title": "name",
            "maxLength": 255,
            "minLength": 1,
            "description": "Full name on the billing details"
          },
          "addressLine1": {
            "type": "string",
            "title": "address_line1",
            "maxLength": 255,
            "minLength": 1,
            "description": "First line of the address"
          },
          "city": {
            "type": "string",
            "title": "city",
            "maxLength": 255,
            "minLength": 1,
            "description": "City of the address"
          },
          "countryCode": {
            "type": "string",
            "title": "country_code",
            "pattern": "^[A-Z]{2}$",
            "description": "Country code for the address. Uses ISO-3166, two letter formatting."
          },
          "subdivisionCode": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "subdivision_code",
            "pattern": "^[A-Z]{2}$",
            "description": "Subdivision code for the address. Uses ISO-3166-2, two letter formatting."
          },
          "postalCode": {
            "type": "string",
            "title": "postal_code",
            "maxLength": 50,
            "minLength": 1,
            "description": "Postal code of the address"
          },
          "addressLine2": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "address_line2",
            "maxLength": 255,
            "minLength": 1,
            "description": "Second line of the address"
          },
          "invoicingEmail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "invoicing_email",
            "format": "email",
            "description": "Email used for invoicing"
          },
          "vat": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "vat",
            "maxLength": 50,
            "minLength": 1,
            "description": "VAT information"
          }
        },
        "title": "billing_details.v1.SetBillingDetailRequest",
        "additionalProperties": false,
        "description": "Set billing details"
      },
      "billing_details.v1.SetBillingDetailResponse": {
        "type": "object",
        "properties": {
          "billingDetail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/billing_details.v1.BillingDetail"
              }
            ],
            "title": "billing_detail"
          }
        },
        "title": "billing_details.v1.SetBillingDetailResponse",
        "additionalProperties": false,
        "description": "Feedback message for update of billing details."
      },
      "clicks.v1.AdClickId": {
        "type": "object",
        "properties": {
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.AdClickIdType"
              }
            ],
            "not": {
              "enum": [
                "AD_CLICK_ID_TYPE_UNSPECIFIED"
              ]
            },
            "title": "type",
            "description": "Click ID parameter name (e.g. gclid, fbclid, ttclid)."
          },
          "value": {
            "type": "string",
            "title": "value",
            "maxLength": 255,
            "minLength": 1,
            "description": "Value of the click ID query parameter."
          }
        },
        "title": "clicks.v1.AdClickId",
        "required": [
          "type",
          "value"
        ],
        "additionalProperties": false,
        "description": "Identifies a click originating from a paid advertising platform (e.g. Google Ads, Meta Ads, TikTok Ads)."
      },
      "clicks.v1.Click": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Internal identifier of a click."
          },
          "cid": {
            "type": "string",
            "title": "cid",
            "description": "Unique identifier of a click. This parameter is used when creating new conversions."
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "created_at",
            "description": "Timestamp of click's creation date."
          },
          "requestUrl": {
            "type": "string",
            "title": "request_url",
            "description": "URL of the origin of the incoming click."
          },
          "userAgent": {
            "type": "string",
            "title": "user_agent",
            "description": "Browser, OS and device."
          },
          "ipAddress": {
            "type": "string",
            "title": "ip_address",
            "description": "IP address from which the click was registered."
          },
          "referer": {
            "type": "string",
            "title": "referer",
            "description": "URL of the referring page that directed the user to the tracking link."
          },
          "countryCode": {
            "type": "string",
            "title": "country_code",
            "description": "Code of the country from where the click originated. Uses ISO 3166-1 alpha-2 (two-letter) format."
          },
          "subdivisionCode": {
            "type": "string",
            "title": "subdivision_code",
            "description": "Subdivision of the country of origin. Uses ISO-3166-2 format."
          },
          "city": {
            "type": "string",
            "title": "city",
            "description": "City from where the click originated."
          },
          "cityLatLong": {
            "type": "string",
            "title": "city_lat_long",
            "description": "GPS coordinates of the click's origin."
          },
          "affS1": {
            "type": "string",
            "title": "aff_s1",
            "description": "Custom aff S1 parameter."
          },
          "affS2": {
            "type": "string",
            "title": "aff_s2",
            "description": "Custom aff S2 parameter."
          },
          "affS3": {
            "type": "string",
            "title": "aff_s3",
            "description": "Custom aff S3 parameter."
          },
          "affS4": {
            "type": "string",
            "title": "aff_s4",
            "description": "Custom aff S4 parameter."
          },
          "affS5": {
            "type": "string",
            "title": "aff_s5",
            "description": "Custom aff S5 parameter."
          },
          "sourcePublicId": {
            "type": "string",
            "title": "source_public_id",
            "description": "Affiliate public ID."
          },
          "adClickId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/clicks.v1.AdClickId"
              }
            ],
            "title": "ad_click_id",
            "description": "(OPTIONAL) Ad click identifier from a paid advertising platform."
          }
        },
        "title": "clicks.v1.Click",
        "additionalProperties": false,
        "description": "Click"
      },
      "clicks.v1.CreateClickRequest": {
        "type": "object",
        "properties": {
          "linkId": {
            "type": "string",
            "title": "link_id",
            "maxLength": 50,
            "minLength": 1,
            "description": "ID of the link to which the click is assigned."
          },
          "sourceId": {
            "type": "string",
            "title": "source_id",
            "maxLength": 50,
            "minLength": 1,
            "description": "Traffic source ID."
          },
          "ipAddress": {
            "type": "string",
            "title": "ip_address",
            "format": "ip",
            "description": "IP address from where the click originated."
          },
          "userAgent": {
            "type": "string",
            "title": "user_agent",
            "minLength": 1,
            "description": "Browser, OS and device."
          },
          "countryCode": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "country_code",
            "pattern": "^[A-Z]{2}$",
            "description": "(OPTIONAL) Code of the country from where the click originated. Uses ISO 3166-1 alpha-2 (two-letter) format.\n If not provided, the whole geolocation data will be determined from the IP address.\n In that case, subdivision_code, city, and city_lat_long must not be provided."
          },
          "subdivisionCode": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "subdivision_code",
            "maxLength": 3,
            "description": "(OPTIONAL) Subdivision of the country of origin. Uses ISO-3166-2 format. Must not be provided if country_code is not set."
          },
          "city": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "city",
            "maxLength": 255,
            "description": "(OPTIONAL) City from where the click originated. Must not be provided if country_code is not set."
          },
          "cityLatLong": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.type.LatLng"
              }
            ],
            "title": "city_lat_long",
            "description": "(OPTIONAL) GPS coordinates of the click's origin. Must not be provided if country_code is not set."
          },
          "requestUrl": {
            "type": "string",
            "title": "request_url",
            "format": "uri-ref",
            "description": "URL of the origin of the incoming click."
          },
          "referer": {
            "type": "string",
            "title": "referer",
            "format": "uri-ref",
            "description": "URL of the referring page that directed the user to the tracking link."
          },
          "affS1": {
            "type": "string",
            "title": "aff_s1",
            "maxLength": 255,
            "description": "Custom aff S1 parameter."
          },
          "affS2": {
            "type": "string",
            "title": "aff_s2",
            "maxLength": 255,
            "description": "Custom aff S2 parameter."
          },
          "affS3": {
            "type": "string",
            "title": "aff_s3",
            "maxLength": 255,
            "description": "Custom aff S3 parameter."
          },
          "affS4": {
            "type": "string",
            "title": "aff_s4",
            "maxLength": 255,
            "description": "Custom aff S4 parameter."
          },
          "affS5": {
            "type": "string",
            "title": "aff_s5",
            "maxLength": 255,
            "description": "Custom aff S5 parameter."
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "created_at",
            "description": "Timestamp when the click was registered.\ntimestamp.lt_now = true\n"
          },
          "adClickId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/clicks.v1.AdClickId"
              }
            ],
            "title": "ad_click_id",
            "description": "(OPTIONAL) Ad click identifier from a paid advertising platform."
          }
        },
        "title": "clicks.v1.CreateClickRequest",
        "required": [
          "linkId",
          "sourceId",
          "ipAddress",
          "userAgent"
        ],
        "additionalProperties": false,
        "description": "Create a new click\ngeo_fields_require_country_code // subdivision_code, city, and city_lat_long require country_code to be provided\n"
      },
      "clicks.v1.CreateClickResponse": {
        "type": "object",
        "properties": {
          "click": {
            "allOf": [
              {
                "$ref": "#/components/schemas/clicks.v1.Click"
              }
            ],
            "title": "click"
          }
        },
        "title": "clicks.v1.CreateClickResponse",
        "additionalProperties": false,
        "description": "Feedback message for click creation status."
      },
      "client_metrics.v1.ClientMetric": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Internal identifier of the metric."
          },
          "name": {
            "type": "string",
            "title": "name",
            "description": "Display name of the metric."
          },
          "code": {
            "type": "string",
            "title": "code",
            "description": "Unique code used to identify the metric in tracking requests."
          },
          "monetary": {
            "type": "boolean",
            "title": "monetary",
            "description": "Whether the metric represents a monetary value."
          },
          "visible": {
            "type": "boolean",
            "title": "visible",
            "description": "Whether the metric is visible in the UI."
          }
        },
        "title": "client_metrics.v1.ClientMetric",
        "required": [
          "id",
          "name",
          "code",
          "monetary",
          "visible"
        ],
        "additionalProperties": false,
        "description": "A client metric definition."
      },
      "client_metrics.v1.ListClientMetricMovementsRequest": {
        "type": "object",
        "properties": {
          "pagination": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.PaginationParams"
              }
            ],
            "title": "pagination"
          },
          "filters": {
            "allOf": [
              {
                "$ref": "#/components/schemas/client_metrics.v1.ListClientMetricMovementsRequest.Filters"
              }
            ],
            "title": "filters"
          }
        },
        "title": "client_metrics.v1.ListClientMetricMovementsRequest",
        "required": [
          "pagination",
          "filters"
        ],
        "additionalProperties": false,
        "description": "List client metric movements matching the given filters."
      },
      "client_metrics.v1.ListClientMetricMovementsRequest.Filters": {
        "type": "object",
        "properties": {
          "timeRange": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.TimeRange"
              }
            ],
            "title": "time_range",
            "description": "Time range in which the movements were created."
          },
          "clientIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "title": "client_ids",
            "uniqueItems": true,
            "description": "Filter by internal client IDs."
          },
          "clientExternalIds": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "minLength": 1
            },
            "title": "client_external_ids",
            "uniqueItems": true,
            "description": "Filter by client external IDs as known to the receiver."
          },
          "revenueOriginIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "title": "revenue_origin_ids",
            "uniqueItems": true,
            "description": "Filter by revenue origin IDs."
          },
          "requestIds": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 100,
              "minLength": 1
            },
            "title": "request_ids",
            "uniqueItems": true,
            "description": "Filter by idempotency keys supplied in the original tracking request."
          }
        },
        "title": "client_metrics.v1.ListClientMetricMovementsRequest.Filters",
        "required": [
          "timeRange"
        ],
        "additionalProperties": false,
        "description": "Filters for narrowing the result set."
      },
      "client_metrics.v1.ListClientMetricMovementsResponse": {
        "type": "object",
        "properties": {
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/client_metrics.v1.ListClientMetricMovementsResponse.Row"
            },
            "title": "rows"
          },
          "pagination": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Pagination"
              }
            ],
            "title": "pagination"
          }
        },
        "title": "client_metrics.v1.ListClientMetricMovementsResponse",
        "required": [
          "pagination"
        ],
        "additionalProperties": false,
        "description": "List of client metric movements per pagination."
      },
      "client_metrics.v1.ListClientMetricMovementsResponse.Row": {
        "type": "object",
        "properties": {
          "client": {
            "allOf": [
              {
                "$ref": "#/components/schemas/client_metrics.v1.ListClientMetricMovementsResponse.Row.Client"
              }
            ],
            "title": "client"
          },
          "integerMetrics": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/client_metrics.v1.ListClientMetricMovementsResponse.Row.IntegerMetric"
            },
            "title": "integer_metrics"
          },
          "decimalMetrics": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/client_metrics.v1.ListClientMetricMovementsResponse.Row.DecimalMetric"
            },
            "title": "decimal_metrics"
          },
          "requestData": {
            "type": "string",
            "title": "request_data",
            "description": "Raw JSON payload of the original tracking request."
          },
          "requestId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "request_id",
            "description": "(OPTIONAL) Idempotency key supplied by the receiver."
          },
          "totalRevshare": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "total_revshare",
            "description": "Total revshare calculated from monetary metrics in this movement."
          },
          "accountSettlementId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "account_settlement_id",
            "description": "(OPTIONAL) Settlement this movement was included in, if any."
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "created_at",
            "description": "Timestamp when the movement was recorded."
          }
        },
        "title": "client_metrics.v1.ListClientMetricMovementsResponse.Row",
        "required": [
          "client",
          "integerMetrics",
          "decimalMetrics",
          "requestData",
          "totalRevshare",
          "createdAt"
        ],
        "additionalProperties": false,
        "description": "A single movement row."
      },
      "client_metrics.v1.ListClientMetricMovementsResponse.Row.Client": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Internal client identifier."
          },
          "externalId": {
            "type": "string",
            "title": "external_id",
            "description": "External client identifier as known to the receiver."
          },
          "revenueOriginId": {
            "type": "string",
            "title": "revenue_origin_id",
            "description": "Revenue origin the client belongs to."
          }
        },
        "title": "client_metrics.v1.ListClientMetricMovementsResponse.Row.Client",
        "required": [
          "id",
          "externalId",
          "revenueOriginId"
        ],
        "additionalProperties": false,
        "description": "Client that reported this movement."
      },
      "client_metrics.v1.ListClientMetricMovementsResponse.Row.DecimalMetric": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "title": "code",
            "description": "Metric code."
          },
          "value": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "value",
            "description": "(OPTIONAL) Reported value, absent if not included in the original request."
          }
        },
        "title": "client_metrics.v1.ListClientMetricMovementsResponse.Row.DecimalMetric",
        "required": [
          "code"
        ],
        "additionalProperties": false,
        "description": "Decimal metric value reported in this movement."
      },
      "client_metrics.v1.ListClientMetricMovementsResponse.Row.IntegerMetric": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "title": "code",
            "description": "Metric code."
          },
          "value": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Int64Value"
              }
            ],
            "title": "value",
            "description": "(OPTIONAL) Reported value, absent if not included in the original request."
          }
        },
        "title": "client_metrics.v1.ListClientMetricMovementsResponse.Row.IntegerMetric",
        "required": [
          "code"
        ],
        "additionalProperties": false,
        "description": "Integer metric value reported in this movement."
      },
      "client_metrics.v1.ListClientMetricsRequest": {
        "type": "object",
        "title": "client_metrics.v1.ListClientMetricsRequest",
        "additionalProperties": false,
        "description": "List client metrics registered in the revenue origin."
      },
      "client_metrics.v1.ListClientMetricsResponse": {
        "type": "object",
        "properties": {
          "integerMetrics": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/client_metrics.v1.ClientMetric"
            },
            "title": "integer_metrics"
          },
          "decimalMetrics": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/client_metrics.v1.ClientMetric"
            },
            "title": "decimal_metrics"
          }
        },
        "title": "client_metrics.v1.ListClientMetricsResponse",
        "required": [
          "integerMetrics",
          "decimalMetrics"
        ],
        "additionalProperties": false,
        "description": "List of client metrics grouped by value type."
      },
      "client_metrics.v1.UpdateClientMetricNameRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "format": "uuid",
            "description": "Internal identifier of the metric."
          },
          "name": {
            "type": "string",
            "title": "name",
            "maxLength": 100,
            "minLength": 1,
            "description": "New display name."
          }
        },
        "title": "client_metrics.v1.UpdateClientMetricNameRequest",
        "required": [
          "id",
          "name"
        ],
        "additionalProperties": false,
        "description": "Update the name of a client metric."
      },
      "client_metrics.v1.UpdateClientMetricNameResponse": {
        "type": "object",
        "title": "client_metrics.v1.UpdateClientMetricNameResponse",
        "additionalProperties": false,
        "description": "Feedback message for client metric name update."
      },
      "client_metrics.v1.UpdateClientMetricVisibilityRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "format": "uuid",
            "description": "Internal identifier of the metric."
          },
          "visible": {
            "type": "boolean",
            "title": "visible",
            "description": "New visibility state."
          }
        },
        "title": "client_metrics.v1.UpdateClientMetricVisibilityRequest",
        "required": [
          "id",
          "visible"
        ],
        "additionalProperties": false,
        "description": "Update the visibility of a client metric."
      },
      "client_metrics.v1.UpdateClientMetricVisibilityResponse": {
        "type": "object",
        "title": "client_metrics.v1.UpdateClientMetricVisibilityResponse",
        "additionalProperties": false,
        "description": "Feedback message for client metric visibility update."
      },
      "clients.v1.ExternalIdentifier": {
        "type": "object",
        "properties": {
          "externalId": {
            "type": "string",
            "title": "external_id",
            "maxLength": 255,
            "minLength": 1,
            "description": "External ID of the client as known to the receiver."
          },
          "revenueOriginId": {
            "type": "string",
            "title": "revenue_origin_id",
            "format": "uuid",
            "description": "Revenue origin the client belongs to."
          }
        },
        "title": "clients.v1.ExternalIdentifier",
        "required": [
          "externalId",
          "revenueOriginId"
        ],
        "additionalProperties": false,
        "description": "Client lookup by external ID and revenue origin."
      },
      "clients.v1.Identifier": {
        "type": "object",
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "cid": {
                "type": "string",
                "title": "cid",
                "format": "uuid",
                "description": "(OPTIONAL) CID – the click ID associated with the client."
              }
            },
            "title": "cid"
          },
          {
            "type": "object",
            "properties": {
              "external": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/clients.v1.ExternalIdentifier"
                  }
                ],
                "title": "external",
                "description": "(OPTIONAL) External ID and revenue origin of the client."
              }
            },
            "title": "external"
          }
        ],
        "unevaluatedProperties": false,
        "not": {
          "allOf": [
            {
              "anyOf": [
                {
                  "required": [
                    "cid"
                  ]
                },
                {
                  "required": [
                    "external"
                  ]
                }
              ]
            },
            {
              "not": {
                "oneOf": [
                  {
                    "required": [
                      "cid"
                    ]
                  },
                  {
                    "required": [
                      "external"
                    ]
                  }
                ]
              }
            }
          ]
        },
        "title": "clients.v1.Identifier",
        "description": "Client lookup key — identify a client by CID or by external ID and revenue origin."
      },
      "clients.v1.UpdateClientRequest": {
        "type": "object",
        "properties": {
          "identifier": {
            "allOf": [
              {
                "$ref": "#/components/schemas/clients.v1.Identifier"
              }
            ],
            "title": "identifier",
            "description": "Identifies the client to update."
          },
          "externalId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "external_id",
            "maxLength": 255,
            "minLength": 1,
            "description": "(OPTIONAL) New external ID. Absent means no change."
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.ClientStatus"
              }
            ],
            "title": "status",
            "description": "(OPTIONAL) New status. UNSPECIFIED means no change."
          },
          "selfExcluded": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.BoolValue"
              }
            ],
            "title": "self_excluded",
            "description": "(OPTIONAL) New self-exclusion flag. Absent means no change."
          }
        },
        "title": "clients.v1.UpdateClientRequest",
        "required": [
          "identifier"
        ],
        "additionalProperties": false,
        "description": "Update client."
      },
      "clients.v1.UpdateClientResponse": {
        "type": "object",
        "title": "clients.v1.UpdateClientResponse",
        "additionalProperties": false,
        "description": "Feedback for updating a client."
      },
      "conversion_types.v1.ConversionType": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Unique identifier of the conversion type."
          },
          "code": {
            "type": "string",
            "title": "code",
            "description": "Code of the conversion type."
          },
          "name": {
            "type": "string",
            "title": "name",
            "description": "Name of the conversion type (in human readable format)"
          },
          "visible": {
            "type": "boolean",
            "title": "visible",
            "description": "Whether the conversion type is offered in the UI."
          }
        },
        "title": "conversion_types.v1.ConversionType",
        "additionalProperties": false,
        "description": "Conversion type"
      },
      "conversion_types.v1.ListConversionTypesAvailableForCidRequest": {
        "type": "object",
        "properties": {
          "cid": {
            "type": "string",
            "title": "cid",
            "format": "uuid"
          }
        },
        "title": "conversion_types.v1.ListConversionTypesAvailableForCidRequest",
        "additionalProperties": false,
        "description": "Get a list of conversion types available for requesting click ID."
      },
      "conversion_types.v1.ListConversionTypesAvailableForCidResponse": {
        "type": "object",
        "properties": {
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/conversion_types.v1.ListConversionTypesAvailableForCidResponse.Row"
            },
            "title": "rows"
          }
        },
        "title": "conversion_types.v1.ListConversionTypesAvailableForCidResponse",
        "additionalProperties": false,
        "description": "List of conversion types available for the requesting click ID."
      },
      "conversion_types.v1.ListConversionTypesAvailableForCidResponse.Row": {
        "type": "object",
        "properties": {
          "conversionType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/conversion_types.v1.ConversionType"
              }
            ],
            "title": "conversion_type",
            "description": "Conversion type."
          },
          "conversionValueType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.ConversionValueType"
              }
            ],
            "title": "conversion_value_type",
            "description": "Value assigned for the conversion type."
          }
        },
        "title": "conversion_types.v1.ListConversionTypesAvailableForCidResponse.Row",
        "additionalProperties": false
      },
      "conversions.v1.ConversionStatus": {
        "type": "string",
        "title": "conversions.v1.ConversionStatus",
        "enum": [
          "CONVERSION_STATUS_UNSPECIFIED",
          "CONVERSION_STATUS_APPROVED",
          "CONVERSION_STATUS_FRAUD",
          "CONVERSION_STATUS_NOT_ALLOWED",
          "CONVERSION_STATUS_BLOCKED",
          "CONVERSION_STATUS_ON_HOLD",
          "CONVERSION_STATUS_PENDING",
          "CONVERSION_STATUS_REFUNDED",
          "CONVERSION_STATUS_REJECTED",
          "CONVERSION_STATUS_TEST",
          "CONVERSION_STATUS_QUALITY_CONTROL"
        ],
        "description": "Check all validations on any index update."
      },
      "conversions.v1.SetConversionStatusRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "format": "uuid",
            "description": "Conversion's unique identifier."
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/conversions.v1.ConversionStatus"
              }
            ],
            "not": {
              "enum": [
                "CONVERSION_STATUS_UNSPECIFIED"
              ]
            },
            "title": "status",
            "description": "New status for the conversion."
          }
        },
        "title": "conversions.v1.SetConversionStatusRequest",
        "additionalProperties": false,
        "description": "Change conversion status"
      },
      "conversions.v1.SetConversionStatusResponse": {
        "type": "object",
        "title": "conversions.v1.SetConversionStatusResponse",
        "additionalProperties": false,
        "description": "Feedback message for conversion status change."
      },
      "conversions.v1.UpdateConversionStatusByExternalIdRequest": {
        "type": "object",
        "properties": {
          "revenueOriginId": {
            "type": "string",
            "title": "revenue_origin_id",
            "format": "uuid",
            "description": "Revenue origin associated with the conversion. You can find this information in your unique trackdesk identifiers in the Settings."
          },
          "externalId": {
            "type": "string",
            "title": "external_id",
            "maxLength": 255,
            "minLength": 1,
            "description": "External ID associated with the conversion."
          },
          "conversionTypeCode": {
            "type": "string",
            "title": "conversion_type_code",
            "maxLength": 20,
            "minLength": 1,
            "description": "Code of the conversion type."
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/conversions.v1.ConversionStatus"
              }
            ],
            "not": {
              "enum": [
                "CONVERSION_STATUS_UNSPECIFIED",
                "CONVERSION_STATUS_NOT_ALLOWED",
                "CONVERSION_STATUS_QUALITY_CONTROL"
              ]
            },
            "title": "status",
            "description": "New conversion status to be applied.\nenum.defined_only = true\n"
          }
        },
        "title": "conversions.v1.UpdateConversionStatusByExternalIdRequest",
        "additionalProperties": false,
        "description": "Change conversion status by External ID"
      },
      "conversions.v1.UpdateConversionStatusByExternalIdResponse": {
        "type": "object",
        "title": "conversions.v1.UpdateConversionStatusByExternalIdResponse",
        "additionalProperties": false,
        "description": "Feedback for update of conversion status."
      },
      "coupons.v1.Coupon": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Unique ID of the coupon."
          },
          "revenueOrigin": {
            "allOf": [
              {
                "$ref": "#/components/schemas/coupons.v1.Coupon.RevenueOrigin"
              }
            ],
            "title": "revenue_origin",
            "description": "Advertiser associated with the coupon."
          },
          "source": {
            "allOf": [
              {
                "$ref": "#/components/schemas/coupons.v1.Coupon.Source"
              }
            ],
            "title": "source",
            "description": "Traffic source able to trigger coupon redemption (essentially an affiliate)."
          },
          "offer": {
            "allOf": [
              {
                "$ref": "#/components/schemas/coupons.v1.Coupon.Offer"
              }
            ],
            "title": "offer",
            "description": "Offer in which the coupon can be redeemed."
          },
          "code": {
            "type": "string",
            "title": "code",
            "description": "The code of the coupon."
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/coupons.v1.CouponStatus"
              }
            ],
            "title": "status",
            "description": "Status of the coupon."
          },
          "revenueOriginId": {
            "type": "string",
            "title": "revenue_origin_id",
            "description": "Deprecated: Unique ID of advertiser associated with the coupon."
          }
        },
        "title": "coupons.v1.Coupon",
        "additionalProperties": false,
        "description": "Coupon"
      },
      "coupons.v1.Coupon.Offer": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Unique ID of the offer."
          },
          "name": {
            "type": "string",
            "title": "name",
            "description": "Name of the offer."
          }
        },
        "title": "coupons.v1.Coupon.Offer",
        "additionalProperties": false,
        "description": "An offer for which the coupon can be redeemed."
      },
      "coupons.v1.Coupon.RevenueOrigin": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Unique ID of the advertiser."
          },
          "name": {
            "type": "string",
            "title": "name",
            "description": "Name of the advertiser."
          }
        },
        "title": "coupons.v1.Coupon.RevenueOrigin",
        "additionalProperties": false,
        "description": "Advertiser associated with the coupon."
      },
      "coupons.v1.Coupon.Source": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Unique system ID of the traffic source."
          },
          "publicId": {
            "type": "string",
            "title": "public_id",
            "description": "Public ID."
          }
        },
        "title": "coupons.v1.Coupon.Source",
        "additionalProperties": false,
        "description": "Traffic source able to trigger coupon redemption (essentially an affiliate)."
      },
      "coupons.v1.CouponStatus": {
        "type": "string",
        "title": "coupons.v1.CouponStatus",
        "enum": [
          "COUPON_STATUS_UNSPECIFIED",
          "COUPON_STATUS_ACTIVE",
          "COUPON_STATUS_INACTIVE",
          "COUPON_STATUS_REMOVED"
        ]
      },
      "coupons.v1.CreateCouponRequest": {
        "type": "object",
        "properties": {
          "source": {
            "allOf": [
              {
                "$ref": "#/components/schemas/coupons.v1.CreateCouponRequest.Source"
              }
            ],
            "title": "source",
            "description": "Traffic source able to trigger coupon redemption (essentially an affiliate)."
          },
          "offerId": {
            "type": "string",
            "title": "offer_id",
            "format": "uuid",
            "description": "Offer in which the coupon can be redeemed."
          },
          "revenueOriginId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "revenue_origin_id",
            "format": "uuid",
            "description": "(OPTIONAL) Revenue origin associated with the coupon. If not set, the default revenue origin from the offer is selected."
          },
          "code": {
            "type": "string",
            "title": "code",
            "maxLength": 255,
            "minLength": 2,
            "description": "The code of the coupon."
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/coupons.v1.CouponStatus"
              }
            ],
            "not": {
              "enum": [
                "COUPON_STATUS_UNSPECIFIED"
              ]
            },
            "title": "status",
            "description": "Status of the coupon."
          }
        },
        "title": "coupons.v1.CreateCouponRequest",
        "required": [
          "source",
          "offerId",
          "code",
          "status"
        ],
        "additionalProperties": false,
        "description": "Create a new coupon in the system."
      },
      "coupons.v1.CreateCouponRequest.Source": {
        "type": "object",
        "allOf": [
          {
            "oneOf": [
              {
                "required": [
                  "id"
                ]
              },
              {
                "required": [
                  "publicId"
                ]
              }
            ]
          }
        ],
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "title": "id",
                "format": "uuid",
                "description": "Traffic source ID."
              }
            },
            "title": "id"
          },
          {
            "type": "object",
            "properties": {
              "publicId": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/types.v1.SourcePublicId"
                  }
                ],
                "title": "public_id",
                "description": "Traffic source's public ID. required implicitly by oneof"
              }
            },
            "title": "public_id"
          }
        ],
        "unevaluatedProperties": false,
        "not": {
          "allOf": [
            {
              "anyOf": [
                {
                  "required": [
                    "id"
                  ]
                },
                {
                  "required": [
                    "publicId"
                  ]
                }
              ]
            },
            {
              "not": {
                "oneOf": [
                  {
                    "required": [
                      "id"
                    ]
                  },
                  {
                    "required": [
                      "publicId"
                    ]
                  }
                ]
              }
            }
          ]
        },
        "title": "coupons.v1.CreateCouponRequest.Source",
        "description": "Traffic source able to trigger coupon redemption (essentially an affiliate)."
      },
      "coupons.v1.CreateCouponResponse": {
        "type": "object",
        "properties": {
          "coupon": {
            "allOf": [
              {
                "$ref": "#/components/schemas/coupons.v1.Coupon"
              }
            ],
            "title": "coupon"
          }
        },
        "title": "coupons.v1.CreateCouponResponse",
        "additionalProperties": false,
        "description": "Feedback message of the create coupon request."
      },
      "coupons.v1.DeleteCouponRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "format": "uuid",
            "description": "Unique ID of the coupon."
          }
        },
        "title": "coupons.v1.DeleteCouponRequest",
        "required": [
          "id"
        ],
        "additionalProperties": false,
        "description": "Delete coupon."
      },
      "coupons.v1.DeleteCouponResponse": {
        "type": "object",
        "title": "coupons.v1.DeleteCouponResponse",
        "additionalProperties": false,
        "description": "Deletion confirmation."
      },
      "coupons.v1.ListCouponsRequest": {
        "type": "object",
        "properties": {
          "pagination": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.PaginationParams"
              }
            ],
            "title": "pagination"
          },
          "revenueOriginIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "revenue_origin_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) Revenue origin IDs."
          },
          "sourceIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "source_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) Traffic source IDs."
          },
          "offerIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "offer_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) Offer IDs."
          },
          "codes": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "minLength": 2,
              "description": "(OPTIONAL) "
            },
            "title": "codes",
            "uniqueItems": true,
            "description": "(OPTIONAL) Coupon codes."
          },
          "statuses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/coupons.v1.CouponStatus"
            },
            "title": "statuses",
            "uniqueItems": true,
            "description": "(OPTIONAL) Coupon statuses."
          }
        },
        "title": "coupons.v1.ListCouponsRequest",
        "required": [
          "pagination"
        ],
        "additionalProperties": false,
        "description": "Generate a list of existing coupons."
      },
      "coupons.v1.ListCouponsResponse": {
        "type": "object",
        "properties": {
          "coupons": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/coupons.v1.Coupon"
            },
            "title": "coupons",
            "description": "Coupon codes"
          },
          "pagination": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Pagination"
              }
            ],
            "title": "pagination",
            "description": "Pagination"
          }
        },
        "title": "coupons.v1.ListCouponsResponse",
        "required": [
          "pagination"
        ],
        "additionalProperties": false,
        "description": "List of coupons existing in the system."
      },
      "enums.v1.AccountSettlementStatus": {
        "type": "string",
        "title": "enums.v1.AccountSettlementStatus",
        "enum": [
          "ACCOUNT_SETTLEMENT_STATUS_UNSPECIFIED",
          "ACCOUNT_SETTLEMENT_STATUS_ERROR",
          "ACCOUNT_SETTLEMENT_STATUS_IN_PROGRESS",
          "ACCOUNT_SETTLEMENT_STATUS_NEW",
          "ACCOUNT_SETTLEMENT_STATUS_PAID",
          "ACCOUNT_SETTLEMENT_STATUS_SETTLED_MANUALLY"
        ]
      },
      "enums.v1.AccountStatus": {
        "type": "string",
        "title": "enums.v1.AccountStatus",
        "enum": [
          "ACCOUNT_STATUS_UNSPECIFIED",
          "ACCOUNT_STATUS_DISABLED",
          "ACCOUNT_STATUS_ENABLED",
          "ACCOUNT_STATUS_PENDING"
        ]
      },
      "enums.v1.AdClickIdType": {
        "type": "string",
        "title": "enums.v1.AdClickIdType",
        "enum": [
          "AD_CLICK_ID_TYPE_UNSPECIFIED",
          "AD_CLICK_ID_TYPE_FBCLID",
          "AD_CLICK_ID_TYPE_GCLID",
          "AD_CLICK_ID_TYPE_TTCLID"
        ]
      },
      "enums.v1.AffiliateBillingStatus": {
        "type": "string",
        "title": "enums.v1.AffiliateBillingStatus",
        "enum": [
          "AFFILIATE_BILLING_STATUS_UNSPECIFIED",
          "AFFILIATE_BILLING_STATUS_EXCLUDED",
          "AFFILIATE_BILLING_STATUS_INCLUDED"
        ]
      },
      "enums.v1.AffiliateTicketStatus": {
        "type": "string",
        "title": "enums.v1.AffiliateTicketStatus",
        "enum": [
          "AFFILIATE_TICKET_STATUS_UNSPECIFIED",
          "AFFILIATE_TICKET_STATUS_APPROVED",
          "AFFILIATE_TICKET_STATUS_NEW",
          "AFFILIATE_TICKET_STATUS_PENDING",
          "AFFILIATE_TICKET_STATUS_REJECTED"
        ]
      },
      "enums.v1.AnswerType": {
        "type": "string",
        "title": "enums.v1.AnswerType",
        "enum": [
          "ANSWER_TYPE_UNSPECIFIED",
          "ANSWER_TYPE_TEXT",
          "ANSWER_TYPE_CHECKBOX",
          "ANSWER_TYPE_FILE_UPLOAD",
          "ANSWER_TYPE_SELECT_OPTION"
        ]
      },
      "enums.v1.CapFrequency": {
        "type": "string",
        "title": "enums.v1.CapFrequency",
        "enum": [
          "CAP_FREQUENCY_UNSPECIFIED",
          "CAP_FREQUENCY_DAILY",
          "CAP_FREQUENCY_WEEKLY",
          "CAP_FREQUENCY_MONTHLY"
        ]
      },
      "enums.v1.ClientStatus": {
        "type": "string",
        "title": "enums.v1.ClientStatus",
        "enum": [
          "CLIENT_STATUS_UNSPECIFIED",
          "CLIENT_STATUS_ACTIVE",
          "CLIENT_STATUS_INACTIVE"
        ]
      },
      "enums.v1.ConfirmoUnexportableReason": {
        "type": "string",
        "title": "enums.v1.ConfirmoUnexportableReason",
        "enum": [
          "CONFIRMO_UNEXPORTABLE_REASON_UNSPECIFIED",
          "CONFIRMO_UNEXPORTABLE_REASON_CURRENCY_FROM_NOT_SUPPORTED",
          "CONFIRMO_UNEXPORTABLE_REASON_PAYMENT_METHOD_NOT_SUPPORTED"
        ]
      },
      "enums.v1.ConversionValueType": {
        "type": "string",
        "title": "enums.v1.ConversionValueType",
        "enum": [
          "CONVERSION_VALUE_TYPE_UNSPECIFIED",
          "CONVERSION_VALUE_TYPE_AMOUNT",
          "CONVERSION_VALUE_TYPE_NO_REVENUE",
          "CONVERSION_VALUE_TYPE_RATE",
          "CONVERSION_VALUE_TYPE_REVENUE_RATE_AND_COST_AMOUNT"
        ]
      },
      "enums.v1.CreativeType": {
        "type": "string",
        "title": "enums.v1.CreativeType",
        "enum": [
          "CREATIVE_TYPE_UNSPECIFIED",
          "CREATIVE_TYPE_IMAGE_BANNER",
          "CREATIVE_TYPE_HTML5_BANNER",
          "CREATIVE_TYPE_TEXT_LINK",
          "CREATIVE_TYPE_YOUTUBE_VIDEO",
          "CREATIVE_TYPE_VIDEO",
          "CREATIVE_TYPE_VIMEO_VIDEO",
          "CREATIVE_TYPE_FACEBOOK_POST",
          "CREATIVE_TYPE_TWITTER_POST",
          "CREATIVE_TYPE_PRODUCT_FEED",
          "CREATIVE_TYPE_ZIP"
        ]
      },
      "enums.v1.Device": {
        "type": "string",
        "title": "enums.v1.Device",
        "enum": [
          "DEVICE_UNSPECIFIED",
          "DEVICE_DESKTOP",
          "DEVICE_MOBILE",
          "DEVICE_TABLET"
        ]
      },
      "enums.v1.EarningType": {
        "type": "string",
        "title": "enums.v1.EarningType",
        "enum": [
          "EARNING_TYPE_UNSPECIFIED",
          "EARNING_TYPE_ADJUSTMENT",
          "EARNING_TYPE_AFFILIATE_BONUS",
          "EARNING_TYPE_CLIENT_REVSHARE",
          "EARNING_TYPE_COMMISSION",
          "EARNING_TYPE_CONVERSION"
        ]
      },
      "enums.v1.FeatureFlag": {
        "type": "string",
        "title": "enums.v1.FeatureFlag",
        "enum": [
          "FEATURE_FLAG_UNSPECIFIED",
          "FEATURE_FLAG_REPORT_GROUPING_AFF_S1",
          "FEATURE_FLAG_REPORT_GROUPING_AFF_S2",
          "FEATURE_FLAG_REPORT_GROUPING_AFF_S3",
          "FEATURE_FLAG_REPORT_GROUPING_AFF_S4",
          "FEATURE_FLAG_REPORT_GROUPING_AFF_S5"
        ]
      },
      "enums.v1.FeatureId": {
        "type": "string",
        "title": "enums.v1.FeatureId",
        "enum": [
          "FEATURE_ID_UNSPECIFIED",
          "FEATURE_ID_ACTIVE_OFFERS",
          "FEATURE_ID_ACTIVITY_LOGS",
          "FEATURE_ID_AD_CLICK_ID_TRACKING",
          "FEATURE_ID_ADVERTISER_EMAIL_PLATFORM",
          "FEATURE_ID_ADVERTISERS",
          "FEATURE_ID_AFFILIATE_APP_MESSAGES",
          "FEATURE_ID_AFFILIATE_CONVERSION_VISIBILITY",
          "FEATURE_ID_AFFILIATE_EMAIL_PLATFORM",
          "FEATURE_ID_AFFILIATE_MANAGERS",
          "FEATURE_ID_AFFILIATE_TICKETING",
          "FEATURE_ID_AFFILIATES_BULK_UPDATE",
          "FEATURE_ID_AFFILIATES_EXPORT",
          "FEATURE_ID_AFFILIATES_IMPORT",
          "FEATURE_ID_ALBATO",
          "FEATURE_ID_ALBATO_PREMIUM_INTEGRATIONS",
          "FEATURE_ID_ANURA",
          "FEATURE_ID_APPLY_TO_RUN_OFFERS",
          "FEATURE_ID_AVAILABLE_PAYMENT_METHODS",
          "FEATURE_ID_CLAIM_GENERATING",
          "FEATURE_ID_CLIENTS",
          "FEATURE_ID_COLOR_THEME",
          "FEATURE_ID_CONFIRMO",
          "FEATURE_ID_CONVERSION_AMOUNT_MODIFICATION",
          "FEATURE_ID_CONVERSION_AMOUNT_VISIBILITY",
          "FEATURE_ID_CONVERSION_FUNNELS",
          "FEATURE_ID_CONVERSIONS_IMPORT",
          "FEATURE_ID_CONVERSIONS_UPDATE_CSV",
          "FEATURE_ID_COUPONS",
          "FEATURE_ID_CUSTOM_AFFILIATE_FORM",
          "FEATURE_ID_CUSTOM_AFFILIATE_REGISTRATION",
          "FEATURE_ID_CUSTOM_CONVERSION_TYPES",
          "FEATURE_ID_CUSTOM_DOMAINS",
          "FEATURE_ID_CUSTOM_INTERNAL_PAGES",
          "FEATURE_ID_CUSTOM_MENU_ITEMS",
          "FEATURE_ID_CUSTOM_PRIVACY_POLICY",
          "FEATURE_ID_CUSTOM_REPORT_COLUMNS",
          "FEATURE_ID_CUSTOM_REVENUE_ORIGINS",
          "FEATURE_ID_CUSTOM_REVENUE_VISIBILITY",
          "FEATURE_ID_CUSTOM_TERMS_AND_CONDITIONS",
          "FEATURE_ID_CUSTOM_TIER_TRANSITION_AUTOMATION",
          "FEATURE_ID_CUSTOM_TIERS",
          "FEATURE_ID_DEEP_LINKING",
          "FEATURE_ID_DEFAULT_REPORT_FILTERING",
          "FEATURE_ID_DEFAULT_THEME",
          "FEATURE_ID_EMAIL_CUSTOMIZATION",
          "FEATURE_ID_ENABLED_INTERNAL_USERS",
          "FEATURE_ID_EXPORT_REPORTS",
          "FEATURE_ID_FONT_THEME",
          "FEATURE_ID_FRAUD_DETECTION",
          "FEATURE_ID_FREE_TRIAL_START",
          "FEATURE_ID_FULL_WHITE_LABEL",
          "FEATURE_ID_GOOGLE_CERTIFIED_REDIRECTING",
          "FEATURE_ID_LIVE_CHAT_INTERCOM_SUPPORT",
          "FEATURE_ID_MULTI_CURRENCY",
          "FEATURE_ID_MULTI_FACTOR_AUTHENTICATION",
          "FEATURE_ID_NOTIFICATION_CUSTOM_EVENTS",
          "FEATURE_ID_NOTIFICATIONS",
          "FEATURE_ID_OFFER_CAPS",
          "FEATURE_ID_ON_HOLD",
          "FEATURE_ID_PARTNERSHIP_MARKETPLACE",
          "FEATURE_ID_PAYOUT_AUTOMATION",
          "FEATURE_ID_PRICING_ADJUSTMENTS",
          "FEATURE_ID_PRICING_SUPER_GROUP_RULES",
          "FEATURE_ID_PRIVATE_OFFERS",
          "FEATURE_ID_PUBLIC_API",
          "FEATURE_ID_PUBLIC_API_CLAIMS",
          "FEATURE_ID_PUBLIC_API_PAYMENTS",
          "FEATURE_ID_PUBLIC_API_SETTLEMENTS",
          "FEATURE_ID_QUALIFICATIONS",
          "FEATURE_ID_REDIRECT",
          "FEATURE_ID_REDIRECT_DOMAINS_TYPE",
          "FEATURE_ID_REDIRECT_MODES",
          "FEATURE_ID_REFERRALS",
          "FEATURE_ID_REFERRALS_INDIVIDUAL_ACCESS",
          "FEATURE_ID_SHORT_LINKS",
          "FEATURE_ID_SMART_LINKS",
          "FEATURE_ID_SMTP_EMAILING",
          "FEATURE_ID_SOURCE_PUBLIC_ID_DEFINITION",
          "FEATURE_ID_TRACKING_API_AUTHORIZATION",
          "FEATURE_ID_TRACKING_BLOCKING",
          "FEATURE_ID_TRACKING_QUALITY_CONTROL",
          "FEATURE_ID_UI_TRANSLATIONS"
        ]
      },
      "enums.v1.FontFamily": {
        "type": "string",
        "title": "enums.v1.FontFamily",
        "enum": [
          "FONT_FAMILY_UNSPECIFIED",
          "FONT_FAMILY_ARCHIVO",
          "FONT_FAMILY_BARLOW",
          "FONT_FAMILY_BRICOLAGE_GROTESQUE",
          "FONT_FAMILY_CORMORANT_GARAMOND",
          "FONT_FAMILY_DM_SANS",
          "FONT_FAMILY_FIGTREE",
          "FONT_FAMILY_FRAUNCES",
          "FONT_FAMILY_GEIST",
          "FONT_FAMILY_IBM_PLEX_SANS",
          "FONT_FAMILY_INTER",
          "FONT_FAMILY_LATO",
          "FONT_FAMILY_LEXEND",
          "FONT_FAMILY_LIBRE_FRANKLIN",
          "FONT_FAMILY_LORA",
          "FONT_FAMILY_MANROPE",
          "FONT_FAMILY_MERRIWEATHER",
          "FONT_FAMILY_MONTSERRAT",
          "FONT_FAMILY_MULISH",
          "FONT_FAMILY_NOTO_SANS",
          "FONT_FAMILY_NUNITO",
          "FONT_FAMILY_ONEST",
          "FONT_FAMILY_OPEN_SANS",
          "FONT_FAMILY_OUTFIT",
          "FONT_FAMILY_PLAYFAIR_DISPLAY",
          "FONT_FAMILY_PLUS_JAKARTA_SANS",
          "FONT_FAMILY_POPPINS",
          "FONT_FAMILY_QUICKSAND",
          "FONT_FAMILY_RALEWAY",
          "FONT_FAMILY_RED_HAT_DISPLAY",
          "FONT_FAMILY_ROBOTO",
          "FONT_FAMILY_RUBIK",
          "FONT_FAMILY_SORA",
          "FONT_FAMILY_SOURCE_SERIF4",
          "FONT_FAMILY_SPACE_GROTESK",
          "FONT_FAMILY_URBANIST",
          "FONT_FAMILY_WORK_SANS",
          "FONT_FAMILY_SYSTEM_UI",
          "FONT_FAMILY_ARIAL",
          "FONT_FAMILY_VERDANA",
          "FONT_FAMILY_GEORGIA",
          "FONT_FAMILY_TIMES_NEW_ROMAN",
          "FONT_FAMILY_COMIC_SANS_MS",
          "FONT_FAMILY_IMPACT"
        ]
      },
      "enums.v1.FraudDetectionRule": {
        "type": "string",
        "title": "enums.v1.FraudDetectionRule",
        "enum": [
          "FRAUD_DETECTION_RULE_UNSPECIFIED",
          "FRAUD_DETECTION_RULE_AFFILIATE_SAME_BILLING_DETAILS",
          "FRAUD_DETECTION_RULE_AFFILIATE_SAME_IP_ADDRESS",
          "FRAUD_DETECTION_RULE_CLICK_CLOUD_PROVIDER_IP",
          "FRAUD_DETECTION_RULE_CLICK_IP_ADDRESS_FREQUENCY",
          "FRAUD_DETECTION_RULE_CLICK_KNOWN_BOT",
          "FRAUD_DETECTION_RULE_CLICK_UNKNOWN_DEVICE",
          "FRAUD_DETECTION_RULE_CLICK_UNRECOGNIZED_USER_AGENT",
          "FRAUD_DETECTION_RULE_CLICK_UNSUPPORTED_OS_VERSION",
          "FRAUD_DETECTION_RULE_CONVERSION_ADV_S_MATCHES_AFFILIATE_EMAIL",
          "FRAUD_DETECTION_RULE_CONVERSION_EXTERNAL_CID_MATCHES_AFFILIATE_EMAIL",
          "FRAUD_DETECTION_RULE_CONVERSION_IP_MATCHES_AFFILIATE_IP",
          "FRAUD_DETECTION_RULE_CONVERSION_SUSPICIOUS_CLICK",
          "FRAUD_DETECTION_RULE_CONVERSION_TIME_AFTER_CONVERSION_SOURCE"
        ]
      },
      "enums.v1.LandingPageStatus": {
        "type": "string",
        "title": "enums.v1.LandingPageStatus",
        "enum": [
          "LANDING_PAGE_STATUS_UNSPECIFIED",
          "LANDING_PAGE_STATUS_ENABLED",
          "LANDING_PAGE_STATUS_HIDDEN",
          "LANDING_PAGE_STATUS_DISABLED"
        ]
      },
      "enums.v1.MailMarketingEvent": {
        "type": "string",
        "title": "enums.v1.MailMarketingEvent",
        "enum": [
          "MAIL_MARKETING_EVENT_UNSPECIFIED",
          "MAIL_MARKETING_EVENT_CLICK_TRACKING_ASSISTANCE",
          "MAIL_MARKETING_EVENT_CLICK_TRACKING_SETUP",
          "MAIL_MARKETING_EVENT_CONVERSION_TRACKING_SETUP",
          "MAIL_MARKETING_EVENT_CREATE_YOUR_OFFER",
          "MAIL_MARKETING_EVENT_FINISH_YOUR_OFFER",
          "MAIL_MARKETING_EVENT_FIRST_AFFILIATE",
          "MAIL_MARKETING_EVENT_FIRST_CLICK",
          "MAIL_MARKETING_EVENT_FIRST_CONVERSION",
          "MAIL_MARKETING_EVENT_FIRST_OFFER_IN_DRAFT",
          "MAIL_MARKETING_EVENT_FIRST_OFFER_PUBLISHED",
          "MAIL_MARKETING_EVENT_FREE_TRIAL_EXPIRED",
          "MAIL_MARKETING_EVENT_GIVE_US_REVIEW",
          "MAIL_MARKETING_EVENT_INVITE_AFFILIATES"
        ]
      },
      "enums.v1.MarketplaceAccessStatus": {
        "type": "string",
        "title": "enums.v1.MarketplaceAccessStatus",
        "enum": [
          "MARKETPLACE_ACCESS_STATUS_UNSPECIFIED",
          "MARKETPLACE_ACCESS_STATUS_APPROVED",
          "MARKETPLACE_ACCESS_STATUS_NOT_APPLIED",
          "MARKETPLACE_ACCESS_STATUS_PENDING",
          "MARKETPLACE_ACCESS_STATUS_REJECTED"
        ]
      },
      "enums.v1.OfferAccess": {
        "type": "string",
        "title": "enums.v1.OfferAccess",
        "enum": [
          "OFFER_ACCESS_UNSPECIFIED",
          "OFFER_ACCESS_ALLOWED",
          "OFFER_ACCESS_FORBIDDEN",
          "OFFER_ACCESS_PENDING"
        ]
      },
      "enums.v1.OfferCapCalculationMethod": {
        "type": "string",
        "title": "enums.v1.OfferCapCalculationMethod",
        "enum": [
          "OFFER_CAP_CALCULATION_METHOD_UNSPECIFIED",
          "OFFER_CAP_CALCULATION_METHOD_NUMBER_OF_CONVERSIONS",
          "OFFER_CAP_CALCULATION_METHOD_SUM_OF_REVENUE",
          "OFFER_CAP_CALCULATION_METHOD_NUMBER_OF_CLICKS"
        ]
      },
      "enums.v1.OfferStatus": {
        "type": "string",
        "title": "enums.v1.OfferStatus",
        "enum": [
          "OFFER_STATUS_UNSPECIFIED",
          "OFFER_STATUS_DRAFT",
          "OFFER_STATUS_ACTIVE",
          "OFFER_STATUS_INACTIVE"
        ]
      },
      "enums.v1.OfferTrafficSource": {
        "type": "string",
        "title": "enums.v1.OfferTrafficSource",
        "enum": [
          "OFFER_TRAFFIC_SOURCE_UNSPECIFIED",
          "OFFER_TRAFFIC_SOURCE_APP_INSTALLS",
          "OFFER_TRAFFIC_SOURCE_CONTEXTUAL",
          "OFFER_TRAFFIC_SOURCE_DISPLAY",
          "OFFER_TRAFFIC_SOURCE_EMAIL",
          "OFFER_TRAFFIC_SOURCE_POP",
          "OFFER_TRAFFIC_SOURCE_PUSH",
          "OFFER_TRAFFIC_SOURCE_SEARCH",
          "OFFER_TRAFFIC_SOURCE_SMS",
          "OFFER_TRAFFIC_SOURCE_SOCIAL",
          "OFFER_TRAFFIC_SOURCE_SURVEY"
        ]
      },
      "enums.v1.OfferVisibility": {
        "type": "string",
        "title": "enums.v1.OfferVisibility",
        "enum": [
          "OFFER_VISIBILITY_UNSPECIFIED",
          "OFFER_VISIBILITY_PUBLIC",
          "OFFER_VISIBILITY_PRIVATE",
          "OFFER_VISIBILITY_APPLY_TO_RUN"
        ]
      },
      "enums.v1.OperatingSystem": {
        "type": "string",
        "title": "enums.v1.OperatingSystem",
        "enum": [
          "OPERATING_SYSTEM_UNSPECIFIED",
          "OPERATING_SYSTEM_ANDROID",
          "OPERATING_SYSTEM_CHROME_OS",
          "OPERATING_SYSTEM_I_OS",
          "OPERATING_SYSTEM_LINUX",
          "OPERATING_SYSTEM_MAC_OS",
          "OPERATING_SYSTEM_WINDOWS"
        ]
      },
      "enums.v1.QuestionVisibility": {
        "type": "string",
        "title": "enums.v1.QuestionVisibility",
        "enum": [
          "QUESTION_VISIBILITY_UNSPECIFIED",
          "QUESTION_VISIBILITY_REQUIRED",
          "QUESTION_VISIBILITY_OPTIONAL",
          "QUESTION_VISIBILITY_HIDDEN"
        ]
      },
      "enums.v1.RevenueOriginStatus": {
        "type": "string",
        "title": "enums.v1.RevenueOriginStatus",
        "enum": [
          "REVENUE_ORIGIN_STATUS_UNSPECIFIED",
          "REVENUE_ORIGIN_STATUS_ACTIVE",
          "REVENUE_ORIGIN_STATUS_INACTIVE"
        ]
      },
      "enums.v1.SourceStatus": {
        "type": "string",
        "title": "enums.v1.SourceStatus",
        "enum": [
          "SOURCE_STATUS_UNSPECIFIED",
          "SOURCE_STATUS_DISABLED",
          "SOURCE_STATUS_ENABLED"
        ]
      },
      "enums.v1.TagScope": {
        "type": "string",
        "title": "enums.v1.TagScope",
        "enum": [
          "TAG_SCOPE_UNSPECIFIED",
          "TAG_SCOPE_ADVERTISERS",
          "TAG_SCOPE_AFFILIATE_MANAGERS",
          "TAG_SCOPE_AFFILIATES",
          "TAG_SCOPE_OFFERS"
        ]
      },
      "enums.v1.TenantTouchpointCategory": {
        "type": "string",
        "title": "enums.v1.TenantTouchpointCategory",
        "enum": [
          "TENANT_TOUCHPOINT_CATEGORY_UNSPECIFIED",
          "TENANT_TOUCHPOINT_CATEGORY_AFFILIATE_COMMUNICATION",
          "TENANT_TOUCHPOINT_CATEGORY_AFFILIATE_SETTINGS",
          "TENANT_TOUCHPOINT_CATEGORY_GENERAL_SETTINGS",
          "TENANT_TOUCHPOINT_CATEGORY_OFFER",
          "TENANT_TOUCHPOINT_CATEGORY_REPORTS",
          "TENANT_TOUCHPOINT_CATEGORY_TRACKING"
        ]
      },
      "enums.v1.TenantTouchpointType": {
        "type": "string",
        "title": "enums.v1.TenantTouchpointType",
        "enum": [
          "TENANT_TOUCHPOINT_TYPE_UNSPECIFIED",
          "TENANT_TOUCHPOINT_TYPE_AFFILIATE_ADDED",
          "TENANT_TOUCHPOINT_TYPE_AFFILIATE_REGISTRATION_PAGE",
          "TENANT_TOUCHPOINT_TYPE_AFFILIATE_REGISTRATION_PAGE_NOTE",
          "TENANT_TOUCHPOINT_TYPE_AFFILIATE_TICKETING",
          "TENANT_TOUCHPOINT_TYPE_AFFILIATE_TRACKING",
          "TENANT_TOUCHPOINT_TYPE_AFFILIATES_POSTBACK",
          "TENANT_TOUCHPOINT_TYPE_BRANDING",
          "TENANT_TOUCHPOINT_TYPE_CONTACT_FOR_AFFILIATES",
          "TENANT_TOUCHPOINT_TYPE_CREATIVES_UPLOADED",
          "TENANT_TOUCHPOINT_TYPE_DASHBOARD_NOTE",
          "TENANT_TOUCHPOINT_TYPE_DATA_VISIBILITY",
          "TENANT_TOUCHPOINT_TYPE_LANDING_PAGES",
          "TENANT_TOUCHPOINT_TYPE_MENU_CUSTOMIZATION",
          "TENANT_TOUCHPOINT_TYPE_OFFER_GENERAL",
          "TENANT_TOUCHPOINT_TYPE_PAYMENT_METHODS",
          "TENANT_TOUCHPOINT_TYPE_PRIVACY_POLICY",
          "TENANT_TOUCHPOINT_TYPE_REPORTS_ADJUSTED",
          "TENANT_TOUCHPOINT_TYPE_REVENUE_AND_PAYOUTS",
          "TENANT_TOUCHPOINT_TYPE_SYSTEM_EMAIL_CUSTOMIZATION",
          "TENANT_TOUCHPOINT_TYPE_TERMS_AND_CONDITIONS",
          "TENANT_TOUCHPOINT_TYPE_TRACKING_ACTIVE",
          "TENANT_TOUCHPOINT_TYPE_USERS_ADDED"
        ]
      },
      "enums.v1.Theme": {
        "type": "string",
        "title": "enums.v1.Theme",
        "enum": [
          "THEME_UNSPECIFIED",
          "THEME_DARK",
          "THEME_LIGHT",
          "THEME_SYSTEM"
        ]
      },
      "enums.v1.TrackingType": {
        "type": "string",
        "title": "enums.v1.TrackingType",
        "enum": [
          "TRACKING_TYPE_UNSPECIFIED",
          "TRACKING_TYPE_DIRECT",
          "TRACKING_TYPE_REDIRECT"
        ]
      },
      "enums.v1.Weekday": {
        "type": "string",
        "title": "enums.v1.Weekday",
        "enum": [
          "WEEKDAY_UNSPECIFIED",
          "WEEKDAY_MONDAY",
          "WEEKDAY_TUESDAY",
          "WEEKDAY_WEDNESDAY",
          "WEEKDAY_THURSDAY",
          "WEEKDAY_FRIDAY",
          "WEEKDAY_SATURDAY",
          "WEEKDAY_SUNDAY"
        ]
      },
      "google.protobuf.Any": {
        "type": "object",
        "properties": {
          "@type": {
            "type": "string",
            "description": "A URL/resource name that uniquely identifies the type of the serialized message."
          }
        },
        "additionalProperties": true,
        "description": "Contains an arbitrary serialized message along with a @type that describes the type of the serialized message."
      },
      "google.protobuf.BoolValue": {
        "type": "boolean",
        "description": "A boolean value; `null` is also accepted."
      },
      "google.protobuf.Int32Value": {
        "type": "integer",
        "format": "int32",
        "minimum": -2147483648,
        "maximum": 2147483647
      },
      "google.protobuf.Int64Value": {
        "type": "string",
        "pattern": "^-?[0-9]+$"
      },
      "google.protobuf.StringValue": {
        "type": "string",
        "description": "A string value; `null` is also accepted."
      },
      "google.protobuf.Timestamp": {
        "type": "string",
        "examples": [
          "2023-01-15T01:30:15.01Z",
          "2024-12-25T12:00:00Z"
        ],
        "format": "date-time",
        "description": "A point in time in RFC 3339 format, with up to nanosecond precision. Output uses UTC (`Z`); input may use an offset from UTC."
      },
      "google.protobuf.UInt32Value": {
        "type": "integer",
        "format": "int64",
        "minimum": 0,
        "maximum": 4294967295
      },
      "google.protobuf.UInt64Value": {
        "type": "string",
        "pattern": "^[0-9]+$"
      },
      "google.rpc.Status": {
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "format": "int32",
            "description": "The status code, which should be an enum value of google.rpc.Code."
          },
          "message": {
            "type": "string",
            "description": "A developer-facing error message."
          },
          "details": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/google.protobuf.Any"
            },
            "description": "A list of messages that carry the error details."
          }
        },
        "description": "The Status type defines a logical error model suitable for gRPC and REST APIs."
      },
      "google.type.LatLng": {
        "type": "object",
        "properties": {
          "latitude": {
            "type": "number",
            "title": "latitude",
            "format": "double",
            "description": "The latitude in degrees. It must be in the range [-90.0, +90.0]."
          },
          "longitude": {
            "type": "number",
            "title": "longitude",
            "format": "double",
            "description": "The longitude in degrees. It must be in the range [-180.0, +180.0]."
          }
        },
        "title": "google.type.LatLng",
        "additionalProperties": false,
        "description": "An object that represents a latitude/longitude pair. This is expressed as a\n pair of doubles to represent degrees latitude and degrees longitude. Unless\n specified otherwise, this object must conform to the\n <a href=\"https://en.wikipedia.org/wiki/World_Geodetic_System#1984_version\">\n WGS84 standard</a>. Values must be within normalized ranges."
      },
      "locations.v1.Location": {
        "type": "object",
        "properties": {
          "countryCode": {
            "type": "string",
            "title": "country_code"
          },
          "subdivision": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "subdivision",
            "description": "(OPTIONAL) "
          },
          "city": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "city",
            "description": "(OPTIONAL) "
          }
        },
        "title": "locations.v1.Location",
        "required": [
          "countryCode"
        ],
        "additionalProperties": false
      },
      "locations.v1.LocationRequest": {
        "type": "object",
        "properties": {
          "countryCode": {
            "type": "string",
            "title": "country_code",
            "pattern": "^[A-Z]{2}$"
          },
          "subdivision": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "subdivision",
            "maxLength": 255,
            "minLength": 1,
            "description": "(OPTIONAL) "
          },
          "city": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "city",
            "maxLength": 255,
            "minLength": 1,
            "description": "(OPTIONAL) "
          }
        },
        "title": "locations.v1.LocationRequest",
        "required": [
          "countryCode"
        ],
        "additionalProperties": false,
        "description": "lower_location_level_requires_parent // 'city' requires 'subdivision' to be provided\n"
      },
      "locations.v1.Locations": {
        "type": "object",
        "properties": {
          "values": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/locations.v1.Location"
            },
            "title": "values"
          },
          "excluded": {
            "type": "boolean",
            "title": "excluded"
          }
        },
        "title": "locations.v1.Locations",
        "required": [
          "values",
          "excluded"
        ],
        "additionalProperties": false
      },
      "locations.v1.LocationsRequest": {
        "type": "object",
        "properties": {
          "values": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/locations.v1.LocationRequest"
            },
            "title": "values",
            "description": "(OPTIONAL) "
          },
          "excluded": {
            "type": "boolean",
            "title": "excluded",
            "description": "(OPTIONAL) "
          }
        },
        "title": "locations.v1.LocationsRequest",
        "additionalProperties": false,
        "description": "locations_excluded_requires_values // If excluded is true, values must contain at least one item.\n"
      },
      "memberships.v1.BillingCycle": {
        "type": "string",
        "title": "memberships.v1.BillingCycle",
        "enum": [
          "BILLING_CYCLE_UNSPECIFIED",
          "BILLING_CYCLE_ANNUAL",
          "BILLING_CYCLE_MONTHLY"
        ]
      },
      "memberships.v1.Membership": {
        "type": "object",
        "properties": {
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/memberships.v1.Status"
              }
            ],
            "title": "status"
          },
          "planId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/memberships.v1.PlanId"
              }
            ],
            "title": "plan_id"
          },
          "startsAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "starts_at",
            "description": "(OPTIONAL) "
          },
          "endsAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "ends_at",
            "description": "(OPTIONAL) "
          },
          "trialExpired": {
            "type": "boolean",
            "title": "trial_expired"
          },
          "billingCycle": {
            "allOf": [
              {
                "$ref": "#/components/schemas/memberships.v1.BillingCycle"
              }
            ],
            "title": "billing_cycle",
            "description": "(OPTIONAL) "
          }
        },
        "title": "memberships.v1.Membership",
        "required": [
          "status",
          "planId",
          "trialExpired"
        ],
        "additionalProperties": false
      },
      "memberships.v1.PlanId": {
        "type": "string",
        "title": "memberships.v1.PlanId",
        "enum": [
          "PLAN_ID_UNSPECIFIED",
          "PLAN_ID_BUSINESS",
          "PLAN_ID_ENTERPRISE",
          "PLAN_ID_ENTERPRISE_PLUS",
          "PLAN_ID_FREEMIUM",
          "PLAN_ID_IGAMING_FULL_HOUSE",
          "PLAN_ID_IGAMING_JACKPOT",
          "PLAN_ID_IGAMING_SLOT",
          "PLAN_ID_NETWORK_GROWTH",
          "PLAN_ID_NETWORK_PLUS",
          "PLAN_ID_NETWORK_SEED",
          "PLAN_ID_STARTER"
        ]
      },
      "memberships.v1.PlatformId": {
        "type": "string",
        "title": "memberships.v1.PlatformId",
        "enum": [
          "PLATFORM_ID_UNSPECIFIED",
          "PLATFORM_ID_SHOPIFY",
          "PLATFORM_ID_STRIPE"
        ]
      },
      "memberships.v1.Status": {
        "type": "string",
        "title": "memberships.v1.Status",
        "enum": [
          "STATUS_UNSPECIFIED",
          "STATUS_ACTIVE",
          "STATUS_INACTIVE",
          "STATUS_TRIALING"
        ]
      },
      "offer_caps.v1.AddOfferCapSourceLimitRequest": {
        "type": "object",
        "properties": {
          "offerCapId": {
            "type": "string",
            "title": "offer_cap_id",
            "format": "uuid",
            "description": "Cap identifier (UUID) the override is added to."
          },
          "sourceId": {
            "type": "string",
            "title": "source_id",
            "format": "uuid",
            "description": "Source identifier (UUID) the override applies to. The source must not be overridden on the cap yet."
          },
          "limit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/offer_caps.v1.Limit"
              }
            ],
            "title": "limit",
            "description": "Limit applied to the source instead of the cap's default source limit."
          }
        },
        "title": "offer_caps.v1.AddOfferCapSourceLimitRequest",
        "required": [
          "offerCapId",
          "sourceId",
          "limit"
        ],
        "additionalProperties": false,
        "description": "Request to override the limit of a single source on a cap."
      },
      "offer_caps.v1.AddOfferCapSourceLimitResponse": {
        "type": "object",
        "properties": {
          "offerCapId": {
            "type": "string",
            "title": "offer_cap_id",
            "description": "Identifier (UUID) of the cap the override belongs to."
          },
          "sourceId": {
            "type": "string",
            "title": "source_id",
            "description": "Identifier (UUID) of the source the override applies to."
          },
          "limit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/offer_caps.v1.Limit"
              }
            ],
            "title": "limit",
            "description": "Limit applied to the source."
          }
        },
        "title": "offer_caps.v1.AddOfferCapSourceLimitResponse",
        "required": [
          "offerCapId",
          "sourceId",
          "limit"
        ],
        "additionalProperties": false,
        "description": "Response containing the created source override."
      },
      "offer_caps.v1.Cap": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Cap identifier (UUID)."
          },
          "offerId": {
            "type": "string",
            "title": "offer_id",
            "description": "Identifier (UUID) of the offer the cap belongs to."
          },
          "conversionTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/conversion_types.v1.ConversionType"
            },
            "title": "conversion_types",
            "description": "Conversion types the cap applies to."
          },
          "calculationMethod": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.OfferCapCalculationMethod"
              }
            ],
            "title": "calculation_method",
            "description": "Whether the cap counts the number of conversions or sums up their revenue."
          },
          "conversionStatuses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/conversions.v1.ConversionStatus"
            },
            "title": "conversion_statuses",
            "description": "Conversion statuses counted towards the cap."
          },
          "limits": {
            "allOf": [
              {
                "$ref": "#/components/schemas/offer_caps.v1.Cap.Limits"
              }
            ],
            "title": "limits",
            "description": "Limits the cap enforces."
          },
          "fallback": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Fallback"
              }
            ],
            "title": "fallback",
            "description": "(OPTIONAL) Destination visitors are redirected to once the cap is reached.\n Unset when the cap redirects to the default fallback destination."
          },
          "utilization": {
            "allOf": [
              {
                "$ref": "#/components/schemas/offer_caps.v1.Cap.Utilization"
              }
            ],
            "title": "utilization",
            "description": "Current consumption of the cap."
          },
          "customPeriodStarts": {
            "allOf": [
              {
                "$ref": "#/components/schemas/offer_caps.v1.CustomPeriodStarts"
              }
            ],
            "title": "custom_period_starts",
            "description": "Days the periods of the cap start on, as they were customized. A period left unset starts on the\n default day — Monday for a week, the first day of the month."
          }
        },
        "title": "offer_caps.v1.Cap",
        "required": [
          "id",
          "offerId",
          "conversionTypes",
          "calculationMethod",
          "conversionStatuses",
          "limits",
          "utilization",
          "customPeriodStarts"
        ],
        "additionalProperties": false,
        "description": "Conversion cap configured on an offer, together with its current utilization."
      },
      "offer_caps.v1.Cap.Limits": {
        "type": "object",
        "properties": {
          "total": {
            "allOf": [
              {
                "$ref": "#/components/schemas/offer_caps.v1.Limit"
              }
            ],
            "title": "total",
            "description": "Limit applied to the offer as a whole, across all sources.\n Unset when the cap does not restrict the offer as a whole."
          },
          "bySource": {
            "allOf": [
              {
                "$ref": "#/components/schemas/offer_caps.v1.Cap.Limits.SourceLimit"
              }
            ],
            "title": "by_source",
            "description": "Limits applied to individual affiliate sources."
          }
        },
        "title": "offer_caps.v1.Cap.Limits",
        "required": [
          "total",
          "bySource"
        ],
        "additionalProperties": false,
        "description": "Limits the cap enforces."
      },
      "offer_caps.v1.Cap.Limits.SourceLimit": {
        "type": "object",
        "properties": {
          "default": {
            "allOf": [
              {
                "$ref": "#/components/schemas/offer_caps.v1.Limit"
              }
            ],
            "title": "default",
            "description": "Limit applied to every source without an individual override.\n Unset when the cap does not restrict sources by default."
          },
          "individual": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/offer_caps.v1.Cap.Limits.SourceLimit.Individual"
            },
            "title": "individual",
            "description": "Per-source overrides of the default limit."
          }
        },
        "title": "offer_caps.v1.Cap.Limits.SourceLimit",
        "required": [
          "default",
          "individual"
        ],
        "additionalProperties": false,
        "description": "Limits applied per affiliate source."
      },
      "offer_caps.v1.Cap.Limits.SourceLimit.Individual": {
        "type": "object",
        "properties": {
          "sourceId": {
            "type": "string",
            "title": "source_id",
            "description": "Identifier (UUID) of the source the limit applies to."
          },
          "limit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/offer_caps.v1.Limit"
              }
            ],
            "title": "limit",
            "description": "Limit applied to the source instead of the default one."
          }
        },
        "title": "offer_caps.v1.Cap.Limits.SourceLimit.Individual",
        "required": [
          "sourceId",
          "limit"
        ],
        "additionalProperties": false,
        "description": "Limit of a single source, overriding the default one."
      },
      "offer_caps.v1.Cap.Utilization": {
        "type": "object",
        "properties": {
          "totalNumberOfConversions": {
            "type": "string",
            "title": "total_number_of_conversions",
            "format": "int64",
            "description": "Number of conversions counted across all sources in the current day.\n Deprecated: use `by_period` instead, it is empty when the cap has no daily frequency.",
            "deprecated": true
          },
          "totalSumOfRevenue": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "total_sum_of_revenue",
            "description": "Revenue counted across all sources in the current day.\n Deprecated: use `by_period` instead, it is empty when the cap has no daily frequency.",
            "deprecated": true
          },
          "bySource": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/offer_caps.v1.Cap.Utilization.SourceUtilization"
            },
            "title": "by_source",
            "description": "Breakdown of the current day's consumption by affiliate source.\n Deprecated: use `by_period` instead, it is empty when the cap has no daily frequency.",
            "deprecated": true
          },
          "byPeriod": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/offer_caps.v1.Cap.Utilization.PeriodUtilization"
            },
            "title": "by_period",
            "description": "Consumption within each period the cap enforces."
          }
        },
        "title": "offer_caps.v1.Cap.Utilization",
        "required": [
          "totalNumberOfConversions",
          "totalSumOfRevenue",
          "bySource",
          "byPeriod"
        ],
        "additionalProperties": false,
        "description": "Consumption of the cap within each period it enforces, counted from the tenant's midnight.\n Only conversions matching the cap's conversion types and conversion statuses are counted."
      },
      "offer_caps.v1.Cap.Utilization.PeriodUtilization": {
        "type": "object",
        "properties": {
          "frequency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.CapFrequency"
              }
            ],
            "title": "frequency",
            "description": "Frequency of the period."
          },
          "startedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "started_at",
            "description": "Moment the period started at, in the tenant's timezone."
          },
          "totalNumberOfConversions": {
            "type": "string",
            "title": "total_number_of_conversions",
            "format": "int64",
            "description": "Number of conversions counted across all sources."
          },
          "totalSumOfRevenue": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "total_sum_of_revenue",
            "description": "Revenue counted across all sources."
          },
          "bySource": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/offer_caps.v1.Cap.Utilization.SourceUtilization"
            },
            "title": "by_source",
            "description": "Breakdown of the consumption by affiliate source."
          }
        },
        "title": "offer_caps.v1.Cap.Utilization.PeriodUtilization",
        "required": [
          "frequency",
          "startedAt",
          "totalNumberOfConversions",
          "totalSumOfRevenue",
          "bySource"
        ],
        "additionalProperties": false,
        "description": "Consumption within a single period the cap enforces."
      },
      "offer_caps.v1.Cap.Utilization.SourceUtilization": {
        "type": "object",
        "properties": {
          "sourceId": {
            "type": "string",
            "title": "source_id",
            "description": "Identifier (UUID) of the source the consumption belongs to."
          },
          "numberOfConversions": {
            "type": "string",
            "title": "number_of_conversions",
            "format": "int64",
            "description": "Number of conversions attributed to the source."
          },
          "sumOfRevenue": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "sum_of_revenue",
            "description": "Revenue attributed to the source."
          }
        },
        "title": "offer_caps.v1.Cap.Utilization.SourceUtilization",
        "required": [
          "sourceId",
          "numberOfConversions",
          "sumOfRevenue"
        ],
        "additionalProperties": false,
        "description": "Consumption attributable to a single affiliate source."
      },
      "offer_caps.v1.CreateOfferCapRequest": {
        "type": "object",
        "properties": {
          "offerId": {
            "type": "string",
            "title": "offer_id",
            "format": "uuid",
            "description": "Offer identifier (UUID) the cap is created for."
          },
          "conversionTypeIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "conversion_type_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) Conversion type identifiers (UUIDs) the cap applies to, at least one unless the cap counts\n clicks. None of them may already be covered by another cap on the same offer."
          },
          "calculationMethod": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.OfferCapCalculationMethod"
              }
            ],
            "not": {
              "enum": [
                "OFFER_CAP_CALCULATION_METHOD_UNSPECIFIED"
              ]
            },
            "title": "calculation_method",
            "description": "What the cap counts: the number of conversions, their revenue, or the number of clicks.\nenum.defined_only = true\n"
          },
          "conversionStatuses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/conversions.v1.ConversionStatus"
            },
            "title": "conversion_statuses",
            "uniqueItems": true,
            "description": "(OPTIONAL) Conversion statuses counted towards the cap. Empty when the cap counts clicks."
          },
          "customPeriodStarts": {
            "allOf": [
              {
                "$ref": "#/components/schemas/offer_caps.v1.CustomPeriodStarts"
              }
            ],
            "title": "custom_period_starts",
            "description": "(OPTIONAL) Days the weekly and monthly periods should start on.\n Omit to start weeks on Monday and months on the first day of the month."
          },
          "limits": {
            "allOf": [
              {
                "$ref": "#/components/schemas/offer_caps.v1.CreateOfferCapRequest.Limits"
              }
            ],
            "title": "limits",
            "description": "Limits the cap enforces."
          },
          "fallback": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.FallbackRequest"
              }
            ],
            "title": "fallback",
            "description": "(OPTIONAL) Destination visitors are redirected to once the cap is reached.\n Omit to redirect to the default fallback destination."
          }
        },
        "title": "offer_caps.v1.CreateOfferCapRequest",
        "required": [
          "offerId",
          "calculationMethod",
          "limits"
        ],
        "additionalProperties": false,
        "description": "Request to create a conversion cap on an offer."
      },
      "offer_caps.v1.CreateOfferCapRequest.Limits": {
        "type": "object",
        "properties": {
          "total": {
            "allOf": [
              {
                "$ref": "#/components/schemas/offer_caps.v1.Limit"
              }
            ],
            "title": "total",
            "description": "(OPTIONAL) Limit applied to the offer as a whole, across all sources."
          },
          "sourceDefault": {
            "allOf": [
              {
                "$ref": "#/components/schemas/offer_caps.v1.Limit"
              }
            ],
            "title": "source_default",
            "description": "(OPTIONAL) Limit applied to every source without an individual override."
          }
        },
        "title": "offer_caps.v1.CreateOfferCapRequest.Limits",
        "additionalProperties": false,
        "description": "Limits the cap should enforce, at least one of them. The periods set on them are the periods\n the cap enforces over.\nlimits.required // the total or the source default limit must be set\n"
      },
      "offer_caps.v1.CreateOfferCapResponse": {
        "type": "object",
        "properties": {
          "cap": {
            "allOf": [
              {
                "$ref": "#/components/schemas/offer_caps.v1.Cap"
              }
            ],
            "title": "cap",
            "description": "Cap created by the request."
          }
        },
        "title": "offer_caps.v1.CreateOfferCapResponse",
        "required": [
          "cap"
        ],
        "additionalProperties": false,
        "description": "Response containing the created cap."
      },
      "offer_caps.v1.CustomPeriodStarts": {
        "type": "object",
        "properties": {
          "weekly": {
            "allOf": [
              {
                "$ref": "#/components/schemas/offer_caps.v1.CustomPeriodStarts.Weekly"
              }
            ],
            "title": "weekly",
            "description": "(OPTIONAL) Day the weekly periods start on. Defaults to Monday."
          },
          "monthly": {
            "allOf": [
              {
                "$ref": "#/components/schemas/offer_caps.v1.CustomPeriodStarts.Monthly"
              }
            ],
            "title": "monthly",
            "description": "(OPTIONAL) Day the monthly periods start on. Defaults to the first day of the month."
          }
        },
        "title": "offer_caps.v1.CustomPeriodStarts",
        "additionalProperties": false,
        "description": "Days the recurring periods of a cap start on instead of the default ones.\n Which periods the cap enforces follows from its limits."
      },
      "offer_caps.v1.CustomPeriodStarts.Monthly": {
        "type": "object",
        "allOf": [
          {
            "oneOf": [
              {
                "required": [
                  "day"
                ]
              },
              {
                "required": [
                  "lastDay"
                ]
              }
            ]
          }
        ],
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "day": {
                "type": "integer",
                "title": "day",
                "maximum": 28,
                "minimum": 1,
                "description": "Day of the month the period starts on, at the tenant's midnight."
              }
            },
            "title": "day"
          },
          {
            "type": "object",
            "properties": {
              "lastDay": {
                "type": "boolean",
                "title": "last_day",
                "description": "Whether the period starts on the last day of the month, at the tenant's midnight.",
                "const": true
              }
            },
            "title": "last_day"
          }
        ],
        "unevaluatedProperties": false,
        "not": {
          "allOf": [
            {
              "anyOf": [
                {
                  "required": [
                    "day"
                  ]
                },
                {
                  "required": [
                    "lastDay"
                  ]
                }
              ]
            },
            {
              "not": {
                "oneOf": [
                  {
                    "required": [
                      "day"
                    ]
                  },
                  {
                    "required": [
                      "lastDay"
                    ]
                  }
                ]
              }
            }
          ]
        },
        "title": "offer_caps.v1.CustomPeriodStarts.Monthly",
        "description": "Start of a monthly period."
      },
      "offer_caps.v1.CustomPeriodStarts.Weekly": {
        "type": "object",
        "properties": {
          "weekday": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.Weekday"
              }
            ],
            "not": {
              "enum": [
                "WEEKDAY_UNSPECIFIED"
              ]
            },
            "title": "weekday",
            "description": "Weekday the period starts on, at the tenant's midnight.\nenum.defined_only = true\n"
          }
        },
        "title": "offer_caps.v1.CustomPeriodStarts.Weekly",
        "required": [
          "weekday"
        ],
        "additionalProperties": false,
        "description": "Start of a weekly period."
      },
      "offer_caps.v1.DeleteOfferCapRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "format": "uuid",
            "description": "Cap identifier (UUID) to delete."
          }
        },
        "title": "offer_caps.v1.DeleteOfferCapRequest",
        "required": [
          "id"
        ],
        "additionalProperties": false,
        "description": "Request to delete a conversion cap."
      },
      "offer_caps.v1.DeleteOfferCapResponse": {
        "type": "object",
        "title": "offer_caps.v1.DeleteOfferCapResponse",
        "additionalProperties": false,
        "description": "Empty response returned when the cap is deleted successfully."
      },
      "offer_caps.v1.Limit": {
        "type": "object",
        "properties": {
          "day": {
            "allOf": [
              {
                "$ref": "#/components/schemas/offer_caps.v1.Limit.Day"
              }
            ],
            "title": "day",
            "description": "(OPTIONAL) Daily limit."
          },
          "week": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "week",
            "description": "(OPTIONAL) Value the week's consumption must stay below."
          },
          "month": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "month",
            "description": "(OPTIONAL) Value the month's consumption must stay below."
          }
        },
        "title": "offer_caps.v1.Limit",
        "additionalProperties": false,
        "description": "Limit values of the periods they are enforced over. At least one period must be set.\n The periods a cap enforces follow from the periods set on its own limits, and an individual\n source limit may cover any of them.\nlimit.period.required // at least one period limit must be set\n"
      },
      "offer_caps.v1.Limit.Day": {
        "type": "object",
        "properties": {
          "everyDay": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "every_day",
            "description": "Value the day's consumption must stay below."
          }
        },
        "title": "offer_caps.v1.Limit.Day",
        "required": [
          "everyDay"
        ],
        "additionalProperties": false,
        "description": "Limit enforced over a single day."
      },
      "offer_caps.v1.ListOfferCapsRequest": {
        "type": "object",
        "properties": {
          "offerId": {
            "type": "string",
            "title": "offer_id",
            "format": "uuid",
            "description": "Offer identifier (UUID) whose caps are listed."
          }
        },
        "title": "offer_caps.v1.ListOfferCapsRequest",
        "required": [
          "offerId"
        ],
        "additionalProperties": false,
        "description": "Request to list the conversion caps of an offer."
      },
      "offer_caps.v1.ListOfferCapsResponse": {
        "type": "object",
        "properties": {
          "caps": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/offer_caps.v1.Cap"
            },
            "title": "caps",
            "description": "Caps configured on the offer."
          }
        },
        "title": "offer_caps.v1.ListOfferCapsResponse",
        "required": [
          "caps"
        ],
        "additionalProperties": false,
        "description": "Response containing the caps of the offer.\n Callers restricted to their own sources see the limit resolved for each of those sources under\n `limits.by_source.individual`, with `limits.by_source.default` left unset."
      },
      "offer_caps.v1.RemoveOfferCapSourceLimitRequest": {
        "type": "object",
        "properties": {
          "offerCapId": {
            "type": "string",
            "title": "offer_cap_id",
            "format": "uuid",
            "description": "Cap identifier (UUID) the override is removed from."
          },
          "sourceId": {
            "type": "string",
            "title": "source_id",
            "format": "uuid",
            "description": "Source identifier (UUID) whose override is removed."
          }
        },
        "title": "offer_caps.v1.RemoveOfferCapSourceLimitRequest",
        "required": [
          "offerCapId",
          "sourceId"
        ],
        "additionalProperties": false,
        "description": "Request to drop the limit override of a single source, reverting it to the cap's default source limit."
      },
      "offer_caps.v1.RemoveOfferCapSourceLimitResponse": {
        "type": "object",
        "title": "offer_caps.v1.RemoveOfferCapSourceLimitResponse",
        "additionalProperties": false,
        "description": "Empty response returned when the source override is removed successfully."
      },
      "offers.v1.AffiliateAssignment": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Assignment unique identifier (UUID)."
          },
          "assignedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "assigned_at",
            "description": "Time when the assignment was created."
          },
          "access": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.OfferAccess"
              }
            ],
            "title": "access",
            "description": "Current access level of the assignment."
          },
          "applicationData": {
            "allOf": [
              {
                "$ref": "#/components/schemas/offers.v1.ApplicationData"
              }
            ],
            "title": "application_data",
            "description": "(OPTIONAL) Pending application details, present when the assignment originated from an apply-to-run flow."
          },
          "account": {
            "allOf": [
              {
                "$ref": "#/components/schemas/offers.v1.AffiliateAssignment.Account"
              }
            ],
            "title": "account",
            "description": "Owner account of the assigned source."
          },
          "source": {
            "allOf": [
              {
                "$ref": "#/components/schemas/offers.v1.AffiliateAssignment.Source"
              }
            ],
            "title": "source",
            "description": "Source assigned to the offer."
          }
        },
        "title": "offers.v1.AffiliateAssignment",
        "required": [
          "id",
          "assignedAt",
          "access",
          "account",
          "source"
        ],
        "additionalProperties": false,
        "description": "Affiliate to offer assignment record with related account, source, and optional application data."
      },
      "offers.v1.AffiliateAssignment.Account": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Account unique identifier (UUID)."
          },
          "name": {
            "type": "string",
            "title": "name",
            "description": "Account display name."
          },
          "email": {
            "type": "string",
            "title": "email",
            "description": "Account email address."
          }
        },
        "title": "offers.v1.AffiliateAssignment.Account",
        "required": [
          "id",
          "name",
          "email"
        ],
        "additionalProperties": false,
        "description": "Account of the assigned affiliate."
      },
      "offers.v1.AffiliateAssignment.Source": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Source unique identifier (UUID)."
          },
          "publicId": {
            "type": "string",
            "title": "public_id",
            "description": "Public-facing source identifier used in tracking links."
          }
        },
        "title": "offers.v1.AffiliateAssignment.Source",
        "required": [
          "id",
          "publicId"
        ],
        "additionalProperties": false,
        "description": "Source of the affiliate assigned to the offer."
      },
      "offers.v1.ApplicationCustomization": {
        "type": "object",
        "allOf": [
          {
            "oneOf": [
              {
                "required": [
                  "quickApplication"
                ]
              },
              {
                "required": [
                  "custom"
                ]
              }
            ]
          }
        ],
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "custom": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/offers.v1.ApplicationCustomization.Custom"
                  }
                ],
                "title": "custom",
                "description": "Use a custom application with consent text and custom questions."
              }
            },
            "title": "custom"
          },
          {
            "type": "object",
            "properties": {
              "quickApplication": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/offers.v1.QuickApplication"
                  }
                ],
                "title": "quick_application",
                "description": "Use a single-click quick application without custom questions."
              }
            },
            "title": "quick_application"
          }
        ],
        "unevaluatedProperties": false,
        "not": {
          "allOf": [
            {
              "anyOf": [
                {
                  "required": [
                    "custom"
                  ]
                },
                {
                  "required": [
                    "quickApplication"
                  ]
                }
              ]
            },
            {
              "not": {
                "oneOf": [
                  {
                    "required": [
                      "custom"
                    ]
                  },
                  {
                    "required": [
                      "quickApplication"
                    ]
                  }
                ]
              }
            }
          ]
        },
        "title": "offers.v1.ApplicationCustomization",
        "description": "Customization options for the application form on apply-to-run offers."
      },
      "offers.v1.ApplicationCustomization.Custom": {
        "type": "object",
        "properties": {
          "consent": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "consent",
            "maxLength": 1000,
            "description": "Consent text shown to applicants (max 1000 chars)."
          },
          "customQuestions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/types.v1.CustomQuestionSettings"
            },
            "title": "custom_questions",
            "maxItems": 5,
            "description": "Custom questions presented to applicants (max 5)."
          }
        },
        "title": "offers.v1.ApplicationCustomization.Custom",
        "additionalProperties": false,
        "description": "Custom application configuration with consent text and custom questions."
      },
      "offers.v1.ApplicationData": {
        "type": "object",
        "properties": {
          "note": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "note",
            "maxLength": 1000,
            "description": "(OPTIONAL) Free-form note attached by the applying affiliate."
          },
          "customQuestions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/offers.v1.ApplicationData.CustomQuestions"
              }
            ],
            "title": "custom_questions",
            "description": "(OPTIONAL) Answers to the offer's application form."
          }
        },
        "title": "offers.v1.ApplicationData",
        "additionalProperties": false,
        "description": "Application submitted by an affiliate source to join an apply-to-run offer."
      },
      "offers.v1.ApplicationData.CustomQuestions": {
        "type": "object",
        "properties": {
          "consent": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.BoolValue"
              }
            ],
            "title": "consent",
            "description": "(OPTIONAL) Consent flag, present when the offer requires explicit consent."
          },
          "customQuestionAnswers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/types.v1.CustomQuestionAnswer"
            },
            "title": "custom_question_answers",
            "description": "(OPTIONAL) Answers to custom questions defined by the offer."
          }
        },
        "title": "offers.v1.ApplicationData.CustomQuestions",
        "additionalProperties": false,
        "description": "Affiliate-provided answers to the application form attached to the offer."
      },
      "offers.v1.CreateLandingPagesRequest": {
        "type": "object",
        "properties": {
          "offerId": {
            "type": "string",
            "title": "offer_id",
            "format": "uuid",
            "description": "Offer identifier (UUID) the landing pages are being created for."
          },
          "landingPages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/offers.v1.LandingPageParams"
            },
            "title": "landing_pages",
            "minItems": 1,
            "description": "Landing pages to create. Must contain at least one entry and all entries must share the same link type."
          }
        },
        "title": "offers.v1.CreateLandingPagesRequest",
        "required": [
          "offerId",
          "landingPages"
        ],
        "additionalProperties": false,
        "description": "Request to create one or more landing pages for an offer. All landing pages in the list must use the same link type.\ncreate_landing_pages.uniform_link_type // all landing pages in a single request must use the same link type\n"
      },
      "offers.v1.CreateLandingPagesResponse": {
        "type": "object",
        "properties": {
          "landingPages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/offers.v1.LandingPage"
            },
            "title": "landing_pages",
            "description": "Landing pages created by the request."
          }
        },
        "title": "offers.v1.CreateLandingPagesResponse",
        "required": [
          "landingPages"
        ],
        "additionalProperties": false,
        "description": "Response containing the created landing pages."
      },
      "offers.v1.CreateOfferCreativeRequest": {
        "type": "object",
        "properties": {
          "offerId": {
            "type": "string",
            "title": "offer_id",
            "format": "uuid",
            "description": "Offer identifier (UUID)."
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.CreativeType"
              }
            ],
            "not": {
              "enum": [
                "CREATIVE_TYPE_UNSPECIFIED"
              ]
            },
            "title": "type",
            "description": "Type of the creative. Must be a content-based type; file-based types use the upload endpoint.\nenum.defined_only = true\n"
          },
          "content": {
            "type": "string",
            "title": "content",
            "maxLength": 100000,
            "minLength": 1,
            "description": "Creative content (URL, HTML, or text up to 100000 chars)."
          },
          "name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "name",
            "maxLength": 255,
            "minLength": 1,
            "description": "(OPTIONAL) Human-readable name of the creative (1-255 chars)."
          },
          "note": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "note",
            "maxLength": 1000,
            "minLength": 1,
            "description": "(OPTIONAL) Internal note for the creative (1-1000 chars)."
          },
          "visibleInGetLink": {
            "type": "boolean",
            "title": "visible_in_get_link",
            "description": "Whether the creative is exposed in the affiliate \"Get link\" interface."
          }
        },
        "title": "offers.v1.CreateOfferCreativeRequest",
        "required": [
          "offerId",
          "type",
          "content",
          "visibleInGetLink"
        ],
        "additionalProperties": false
      },
      "offers.v1.CreateOfferCreativeResponse": {
        "type": "object",
        "properties": {
          "creative": {
            "allOf": [
              {
                "$ref": "#/components/schemas/offers.v1.OfferCreative"
              }
            ],
            "title": "creative",
            "description": "The created creative."
          }
        },
        "title": "offers.v1.CreateOfferCreativeResponse",
        "required": [
          "creative"
        ],
        "additionalProperties": false
      },
      "offers.v1.CreateOfferRequest": {
        "type": "object",
        "properties": {
          "offer": {
            "allOf": [
              {
                "$ref": "#/components/schemas/offers.v1.OfferParams"
              }
            ],
            "title": "offer",
            "description": "General offer settings such as name, visibility and targeting."
          },
          "pricing": {
            "allOf": [
              {
                "$ref": "#/components/schemas/offers.v1.OfferPricingParams"
              }
            ],
            "title": "pricing",
            "description": "Revenue and payout configuration for the offer."
          },
          "landingPages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/offers.v1.LandingPageParams"
            },
            "title": "landing_pages",
            "minItems": 1,
            "description": "Landing pages to add to the offer. Provide at least one; all must use the same link type."
          },
          "publishAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "publish_at",
            "description": "(OPTIONAL) When to publish the offer. Leave unset to publish immediately, or set a future time to schedule it.\ntimestamp.gt_now = true\n"
          }
        },
        "title": "offers.v1.CreateOfferRequest",
        "required": [
          "offer",
          "pricing",
          "landingPages"
        ],
        "additionalProperties": false,
        "description": "Request to create and publish a complete offer.\ncreate_and_publish_offer.uniform_link_type // all landing pages must use the same link type\n"
      },
      "offers.v1.CreateOfferResponse": {
        "type": "object",
        "properties": {
          "offer": {
            "allOf": [
              {
                "$ref": "#/components/schemas/offers.v1.Offer"
              }
            ],
            "title": "offer",
            "description": "The created offer with its pricing and landing pages."
          }
        },
        "title": "offers.v1.CreateOfferResponse",
        "required": [
          "offer"
        ],
        "additionalProperties": false,
        "description": "The created offer together with everything that was set up for it."
      },
      "offers.v1.DeleteOfferCreativeRequest": {
        "type": "object",
        "properties": {
          "offerId": {
            "type": "string",
            "title": "offer_id",
            "format": "uuid",
            "description": "Offer identifier (UUID)."
          },
          "creativeId": {
            "type": "string",
            "title": "creative_id",
            "format": "uuid",
            "description": "Identifier (UUID) of the creative to delete."
          }
        },
        "title": "offers.v1.DeleteOfferCreativeRequest",
        "required": [
          "offerId",
          "creativeId"
        ],
        "additionalProperties": false
      },
      "offers.v1.DeleteOfferCreativeResponse": {
        "type": "object",
        "title": "offers.v1.DeleteOfferCreativeResponse",
        "additionalProperties": false
      },
      "offers.v1.DirectLink": {
        "type": "object",
        "properties": {
          "publicId": {
            "type": "string",
            "title": "public_id",
            "description": "Public-facing direct link identifier used in tracking URLs."
          }
        },
        "title": "offers.v1.DirectLink",
        "required": [
          "publicId"
        ],
        "additionalProperties": false,
        "description": "Direct tracking link details for a landing page."
      },
      "offers.v1.DirectLinkParams": {
        "type": "object",
        "title": "offers.v1.DirectLinkParams",
        "additionalProperties": false,
        "description": "Marker payload selecting a direct tracking link for create/update inputs. Currently carries no fields."
      },
      "offers.v1.GetOfferRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "format": "uuid",
            "description": "Offer identifier (UUID) to retrieve."
          }
        },
        "title": "offers.v1.GetOfferRequest",
        "required": [
          "id"
        ],
        "additionalProperties": false,
        "description": "Request to retrieve a single offer together with its pricing and landing pages."
      },
      "offers.v1.GetOfferResponse": {
        "type": "object",
        "properties": {
          "offer": {
            "allOf": [
              {
                "$ref": "#/components/schemas/offers.v1.Offer"
              }
            ],
            "title": "offer",
            "description": "The requested offer with its pricing and landing pages."
          }
        },
        "title": "offers.v1.GetOfferResponse",
        "required": [
          "offer"
        ],
        "additionalProperties": false,
        "description": "The requested offer together with its pricing and landing pages."
      },
      "offers.v1.LandingPage": {
        "type": "object",
        "allOf": [
          {
            "oneOf": [
              {
                "required": [
                  "directLink"
                ]
              },
              {
                "required": [
                  "redirectLink"
                ]
              }
            ]
          }
        ],
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "directLink": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/offers.v1.DirectLink"
                  }
                ],
                "title": "direct_link",
                "description": "Set when the landing page uses a direct tracking link."
              }
            },
            "title": "direct_link"
          },
          {
            "type": "object",
            "properties": {
              "redirectLink": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/offers.v1.RedirectLink"
                  }
                ],
                "title": "redirect_link",
                "description": "Set when the landing page uses a redirect tracking link."
              }
            },
            "title": "redirect_link"
          }
        ],
        "unevaluatedProperties": false,
        "not": {
          "allOf": [
            {
              "anyOf": [
                {
                  "required": [
                    "directLink"
                  ]
                },
                {
                  "required": [
                    "redirectLink"
                  ]
                }
              ]
            },
            {
              "not": {
                "oneOf": [
                  {
                    "required": [
                      "directLink"
                    ]
                  },
                  {
                    "required": [
                      "redirectLink"
                    ]
                  }
                ]
              }
            }
          ]
        },
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Landing page unique identifier (UUID)."
          },
          "offerId": {
            "type": "string",
            "title": "offer_id",
            "description": "Identifier (UUID) of the offer this landing page belongs to."
          },
          "url": {
            "type": "string",
            "title": "url",
            "description": "Destination URL the landing page points to."
          },
          "name": {
            "type": "string",
            "title": "name",
            "description": "Landing page display name."
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.LandingPageStatus"
              }
            ],
            "title": "status",
            "description": "Current status of the landing page (enabled or disabled)."
          }
        },
        "title": "offers.v1.LandingPage",
        "required": [
          "id",
          "offerId",
          "url",
          "name",
          "status"
        ],
        "description": "Landing page paired with its tracking link metadata. The link variant indicates the tracking type."
      },
      "offers.v1.LandingPageParams": {
        "type": "object",
        "allOf": [
          {
            "oneOf": [
              {
                "required": [
                  "directLink"
                ]
              },
              {
                "required": [
                  "redirectLink"
                ]
              }
            ]
          }
        ],
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "directLink": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/offers.v1.DirectLinkParams"
                  }
                ],
                "title": "direct_link",
                "description": "Create the landing page with a direct tracking link."
              }
            },
            "title": "direct_link"
          },
          {
            "type": "object",
            "properties": {
              "redirectLink": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/offers.v1.RedirectLinkParams"
                  }
                ],
                "title": "redirect_link",
                "description": "Create the landing page with a redirect tracking link."
              }
            },
            "title": "redirect_link"
          }
        ],
        "unevaluatedProperties": false,
        "not": {
          "allOf": [
            {
              "anyOf": [
                {
                  "required": [
                    "directLink"
                  ]
                },
                {
                  "required": [
                    "redirectLink"
                  ]
                }
              ]
            },
            {
              "not": {
                "oneOf": [
                  {
                    "required": [
                      "directLink"
                    ]
                  },
                  {
                    "required": [
                      "redirectLink"
                    ]
                  }
                ]
              }
            }
          ]
        },
        "properties": {
          "name": {
            "type": "string",
            "title": "name",
            "maxLength": 255,
            "minLength": 1,
            "description": "Landing page display name."
          },
          "url": {
            "type": "string",
            "title": "url",
            "minLength": 1,
            "description": "Destination URL the landing page points to."
          }
        },
        "title": "offers.v1.LandingPageParams",
        "required": [
          "name",
          "url"
        ],
        "description": "Single landing page to create."
      },
      "offers.v1.ListAffiliateAssignmentsToOfferRequest": {
        "type": "object",
        "properties": {
          "offerId": {
            "type": "string",
            "title": "offer_id",
            "format": "uuid",
            "description": "Offer identifier (UUID) whose assignments are listed."
          },
          "pagination": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.OptionalPaginationParams"
              }
            ],
            "title": "pagination",
            "description": "(OPTIONAL) Pagination of the listed source assignments. Omit to list all of them."
          }
        },
        "title": "offers.v1.ListAffiliateAssignmentsToOfferRequest",
        "required": [
          "offerId"
        ],
        "additionalProperties": false,
        "description": "Request to list the affiliates assigned to an offer."
      },
      "offers.v1.ListAffiliateAssignmentsToOfferResponse": {
        "type": "object",
        "properties": {
          "assignments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/offers.v1.AffiliateAssignment"
            },
            "title": "assignments",
            "description": "The affiliate assignments for the offer."
          },
          "pagination": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Pagination"
              }
            ],
            "title": "pagination",
            "description": "Pagination details of the listed assignments."
          }
        },
        "title": "offers.v1.ListAffiliateAssignmentsToOfferResponse",
        "required": [
          "assignments",
          "pagination"
        ],
        "additionalProperties": false,
        "description": "The affiliate assignments for the offer, together with pagination details."
      },
      "offers.v1.ListLandingPagesRequest": {
        "type": "object",
        "properties": {
          "offerId": {
            "type": "string",
            "title": "offer_id",
            "format": "uuid",
            "description": "Offer identifier (UUID) whose landing pages are listed."
          },
          "pagination": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.PaginationParams"
              }
            ],
            "title": "pagination",
            "description": "Pagination of the listed landing pages."
          }
        },
        "title": "offers.v1.ListLandingPagesRequest",
        "required": [
          "offerId",
          "pagination"
        ],
        "additionalProperties": false,
        "description": "Request to list landing pages assigned to an offer."
      },
      "offers.v1.ListLandingPagesResponse": {
        "type": "object",
        "properties": {
          "landingPages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/offers.v1.LandingPage"
            },
            "title": "landing_pages",
            "description": "Landing pages assigned to the offer."
          },
          "pagination": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Pagination"
              }
            ],
            "title": "pagination",
            "description": "Pagination details of the listed offers."
          }
        },
        "title": "offers.v1.ListLandingPagesResponse",
        "required": [
          "landingPages",
          "pagination"
        ],
        "additionalProperties": false,
        "description": "Response containing landing pages of the offer with their tracking link metadata."
      },
      "offers.v1.ListOfferCreativesRequest": {
        "type": "object",
        "properties": {
          "offerId": {
            "type": "string",
            "title": "offer_id",
            "format": "uuid",
            "description": "Offer identifier (UUID)."
          }
        },
        "title": "offers.v1.ListOfferCreativesRequest",
        "required": [
          "offerId"
        ],
        "additionalProperties": false
      },
      "offers.v1.ListOfferCreativesResponse": {
        "type": "object",
        "properties": {
          "creatives": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/offers.v1.OfferCreative"
            },
            "title": "creatives",
            "description": "Creatives configured for the offer."
          }
        },
        "title": "offers.v1.ListOfferCreativesResponse",
        "required": [
          "creatives"
        ],
        "additionalProperties": false
      },
      "offers.v1.ListOffersRequest": {
        "type": "object",
        "properties": {
          "name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "name",
            "maxLength": 255,
            "description": "(OPTIONAL) Partial, case-insensitive match on offer name (max 255 chars)."
          },
          "visibilities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/enums.v1.OfferVisibility"
            },
            "title": "visibilities",
            "uniqueItems": true,
            "description": "(OPTIONAL) Filter by visibility; omit to include all visibilities."
          },
          "statuses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/enums.v1.OfferStatus"
            },
            "title": "statuses",
            "uniqueItems": true,
            "description": "(OPTIONAL) Match offers having any of the specified statuses."
          },
          "tagIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "tag_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) Match offers that have at least one of the provided tag IDs (UUIDs)."
          },
          "countryCodes": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[A-Z]{2}$",
              "description": "(OPTIONAL) "
            },
            "title": "country_codes",
            "uniqueItems": true,
            "description": "(OPTIONAL) Match offers targeting any of the specified country codes (ISO 3166-1 alpha-2)."
          },
          "conversionTypeIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "conversion_type_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) Match offers with pricing for any of the specified conversion type IDs (UUIDs)."
          },
          "categoryIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "category_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) Filter by category IDs (UUIDs)."
          },
          "pinned": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.BoolValue"
              }
            ],
            "title": "pinned",
            "description": "(OPTIONAL) When true: only pinned offers; false: only unpinned; unset: ignore."
          },
          "ids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) Return only the specified offer IDs (UUIDs)."
          },
          "pagination": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.PaginationParams"
              }
            ],
            "title": "pagination",
            "description": "Pagination of the listed offers."
          }
        },
        "title": "offers.v1.ListOffersRequest",
        "required": [
          "pagination"
        ],
        "additionalProperties": false,
        "description": "Request to list offers matching the given filters, each returned with its pricing and landing pages."
      },
      "offers.v1.ListOffersResponse": {
        "type": "object",
        "properties": {
          "offers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/offers.v1.Offer"
            },
            "title": "offers",
            "description": "Result offers with their pricing and landing pages."
          },
          "pagination": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Pagination"
              }
            ],
            "title": "pagination",
            "description": "Pagination details of the listed offers."
          }
        },
        "title": "offers.v1.ListOffersResponse",
        "required": [
          "offers",
          "pagination"
        ],
        "additionalProperties": false,
        "description": "Offers matching the request, each together with its pricing and landing pages."
      },
      "offers.v1.Offer": {
        "type": "object",
        "properties": {
          "data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/offers.v1.OfferData"
              }
            ],
            "title": "data",
            "description": "The offer data."
          },
          "pricing": {
            "allOf": [
              {
                "$ref": "#/components/schemas/offers.v1.OfferPricing"
              }
            ],
            "title": "pricing",
            "description": "The pricing configured for the offer."
          },
          "landingPages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/offers.v1.OfferLandingPage"
            },
            "title": "landing_pages",
            "description": "The landing pages of the offer."
          }
        },
        "title": "offers.v1.Offer",
        "required": [
          "data",
          "pricing",
          "landingPages"
        ],
        "additionalProperties": false,
        "description": "An offer together with its pricing and landing pages, in the same shape returned by create."
      },
      "offers.v1.OfferCreative": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Unique identifier of the creative (UUID)."
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.CreativeType"
              }
            ],
            "title": "type",
            "description": "Type of the creative."
          },
          "content": {
            "type": "string",
            "title": "content",
            "description": "Creative content (URL, HTML, or text up to 100000 chars)."
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "created_at",
            "description": "Timestamp when the creative was created (UTC)."
          },
          "meta": {
            "allOf": [
              {
                "$ref": "#/components/schemas/offers.v1.OfferCreative.Meta"
              }
            ],
            "title": "meta",
            "description": "Image/file metadata for the creative."
          },
          "name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "name",
            "description": "(OPTIONAL) Human-readable name of the creative (1-255 chars)."
          },
          "note": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "note",
            "description": "(OPTIONAL) Internal note for the creative (1-1000 chars)."
          },
          "visibleInGetLink": {
            "type": "boolean",
            "title": "visible_in_get_link",
            "description": "Whether the creative is exposed in the affiliate \"Get link\" interface."
          }
        },
        "title": "offers.v1.OfferCreative",
        "required": [
          "id",
          "type",
          "content",
          "createdAt",
          "meta",
          "visibleInGetLink"
        ],
        "additionalProperties": false,
        "description": "Single promotional creative (banner, image, HTML) attached to an offer."
      },
      "offers.v1.OfferCreative.Meta": {
        "type": "object",
        "properties": {
          "width": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.UInt32Value"
              }
            ],
            "title": "width",
            "description": "(OPTIONAL) Width in pixels, if applicable."
          },
          "height": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.UInt32Value"
              }
            ],
            "title": "height",
            "description": "(OPTIONAL) Height in pixels, if applicable."
          },
          "size": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.UInt32Value"
              }
            ],
            "title": "size",
            "description": "(OPTIONAL) File size in bytes, if applicable."
          }
        },
        "title": "offers.v1.OfferCreative.Meta",
        "additionalProperties": false,
        "description": "Image/file metadata for the creative."
      },
      "offers.v1.OfferData": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Offer unique identifier (UUID)."
          },
          "categoryId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "category_id",
            "description": "(OPTIONAL) Category identifier (UUID), if categorized."
          },
          "name": {
            "type": "string",
            "title": "name",
            "description": "Human-readable offer name."
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.OfferStatus"
              }
            ],
            "title": "status",
            "description": "Current offer status."
          },
          "defaultRevenueOriginId": {
            "type": "string",
            "title": "default_revenue_origin_id",
            "description": "Default revenue origin identifier for conversions attributed to this offer."
          },
          "description": {
            "type": "string",
            "title": "description",
            "description": "Public description of the offer."
          },
          "restrictions": {
            "type": "string",
            "title": "restrictions",
            "description": "Restrictions/terms that apply to promoting the offer."
          },
          "note": {
            "type": "string",
            "title": "note",
            "description": "Internal note, not intended for public display. Empty when the offer is listed for an affiliate."
          },
          "hasThumbnail": {
            "type": "boolean",
            "title": "has_thumbnail",
            "description": "Whether the offer has a thumbnail uploaded."
          },
          "visibility": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.OfferVisibility"
              }
            ],
            "title": "visibility",
            "description": "Visibility level of the offer (public, private, apply-to-run)."
          },
          "devices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/enums.v1.Device"
            },
            "title": "devices",
            "description": "Allowed/targeted devices for this offer."
          },
          "trafficSources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/enums.v1.OfferTrafficSource"
            },
            "title": "traffic_sources",
            "description": "Allowed/targeted traffic sources."
          },
          "tagIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "title": "tag_ids",
            "description": "Tags associated with the offer."
          },
          "pinned": {
            "type": "boolean",
            "title": "pinned",
            "description": "Whether the offer is pinned (highlighted for quick access)."
          },
          "trackingType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.TrackingType"
              }
            ],
            "title": "tracking_type",
            "description": "Tracking type used by the offer."
          },
          "deactivateAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "deactivate_at",
            "description": "(OPTIONAL) Scheduled time at which the offer will be automatically deactivated."
          },
          "publishAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "publish_at",
            "description": "(OPTIONAL) Scheduled time at which the offer will be automatically published."
          },
          "applicationCustomization": {
            "allOf": [
              {
                "$ref": "#/components/schemas/offers.v1.ApplicationCustomization"
              }
            ],
            "title": "application_customization",
            "description": "(OPTIONAL) Application form customization; set only for `VISIBILITY_APPLY_TO_RUN` offers."
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "created_at",
            "description": "Timestamp when the offer was created (UTC)."
          },
          "modifiedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "modified_at",
            "description": "Timestamp of the last modification (UTC)."
          },
          "previewUrl": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "preview_url",
            "description": "(OPTIONAL) URL affiliates can open to inspect the landing page without taking a tracking link; no click is recorded."
          }
        },
        "title": "offers.v1.OfferData",
        "required": [
          "id",
          "name",
          "status",
          "defaultRevenueOriginId",
          "description",
          "restrictions",
          "note",
          "hasThumbnail",
          "visibility",
          "devices",
          "trafficSources",
          "tagIds",
          "pinned",
          "trackingType",
          "createdAt",
          "modifiedAt"
        ],
        "additionalProperties": false,
        "description": "Offer entity as returned by the API."
      },
      "offers.v1.OfferLandingPage": {
        "type": "object",
        "allOf": [
          {
            "oneOf": [
              {
                "required": [
                  "directLink"
                ]
              },
              {
                "required": [
                  "redirectLink"
                ]
              }
            ]
          }
        ],
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "directLink": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/offers.v1.DirectLink"
                  }
                ],
                "title": "direct_link",
                "description": "Set when the landing page uses a direct tracking link."
              }
            },
            "title": "direct_link"
          },
          {
            "type": "object",
            "properties": {
              "redirectLink": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/offers.v1.RedirectLink"
                  }
                ],
                "title": "redirect_link",
                "description": "Set when the landing page uses a redirect tracking link."
              }
            },
            "title": "redirect_link"
          }
        ],
        "unevaluatedProperties": false,
        "not": {
          "allOf": [
            {
              "anyOf": [
                {
                  "required": [
                    "directLink"
                  ]
                },
                {
                  "required": [
                    "redirectLink"
                  ]
                }
              ]
            },
            {
              "not": {
                "oneOf": [
                  {
                    "required": [
                      "directLink"
                    ]
                  },
                  {
                    "required": [
                      "redirectLink"
                    ]
                  }
                ]
              }
            }
          ]
        },
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Landing page unique identifier (UUID)."
          },
          "url": {
            "type": "string",
            "title": "url",
            "description": "Destination URL the landing page points to."
          },
          "name": {
            "type": "string",
            "title": "name",
            "description": "Landing page display name."
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.LandingPageStatus"
              }
            ],
            "title": "status",
            "description": "Current status of the landing page (enabled or disabled)."
          }
        },
        "title": "offers.v1.OfferLandingPage",
        "required": [
          "id",
          "url",
          "name",
          "status"
        ],
        "description": "Landing page paired with its tracking link metadata. The link variant indicates the tracking type."
      },
      "offers.v1.OfferParams": {
        "type": "object",
        "properties": {
          "categoryId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "category_id",
            "format": "uuid",
            "description": "(OPTIONAL) Category identifier (UUID); omit if uncategorized."
          },
          "name": {
            "type": "string",
            "title": "name",
            "maxLength": 255,
            "minLength": 1,
            "description": "Human-readable offer name (1-255 chars)."
          },
          "defaultRevenueOriginId": {
            "type": "string",
            "title": "default_revenue_origin_id",
            "format": "uuid",
            "description": "Default revenue origin identifier (UUID) for conversions attributed to this offer."
          },
          "description": {
            "type": "string",
            "title": "description",
            "description": "(OPTIONAL) Public description of the offer.\nstring.max_bytes = 65536\n"
          },
          "restrictions": {
            "type": "string",
            "title": "restrictions",
            "description": "(OPTIONAL) Restrictions/terms that apply to promoting the offer.\nstring.max_bytes = 65536\n"
          },
          "note": {
            "type": "string",
            "title": "note",
            "description": "(OPTIONAL) Internal note, not intended for public display.\nstring.max_bytes = 65536\n"
          },
          "visibility": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.OfferVisibility"
              }
            ],
            "not": {
              "enum": [
                "OFFER_VISIBILITY_UNSPECIFIED"
              ]
            },
            "title": "visibility",
            "description": "Visibility level of the offer (public, private, apply-to-run).\nenum.defined_only = true\n"
          },
          "devices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/enums.v1.Device"
            },
            "title": "devices",
            "uniqueItems": true,
            "description": "(OPTIONAL) Allowed/targeted devices for this offer."
          },
          "trafficSources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/enums.v1.OfferTrafficSource"
            },
            "title": "traffic_sources",
            "uniqueItems": true,
            "description": "(OPTIONAL) Allowed/targeted traffic sources."
          },
          "tagIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "tag_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) Tag identifiers (UUIDs) associated with the offer."
          },
          "applicationCustomization": {
            "allOf": [
              {
                "$ref": "#/components/schemas/offers.v1.ApplicationCustomization"
              }
            ],
            "title": "application_customization",
            "description": "(OPTIONAL) Application form customization; specify only for `VISIBILITY_APPLY_TO_RUN` offers."
          },
          "previewUrl": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "preview_url",
            "format": "uri",
            "description": "(OPTIONAL) URL affiliates can open to inspect the landing page without taking a tracking link; no click is recorded."
          }
        },
        "title": "offers.v1.OfferParams",
        "required": [
          "name",
          "defaultRevenueOriginId",
          "visibility"
        ],
        "additionalProperties": false,
        "description": "Editable parameters of an offer used by create and update requests."
      },
      "offers.v1.OfferPricing": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Unique id of this pricing configuration."
          },
          "conversionTypeSettings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/pricing.v1.ConversionTypeSetting"
            },
            "title": "conversion_type_settings",
            "description": "Per-conversion-type settings."
          },
          "targetingGroups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/pricing.v1.TargetingGroup"
            },
            "title": "targeting_groups",
            "description": "Targeting groups holding the revenue/payout amounts."
          }
        },
        "title": "offers.v1.OfferPricing",
        "required": [
          "id",
          "conversionTypeSettings",
          "targetingGroups"
        ],
        "additionalProperties": false,
        "description": "The pricing configuration stored for an offer, as returned by the API. This is the read-back representation of\n OfferPricingParams."
      },
      "offers.v1.OfferPricingParams": {
        "type": "object",
        "properties": {
          "conversionTypeSettings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/pricing.v1.ConversionTypeSettingParams"
            },
            "title": "conversion_type_settings",
            "minItems": 1,
            "description": "Settings for each conversion type the offer pays out on, such as value type, hold period and\n qualification rules. Provide at least one."
          },
          "targetingGroups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/pricing.v1.TargetingGroupParams"
            },
            "title": "targeting_groups",
            "minItems": 1,
            "description": "Targeting groups that hold the revenue and cost (payout) settings. Provide at least one."
          }
        },
        "title": "offers.v1.OfferPricingParams",
        "required": [
          "conversionTypeSettings",
          "targetingGroups"
        ],
        "additionalProperties": false,
        "description": "Revenue and payout configuration for the offer.\noffer_pricing.at_most_one_featured_targeting_group // At most one targeting group has to be featured.\n"
      },
      "offers.v1.PrioritizeLandingPagesRequest": {
        "type": "object",
        "properties": {
          "offerId": {
            "type": "string",
            "title": "offer_id",
            "format": "uuid",
            "description": "Offer identifier (UUID) whose landing pages are being reordered."
          },
          "orderedLandingPageIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "title": "ordered_landing_page_ids",
            "minItems": 1,
            "uniqueItems": true,
            "description": "Landing page identifiers (UUIDs) listed in the desired priority order. Must be unique and contain at least one entry."
          }
        },
        "title": "offers.v1.PrioritizeLandingPagesRequest",
        "required": [
          "offerId",
          "orderedLandingPageIds"
        ],
        "additionalProperties": false,
        "description": "Request to set the priority order of landing pages for an offer."
      },
      "offers.v1.PrioritizeLandingPagesResponse": {
        "type": "object",
        "title": "offers.v1.PrioritizeLandingPagesResponse",
        "additionalProperties": false
      },
      "offers.v1.QuickApplication": {
        "type": "object",
        "title": "offers.v1.QuickApplication",
        "additionalProperties": false,
        "description": "Marker selecting a single-click quick application without custom questions. Currently carries no fields."
      },
      "offers.v1.RedirectLink": {
        "type": "object",
        "properties": {
          "targeting": {
            "allOf": [
              {
                "$ref": "#/components/schemas/offers.v1.Targeting"
              }
            ],
            "title": "targeting",
            "description": "Targeting rules applied to this redirect landing page."
          }
        },
        "title": "offers.v1.RedirectLink",
        "required": [
          "targeting"
        ],
        "additionalProperties": false,
        "description": "Redirect tracking link details for a landing page."
      },
      "offers.v1.RedirectLinkParams": {
        "type": "object",
        "properties": {
          "targeting": {
            "allOf": [
              {
                "$ref": "#/components/schemas/offers.v1.TargetingParams"
              }
            ],
            "title": "targeting",
            "description": "(OPTIONAL) Optional targeting rules applied to this landing page."
          }
        },
        "title": "offers.v1.RedirectLinkParams",
        "additionalProperties": false,
        "description": "Input payload selecting a redirect tracking link for create/update."
      },
      "offers.v1.SetAffiliatesAccessToOfferRequest": {
        "type": "object",
        "properties": {
          "offerId": {
            "type": "string",
            "title": "offer_id",
            "format": "uuid",
            "description": "Offer identifier (UUID) the sources are being assigned to."
          },
          "sourceIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "title": "source_ids",
            "minItems": 1,
            "uniqueItems": true,
            "description": "Source identifiers (UUIDs) to assign. Must be unique and contain at least one entry."
          },
          "access": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.OfferAccess"
              }
            ],
            "not": {
              "enum": [
                "OFFER_ACCESS_UNSPECIFIED"
              ]
            },
            "title": "access",
            "description": "Access level to grant each source (allowed or forbidden).\nenum.defined_only = true\n"
          }
        },
        "title": "offers.v1.SetAffiliatesAccessToOfferRequest",
        "required": [
          "offerId",
          "sourceIds",
          "access"
        ],
        "additionalProperties": false,
        "description": "Request to set the access level of one or more affiliate sources on an offer, creating the assignment when it does not exist yet."
      },
      "offers.v1.SetAffiliatesAccessToOfferResponse": {
        "type": "object",
        "properties": {
          "assignments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/offers.v1.AffiliateAssignment"
            },
            "title": "assignments",
            "description": "The resulting affiliate-to-offer assignments."
          }
        },
        "title": "offers.v1.SetAffiliatesAccessToOfferResponse",
        "required": [
          "assignments"
        ],
        "additionalProperties": false,
        "description": "The affiliate assignments that were created or updated."
      },
      "offers.v1.Targeting": {
        "type": "object",
        "properties": {
          "locations": {
            "allOf": [
              {
                "$ref": "#/components/schemas/locations.v1.Locations"
              }
            ],
            "title": "locations",
            "description": "Geographic locations configured for targeting."
          },
          "languages": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "(OPTIONAL) "
            },
            "title": "languages",
            "description": "(OPTIONAL) ISO 639-1 two-letter language codes configured for targeting."
          },
          "devices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/enums.v1.Device"
            },
            "title": "devices",
            "description": "(OPTIONAL) Device types configured for targeting."
          },
          "operatingSystems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/enums.v1.OperatingSystem"
            },
            "title": "operating_systems",
            "description": "(OPTIONAL) Operating systems configured for targeting."
          }
        },
        "title": "offers.v1.Targeting",
        "required": [
          "locations"
        ],
        "additionalProperties": false,
        "description": "Targeting criteria returned for a redirect landing page."
      },
      "offers.v1.TargetingParams": {
        "type": "object",
        "properties": {
          "locations": {
            "allOf": [
              {
                "$ref": "#/components/schemas/locations.v1.LocationsRequest"
              }
            ],
            "title": "locations",
            "description": "(OPTIONAL) Geographic locations to target. Omit to target all locations."
          },
          "languages": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[a-z]{2}$",
              "description": "(OPTIONAL) "
            },
            "title": "languages",
            "uniqueItems": true,
            "description": "(OPTIONAL) ISO 639-1 two-letter language codes to target. Omit to target all languages."
          },
          "devices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/enums.v1.Device"
            },
            "title": "devices",
            "uniqueItems": true,
            "description": "(OPTIONAL) Device types to target. Omit to target all devices."
          },
          "operatingSystems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/enums.v1.OperatingSystem"
            },
            "title": "operating_systems",
            "uniqueItems": true,
            "description": "(OPTIONAL) Operating systems to target. Omit to target all operating systems."
          }
        },
        "title": "offers.v1.TargetingParams",
        "additionalProperties": false,
        "description": "Targeting criteria used as input when creating or updating a redirect landing page."
      },
      "offers.v1.UpdateLandingPageRequest": {
        "type": "object",
        "allOf": [
          {
            "oneOf": [
              {
                "required": [
                  "directLink"
                ]
              },
              {
                "required": [
                  "redirectLink"
                ]
              }
            ]
          }
        ],
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "directLink": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/offers.v1.DirectLinkParams"
                  }
                ],
                "title": "direct_link",
                "description": "Update for a landing page that uses a direct tracking link."
              }
            },
            "title": "direct_link"
          },
          {
            "type": "object",
            "properties": {
              "redirectLink": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/offers.v1.RedirectLinkParams"
                  }
                ],
                "title": "redirect_link",
                "description": "Update for a landing page that uses a redirect tracking link."
              }
            },
            "title": "redirect_link"
          }
        ],
        "unevaluatedProperties": false,
        "not": {
          "allOf": [
            {
              "anyOf": [
                {
                  "required": [
                    "directLink"
                  ]
                },
                {
                  "required": [
                    "redirectLink"
                  ]
                }
              ]
            },
            {
              "not": {
                "oneOf": [
                  {
                    "required": [
                      "directLink"
                    ]
                  },
                  {
                    "required": [
                      "redirectLink"
                    ]
                  }
                ]
              }
            }
          ]
        },
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "format": "uuid",
            "description": "Landing page identifier (UUID) to update."
          },
          "name": {
            "type": "string",
            "title": "name",
            "maxLength": 255,
            "minLength": 1,
            "description": "New landing page display name."
          },
          "url": {
            "type": "string",
            "title": "url",
            "minLength": 1,
            "description": "New destination URL the landing page points to."
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.LandingPageStatus"
              }
            ],
            "not": {
              "enum": [
                "LANDING_PAGE_STATUS_UNSPECIFIED"
              ]
            },
            "title": "status",
            "description": "New landing page status (enabled or disabled)."
          }
        },
        "title": "offers.v1.UpdateLandingPageRequest",
        "required": [
          "id",
          "name",
          "url",
          "status"
        ],
        "description": "Request to update an existing landing page. The provided link variant must match the landing page's existing\n tracking type; switching tracking type is not supported."
      },
      "offers.v1.UpdateLandingPageResponse": {
        "type": "object",
        "properties": {
          "landingPage": {
            "allOf": [
              {
                "$ref": "#/components/schemas/offers.v1.LandingPage"
              }
            ],
            "title": "landing_page",
            "description": "Updated landing page."
          }
        },
        "title": "offers.v1.UpdateLandingPageResponse",
        "required": [
          "landingPage"
        ],
        "additionalProperties": false,
        "description": "Response containing the updated landing page."
      },
      "offers.v1.UpdateOfferCreativeRequest": {
        "type": "object",
        "properties": {
          "offerId": {
            "type": "string",
            "title": "offer_id",
            "format": "uuid",
            "description": "Offer identifier (UUID)."
          },
          "creativeId": {
            "type": "string",
            "title": "creative_id",
            "format": "uuid",
            "description": "Identifier (UUID) of the creative to update."
          },
          "content": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "content",
            "maxLength": 100000,
            "minLength": 1,
            "description": "(OPTIONAL) New creative content (URL, HTML, or text up to 100000 chars). Leave unset to keep the current content."
          },
          "name": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "name",
            "maxLength": 255,
            "minLength": 1,
            "description": "(OPTIONAL) Human-readable name of the creative (1-255 chars)."
          },
          "note": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "note",
            "maxLength": 1000,
            "minLength": 1,
            "description": "(OPTIONAL) Internal note for the creative (1-1000 chars)."
          },
          "visibleInGetLink": {
            "type": "boolean",
            "title": "visible_in_get_link",
            "description": "Whether the creative is exposed in the affiliate \"Get link\" interface."
          }
        },
        "title": "offers.v1.UpdateOfferCreativeRequest",
        "required": [
          "offerId",
          "creativeId",
          "visibleInGetLink"
        ],
        "additionalProperties": false
      },
      "offers.v1.UpdateOfferCreativeResponse": {
        "type": "object",
        "properties": {
          "creative": {
            "allOf": [
              {
                "$ref": "#/components/schemas/offers.v1.OfferCreative"
              }
            ],
            "title": "creative",
            "description": "The updated creative."
          }
        },
        "title": "offers.v1.UpdateOfferCreativeResponse",
        "required": [
          "creative"
        ],
        "additionalProperties": false
      },
      "offers.v1.UpdateOfferPricingRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "format": "uuid",
            "description": "Identifier (UUID) of the offer whose pricing is updated."
          },
          "pricing": {
            "allOf": [
              {
                "$ref": "#/components/schemas/offers.v1.OfferPricingParams"
              }
            ],
            "title": "pricing",
            "description": "The new pricing settings for the offer."
          }
        },
        "title": "offers.v1.UpdateOfferPricingRequest",
        "required": [
          "id",
          "pricing"
        ],
        "additionalProperties": false,
        "description": "Request to update an offer's pricing settings."
      },
      "offers.v1.UpdateOfferPricingResponse": {
        "type": "object",
        "properties": {
          "pricing": {
            "allOf": [
              {
                "$ref": "#/components/schemas/offers.v1.OfferPricing"
              }
            ],
            "title": "pricing",
            "description": "The updated pricing configuration."
          }
        },
        "title": "offers.v1.UpdateOfferPricingResponse",
        "required": [
          "pricing"
        ],
        "additionalProperties": false,
        "description": "The offer's updated pricing configuration."
      },
      "offers.v1.UpdateOfferRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "format": "uuid",
            "description": "Identifier (UUID) of the offer to update."
          },
          "offer": {
            "allOf": [
              {
                "$ref": "#/components/schemas/offers.v1.OfferParams"
              }
            ],
            "title": "offer",
            "description": "The full new general settings for the offer. Replaces the offer's existing settings."
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.OfferStatus"
              }
            ],
            "not": {
              "enum": [
                "OFFER_STATUS_UNSPECIFIED"
              ]
            },
            "title": "status",
            "description": "New status for the offer. Setting it to active requires the offer to have pricing configured.\nenum.defined_only = true\n"
          },
          "publishAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "publish_at",
            "description": "(OPTIONAL) When to automatically publish the offer. Leave unset to keep the offer's current schedule, or set a\n future time to (re)schedule it.\ntimestamp.gt_now = true\n"
          }
        },
        "title": "offers.v1.UpdateOfferRequest",
        "required": [
          "id",
          "offer",
          "status"
        ],
        "additionalProperties": false,
        "description": "Request to update an offer's general settings."
      },
      "offers.v1.UpdateOfferResponse": {
        "type": "object",
        "properties": {
          "offer": {
            "allOf": [
              {
                "$ref": "#/components/schemas/offers.v1.OfferData"
              }
            ],
            "title": "offer",
            "description": "The updated offer data."
          }
        },
        "title": "offers.v1.UpdateOfferResponse",
        "required": [
          "offer"
        ],
        "additionalProperties": false,
        "description": "The offer's updated general settings."
      },
      "payment_methods.v1.CreatePaymentMethodRequest": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "title": "account_id",
            "format": "uuid",
            "description": "Account ID to associate the payment method with."
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/payment_methods.v1.PaymentMethodType"
              }
            ],
            "not": {
              "enum": [
                "PAYMENT_METHOD_TYPE_UNSPECIFIED"
              ]
            },
            "title": "type",
            "description": "Payment method type."
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Currency"
              }
            ],
            "title": "currency",
            "description": "Currency for the payment method. Uses ISO 4217 format."
          },
          "data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/payment_methods.v1.PaymentMethodData"
              }
            ],
            "title": "data",
            "description": "Payment method data."
          }
        },
        "title": "payment_methods.v1.CreatePaymentMethodRequest",
        "required": [
          "currency",
          "data"
        ],
        "additionalProperties": false,
        "description": "Create a new payment method."
      },
      "payment_methods.v1.CreatePaymentMethodResponse": {
        "type": "object",
        "properties": {
          "paymentMethod": {
            "allOf": [
              {
                "$ref": "#/components/schemas/payment_methods.v1.PaymentMethod"
              }
            ],
            "title": "payment_method"
          }
        },
        "title": "payment_methods.v1.CreatePaymentMethodResponse",
        "additionalProperties": false,
        "description": "Feedback for creation of the payment method."
      },
      "payment_methods.v1.ListSupportedPaymentMethodTypesRequest": {
        "type": "object",
        "title": "payment_methods.v1.ListSupportedPaymentMethodTypesRequest",
        "additionalProperties": false,
        "description": "Request to list supported payment method types."
      },
      "payment_methods.v1.ListSupportedPaymentMethodTypesResponse": {
        "type": "object",
        "properties": {
          "paymentMethodTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/payment_methods.v1.ListSupportedPaymentMethodTypesResponse.PaymentMethodType"
            },
            "title": "payment_method_types",
            "description": "List of available payment method types."
          }
        },
        "title": "payment_methods.v1.ListSupportedPaymentMethodTypesResponse",
        "additionalProperties": false,
        "description": "List of supported payment method types."
      },
      "payment_methods.v1.ListSupportedPaymentMethodTypesResponse.PaymentMethodType": {
        "type": "object",
        "properties": {
          "paymentMethodType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/payment_methods.v1.PaymentMethodType"
              }
            ],
            "title": "payment_method_type",
            "description": "Type of the payment method."
          },
          "currencyCodes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "title": "currency_codes",
            "description": "Currency codes supported by this payment method type. Uses ISO 4217 format."
          }
        },
        "title": "payment_methods.v1.ListSupportedPaymentMethodTypesResponse.PaymentMethodType",
        "additionalProperties": false,
        "description": "Payment method type with supported currencies."
      },
      "payment_methods.v1.PaymentMethod": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Identifier of the payment method."
          },
          "accountId": {
            "type": "string",
            "title": "account_id",
            "description": "Account associated with the payment method."
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/payment_methods.v1.PaymentMethodType"
              }
            ],
            "title": "type",
            "description": "Payment method type."
          },
          "currencyCode": {
            "type": "string",
            "title": "currency_code",
            "description": "Currency used in the payment method. Uses ISO 4217 format."
          },
          "data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/payment_methods.v1.PaymentMethodData"
              }
            ],
            "title": "data",
            "description": "Detailed data of the selected payment method. See below for more details."
          },
          "default": {
            "type": "boolean",
            "title": "default",
            "description": "Designates if payment method is set as default. Only one payment method can have this set as true."
          }
        },
        "title": "payment_methods.v1.PaymentMethod",
        "additionalProperties": false,
        "description": "Payment method detail"
      },
      "payment_methods.v1.PaymentMethodData": {
        "type": "object",
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "bankTransfer": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/payment_methods.v1.PaymentMethodData.BankTransfer"
                  }
                ],
                "title": "bank_transfer"
              }
            },
            "title": "bank_transfer"
          },
          {
            "type": "object",
            "properties": {
              "bitcoin": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/payment_methods.v1.PaymentMethodData.Bitcoin"
                  }
                ],
                "title": "bitcoin"
              }
            },
            "title": "bitcoin"
          },
          {
            "type": "object",
            "properties": {
              "creditStore": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/payment_methods.v1.PaymentMethodData.CreditStore"
                  }
                ],
                "title": "credit_store"
              }
            },
            "title": "credit_store"
          },
          {
            "type": "object",
            "properties": {
              "custom": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/payment_methods.v1.PaymentMethodData.Custom"
                  }
                ],
                "title": "custom"
              }
            },
            "title": "custom"
          },
          {
            "type": "object",
            "properties": {
              "directDeposit": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/payment_methods.v1.PaymentMethodData.DirectDeposit"
                  }
                ],
                "title": "direct_deposit"
              }
            },
            "title": "direct_deposit"
          },
          {
            "type": "object",
            "properties": {
              "ether": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/payment_methods.v1.PaymentMethodData.Ether"
                  }
                ],
                "title": "ether"
              }
            },
            "title": "ether"
          },
          {
            "type": "object",
            "properties": {
              "giftCard": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/payment_methods.v1.PaymentMethodData.GiftCard"
                  }
                ],
                "title": "gift_card"
              }
            },
            "title": "gift_card"
          },
          {
            "type": "object",
            "properties": {
              "mercadoPago": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/payment_methods.v1.PaymentMethodData.MercadoPago"
                  }
                ],
                "title": "mercado_pago"
              }
            },
            "title": "mercado_pago"
          },
          {
            "type": "object",
            "properties": {
              "neteller": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/payment_methods.v1.PaymentMethodData.Neteller"
                  }
                ],
                "title": "neteller"
              }
            },
            "title": "neteller"
          },
          {
            "type": "object",
            "properties": {
              "paxum": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/payment_methods.v1.PaymentMethodData.Paxum"
                  }
                ],
                "title": "paxum"
              }
            },
            "title": "paxum"
          },
          {
            "type": "object",
            "properties": {
              "payPal": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/payment_methods.v1.PaymentMethodData.PayPal"
                  }
                ],
                "title": "pay_pal"
              }
            },
            "title": "pay_pal"
          },
          {
            "type": "object",
            "properties": {
              "payoneer": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/payment_methods.v1.PaymentMethodData.Payoneer"
                  }
                ],
                "title": "payoneer"
              }
            },
            "title": "payoneer"
          },
          {
            "type": "object",
            "properties": {
              "revolut": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/payment_methods.v1.PaymentMethodData.Revolut"
                  }
                ],
                "title": "revolut"
              }
            },
            "title": "revolut"
          },
          {
            "type": "object",
            "properties": {
              "sepa": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/payment_methods.v1.PaymentMethodData.Sepa"
                  }
                ],
                "title": "sepa"
              }
            },
            "title": "sepa"
          },
          {
            "type": "object",
            "properties": {
              "skrill": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/payment_methods.v1.PaymentMethodData.Skrill"
                  }
                ],
                "title": "skrill"
              }
            },
            "title": "skrill"
          },
          {
            "type": "object",
            "properties": {
              "stripeConnect": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/payment_methods.v1.PaymentMethodData.StripeConnect"
                  }
                ],
                "title": "stripe_connect"
              }
            },
            "title": "stripe_connect"
          },
          {
            "type": "object",
            "properties": {
              "tipalti": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/payment_methods.v1.PaymentMethodData.Tipalti"
                  }
                ],
                "title": "tipalti"
              }
            },
            "title": "tipalti"
          },
          {
            "type": "object",
            "properties": {
              "usdc": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/payment_methods.v1.PaymentMethodData.Usdc"
                  }
                ],
                "title": "usdc"
              }
            },
            "title": "usdc"
          },
          {
            "type": "object",
            "properties": {
              "usdt": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/payment_methods.v1.PaymentMethodData.Usdt"
                  }
                ],
                "title": "usdt"
              }
            },
            "title": "usdt"
          },
          {
            "type": "object",
            "properties": {
              "wise": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/payment_methods.v1.PaymentMethodData.Wise"
                  }
                ],
                "title": "wise"
              }
            },
            "title": "wise"
          }
        ],
        "unevaluatedProperties": false,
        "not": {
          "allOf": [
            {
              "anyOf": [
                {
                  "required": [
                    "bankTransfer"
                  ]
                },
                {
                  "required": [
                    "bitcoin"
                  ]
                },
                {
                  "required": [
                    "creditStore"
                  ]
                },
                {
                  "required": [
                    "custom"
                  ]
                },
                {
                  "required": [
                    "directDeposit"
                  ]
                },
                {
                  "required": [
                    "ether"
                  ]
                },
                {
                  "required": [
                    "giftCard"
                  ]
                },
                {
                  "required": [
                    "mercadoPago"
                  ]
                },
                {
                  "required": [
                    "neteller"
                  ]
                },
                {
                  "required": [
                    "paxum"
                  ]
                },
                {
                  "required": [
                    "payPal"
                  ]
                },
                {
                  "required": [
                    "payoneer"
                  ]
                },
                {
                  "required": [
                    "revolut"
                  ]
                },
                {
                  "required": [
                    "sepa"
                  ]
                },
                {
                  "required": [
                    "skrill"
                  ]
                },
                {
                  "required": [
                    "stripeConnect"
                  ]
                },
                {
                  "required": [
                    "tipalti"
                  ]
                },
                {
                  "required": [
                    "usdc"
                  ]
                },
                {
                  "required": [
                    "usdt"
                  ]
                },
                {
                  "required": [
                    "wise"
                  ]
                }
              ]
            },
            {
              "not": {
                "oneOf": [
                  {
                    "required": [
                      "bankTransfer"
                    ]
                  },
                  {
                    "required": [
                      "bitcoin"
                    ]
                  },
                  {
                    "required": [
                      "creditStore"
                    ]
                  },
                  {
                    "required": [
                      "custom"
                    ]
                  },
                  {
                    "required": [
                      "directDeposit"
                    ]
                  },
                  {
                    "required": [
                      "ether"
                    ]
                  },
                  {
                    "required": [
                      "giftCard"
                    ]
                  },
                  {
                    "required": [
                      "mercadoPago"
                    ]
                  },
                  {
                    "required": [
                      "neteller"
                    ]
                  },
                  {
                    "required": [
                      "paxum"
                    ]
                  },
                  {
                    "required": [
                      "payPal"
                    ]
                  },
                  {
                    "required": [
                      "payoneer"
                    ]
                  },
                  {
                    "required": [
                      "revolut"
                    ]
                  },
                  {
                    "required": [
                      "sepa"
                    ]
                  },
                  {
                    "required": [
                      "skrill"
                    ]
                  },
                  {
                    "required": [
                      "stripeConnect"
                    ]
                  },
                  {
                    "required": [
                      "tipalti"
                    ]
                  },
                  {
                    "required": [
                      "usdc"
                    ]
                  },
                  {
                    "required": [
                      "usdt"
                    ]
                  },
                  {
                    "required": [
                      "wise"
                    ]
                  }
                ]
              }
            }
          ]
        },
        "title": "payment_methods.v1.PaymentMethodData",
        "description": "Payment methods details"
      },
      "payment_methods.v1.PaymentMethodData.BankTransfer": {
        "type": "object",
        "properties": {
          "bankAccountNumber": {
            "type": "string",
            "title": "bank_account_number",
            "maxLength": 255,
            "minLength": 1,
            "description": "Bank account number"
          },
          "bankAddress": {
            "type": "string",
            "title": "bank_address",
            "maxLength": 255,
            "minLength": 1,
            "description": "Address of the bank"
          },
          "bankName": {
            "type": "string",
            "title": "bank_name",
            "maxLength": 255,
            "minLength": 1,
            "description": "Name of the bank"
          },
          "swift": {
            "type": "string",
            "title": "swift",
            "maxLength": 255,
            "description": "SWIFT code for the account"
          },
          "aba": {
            "type": "string",
            "title": "aba",
            "maxLength": 255,
            "description": "ABA number (for U.S. transfers)"
          },
          "note": {
            "type": "string",
            "title": "note",
            "maxLength": 255,
            "description": "Internal note."
          }
        },
        "title": "payment_methods.v1.PaymentMethodData.BankTransfer",
        "additionalProperties": false,
        "description": "Bank transfer"
      },
      "payment_methods.v1.PaymentMethodData.Bitcoin": {
        "type": "object",
        "properties": {
          "cryptoWalletAddress": {
            "type": "string",
            "title": "crypto_wallet_address",
            "maxLength": 255,
            "minLength": 1,
            "description": "Address of the crypto wallet."
          },
          "note": {
            "type": "string",
            "title": "note",
            "maxLength": 255,
            "description": "Internal note."
          }
        },
        "title": "payment_methods.v1.PaymentMethodData.Bitcoin",
        "additionalProperties": false,
        "description": "Bitcoin"
      },
      "payment_methods.v1.PaymentMethodData.CreditStore": {
        "type": "object",
        "properties": {
          "identification": {
            "type": "string",
            "title": "identification",
            "maxLength": 255,
            "minLength": 1,
            "description": "Credit store code."
          },
          "note": {
            "type": "string",
            "title": "note",
            "maxLength": 255,
            "description": "Internal note."
          }
        },
        "title": "payment_methods.v1.PaymentMethodData.CreditStore",
        "additionalProperties": false,
        "description": "Credit store"
      },
      "payment_methods.v1.PaymentMethodData.Custom": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "title": "name",
            "maxLength": 255,
            "minLength": 1,
            "description": "Custom payment method name."
          },
          "identification": {
            "type": "string",
            "title": "identification",
            "maxLength": 255,
            "minLength": 1,
            "description": "Custom payment method identification."
          },
          "note": {
            "type": "string",
            "title": "note",
            "maxLength": 255,
            "description": "Internal note."
          }
        },
        "title": "payment_methods.v1.PaymentMethodData.Custom",
        "additionalProperties": false,
        "description": "Custom payment method"
      },
      "payment_methods.v1.PaymentMethodData.DirectDeposit": {
        "type": "object",
        "properties": {
          "accountNumber": {
            "type": "string",
            "title": "account_number",
            "maxLength": 255,
            "minLength": 1,
            "description": "Bank account number."
          },
          "accountHolder": {
            "type": "string",
            "title": "account_holder",
            "maxLength": 255,
            "minLength": 1,
            "description": "Holder of the bank account."
          },
          "bankName": {
            "type": "string",
            "title": "bank_name",
            "maxLength": 255,
            "minLength": 1,
            "description": "Name of the bank."
          },
          "bankRoutingNumber": {
            "type": "string",
            "title": "bank_routing_number",
            "maxLength": 255,
            "minLength": 1,
            "description": "ABA/bank routing number of the bank."
          },
          "note": {
            "type": "string",
            "title": "note",
            "maxLength": 255,
            "description": "Internal note."
          }
        },
        "title": "payment_methods.v1.PaymentMethodData.DirectDeposit",
        "additionalProperties": false,
        "description": "Direct bank deposit"
      },
      "payment_methods.v1.PaymentMethodData.Ether": {
        "type": "object",
        "properties": {
          "cryptoWalletAddress": {
            "type": "string",
            "title": "crypto_wallet_address",
            "maxLength": 255,
            "minLength": 1,
            "description": "Crypto wallet address."
          },
          "note": {
            "type": "string",
            "title": "note",
            "maxLength": 255,
            "description": "Internal note."
          }
        },
        "title": "payment_methods.v1.PaymentMethodData.Ether",
        "additionalProperties": false,
        "description": "Ether"
      },
      "payment_methods.v1.PaymentMethodData.GiftCard": {
        "type": "object",
        "properties": {
          "identification": {
            "type": "string",
            "title": "identification",
            "maxLength": 255,
            "minLength": 1,
            "description": "Gift card code."
          },
          "note": {
            "type": "string",
            "title": "note",
            "maxLength": 255,
            "description": "Internal note."
          }
        },
        "title": "payment_methods.v1.PaymentMethodData.GiftCard",
        "additionalProperties": false,
        "description": "Gift card"
      },
      "payment_methods.v1.PaymentMethodData.MercadoPago": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "title": "email",
            "format": "email",
            "description": "Registered email."
          },
          "firstName": {
            "type": "string",
            "title": "first_name",
            "maxLength": 255,
            "minLength": 1,
            "description": "First name."
          },
          "lastName": {
            "type": "string",
            "title": "last_name",
            "maxLength": 255,
            "minLength": 1,
            "description": "Last name."
          },
          "note": {
            "type": "string",
            "title": "note",
            "maxLength": 255,
            "description": "Internal note."
          }
        },
        "title": "payment_methods.v1.PaymentMethodData.MercadoPago",
        "additionalProperties": false,
        "description": "Mercado Pago."
      },
      "payment_methods.v1.PaymentMethodData.Neteller": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "title": "email",
            "format": "email",
            "description": "Registered email."
          },
          "note": {
            "type": "string",
            "title": "note",
            "maxLength": 255,
            "description": "Internal note."
          }
        },
        "title": "payment_methods.v1.PaymentMethodData.Neteller",
        "additionalProperties": false,
        "description": "Neteller"
      },
      "payment_methods.v1.PaymentMethodData.Paxum": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "title": "email",
            "format": "email",
            "description": "Registered email."
          },
          "note": {
            "type": "string",
            "title": "note",
            "maxLength": 255,
            "description": "Internal note."
          }
        },
        "title": "payment_methods.v1.PaymentMethodData.Paxum",
        "additionalProperties": false,
        "description": "Paxum"
      },
      "payment_methods.v1.PaymentMethodData.PayPal": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "title": "email",
            "format": "email",
            "description": "Registered email."
          },
          "note": {
            "type": "string",
            "title": "note",
            "maxLength": 255,
            "description": "Internal note."
          }
        },
        "title": "payment_methods.v1.PaymentMethodData.PayPal",
        "additionalProperties": false,
        "description": "PayPal"
      },
      "payment_methods.v1.PaymentMethodData.Payoneer": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "title": "email",
            "format": "email",
            "description": "Registered email."
          },
          "note": {
            "type": "string",
            "title": "note",
            "maxLength": 255,
            "description": "(OPTIONAL) Internal note."
          }
        },
        "title": "payment_methods.v1.PaymentMethodData.Payoneer",
        "required": [
          "email"
        ],
        "additionalProperties": false,
        "description": "Payoneer"
      },
      "payment_methods.v1.PaymentMethodData.Revolut": {
        "type": "object",
        "properties": {
          "revolutTag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "revolut_tag",
            "maxLength": 100,
            "description": "(OPTIONAL) Revolut tag."
          },
          "phoneNumber": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "phone_number",
            "maxLength": 20,
            "description": "(OPTIONAL) Phone number associated with the Revolut account."
          },
          "email": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "email",
            "format": "email",
            "description": "(OPTIONAL) Connected email address."
          },
          "note": {
            "type": "string",
            "title": "note",
            "maxLength": 255,
            "description": "Internal note."
          }
        },
        "title": "payment_methods.v1.PaymentMethodData.Revolut",
        "additionalProperties": false,
        "description": "Revolut\nat_least_one_identifier // Revolut payment method needs at least one identifier filled.\n"
      },
      "payment_methods.v1.PaymentMethodData.Sepa": {
        "type": "object",
        "properties": {
          "iban": {
            "type": "string",
            "title": "iban",
            "maxLength": 255,
            "minLength": 1,
            "description": "IBAN of the account."
          },
          "beneficiaryName": {
            "type": "string",
            "title": "beneficiary_name",
            "maxLength": 255,
            "description": "Name of the beneficiary."
          },
          "bic": {
            "type": "string",
            "title": "bic",
            "maxLength": 255,
            "description": "BIC/SWIFT of the banking institution."
          },
          "note": {
            "type": "string",
            "title": "note",
            "maxLength": 255,
            "description": "Internal note."
          }
        },
        "title": "payment_methods.v1.PaymentMethodData.Sepa",
        "additionalProperties": false,
        "description": "SEPA"
      },
      "payment_methods.v1.PaymentMethodData.Skrill": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "title": "email",
            "format": "email",
            "description": "Registered email."
          },
          "note": {
            "type": "string",
            "title": "note",
            "maxLength": 255,
            "description": "Internal note."
          }
        },
        "title": "payment_methods.v1.PaymentMethodData.Skrill",
        "additionalProperties": false,
        "description": "Skrill"
      },
      "payment_methods.v1.PaymentMethodData.StripeConnect": {
        "type": "object",
        "properties": {
          "connectedAccountId": {
            "type": "string",
            "title": "connected_account_id",
            "maxLength": 255,
            "minLength": 1,
            "description": "ID of the connected account."
          },
          "note": {
            "type": "string",
            "title": "note",
            "maxLength": 255,
            "description": "Internal note."
          }
        },
        "title": "payment_methods.v1.PaymentMethodData.StripeConnect",
        "additionalProperties": false,
        "description": "Stripe Connect"
      },
      "payment_methods.v1.PaymentMethodData.Tipalti": {
        "type": "object",
        "properties": {
          "payeeId": {
            "type": "string",
            "title": "payee_id",
            "maxLength": 255,
            "minLength": 1,
            "description": "ID of the payee."
          },
          "note": {
            "type": "string",
            "title": "note",
            "maxLength": 255,
            "description": "Internal note."
          }
        },
        "title": "payment_methods.v1.PaymentMethodData.Tipalti",
        "additionalProperties": false,
        "description": "Tipalti"
      },
      "payment_methods.v1.PaymentMethodData.Usdc": {
        "type": "object",
        "properties": {
          "cryptoWalletAddress": {
            "type": "string",
            "title": "crypto_wallet_address",
            "maxLength": 255,
            "minLength": 1,
            "description": "Crypto wallet address."
          },
          "note": {
            "type": "string",
            "title": "note",
            "maxLength": 255,
            "description": "Internal note."
          }
        },
        "title": "payment_methods.v1.PaymentMethodData.Usdc",
        "additionalProperties": false,
        "description": "USDC"
      },
      "payment_methods.v1.PaymentMethodData.Usdt": {
        "type": "object",
        "properties": {
          "cryptoWalletAddress": {
            "type": "string",
            "title": "crypto_wallet_address",
            "maxLength": 255,
            "minLength": 1,
            "description": "Crypto wallet address."
          },
          "note": {
            "type": "string",
            "title": "note",
            "maxLength": 255,
            "description": "Internal note."
          }
        },
        "title": "payment_methods.v1.PaymentMethodData.Usdt",
        "additionalProperties": false,
        "description": "USDT"
      },
      "payment_methods.v1.PaymentMethodData.Wise": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "title": "email",
            "format": "email",
            "description": "Registered email."
          },
          "note": {
            "type": "string",
            "title": "note",
            "maxLength": 255,
            "description": "Internal note."
          }
        },
        "title": "payment_methods.v1.PaymentMethodData.Wise",
        "additionalProperties": false,
        "description": "Wise"
      },
      "payment_methods.v1.PaymentMethodType": {
        "type": "string",
        "title": "payment_methods.v1.PaymentMethodType",
        "enum": [
          "PAYMENT_METHOD_TYPE_UNSPECIFIED",
          "PAYMENT_METHOD_TYPE_BANK_TRANSFER",
          "PAYMENT_METHOD_TYPE_BITCOIN",
          "PAYMENT_METHOD_TYPE_CREDIT_STORE",
          "PAYMENT_METHOD_TYPE_CUSTOM",
          "PAYMENT_METHOD_TYPE_DIRECT_DEPOSIT",
          "PAYMENT_METHOD_TYPE_ETHER",
          "PAYMENT_METHOD_TYPE_GIFT_CARD",
          "PAYMENT_METHOD_TYPE_MERCADO_PAGO",
          "PAYMENT_METHOD_TYPE_NETELLER",
          "PAYMENT_METHOD_TYPE_PAXUM",
          "PAYMENT_METHOD_TYPE_PAY_PAL",
          "PAYMENT_METHOD_TYPE_PAYONEER",
          "PAYMENT_METHOD_TYPE_REVOLUT",
          "PAYMENT_METHOD_TYPE_SEPA",
          "PAYMENT_METHOD_TYPE_SKRILL",
          "PAYMENT_METHOD_TYPE_STRIPE_CONNECT",
          "PAYMENT_METHOD_TYPE_TIPALTI",
          "PAYMENT_METHOD_TYPE_USDC",
          "PAYMENT_METHOD_TYPE_USDT",
          "PAYMENT_METHOD_TYPE_WISE"
        ]
      },
      "payment_methods.v1.UpdatePaymentMethodRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "format": "uuid",
            "description": "Payment method identification."
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/payment_methods.v1.PaymentMethodType"
              }
            ],
            "not": {
              "enum": [
                "PAYMENT_METHOD_TYPE_UNSPECIFIED"
              ]
            },
            "title": "type",
            "description": "Type of the payment method."
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Currency"
              }
            ],
            "title": "currency",
            "description": "Currency for the payment method. Uses ISO 4217 format."
          },
          "data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/payment_methods.v1.PaymentMethodData"
              }
            ],
            "title": "data",
            "description": "Payment method data."
          }
        },
        "title": "payment_methods.v1.UpdatePaymentMethodRequest",
        "required": [
          "currency",
          "data"
        ],
        "additionalProperties": false,
        "description": "Update existing payment method."
      },
      "payment_methods.v1.UpdatePaymentMethodResponse": {
        "type": "object",
        "properties": {
          "paymentMethod": {
            "allOf": [
              {
                "$ref": "#/components/schemas/payment_methods.v1.PaymentMethod"
              }
            ],
            "title": "payment_method"
          }
        },
        "title": "payment_methods.v1.UpdatePaymentMethodResponse",
        "additionalProperties": false,
        "description": "Feedback for the update of the payment method."
      },
      "pricing.v1.ConversionTypeSetting": {
        "type": "object",
        "properties": {
          "conversionTypeId": {
            "type": "string",
            "title": "conversion_type_id"
          },
          "conversionValueType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.ConversionValueType"
              }
            ],
            "title": "conversion_value_type"
          },
          "conversionCountLimit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Int32Value"
              }
            ],
            "title": "conversion_count_limit",
            "description": "(OPTIONAL) "
          },
          "onHold": {
            "allOf": [
              {
                "$ref": "#/components/schemas/pricing.v1.OnHold"
              }
            ],
            "title": "on_hold",
            "description": "(OPTIONAL) "
          },
          "qualification": {
            "allOf": [
              {
                "$ref": "#/components/schemas/pricing.v1.Qualification"
              }
            ],
            "title": "qualification",
            "description": "(OPTIONAL) "
          }
        },
        "title": "pricing.v1.ConversionTypeSetting",
        "required": [
          "conversionTypeId",
          "conversionValueType"
        ],
        "additionalProperties": false,
        "description": "Read-back representation of ConversionTypeSettingParams; see that message for field meanings."
      },
      "pricing.v1.ConversionTypeSettingParams": {
        "type": "object",
        "properties": {
          "conversionTypeId": {
            "type": "string",
            "title": "conversion_type_id",
            "format": "uuid",
            "description": "The conversion type these settings apply to."
          },
          "conversionValueType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.ConversionValueType"
              }
            ],
            "not": {
              "enum": [
                "CONVERSION_VALUE_TYPE_UNSPECIFIED"
              ]
            },
            "title": "conversion_value_type",
            "description": "How the monetary value of the conversion is interpreted:\n   AMOUNT                       - revenue and payout are fixed amounts.\n   RATE                         - revenue and payout are a percentage of the order/sale value sent with the conversion.\n   NO_REVENUE                   - the network earns no revenue; only an affiliate payout is configured.\n   REVENUE_RATE_AND_COST_AMOUNT - revenue is a percentage, but the affiliate payout is a fixed amount."
          },
          "conversionCountLimit": {
            "exclusiveMinimum": 0,
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Int32Value"
              }
            ],
            "title": "conversion_count_limit",
            "description": "(OPTIONAL) Maximum number of conversions of this type that are counted per click. Leave unset for unlimited\n (e.g. set to 1 to pay only for the first conversion, useful for non-recurring goals)."
          },
          "onHold": {
            "allOf": [
              {
                "$ref": "#/components/schemas/pricing.v1.OnHold"
              }
            ],
            "title": "on_hold",
            "description": "(OPTIONAL) On-hold configuration: withhold newly tracked conversions of this type for a review window before moving them\n to a final status. Omit to confirm conversions immediately."
          },
          "qualification": {
            "allOf": [
              {
                "$ref": "#/components/schemas/pricing.v1.Qualification"
              }
            ],
            "title": "qualification",
            "description": "(OPTIONAL) Optional rules a conversion must satisfy to qualify for payout (minimum revenue thresholds, qualified-count cap)."
          }
        },
        "title": "pricing.v1.ConversionTypeSettingParams",
        "required": [
          "conversionTypeId",
          "conversionValueType"
        ],
        "additionalProperties": false,
        "description": "Settings that control how a single conversion type is valued and processed within this pricing."
      },
      "pricing.v1.Cost": {
        "type": "object",
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "default": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/types.v1.AmountOrRate"
                  }
                ],
                "title": "default",
                "description": "The payout resolved from the tier's default rate (set when the payout was configured to use the default)."
              }
            },
            "title": "default"
          },
          {
            "type": "object",
            "properties": {
              "explicit": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/types.v1.AmountOrRate"
                  }
                ],
                "title": "explicit",
                "description": "An explicit fixed amount or percentage rate."
              }
            },
            "title": "explicit"
          }
        ],
        "unevaluatedProperties": false,
        "not": {
          "allOf": [
            {
              "anyOf": [
                {
                  "required": [
                    "default"
                  ]
                },
                {
                  "required": [
                    "explicit"
                  ]
                }
              ]
            },
            {
              "not": {
                "oneOf": [
                  {
                    "required": [
                      "default"
                    ]
                  },
                  {
                    "required": [
                      "explicit"
                    ]
                  }
                ]
              }
            }
          ]
        },
        "properties": {
          "conversionTypeId": {
            "type": "string",
            "title": "conversion_type_id"
          }
        },
        "title": "pricing.v1.Cost",
        "required": [
          "conversionTypeId"
        ],
        "description": "The affiliate payout for one conversion type, as stored. Unlike CostParams, when the payout was configured as\n \"use default\", `use_default` here carries the resolved amount/rate inherited from the tier rather than an empty marker."
      },
      "pricing.v1.CostParams": {
        "type": "object",
        "allOf": [
          {
            "oneOf": [
              {
                "required": [
                  "explicit"
                ]
              },
              {
                "required": [
                  "useDefault"
                ]
              }
            ]
          }
        ],
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "explicit": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/types.v1.AmountOrRate"
                  }
                ],
                "title": "explicit",
                "description": "An explicit fixed amount or percentage rate for this conversion type."
              }
            },
            "title": "explicit"
          },
          {
            "type": "object",
            "properties": {
              "useDefault": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/pricing.v1.UseDefaultCost"
                  }
                ],
                "title": "use_default",
                "description": "Set instead of `explicit` to fall back to the tier's default payout rate."
              }
            },
            "title": "use_default"
          }
        ],
        "unevaluatedProperties": false,
        "not": {
          "allOf": [
            {
              "anyOf": [
                {
                  "required": [
                    "explicit"
                  ]
                },
                {
                  "required": [
                    "useDefault"
                  ]
                }
              ]
            },
            {
              "not": {
                "oneOf": [
                  {
                    "required": [
                      "explicit"
                    ]
                  },
                  {
                    "required": [
                      "useDefault"
                    ]
                  }
                ]
              }
            }
          ]
        },
        "properties": {
          "conversionTypeId": {
            "type": "string",
            "title": "conversion_type_id",
            "format": "uuid",
            "description": "The conversion type this payout applies to."
          }
        },
        "title": "pricing.v1.CostParams",
        "required": [
          "conversionTypeId"
        ],
        "description": "The affiliate payout (\"cost\" to the network) for one conversion type."
      },
      "pricing.v1.CurrencyGroup": {
        "type": "object",
        "properties": {
          "isDefault": {
            "type": "boolean",
            "title": "is_default"
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Currency"
              }
            ],
            "title": "currency"
          },
          "revenues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/pricing.v1.Revenue"
            },
            "title": "revenues"
          },
          "tierCosts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/pricing.v1.TierCost"
            },
            "title": "tier_costs"
          },
          "sourceCosts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/pricing.v1.SourceCost"
            },
            "title": "source_costs",
            "description": "(OPTIONAL) "
          }
        },
        "title": "pricing.v1.CurrencyGroup",
        "required": [
          "isDefault",
          "currency",
          "revenues",
          "tierCosts"
        ],
        "additionalProperties": false,
        "description": "Read-back representation of CurrencyGroupParams; see that message for field meanings."
      },
      "pricing.v1.CurrencyGroupParams": {
        "type": "object",
        "properties": {
          "isDefault": {
            "type": "boolean",
            "title": "is_default",
            "description": "Whether this is the fallback group, used when a conversion's currency does not match any configured currency.\n Exactly one currency group per targeting group must be the default."
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Currency"
              }
            ],
            "title": "currency",
            "description": "The currency these amounts are expressed in."
          },
          "revenues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/pricing.v1.RevenueParams"
            },
            "title": "revenues",
            "minItems": 1,
            "description": "Revenue (what the advertiser pays the network) per conversion type."
          },
          "tierCosts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/pricing.v1.TierCostParams"
            },
            "title": "tier_costs",
            "minItems": 1,
            "description": "Affiliate payouts defined per tier. A tier is an affiliate performance level; all affiliates in a tier share\n these payouts unless overridden by a source-specific cost below."
          },
          "sourceCosts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/pricing.v1.SourceCostParams"
            },
            "title": "source_costs",
            "description": "(OPTIONAL) Optional per-source payout overrides. A source is an individual affiliate's traffic source; these amounts\n override the tier payout for that specific source."
          }
        },
        "title": "pricing.v1.CurrencyGroupParams",
        "required": [
          "isDefault",
          "currency",
          "revenues",
          "tierCosts"
        ],
        "additionalProperties": false,
        "description": "The revenue and payout amounts for a single currency within a targeting group. The conversion's currency selects\n which group is used; if none matches, the default group is used."
      },
      "pricing.v1.NoValue": {
        "type": "object",
        "title": "pricing.v1.NoValue",
        "additionalProperties": false,
        "description": "Marker selecting \"no revenue value\" for a conversion type. Currently carries no fields."
      },
      "pricing.v1.OnHold": {
        "type": "object",
        "properties": {
          "periodHours": {
            "exclusiveMinimum": 0,
            "type": "integer",
            "title": "period_hours",
            "format": "int32",
            "description": "Length of the hold, in hours, counted from when the conversion is tracked."
          },
          "finalConversionStatus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/conversions.v1.ConversionStatus"
              }
            ],
            "not": {
              "enum": [
                "CONVERSION_STATUS_UNSPECIFIED"
              ]
            },
            "title": "final_conversion_status",
            "description": "Status the conversion is moved to once the hold expires (e.g. approved). If left unset, the conversion keeps\n its current status when the hold ends.\nenum.defined_only = true\n"
          }
        },
        "title": "pricing.v1.OnHold",
        "required": [
          "periodHours",
          "finalConversionStatus"
        ],
        "additionalProperties": false,
        "description": "On-hold configuration for a conversion type. When present, newly tracked conversions of this type are withheld\n for a review window (e.g. for fraud/quality checks) before being moved to their final status. Omit to confirm\n conversions immediately. Because the final status lives here, it can only be configured together with a hold period."
      },
      "pricing.v1.Qualification": {
        "type": "object",
        "properties": {
          "conditions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/pricing.v1.Qualification.Conditions"
              }
            ],
            "title": "conditions",
            "description": "The conditions a conversion must satisfy to qualify."
          },
          "maxQualifiedConversionCount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.UInt32Value"
              }
            ],
            "title": "max_qualified_conversion_count",
            "minimum": 1,
            "description": "(OPTIONAL) Optional cap on how many conversions may qualify. Once reached, further conversions stop qualifying. Unset means unlimited."
          }
        },
        "title": "pricing.v1.Qualification",
        "required": [
          "conditions"
        ],
        "additionalProperties": false,
        "description": "Rules deciding whether conversions of a conversion type \"qualify\" (count toward payout). Conversions that do not\n meet the conditions are tracked but not paid out."
      },
      "pricing.v1.Qualification.Conditions": {
        "type": "object",
        "properties": {
          "currencyConditions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/pricing.v1.Qualification.CurrencyCondition"
            },
            "title": "currency_conditions",
            "minItems": 1,
            "description": "Minimum-revenue thresholds, one per currency. Each currency may appear only once."
          }
        },
        "title": "pricing.v1.Qualification.Conditions",
        "required": [
          "currencyConditions"
        ],
        "additionalProperties": false,
        "description": "currency_conditions_unique_currency // Each currency condition must have unique currency.\n"
      },
      "pricing.v1.Qualification.CurrencyCondition": {
        "type": "object",
        "properties": {
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Currency"
              }
            ],
            "title": "currency",
            "description": "Currency the threshold is expressed in."
          },
          "minRevenue": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "min_revenue",
            "description": "Minimum accumulated revenue required before conversions in this currency qualify."
          }
        },
        "title": "pricing.v1.Qualification.CurrencyCondition",
        "required": [
          "currency",
          "minRevenue"
        ],
        "additionalProperties": false,
        "description": "A minimum-revenue threshold for a single currency."
      },
      "pricing.v1.Revenue": {
        "type": "object",
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "noValue": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/pricing.v1.NoValue"
                  }
                ],
                "title": "no_value"
              }
            },
            "title": "no_value"
          },
          {
            "type": "object",
            "properties": {
              "revenue": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/types.v1.AmountOrRate"
                  }
                ],
                "title": "revenue"
              }
            },
            "title": "revenue"
          }
        ],
        "unevaluatedProperties": false,
        "not": {
          "allOf": [
            {
              "anyOf": [
                {
                  "required": [
                    "noValue"
                  ]
                },
                {
                  "required": [
                    "revenue"
                  ]
                }
              ]
            },
            {
              "not": {
                "oneOf": [
                  {
                    "required": [
                      "noValue"
                    ]
                  },
                  {
                    "required": [
                      "revenue"
                    ]
                  }
                ]
              }
            }
          ]
        },
        "properties": {
          "conversionTypeId": {
            "type": "string",
            "title": "conversion_type_id"
          }
        },
        "title": "pricing.v1.Revenue",
        "required": [
          "conversionTypeId"
        ],
        "description": "Read-back representation of RevenueParams; see that message for field meanings."
      },
      "pricing.v1.RevenueParams": {
        "type": "object",
        "allOf": [
          {
            "oneOf": [
              {
                "required": [
                  "revenue"
                ]
              },
              {
                "required": [
                  "noValue"
                ]
              }
            ]
          }
        ],
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "noValue": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/pricing.v1.NoValue"
                  }
                ],
                "title": "no_value",
                "description": "Set instead of `revenue` when this conversion type generates no revenue."
              }
            },
            "title": "no_value"
          },
          {
            "type": "object",
            "properties": {
              "revenue": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/types.v1.AmountOrRate"
                  }
                ],
                "title": "revenue",
                "description": "A fixed amount or a percentage rate, depending on the conversion type's conversion_value_type."
              }
            },
            "title": "revenue"
          }
        ],
        "unevaluatedProperties": false,
        "not": {
          "allOf": [
            {
              "anyOf": [
                {
                  "required": [
                    "noValue"
                  ]
                },
                {
                  "required": [
                    "revenue"
                  ]
                }
              ]
            },
            {
              "not": {
                "oneOf": [
                  {
                    "required": [
                      "noValue"
                    ]
                  },
                  {
                    "required": [
                      "revenue"
                    ]
                  }
                ]
              }
            }
          ]
        },
        "properties": {
          "conversionTypeId": {
            "type": "string",
            "title": "conversion_type_id",
            "format": "uuid",
            "description": "The conversion type this revenue applies to."
          }
        },
        "title": "pricing.v1.RevenueParams",
        "required": [
          "conversionTypeId"
        ],
        "description": "Revenue earned by the network for one conversion type, in the enclosing currency group's currency."
      },
      "pricing.v1.SourceCost": {
        "type": "object",
        "properties": {
          "sourceId": {
            "type": "string",
            "title": "source_id"
          },
          "costs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/pricing.v1.Cost"
            },
            "title": "costs"
          }
        },
        "title": "pricing.v1.SourceCost",
        "required": [
          "sourceId",
          "costs"
        ],
        "additionalProperties": false,
        "description": "Read-back representation of SourceCostParams; see that message for field meanings."
      },
      "pricing.v1.SourceCostParams": {
        "type": "object",
        "properties": {
          "sourceId": {
            "type": "string",
            "title": "source_id",
            "format": "uuid",
            "description": "The source (an individual affiliate's traffic source) these payouts apply to."
          },
          "costs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/pricing.v1.CostParams"
            },
            "title": "costs",
            "minItems": 1,
            "description": "Payout per conversion type for this source."
          }
        },
        "title": "pricing.v1.SourceCostParams",
        "required": [
          "sourceId",
          "costs"
        ],
        "additionalProperties": false,
        "description": "Per-source payout overrides, listed per conversion type. These take precedence over the tier payout for the source."
      },
      "pricing.v1.TargetingGroup": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "title": "name"
          },
          "rules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/pricing.v1.TargetingRule"
            },
            "title": "rules"
          },
          "currencyGroups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/pricing.v1.CurrencyGroup"
            },
            "title": "currency_groups"
          },
          "featured": {
            "type": "boolean",
            "title": "featured"
          }
        },
        "title": "pricing.v1.TargetingGroup",
        "required": [
          "name",
          "rules",
          "currencyGroups",
          "featured"
        ],
        "additionalProperties": false,
        "description": "Read-back representation of TargetingGroupParams; see that message for field meanings."
      },
      "pricing.v1.TargetingGroupParams": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "title": "name",
            "maxLength": 100,
            "minLength": 1,
            "description": "Human-readable name for this group, shown in the dashboard."
          },
          "rules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/pricing.v1.TargetingRule"
            },
            "title": "rules",
            "description": "Conditions that decide whether this group applies to a conversion. A conversion matches the group if it matches\n ANY one of the rules. An empty list makes the group apply to all conversions (a catch-all group)."
          },
          "currencyGroups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/pricing.v1.CurrencyGroupParams"
            },
            "title": "currency_groups",
            "minItems": 1,
            "description": "The rate tables for this group, split per currency. At least one is required and exactly one must be the default."
          },
          "featured": {
            "type": "boolean",
            "title": "featured",
            "description": "Marks this as the primary group surfaced to affiliates by default. At most one group per pricing may be featured."
          }
        },
        "title": "pricing.v1.TargetingGroupParams",
        "required": [
          "name",
          "rules",
          "currencyGroups",
          "featured"
        ],
        "additionalProperties": false,
        "description": "A targeting group bundles matching conditions together with the revenue/payout amounts that apply when those\n conditions match. Use multiple groups to charge or pay different rates for different traffic (e.g. by country\n or coupon). Groups are evaluated in order and the first one whose conditions match a conversion is used.\none_default_currency_group // One currency group has to be default.\n"
      },
      "pricing.v1.TargetingRule": {
        "type": "object",
        "properties": {
          "locations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/pricing.v1.TargetingRule.Location"
            },
            "title": "locations",
            "description": "(OPTIONAL) Match by geographic location."
          },
          "coupons": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/pricing.v1.TargetingRule.Coupon"
            },
            "title": "coupons",
            "description": "(OPTIONAL) Match by coupon code used."
          },
          "conversionCount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/pricing.v1.TargetingRule.ConversionCount"
              }
            ],
            "title": "conversion_count",
            "description": "(OPTIONAL) Match by the conversion's position in the click's conversion sequence."
          },
          "customerIds": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "(OPTIONAL) "
            },
            "title": "customer_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) Match specific customer ids."
          },
          "advS1s": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "(OPTIONAL) "
            },
            "title": "adv_s1s",
            "uniqueItems": true,
            "description": "(OPTIONAL) Match by advertiser-supplied tracking parameter S1 (adv_s1). Matches if the conversion's value is in the list."
          },
          "advS2s": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "(OPTIONAL) "
            },
            "title": "adv_s2s",
            "uniqueItems": true,
            "description": "(OPTIONAL) Match by advertiser-supplied tracking parameter S2 (adv_s2)."
          },
          "advS3s": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "(OPTIONAL) "
            },
            "title": "adv_s3s",
            "uniqueItems": true,
            "description": "(OPTIONAL) Match by advertiser-supplied tracking parameter S3 (adv_s3)."
          },
          "advS4s": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "(OPTIONAL) "
            },
            "title": "adv_s4s",
            "uniqueItems": true,
            "description": "(OPTIONAL) Match by advertiser-supplied tracking parameter S4 (adv_s4)."
          },
          "advS5s": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "(OPTIONAL) "
            },
            "title": "adv_s5s",
            "uniqueItems": true,
            "description": "(OPTIONAL) Match by advertiser-supplied tracking parameter S5 (adv_s5)."
          },
          "affS1s": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "(OPTIONAL) "
            },
            "title": "aff_s1s",
            "uniqueItems": true,
            "description": "(OPTIONAL) Match by affiliate-supplied tracking parameter S1 (aff_s1). Matches if the conversion's value is in the list."
          },
          "affS2s": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "(OPTIONAL) "
            },
            "title": "aff_s2s",
            "uniqueItems": true,
            "description": "(OPTIONAL) Match by affiliate-supplied tracking parameter S2 (aff_s2)."
          },
          "affS3s": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "(OPTIONAL) "
            },
            "title": "aff_s3s",
            "uniqueItems": true,
            "description": "(OPTIONAL) Match by affiliate-supplied tracking parameter S3 (aff_s3)."
          },
          "affS4s": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "(OPTIONAL) "
            },
            "title": "aff_s4s",
            "uniqueItems": true,
            "description": "(OPTIONAL) Match by affiliate-supplied tracking parameter S4 (aff_s4)."
          },
          "affS5s": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "(OPTIONAL) "
            },
            "title": "aff_s5s",
            "uniqueItems": true,
            "description": "(OPTIONAL) Match by affiliate-supplied tracking parameter S5 (aff_s5)."
          },
          "devices": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/enums.v1.Device"
            },
            "title": "devices",
            "uniqueItems": true,
            "description": "(OPTIONAL) Match by the device the click came from, detected from its user agent."
          },
          "operatingSystems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/enums.v1.OperatingSystem"
            },
            "title": "operating_systems",
            "uniqueItems": true,
            "description": "(OPTIONAL) Match by the operating system the click came from, detected from its user agent."
          },
          "languages": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[a-z]{2}$",
              "description": "(OPTIONAL) "
            },
            "title": "languages",
            "uniqueItems": true,
            "description": "(OPTIONAL) Match by the click's language, as ISO 639-1 two-letter codes taken from its Accept-Language header."
          }
        },
        "title": "pricing.v1.TargetingRule",
        "additionalProperties": false,
        "description": "A single set of matching conditions for a targeting group. A conversion matches the rule only if it satisfies\n every condition that is set (AND); at least one condition must be provided. A conversion matches the parent group\n if it matches any of the group's rules (OR).\nat_least_one_condition // Rule has to have at least one condition filled in.\n"
      },
      "pricing.v1.TargetingRule.ConversionCount": {
        "type": "object",
        "properties": {
          "min": {
            "type": "integer",
            "title": "min",
            "minimum": 1,
            "description": "Lowest conversion number (1-based) the rule applies to."
          },
          "max": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.UInt32Value"
              }
            ],
            "title": "max",
            "description": "(OPTIONAL) Highest conversion number the rule applies to. Unset means no upper bound."
          },
          "sameConversionType": {
            "type": "boolean",
            "title": "same_conversion_type",
            "description": "When true, only conversions of the same type as the one being created are counted.\n When false, conversions of all types are counted."
          }
        },
        "title": "pricing.v1.TargetingRule.ConversionCount",
        "required": [
          "min",
          "sameConversionType"
        ],
        "additionalProperties": false,
        "description": "Match by the conversion's position in the click's conversion sequence (e.g. apply only to the 2nd–3rd conversion on a click).\nmin_not_greater_than_max // Min must not be greater than max.\n"
      },
      "pricing.v1.TargetingRule.Coupon": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "title": "code",
            "maxLength": 255,
            "minLength": 1,
            "description": "The coupon code as entered by the customer."
          },
          "revenueOriginId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "revenue_origin_id",
            "format": "uuid",
            "description": "(OPTIONAL) Optional advertiser (revenue origin) the coupon is attributed to, used to credit the conversion to a specific advertiser."
          }
        },
        "title": "pricing.v1.TargetingRule.Coupon",
        "required": [
          "code"
        ],
        "additionalProperties": false,
        "description": "Coupon match. A conversion matches if it used one of the listed coupon codes."
      },
      "pricing.v1.TargetingRule.Location": {
        "type": "object",
        "properties": {
          "countryCode": {
            "type": "string",
            "title": "country_code",
            "pattern": "^[A-Z]{2}$",
            "description": "Two-letter ISO 3166-1 country code, uppercase (e.g. \"US\")."
          },
          "subdivisionCode": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "subdivision_code",
            "pattern": "^[A-Z0-9]{1,3}$",
            "description": "(OPTIONAL) Optional region/state code within the country."
          },
          "city": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "city",
            "maxLength": 255,
            "minLength": 1,
            "description": "(OPTIONAL) not supported yet"
          }
        },
        "title": "pricing.v1.TargetingRule.Location",
        "required": [
          "countryCode"
        ],
        "additionalProperties": false,
        "description": "Geographic match. A conversion matches if its location matches any entry in the list."
      },
      "pricing.v1.TierCost": {
        "type": "object",
        "properties": {
          "tierId": {
            "type": "string",
            "title": "tier_id"
          },
          "costs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/pricing.v1.Cost"
            },
            "title": "costs"
          }
        },
        "title": "pricing.v1.TierCost",
        "required": [
          "tierId",
          "costs"
        ],
        "additionalProperties": false,
        "description": "Read-back representation of TierCostParams; see that message for field meanings."
      },
      "pricing.v1.TierCostParams": {
        "type": "object",
        "properties": {
          "tierId": {
            "type": "string",
            "title": "tier_id",
            "format": "uuid",
            "description": "The affiliate tier (performance level) these payouts apply to."
          },
          "costs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/pricing.v1.CostParams"
            },
            "title": "costs",
            "minItems": 1,
            "description": "Payout per conversion type for this tier."
          }
        },
        "title": "pricing.v1.TierCostParams",
        "required": [
          "tierId",
          "costs"
        ],
        "additionalProperties": false,
        "description": "Affiliate payouts for one tier, listed per conversion type."
      },
      "pricing.v1.UseDefaultCost": {
        "type": "object",
        "title": "pricing.v1.UseDefaultCost",
        "additionalProperties": false,
        "description": "Marker selecting the inherited default cost for a conversion type. Currently carries no fields."
      },
      "revenue_origin_billing.v1.Claim": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "ID of advertiser settlement."
          },
          "revenueOrigin": {
            "allOf": [
              {
                "$ref": "#/components/schemas/revenue_origin_billing.v1.Claim.RevenueOrigin"
              }
            ],
            "title": "revenue_origin",
            "description": "Advertiser for which the settlement is generated."
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "amount",
            "description": "Total amount generated in the settlement."
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Currency"
              }
            ],
            "title": "currency",
            "description": "Currency used in settlement."
          },
          "until": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "until",
            "description": "Settled until date."
          },
          "billingDetail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/revenue_origin_billing.v1.Claim.BillingDetail"
              }
            ],
            "title": "billing_detail",
            "description": "Advertiser billing details."
          },
          "tenantBillingDetail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/settings.v1.BillingDetail"
              }
            ],
            "title": "tenant_billing_detail",
            "description": "Your billing details."
          },
          "paymentMethodForAdvertiser": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "payment_method_for_advertiser",
            "description": "Advertiser payment method information."
          },
          "note": {
            "type": "string",
            "title": "note",
            "description": "Optional note for the settlement."
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "created_at",
            "description": "Date of settlement creation."
          }
        },
        "title": "revenue_origin_billing.v1.Claim",
        "required": [
          "id",
          "revenueOrigin",
          "amount",
          "currency",
          "until",
          "billingDetail",
          "tenantBillingDetail",
          "note",
          "createdAt"
        ],
        "additionalProperties": false
      },
      "revenue_origin_billing.v1.Claim.BillingDetail": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "title": "name",
            "description": "Name of advertiser."
          },
          "addressLine1": {
            "type": "string",
            "title": "address_line1",
            "description": "Address line 1."
          },
          "city": {
            "type": "string",
            "title": "city",
            "description": "City."
          },
          "countryCode": {
            "type": "string",
            "title": "country_code",
            "description": "Country code."
          },
          "postalCode": {
            "type": "string",
            "title": "postal_code",
            "description": "Postal code."
          },
          "addressLine2": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "address_line2",
            "description": "Address line 2."
          },
          "invoicingEmail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "invoicing_email",
            "description": "Invoicing email."
          },
          "vat": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "vat",
            "description": "VAT number."
          }
        },
        "title": "revenue_origin_billing.v1.Claim.BillingDetail",
        "required": [
          "name",
          "addressLine1",
          "city",
          "countryCode",
          "postalCode"
        ],
        "additionalProperties": false
      },
      "revenue_origin_billing.v1.Claim.RevenueOrigin": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Advertiser ID."
          },
          "name": {
            "type": "string",
            "title": "name",
            "description": "Name of advertiser."
          }
        },
        "title": "revenue_origin_billing.v1.Claim.RevenueOrigin",
        "required": [
          "id",
          "name"
        ],
        "additionalProperties": false
      },
      "revenue_origin_billing.v1.ClaimBalancesRequest": {
        "type": "object",
        "properties": {
          "filter": {
            "allOf": [
              {
                "$ref": "#/components/schemas/revenue_origin_billing.v1.RevenueOriginOpenBalanceFilter"
              }
            ],
            "title": "filter",
            "description": "Advertiser settlements filter."
          },
          "revenueOriginId": {
            "type": "string",
            "title": "revenue_origin_id",
            "format": "uuid",
            "description": "Advertiser ID."
          },
          "note": {
            "type": "string",
            "title": "note",
            "maxLength": 100,
            "description": "Optional note."
          }
        },
        "title": "revenue_origin_billing.v1.ClaimBalancesRequest",
        "required": [
          "filter",
          "revenueOriginId",
          "note"
        ],
        "additionalProperties": false
      },
      "revenue_origin_billing.v1.ClaimBalancesResponse": {
        "type": "object",
        "properties": {
          "claim": {
            "allOf": [
              {
                "$ref": "#/components/schemas/revenue_origin_billing.v1.Claim"
              }
            ],
            "title": "claim",
            "description": "Advertiser settlements."
          }
        },
        "title": "revenue_origin_billing.v1.ClaimBalancesResponse",
        "required": [
          "claim"
        ],
        "additionalProperties": false
      },
      "revenue_origin_billing.v1.DeleteClaimRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "format": "uuid",
            "description": "Advertiser settlement ID."
          }
        },
        "title": "revenue_origin_billing.v1.DeleteClaimRequest",
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "revenue_origin_billing.v1.DeleteClaimResponse": {
        "type": "object",
        "title": "revenue_origin_billing.v1.DeleteClaimResponse",
        "additionalProperties": false
      },
      "revenue_origin_billing.v1.GetClaimRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "format": "uuid",
            "description": "Advertiser settlement ID."
          }
        },
        "title": "revenue_origin_billing.v1.GetClaimRequest",
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "revenue_origin_billing.v1.GetClaimResponse": {
        "type": "object",
        "properties": {
          "claim": {
            "allOf": [
              {
                "$ref": "#/components/schemas/revenue_origin_billing.v1.Claim"
              }
            ],
            "title": "claim",
            "description": "Advertiser settlement ID."
          }
        },
        "title": "revenue_origin_billing.v1.GetClaimResponse",
        "required": [
          "claim"
        ],
        "additionalProperties": false
      },
      "revenue_origin_billing.v1.ListClaimsRequest": {
        "type": "object",
        "properties": {
          "pagination": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.PaginationParams"
              }
            ],
            "title": "pagination",
            "description": "Pagination."
          },
          "timeRange": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.TimeRange"
              }
            ],
            "title": "time_range",
            "description": "Time range."
          }
        },
        "title": "revenue_origin_billing.v1.ListClaimsRequest",
        "required": [
          "pagination",
          "timeRange"
        ],
        "additionalProperties": false
      },
      "revenue_origin_billing.v1.ListClaimsResponse": {
        "type": "object",
        "properties": {
          "claims": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/revenue_origin_billing.v1.Claim"
            },
            "title": "claims",
            "description": "Advertiser settlements."
          },
          "pagination": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Pagination"
              }
            ],
            "title": "pagination"
          }
        },
        "title": "revenue_origin_billing.v1.ListClaimsResponse",
        "required": [
          "claims",
          "pagination"
        ],
        "additionalProperties": false
      },
      "revenue_origin_billing.v1.ListRevenueOriginOpenBalancesRequest": {
        "type": "object",
        "properties": {
          "pagination": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.PaginationParams"
              }
            ],
            "title": "pagination",
            "description": "Pagination."
          },
          "filter": {
            "allOf": [
              {
                "$ref": "#/components/schemas/revenue_origin_billing.v1.RevenueOriginOpenBalanceFilter"
              }
            ],
            "title": "filter",
            "description": "Filter for advertiser open balance."
          }
        },
        "title": "revenue_origin_billing.v1.ListRevenueOriginOpenBalancesRequest",
        "required": [
          "pagination",
          "filter"
        ],
        "additionalProperties": false
      },
      "revenue_origin_billing.v1.ListRevenueOriginOpenBalancesResponse": {
        "type": "object",
        "properties": {
          "balances": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/revenue_origin_billing.v1.ListRevenueOriginOpenBalancesResponse.Balance"
            },
            "title": "balances"
          },
          "pagination": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Pagination"
              }
            ],
            "title": "pagination"
          }
        },
        "title": "revenue_origin_billing.v1.ListRevenueOriginOpenBalancesResponse",
        "required": [
          "balances",
          "pagination"
        ],
        "additionalProperties": false
      },
      "revenue_origin_billing.v1.ListRevenueOriginOpenBalancesResponse.Balance": {
        "type": "object",
        "properties": {
          "revenueOrigin": {
            "allOf": [
              {
                "$ref": "#/components/schemas/revenue_origin_billing.v1.ListRevenueOriginOpenBalancesResponse.RevenueOrigin"
              }
            ],
            "title": "revenue_origin",
            "description": "Advertiser ID."
          },
          "openBalance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "open_balance",
            "description": "Total amount generated from approved conversions and MLM commissions."
          },
          "onHoldBalance": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "on_hold_balance",
            "description": "Totam amount generated from on-hold conversions and MLM commissions."
          },
          "hasBillingDetails": {
            "type": "boolean",
            "title": "has_billing_details",
            "description": "Designates if advertiser billing details are present."
          }
        },
        "title": "revenue_origin_billing.v1.ListRevenueOriginOpenBalancesResponse.Balance",
        "required": [
          "revenueOrigin",
          "openBalance",
          "onHoldBalance",
          "hasBillingDetails"
        ],
        "additionalProperties": false
      },
      "revenue_origin_billing.v1.ListRevenueOriginOpenBalancesResponse.RevenueOrigin": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "ID of specific advertiser."
          },
          "name": {
            "type": "string",
            "title": "name",
            "description": "Name of specific advertiser."
          }
        },
        "title": "revenue_origin_billing.v1.ListRevenueOriginOpenBalancesResponse.RevenueOrigin",
        "required": [
          "id",
          "name"
        ],
        "additionalProperties": false
      },
      "revenue_origin_billing.v1.RevenueOriginOpenBalanceFilter": {
        "type": "object",
        "properties": {
          "until": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "until",
            "description": "Include balances up to this date."
          },
          "minAmount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "min_amount",
            "description": "Minimum balance amount to include."
          },
          "revenueOriginTagIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "revenue_origin_tag_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) Filter rows by advertisers (revenue origins) having at least one of these tag IDs assigned (OR semantics)."
          }
        },
        "title": "revenue_origin_billing.v1.RevenueOriginOpenBalanceFilter",
        "required": [
          "until"
        ],
        "additionalProperties": false,
        "description": "Filter criteria for advertiser open balances."
      },
      "revenue_origins.v1.CreateRevenueOriginRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "title": "name",
            "maxLength": 255,
            "minLength": 1,
            "description": "Name of the advertiser."
          },
          "email": {
            "type": "string",
            "title": "email",
            "format": "email",
            "description": "Email of the advertiser."
          },
          "billingDetail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/revenue_origins.v1.RevenueOriginBillingDetail"
              }
            ],
            "title": "billing_detail",
            "description": "Billing details of the advertiser."
          },
          "adminNote": {
            "type": "string",
            "title": "admin_note",
            "maxLength": 255,
            "description": "Admin note to the advertiser."
          }
        },
        "title": "revenue_origins.v1.CreateRevenueOriginRequest",
        "required": [
          "name",
          "email",
          "billingDetail",
          "adminNote"
        ],
        "additionalProperties": false,
        "description": "Create advertiser."
      },
      "revenue_origins.v1.CreateRevenueOriginResponse": {
        "type": "object",
        "properties": {
          "revenueOrigin": {
            "allOf": [
              {
                "$ref": "#/components/schemas/revenue_origins.v1.RevenueOrigin"
              }
            ],
            "title": "revenue_origin"
          }
        },
        "title": "revenue_origins.v1.CreateRevenueOriginResponse",
        "required": [
          "revenueOrigin"
        ],
        "additionalProperties": false,
        "description": "Details of the created advertiser."
      },
      "revenue_origins.v1.ListRevenueOriginsRequest": {
        "type": "object",
        "properties": {
          "pagination": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.OptionalPaginationParams"
              }
            ],
            "title": "pagination",
            "description": "(OPTIONAL) Pagination offset of the listed advertisers."
          },
          "filters": {
            "allOf": [
              {
                "$ref": "#/components/schemas/revenue_origins.v1.RevenueOriginsFilters"
              }
            ],
            "title": "filters",
            "description": "(OPTIONAL) Additional filters to be applied."
          }
        },
        "title": "revenue_origins.v1.ListRevenueOriginsRequest",
        "additionalProperties": false,
        "description": "List advertisers in the system"
      },
      "revenue_origins.v1.ListRevenueOriginsResponse": {
        "type": "object",
        "properties": {
          "revenueOrigins": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/revenue_origins.v1.RevenueOrigin"
            },
            "title": "revenue_origins",
            "description": "Advertisers."
          },
          "pagination": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Pagination"
              }
            ],
            "title": "pagination",
            "description": "Pagination."
          }
        },
        "title": "revenue_origins.v1.ListRevenueOriginsResponse",
        "required": [
          "revenueOrigins",
          "pagination"
        ],
        "additionalProperties": false,
        "description": "List of advertisers matching the pagination and filters"
      },
      "revenue_origins.v1.RevenueOrigin": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "ID of the advertiser."
          },
          "name": {
            "type": "string",
            "title": "name",
            "description": "Name of the advertiser."
          },
          "email": {
            "type": "string",
            "title": "email",
            "description": "Email of the advertiser."
          },
          "billingDetail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/revenue_origins.v1.RevenueOrigin.BillingDetail"
              }
            ],
            "title": "billing_detail",
            "description": "Billing details of the advertiser."
          },
          "adminNote": {
            "type": "string",
            "title": "admin_note",
            "description": "Admin note to the advertiser."
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.RevenueOriginStatus"
              }
            ],
            "title": "status",
            "description": "Status of the advertiser."
          },
          "account": {
            "allOf": [
              {
                "$ref": "#/components/schemas/revenue_origins.v1.RevenueOrigin.Account"
              }
            ],
            "title": "account",
            "description": "(OPTIONAL) Account of the advertiser."
          },
          "tagIds": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "(OPTIONAL) "
            },
            "title": "tag_ids",
            "description": "(OPTIONAL) IDs of tags assigned to the revenue origin."
          }
        },
        "title": "revenue_origins.v1.RevenueOrigin",
        "required": [
          "id",
          "name",
          "email",
          "adminNote",
          "status"
        ],
        "additionalProperties": false,
        "description": "Advertiser."
      },
      "revenue_origins.v1.RevenueOrigin.Account": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "ID of the account."
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.AccountStatus"
              }
            ],
            "title": "status",
            "description": "Status of the account."
          }
        },
        "title": "revenue_origins.v1.RevenueOrigin.Account",
        "required": [
          "id",
          "status"
        ],
        "additionalProperties": false,
        "description": "Account of the advertiser."
      },
      "revenue_origins.v1.RevenueOrigin.BillingDetail": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "title": "name",
            "description": "Full name on the billing details."
          },
          "addressLine1": {
            "type": "string",
            "title": "address_line1",
            "description": "First line of the address."
          },
          "city": {
            "type": "string",
            "title": "city",
            "description": "City of the address."
          },
          "countryCode": {
            "type": "string",
            "title": "country_code",
            "description": "Country code for the address. Uses ISO-3166, two letter formatting."
          },
          "postalCode": {
            "type": "string",
            "title": "postal_code",
            "description": "Postal code of the address."
          },
          "addressLine2": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "address_line2",
            "description": "Second line of the address."
          },
          "invoicingEmail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "invoicing_email",
            "description": "Email used for invoicing."
          },
          "vat": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "vat",
            "description": "VAT information."
          }
        },
        "title": "revenue_origins.v1.RevenueOrigin.BillingDetail",
        "required": [
          "name",
          "addressLine1",
          "city",
          "countryCode",
          "postalCode"
        ],
        "additionalProperties": false,
        "description": "Billing details of the advertiser."
      },
      "revenue_origins.v1.RevenueOriginBillingDetail": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "title": "name",
            "maxLength": 255,
            "minLength": 1,
            "description": "Full name on the billing details."
          },
          "addressLine1": {
            "type": "string",
            "title": "address_line1",
            "maxLength": 255,
            "minLength": 1,
            "description": "First line of the address."
          },
          "city": {
            "type": "string",
            "title": "city",
            "maxLength": 255,
            "minLength": 1,
            "description": "City of the address."
          },
          "countryCode": {
            "type": "string",
            "title": "country_code",
            "pattern": "^[A-Z]{2}$",
            "description": "Country code for the address. Uses ISO-3166, two letter formatting."
          },
          "postalCode": {
            "type": "string",
            "title": "postal_code",
            "maxLength": 50,
            "minLength": 1,
            "description": "Postal code of the address."
          },
          "addressLine2": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "address_line2",
            "maxLength": 255,
            "minLength": 1,
            "description": "(OPTIONAL) Second line of the address."
          },
          "invoicingEmail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "invoicing_email",
            "format": "email",
            "description": "(OPTIONAL) Email used for invoicing."
          },
          "vat": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "vat",
            "maxLength": 50,
            "minLength": 1,
            "description": "(OPTIONAL) VAT information."
          }
        },
        "title": "revenue_origins.v1.RevenueOriginBillingDetail",
        "required": [
          "name",
          "addressLine1",
          "city",
          "countryCode",
          "postalCode"
        ],
        "additionalProperties": false,
        "description": "Billing details of the advertiser."
      },
      "revenue_origins.v1.RevenueOriginsFilters": {
        "type": "object",
        "properties": {
          "ids": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "minLength": 1
            },
            "title": "ids",
            "uniqueItems": true,
            "description": "IDs of advertisers to be filtered."
          },
          "emails": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "email"
            },
            "title": "emails",
            "uniqueItems": true,
            "description": "Emails of advertisers to be filtered."
          },
          "name": {
            "type": "string",
            "title": "name",
            "maxLength": 255,
            "description": "Name of advertisers to be filtered."
          },
          "hasAccount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.BoolValue"
              }
            ],
            "title": "has_account",
            "description": "(OPTIONAL) Advertisers with or without account to be filtered."
          },
          "tagIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "tag_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) IDs of tags to filter advertisers by."
          }
        },
        "title": "revenue_origins.v1.RevenueOriginsFilters",
        "additionalProperties": false,
        "description": "Filters available for advertisers."
      },
      "revenue_origins.v1.UpdateRevenueOriginRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "format": "uuid",
            "description": "ID of the advertiser."
          },
          "name": {
            "type": "string",
            "title": "name",
            "maxLength": 255,
            "minLength": 1,
            "description": "Name of the advertiser."
          },
          "billingDetail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/revenue_origins.v1.RevenueOriginBillingDetail"
              }
            ],
            "title": "billing_detail",
            "description": "Billing details of the advertiser."
          },
          "adminNote": {
            "type": "string",
            "title": "admin_note",
            "maxLength": 255,
            "description": "Admin note to the advertiser."
          }
        },
        "title": "revenue_origins.v1.UpdateRevenueOriginRequest",
        "required": [
          "id",
          "name",
          "billingDetail",
          "adminNote"
        ],
        "additionalProperties": false,
        "description": "Update advertiser."
      },
      "revenue_origins.v1.UpdateRevenueOriginResponse": {
        "type": "object",
        "properties": {
          "revenueOrigin": {
            "allOf": [
              {
                "$ref": "#/components/schemas/revenue_origins.v1.RevenueOrigin"
              }
            ],
            "title": "revenue_origin"
          }
        },
        "title": "revenue_origins.v1.UpdateRevenueOriginResponse",
        "required": [
          "revenueOrigin"
        ],
        "additionalProperties": false,
        "description": "Details of the updated advertiser."
      },
      "settings.v1.AdminAccessStatus": {
        "type": "string",
        "title": "settings.v1.AdminAccessStatus",
        "enum": [
          "ADMIN_ACCESS_STATUS_UNSPECIFIED",
          "ADMIN_ACCESS_STATUS_ALLOWED_PERMANENTLY",
          "ADMIN_ACCESS_STATUS_ALLOWED_TILL_NEXT_REVENUE_CHECK",
          "ADMIN_ACCESS_STATUS_BLOCKED_DUE_TO_REVENUE_TILL_UPGRADE",
          "ADMIN_ACCESS_STATUS_BLOCKED_PERMANENTLY"
        ]
      },
      "settings.v1.AdvertiserParamsVisibility": {
        "type": "object",
        "properties": {
          "advS1": {
            "type": "boolean",
            "title": "adv_s1"
          },
          "advS2": {
            "type": "boolean",
            "title": "adv_s2"
          },
          "advS3": {
            "type": "boolean",
            "title": "adv_s3"
          },
          "advS4": {
            "type": "boolean",
            "title": "adv_s4"
          },
          "advS5": {
            "type": "boolean",
            "title": "adv_s5"
          },
          "externalId": {
            "type": "boolean",
            "title": "external_id"
          },
          "customerId": {
            "type": "boolean",
            "title": "customer_id"
          },
          "externalCid": {
            "type": "boolean",
            "title": "external_cid"
          },
          "ipAddress": {
            "type": "boolean",
            "title": "ip_address"
          },
          "cid": {
            "type": "boolean",
            "title": "cid"
          },
          "adClickId": {
            "type": "boolean",
            "title": "ad_click_id"
          }
        },
        "title": "settings.v1.AdvertiserParamsVisibility",
        "required": [
          "advS1",
          "advS2",
          "advS3",
          "advS4",
          "advS5",
          "externalId",
          "customerId",
          "externalCid",
          "ipAddress",
          "cid",
          "adClickId"
        ],
        "additionalProperties": false
      },
      "settings.v1.BillingDetail": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "title": "name",
            "description": "Legal name."
          },
          "addressLine1": {
            "type": "string",
            "title": "address_line1",
            "description": "Address."
          },
          "city": {
            "type": "string",
            "title": "city",
            "description": "City."
          },
          "countryCode": {
            "type": "string",
            "title": "country_code",
            "description": "Country code"
          },
          "postalCode": {
            "type": "string",
            "title": "postal_code",
            "description": "Postal code."
          },
          "addressLine2": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "address_line2",
            "description": "Additional address details."
          },
          "invoicingEmail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "invoicing_email",
            "description": "Invoicing email."
          },
          "vat": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "vat",
            "description": "VAT number."
          }
        },
        "title": "settings.v1.BillingDetail",
        "additionalProperties": false,
        "description": "Billing details set for tenant (i.e. your company billing details)."
      },
      "settings.v1.DefaultReportFiltering": {
        "type": "object",
        "properties": {
          "conversionStatuses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/conversions.v1.ConversionStatus"
            },
            "title": "conversion_statuses",
            "minItems": 1,
            "uniqueItems": true
          }
        },
        "title": "settings.v1.DefaultReportFiltering",
        "required": [
          "conversionStatuses"
        ],
        "additionalProperties": false
      },
      "settings.v1.FeatureLimit": {
        "type": "object",
        "properties": {
          "featureId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.FeatureId"
              }
            ],
            "title": "feature_id"
          },
          "params": {
            "allOf": [
              {
                "$ref": "#/components/schemas/settings.v1.FeatureLimit.Params"
              }
            ],
            "title": "params"
          }
        },
        "title": "settings.v1.FeatureLimit",
        "additionalProperties": false
      },
      "settings.v1.FeatureLimit.Params": {
        "type": "object",
        "properties": {
          "maxCount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.UInt64Value"
              }
            ],
            "title": "max_count"
          }
        },
        "title": "settings.v1.FeatureLimit.Params",
        "additionalProperties": false
      },
      "settings.v1.Firebase": {
        "type": "object",
        "properties": {
          "config": {
            "allOf": [
              {
                "$ref": "#/components/schemas/settings.v1.FirebaseConfig"
              }
            ],
            "title": "config"
          },
          "authEmulatorHost": {
            "type": "string",
            "title": "auth_emulator_host"
          },
          "firestoreEmulatorHost": {
            "type": "string",
            "title": "firestore_emulator_host"
          },
          "storageEmulatorHost": {
            "type": "string",
            "title": "storage_emulator_host"
          },
          "signInProviders": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "title": "sign_in_providers",
            "description": "Firebase Auth provider IDs enabled for sign-in, e.g. google.com."
          }
        },
        "title": "settings.v1.Firebase",
        "additionalProperties": false
      },
      "settings.v1.FirebaseConfig": {
        "type": "object",
        "properties": {
          "apiKey": {
            "type": "string",
            "title": "api_key"
          },
          "appId": {
            "type": "string",
            "title": "app_id"
          },
          "authDomain": {
            "type": "string",
            "title": "auth_domain"
          },
          "measurementId": {
            "type": "string",
            "title": "measurement_id"
          },
          "messagingSenderId": {
            "type": "string",
            "title": "messaging_sender_id"
          },
          "projectId": {
            "type": "string",
            "title": "project_id"
          },
          "storageBucket": {
            "type": "string",
            "title": "storage_bucket"
          }
        },
        "title": "settings.v1.FirebaseConfig",
        "additionalProperties": false
      },
      "settings.v1.FontTheme": {
        "type": "object",
        "properties": {
          "heading": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.FontFamily"
              }
            ],
            "title": "heading",
            "description": "enum.defined_only = true\n"
          },
          "body": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.FontFamily"
              }
            ],
            "title": "body",
            "description": "enum.defined_only = true\n"
          }
        },
        "title": "settings.v1.FontTheme",
        "required": [
          "heading",
          "body"
        ],
        "additionalProperties": false,
        "description": "An unspecified font family keeps the default font."
      },
      "settings.v1.GetDefaultTimezoneRequest": {
        "type": "object",
        "title": "settings.v1.GetDefaultTimezoneRequest",
        "additionalProperties": false,
        "description": "Request to get the default timezone of the tenant."
      },
      "settings.v1.GetDefaultTimezoneResponse": {
        "type": "object",
        "properties": {
          "timezone": {
            "type": "string",
            "title": "timezone",
            "description": "Default timezone of the tenant, as an IANA Time Zone database name (e.g. \"Europe/Prague\")"
          }
        },
        "title": "settings.v1.GetDefaultTimezoneResponse",
        "required": [
          "timezone"
        ],
        "additionalProperties": false,
        "description": "Default timezone of the tenant."
      },
      "settings.v1.GetTenantSettingsResponse": {
        "type": "object",
        "properties": {
          "environmentDomain": {
            "type": "string",
            "title": "environment_domain"
          },
          "firebase": {
            "allOf": [
              {
                "$ref": "#/components/schemas/settings.v1.Firebase"
              }
            ],
            "title": "firebase"
          },
          "turnstile": {
            "allOf": [
              {
                "$ref": "#/components/schemas/settings.v1.Turnstile"
              }
            ],
            "title": "turnstile"
          },
          "tenantSettings": {
            "allOf": [
              {
                "$ref": "#/components/schemas/settings.v1.TenantSettings"
              }
            ],
            "title": "tenant_settings"
          },
          "featureIds": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/enums.v1.FeatureId"
            },
            "title": "feature_ids"
          },
          "featureLimits": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/settings.v1.FeatureLimit"
            },
            "title": "feature_limits"
          },
          "membership": {
            "allOf": [
              {
                "$ref": "#/components/schemas/memberships.v1.Membership"
              }
            ],
            "title": "membership"
          },
          "googleCertifiedBaseDomain": {
            "type": "string",
            "title": "google_certified_base_domain"
          },
          "enabledFeatureFlags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/enums.v1.FeatureFlag"
            },
            "title": "enabled_feature_flags"
          }
        },
        "title": "settings.v1.GetTenantSettingsResponse",
        "required": [
          "environmentDomain",
          "membership",
          "googleCertifiedBaseDomain",
          "enabledFeatureFlags"
        ],
        "additionalProperties": false
      },
      "settings.v1.OnboardingStatus": {
        "type": "string",
        "title": "settings.v1.OnboardingStatus",
        "enum": [
          "ONBOARDING_STATUS_UNSPECIFIED",
          "ONBOARDING_STATUS_ASSISTED_IMPLEMENTATION",
          "ONBOARDING_STATUS_ENTERPRISE",
          "ONBOARDING_STATUS_FINISHED",
          "ONBOARDING_STATUS_INITIAL",
          "ONBOARDING_STATUS_SELF_IMPLEMENTATION_APP_LOCKED",
          "ONBOARDING_STATUS_SELF_IMPLEMENTATION_APP_UNLOCKED",
          "ONBOARDING_STATUS_WELCOMED"
        ]
      },
      "settings.v1.PrivacyPolicy": {
        "type": "object",
        "properties": {
          "text": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "text",
            "maxLength": 100000,
            "minLength": 1,
            "description": "(OPTIONAL) "
          },
          "visible": {
            "type": "boolean",
            "title": "visible"
          }
        },
        "title": "settings.v1.PrivacyPolicy",
        "required": [
          "visible"
        ],
        "additionalProperties": false
      },
      "settings.v1.PublicBillingDetail": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "title": "name"
          },
          "addressLine1": {
            "type": "string",
            "title": "address_line1"
          },
          "city": {
            "type": "string",
            "title": "city"
          },
          "countryCode": {
            "type": "string",
            "title": "country_code"
          },
          "postalCode": {
            "type": "string",
            "title": "postal_code"
          },
          "addressLine2": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "address_line2"
          },
          "invoicingEmail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "invoicing_email"
          },
          "vat": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "vat"
          }
        },
        "title": "settings.v1.PublicBillingDetail",
        "additionalProperties": false
      },
      "settings.v1.SmartLinks": {
        "type": "object",
        "properties": {
          "visibleToAffiliates": {
            "type": "boolean",
            "title": "visible_to_affiliates"
          },
          "offersVisibleInReports": {
            "type": "boolean",
            "title": "offers_visible_in_reports"
          }
        },
        "title": "settings.v1.SmartLinks",
        "required": [
          "visibleToAffiliates",
          "offersVisibleInReports"
        ],
        "additionalProperties": false
      },
      "settings.v1.TenantDetail": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id"
          },
          "name": {
            "type": "string",
            "title": "name"
          },
          "websiteUrl": {
            "type": "string",
            "title": "website_url"
          }
        },
        "title": "settings.v1.TenantDetail",
        "additionalProperties": false
      },
      "settings.v1.TenantSettings": {
        "type": "object",
        "properties": {
          "lightModeLogoUrl": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "light_mode_logo_url"
          },
          "darkModeLogoUrl": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "dark_mode_logo_url"
          },
          "faviconUrl": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "favicon_url"
          },
          "termsAndConditionText": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "terms_and_condition_text"
          },
          "billingDetails": {
            "allOf": [
              {
                "$ref": "#/components/schemas/settings.v1.PublicBillingDetail"
              }
            ],
            "title": "billing_details"
          },
          "currencyCode": {
            "type": "string",
            "title": "currency_code",
            "description": "Primary currency code"
          },
          "registeredAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "registered_at"
          },
          "loginEnabled": {
            "type": "boolean",
            "title": "login_enabled"
          },
          "loginAvailable": {
            "type": "boolean",
            "title": "login_available"
          },
          "trafficEnabled": {
            "type": "boolean",
            "title": "traffic_enabled"
          },
          "trafficAvailable": {
            "type": "boolean",
            "title": "traffic_available"
          },
          "timezone": {
            "type": "string",
            "title": "timezone"
          },
          "tenantDetail": {
            "allOf": [
              {
                "$ref": "#/components/schemas/settings.v1.TenantDetail"
              }
            ],
            "title": "tenant_detail"
          },
          "membershipPlanId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/memberships.v1.PlanId"
              }
            ],
            "title": "membership_plan_id"
          },
          "membershipPlatformId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/memberships.v1.PlatformId"
              }
            ],
            "title": "membership_platform_id"
          },
          "fraudSuspicionsVisible": {
            "type": "boolean",
            "title": "fraud_suspicions_visible"
          },
          "referralEnabled": {
            "type": "boolean",
            "title": "referral_enabled"
          },
          "adminAccessStatus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/settings.v1.AdminAccessStatus"
              }
            ],
            "title": "admin_access_status"
          },
          "colorTheme": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.ColorTheme"
              }
            ],
            "title": "color_theme"
          },
          "defaultTheme": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.Theme"
              }
            ],
            "title": "default_theme"
          },
          "defaultLanguage": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "default_language"
          },
          "affiliatesVatRequired": {
            "type": "boolean",
            "title": "affiliates_vat_required"
          },
          "tenantType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/settings.v1.TenantType"
              }
            ],
            "title": "tenant_type"
          },
          "onboardingStatus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/settings.v1.OnboardingStatus"
              }
            ],
            "title": "onboarding_status"
          },
          "isAffiliateRateCostBasedOnConversionAmount": {
            "type": "boolean",
            "title": "is_affiliate_rate_cost_based_on_conversion_amount"
          },
          "membershipEndAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "membership_end_at"
          },
          "freeTrialActive": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.BoolValue"
              }
            ],
            "title": "free_trial_active"
          },
          "marketplaceAccessOverridden": {
            "type": "boolean",
            "title": "marketplace_access_overridden"
          },
          "advertiserParamsVisibility": {
            "allOf": [
              {
                "$ref": "#/components/schemas/settings.v1.AdvertiserParamsVisibility"
              }
            ],
            "title": "advertiser_params_visibility"
          },
          "referralConversionSourceAccountVisible": {
            "type": "boolean",
            "title": "referral_conversion_source_account_visible"
          },
          "smartLinks": {
            "allOf": [
              {
                "$ref": "#/components/schemas/settings.v1.SmartLinks"
              }
            ],
            "title": "smart_links"
          },
          "defaultReportFiltering": {
            "allOf": [
              {
                "$ref": "#/components/schemas/settings.v1.DefaultReportFiltering"
              }
            ],
            "title": "default_report_filtering",
            "description": "(OPTIONAL) "
          },
          "whitelabelEnabled": {
            "type": "boolean",
            "title": "whitelabel_enabled"
          },
          "defaultCustomDomain": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "default_custom_domain",
            "description": "(OPTIONAL) "
          },
          "privacyPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/settings.v1.PrivacyPolicy"
              }
            ],
            "title": "privacy_policy"
          },
          "referralRecruitmentLinkHidden": {
            "type": "boolean",
            "title": "referral_recruitment_link_hidden"
          },
          "fontTheme": {
            "allOf": [
              {
                "$ref": "#/components/schemas/settings.v1.FontTheme"
              }
            ],
            "title": "font_theme"
          }
        },
        "title": "settings.v1.TenantSettings",
        "required": [
          "defaultTheme",
          "isAffiliateRateCostBasedOnConversionAmount",
          "advertiserParamsVisibility",
          "whitelabelEnabled",
          "privacyPolicy",
          "referralRecruitmentLinkHidden",
          "fontTheme"
        ],
        "additionalProperties": false
      },
      "settings.v1.TenantType": {
        "type": "string",
        "title": "settings.v1.TenantType",
        "enum": [
          "TENANT_TYPE_UNSPECIFIED",
          "TENANT_TYPE_ECOMMERCE",
          "TENANT_TYPE_NETWORK"
        ]
      },
      "settings.v1.Turnstile": {
        "type": "object",
        "properties": {
          "siteKey": {
            "type": "string",
            "title": "site_key"
          }
        },
        "title": "settings.v1.Turnstile",
        "additionalProperties": false
      },
      "stripe_connect.v1.TransferErrorCode": {
        "type": "string",
        "title": "stripe_connect.v1.TransferErrorCode",
        "enum": [
          "TRANSFER_ERROR_CODE_UNSPECIFIED",
          "TRANSFER_ERROR_CODE_CONNECTED_ACCOUNT_ID_MISSING",
          "TRANSFER_ERROR_CODE_CURRENCY_NOT_SUPPORTED"
        ]
      },
      "tags.v1.CreateTagRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "title": "name",
            "maxLength": 50,
            "minLength": 1,
            "pattern": "\\S",
            "description": "Name of the tag."
          },
          "hexColorCode": {
            "type": "string",
            "title": "hex_color_code",
            "pattern": "#[0-9A-F]{6}",
            "description": "Color of the tag, uses HTML hex color code."
          },
          "scopes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/enums.v1.TagScope"
            },
            "title": "scopes",
            "minItems": 1,
            "uniqueItems": true,
            "description": "Scopes the tag applies to."
          }
        },
        "title": "tags.v1.CreateTagRequest",
        "required": [
          "name",
          "hexColorCode",
          "scopes"
        ],
        "additionalProperties": false,
        "description": "Create a new tag."
      },
      "tags.v1.CreateTagResponse": {
        "type": "object",
        "properties": {
          "tag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tags.v1.Tag"
              }
            ],
            "title": "tag",
            "description": "Tag identifier."
          }
        },
        "title": "tags.v1.CreateTagResponse",
        "required": [
          "tag"
        ],
        "additionalProperties": false,
        "description": "Feedback for create tag request."
      },
      "tags.v1.DeleteTagRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "format": "uuid",
            "description": "Tag identifier."
          }
        },
        "title": "tags.v1.DeleteTagRequest",
        "additionalProperties": false,
        "description": "Delete tag."
      },
      "tags.v1.DeleteTagResponse": {
        "type": "object",
        "title": "tags.v1.DeleteTagResponse",
        "additionalProperties": false,
        "description": "Feedback for delete tag request."
      },
      "tags.v1.GetTagRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "format": "uuid",
            "description": "Tag identifier."
          }
        },
        "title": "tags.v1.GetTagRequest",
        "additionalProperties": false,
        "description": "Get details of an existing tag."
      },
      "tags.v1.GetTagResponse": {
        "type": "object",
        "properties": {
          "tag": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tags.v1.Tag"
              }
            ],
            "title": "tag"
          }
        },
        "title": "tags.v1.GetTagResponse",
        "required": [
          "tag"
        ],
        "additionalProperties": false,
        "description": "Details of requested tag."
      },
      "tags.v1.ListTagsRequest": {
        "type": "object",
        "title": "tags.v1.ListTagsRequest",
        "additionalProperties": false,
        "description": "List existing tags."
      },
      "tags.v1.ListTagsResponse": {
        "type": "object",
        "properties": {
          "tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/tags.v1.Tag"
            },
            "title": "tags"
          }
        },
        "title": "tags.v1.ListTagsResponse",
        "required": [
          "tags"
        ],
        "additionalProperties": false,
        "description": "List of existing tags."
      },
      "tags.v1.Tag": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Unique identifier of the tag."
          },
          "name": {
            "type": "string",
            "title": "name",
            "description": "Name of the tag."
          },
          "hexColorCode": {
            "type": "string",
            "title": "hex_color_code",
            "description": "Color of the tag, uses HTML hex color code."
          },
          "scopes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/enums.v1.TagScope"
            },
            "title": "scopes",
            "description": "Scopes the tag applies to."
          }
        },
        "title": "tags.v1.Tag",
        "required": [
          "id",
          "name",
          "hexColorCode",
          "scopes"
        ],
        "additionalProperties": false,
        "description": "Tag"
      },
      "tiers.v1.CreateTierRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "title": "name",
            "maxLength": 50,
            "minLength": 1,
            "description": "Name of the tier."
          },
          "defaultRate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "default_rate",
            "description": "Default affiliate payout rate for the tier. Uses decimal as a string."
          }
        },
        "title": "tiers.v1.CreateTierRequest",
        "required": [
          "name",
          "defaultRate"
        ],
        "additionalProperties": false,
        "description": "Create a new affiliate tier"
      },
      "tiers.v1.CreateTierResponse": {
        "type": "object",
        "properties": {
          "tier": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tiers.v1.Tier"
              }
            ],
            "title": "tier",
            "description": "ID of the created tier."
          }
        },
        "title": "tiers.v1.CreateTierResponse",
        "required": [
          "tier"
        ],
        "additionalProperties": false,
        "description": "Create new affiliate response."
      },
      "tiers.v1.DeleteTierRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "format": "uuid",
            "description": "ID of the tier to be deleted."
          }
        },
        "title": "tiers.v1.DeleteTierRequest",
        "required": [
          "id"
        ],
        "additionalProperties": false,
        "description": "Delete affiliate tier."
      },
      "tiers.v1.DeleteTierResponse": {
        "type": "object",
        "title": "tiers.v1.DeleteTierResponse",
        "additionalProperties": false,
        "description": "Deletion request response."
      },
      "tiers.v1.GetTierRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "format": "uuid",
            "description": "Unique identifier of the affiliate tier."
          }
        },
        "title": "tiers.v1.GetTierRequest",
        "required": [
          "id"
        ],
        "additionalProperties": false,
        "description": "Get the details of specific affiliate tier."
      },
      "tiers.v1.GetTierResponse": {
        "type": "object",
        "properties": {
          "tier": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tiers.v1.Tier"
              }
            ],
            "title": "tier"
          }
        },
        "title": "tiers.v1.GetTierResponse",
        "required": [
          "tier"
        ],
        "additionalProperties": false,
        "description": "Detail of requested affiliate tier."
      },
      "tiers.v1.ListTiersRequest": {
        "type": "object",
        "title": "tiers.v1.ListTiersRequest",
        "additionalProperties": false,
        "description": "Request to list all active tiers in the system."
      },
      "tiers.v1.ListTiersResponse": {
        "type": "object",
        "properties": {
          "tiers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/tiers.v1.Tier"
            },
            "title": "tiers"
          }
        },
        "title": "tiers.v1.ListTiersResponse",
        "required": [
          "tiers"
        ],
        "additionalProperties": false,
        "description": "List of all active tiers in the system."
      },
      "tiers.v1.Tier": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Unique identifier of the tier."
          },
          "name": {
            "type": "string",
            "title": "name",
            "description": "Name of the tier."
          },
          "defaultRate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "default_rate",
            "description": "Default affiliate payout rate for the tier. Uses decimal as a string."
          },
          "default": {
            "type": "boolean",
            "title": "default",
            "description": "Designates if tier is the default that gets assigned to new affiliates, only one tier can be set as true."
          }
        },
        "title": "tiers.v1.Tier",
        "required": [
          "id",
          "name",
          "defaultRate",
          "default"
        ],
        "additionalProperties": false,
        "description": "Affiliate tier"
      },
      "tiers.v1.UpdateTierRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "format": "uuid",
            "description": "ID of the tier to be updated."
          },
          "name": {
            "type": "string",
            "title": "name",
            "maxLength": 50,
            "minLength": 1,
            "description": "Name of the tier."
          },
          "defaultRate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "default_rate",
            "description": "Default affiliate payout rate for the tier. Uses decimal as a string."
          }
        },
        "title": "tiers.v1.UpdateTierRequest",
        "required": [
          "id",
          "name",
          "defaultRate"
        ],
        "additionalProperties": false,
        "description": "Update an existing affiliate tier."
      },
      "tiers.v1.UpdateTierResponse": {
        "type": "object",
        "properties": {
          "tier": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tiers.v1.Tier"
              }
            ],
            "title": "tier"
          }
        },
        "title": "tiers.v1.UpdateTierResponse",
        "required": [
          "tier"
        ],
        "additionalProperties": false,
        "description": "Update existing affiliate tier response."
      },
      "tipalti.v1.CheckPaymentBatchStatusRequest": {
        "type": "object",
        "properties": {
          "settlementId": {
            "type": "string",
            "title": "settlement_id",
            "description": "Unique ID of a settlement"
          },
          "paymentBatchId": {
            "type": "string",
            "title": "payment_batch_id",
            "description": "Unique ID of a payment batch"
          }
        },
        "title": "tipalti.v1.CheckPaymentBatchStatusRequest",
        "additionalProperties": false
      },
      "tipalti.v1.CheckPaymentBatchStatusResponse": {
        "type": "object",
        "title": "tipalti.v1.CheckPaymentBatchStatusResponse",
        "additionalProperties": false
      },
      "tipalti.v1.CreatePaymentBatchRequest": {
        "type": "object",
        "properties": {
          "settlementId": {
            "type": "string",
            "title": "settlement_id",
            "format": "uuid",
            "description": "Unique ID of a settlement"
          }
        },
        "title": "tipalti.v1.CreatePaymentBatchRequest",
        "required": [
          "settlementId"
        ],
        "additionalProperties": false
      },
      "tipalti.v1.CreatePaymentBatchResponse": {
        "type": "object",
        "properties": {
          "paymentBatchId": {
            "type": "string",
            "title": "payment_batch_id",
            "description": "Unique ID of a payment batch"
          }
        },
        "title": "tipalti.v1.CreatePaymentBatchResponse",
        "additionalProperties": false
      },
      "tipalti.v1.ListPayableAccountSettlementsRequest": {
        "type": "object",
        "properties": {
          "settlementId": {
            "type": "string",
            "title": "settlement_id",
            "format": "uuid",
            "description": "Unique ID of a settlement"
          }
        },
        "title": "tipalti.v1.ListPayableAccountSettlementsRequest",
        "additionalProperties": false
      },
      "tipalti.v1.ListPayableAccountSettlementsResponse": {
        "type": "object",
        "properties": {
          "payableAccountSettlementIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "title": "payable_account_settlement_ids",
            "description": "Unique IDs of account settlements payable via Tipalti."
          },
          "unpaidAccountSettlementIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "title": "unpaid_account_settlement_ids",
            "description": "Unique IDs of account settlements yet unpaid via Tipalti."
          }
        },
        "title": "tipalti.v1.ListPayableAccountSettlementsResponse",
        "additionalProperties": false
      },
      "tracking_links.v1.AffiliateParams": {
        "type": "object",
        "properties": {
          "affS1": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "aff_s1",
            "maxLength": 200,
            "minLength": 1,
            "description": "(OPTIONAL) "
          },
          "affS2": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "aff_s2",
            "maxLength": 200,
            "minLength": 1,
            "description": "(OPTIONAL) "
          },
          "affS3": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "aff_s3",
            "maxLength": 200,
            "minLength": 1,
            "description": "(OPTIONAL) "
          },
          "affS4": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "aff_s4",
            "maxLength": 200,
            "minLength": 1,
            "description": "(OPTIONAL) "
          },
          "affS5": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "aff_s5",
            "maxLength": 200,
            "minLength": 1,
            "description": "(OPTIONAL) "
          }
        },
        "title": "tracking_links.v1.AffiliateParams",
        "additionalProperties": false,
        "description": "Optional affiliate parameters that should be appended to the final URL\n (e.g., affS1..affS5). Only provided keys are appended."
      },
      "tracking_links.v1.BuildTrackingLinkRequest": {
        "type": "object",
        "properties": {
          "sourceId": {
            "type": "string",
            "title": "source_id",
            "format": "uuid",
            "description": "Affiliate identifier."
          },
          "offerId": {
            "type": "string",
            "title": "offer_id",
            "format": "uuid",
            "description": "Offer identifier."
          },
          "target": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tracking_links.v1.Target"
              }
            ],
            "title": "target"
          },
          "affiliateParams": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tracking_links.v1.AffiliateParams"
              }
            ],
            "title": "affiliate_params",
            "description": "(OPTIONAL) "
          }
        },
        "title": "tracking_links.v1.BuildTrackingLinkRequest",
        "required": [
          "sourceId",
          "offerId",
          "target"
        ],
        "additionalProperties": false
      },
      "tracking_links.v1.BuildTrackingLinkResponse": {
        "type": "object",
        "properties": {
          "linkUrl": {
            "type": "string",
            "title": "link_url"
          }
        },
        "title": "tracking_links.v1.BuildTrackingLinkResponse",
        "required": [
          "linkUrl"
        ],
        "additionalProperties": false
      },
      "tracking_links.v1.DirectTarget": {
        "type": "object",
        "properties": {
          "landingPageId": {
            "type": "string",
            "title": "landing_page_id",
            "format": "uuid",
            "description": "The concrete landing page to send the user to (or its deep link)."
          },
          "deepLinkUrl": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "deep_link_url",
            "format": "uri",
            "description": "(OPTIONAL) Optional deep link URL to be used."
          }
        },
        "title": "tracking_links.v1.DirectTarget",
        "required": [
          "landingPageId"
        ],
        "additionalProperties": false,
        "description": "Direct tracking type."
      },
      "tracking_links.v1.GoogleCertifiedRedirectTarget": {
        "type": "object",
        "properties": {
          "landingPageId": {
            "type": "string",
            "title": "landing_page_id",
            "format": "uuid",
            "description": "The offer's landing page identifier used in the path."
          },
          "deepLinkUrl": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "deep_link_url",
            "format": "uri",
            "description": "(OPTIONAL) Optional deep link URL to redirect to."
          }
        },
        "title": "tracking_links.v1.GoogleCertifiedRedirectTarget",
        "required": [
          "landingPageId"
        ],
        "additionalProperties": false,
        "description": "Google certified redirect tracking type.\n\n Certified Google tracking domain is an on-demand feature, that's not natively included in any subscription plan.\n If you're interested in using it, please contact sales."
      },
      "tracking_links.v1.SystemRedirectTarget": {
        "type": "object",
        "properties": {
          "redirectDomain": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "redirect_domain",
            "maxLength": 255,
            "minLength": 1,
            "description": "(OPTIONAL) Redirect domain to use (e.g., redirect.example.com)."
          },
          "landingPageId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "landing_page_id",
            "maxLength": 100,
            "minLength": 1,
            "description": "(OPTIONAL) Optional: target a specific landing page."
          },
          "deepLinkUrl": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "deep_link_url",
            "format": "uri",
            "description": "(OPTIONAL) Optional deep link URL used only when landing_page_id is provided."
          }
        },
        "title": "tracking_links.v1.SystemRedirectTarget",
        "additionalProperties": false,
        "description": "System redirect tracking type.\ndeep_link_url_with_landing_page_id // Deep link URL can be specified only when landing page ID is provided.\n"
      },
      "tracking_links.v1.Target": {
        "type": "object",
        "allOf": [
          {
            "oneOf": [
              {
                "required": [
                  "direct"
                ]
              },
              {
                "required": [
                  "systemRedirect"
                ]
              },
              {
                "required": [
                  "googleCertifiedRedirect"
                ]
              }
            ]
          }
        ],
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "direct": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tracking_links.v1.DirectTarget"
                  }
                ],
                "title": "direct"
              }
            },
            "title": "direct"
          },
          {
            "type": "object",
            "properties": {
              "googleCertifiedRedirect": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tracking_links.v1.GoogleCertifiedRedirectTarget"
                  }
                ],
                "title": "google_certified_redirect"
              }
            },
            "title": "google_certified_redirect"
          },
          {
            "type": "object",
            "properties": {
              "systemRedirect": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tracking_links.v1.SystemRedirectTarget"
                  }
                ],
                "title": "system_redirect"
              }
            },
            "title": "system_redirect"
          }
        ],
        "unevaluatedProperties": false,
        "not": {
          "allOf": [
            {
              "anyOf": [
                {
                  "required": [
                    "direct"
                  ]
                },
                {
                  "required": [
                    "googleCertifiedRedirect"
                  ]
                },
                {
                  "required": [
                    "systemRedirect"
                  ]
                }
              ]
            },
            {
              "not": {
                "oneOf": [
                  {
                    "required": [
                      "direct"
                    ]
                  },
                  {
                    "required": [
                      "googleCertifiedRedirect"
                    ]
                  },
                  {
                    "required": [
                      "systemRedirect"
                    ]
                  }
                ]
              }
            }
          ]
        },
        "title": "tracking_links.v1.Target",
        "description": "Target describes WHICH kind of link to build and the required inputs for it.\n Exactly one target must be set."
      },
      "types.v1.AmountOrRate": {
        "type": "object",
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "amount": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/types.v1.Decimal"
                  }
                ],
                "title": "amount"
              }
            },
            "title": "amount"
          },
          {
            "type": "object",
            "properties": {
              "rate": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/types.v1.Decimal"
                  }
                ],
                "title": "rate"
              }
            },
            "title": "rate"
          }
        ],
        "unevaluatedProperties": false,
        "not": {
          "allOf": [
            {
              "anyOf": [
                {
                  "required": [
                    "amount"
                  ]
                },
                {
                  "required": [
                    "rate"
                  ]
                }
              ]
            },
            {
              "not": {
                "oneOf": [
                  {
                    "required": [
                      "amount"
                    ]
                  },
                  {
                    "required": [
                      "rate"
                    ]
                  }
                ]
              }
            }
          ]
        },
        "title": "types.v1.AmountOrRate"
      },
      "types.v1.ColorTheme": {
        "type": "object",
        "properties": {
          "theme": {
            "type": "string",
            "title": "theme"
          },
          "backgroundEnabled": {
            "type": "boolean",
            "title": "background_enabled"
          }
        },
        "title": "types.v1.ColorTheme",
        "additionalProperties": false
      },
      "types.v1.Currency": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "title": "code",
            "maxLength": 3,
            "minLength": 3,
            "pattern": "^[A-Z]*$",
            "description": "The three-letter currency code defined in ISO 4217."
          }
        },
        "title": "types.v1.Currency",
        "additionalProperties": false
      },
      "types.v1.CustomQuestionAnswer": {
        "type": "object",
        "properties": {
          "question": {
            "type": "string",
            "title": "question",
            "minLength": 1
          },
          "answer": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.CustomQuestionAnswer.Answer"
              }
            ],
            "title": "answer"
          }
        },
        "title": "types.v1.CustomQuestionAnswer",
        "required": [
          "question",
          "answer"
        ],
        "additionalProperties": false
      },
      "types.v1.CustomQuestionAnswer.Answer": {
        "type": "object",
        "allOf": [
          {
            "oneOf": [
              {
                "required": [
                  "text"
                ]
              },
              {
                "required": [
                  "checkbox"
                ]
              },
              {
                "required": [
                  "options"
                ]
              },
              {
                "required": [
                  "fileUpload"
                ]
              }
            ]
          }
        ],
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "checkbox": {
                "type": "boolean",
                "title": "checkbox"
              }
            },
            "title": "checkbox"
          },
          {
            "type": "object",
            "properties": {
              "fileUpload": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/types.v1.CustomQuestionAnswer.Answer.FileUpload"
                  }
                ],
                "title": "file_upload"
              }
            },
            "title": "file_upload"
          },
          {
            "type": "object",
            "properties": {
              "options": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/types.v1.CustomQuestionAnswer.Answer.Options"
                  }
                ],
                "title": "options"
              }
            },
            "title": "options"
          },
          {
            "type": "object",
            "properties": {
              "text": {
                "type": "string",
                "title": "text",
                "maxLength": 1000
              }
            },
            "title": "text"
          }
        ],
        "unevaluatedProperties": false,
        "not": {
          "allOf": [
            {
              "anyOf": [
                {
                  "required": [
                    "checkbox"
                  ]
                },
                {
                  "required": [
                    "fileUpload"
                  ]
                },
                {
                  "required": [
                    "options"
                  ]
                },
                {
                  "required": [
                    "text"
                  ]
                }
              ]
            },
            {
              "not": {
                "oneOf": [
                  {
                    "required": [
                      "checkbox"
                    ]
                  },
                  {
                    "required": [
                      "fileUpload"
                    ]
                  },
                  {
                    "required": [
                      "options"
                    ]
                  },
                  {
                    "required": [
                      "text"
                    ]
                  }
                ]
              }
            }
          ]
        },
        "title": "types.v1.CustomQuestionAnswer.Answer"
      },
      "types.v1.CustomQuestionAnswer.Answer.FileUpload": {
        "type": "object",
        "properties": {
          "url": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "url",
            "format": "uri",
            "description": "(OPTIONAL) "
          }
        },
        "title": "types.v1.CustomQuestionAnswer.Answer.FileUpload",
        "additionalProperties": false
      },
      "types.v1.CustomQuestionAnswer.Answer.Options": {
        "type": "object",
        "properties": {
          "values": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "minLength": 1
            },
            "title": "values",
            "maxItems": 20
          }
        },
        "title": "types.v1.CustomQuestionAnswer.Answer.Options",
        "required": [
          "values"
        ],
        "additionalProperties": false
      },
      "types.v1.CustomQuestionSettings": {
        "type": "object",
        "allOf": [
          {
            "oneOf": [
              {
                "required": [
                  "basicQuestion"
                ]
              },
              {
                "required": [
                  "selectOptionQuestion"
                ]
              }
            ]
          }
        ],
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "basicQuestion": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/types.v1.CustomQuestionSettings.BasicQuestion"
                  }
                ],
                "title": "basic_question",
                "description": "A free-form question."
              }
            },
            "title": "basic_question"
          },
          {
            "type": "object",
            "properties": {
              "selectOptionQuestion": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/types.v1.CustomQuestionSettings.SelectOptionQuestion"
                  }
                ],
                "title": "select_option_question",
                "description": "A multiple-choice question."
              }
            },
            "title": "select_option_question"
          }
        ],
        "unevaluatedProperties": false,
        "not": {
          "allOf": [
            {
              "anyOf": [
                {
                  "required": [
                    "basicQuestion"
                  ]
                },
                {
                  "required": [
                    "selectOptionQuestion"
                  ]
                }
              ]
            },
            {
              "not": {
                "oneOf": [
                  {
                    "required": [
                      "basicQuestion"
                    ]
                  },
                  {
                    "required": [
                      "selectOptionQuestion"
                    ]
                  }
                ]
              }
            }
          ]
        },
        "properties": {
          "question": {
            "type": "string",
            "title": "question",
            "maxLength": 255,
            "minLength": 1,
            "description": "The question text shown to the applicant (1-255 chars)."
          },
          "visibility": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.QuestionVisibility"
              }
            ],
            "not": {
              "enum": [
                "QUESTION_VISIBILITY_UNSPECIFIED"
              ]
            },
            "title": "visibility",
            "description": "Whether answering the question is required or optional for the applicant, or the question is hidden from them.\nenum.defined_only = true\n"
          }
        },
        "title": "types.v1.CustomQuestionSettings",
        "required": [
          "question",
          "visibility"
        ],
        "description": "Definition of a single custom question presented to applicants."
      },
      "types.v1.CustomQuestionSettings.BasicQuestion": {
        "type": "object",
        "properties": {
          "answerType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.AnswerType"
              }
            ],
            "not": {
              "enum": [
                "ANSWER_TYPE_UNSPECIFIED"
              ]
            },
            "title": "answer_type",
            "description": "Expected type of the answer (e.g. text, checkbox or file upload).\nenum.defined_only = true\n"
          }
        },
        "title": "types.v1.CustomQuestionSettings.BasicQuestion",
        "required": [
          "answerType"
        ],
        "additionalProperties": false,
        "description": "A free-form question answered with a single value of the given answer type."
      },
      "types.v1.CustomQuestionSettings.SelectOptionQuestion": {
        "type": "object",
        "properties": {
          "selectMultiple": {
            "type": "boolean",
            "title": "select_multiple",
            "description": "Whether the applicant may select more than one option."
          },
          "options": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "minLength": 1
            },
            "title": "options",
            "maxItems": 20,
            "minItems": 1,
            "description": "The options the applicant can choose from (1-20 entries, each 1-255 chars)."
          }
        },
        "title": "types.v1.CustomQuestionSettings.SelectOptionQuestion",
        "required": [
          "options"
        ],
        "additionalProperties": false,
        "description": "A question answered by choosing from a fixed set of options."
      },
      "types.v1.Decimal": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "title": "value",
            "pattern": "^-?\\d+(\\.\\d+)?$"
          }
        },
        "title": "types.v1.Decimal",
        "additionalProperties": false
      },
      "types.v1.Fallback": {
        "type": "object",
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "customUrl": {
                "type": "string",
                "title": "custom_url",
                "description": "(OPTIONAL) "
              }
            },
            "title": "custom_url"
          },
          {
            "type": "object",
            "properties": {
              "offerId": {
                "type": "string",
                "title": "offer_id",
                "description": "(OPTIONAL) "
              }
            },
            "title": "offer_id"
          },
          {
            "type": "object",
            "properties": {
              "smartLinkId": {
                "type": "string",
                "title": "smart_link_id",
                "description": "(OPTIONAL) "
              }
            },
            "title": "smart_link_id"
          }
        ],
        "unevaluatedProperties": false,
        "not": {
          "allOf": [
            {
              "anyOf": [
                {
                  "required": [
                    "customUrl"
                  ]
                },
                {
                  "required": [
                    "offerId"
                  ]
                },
                {
                  "required": [
                    "smartLinkId"
                  ]
                }
              ]
            },
            {
              "not": {
                "oneOf": [
                  {
                    "required": [
                      "customUrl"
                    ]
                  },
                  {
                    "required": [
                      "offerId"
                    ]
                  },
                  {
                    "required": [
                      "smartLinkId"
                    ]
                  }
                ]
              }
            }
          ]
        },
        "title": "types.v1.Fallback"
      },
      "types.v1.FallbackRequest": {
        "type": "object",
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "customUrl": {
                "type": "string",
                "title": "custom_url",
                "format": "uri",
                "description": "(OPTIONAL) "
              }
            },
            "title": "custom_url"
          },
          {
            "type": "object",
            "properties": {
              "offerId": {
                "type": "string",
                "title": "offer_id",
                "format": "uuid",
                "description": "(OPTIONAL) "
              }
            },
            "title": "offer_id"
          },
          {
            "type": "object",
            "properties": {
              "smartLinkId": {
                "type": "string",
                "title": "smart_link_id",
                "format": "uuid",
                "description": "(OPTIONAL) "
              }
            },
            "title": "smart_link_id"
          }
        ],
        "unevaluatedProperties": false,
        "not": {
          "allOf": [
            {
              "anyOf": [
                {
                  "required": [
                    "customUrl"
                  ]
                },
                {
                  "required": [
                    "offerId"
                  ]
                },
                {
                  "required": [
                    "smartLinkId"
                  ]
                }
              ]
            },
            {
              "not": {
                "oneOf": [
                  {
                    "required": [
                      "customUrl"
                    ]
                  },
                  {
                    "required": [
                      "offerId"
                    ]
                  },
                  {
                    "required": [
                      "smartLinkId"
                    ]
                  }
                ]
              }
            }
          ]
        },
        "title": "types.v1.FallbackRequest"
      },
      "types.v1.FraudSuspicion": {
        "type": "object",
        "properties": {
          "isSuspected": {
            "type": "boolean",
            "title": "is_suspected"
          },
          "causes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/enums.v1.FraudDetectionRule"
            },
            "title": "causes"
          }
        },
        "title": "types.v1.FraudSuspicion",
        "required": [
          "isSuspected",
          "causes"
        ],
        "additionalProperties": false
      },
      "types.v1.FraudSuspicionFilter": {
        "type": "object",
        "properties": {
          "isSuspected": {
            "type": "boolean",
            "title": "is_suspected"
          }
        },
        "title": "types.v1.FraudSuspicionFilter",
        "additionalProperties": false
      },
      "types.v1.Messenger": {
        "type": "object",
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "signal": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/types.v1.Messenger.Signal"
                  }
                ],
                "title": "signal"
              }
            },
            "title": "signal"
          },
          {
            "type": "object",
            "properties": {
              "skype": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/types.v1.Messenger.Skype"
                  }
                ],
                "title": "skype"
              }
            },
            "title": "skype"
          },
          {
            "type": "object",
            "properties": {
              "telegram": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/types.v1.Messenger.Telegram"
                  }
                ],
                "title": "telegram"
              }
            },
            "title": "telegram"
          },
          {
            "type": "object",
            "properties": {
              "whatsapp": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/types.v1.Messenger.Whatsapp"
                  }
                ],
                "title": "whatsapp"
              }
            },
            "title": "whatsapp"
          }
        ],
        "unevaluatedProperties": false,
        "not": {
          "allOf": [
            {
              "anyOf": [
                {
                  "required": [
                    "signal"
                  ]
                },
                {
                  "required": [
                    "skype"
                  ]
                },
                {
                  "required": [
                    "telegram"
                  ]
                },
                {
                  "required": [
                    "whatsapp"
                  ]
                }
              ]
            },
            {
              "not": {
                "oneOf": [
                  {
                    "required": [
                      "signal"
                    ]
                  },
                  {
                    "required": [
                      "skype"
                    ]
                  },
                  {
                    "required": [
                      "telegram"
                    ]
                  },
                  {
                    "required": [
                      "whatsapp"
                    ]
                  }
                ]
              }
            }
          ]
        },
        "title": "types.v1.Messenger"
      },
      "types.v1.Messenger.Signal": {
        "type": "object",
        "properties": {
          "phoneNumber": {
            "type": "string",
            "title": "phone_number",
            "maxLength": 20,
            "minLength": 1
          }
        },
        "title": "types.v1.Messenger.Signal",
        "additionalProperties": false
      },
      "types.v1.Messenger.Skype": {
        "type": "object",
        "properties": {
          "username": {
            "type": "string",
            "title": "username",
            "maxLength": 100,
            "minLength": 1
          }
        },
        "title": "types.v1.Messenger.Skype",
        "additionalProperties": false
      },
      "types.v1.Messenger.Telegram": {
        "type": "object",
        "properties": {
          "phoneNumber": {
            "type": "string",
            "title": "phone_number",
            "maxLength": 20,
            "minLength": 1
          }
        },
        "title": "types.v1.Messenger.Telegram",
        "additionalProperties": false
      },
      "types.v1.Messenger.Whatsapp": {
        "type": "object",
        "properties": {
          "phoneNumber": {
            "type": "string",
            "title": "phone_number",
            "maxLength": 20,
            "minLength": 1
          }
        },
        "title": "types.v1.Messenger.Whatsapp",
        "additionalProperties": false
      },
      "types.v1.OptionalPaginationParams": {
        "type": "object",
        "properties": {
          "limit": {
            "exclusiveMinimum": 0,
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.UInt32Value"
              }
            ],
            "title": "limit",
            "maximum": 500,
            "description": "Maximum number of items to return (1-500). Omit to use the endpoint's default page size."
          },
          "offset": {
            "type": "integer",
            "title": "offset",
            "description": "Number of items to skip from the start of the result set."
          }
        },
        "title": "types.v1.OptionalPaginationParams",
        "additionalProperties": false,
        "description": "Pagination for a list request where the page size is optional."
      },
      "types.v1.Pagination": {
        "type": "object",
        "properties": {
          "totalCount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.UInt32Value"
              }
            ],
            "title": "total_count",
            "description": "Total number of items matching the request across all pages. Unset when the total is not computed."
          },
          "hasMore": {
            "type": "boolean",
            "title": "has_more",
            "description": "Whether more items are available beyond the current page."
          }
        },
        "title": "types.v1.Pagination",
        "additionalProperties": false,
        "description": "Pagination details returned with a list response."
      },
      "types.v1.PaginationParams": {
        "type": "object",
        "properties": {
          "limit": {
            "exclusiveMinimum": 0,
            "type": "integer",
            "title": "limit",
            "maximum": 500,
            "description": "Maximum number of items to return (1-500)."
          },
          "offset": {
            "type": "integer",
            "title": "offset",
            "description": "Number of items to skip from the start of the result set."
          }
        },
        "title": "types.v1.PaginationParams",
        "additionalProperties": false,
        "description": "Pagination for a list request."
      },
      "types.v1.SourcePublicId": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "title": "value",
            "maxLength": 50,
            "minLength": 2,
            "pattern": "^[a-z0-9][a-z0-9_-]*[a-z0-9]$"
          }
        },
        "title": "types.v1.SourcePublicId",
        "additionalProperties": false,
        "description": "Only lowercase alphanumeric characters allowed."
      },
      "types.v1.TimeRange": {
        "type": "object",
        "properties": {
          "from": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "from"
          },
          "to": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "to"
          }
        },
        "title": "types.v1.TimeRange",
        "required": [
          "from",
          "to"
        ],
        "additionalProperties": false,
        "description": "from.before.to // from must be before to\n"
      },
      "webhooks.v1.CreateWebhookRequest": {
        "type": "object",
        "properties": {
          "webhook": {
            "allOf": [
              {
                "$ref": "#/components/schemas/webhooks.v1.Webhook"
              }
            ],
            "title": "webhook",
            "description": "Webhook specification"
          }
        },
        "title": "webhooks.v1.CreateWebhookRequest",
        "required": [
          "webhook"
        ],
        "additionalProperties": false,
        "description": "Create a new webhook."
      },
      "webhooks.v1.CreateWebhookResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Unique identifier of the webhook",
            "readOnly": true
          }
        },
        "title": "webhooks.v1.CreateWebhookResponse",
        "additionalProperties": false,
        "description": "Feedback for create webhook request."
      },
      "webhooks.v1.DeleteWebhookRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Unique identifier of the webhook"
          }
        },
        "title": "webhooks.v1.DeleteWebhookRequest",
        "required": [
          "id"
        ],
        "additionalProperties": false,
        "description": "Delete an existing webhook."
      },
      "webhooks.v1.DeleteWebhookResponse": {
        "type": "object",
        "title": "webhooks.v1.DeleteWebhookResponse",
        "additionalProperties": false,
        "description": "Feedback for delete webhook request."
      },
      "webhooks.v1.Event": {
        "type": "object",
        "allOf": [
          {
            "oneOf": [
              {
                "required": [
                  "clickCreated"
                ]
              },
              {
                "required": [
                  "conversionCreated"
                ]
              },
              {
                "required": [
                  "affiliateCreated"
                ]
              },
              {
                "required": [
                  "affiliateRegistrationDataCreated"
                ]
              },
              {
                "required": [
                  "affiliateStatusChanged"
                ]
              },
              {
                "required": [
                  "affiliateTierChanged"
                ]
              },
              {
                "required": [
                  "stripeIntegrationCreated"
                ]
              },
              {
                "required": [
                  "stripeIntegrationDeleted"
                ]
              },
              {
                "required": [
                  "conversionStatusChanged"
                ]
              },
              {
                "required": [
                  "settlementCreated"
                ]
              },
              {
                "required": [
                  "couponCreated"
                ]
              },
              {
                "required": [
                  "freeTrialStarted"
                ]
              },
              {
                "required": [
                  "revenueWarningTriggered"
                ]
              },
              {
                "required": [
                  "mailMarketingEventTriggered"
                ]
              },
              {
                "required": [
                  "affiliateTicketCreated"
                ]
              },
              {
                "required": [
                  "affiliateTicketUpdated"
                ]
              },
              {
                "required": [
                  "marketplaceAccessStatusChanged"
                ]
              },
              {
                "required": [
                  "tenantTouchpointCompleted"
                ]
              },
              {
                "required": [
                  "claimCreated"
                ]
              }
            ]
          }
        ],
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "affiliateCreated": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/affiliates.v1.Affiliate"
                  }
                ],
                "title": "affiliate_created"
              }
            },
            "title": "affiliate_created"
          },
          {
            "type": "object",
            "properties": {
              "affiliateRegistrationDataCreated": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/webhooks.v1.Event.AffiliateRegistrationDataCreated"
                  }
                ],
                "title": "affiliate_registration_data_created"
              }
            },
            "title": "affiliate_registration_data_created"
          },
          {
            "type": "object",
            "properties": {
              "affiliateStatusChanged": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/webhooks.v1.Event.AffiliateStatusChanged"
                  }
                ],
                "title": "affiliate_status_changed"
              }
            },
            "title": "affiliate_status_changed"
          },
          {
            "type": "object",
            "properties": {
              "affiliateTicketCreated": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/webhooks.v1.Event.AffiliateTicketCreated"
                  }
                ],
                "title": "affiliate_ticket_created"
              }
            },
            "title": "affiliate_ticket_created"
          },
          {
            "type": "object",
            "properties": {
              "affiliateTicketUpdated": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/webhooks.v1.Event.AffiliateTicketUpdated"
                  }
                ],
                "title": "affiliate_ticket_updated"
              }
            },
            "title": "affiliate_ticket_updated"
          },
          {
            "type": "object",
            "properties": {
              "affiliateTierChanged": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/webhooks.v1.Event.AffiliateTierChanged"
                  }
                ],
                "title": "affiliate_tier_changed"
              }
            },
            "title": "affiliate_tier_changed"
          },
          {
            "type": "object",
            "properties": {
              "claimCreated": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/webhooks.v1.Event.ClaimCreated"
                  }
                ],
                "title": "claim_created"
              }
            },
            "title": "claim_created"
          },
          {
            "type": "object",
            "properties": {
              "clickCreated": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/clicks.v1.Click"
                  }
                ],
                "title": "click_created"
              }
            },
            "title": "click_created"
          },
          {
            "type": "object",
            "properties": {
              "conversionCreated": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/webhooks.v1.Event.ConversionCreated"
                  }
                ],
                "title": "conversion_created"
              }
            },
            "title": "conversion_created"
          },
          {
            "type": "object",
            "properties": {
              "conversionStatusChanged": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/webhooks.v1.Event.ConversionStatusChanged"
                  }
                ],
                "title": "conversion_status_changed"
              }
            },
            "title": "conversion_status_changed"
          },
          {
            "type": "object",
            "properties": {
              "couponCreated": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/webhooks.v1.Event.CouponCreated"
                  }
                ],
                "title": "coupon_created"
              }
            },
            "title": "coupon_created"
          },
          {
            "type": "object",
            "properties": {
              "freeTrialStarted": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/webhooks.v1.Event.FreeTrialStarted"
                  }
                ],
                "title": "free_trial_started"
              }
            },
            "title": "free_trial_started"
          },
          {
            "type": "object",
            "properties": {
              "mailMarketingEventTriggered": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/webhooks.v1.Event.MailMarketingEventTriggered"
                  }
                ],
                "title": "mail_marketing_event_triggered"
              }
            },
            "title": "mail_marketing_event_triggered"
          },
          {
            "type": "object",
            "properties": {
              "marketplaceAccessStatusChanged": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/webhooks.v1.Event.MarketplaceAccessStatusChanged"
                  }
                ],
                "title": "marketplace_access_status_changed"
              }
            },
            "title": "marketplace_access_status_changed"
          },
          {
            "type": "object",
            "properties": {
              "revenueWarningTriggered": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/webhooks.v1.Event.RevenueWarningTriggered"
                  }
                ],
                "title": "revenue_warning_triggered"
              }
            },
            "title": "revenue_warning_triggered"
          },
          {
            "type": "object",
            "properties": {
              "settlementCreated": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/webhooks.v1.Event.SettlementCreated"
                  }
                ],
                "title": "settlement_created"
              }
            },
            "title": "settlement_created"
          },
          {
            "type": "object",
            "properties": {
              "stripeIntegrationCreated": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/webhooks.v1.Event.StripeIntegrationCreated"
                  }
                ],
                "title": "stripe_integration_created"
              }
            },
            "title": "stripe_integration_created"
          },
          {
            "type": "object",
            "properties": {
              "stripeIntegrationDeleted": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/webhooks.v1.Event.StripeIntegrationDeleted"
                  }
                ],
                "title": "stripe_integration_deleted"
              }
            },
            "title": "stripe_integration_deleted"
          },
          {
            "type": "object",
            "properties": {
              "tenantTouchpointCompleted": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/webhooks.v1.Event.TenantTouchpointCompleted"
                  }
                ],
                "title": "tenant_touchpoint_completed"
              }
            },
            "title": "tenant_touchpoint_completed"
          }
        ],
        "unevaluatedProperties": false,
        "not": {
          "allOf": [
            {
              "anyOf": [
                {
                  "required": [
                    "affiliateCreated"
                  ]
                },
                {
                  "required": [
                    "affiliateRegistrationDataCreated"
                  ]
                },
                {
                  "required": [
                    "affiliateStatusChanged"
                  ]
                },
                {
                  "required": [
                    "affiliateTicketCreated"
                  ]
                },
                {
                  "required": [
                    "affiliateTicketUpdated"
                  ]
                },
                {
                  "required": [
                    "affiliateTierChanged"
                  ]
                },
                {
                  "required": [
                    "claimCreated"
                  ]
                },
                {
                  "required": [
                    "clickCreated"
                  ]
                },
                {
                  "required": [
                    "conversionCreated"
                  ]
                },
                {
                  "required": [
                    "conversionStatusChanged"
                  ]
                },
                {
                  "required": [
                    "couponCreated"
                  ]
                },
                {
                  "required": [
                    "freeTrialStarted"
                  ]
                },
                {
                  "required": [
                    "mailMarketingEventTriggered"
                  ]
                },
                {
                  "required": [
                    "marketplaceAccessStatusChanged"
                  ]
                },
                {
                  "required": [
                    "revenueWarningTriggered"
                  ]
                },
                {
                  "required": [
                    "settlementCreated"
                  ]
                },
                {
                  "required": [
                    "stripeIntegrationCreated"
                  ]
                },
                {
                  "required": [
                    "stripeIntegrationDeleted"
                  ]
                },
                {
                  "required": [
                    "tenantTouchpointCompleted"
                  ]
                }
              ]
            },
            {
              "not": {
                "oneOf": [
                  {
                    "required": [
                      "affiliateCreated"
                    ]
                  },
                  {
                    "required": [
                      "affiliateRegistrationDataCreated"
                    ]
                  },
                  {
                    "required": [
                      "affiliateStatusChanged"
                    ]
                  },
                  {
                    "required": [
                      "affiliateTicketCreated"
                    ]
                  },
                  {
                    "required": [
                      "affiliateTicketUpdated"
                    ]
                  },
                  {
                    "required": [
                      "affiliateTierChanged"
                    ]
                  },
                  {
                    "required": [
                      "claimCreated"
                    ]
                  },
                  {
                    "required": [
                      "clickCreated"
                    ]
                  },
                  {
                    "required": [
                      "conversionCreated"
                    ]
                  },
                  {
                    "required": [
                      "conversionStatusChanged"
                    ]
                  },
                  {
                    "required": [
                      "couponCreated"
                    ]
                  },
                  {
                    "required": [
                      "freeTrialStarted"
                    ]
                  },
                  {
                    "required": [
                      "mailMarketingEventTriggered"
                    ]
                  },
                  {
                    "required": [
                      "marketplaceAccessStatusChanged"
                    ]
                  },
                  {
                    "required": [
                      "revenueWarningTriggered"
                    ]
                  },
                  {
                    "required": [
                      "settlementCreated"
                    ]
                  },
                  {
                    "required": [
                      "stripeIntegrationCreated"
                    ]
                  },
                  {
                    "required": [
                      "stripeIntegrationDeleted"
                    ]
                  },
                  {
                    "required": [
                      "tenantTouchpointCompleted"
                    ]
                  }
                ]
              }
            }
          ]
        },
        "properties": {
          "tenantId": {
            "type": "string",
            "title": "tenant_id",
            "description": "Tenant ID associated with the webhooks"
          }
        },
        "title": "webhooks.v1.Event"
      },
      "webhooks.v1.Event.AffiliateRegistrationDataCreated": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "title": "email",
            "description": "Email of the affiliate"
          },
          "publicId": {
            "type": "string",
            "title": "public_id",
            "description": "Public identifier (Referral ID) of the affiliate"
          },
          "data": {
            "allOf": [
              {
                "$ref": "#/components/schemas/affiliates.v1.AffiliateRegistrationData"
              }
            ],
            "title": "data",
            "description": "Registration data of the affiliate"
          }
        },
        "title": "webhooks.v1.Event.AffiliateRegistrationDataCreated",
        "required": [
          "email",
          "publicId",
          "data"
        ],
        "additionalProperties": false
      },
      "webhooks.v1.Event.AffiliateStatusChanged": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "title": "email",
            "description": "Email of the affiliate"
          },
          "publicIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "title": "public_ids",
            "description": "Public identifiers (Referral IDs) of the affiliate"
          },
          "originalStatus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.AccountStatus"
              }
            ],
            "title": "original_status",
            "description": "Original status of the affiliate's account"
          },
          "newStatus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.AccountStatus"
              }
            ],
            "title": "new_status",
            "description": "New status of the affiliate's account"
          }
        },
        "title": "webhooks.v1.Event.AffiliateStatusChanged",
        "additionalProperties": false,
        "description": "Notifies about the change of affiliate's status in the system."
      },
      "webhooks.v1.Event.AffiliateTicketCreated": {
        "type": "object",
        "properties": {
          "accountEmail": {
            "type": "string",
            "title": "account_email",
            "description": "Account e-mail of the affiliate"
          },
          "sourcePublicId": {
            "type": "string",
            "title": "source_public_id",
            "description": "Source public ID of the affiliate"
          },
          "ticket": {
            "allOf": [
              {
                "$ref": "#/components/schemas/webhooks.v1.Event.AffiliateTicketData"
              }
            ],
            "title": "ticket"
          }
        },
        "title": "webhooks.v1.Event.AffiliateTicketCreated",
        "required": [
          "accountEmail",
          "sourcePublicId",
          "ticket"
        ],
        "additionalProperties": false
      },
      "webhooks.v1.Event.AffiliateTicketData": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.AffiliateTicketStatus"
              }
            ],
            "title": "status"
          },
          "fieldAnswers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/types.v1.CustomQuestionAnswer"
            },
            "title": "field_answers"
          },
          "note": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "note",
            "description": "(OPTIONAL) "
          },
          "noteVisibleToAffiliates": {
            "type": "boolean",
            "title": "note_visible_to_affiliates"
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "created_at"
          },
          "modifiedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "modified_at"
          }
        },
        "title": "webhooks.v1.Event.AffiliateTicketData",
        "required": [
          "id",
          "status",
          "fieldAnswers",
          "noteVisibleToAffiliates",
          "createdAt",
          "modifiedAt"
        ],
        "additionalProperties": false,
        "description": "Common ticket data for ticket webhooks."
      },
      "webhooks.v1.Event.AffiliateTicketUpdated": {
        "type": "object",
        "properties": {
          "accountEmail": {
            "type": "string",
            "title": "account_email",
            "description": "Account e-mail of the affiliate"
          },
          "sourcePublicId": {
            "type": "string",
            "title": "source_public_id",
            "description": "Source public ID of the affiliate"
          },
          "ticket": {
            "allOf": [
              {
                "$ref": "#/components/schemas/webhooks.v1.Event.AffiliateTicketData"
              }
            ],
            "title": "ticket"
          }
        },
        "title": "webhooks.v1.Event.AffiliateTicketUpdated",
        "required": [
          "accountEmail",
          "sourcePublicId",
          "ticket"
        ],
        "additionalProperties": false
      },
      "webhooks.v1.Event.AffiliateTierChanged": {
        "type": "object",
        "properties": {
          "email": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "email",
            "description": "E-mail of the affiliate"
          },
          "publicId": {
            "type": "string",
            "title": "public_id",
            "description": "Public identifier (Referral ID) of the affiliate"
          },
          "originalTierName": {
            "type": "string",
            "title": "original_tier_name",
            "description": "Original tier name of the affiliate's account"
          },
          "newTierName": {
            "type": "string",
            "title": "new_tier_name",
            "description": "New tier name of the affiliate's account"
          }
        },
        "title": "webhooks.v1.Event.AffiliateTierChanged",
        "additionalProperties": false,
        "description": "Notifies about the change of affiliate's tier in the system."
      },
      "webhooks.v1.Event.ClaimCreated": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Unique identifier of the claim"
          },
          "revenueOriginId": {
            "type": "string",
            "title": "revenue_origin_id",
            "description": "Revenue origin (advertiser) the claim was issued to"
          },
          "until": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "until",
            "description": "Claimed balances until this time"
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "amount",
            "description": "Claimed amount"
          },
          "currencyCode": {
            "type": "string",
            "title": "currency_code",
            "description": "Currency of the claimed amount"
          },
          "note": {
            "type": "string",
            "title": "note",
            "description": "Claim note"
          }
        },
        "title": "webhooks.v1.Event.ClaimCreated",
        "additionalProperties": false,
        "description": "Notifies about a creation of a new claim (advertiser settlement)."
      },
      "webhooks.v1.Event.ConversionCreated": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Unique identifier of the conversion"
          },
          "cid": {
            "type": "string",
            "title": "cid",
            "description": "ID of the click associated with the conversion"
          },
          "revenueOriginId": {
            "type": "string",
            "title": "revenue_origin_id",
            "description": "Conversions' revenue origin, obtainable from trackdesk identifiers in app"
          },
          "conversionTypeId": {
            "type": "string",
            "title": "conversion_type_id",
            "description": "Type of the conversion"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/conversions.v1.ConversionStatus"
              }
            ],
            "title": "status",
            "description": "Status of the conversion"
          },
          "cost": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "cost",
            "description": "Payout for the affiliate. Decimal value as a string."
          },
          "revenue": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "revenue",
            "description": "Conversion's revenue amount. Decimal value as string."
          },
          "currencyCode": {
            "type": "string",
            "title": "currency_code",
            "description": "Currency code, uses ISO 4217 format"
          },
          "externalId": {
            "type": "string",
            "title": "external_id",
            "description": "External ID, see [Conversion source service](#post-/tracking/external-cid/v1) for more details"
          },
          "customerId": {
            "type": "string",
            "title": "customer_id",
            "description": "Customer ID, your specific custom identifier"
          },
          "customParams": {
            "allOf": [
              {
                "$ref": "#/components/schemas/webhooks.v1.Event.ConversionCreated.CustomParams"
              }
            ],
            "title": "custom_params",
            "description": "List of custom adv parameters"
          },
          "offer": {
            "allOf": [
              {
                "$ref": "#/components/schemas/offers.v1.OfferData"
              }
            ],
            "title": "offer",
            "description": "Offer associated with the conversion"
          },
          "affiliate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/affiliates.v1.Affiliate"
              }
            ],
            "title": "affiliate",
            "description": "Affiliate credited with the conversion"
          },
          "conversionType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/conversion_types.v1.ConversionType"
              }
            ],
            "title": "conversion_type",
            "description": "Type of the conversion"
          }
        },
        "title": "webhooks.v1.Event.ConversionCreated",
        "additionalProperties": false,
        "description": "Notifies about a new conversion registered by the system."
      },
      "webhooks.v1.Event.ConversionCreated.CustomParams": {
        "type": "object",
        "properties": {
          "advS1": {
            "type": "string",
            "title": "adv_s1",
            "description": "Custom adv S1 parameter"
          },
          "advS2": {
            "type": "string",
            "title": "adv_s2",
            "description": "Custom adv S2 parameter"
          },
          "advS3": {
            "type": "string",
            "title": "adv_s3",
            "description": "Custom adv S3 parameter"
          },
          "advS4": {
            "type": "string",
            "title": "adv_s4",
            "description": "Custom adv S4 parameter"
          },
          "advS5": {
            "type": "string",
            "title": "adv_s5",
            "description": "Custom adv S5 parameter"
          }
        },
        "title": "webhooks.v1.Event.ConversionCreated.CustomParams",
        "additionalProperties": false
      },
      "webhooks.v1.Event.ConversionStatusChanged": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Unique identifier of the conversion"
          },
          "originalStatus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/conversions.v1.ConversionStatus"
              }
            ],
            "title": "original_status",
            "description": "Original status of the conversion"
          },
          "newStatus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/conversions.v1.ConversionStatus"
              }
            ],
            "title": "new_status",
            "description": "New status of the conversion"
          }
        },
        "title": "webhooks.v1.Event.ConversionStatusChanged",
        "additionalProperties": false,
        "description": "Notifies about the change of conversion's status in the system."
      },
      "webhooks.v1.Event.CouponCreated": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Unique identifier of the coupon"
          },
          "code": {
            "type": "string",
            "title": "code",
            "description": "Coupon code"
          },
          "revenueOriginId": {
            "type": "string",
            "title": "revenue_origin_id",
            "description": "Coupon's revenue origin, obtainable from Trackdesk identifiers in app"
          },
          "affiliate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/affiliates.v1.Affiliate"
              }
            ],
            "title": "affiliate",
            "description": "Affiliate credited with the coupon"
          },
          "offer": {
            "allOf": [
              {
                "$ref": "#/components/schemas/offers.v1.OfferData"
              }
            ],
            "title": "offer",
            "description": "Offer associated with the coupon"
          }
        },
        "title": "webhooks.v1.Event.CouponCreated",
        "additionalProperties": false,
        "description": "Notifies about a creation of a new coupon."
      },
      "webhooks.v1.Event.FreeTrialStarted": {
        "type": "object",
        "properties": {
          "planId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/memberships.v1.PlanId"
              }
            ],
            "title": "plan_id"
          },
          "endAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "end_at"
          }
        },
        "title": "webhooks.v1.Event.FreeTrialStarted",
        "additionalProperties": false,
        "description": "Notifies when a free trial is started."
      },
      "webhooks.v1.Event.MailMarketingEventTriggered": {
        "type": "object",
        "properties": {
          "event": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.MailMarketingEvent"
              }
            ],
            "title": "event"
          }
        },
        "title": "webhooks.v1.Event.MailMarketingEventTriggered",
        "required": [
          "event"
        ],
        "additionalProperties": false,
        "description": "Notifies when a mail marketing event is triggered."
      },
      "webhooks.v1.Event.MarketplaceAccessStatusChanged": {
        "type": "object",
        "properties": {
          "previousStatus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.MarketplaceAccessStatus"
              }
            ],
            "title": "previous_status",
            "description": "Previous marketplace access status of the tenant."
          },
          "newStatus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.MarketplaceAccessStatus"
              }
            ],
            "title": "new_status",
            "description": "New marketplace access status of the tenant."
          },
          "tenantSettings": {
            "allOf": [
              {
                "$ref": "#/components/schemas/settings.v1.GetTenantSettingsResponse"
              }
            ],
            "title": "tenant_settings",
            "description": "Settings of the tenant whose marketplace access status changed."
          }
        },
        "title": "webhooks.v1.Event.MarketplaceAccessStatusChanged",
        "required": [
          "previousStatus",
          "newStatus",
          "tenantSettings"
        ],
        "additionalProperties": false,
        "description": "Notifies when the tenant's marketplace access status changes."
      },
      "webhooks.v1.Event.RevenueWarningTriggered": {
        "type": "object",
        "properties": {
          "primaryCurrencyCode": {
            "type": "string",
            "title": "primary_currency_code"
          },
          "revenuePrimaryCurrency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "revenue_primary_currency"
          },
          "revenuesByConversionStatus": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/webhooks.v1.Event.RevenueWarningTriggered.RevenueByConversionStatus"
            },
            "title": "revenues_by_conversion_status"
          },
          "revenueUsd": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "revenue_usd"
          },
          "limitUsd": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "limit_usd"
          },
          "triggeredThresholds": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/types.v1.Decimal"
            },
            "title": "triggered_thresholds"
          },
          "tenantSettings": {
            "allOf": [
              {
                "$ref": "#/components/schemas/settings.v1.GetTenantSettingsResponse"
              }
            ],
            "title": "tenant_settings"
          }
        },
        "title": "webhooks.v1.Event.RevenueWarningTriggered",
        "required": [
          "primaryCurrencyCode",
          "revenuePrimaryCurrency",
          "revenuesByConversionStatus",
          "revenueUsd",
          "limitUsd",
          "triggeredThresholds",
          "tenantSettings"
        ],
        "additionalProperties": false,
        "description": "Notifies when the revenue warning is triggered."
      },
      "webhooks.v1.Event.RevenueWarningTriggered.RevenueByConversionStatus": {
        "type": "object",
        "properties": {
          "conversionStatus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/conversions.v1.ConversionStatus"
              }
            ],
            "title": "conversion_status"
          },
          "revenuePrimaryCurrency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "revenue_primary_currency"
          },
          "share": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "share"
          }
        },
        "title": "webhooks.v1.Event.RevenueWarningTriggered.RevenueByConversionStatus",
        "required": [
          "conversionStatus",
          "revenuePrimaryCurrency",
          "share"
        ],
        "additionalProperties": false
      },
      "webhooks.v1.Event.SettlementCreated": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Unique identifier of the settlement"
          },
          "until": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "until",
            "description": "Settled balances until this time"
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "amount",
            "description": "Settled amount"
          },
          "currencyCode": {
            "type": "string",
            "title": "currency_code",
            "description": "Currency of the settled amount"
          },
          "note": {
            "type": "string",
            "title": "note",
            "description": "Settlement note"
          }
        },
        "title": "webhooks.v1.Event.SettlementCreated",
        "additionalProperties": false,
        "description": "Notifies about a creation of a new settlement."
      },
      "webhooks.v1.Event.StripeIntegrationCreated": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Unique identifier of the integration"
          },
          "stripeAccountId": {
            "type": "string",
            "title": "stripe_account_id",
            "description": "Stripe account associated with the integration"
          }
        },
        "title": "webhooks.v1.Event.StripeIntegrationCreated",
        "additionalProperties": false,
        "description": "Notifies about a creation of new Stripe integration."
      },
      "webhooks.v1.Event.StripeIntegrationDeleted": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Unique identifier of the integration"
          },
          "stripeAccountId": {
            "type": "string",
            "title": "stripe_account_id",
            "description": "Stripe account associated with the integration"
          }
        },
        "title": "webhooks.v1.Event.StripeIntegrationDeleted",
        "additionalProperties": false,
        "description": "Notifies about the deletion of Stripe integration."
      },
      "webhooks.v1.Event.TenantTouchpointCompleted": {
        "type": "object",
        "properties": {
          "touchpointType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.TenantTouchpointType"
              }
            ],
            "title": "touchpoint_type"
          },
          "category": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.TenantTouchpointCategory"
              }
            ],
            "title": "category"
          },
          "isOptional": {
            "type": "boolean",
            "title": "is_optional"
          },
          "completedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "completed_at"
          }
        },
        "title": "webhooks.v1.Event.TenantTouchpointCompleted",
        "required": [
          "touchpointType",
          "category",
          "isOptional",
          "completedAt"
        ],
        "additionalProperties": false,
        "description": "Notifies when a tenant onboarding touchpoint is completed for the first time."
      },
      "webhooks.v1.EventType": {
        "type": "string",
        "title": "webhooks.v1.EventType",
        "enum": [
          "EVENT_TYPE_UNSPECIFIED",
          "EVENT_TYPE_AFFILIATE_CREATED",
          "EVENT_TYPE_AFFILIATE_REGISTRATION_DATA_CREATED",
          "EVENT_TYPE_AFFILIATE_STATUS_CHANGED",
          "EVENT_TYPE_AFFILIATE_TIER_CHANGED",
          "EVENT_TYPE_CLICK_CREATED",
          "EVENT_TYPE_CONVERSION_CREATED",
          "EVENT_TYPE_COUPON_CREATED",
          "EVENT_TYPE_CONVERSION_STATUS_CHANGED",
          "EVENT_TYPE_SETTLEMENT_CREATED",
          "EVENT_TYPE_AFFILIATE_TICKET_CREATED",
          "EVENT_TYPE_AFFILIATE_TICKET_UPDATED",
          "EVENT_TYPE_CLAIM_CREATED"
        ]
      },
      "webhooks.v1.ListWebhooksRequest": {
        "type": "object",
        "title": "webhooks.v1.ListWebhooksRequest",
        "additionalProperties": false,
        "description": "List existing webhooks."
      },
      "webhooks.v1.ListWebhooksResponse": {
        "type": "object",
        "properties": {
          "webhooks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/webhooks.v1.Webhook"
            },
            "title": "webhooks"
          }
        },
        "title": "webhooks.v1.ListWebhooksResponse",
        "additionalProperties": false,
        "description": "Existing webhooks."
      },
      "webhooks.v1.SendWebhookRequest": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "title": "url",
            "description": "URL to which the webhook should send a request"
          },
          "eventType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/webhooks.v1.EventType"
              }
            ],
            "not": {
              "enum": [
                "EVENT_TYPE_UNSPECIFIED"
              ]
            },
            "title": "event_type",
            "description": "Type of event for the webhook test"
          }
        },
        "title": "webhooks.v1.SendWebhookRequest",
        "required": [
          "url",
          "eventType"
        ],
        "additionalProperties": false,
        "description": "Request a test ping for existing webhook."
      },
      "webhooks.v1.SendWebhookResponse": {
        "type": "object",
        "properties": {
          "event": {
            "allOf": [
              {
                "$ref": "#/components/schemas/webhooks.v1.Event"
              }
            ],
            "title": "event"
          }
        },
        "title": "webhooks.v1.SendWebhookResponse",
        "additionalProperties": false,
        "description": "Ping of existing webhook."
      },
      "webhooks.v1.Webhook": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Unique identifier of the webhook",
            "readOnly": true
          },
          "url": {
            "type": "string",
            "title": "url",
            "format": "uri",
            "description": "URL to which the webhook should send a request"
          },
          "eventTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/webhooks.v1.EventType"
            },
            "title": "event_types",
            "uniqueItems": true,
            "description": "Type of event for which the webhook should be executed"
          }
        },
        "title": "webhooks.v1.Webhook",
        "required": [
          "url",
          "eventTypes"
        ],
        "additionalProperties": false,
        "description": "Webhook."
      },
      "client_metrics.v1.CreateClientMetricMovementRequest": {
        "type": "object",
        "properties": {
          "externalClientId": {
            "type": "string",
            "title": "external_client_id",
            "maxLength": 255,
            "minLength": 1,
            "description": "External ID of the client as known to the receiver."
          },
          "revenueOriginId": {
            "type": "string",
            "title": "revenue_origin_id",
            "format": "uuid",
            "description": "Revenue origin the client belongs to."
          },
          "metrics": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/client_metrics.v1.CreateClientMetricMovementRequest.Metric"
            },
            "title": "metrics",
            "maxItems": 20,
            "minItems": 1,
            "description": "(OPTIONAL) Metric values to record. Each code must be unique within the request."
          },
          "requestId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "request_id",
            "maxLength": 100,
            "minLength": 1,
            "description": "(OPTIONAL) Idempotency key. Requests sharing the same request_id are deduplicated."
          }
        },
        "title": "client_metrics.v1.CreateClientMetricMovementRequest",
        "required": [
          "externalClientId",
          "revenueOriginId"
        ],
        "additionalProperties": false,
        "description": "Create a new client metric movement\nmetrics_unique_code // Each metric must have unique code.\n"
      },
      "client_metrics.v1.CreateClientMetricMovementRequest.Metric": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "title": "code",
            "maxLength": 100,
            "minLength": 1,
            "description": "Code of the metric to update, as configured in the revenue origin settings."
          },
          "valueType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.ClientMetricValueType"
              }
            ],
            "not": {
              "enum": [
                "CLIENT_METRIC_VALUE_TYPE_UNSPECIFIED"
              ]
            },
            "title": "value_type",
            "description": "Type of the metric value.\nenum.defined_only = true\n"
          },
          "value": {
            "type": "string",
            "title": "value",
            "pattern": "^-?\\d+(\\.\\d+)?$",
            "description": "Decimal string representing the metric value (e.g. \"42\" or \"3.14\")."
          }
        },
        "title": "client_metrics.v1.CreateClientMetricMovementRequest.Metric",
        "required": [
          "code",
          "valueType",
          "value"
        ],
        "additionalProperties": false,
        "description": "A single metric value to record."
      },
      "client_metrics.v1.CreateClientMetricMovementResponse": {
        "type": "object",
        "title": "client_metrics.v1.CreateClientMetricMovementResponse",
        "additionalProperties": false,
        "description": "Feedback message for client metric movement creation."
      },
      "conversions.v1.ConversionCustomParams": {
        "type": "object",
        "properties": {
          "advS1": {
            "type": "string",
            "title": "adv_s1",
            "maxLength": 255,
            "description": "Custom adv S1 parameter assigned to a conversion."
          },
          "advS2": {
            "type": "string",
            "title": "adv_s2",
            "maxLength": 255,
            "description": "Custom adv S2 parameter assigned to a conversion."
          },
          "advS3": {
            "type": "string",
            "title": "adv_s3",
            "maxLength": 255,
            "description": "Custom adv S3 parameter assigned to a conversion."
          },
          "advS4": {
            "type": "string",
            "title": "adv_s4",
            "maxLength": 255,
            "description": "Custom adv S4 parameter assigned to a conversion."
          },
          "advS5": {
            "type": "string",
            "title": "adv_s5",
            "maxLength": 255,
            "description": "Custom adv S5 parameter assigned to a conversion."
          }
        },
        "title": "conversions.v1.ConversionCustomParams",
        "additionalProperties": false,
        "description": "Custom parameters assigned to a conversion."
      },
      "enums.v1.ClientMetricValueType": {
        "type": "string",
        "title": "enums.v1.ClientMetricValueType",
        "enum": [
          "CLIENT_METRIC_VALUE_TYPE_UNSPECIFIED",
          "CLIENT_METRIC_VALUE_TYPE_ABSOLUTE",
          "CLIENT_METRIC_VALUE_TYPE_RELATIVE"
        ]
      },
      "enums.v1.ConversionAttributionType": {
        "type": "string",
        "title": "enums.v1.ConversionAttributionType",
        "enum": [
          "CONVERSION_ATTRIBUTION_TYPE_UNSPECIFIED",
          "CONVERSION_ATTRIBUTION_TYPE_FIRST_TOUCH",
          "CONVERSION_ATTRIBUTION_TYPE_LAST_TOUCH"
        ]
      },
      "tracking.v1.CreateClientRequest": {
        "type": "object",
        "properties": {
          "externalId": {
            "type": "string",
            "title": "external_id",
            "maxLength": 255,
            "minLength": 1,
            "description": "Unique external ID of the client."
          },
          "revenueOriginId": {
            "type": "string",
            "title": "revenue_origin_id",
            "format": "uuid",
            "description": "Assigned revenue origin. Can be obtained from unique trackdesk identifiers in the settings."
          },
          "cid": {
            "type": "string",
            "title": "cid",
            "format": "uuid",
            "description": "CID – the click ID associated with the conversion."
          }
        },
        "title": "tracking.v1.CreateClientRequest",
        "required": [
          "externalId",
          "revenueOriginId",
          "cid"
        ],
        "additionalProperties": false,
        "description": "Create client"
      },
      "tracking.v1.CreateClientResponse": {
        "type": "object",
        "title": "tracking.v1.CreateClientResponse",
        "additionalProperties": false
      },
      "tracking.v1.CreateConversionRequest": {
        "type": "object",
        "properties": {
          "cid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "cid",
            "format": "uuid",
            "description": "The click identification associated with the conversion. When cid is filled, then external_cid/external_client_id cannot be filled."
          },
          "externalCid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "external_cid",
            "maxLength": 255,
            "minLength": 1,
            "description": "External CID associated with the conversion. See [Conversion sources](#tag--tracking.v1.ConversionSourceService) for more details. when external_cid is filled, then revenue_origin_id must also be filled, and cid/external_client_id cannot be filled"
          },
          "externalClientId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "external_client_id",
            "maxLength": 255,
            "minLength": 1,
            "description": "External client ID associated with the conversion. When external_client_id is filled, then revenue_origin_id must also be filled, and cid/external_cid cannot be filled"
          },
          "couponCodes": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "minLength": 1
            },
            "title": "coupon_codes",
            "description": "Coupons to be redeemed within the conversion. when coupon codes are not empty, then revenue_origin_id must also be filled"
          },
          "revenueOriginId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "revenue_origin_id",
            "format": "uuid",
            "description": "Assigned revenue origin. Can be obtained from unique trackdesk identifiers in the settings."
          },
          "conversionTypeCode": {
            "type": "string",
            "title": "conversion_type_code",
            "maxLength": 20,
            "minLength": 1,
            "description": "Type of the conversion."
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/conversions.v1.ConversionStatus"
              }
            ],
            "not": {
              "enum": [
                "CONVERSION_STATUS_NOT_ALLOWED",
                "CONVERSION_STATUS_QUALITY_CONTROL"
              ]
            },
            "title": "status",
            "description": "Status of the conversion.\nenum.defined_only = true\n"
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "amount",
            "description": "The total revenue value of a conversion. Uses decimal number as a string."
          },
          "currency": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Currency"
              }
            ],
            "title": "currency",
            "description": "(OPTIONAL) Currency code of the conversion. Uses ISO 4217 formatting."
          },
          "externalId": {
            "type": "string",
            "title": "external_id",
            "maxLength": 255,
            "description": "External ID is used for deduplication of conversions. Only one conversion per Conversion Type can have the same External ID (for Network accounts, per Conversion Type and Revenue Origin); a repeated request does not create a second conversion."
          },
          "customerId": {
            "type": "string",
            "title": "customer_id",
            "maxLength": 255,
            "description": "Customer ID, your specific custom identifier."
          },
          "customParams": {
            "allOf": [
              {
                "$ref": "#/components/schemas/conversions.v1.ConversionCustomParams"
              }
            ],
            "title": "custom_params",
            "description": "Custom parameters associated with the conversion."
          },
          "qualified": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.BoolValue"
              }
            ],
            "title": "qualified",
            "description": "(OPTIONAL) Qualification baseline evaluation value - override default behavior."
          },
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "created_at",
            "description": "The date-time when the conversion was created. Must be in the past. Uses RFC 3339 formatting (e.g. \"2036-07-21T17:32:28Z\"). If not provided, the current time-stamp will be used.\ntimestamp.lt_now = true\n"
          }
        },
        "title": "tracking.v1.CreateConversionRequest",
        "additionalProperties": false,
        "description": "Create a new conversion"
      },
      "tracking.v1.CreateConversionResponse": {
        "type": "object",
        "properties": {
          "cid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "cid",
            "description": "CID of the source click/coupon tied to the conversion. CID is available when conversion is successfully paired."
          }
        },
        "title": "tracking.v1.CreateConversionResponse",
        "additionalProperties": false,
        "description": "Feedback message for new conversion creation."
      },
      "tracking.v1.RedeemCouponRequest": {
        "type": "object",
        "properties": {
          "couponCodes": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "minLength": 1
            },
            "title": "coupon_codes",
            "maxItems": 50,
            "minItems": 1,
            "uniqueItems": true,
            "description": "List of coupon codes to attempt redemption for. The first matching coupon code will be used."
          },
          "revenueOriginId": {
            "type": "string",
            "title": "revenue_origin_id",
            "format": "uuid",
            "description": "Assigned revenue origin. Can be obtained from unique Trackdesk identifiers in the settings."
          },
          "customParams": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tracking.v1.RedeemCouponRequest.CustomParams"
              }
            ],
            "title": "custom_params",
            "description": "(OPTIONAL) Custom affiliate tracking parameters."
          }
        },
        "title": "tracking.v1.RedeemCouponRequest",
        "required": [
          "couponCodes",
          "revenueOriginId"
        ],
        "additionalProperties": false,
        "description": "Redeem a coupon and obtain a coupon redemption identifier for conversion attribution."
      },
      "tracking.v1.RedeemCouponRequest.CustomParams": {
        "type": "object",
        "properties": {
          "affS1": {
            "type": "string",
            "title": "aff_s1",
            "maxLength": 255,
            "description": "(OPTIONAL) Custom aff S1 parameter."
          },
          "affS2": {
            "type": "string",
            "title": "aff_s2",
            "maxLength": 255,
            "description": "(OPTIONAL) Custom aff S2 parameter."
          },
          "affS3": {
            "type": "string",
            "title": "aff_s3",
            "maxLength": 255,
            "description": "(OPTIONAL) Custom aff S3 parameter."
          },
          "affS4": {
            "type": "string",
            "title": "aff_s4",
            "maxLength": 255,
            "description": "(OPTIONAL) Custom aff S4 parameter."
          },
          "affS5": {
            "type": "string",
            "title": "aff_s5",
            "maxLength": 255,
            "description": "(OPTIONAL) Custom aff S5 parameter."
          }
        },
        "title": "tracking.v1.RedeemCouponRequest.CustomParams",
        "additionalProperties": false,
        "description": "Custom affiliate parameters for coupon redemption tracking."
      },
      "tracking.v1.RedeemCouponResponse": {
        "type": "object",
        "properties": {
          "cid": {
            "type": "string",
            "title": "cid",
            "description": "Coupon redemption identifier used for conversion attribution."
          },
          "expiredAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "expired_at",
            "description": "Expiration timestamp for the coupon redemption identifier."
          },
          "conversionAttributionType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.ConversionAttributionType"
              }
            ],
            "title": "conversion_attribution_type",
            "description": "Attribution type configured for the offer."
          }
        },
        "title": "tracking.v1.RedeemCouponResponse",
        "required": [
          "cid",
          "expiredAt",
          "conversionAttributionType"
        ],
        "additionalProperties": false,
        "description": "Response containing the generated coupon redemption identifier for the redeemed coupon."
      },
      "tracking.v1.SetExternalCidRequest": {
        "type": "object",
        "properties": {
          "externalCid": {
            "type": "string",
            "title": "external_cid",
            "maxLength": 255,
            "minLength": 1,
            "description": "Unique external ID code."
          },
          "revenueOriginId": {
            "type": "string",
            "title": "revenue_origin_id",
            "format": "uuid",
            "description": "Assigned revenue origin. Can be obtained from unique trackdesk identifiers in the settings."
          },
          "cid": {
            "type": "string",
            "title": "cid",
            "format": "uuid",
            "description": "CID – the ID of the click to pair with the external CID."
          }
        },
        "title": "tracking.v1.SetExternalCidRequest",
        "additionalProperties": false,
        "description": "Pairs an external CID with a click for later conversion attribution."
      },
      "tracking.v1.SetExternalCidResponse": {
        "type": "object",
        "title": "tracking.v1.SetExternalCidResponse",
        "additionalProperties": false,
        "description": "Feedback for adding external ID."
      },
      "tracking.v1.UpdateConversionRequest": {
        "type": "object",
        "properties": {
          "identifier": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tracking.v1.UpdateConversionRequest.Identifier"
              }
            ],
            "title": "identifier",
            "description": "Identifier of the conversion."
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/conversions.v1.ConversionStatus"
              }
            ],
            "not": {
              "enum": [
                "CONVERSION_STATUS_NOT_ALLOWED",
                "CONVERSION_STATUS_QUALITY_CONTROL"
              ]
            },
            "title": "status",
            "description": "(OPTIONAL) Status of the conversion. Won't be changed if not filled."
          },
          "revenue": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "revenue",
            "description": "(OPTIONAL) The revenue value of a conversion. Uses decimal number as a string. Won't be changed if not filled."
          },
          "cost": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "cost",
            "description": "(OPTIONAL) The payout value of a conversion. Uses decimal number as a string. Won't be changed if not filled."
          },
          "conversionAmount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "conversion_amount",
            "description": "(OPTIONAL) The sales amount value of a conversion. Uses decimal number as a string. Won't be changed if not filled."
          },
          "externalId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "external_id",
            "maxLength": 255,
            "description": "(OPTIONAL) External ID is used for deduplication of conversions. Only one conversion per Conversion Type can have the same External ID (for Network accounts, per Conversion Type and Revenue Origin). Won't be changed if not filled."
          },
          "customerId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "customer_id",
            "maxLength": 255,
            "description": "(OPTIONAL) Customer ID, your specific custom identifier. Won't be changed if not filled."
          },
          "customAdvParams": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tracking.v1.UpdateConversionRequest.ConversionCustomParams"
              }
            ],
            "title": "custom_adv_params",
            "description": "(OPTIONAL) Custom parameters associated with the conversion. Won't be changed if not filled."
          },
          "customAffParams": {
            "allOf": [
              {
                "$ref": "#/components/schemas/tracking.v1.UpdateConversionRequest.ConversionSourceCustomParams"
              }
            ],
            "title": "custom_aff_params",
            "description": "(OPTIONAL) Custom affiliate parameters associated with the conversion. Won't be changed if not filled."
          }
        },
        "title": "tracking.v1.UpdateConversionRequest",
        "required": [
          "identifier"
        ],
        "additionalProperties": false,
        "description": "Update conversion."
      },
      "tracking.v1.UpdateConversionRequest.ConversionCustomParams": {
        "type": "object",
        "properties": {
          "advS1": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "adv_s1",
            "maxLength": 255,
            "description": "Custom adv S1 parameter assigned to a conversion. Won't be changed if not filled."
          },
          "advS2": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "adv_s2",
            "maxLength": 255,
            "description": "Custom adv S2 parameter assigned to a conversion. Won't be changed if not filled."
          },
          "advS3": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "adv_s3",
            "maxLength": 255,
            "description": "Custom adv S3 parameter assigned to a conversion. Won't be changed if not filled."
          },
          "advS4": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "adv_s4",
            "maxLength": 255,
            "description": "Custom adv S4 parameter assigned to a conversion. Won't be changed if not filled."
          },
          "advS5": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "adv_s5",
            "maxLength": 255,
            "description": "Custom adv S5 parameter assigned to a conversion. Won't be changed if not filled."
          }
        },
        "title": "tracking.v1.UpdateConversionRequest.ConversionCustomParams",
        "additionalProperties": false,
        "description": "Custom advertiser parameters assigned to a conversion."
      },
      "tracking.v1.UpdateConversionRequest.ConversionSourceCustomParams": {
        "type": "object",
        "properties": {
          "affS1": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "aff_s1",
            "maxLength": 255,
            "description": "Custom aff S1 parameter assigned to a conversion source. Won't be changed if not filled."
          },
          "affS2": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "aff_s2",
            "maxLength": 255,
            "description": "Custom aff S2 parameter assigned to a conversion source. Won't be changed if not filled."
          },
          "affS3": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "aff_s3",
            "maxLength": 255,
            "description": "Custom aff S3 parameter assigned to a conversion source. Won't be changed if not filled."
          },
          "affS4": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "aff_s4",
            "maxLength": 255,
            "description": "Custom aff S4 parameter assigned to a conversion source. Won't be changed if not filled."
          },
          "affS5": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "aff_s5",
            "maxLength": 255,
            "description": "Custom aff S5 parameter assigned to a conversion source. Won't be changed if not filled."
          }
        },
        "title": "tracking.v1.UpdateConversionRequest.ConversionSourceCustomParams",
        "additionalProperties": false,
        "description": "Custom affiliate parameters assigned to a conversion source."
      },
      "tracking.v1.UpdateConversionRequest.Identifier": {
        "type": "object",
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "external": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/tracking.v1.UpdateConversionRequest.Identifier.External"
                  }
                ],
                "title": "external",
                "description": "(OPTIONAL) External identifier of the conversion."
              }
            },
            "title": "external"
          },
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "title": "id",
                "format": "uuid",
                "description": "(OPTIONAL) ID of the conversion."
              }
            },
            "title": "id"
          }
        ],
        "unevaluatedProperties": false,
        "not": {
          "allOf": [
            {
              "anyOf": [
                {
                  "required": [
                    "external"
                  ]
                },
                {
                  "required": [
                    "id"
                  ]
                }
              ]
            },
            {
              "not": {
                "oneOf": [
                  {
                    "required": [
                      "external"
                    ]
                  },
                  {
                    "required": [
                      "id"
                    ]
                  }
                ]
              }
            }
          ]
        },
        "title": "tracking.v1.UpdateConversionRequest.Identifier",
        "description": "Identifier of the conversion."
      },
      "tracking.v1.UpdateConversionRequest.Identifier.External": {
        "type": "object",
        "properties": {
          "revenueOriginId": {
            "type": "string",
            "title": "revenue_origin_id",
            "format": "uuid",
            "description": "Revenue origin associated with the conversion. You can find this information in your unique trackdesk identifiers in the Settings."
          },
          "externalId": {
            "type": "string",
            "title": "external_id",
            "maxLength": 255,
            "minLength": 1,
            "description": "External ID associated with the conversion."
          },
          "conversionTypeCode": {
            "type": "string",
            "title": "conversion_type_code",
            "maxLength": 20,
            "minLength": 1,
            "description": "Code of the conversion type."
          }
        },
        "title": "tracking.v1.UpdateConversionRequest.Identifier.External",
        "additionalProperties": false,
        "description": "External identifier of the conversion."
      },
      "tracking.v1.UpdateConversionResponse": {
        "type": "object",
        "title": "tracking.v1.UpdateConversionResponse",
        "additionalProperties": false,
        "description": "Feedback message for update conversion."
      },
      "enums.v1.AnuraScore": {
        "type": "string",
        "title": "enums.v1.AnuraScore",
        "enum": [
          "ANURA_SCORE_UNSPECIFIED",
          "ANURA_SCORE_GOOD",
          "ANURA_SCORE_WARNING",
          "ANURA_SCORE_BAD"
        ]
      },
      "enums.v1.ClickStatus": {
        "type": "string",
        "title": "enums.v1.ClickStatus",
        "enum": [
          "CLICK_STATUS_UNSPECIFIED",
          "CLICK_STATUS_OK",
          "CLICK_STATUS_NOT_ALLOWED",
          "CLICK_STATUS_BLOCKED"
        ]
      },
      "enums.v1.ClickType": {
        "type": "string",
        "title": "enums.v1.ClickType",
        "enum": [
          "CLICK_TYPE_UNSPECIFIED",
          "CLICK_TYPE_DIRECT",
          "CLICK_TYPE_REDIRECT",
          "CLICK_TYPE_REDIRECT_LANDING_PAGE",
          "CLICK_TYPE_REDIRECT_LANDING_PAGE_GOOGLE_DOMAIN",
          "CLICK_TYPE_SMART_LINK"
        ]
      },
      "enums.v1.ReportColumn": {
        "type": "string",
        "title": "enums.v1.ReportColumn",
        "enum": [
          "REPORT_COLUMN_UNSPECIFIED",
          "REPORT_COLUMN_ADVERTISER_PROFIT",
          "REPORT_COLUMN_AVERAGE_CLICK_CONVERSION_AMOUNT",
          "REPORT_COLUMN_AVERAGE_CLICK_COST",
          "REPORT_COLUMN_AVERAGE_CLICK_REVENUE",
          "REPORT_COLUMN_AVERAGE_COMMISSION_AMOUNT",
          "REPORT_COLUMN_AVERAGE_CONVERSION_AMOUNT",
          "REPORT_COLUMN_AVERAGE_COST",
          "REPORT_COLUMN_AVERAGE_REVENUE",
          "REPORT_COLUMN_CLICK_COUNT",
          "REPORT_COLUMN_CLICK_FRAUD_RATE",
          "REPORT_COLUMN_COMMISSION_COUNT",
          "REPORT_COLUMN_CONVERSION_AMOUNT_PER_CLICK",
          "REPORT_COLUMN_CONVERSION_COUNT",
          "REPORT_COLUMN_CONVERSION_FRAUD_RATE",
          "REPORT_COLUMN_CONVERSION_PER_CLICK_RATE",
          "REPORT_COLUMN_COUPON_COUNT",
          "REPORT_COLUMN_COST_PER_CLICK",
          "REPORT_COLUMN_GROSS_CLICK_COUNT",
          "REPORT_COLUMN_PROFIT",
          "REPORT_COLUMN_REVENUE_PER_CLICK",
          "REPORT_COLUMN_TOTAL_CLICK_CONVERSION_AMOUNT",
          "REPORT_COLUMN_TOTAL_CLICK_COST",
          "REPORT_COLUMN_TOTAL_CLICK_REVENUE",
          "REPORT_COLUMN_TOTAL_COMMISSION_AMOUNT",
          "REPORT_COLUMN_TOTAL_CONVERSION_AMOUNT",
          "REPORT_COLUMN_TOTAL_COST",
          "REPORT_COLUMN_TOTAL_REVENUE"
        ]
      },
      "enums.v1.ReportGrouping": {
        "type": "string",
        "title": "enums.v1.ReportGrouping",
        "enum": [
          "REPORT_GROUPING_UNSPECIFIED",
          "REPORT_GROUPING_ACCOUNT",
          "REPORT_GROUPING_ADV_S1",
          "REPORT_GROUPING_ADV_S2",
          "REPORT_GROUPING_ADV_S3",
          "REPORT_GROUPING_ADV_S4",
          "REPORT_GROUPING_ADV_S5",
          "REPORT_GROUPING_AFF_S1",
          "REPORT_GROUPING_AFF_S2",
          "REPORT_GROUPING_AFF_S3",
          "REPORT_GROUPING_AFF_S4",
          "REPORT_GROUPING_AFF_S5",
          "REPORT_GROUPING_AFFILIATE_MANAGER_ACCOUNT",
          "REPORT_GROUPING_CATEGORY",
          "REPORT_GROUPING_COUNTRY_CODE",
          "REPORT_GROUPING_COUPON",
          "REPORT_GROUPING_DAY",
          "REPORT_GROUPING_HOUR",
          "REPORT_GROUPING_LANDING_PAGE",
          "REPORT_GROUPING_MONTH",
          "REPORT_GROUPING_OFFER",
          "REPORT_GROUPING_REVENUE_ORIGIN",
          "REPORT_GROUPING_SMART_LINK",
          "REPORT_GROUPING_SOURCE",
          "REPORT_GROUPING_TIER",
          "REPORT_GROUPING_WEEK",
          "REPORT_GROUPING_YEAR"
        ]
      },
      "reports.v1.Account": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Internal ID"
          },
          "name": {
            "type": "string",
            "title": "name",
            "description": "Affiliate name"
          }
        },
        "title": "reports.v1.Account",
        "required": [
          "id",
          "name"
        ],
        "additionalProperties": false,
        "description": "Affiliate account"
      },
      "reports.v1.AffiliateOverviewReportRequest": {
        "type": "object",
        "properties": {
          "timeRange": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.TimeRange"
              }
            ],
            "title": "time_range",
            "description": "Time range"
          },
          "conversionTypeIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "title": "conversion_type_ids",
            "uniqueItems": true,
            "description": "Conversion types"
          },
          "conversionStatuses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/conversions.v1.ConversionStatus"
            },
            "title": "conversion_statuses",
            "uniqueItems": true,
            "description": "Conversion statuses"
          },
          "columns": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.ReportColumns"
              }
            ],
            "title": "columns",
            "description": "(OPTIONAL) Optional requested report columns. All columns selected if not set."
          }
        },
        "title": "reports.v1.AffiliateOverviewReportRequest",
        "required": [
          "timeRange"
        ],
        "additionalProperties": false,
        "description": "Affiliate report request"
      },
      "reports.v1.AffiliateOverviewReportResponse": {
        "type": "object",
        "properties": {
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/reports.v1.AffiliateOverviewReportResponse.Row"
            },
            "title": "rows"
          },
          "total": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.OverviewReportTotal"
              }
            ],
            "title": "total"
          },
          "filledColumns": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/enums.v1.ReportColumn"
            },
            "title": "filled_columns",
            "description": "List of filled columns with real values. The rest are filled with zero values."
          }
        },
        "title": "reports.v1.AffiliateOverviewReportResponse",
        "required": [
          "filledColumns"
        ],
        "additionalProperties": false,
        "description": "Affiliate report data"
      },
      "reports.v1.AffiliateOverviewReportResponse.Row": {
        "type": "object",
        "properties": {
          "account": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.Account"
              }
            ],
            "title": "account",
            "description": "Affiliate account information"
          },
          "clickCount": {
            "type": "string",
            "title": "click_count",
            "format": "int64",
            "description": "Number of clicks"
          },
          "grossClickCount": {
            "type": "string",
            "title": "gross_click_count",
            "format": "int64",
            "description": "Gross number of clicks"
          },
          "couponCount": {
            "type": "string",
            "title": "coupon_count",
            "format": "int64",
            "description": "Number of coupon uses"
          },
          "conversionCount": {
            "type": "string",
            "title": "conversion_count",
            "format": "int64",
            "description": "Number of conversions"
          },
          "commissionCount": {
            "type": "string",
            "title": "commission_count",
            "format": "int64",
            "description": "Number of MLM commissions"
          },
          "totalConversionAmount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "total_conversion_amount",
            "description": "Total conversion amount"
          },
          "totalRevenue": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "total_revenue",
            "description": "Total revenue"
          },
          "totalCost": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "total_cost",
            "description": "Total payout for affiliates"
          },
          "totalCommissionAmount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "total_commission_amount",
            "description": "Total MLM commission payouts"
          },
          "profit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "profit",
            "description": "Total profit"
          },
          "advertiserProfit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "advertiser_profit",
            "description": "Total advertiser profit"
          },
          "conversionPerClickRate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "conversion_per_click_rate",
            "description": "Conversion per click ratio"
          },
          "averageConversionAmount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "average_conversion_amount",
            "description": "Average conversion amount"
          },
          "averageRevenue": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "average_revenue",
            "description": "Average revenue"
          },
          "averageCost": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "average_cost",
            "description": "Average payout to affiliate"
          },
          "conversionAmountPerClick": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "conversion_amount_per_click",
            "description": "Average conversion amount per click"
          },
          "revenuePerClick": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "revenue_per_click",
            "description": "Average revenue per click"
          },
          "costPerClick": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "cost_per_click",
            "description": "Average affiliate payout per click"
          },
          "averageCommissionAmount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "average_commission_amount",
            "description": "Average MLM commission payout per click"
          }
        },
        "title": "reports.v1.AffiliateOverviewReportResponse.Row",
        "additionalProperties": false
      },
      "reports.v1.Category": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Category ID"
          },
          "name": {
            "type": "string",
            "title": "name",
            "description": "Category name"
          }
        },
        "title": "reports.v1.Category",
        "required": [
          "id",
          "name"
        ],
        "additionalProperties": false,
        "description": "Category"
      },
      "reports.v1.ClickReportFilters": {
        "type": "object",
        "properties": {
          "timeRange": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.TimeRange"
              }
            ],
            "title": "time_range",
            "description": "Time range"
          },
          "cids": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "minLength": 1
            },
            "title": "cids",
            "uniqueItems": true,
            "description": "Click ID"
          },
          "externalCids": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "minLength": 1
            },
            "title": "external_cids",
            "uniqueItems": true,
            "description": "External CID"
          },
          "countryCodes": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[A-Z]{2}$"
            },
            "title": "country_codes",
            "uniqueItems": true,
            "description": "Country code. Uses ISO 3166-1 alpha-2 (two-letter) format."
          },
          "sourceIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "title": "source_ids",
            "uniqueItems": true,
            "description": "Traffic source IDs"
          },
          "offerIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "title": "offer_ids",
            "uniqueItems": true,
            "description": "Offer ID"
          },
          "ipAddresses": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "minLength": 1
            },
            "title": "ip_addresses",
            "uniqueItems": true,
            "description": "IP address of click's origin"
          },
          "referrer": {
            "type": "string",
            "title": "referrer",
            "maxLength": 255,
            "description": "Referrer URL"
          },
          "affS1s": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "minLength": 1
            },
            "title": "aff_s1s",
            "uniqueItems": true,
            "description": "Aff s1 custom parameter"
          },
          "affS2s": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "minLength": 1
            },
            "title": "aff_s2s",
            "uniqueItems": true,
            "description": "Aff s2 custom parameter"
          },
          "affS3s": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "minLength": 1
            },
            "title": "aff_s3s",
            "uniqueItems": true,
            "description": "Aff s3 custom parameter"
          },
          "affS4s": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "minLength": 1
            },
            "title": "aff_s4s",
            "uniqueItems": true,
            "description": "Aff s4 custom parameter"
          },
          "affS5s": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "minLength": 1
            },
            "title": "aff_s5s",
            "uniqueItems": true,
            "description": "Aff s5 custom parameter"
          },
          "fraudSuspicion": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.FraudSuspicionFilter"
              }
            ],
            "title": "fraud_suspicion",
            "description": "(OPTIONAL) Is click flagged by fraud detection?"
          },
          "revenueOriginIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "title": "revenue_origin_ids",
            "uniqueItems": true,
            "description": "Advertisers"
          },
          "offerTagIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "offer_tag_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) Filter rows by offers having at least one of these tag IDs"
          },
          "affiliateTagIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "affiliate_tag_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) Filter rows by affiliates having at least one of these tag IDs"
          },
          "revenueOriginTagIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "revenue_origin_tag_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) Filter rows by advertisers (revenue origins) having at least one of these tag IDs"
          },
          "types": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/enums.v1.ClickType"
            },
            "title": "types",
            "uniqueItems": true,
            "description": "(OPTIONAL) Click origin (type)"
          }
        },
        "title": "reports.v1.ClickReportFilters",
        "required": [
          "timeRange"
        ],
        "additionalProperties": false,
        "description": "Click report filters"
      },
      "reports.v1.ClickReportRequest": {
        "type": "object",
        "properties": {
          "pagination": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.PaginationParams"
              }
            ],
            "title": "pagination",
            "description": "Pagination"
          },
          "filters": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.ClickReportFilters"
              }
            ],
            "title": "filters",
            "description": "Filters (see above)"
          }
        },
        "title": "reports.v1.ClickReportRequest",
        "required": [
          "pagination",
          "filters"
        ],
        "additionalProperties": false,
        "description": "Click report request"
      },
      "reports.v1.ClickReportResponse": {
        "type": "object",
        "properties": {
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/reports.v1.ClickReportResponse.Row"
            },
            "title": "rows"
          },
          "pagination": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Pagination"
              }
            ],
            "title": "pagination"
          }
        },
        "title": "reports.v1.ClickReportResponse",
        "required": [
          "pagination"
        ],
        "additionalProperties": false,
        "description": "Click report data"
      },
      "reports.v1.ClickReportResponse.ConversionSourceExternalIdentifier": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "External identifier ID"
          },
          "externalCid": {
            "type": "string",
            "title": "external_cid",
            "description": "External click ID"
          },
          "revenueOriginId": {
            "type": "string",
            "title": "revenue_origin_id",
            "description": "Click's revenue origin (or advertiser)"
          }
        },
        "title": "reports.v1.ClickReportResponse.ConversionSourceExternalIdentifier",
        "additionalProperties": false,
        "description": "Click identifiers"
      },
      "reports.v1.ClickReportResponse.CustomParams": {
        "type": "object",
        "properties": {
          "affS1": {
            "type": "string",
            "title": "aff_s1",
            "description": "Aff s1 parameter"
          },
          "affS2": {
            "type": "string",
            "title": "aff_s2",
            "description": "Aff s2 parameter"
          },
          "affS3": {
            "type": "string",
            "title": "aff_s3",
            "description": "Aff s3 parameter"
          },
          "affS4": {
            "type": "string",
            "title": "aff_s4",
            "description": "Aff s4 parameter"
          },
          "affS5": {
            "type": "string",
            "title": "aff_s5",
            "description": "Aff s5 parameter"
          },
          "adClickId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/clicks.v1.AdClickId"
              }
            ],
            "title": "ad_click_id",
            "description": "(OPTIONAL) Ad click ID query parameter (e.g. gclid, fbclid, ttclid)."
          }
        },
        "title": "reports.v1.ClickReportResponse.CustomParams",
        "additionalProperties": false,
        "description": "Custom affiliate parameters"
      },
      "reports.v1.ClickReportResponse.Offer": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Offer ID"
          },
          "name": {
            "type": "string",
            "title": "name",
            "description": "Offer name"
          }
        },
        "title": "reports.v1.ClickReportResponse.Offer",
        "additionalProperties": false,
        "description": "Offer"
      },
      "reports.v1.ClickReportResponse.RevenueOrigin": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Revenue origin/advertiser ID"
          },
          "name": {
            "type": "string",
            "title": "name",
            "description": "Revenue origin/advertiser name"
          }
        },
        "title": "reports.v1.ClickReportResponse.RevenueOrigin",
        "additionalProperties": false,
        "description": "Revenue origin (or advertiser)"
      },
      "reports.v1.ClickReportResponse.Row": {
        "type": "object",
        "properties": {
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "created_at",
            "description": "Timestamp"
          },
          "cid": {
            "type": "string",
            "title": "cid",
            "description": "Click ID"
          },
          "conversionSourceExternalIdentifier": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.ClickReportResponse.ConversionSourceExternalIdentifier"
              }
            ],
            "title": "conversion_source_external_identifier",
            "description": "Deprecated: Click external ID"
          },
          "conversionSourceExternalIdentifiers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/reports.v1.ClickReportResponse.ConversionSourceExternalIdentifier"
            },
            "title": "conversion_source_external_identifiers",
            "description": "Click external IDs"
          },
          "countryCode": {
            "type": "string",
            "title": "country_code",
            "description": "Country code"
          },
          "source": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.ClickReportResponse.Source"
              }
            ],
            "title": "source",
            "description": "Traffic source"
          },
          "offer": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.ClickReportResponse.Offer"
              }
            ],
            "title": "offer",
            "description": "Offer"
          },
          "ipAddress": {
            "type": "string",
            "title": "ip_address",
            "description": "IP address"
          },
          "userAgent": {
            "type": "string",
            "title": "user_agent",
            "description": "Browser, OS and device"
          },
          "referrer": {
            "type": "string",
            "title": "referrer",
            "description": "Referrer URL"
          },
          "grossClickCount": {
            "type": "integer",
            "title": "gross_click_count",
            "description": "Gross click count"
          },
          "params": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.ClickReportResponse.CustomParams"
              }
            ],
            "title": "params",
            "description": "Custom parameters"
          },
          "fraudSuspicion": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.FraudSuspicion"
              }
            ],
            "title": "fraud_suspicion",
            "description": "Is flagged by fraud detection system?"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.ClickStatus"
              }
            ],
            "title": "status",
            "description": "Click status"
          },
          "revenueOrigin": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.ClickReportResponse.RevenueOrigin"
              }
            ],
            "title": "revenue_origin",
            "description": "Revenue origin/advertiser"
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.ClickType"
              }
            ],
            "title": "type",
            "description": "Click origin (type)"
          },
          "targetingData": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.ClickReportResponse.TargetingData"
              }
            ],
            "title": "targeting_data",
            "description": "(OPTIONAL) Click properties applied during LP targeting"
          },
          "anura": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Anura"
              }
            ],
            "title": "anura",
            "description": "Anura fraud detection"
          },
          "landingPage": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.LandingPage"
              }
            ],
            "title": "landing_page",
            "description": "Landing page"
          },
          "sourceExpiredAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "source_expired_at",
            "description": "(OPTIONAL) Expired at timestamp"
          },
          "cookieExpiredAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "cookie_expired_at",
            "description": "(OPTIONAL) Cookie expired at timestamp"
          }
        },
        "title": "reports.v1.ClickReportResponse.Row",
        "required": [
          "landingPage"
        ],
        "additionalProperties": false
      },
      "reports.v1.ClickReportResponse.Source": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Affiliate ID"
          },
          "publicId": {
            "type": "string",
            "title": "public_id",
            "description": "Affiliate public ID"
          }
        },
        "title": "reports.v1.ClickReportResponse.Source",
        "additionalProperties": false,
        "description": "Source affiliate"
      },
      "reports.v1.ClickReportResponse.TargetingData": {
        "type": "object",
        "properties": {
          "location": {
            "allOf": [
              {
                "$ref": "#/components/schemas/locations.v1.Location"
              }
            ],
            "title": "location",
            "description": "(OPTIONAL) "
          },
          "language": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "language",
            "description": "(OPTIONAL) "
          },
          "device": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.ClickReportResponse.TargetingData.Device"
              }
            ],
            "title": "device",
            "description": "(OPTIONAL) "
          },
          "operatingSystem": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.ClickReportResponse.TargetingData.OperatingSystem"
              }
            ],
            "title": "operating_system",
            "description": "(OPTIONAL) "
          }
        },
        "title": "reports.v1.ClickReportResponse.TargetingData",
        "additionalProperties": false,
        "description": "Click properties applied during LP targeting"
      },
      "reports.v1.ClickReportResponse.TargetingData.Device": {
        "type": "object",
        "properties": {
          "value": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.Device"
              }
            ],
            "title": "value"
          }
        },
        "title": "reports.v1.ClickReportResponse.TargetingData.Device",
        "required": [
          "value"
        ],
        "additionalProperties": false
      },
      "reports.v1.ClickReportResponse.TargetingData.OperatingSystem": {
        "type": "object",
        "properties": {
          "value": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.OperatingSystem"
              }
            ],
            "title": "value"
          }
        },
        "title": "reports.v1.ClickReportResponse.TargetingData.OperatingSystem",
        "required": [
          "value"
        ],
        "additionalProperties": false
      },
      "reports.v1.ClientMetricColumns": {
        "type": "object",
        "properties": {
          "codes": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 100,
              "minLength": 1
            },
            "title": "codes",
            "uniqueItems": true,
            "description": "Client metric codes"
          }
        },
        "title": "reports.v1.ClientMetricColumns",
        "required": [
          "codes"
        ],
        "additionalProperties": false,
        "description": "Requested client metric columns"
      },
      "reports.v1.ClientMetrics": {
        "type": "object",
        "properties": {
          "integers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/reports.v1.ClientMetrics.Integer"
            },
            "title": "integers",
            "description": "Client metrics with integer value"
          },
          "decimals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/reports.v1.ClientMetrics.Decimal"
            },
            "title": "decimals",
            "description": "Client metrics with decimal value"
          }
        },
        "title": "reports.v1.ClientMetrics",
        "required": [
          "integers",
          "decimals"
        ],
        "additionalProperties": false,
        "description": "Client metrics"
      },
      "reports.v1.ClientMetrics.Decimal": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "title": "code",
            "description": "Client metric code"
          },
          "value": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "value",
            "description": "Client metric value"
          }
        },
        "title": "reports.v1.ClientMetrics.Decimal",
        "required": [
          "code",
          "value"
        ],
        "additionalProperties": false,
        "description": "Client metrics with decimal value"
      },
      "reports.v1.ClientMetrics.Integer": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "title": "code",
            "description": "Client metric code"
          },
          "value": {
            "type": "string",
            "title": "value",
            "format": "int64",
            "description": "Client metric value"
          }
        },
        "title": "reports.v1.ClientMetrics.Integer",
        "required": [
          "code",
          "value"
        ],
        "additionalProperties": false,
        "description": "Client metrics with integer value"
      },
      "reports.v1.ConversionDrilldown": {
        "type": "object",
        "properties": {
          "conversionTypeIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "conversion_type_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) Conversion types to include in the breakdown"
          },
          "conversionStatuses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/conversions.v1.ConversionStatus"
            },
            "title": "conversion_statuses",
            "uniqueItems": true,
            "description": "(OPTIONAL) Conversion statuses to include in the breakdown"
          }
        },
        "title": "reports.v1.ConversionDrilldown",
        "additionalProperties": false,
        "description": "Conversion drilldown\n\n Specifies which conversion types and statuses to break down separately in the report response.\n When set, each row additionally contains per-type and per-status conversion metrics\n alongside the aggregated totals."
      },
      "reports.v1.ConversionReportFilters": {
        "type": "object",
        "properties": {
          "timeRange": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.TimeRange"
              }
            ],
            "title": "time_range",
            "description": "(OPTIONAL) Time range"
          },
          "conversionIds": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "minLength": 1
            },
            "title": "conversion_ids",
            "uniqueItems": true,
            "description": "Conversion IDs"
          },
          "cids": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "minLength": 1
            },
            "title": "cids",
            "uniqueItems": true,
            "description": "Click IDs"
          },
          "externalCids": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "minLength": 1
            },
            "title": "external_cids",
            "uniqueItems": true,
            "description": "External click IDs"
          },
          "couponCodes": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "minLength": 1
            },
            "title": "coupon_codes",
            "uniqueItems": true,
            "description": "Coupon codes"
          },
          "countryCodes": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[A-Z]{2}$"
            },
            "title": "country_codes",
            "uniqueItems": true,
            "description": "Country code. Uses ISO 3166-1 alpha-2 (two-letter) format."
          },
          "sourceIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "title": "source_ids",
            "uniqueItems": true,
            "description": "Source IDs"
          },
          "offerIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "title": "offer_ids",
            "uniqueItems": true,
            "description": "Offer IDs"
          },
          "conversionStatuses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/conversions.v1.ConversionStatus"
            },
            "title": "conversion_statuses",
            "uniqueItems": true,
            "description": "Conversion sources"
          },
          "conversionTypeIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "title": "conversion_type_ids",
            "uniqueItems": true,
            "description": "Conversion types"
          },
          "conversionSourceTypes": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 100,
              "minLength": 1
            },
            "title": "conversion_source_types",
            "uniqueItems": true,
            "description": "Traffic source types"
          },
          "externalIds": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "minLength": 1
            },
            "title": "external_ids",
            "uniqueItems": true,
            "description": "External IDs"
          },
          "customerIds": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "minLength": 1
            },
            "title": "customer_ids",
            "uniqueItems": true,
            "description": "Customer IDs"
          },
          "advS1s": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "minLength": 1
            },
            "title": "adv_s1s",
            "uniqueItems": true,
            "description": "Custom adv s1 parameter"
          },
          "advS2s": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "minLength": 1
            },
            "title": "adv_s2s",
            "uniqueItems": true,
            "description": "Custom adv s2 parameter"
          },
          "advS3s": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "minLength": 1
            },
            "title": "adv_s3s",
            "uniqueItems": true,
            "description": "Custom adv s3 parameter"
          },
          "advS4s": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "minLength": 1
            },
            "title": "adv_s4s",
            "uniqueItems": true,
            "description": "Custom adv s4 parameter"
          },
          "advS5s": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "minLength": 1
            },
            "title": "adv_s5s",
            "uniqueItems": true,
            "description": "Custom adv s5 parameter"
          },
          "affS1s": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "minLength": 1
            },
            "title": "aff_s1s",
            "uniqueItems": true,
            "description": "Custom aff s1 parameter"
          },
          "affS2s": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "minLength": 1
            },
            "title": "aff_s2s",
            "uniqueItems": true,
            "description": "Custom aff s2 parameter"
          },
          "affS3s": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "minLength": 1
            },
            "title": "aff_s3s",
            "uniqueItems": true,
            "description": "Custom aff s3 parameter"
          },
          "affS4s": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "minLength": 1
            },
            "title": "aff_s4s",
            "uniqueItems": true,
            "description": "Custom aff s4 parameter"
          },
          "affS5s": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "minLength": 1
            },
            "title": "aff_s5s",
            "uniqueItems": true,
            "description": "Custom aff s5 parameter"
          },
          "currencyCodes": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 3,
              "minLength": 3,
              "pattern": "^[A-Z]*$"
            },
            "title": "currency_codes",
            "description": "Currency codes. Uses ISO 4217 format"
          },
          "fraudSuspicion": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.FraudSuspicionFilter"
              }
            ],
            "title": "fraud_suspicion",
            "description": "(OPTIONAL) Is flagged by fraud detection?"
          },
          "revenueOriginIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "title": "revenue_origin_ids",
            "uniqueItems": true,
            "description": "Advertisers"
          },
          "settlementIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "title": "settlement_ids",
            "uniqueItems": true,
            "description": "Settlement IDs"
          },
          "accountSettlementIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "title": "account_settlement_ids",
            "uniqueItems": true,
            "description": "Self-billing invoice IDs"
          },
          "claimIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "title": "claim_ids",
            "uniqueItems": true,
            "description": "Claim IDs"
          },
          "conversionTypeCodes": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 20,
              "minLength": 1
            },
            "title": "conversion_type_codes",
            "uniqueItems": true,
            "description": "Conversion type codes"
          },
          "qualified": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.BoolValue"
              }
            ],
            "title": "qualified",
            "description": "(OPTIONAL) Filters qualified/unqualified conversions"
          },
          "offerTagIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "offer_tag_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) Filter rows by offers having at least one of these tag IDs"
          },
          "affiliateTagIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "affiliate_tag_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) Filter rows by affiliates having at least one of these tag IDs"
          },
          "revenueOriginTagIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "revenue_origin_tag_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) Filter rows by advertisers (revenue origins) having at least one of these tag IDs"
          },
          "isSettled": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.BoolValue"
              }
            ],
            "title": "is_settled",
            "description": "(OPTIONAL) Filters settled/unsettled conversions"
          }
        },
        "title": "reports.v1.ConversionReportFilters",
        "additionalProperties": false,
        "description": "Filters for conversion report\ntime_range.or.settlement // either time range or settlement filter need to be present\n"
      },
      "reports.v1.ConversionReportRequest": {
        "type": "object",
        "properties": {
          "pagination": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.PaginationParams"
              }
            ],
            "title": "pagination",
            "description": "Pagination"
          },
          "filters": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.ConversionReportFilters"
              }
            ],
            "title": "filters",
            "description": "Conversion report filters (see above)"
          }
        },
        "title": "reports.v1.ConversionReportRequest",
        "required": [
          "pagination",
          "filters"
        ],
        "additionalProperties": false,
        "description": "Conversion report request"
      },
      "reports.v1.ConversionReportResponse": {
        "type": "object",
        "properties": {
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/reports.v1.ConversionReportResponse.Row"
            },
            "title": "rows"
          },
          "pagination": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Pagination"
              }
            ],
            "title": "pagination"
          }
        },
        "title": "reports.v1.ConversionReportResponse",
        "required": [
          "pagination"
        ],
        "additionalProperties": false,
        "description": "Conversion report data"
      },
      "reports.v1.ConversionReportResponse.ConversionSourceCustomParams": {
        "type": "object",
        "properties": {
          "affS1": {
            "type": "string",
            "title": "aff_s1",
            "description": "Custom aff s1 parameter"
          },
          "affS2": {
            "type": "string",
            "title": "aff_s2",
            "description": "Custom aff s2 parameter"
          },
          "affS3": {
            "type": "string",
            "title": "aff_s3",
            "description": "Custom aff s3 parameter"
          },
          "affS4": {
            "type": "string",
            "title": "aff_s4",
            "description": "Custom aff s4 parameter"
          },
          "affS5": {
            "type": "string",
            "title": "aff_s5",
            "description": "Custom aff s5 parameter"
          }
        },
        "title": "reports.v1.ConversionReportResponse.ConversionSourceCustomParams",
        "additionalProperties": false,
        "description": "Custom affiliate parameters"
      },
      "reports.v1.ConversionReportResponse.ConversionType": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Conversion type ID"
          },
          "name": {
            "type": "string",
            "title": "name",
            "description": "Conversion type name"
          }
        },
        "title": "reports.v1.ConversionReportResponse.ConversionType",
        "additionalProperties": false,
        "description": "Conversion type"
      },
      "reports.v1.ConversionReportResponse.CustomParams": {
        "type": "object",
        "properties": {
          "advS1": {
            "type": "string",
            "title": "adv_s1",
            "description": "Custom adv s1 parameter"
          },
          "advS2": {
            "type": "string",
            "title": "adv_s2",
            "description": "Custom adv s2 parameter"
          },
          "advS3": {
            "type": "string",
            "title": "adv_s3",
            "description": "Custom adv s3 parameter"
          },
          "advS4": {
            "type": "string",
            "title": "adv_s4",
            "description": "Custom adv s4 parameter"
          },
          "advS5": {
            "type": "string",
            "title": "adv_s5",
            "description": "Custom adv s5 parameter"
          }
        },
        "title": "reports.v1.ConversionReportResponse.CustomParams",
        "additionalProperties": false,
        "description": "Custom advertiser parameters"
      },
      "reports.v1.ConversionReportResponse.RevenueOrigin": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Advertiser ID"
          },
          "name": {
            "type": "string",
            "title": "name",
            "description": "Advertiser name"
          }
        },
        "title": "reports.v1.ConversionReportResponse.RevenueOrigin",
        "additionalProperties": false,
        "description": "Revenue origin / advertiser"
      },
      "reports.v1.ConversionReportResponse.Row": {
        "type": "object",
        "properties": {
          "createdAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "created_at",
            "description": "Timestamp of conversion's creation"
          },
          "conversionId": {
            "type": "string",
            "title": "conversion_id",
            "description": "Conversion ID"
          },
          "cid": {
            "type": "string",
            "title": "cid",
            "description": "Click ID"
          },
          "externalCid": {
            "type": "string",
            "title": "external_cid",
            "description": "External click ID"
          },
          "couponCode": {
            "type": "string",
            "title": "coupon_code",
            "description": "Coupon code"
          },
          "countryCode": {
            "type": "string",
            "title": "country_code",
            "description": "Country code"
          },
          "source": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.ConversionReportResponse.Source"
              }
            ],
            "title": "source",
            "description": "Traffic source"
          },
          "offer": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.Offer"
              }
            ],
            "title": "offer",
            "description": "Offer"
          },
          "landingPage": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.LandingPage"
              }
            ],
            "title": "landing_page",
            "description": "(OPTIONAL) Landing page of the click"
          },
          "conversionStatus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/conversions.v1.ConversionStatus"
              }
            ],
            "title": "conversion_status",
            "description": "Conversion status"
          },
          "conversionType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.ConversionReportResponse.ConversionType"
              }
            ],
            "title": "conversion_type",
            "description": "Conversion type"
          },
          "conversionSourceType": {
            "type": "string",
            "title": "conversion_source_type",
            "description": "Traffic source type"
          },
          "conversionAmount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "conversion_amount",
            "description": "Original amount of the conversion the revenue and cost is calculated from"
          },
          "revenue": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "revenue",
            "description": "Revenue"
          },
          "cost": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "cost",
            "description": "Payout to affiliate"
          },
          "normalizedRevenue": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "normalized_revenue",
            "description": "Adjusted revenue"
          },
          "normalizedCost": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "normalized_cost",
            "description": "Adjusted payout to affiliate"
          },
          "originalRevenue": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "original_revenue",
            "description": "Original revenue"
          },
          "originalCost": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "original_cost",
            "description": "Original payout to affiliate"
          },
          "revenueUpdatedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "revenue_updated_at",
            "description": "Timestamp of last revenue adjustment"
          },
          "costUpdatedAt": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "cost_updated_at",
            "description": "Timestamp of last payout to affiliate adjustment"
          },
          "customPayoutsApplied": {
            "type": "boolean",
            "title": "custom_payouts_applied",
            "description": "Custom payouts override automatically calculated values"
          },
          "currencyCode": {
            "type": "string",
            "title": "currency_code",
            "description": "Currency code"
          },
          "externalId": {
            "type": "string",
            "title": "external_id",
            "description": "External ID"
          },
          "customerId": {
            "type": "string",
            "title": "customer_id",
            "description": "Customer ID"
          },
          "params": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.ConversionReportResponse.CustomParams"
              }
            ],
            "title": "params",
            "description": "Custom parameters"
          },
          "conversionSourceParams": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.ConversionReportResponse.ConversionSourceCustomParams"
              }
            ],
            "title": "conversion_source_params",
            "description": "Conversion source parameters"
          },
          "settlementId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "settlement_id",
            "description": "Settlement ID"
          },
          "accountSettlementId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "account_settlement_id",
            "description": "Self-billing invoice ID"
          },
          "fraudSuspicion": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.FraudSuspicion"
              }
            ],
            "title": "fraud_suspicion",
            "description": "Is flagged by fraud detection system?"
          },
          "onHoldUntil": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.Timestamp"
              }
            ],
            "title": "on_hold_until",
            "description": "On-hold period end timestamp"
          },
          "revenueOrigin": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.ConversionReportResponse.RevenueOrigin"
              }
            ],
            "title": "revenue_origin",
            "description": "Revenue origin / advertiser"
          },
          "claimId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "claim_id",
            "description": "Claim ID"
          },
          "revenueAdjustmentName": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "revenue_adjustment_name",
            "description": "(OPTIONAL) Revenue adjustment name. Revenue was adjusted only if it was filled."
          },
          "costAdjustmentName": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "cost_adjustment_name",
            "description": "(OPTIONAL) Affiliate's payout adjustment name. Affiliate's payout was adjusted only if it was filled."
          },
          "normalizedConversionAmount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "normalized_conversion_amount",
            "description": "(OPTIONAL) Sales amount converted to the primary currency"
          },
          "normalizedExchangeRate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "normalized_exchange_rate",
            "description": "(OPTIONAL) Exchange rate used for conversion to the primary currency"
          },
          "qualified": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.BoolValue"
              }
            ],
            "title": "qualified",
            "description": "(OPTIONAL) Designates if conversion is qualified."
          }
        },
        "title": "reports.v1.ConversionReportResponse.Row",
        "additionalProperties": false
      },
      "reports.v1.ConversionReportResponse.Source": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Affiliate ID"
          },
          "publicId": {
            "type": "string",
            "title": "public_id",
            "description": "Affiliate public ID"
          }
        },
        "title": "reports.v1.ConversionReportResponse.Source",
        "additionalProperties": false,
        "description": "Source affiliate"
      },
      "reports.v1.CountryOverviewReportRequest": {
        "type": "object",
        "properties": {
          "timeRange": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.TimeRange"
              }
            ],
            "title": "time_range",
            "description": "Time range"
          },
          "conversionTypeIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "title": "conversion_type_ids",
            "uniqueItems": true,
            "description": "Conversion types"
          },
          "conversionStatuses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/conversions.v1.ConversionStatus"
            },
            "title": "conversion_statuses",
            "uniqueItems": true,
            "description": "Conversion statuses"
          },
          "columns": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.ReportColumns"
              }
            ],
            "title": "columns",
            "description": "(OPTIONAL) Optional requested report columns. All columns selected if not set."
          }
        },
        "title": "reports.v1.CountryOverviewReportRequest",
        "required": [
          "timeRange"
        ],
        "additionalProperties": false,
        "description": "Country overview report request"
      },
      "reports.v1.CountryOverviewReportResponse": {
        "type": "object",
        "properties": {
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/reports.v1.CountryOverviewReportResponse.Row"
            },
            "title": "rows"
          },
          "total": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.OverviewReportTotal"
              }
            ],
            "title": "total"
          },
          "filledColumns": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/enums.v1.ReportColumn"
            },
            "title": "filled_columns",
            "description": "List of filled columns with real values. The rest are filled with zero values."
          }
        },
        "title": "reports.v1.CountryOverviewReportResponse",
        "required": [
          "filledColumns"
        ],
        "additionalProperties": false,
        "description": "Country overview report data"
      },
      "reports.v1.CountryOverviewReportResponse.Row": {
        "type": "object",
        "properties": {
          "countryCode": {
            "type": "string",
            "title": "country_code",
            "description": "Country code. Uses ISO 3166-1 alpha-2 (two-letter) format."
          },
          "clickCount": {
            "type": "string",
            "title": "click_count",
            "format": "int64",
            "description": "Number of clicks"
          },
          "grossClickCount": {
            "type": "string",
            "title": "gross_click_count",
            "format": "int64",
            "description": "Gross number of clicks"
          },
          "couponCount": {
            "type": "string",
            "title": "coupon_count",
            "format": "int64",
            "description": "Number of coupon uses"
          },
          "conversionCount": {
            "type": "string",
            "title": "conversion_count",
            "format": "int64",
            "description": "Number of conversions"
          },
          "commissionCount": {
            "type": "string",
            "title": "commission_count",
            "format": "int64",
            "description": "Number of MLM commissions"
          },
          "totalConversionAmount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "total_conversion_amount",
            "description": "Total conversion amount"
          },
          "totalRevenue": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "total_revenue",
            "description": "Total revenue"
          },
          "totalCost": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "total_cost",
            "description": "Total payout for affiliates"
          },
          "totalCommissionAmount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "total_commission_amount",
            "description": "Total MLM commission payouts"
          },
          "profit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "profit",
            "description": "Total profit"
          },
          "advertiserProfit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "advertiser_profit",
            "description": "Total advertiser profit"
          },
          "conversionPerClickRate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "conversion_per_click_rate",
            "description": "Conversion per click ratio"
          },
          "averageConversionAmount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "average_conversion_amount",
            "description": "Average conversion amount"
          },
          "averageRevenue": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "average_revenue",
            "description": "Average revenue"
          },
          "averageCost": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "average_cost",
            "description": "Average payout to affiliate"
          },
          "conversionAmountPerClick": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "conversion_amount_per_click",
            "description": "Average conversion amount per click"
          },
          "revenuePerClick": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "revenue_per_click",
            "description": "Average revenue per click"
          },
          "costPerClick": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "cost_per_click",
            "description": "Average affiliate payout per click"
          },
          "averageCommissionAmount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "average_commission_amount",
            "description": "Average MLM commission payout per click"
          }
        },
        "title": "reports.v1.CountryOverviewReportResponse.Row",
        "additionalProperties": false
      },
      "reports.v1.Coupon": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Coupon ID"
          },
          "code": {
            "type": "string",
            "title": "code",
            "description": "Coupon code"
          }
        },
        "title": "reports.v1.Coupon",
        "required": [
          "id",
          "code"
        ],
        "additionalProperties": false,
        "description": "Coupon"
      },
      "reports.v1.CustomColumns": {
        "type": "object",
        "properties": {
          "columns": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/reports.v1.CustomColumns.Column"
            },
            "title": "columns",
            "description": "Rate columns"
          }
        },
        "title": "reports.v1.CustomColumns",
        "required": [
          "columns"
        ],
        "additionalProperties": false,
        "description": "Custom columns"
      },
      "reports.v1.CustomColumns.Column": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "title": "code",
            "description": "Rate column code"
          },
          "value": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "value",
            "description": "Rate column value"
          }
        },
        "title": "reports.v1.CustomColumns.Column",
        "required": [
          "code",
          "value"
        ],
        "additionalProperties": false,
        "description": "Rate column"
      },
      "reports.v1.DailyOverviewReportRequest": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string",
            "title": "from",
            "maxLength": 10,
            "minLength": 10,
            "description": "Start date of reported days"
          },
          "to": {
            "type": "string",
            "title": "to",
            "maxLength": 10,
            "minLength": 10,
            "description": "End day of reported days"
          },
          "timezone": {
            "type": "string",
            "title": "timezone",
            "maxLength": 255,
            "minLength": 1,
            "description": "Timezone to offset in reports, as an IANA Time Zone database name (e.g. \"Europe/Prague\")"
          },
          "conversionTypeIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "conversion_type_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) Conversion types present in the report"
          },
          "conversionStatuses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/conversions.v1.ConversionStatus"
            },
            "title": "conversion_statuses",
            "uniqueItems": true,
            "description": "(OPTIONAL) "
          },
          "sourceIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "source_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) "
          },
          "columns": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.ReportColumns"
              }
            ],
            "title": "columns",
            "description": "(OPTIONAL) Optional requested report columns. All columns selected if not set."
          },
          "customColumns": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.ReportCustomColumns"
              }
            ],
            "title": "custom_columns",
            "description": "(OPTIONAL) Optional requested report custom columns. All columns selected if not set."
          },
          "clientMetricColumns": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.ClientMetricColumns"
              }
            ],
            "title": "client_metric_columns",
            "description": "(OPTIONAL) Optional requested client metric columns. All columns selected if not set."
          }
        },
        "title": "reports.v1.DailyOverviewReportRequest",
        "required": [
          "from",
          "to",
          "timezone"
        ],
        "additionalProperties": false,
        "description": "Daily overview report request"
      },
      "reports.v1.DailyOverviewReportResponse": {
        "type": "object",
        "properties": {
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/reports.v1.DailyOverviewReportResponse.Row"
            },
            "title": "rows"
          },
          "total": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.OverviewReportValues"
              }
            ],
            "title": "total"
          },
          "filledColumns": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/enums.v1.ReportColumn"
            },
            "title": "filled_columns",
            "description": "List of filled columns with real values. The rest are filled with zero values."
          }
        },
        "title": "reports.v1.DailyOverviewReportResponse",
        "required": [
          "rows",
          "total",
          "filledColumns"
        ],
        "additionalProperties": false,
        "description": "Daily overview data"
      },
      "reports.v1.DailyOverviewReportResponse.Row": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "title": "date",
            "description": "Date"
          },
          "clickCount": {
            "type": "string",
            "title": "click_count",
            "format": "int64",
            "description": "Number of clicks"
          },
          "grossClickCount": {
            "type": "string",
            "title": "gross_click_count",
            "format": "int64",
            "description": "Gross number of clicks"
          },
          "couponCount": {
            "type": "string",
            "title": "coupon_count",
            "format": "int64",
            "description": "Number of coupon uses"
          },
          "conversionCount": {
            "type": "string",
            "title": "conversion_count",
            "format": "int64",
            "description": "Number of conversions"
          },
          "commissionCount": {
            "type": "string",
            "title": "commission_count",
            "format": "int64",
            "description": "Number of MLM commissions"
          },
          "totalConversionAmount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "total_conversion_amount",
            "description": "Total conversion amount for the day"
          },
          "totalRevenue": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "total_revenue",
            "description": "Total revenue for the day"
          },
          "totalCost": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "total_cost",
            "description": "Total affiliate payout for the day"
          },
          "totalCommissionAmount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "total_commission_amount",
            "description": "Total MLM commissions payout for the day"
          },
          "profit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "profit",
            "description": "Total profit for the day"
          },
          "advertiserProfit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "advertiser_profit",
            "description": "Total advertiser profit for the day"
          },
          "conversionPerClickRate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "conversion_per_click_rate",
            "description": "Conversion per click ratio"
          },
          "averageConversionAmount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "average_conversion_amount",
            "description": "Average conversion amount"
          },
          "averageRevenue": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "average_revenue",
            "description": "Average revenue"
          },
          "averageCost": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "average_cost",
            "description": "Average payout to affiliate"
          },
          "conversionAmountPerClick": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "conversion_amount_per_click",
            "description": "Average conversion amount per click"
          },
          "revenuePerClick": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "revenue_per_click",
            "description": "Average revenue per click"
          },
          "costPerClick": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "cost_per_click",
            "description": "Average affiliate payout per click"
          },
          "averageCommissionAmount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "average_commission_amount",
            "description": "Average MLM commission payout per click"
          },
          "clickFraudRate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "click_fraud_rate",
            "description": "Click fraud rate (percentage of clicks marked as suspicious)"
          },
          "conversionFraudRate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "conversion_fraud_rate",
            "description": "Conversion fraud rate (percentage of conversions flagged as suspicious)"
          },
          "clientMetrics": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.ClientMetrics"
              }
            ],
            "title": "client_metrics",
            "description": "(OPTIONAL) Client metrics"
          },
          "customColumns": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.CustomColumns"
              }
            ],
            "title": "custom_columns",
            "description": "(OPTIONAL) Custom columns"
          }
        },
        "title": "reports.v1.DailyOverviewReportResponse.Row",
        "required": [
          "date",
          "clickCount",
          "grossClickCount",
          "couponCount",
          "conversionCount",
          "totalConversionAmount",
          "totalRevenue",
          "totalCost",
          "totalCommissionAmount",
          "profit",
          "advertiserProfit",
          "conversionPerClickRate",
          "averageConversionAmount",
          "averageRevenue",
          "averageCost",
          "conversionAmountPerClick",
          "revenuePerClick",
          "costPerClick",
          "averageCommissionAmount",
          "clickFraudRate",
          "conversionFraudRate"
        ],
        "additionalProperties": false
      },
      "reports.v1.GeneralOverviewReportFilters": {
        "type": "object",
        "properties": {
          "timeRange": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.TimeRange"
              }
            ],
            "title": "time_range",
            "description": "Time range"
          },
          "conversionTypeIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "conversion_type_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) Conversion types"
          },
          "conversionStatuses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/conversions.v1.ConversionStatus"
            },
            "title": "conversion_statuses",
            "uniqueItems": true,
            "description": "(OPTIONAL) Conversion statuses"
          },
          "sourceIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "source_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) Traffic source IDs"
          },
          "accountIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "account_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) Account IDs"
          },
          "countryCodes": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[A-Z]{2}$",
              "description": "(OPTIONAL) "
            },
            "title": "country_codes",
            "uniqueItems": true,
            "description": "(OPTIONAL) Country codes"
          },
          "revenueOriginIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "revenue_origin_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) Revenue origin IDs"
          },
          "offerIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "offer_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) Offer IDs"
          },
          "categoryIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "category_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) Category IDs"
          },
          "tierIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "tier_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) Tier IDs"
          },
          "landingPageIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "landing_page_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) Landing page IDs"
          },
          "couponIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "coupon_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) Coupon IDs"
          },
          "affiliateManagerId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "affiliate_manager_id",
            "format": "uuid",
            "description": "(OPTIONAL) Affiliate manager ID"
          },
          "advS1s": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "description": "(OPTIONAL) "
            },
            "title": "adv_s1s",
            "uniqueItems": true,
            "description": "(OPTIONAL) Adv S1 parameter"
          },
          "advS2s": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "description": "(OPTIONAL) "
            },
            "title": "adv_s2s",
            "uniqueItems": true,
            "description": "(OPTIONAL) Adv S2 parameter"
          },
          "advS3s": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "description": "(OPTIONAL) "
            },
            "title": "adv_s3s",
            "uniqueItems": true,
            "description": "(OPTIONAL) Adv S3 parameter"
          },
          "advS4s": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "description": "(OPTIONAL) "
            },
            "title": "adv_s4s",
            "uniqueItems": true,
            "description": "(OPTIONAL) Adv S4 parameter"
          },
          "advS5s": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "description": "(OPTIONAL) "
            },
            "title": "adv_s5s",
            "uniqueItems": true,
            "description": "(OPTIONAL) Adv S5 parameter"
          },
          "affS1s": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "description": "(OPTIONAL) "
            },
            "title": "aff_s1s",
            "uniqueItems": true,
            "description": "(OPTIONAL) Aff S1 parameter"
          },
          "affS2s": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "description": "(OPTIONAL) "
            },
            "title": "aff_s2s",
            "uniqueItems": true,
            "description": "(OPTIONAL) Aff S2 parameter"
          },
          "affS3s": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "description": "(OPTIONAL) "
            },
            "title": "aff_s3s",
            "uniqueItems": true,
            "description": "(OPTIONAL) Aff S3 parameter"
          },
          "affS4s": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "description": "(OPTIONAL) "
            },
            "title": "aff_s4s",
            "uniqueItems": true,
            "description": "(OPTIONAL) Aff S4 parameter"
          },
          "affS5s": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 255,
              "description": "(OPTIONAL) "
            },
            "title": "aff_s5s",
            "uniqueItems": true,
            "description": "(OPTIONAL) Aff S5 parameter"
          },
          "smartLinkIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "smart_link_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) Smart link IDs"
          },
          "offerTagIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "offer_tag_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) Filter rows by offers having at least one of these tag IDs"
          },
          "affiliateTagIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "affiliate_tag_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) Filter rows by affiliates having at least one of these tag IDs"
          },
          "revenueOriginTagIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "description": "(OPTIONAL) "
            },
            "title": "revenue_origin_tag_ids",
            "uniqueItems": true,
            "description": "(OPTIONAL) Filter rows by advertisers (revenue origins) having at least one of these tag IDs"
          }
        },
        "title": "reports.v1.GeneralOverviewReportFilters",
        "required": [
          "timeRange"
        ],
        "additionalProperties": false,
        "description": "General report filters"
      },
      "reports.v1.GeneralOverviewReportRequest": {
        "type": "object",
        "properties": {
          "filters": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.GeneralOverviewReportFilters"
              }
            ],
            "title": "filters",
            "description": "Filters (see above)"
          },
          "groupingLevels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/enums.v1.ReportGrouping"
            },
            "title": "grouping_levels",
            "maxItems": 1,
            "minItems": 1,
            "uniqueItems": true,
            "description": "Grouping levels for the report.\n\n Only a single grouping level is currently supported, so the report is grouped by one dimension at a time.\n To retrieve lower-depth data, send another request with the next grouping level and an additional filter\n that narrows the results to the parent row you want to break down."
          },
          "conversionDrilldown": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.ConversionDrilldown"
              }
            ],
            "title": "conversion_drilldown",
            "description": "(OPTIONAL) Optional conversion drilldown statistics"
          },
          "columns": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.ReportColumns"
              }
            ],
            "title": "columns",
            "description": "(OPTIONAL) Optional requested report columns. All columns selected if not set."
          },
          "customColumns": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.ReportCustomColumns"
              }
            ],
            "title": "custom_columns",
            "description": "(OPTIONAL) Optional requested report custom columns. All columns selected if not set."
          },
          "clientMetricColumns": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.ClientMetricColumns"
              }
            ],
            "title": "client_metric_columns",
            "description": "(OPTIONAL) Optional requested client metric columns. All columns selected if not set."
          },
          "timezone": {
            "type": "string",
            "title": "timezone",
            "maxLength": 255,
            "minLength": 1,
            "description": "Timezone to offset in reports, as an IANA Time Zone database name (e.g. \"Europe/Prague\")"
          }
        },
        "title": "reports.v1.GeneralOverviewReportRequest",
        "required": [
          "filters",
          "groupingLevels",
          "timezone"
        ],
        "additionalProperties": false,
        "description": "General overview request"
      },
      "reports.v1.GeneralOverviewReportResponse": {
        "type": "object",
        "properties": {
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/reports.v1.GeneralOverviewReportResponse.Row"
            },
            "title": "rows"
          },
          "total": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.GeneralOverviewReportResponse.Total"
              }
            ],
            "title": "total"
          },
          "filledColumns": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/enums.v1.ReportColumn"
            },
            "title": "filled_columns",
            "description": "List of filled columns with real values. The rest are filled with zero values."
          }
        },
        "title": "reports.v1.GeneralOverviewReportResponse",
        "required": [
          "rows",
          "total",
          "filledColumns"
        ],
        "additionalProperties": false,
        "description": "General overview data"
      },
      "reports.v1.GeneralOverviewReportResponse.ConversionDrilldownValues": {
        "type": "object",
        "properties": {
          "conversionTypeId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/google.protobuf.StringValue"
              }
            ],
            "title": "conversion_type_id",
            "description": "(OPTIONAL) "
          },
          "conversionStatus": {
            "allOf": [
              {
                "$ref": "#/components/schemas/conversions.v1.ConversionStatus"
              }
            ],
            "title": "conversion_status",
            "description": "(OPTIONAL) "
          },
          "conversionCount": {
            "type": "string",
            "title": "conversion_count",
            "format": "int64",
            "description": "Number of conversions"
          },
          "totalConversionAmount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "total_conversion_amount",
            "description": "Total conversion amount"
          },
          "totalRevenue": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "total_revenue",
            "description": "Total revenue"
          },
          "totalCost": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "total_cost",
            "description": "Total payout to affiliates"
          },
          "profit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "profit",
            "description": "Total profit"
          },
          "advertiserProfit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "advertiser_profit",
            "description": "Total advertiser profit"
          },
          "averageConversionAmount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "average_conversion_amount",
            "description": "Average conversion amount"
          },
          "averageRevenue": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "average_revenue",
            "description": "Average revenue"
          },
          "averageCost": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "average_cost",
            "description": "Average payout to affiliates"
          },
          "averageClickConversionAmount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "average_click_conversion_amount",
            "description": "Average conversion amount of click conversions"
          },
          "averageClickRevenue": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "average_click_revenue",
            "description": "Average revenue of click conversions"
          },
          "averageClickCost": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "average_click_cost",
            "description": "Average payout to affiliates of click conversions"
          }
        },
        "title": "reports.v1.GeneralOverviewReportResponse.ConversionDrilldownValues",
        "required": [
          "conversionCount",
          "totalConversionAmount",
          "totalRevenue",
          "totalCost",
          "profit",
          "advertiserProfit",
          "averageConversionAmount",
          "averageRevenue",
          "averageCost",
          "averageClickConversionAmount",
          "averageClickRevenue",
          "averageClickCost"
        ],
        "additionalProperties": false
      },
      "reports.v1.GeneralOverviewReportResponse.Row": {
        "type": "object",
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "account": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/reports.v1.Account"
                  }
                ],
                "title": "account"
              }
            },
            "title": "account"
          },
          {
            "type": "object",
            "properties": {
              "advS1": {
                "type": "string",
                "title": "adv_s1"
              }
            },
            "title": "adv_s1"
          },
          {
            "type": "object",
            "properties": {
              "advS2": {
                "type": "string",
                "title": "adv_s2"
              }
            },
            "title": "adv_s2"
          },
          {
            "type": "object",
            "properties": {
              "advS3": {
                "type": "string",
                "title": "adv_s3"
              }
            },
            "title": "adv_s3"
          },
          {
            "type": "object",
            "properties": {
              "advS4": {
                "type": "string",
                "title": "adv_s4"
              }
            },
            "title": "adv_s4"
          },
          {
            "type": "object",
            "properties": {
              "advS5": {
                "type": "string",
                "title": "adv_s5"
              }
            },
            "title": "adv_s5"
          },
          {
            "type": "object",
            "properties": {
              "affS1": {
                "type": "string",
                "title": "aff_s1"
              }
            },
            "title": "aff_s1"
          },
          {
            "type": "object",
            "properties": {
              "affS2": {
                "type": "string",
                "title": "aff_s2"
              }
            },
            "title": "aff_s2"
          },
          {
            "type": "object",
            "properties": {
              "affS3": {
                "type": "string",
                "title": "aff_s3"
              }
            },
            "title": "aff_s3"
          },
          {
            "type": "object",
            "properties": {
              "affS4": {
                "type": "string",
                "title": "aff_s4"
              }
            },
            "title": "aff_s4"
          },
          {
            "type": "object",
            "properties": {
              "affS5": {
                "type": "string",
                "title": "aff_s5"
              }
            },
            "title": "aff_s5"
          },
          {
            "type": "object",
            "properties": {
              "affiliateManagerAccount": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/reports.v1.Account"
                  }
                ],
                "title": "affiliate_manager_account"
              }
            },
            "title": "affiliate_manager_account"
          },
          {
            "type": "object",
            "properties": {
              "category": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/reports.v1.Category"
                  }
                ],
                "title": "category"
              }
            },
            "title": "category"
          },
          {
            "type": "object",
            "properties": {
              "countryCode": {
                "type": "string",
                "title": "country_code"
              }
            },
            "title": "country_code"
          },
          {
            "type": "object",
            "properties": {
              "coupon": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/reports.v1.Coupon"
                  }
                ],
                "title": "coupon"
              }
            },
            "title": "coupon"
          },
          {
            "type": "object",
            "properties": {
              "day": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/google.protobuf.Timestamp"
                  }
                ],
                "title": "day"
              }
            },
            "title": "day"
          },
          {
            "type": "object",
            "properties": {
              "device": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/enums.v1.Device"
                  }
                ],
                "title": "device"
              }
            },
            "title": "device"
          },
          {
            "type": "object",
            "properties": {
              "hour": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/google.protobuf.Timestamp"
                  }
                ],
                "title": "hour"
              }
            },
            "title": "hour"
          },
          {
            "type": "object",
            "properties": {
              "landingPage": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/reports.v1.LandingPage"
                  }
                ],
                "title": "landing_page"
              }
            },
            "title": "landing_page"
          },
          {
            "type": "object",
            "properties": {
              "month": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/google.protobuf.Timestamp"
                  }
                ],
                "title": "month"
              }
            },
            "title": "month"
          },
          {
            "type": "object",
            "properties": {
              "offer": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/reports.v1.Offer"
                  }
                ],
                "title": "offer"
              }
            },
            "title": "offer"
          },
          {
            "type": "object",
            "properties": {
              "operatingSystem": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/enums.v1.OperatingSystem"
                  }
                ],
                "title": "operating_system"
              }
            },
            "title": "operating_system"
          },
          {
            "type": "object",
            "properties": {
              "revenueOrigin": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/reports.v1.RevenueOrigin"
                  }
                ],
                "title": "revenue_origin"
              }
            },
            "title": "revenue_origin"
          },
          {
            "type": "object",
            "properties": {
              "smartLink": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/reports.v1.SmartLink"
                  }
                ],
                "title": "smart_link"
              }
            },
            "title": "smart_link"
          },
          {
            "type": "object",
            "properties": {
              "source": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/reports.v1.Source"
                  }
                ],
                "title": "source"
              }
            },
            "title": "source"
          },
          {
            "type": "object",
            "properties": {
              "tier": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/reports.v1.Tier"
                  }
                ],
                "title": "tier"
              }
            },
            "title": "tier"
          },
          {
            "type": "object",
            "properties": {
              "week": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/google.protobuf.Timestamp"
                  }
                ],
                "title": "week"
              }
            },
            "title": "week"
          },
          {
            "type": "object",
            "properties": {
              "year": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/google.protobuf.Timestamp"
                  }
                ],
                "title": "year"
              }
            },
            "title": "year"
          }
        ],
        "unevaluatedProperties": false,
        "not": {
          "allOf": [
            {
              "anyOf": [
                {
                  "required": [
                    "account"
                  ]
                },
                {
                  "required": [
                    "advS1"
                  ]
                },
                {
                  "required": [
                    "advS2"
                  ]
                },
                {
                  "required": [
                    "advS3"
                  ]
                },
                {
                  "required": [
                    "advS4"
                  ]
                },
                {
                  "required": [
                    "advS5"
                  ]
                },
                {
                  "required": [
                    "affS1"
                  ]
                },
                {
                  "required": [
                    "affS2"
                  ]
                },
                {
                  "required": [
                    "affS3"
                  ]
                },
                {
                  "required": [
                    "affS4"
                  ]
                },
                {
                  "required": [
                    "affS5"
                  ]
                },
                {
                  "required": [
                    "affiliateManagerAccount"
                  ]
                },
                {
                  "required": [
                    "category"
                  ]
                },
                {
                  "required": [
                    "countryCode"
                  ]
                },
                {
                  "required": [
                    "coupon"
                  ]
                },
                {
                  "required": [
                    "day"
                  ]
                },
                {
                  "required": [
                    "device"
                  ]
                },
                {
                  "required": [
                    "hour"
                  ]
                },
                {
                  "required": [
                    "landingPage"
                  ]
                },
                {
                  "required": [
                    "month"
                  ]
                },
                {
                  "required": [
                    "offer"
                  ]
                },
                {
                  "required": [
                    "operatingSystem"
                  ]
                },
                {
                  "required": [
                    "revenueOrigin"
                  ]
                },
                {
                  "required": [
                    "smartLink"
                  ]
                },
                {
                  "required": [
                    "source"
                  ]
                },
                {
                  "required": [
                    "tier"
                  ]
                },
                {
                  "required": [
                    "week"
                  ]
                },
                {
                  "required": [
                    "year"
                  ]
                }
              ]
            },
            {
              "not": {
                "oneOf": [
                  {
                    "required": [
                      "account"
                    ]
                  },
                  {
                    "required": [
                      "advS1"
                    ]
                  },
                  {
                    "required": [
                      "advS2"
                    ]
                  },
                  {
                    "required": [
                      "advS3"
                    ]
                  },
                  {
                    "required": [
                      "advS4"
                    ]
                  },
                  {
                    "required": [
                      "advS5"
                    ]
                  },
                  {
                    "required": [
                      "affS1"
                    ]
                  },
                  {
                    "required": [
                      "affS2"
                    ]
                  },
                  {
                    "required": [
                      "affS3"
                    ]
                  },
                  {
                    "required": [
                      "affS4"
                    ]
                  },
                  {
                    "required": [
                      "affS5"
                    ]
                  },
                  {
                    "required": [
                      "affiliateManagerAccount"
                    ]
                  },
                  {
                    "required": [
                      "category"
                    ]
                  },
                  {
                    "required": [
                      "countryCode"
                    ]
                  },
                  {
                    "required": [
                      "coupon"
                    ]
                  },
                  {
                    "required": [
                      "day"
                    ]
                  },
                  {
                    "required": [
                      "device"
                    ]
                  },
                  {
                    "required": [
                      "hour"
                    ]
                  },
                  {
                    "required": [
                      "landingPage"
                    ]
                  },
                  {
                    "required": [
                      "month"
                    ]
                  },
                  {
                    "required": [
                      "offer"
                    ]
                  },
                  {
                    "required": [
                      "operatingSystem"
                    ]
                  },
                  {
                    "required": [
                      "revenueOrigin"
                    ]
                  },
                  {
                    "required": [
                      "smartLink"
                    ]
                  },
                  {
                    "required": [
                      "source"
                    ]
                  },
                  {
                    "required": [
                      "tier"
                    ]
                  },
                  {
                    "required": [
                      "week"
                    ]
                  },
                  {
                    "required": [
                      "year"
                    ]
                  }
                ]
              }
            }
          ]
        },
        "properties": {
          "values": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.OverviewReportValues"
              }
            ],
            "title": "values"
          },
          "conversionDrilldownValues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/reports.v1.GeneralOverviewReportResponse.ConversionDrilldownValues"
            },
            "title": "conversion_drilldown_values",
            "description": "(OPTIONAL) "
          }
        },
        "title": "reports.v1.GeneralOverviewReportResponse.Row",
        "required": [
          "values"
        ]
      },
      "reports.v1.GeneralOverviewReportResponse.Total": {
        "type": "object",
        "properties": {
          "values": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.OverviewReportValues"
              }
            ],
            "title": "values"
          },
          "conversionDrilldownValues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/reports.v1.GeneralOverviewReportResponse.ConversionDrilldownValues"
            },
            "title": "conversion_drilldown_values",
            "description": "(OPTIONAL) "
          }
        },
        "title": "reports.v1.GeneralOverviewReportResponse.Total",
        "required": [
          "values"
        ],
        "additionalProperties": false
      },
      "reports.v1.LandingPage": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Internal ID"
          },
          "name": {
            "type": "string",
            "title": "name",
            "description": "Landing page name"
          },
          "url": {
            "type": "string",
            "title": "url",
            "description": "Landing page URL"
          }
        },
        "title": "reports.v1.LandingPage",
        "required": [
          "id",
          "name",
          "url"
        ],
        "additionalProperties": false,
        "description": "Landing page"
      },
      "reports.v1.Offer": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Offer ID"
          },
          "name": {
            "type": "string",
            "title": "name",
            "description": "Offer name"
          }
        },
        "title": "reports.v1.Offer",
        "required": [
          "id",
          "name"
        ],
        "additionalProperties": false,
        "description": "Offer"
      },
      "reports.v1.OfferOverviewReportRequest": {
        "type": "object",
        "properties": {
          "timeRange": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.TimeRange"
              }
            ],
            "title": "time_range",
            "description": "Time range"
          },
          "conversionTypeIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "title": "conversion_type_ids",
            "uniqueItems": true,
            "description": "Conversion types"
          },
          "conversionStatuses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/conversions.v1.ConversionStatus"
            },
            "title": "conversion_statuses",
            "uniqueItems": true,
            "description": "Conversion statuses"
          },
          "sourceIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "title": "source_ids",
            "description": "Traffic source IDs"
          },
          "columns": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.ReportColumns"
              }
            ],
            "title": "columns",
            "description": "(OPTIONAL) Optional requested report columns. All columns selected if not set."
          }
        },
        "title": "reports.v1.OfferOverviewReportRequest",
        "required": [
          "timeRange"
        ],
        "additionalProperties": false,
        "description": "Offer report request"
      },
      "reports.v1.OfferOverviewReportResponse": {
        "type": "object",
        "properties": {
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/reports.v1.OfferOverviewReportResponse.Row"
            },
            "title": "rows"
          },
          "total": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.OverviewReportTotal"
              }
            ],
            "title": "total"
          },
          "filledColumns": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/enums.v1.ReportColumn"
            },
            "title": "filled_columns",
            "description": "List of filled columns with real values. The rest are filled with zero values."
          }
        },
        "title": "reports.v1.OfferOverviewReportResponse",
        "required": [
          "filledColumns"
        ],
        "additionalProperties": false,
        "description": "Offer report data"
      },
      "reports.v1.OfferOverviewReportResponse.Row": {
        "type": "object",
        "properties": {
          "offer": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.Offer"
              }
            ],
            "title": "offer",
            "description": "Offer"
          },
          "clickCount": {
            "type": "string",
            "title": "click_count",
            "format": "int64",
            "description": "Number of clicks"
          },
          "grossClickCount": {
            "type": "string",
            "title": "gross_click_count",
            "format": "int64",
            "description": "Gross number of clicks"
          },
          "couponCount": {
            "type": "string",
            "title": "coupon_count",
            "format": "int64",
            "description": "Number of coupon uses"
          },
          "conversionCount": {
            "type": "string",
            "title": "conversion_count",
            "format": "int64",
            "description": "Number of conversions"
          },
          "commissionCount": {
            "type": "string",
            "title": "commission_count",
            "format": "int64",
            "description": "Number of MLM commissions"
          },
          "totalConversionAmount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "total_conversion_amount",
            "description": "Total conversion amount"
          },
          "totalRevenue": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "total_revenue",
            "description": "Total revenue"
          },
          "totalCost": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "total_cost",
            "description": "Total payout to affiliates"
          },
          "totalCommissionAmount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "total_commission_amount",
            "description": "Total payout of MLM commissions"
          },
          "profit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "profit",
            "description": "Total profit"
          },
          "advertiserProfit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "advertiser_profit",
            "description": "Total advertiser profit"
          },
          "conversionPerClickRate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "conversion_per_click_rate",
            "description": "Conversion per click ratio"
          },
          "averageConversionAmount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "average_conversion_amount",
            "description": "Average conversion amount"
          },
          "averageRevenue": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "average_revenue",
            "description": "Average revenue"
          },
          "averageCost": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "average_cost",
            "description": "Average payout to affiliate"
          },
          "conversionAmountPerClick": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "conversion_amount_per_click",
            "description": "Average conversion amount per click"
          },
          "revenuePerClick": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "revenue_per_click",
            "description": "Average revenue per click"
          },
          "costPerClick": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "cost_per_click",
            "description": "Average affiliate payout per click"
          },
          "averageCommissionAmount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "average_commission_amount",
            "description": "Average MLM commission payout per click"
          }
        },
        "title": "reports.v1.OfferOverviewReportResponse.Row",
        "additionalProperties": false
      },
      "reports.v1.OverviewReportTotal": {
        "type": "object",
        "properties": {
          "clickCount": {
            "type": "string",
            "title": "click_count",
            "format": "int64",
            "description": "Number of clicks"
          },
          "grossClickCount": {
            "type": "string",
            "title": "gross_click_count",
            "format": "int64",
            "description": "Gross number of clicks"
          },
          "couponCount": {
            "type": "string",
            "title": "coupon_count",
            "format": "int64",
            "description": "Number of coupon uses"
          },
          "conversionCount": {
            "type": "string",
            "title": "conversion_count",
            "format": "int64",
            "description": "Number of conversions"
          },
          "commissionCount": {
            "type": "string",
            "title": "commission_count",
            "format": "int64",
            "description": "Number of MLM commissions"
          },
          "totalConversionAmount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "total_conversion_amount",
            "description": "Total conversion amount"
          },
          "totalRevenue": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "total_revenue",
            "description": "Total revenue"
          },
          "totalCost": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "total_cost",
            "description": "Total payout to affiliates"
          },
          "totalCommissionAmount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "total_commission_amount",
            "description": "Total payout of MLM commissions"
          },
          "profit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "profit",
            "description": "Total profit"
          },
          "advertiserProfit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "advertiser_profit",
            "description": "Total advertiser profit"
          },
          "conversionPerClickRate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "conversion_per_click_rate",
            "description": "Conversion per click ratio"
          },
          "averageConversionAmount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "average_conversion_amount",
            "description": "Average conversion amount"
          },
          "averageRevenue": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "average_revenue",
            "description": "Average revenue"
          },
          "averageCost": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "average_cost",
            "description": "Average payout to affiliates"
          },
          "conversionAmountPerClick": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "conversion_amount_per_click",
            "description": "Average conversion amount per click"
          },
          "revenuePerClick": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "revenue_per_click",
            "description": "Average revenue per click"
          },
          "costPerClick": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "cost_per_click",
            "description": "Average payout to affiliates per click"
          },
          "averageCommissionAmount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "average_commission_amount",
            "description": "Average MLM commission amount paid"
          }
        },
        "title": "reports.v1.OverviewReportTotal",
        "additionalProperties": false,
        "description": "Overview report total"
      },
      "reports.v1.OverviewReportValues": {
        "type": "object",
        "properties": {
          "clickCount": {
            "type": "string",
            "title": "click_count",
            "format": "int64",
            "description": "Number of clicks"
          },
          "grossClickCount": {
            "type": "string",
            "title": "gross_click_count",
            "format": "int64",
            "description": "Gross number of clicks"
          },
          "couponCount": {
            "type": "string",
            "title": "coupon_count",
            "format": "int64",
            "description": "Number of coupon uses"
          },
          "conversionCount": {
            "type": "string",
            "title": "conversion_count",
            "format": "int64",
            "description": "Number of conversions"
          },
          "commissionCount": {
            "type": "string",
            "title": "commission_count",
            "format": "int64",
            "description": "Number of MLM commissions"
          },
          "totalConversionAmount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "total_conversion_amount",
            "description": "Total conversion amount"
          },
          "totalRevenue": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "total_revenue",
            "description": "Total revenue"
          },
          "totalCost": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "total_cost",
            "description": "Total payout to affiliates"
          },
          "totalCommissionAmount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "total_commission_amount",
            "description": "Total payout of MLM commissions"
          },
          "profit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "profit",
            "description": "Total profit"
          },
          "advertiserProfit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "advertiser_profit",
            "description": "Total advertiser profit"
          },
          "conversionPerClickRate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "conversion_per_click_rate",
            "description": "Conversion per click ratio"
          },
          "averageConversionAmount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "average_conversion_amount",
            "description": "Average conversion amount"
          },
          "averageRevenue": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "average_revenue",
            "description": "Average revenue"
          },
          "averageCost": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "average_cost",
            "description": "Average payout to affiliates"
          },
          "conversionAmountPerClick": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "conversion_amount_per_click",
            "description": "Average conversion amount per click"
          },
          "revenuePerClick": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "revenue_per_click",
            "description": "Average revenue per click"
          },
          "costPerClick": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "cost_per_click",
            "description": "Average payout to affiliates per click"
          },
          "averageCommissionAmount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "average_commission_amount",
            "description": "Average MLM commission amount paid"
          },
          "clickFraudRate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "click_fraud_rate",
            "description": "Click fraud rate (percentage of clicks marked as suspicious)"
          },
          "conversionFraudRate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Decimal"
              }
            ],
            "title": "conversion_fraud_rate",
            "description": "Conversion fraud rate (percentage of conversions flagged as suspicious)"
          },
          "clientMetrics": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.ClientMetrics"
              }
            ],
            "title": "client_metrics",
            "description": "(OPTIONAL) Client metrics"
          },
          "customColumns": {
            "allOf": [
              {
                "$ref": "#/components/schemas/reports.v1.CustomColumns"
              }
            ],
            "title": "custom_columns",
            "description": "(OPTIONAL) Custom columns"
          }
        },
        "title": "reports.v1.OverviewReportValues",
        "required": [
          "clickCount",
          "grossClickCount",
          "couponCount",
          "conversionCount",
          "commissionCount",
          "totalConversionAmount",
          "totalRevenue",
          "totalCost",
          "totalCommissionAmount",
          "profit",
          "advertiserProfit",
          "conversionPerClickRate",
          "averageConversionAmount",
          "averageRevenue",
          "averageCost",
          "conversionAmountPerClick",
          "revenuePerClick",
          "costPerClick",
          "averageCommissionAmount",
          "clickFraudRate",
          "conversionFraudRate"
        ],
        "additionalProperties": false,
        "description": "Overview report values"
      },
      "reports.v1.ReportColumns": {
        "type": "object",
        "properties": {
          "columns": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/enums.v1.ReportColumn"
            },
            "title": "columns",
            "minItems": 1,
            "uniqueItems": true
          }
        },
        "title": "reports.v1.ReportColumns",
        "required": [
          "columns"
        ],
        "additionalProperties": false,
        "description": "Requested report columns"
      },
      "reports.v1.ReportCustomColumns": {
        "type": "object",
        "properties": {
          "codes": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 50,
              "minLength": 1
            },
            "title": "codes",
            "uniqueItems": true
          }
        },
        "title": "reports.v1.ReportCustomColumns",
        "required": [
          "codes"
        ],
        "additionalProperties": false,
        "description": "Requested report columns"
      },
      "reports.v1.RevenueOrigin": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Advertiser ID"
          },
          "name": {
            "type": "string",
            "title": "name",
            "description": "Advertiser name"
          }
        },
        "title": "reports.v1.RevenueOrigin",
        "required": [
          "id",
          "name"
        ],
        "additionalProperties": false,
        "description": "Advertiser"
      },
      "reports.v1.SmartLink": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Smart link ID"
          },
          "name": {
            "type": "string",
            "title": "name",
            "description": "Smart link name"
          }
        },
        "title": "reports.v1.SmartLink",
        "required": [
          "id",
          "name"
        ],
        "additionalProperties": false,
        "description": "Smart link"
      },
      "reports.v1.Source": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Source ID"
          },
          "publicId": {
            "type": "string",
            "title": "public_id",
            "description": "Affiliate public ID"
          }
        },
        "title": "reports.v1.Source",
        "required": [
          "id",
          "publicId"
        ],
        "additionalProperties": false,
        "description": "Source"
      },
      "reports.v1.Tier": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "id",
            "description": "Tier ID"
          },
          "name": {
            "type": "string",
            "title": "name",
            "description": "Tier name"
          }
        },
        "title": "reports.v1.Tier",
        "required": [
          "id",
          "name"
        ],
        "additionalProperties": false,
        "description": "Tier"
      },
      "types.v1.Anura": {
        "type": "object",
        "properties": {
          "anuraScore": {
            "allOf": [
              {
                "$ref": "#/components/schemas/enums.v1.AnuraScore"
              }
            ],
            "title": "anura_score"
          },
          "result": {
            "allOf": [
              {
                "$ref": "#/components/schemas/types.v1.Anura.Result"
              }
            ],
            "title": "result"
          }
        },
        "title": "types.v1.Anura",
        "additionalProperties": false
      },
      "types.v1.Anura.Result": {
        "type": "object",
        "properties": {
          "result": {
            "type": "string",
            "title": "result"
          },
          "mobile": {
            "type": "integer",
            "title": "mobile",
            "format": "int32"
          },
          "adblocker": {
            "type": "integer",
            "title": "adblocker",
            "format": "int32"
          },
          "ruleSets": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "title": "rule_sets"
          }
        },
        "title": "types.v1.Anura.Result",
        "additionalProperties": false
      },
      "storage.Creative": {
        "properties": {
          "content": {
            "description": "Reference to the creative's stored content. For file-based creatives this is the path of the uploaded file.",
            "type": "string"
          },
          "createdAt": {
            "description": "Timestamp when the creative was created (UTC), in RFC 3339 format.",
            "type": "string"
          },
          "id": {
            "description": "Unique identifier of the creative (UUID).",
            "type": "string"
          },
          "meta": {
            "$ref": "#/components/schemas/storage.CreativeMeta",
            "description": "Image and file metadata for the creative."
          },
          "name": {
            "description": "Human-readable name of the creative. Omitted when not set.",
            "type": "string"
          },
          "note": {
            "description": "Internal note for the creative, not shown to affiliates. Omitted when not set.",
            "type": "string"
          },
          "type": {
            "description": "Type of the creative (for example CREATIVE_TYPE_IMAGE_BANNER).",
            "type": "string"
          },
          "visibleInGetLink": {
            "description": "Whether the creative is exposed in the affiliate \"Get link\" interface.",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "storage.CreativeMeta": {
        "properties": {
          "height": {
            "description": "Height in pixels. Omitted when not applicable.",
            "type": "integer"
          },
          "size": {
            "description": "File size in bytes.",
            "type": "integer"
          },
          "width": {
            "description": "Width in pixels. Omitted when not applicable.",
            "type": "integer"
          }
        },
        "type": "object"
      },
      "storage.UploadOfferCreativeResponse": {
        "properties": {
          "creative": {
            "$ref": "#/components/schemas/storage.Creative",
            "description": "The creative that was created (or replaced) and attached to the offer."
          }
        },
        "type": "object"
      },
      "errorsv1.Error": {
        "properties": {
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "errorsv1.ErrorResponse": {
        "properties": {
          "available_code": {
            "$ref": "#/components/schemas/errorsv1.ErrorResponse_Code"
          },
          "errors": {
            "items": {
              "$ref": "#/components/schemas/errorsv1.Error"
            },
            "type": "array",
            "uniqueItems": false
          }
        },
        "type": "object"
      },
      "errorsv1.ErrorResponse_Code": {
        "type": "object"
      },
      "oauth_registration.errorResponse": {
        "properties": {
          "error": {
            "type": "string"
          },
          "error_description": {
            "type": "string"
          }
        },
        "required": [
          "error"
        ],
        "type": "object"
      },
      "oauth_registration.registrationRequest": {
        "properties": {
          "client_name": {
            "description": "Shown to the resource owner on the consent screen. Without one, the screen calls the client unnamed.",
            "type": "string"
          },
          "grant_types": {
            "description": "Optional. Asking for any other grant is refused.",
            "items": {
              "enum": [
                "authorization_code",
                "refresh_token"
              ],
              "type": "string"
            },
            "type": "array",
            "uniqueItems": false
          },
          "redirect_uris": {
            "description": "At least one is required. HTTPS only, except loopback hosts, which may use HTTP. Credentials and fragments are rejected. The\nauthorization request must repeat one of these exactly, except that a loopback redirect may arrive on any port.",
            "items": {
              "format": "uri",
              "type": "string"
            },
            "maxItems": 10,
            "minItems": 1,
            "type": "array",
            "uniqueItems": false
          },
          "response_types": {
            "description": "Optional. Asking for any other response type is refused.",
            "items": {
              "enum": [
                "code"
              ],
              "type": "string"
            },
            "type": "array",
            "uniqueItems": false
          },
          "scope": {
            "description": "Optional. The only scope on offer is api.",
            "type": "string"
          },
          "token_endpoint_auth_method": {
            "description": "Optional. Any method the token endpoint accepts may be asked for, but the client is registered with none: it holds no secret and proves\npossession through PKCE. Asking for any other method is refused.",
            "enum": [
              "client_secret_basic",
              "client_secret_post",
              "none"
            ],
            "type": "string"
          }
        },
        "required": [
          "redirect_uris"
        ],
        "type": "object"
      },
      "oauth_registration.registrationResponse": {
        "properties": {
          "client_id": {
            "type": "string"
          },
          "client_id_issued_at": {
            "description": "Registration time as seconds since the Unix epoch.",
            "format": "int64",
            "type": "integer"
          },
          "client_name": {
            "type": "string"
          },
          "grant_types": {
            "items": {
              "enum": [
                "authorization_code",
                "refresh_token"
              ],
              "type": "string"
            },
            "type": "array",
            "uniqueItems": false
          },
          "redirect_uris": {
            "items": {
              "format": "uri",
              "type": "string"
            },
            "type": "array",
            "uniqueItems": false
          },
          "response_types": {
            "items": {
              "enum": [
                "code"
              ],
              "type": "string"
            },
            "type": "array",
            "uniqueItems": false
          },
          "scope": {
            "enum": [
              "api"
            ],
            "type": "string"
          },
          "token_endpoint_auth_method": {
            "enum": [
              "none"
            ],
            "type": "string"
          }
        },
        "required": [
          "client_id",
          "client_id_issued_at",
          "grant_types",
          "redirect_uris",
          "response_types",
          "scope",
          "token_endpoint_auth_method"
        ],
        "type": "object"
      },
      "oauth_token.errorResponse": {
        "properties": {
          "error": {
            "type": "string"
          }
        },
        "required": [
          "error"
        ],
        "type": "object"
      },
      "oauth_token.tokenResponse": {
        "properties": {
          "access_token": {
            "type": "string"
          },
          "expires_in": {
            "description": "Token lifetime in seconds.",
            "format": "int32",
            "type": "integer"
          },
          "refresh_token": {
            "description": "Returned for authorization_code and refresh_token grants.",
            "type": "string"
          },
          "scope": {
            "enum": [
              "api"
            ],
            "type": "string"
          },
          "token_type": {
            "enum": [
              "Bearer"
            ],
            "type": "string"
          }
        },
        "required": [
          "access_token",
          "expires_in",
          "scope",
          "token_type"
        ],
        "type": "object"
      }
    }
  }
}
