{
  "openapi": "3.1.0",
  "info": {
    "description": "Manage a Modem workspace: projects, products, customers, provider accounts, keys and backups.",
    "version": "1.0.0",
    "title": "Preternatural Admin API"
  },
  "paths": {
    "/api/authorize/token": {
      "post": {
        "summary": "Exchange an authorization code for an API key",
        "operationId": "exchangeAuthorizationCode",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "enum": [
                        "admin_api_key"
                      ]
                    },
                    "api": {
                      "type": "object",
                      "properties": {
                        "links": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {
                            "type": "object",
                            "properties": {
                              "href": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "href"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "redactions": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "path": {
                                "type": "string"
                              },
                              "reason": {
                                "type": "string",
                                "enum": [
                                  "secret",
                                  "internal"
                                ]
                              }
                            },
                            "required": [
                              "path",
                              "reason"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "name": {
                      "type": "string"
                    },
                    "secretPreview": {
                      "type": "string"
                    },
                    "permissions": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "modes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "projects": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "all"
                          ]
                        },
                        {
                          "minItems": 1,
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                          }
                        }
                      ]
                    },
                    "expiresAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "lastUsedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "rotatedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "previousSecretExpiresAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "client": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "enum": [
                                "modem-cli"
                              ]
                            },
                            "device": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "device"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "owner": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "email": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "email",
                        "name"
                      ],
                      "additionalProperties": false
                    },
                    "secret": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "object",
                    "id",
                    "name",
                    "secretPreview",
                    "permissions",
                    "modes",
                    "projects",
                    "expiresAt",
                    "lastUsedAt",
                    "rotatedAt",
                    "previousSecretExpiresAt",
                    "client",
                    "createdAt",
                    "owner",
                    "secret"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "code_verifier": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9._~-]{43,128}$"
                  },
                  "redirect_uri": {
                    "type": "string"
                  }
                },
                "required": [
                  "code",
                  "code_verifier",
                  "redirect_uri"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      }
    },
    "/api/admin/api-keys/current": {
      "get": {
        "summary": "Describe the API key making the request",
        "operationId": "retrieveCurrentApiKey",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "enum": [
                        "admin_api_key"
                      ]
                    },
                    "api": {
                      "type": "object",
                      "properties": {
                        "links": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {
                            "type": "object",
                            "properties": {
                              "href": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "href"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "redactions": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "path": {
                                "type": "string"
                              },
                              "reason": {
                                "type": "string",
                                "enum": [
                                  "secret",
                                  "internal"
                                ]
                              }
                            },
                            "required": [
                              "path",
                              "reason"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "name": {
                      "type": "string"
                    },
                    "secretPreview": {
                      "type": "string"
                    },
                    "permissions": {
                      "minItems": 1,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "full",
                          "read",
                          "projects:read",
                          "projects:write",
                          "products:read",
                          "products:write",
                          "accounts:read",
                          "accounts:write",
                          "customers:read",
                          "customers:write",
                          "logs:read",
                          "backups:read",
                          "backups:write",
                          "secrets-integrations:read",
                          "secrets-integrations:write",
                          "subscription-sign-ins:read",
                          "subscription-sign-ins:write",
                          "starred-items:read",
                          "starred-items:write",
                          "api-keys:read",
                          "api-keys:write"
                        ]
                      }
                    },
                    "modes": {
                      "minItems": 1,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "live",
                          "sandbox"
                        ]
                      }
                    },
                    "projects": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "all"
                          ]
                        },
                        {
                          "minItems": 1,
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                          }
                        }
                      ]
                    },
                    "expiresAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "lastUsedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "rotatedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "previousSecretExpiresAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "client": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "enum": [
                                "modem-cli"
                              ]
                            },
                            "device": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "device"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "owner": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "email": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "email",
                        "name"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "object",
                    "id",
                    "name",
                    "secretPreview",
                    "permissions",
                    "modes",
                    "projects",
                    "expiresAt",
                    "lastUsedAt",
                    "rotatedAt",
                    "previousSecretExpiresAt",
                    "client",
                    "createdAt",
                    "owner"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "delete": {
        "summary": "Revoke the API key making the request",
        "operationId": "revokeCurrentApiKey",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "success"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/admin/api-keys/current/rotate": {
      "post": {
        "summary": "Give the API key making the request a new secret",
        "operationId": "rotateCurrentApiKey",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "enum": [
                        "admin_api_key"
                      ]
                    },
                    "api": {
                      "type": "object",
                      "properties": {
                        "links": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {
                            "type": "object",
                            "properties": {
                              "href": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "href"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "redactions": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "path": {
                                "type": "string"
                              },
                              "reason": {
                                "type": "string",
                                "enum": [
                                  "secret",
                                  "internal"
                                ]
                              }
                            },
                            "required": [
                              "path",
                              "reason"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "name": {
                      "type": "string"
                    },
                    "secretPreview": {
                      "type": "string"
                    },
                    "permissions": {
                      "minItems": 1,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "full",
                          "read",
                          "projects:read",
                          "projects:write",
                          "products:read",
                          "products:write",
                          "accounts:read",
                          "accounts:write",
                          "customers:read",
                          "customers:write",
                          "logs:read",
                          "backups:read",
                          "backups:write",
                          "secrets-integrations:read",
                          "secrets-integrations:write",
                          "subscription-sign-ins:read",
                          "subscription-sign-ins:write",
                          "starred-items:read",
                          "starred-items:write",
                          "api-keys:read",
                          "api-keys:write"
                        ]
                      }
                    },
                    "modes": {
                      "minItems": 1,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "live",
                          "sandbox"
                        ]
                      }
                    },
                    "projects": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "all"
                          ]
                        },
                        {
                          "minItems": 1,
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                          }
                        }
                      ]
                    },
                    "expiresAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "lastUsedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "rotatedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "previousSecretExpiresAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "client": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "enum": [
                                "modem-cli"
                              ]
                            },
                            "device": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "device"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "secret": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "object",
                    "id",
                    "name",
                    "secretPreview",
                    "permissions",
                    "modes",
                    "projects",
                    "expiresAt",
                    "lastUsedAt",
                    "rotatedAt",
                    "previousSecretExpiresAt",
                    "client",
                    "createdAt",
                    "secret"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "previousSecretExpiresIn": {
                    "default": "now",
                    "type": "string",
                    "enum": [
                      "now",
                      "1h",
                      "24h",
                      "7d"
                    ]
                  }
                },
                "required": [
                  "previousSecretExpiresIn"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/admin/api-keys": {
      "get": {
        "summary": "List API keys",
        "operationId": "listApiKeys",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "startingAfter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "enum": [
                        "list"
                      ]
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "object": {
                            "type": "string",
                            "enum": [
                              "admin_api_key"
                            ]
                          },
                          "api": {
                            "type": "object",
                            "properties": {
                              "links": {
                                "type": "object",
                                "propertyNames": {
                                  "type": "string"
                                },
                                "additionalProperties": {
                                  "type": "object",
                                  "properties": {
                                    "href": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "href"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "redactions": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "path": {
                                      "type": "string"
                                    },
                                    "reason": {
                                      "type": "string",
                                      "enum": [
                                        "secret",
                                        "internal"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "path",
                                    "reason"
                                  ],
                                  "additionalProperties": false
                                }
                              }
                            },
                            "additionalProperties": false
                          },
                          "id": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                          },
                          "name": {
                            "type": "string"
                          },
                          "secretPreview": {
                            "type": "string"
                          },
                          "permissions": {
                            "minItems": 1,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "full",
                                "read",
                                "projects:read",
                                "projects:write",
                                "products:read",
                                "products:write",
                                "accounts:read",
                                "accounts:write",
                                "customers:read",
                                "customers:write",
                                "logs:read",
                                "backups:read",
                                "backups:write",
                                "secrets-integrations:read",
                                "secrets-integrations:write",
                                "subscription-sign-ins:read",
                                "subscription-sign-ins:write",
                                "starred-items:read",
                                "starred-items:write",
                                "api-keys:read",
                                "api-keys:write"
                              ]
                            }
                          },
                          "modes": {
                            "minItems": 1,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "live",
                                "sandbox"
                              ]
                            }
                          },
                          "projects": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "all"
                                ]
                              },
                              {
                                "minItems": 1,
                                "maxItems": 100,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                }
                              }
                            ]
                          },
                          "expiresAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "lastUsedAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "rotatedAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "previousSecretExpiresAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "client": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "enum": [
                                      "modem-cli"
                                    ]
                                  },
                                  "device": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 64
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "id",
                                  "device"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          }
                        },
                        "required": [
                          "object",
                          "id",
                          "name",
                          "secretPreview",
                          "permissions",
                          "modes",
                          "projects",
                          "expiresAt",
                          "lastUsedAt",
                          "rotatedAt",
                          "previousSecretExpiresAt",
                          "client",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "hasMore": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "object",
                    "data",
                    "hasMore"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/admin/api-keys/{apiKeyId}": {
      "get": {
        "summary": "Retrieve an API key",
        "operationId": "retrieveApiKey",
        "parameters": [
          {
            "name": "apiKeyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "enum": [
                        "admin_api_key"
                      ]
                    },
                    "api": {
                      "type": "object",
                      "properties": {
                        "links": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {
                            "type": "object",
                            "properties": {
                              "href": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "href"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "redactions": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "path": {
                                "type": "string"
                              },
                              "reason": {
                                "type": "string",
                                "enum": [
                                  "secret",
                                  "internal"
                                ]
                              }
                            },
                            "required": [
                              "path",
                              "reason"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "name": {
                      "type": "string"
                    },
                    "secretPreview": {
                      "type": "string"
                    },
                    "permissions": {
                      "minItems": 1,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "full",
                          "read",
                          "projects:read",
                          "projects:write",
                          "products:read",
                          "products:write",
                          "accounts:read",
                          "accounts:write",
                          "customers:read",
                          "customers:write",
                          "logs:read",
                          "backups:read",
                          "backups:write",
                          "secrets-integrations:read",
                          "secrets-integrations:write",
                          "subscription-sign-ins:read",
                          "subscription-sign-ins:write",
                          "starred-items:read",
                          "starred-items:write",
                          "api-keys:read",
                          "api-keys:write"
                        ]
                      }
                    },
                    "modes": {
                      "minItems": 1,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "live",
                          "sandbox"
                        ]
                      }
                    },
                    "projects": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "all"
                          ]
                        },
                        {
                          "minItems": 1,
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                          }
                        }
                      ]
                    },
                    "expiresAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "lastUsedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "rotatedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "previousSecretExpiresAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "client": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "enum": [
                                "modem-cli"
                              ]
                            },
                            "device": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 64
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "device"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    }
                  },
                  "required": [
                    "object",
                    "id",
                    "name",
                    "secretPreview",
                    "permissions",
                    "modes",
                    "projects",
                    "expiresAt",
                    "lastUsedAt",
                    "rotatedAt",
                    "previousSecretExpiresAt",
                    "client",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "delete": {
        "summary": "Revoke an API key",
        "operationId": "revokeApiKey",
        "parameters": [
          {
            "name": "apiKeyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "success"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/admin/starred-items": {
      "get": {
        "summary": "List starred items",
        "operationId": "listStarredItems",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^(account|customer|product|project|subscription|subscription-relay|transaction):.+$"
                      }
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "patch": {
        "summary": "Add, move or remove a starred item",
        "operationId": "mutateStarredItems",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^(account|customer|product|project|subscription|subscription-relay|transaction):.+$"
                      }
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "item": {
                        "type": "string",
                        "pattern": "^(account|customer|product|project|subscription|subscription-relay|transaction):.+$"
                      },
                      "operation": {
                        "type": "string",
                        "enum": [
                          "add"
                        ]
                      },
                      "placement": {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "position": {
                                "type": "string",
                                "enum": [
                                  "first",
                                  "last"
                                ]
                              }
                            },
                            "required": [
                              "position"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "position": {
                                "type": "string",
                                "enum": [
                                  "above",
                                  "below"
                                ]
                              },
                              "anchor": {
                                "type": "string",
                                "pattern": "^(account|customer|product|project|subscription|subscription-relay|transaction):.+$"
                              }
                            },
                            "required": [
                              "position",
                              "anchor"
                            ],
                            "additionalProperties": false
                          }
                        ]
                      }
                    },
                    "required": [
                      "item",
                      "operation"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "item": {
                        "type": "string",
                        "pattern": "^(account|customer|product|project|subscription|subscription-relay|transaction):.+$"
                      },
                      "operation": {
                        "type": "string",
                        "enum": [
                          "remove"
                        ]
                      }
                    },
                    "required": [
                      "item",
                      "operation"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "item": {
                        "type": "string",
                        "pattern": "^(account|customer|product|project|subscription|subscription-relay|transaction):.+$"
                      },
                      "operation": {
                        "type": "string",
                        "enum": [
                          "move"
                        ]
                      },
                      "placement": {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "position": {
                                "type": "string",
                                "enum": [
                                  "first",
                                  "last"
                                ]
                              }
                            },
                            "required": [
                              "position"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "position": {
                                "type": "string",
                                "enum": [
                                  "above",
                                  "below"
                                ]
                              },
                              "anchor": {
                                "type": "string",
                                "pattern": "^(account|customer|product|project|subscription|subscription-relay|transaction):.+$"
                              }
                            },
                            "required": [
                              "position",
                              "anchor"
                            ],
                            "additionalProperties": false
                          }
                        ]
                      }
                    },
                    "required": [
                      "item",
                      "operation",
                      "placement"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/admin/projects": {
      "get": {
        "summary": "List projects",
        "operationId": "listProjects",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "createdAt": {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                      },
                      "updatedAt": {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                      },
                      "tombstoned": {
                        "type": "boolean"
                      },
                      "tombstonedAt": {
                        "anyOf": [
                          {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "conflicts": {
                        "type": "object",
                        "properties": {
                          "clientData": {},
                          "serverData": {},
                          "conflictedAt": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "clientData",
                          "serverData",
                          "conflictedAt"
                        ],
                        "additionalProperties": false
                      },
                      "object": {
                        "type": "string",
                        "enum": [
                          "project"
                        ]
                      },
                      "api": {
                        "type": "object",
                        "properties": {
                          "links": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "type": "object",
                              "properties": {
                                "href": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "href"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "redactions": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "path": {
                                  "type": "string"
                                },
                                "reason": {
                                  "type": "string",
                                  "enum": [
                                    "secret",
                                    "internal"
                                  ]
                                }
                              },
                              "required": [
                                "path",
                                "reason"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "additionalProperties": false
                      },
                      "name": {
                        "type": "string",
                        "minLength": 1
                      },
                      "user": {
                        "type": "string"
                      },
                      "metadata": {
                        "type": "object",
                        "properties": {
                          "customServerURL": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uri"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "freeUsersAllowed": {
                            "type": [
                              "boolean",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "freeUsersAllowed"
                        ],
                        "additionalProperties": false
                      },
                      "billingProviders": {
                        "type": "array",
                        "items": {
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "appleAppStore"
                                  ]
                                },
                                "updatedAt": {
                                  "type": "string",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                },
                                "configuration": {
                                  "type": "object",
                                  "properties": {
                                    "appStoreConnect": {
                                      "type": "object",
                                      "properties": {
                                        "issuerId": {
                                          "type": "string"
                                        },
                                        "privateKeyId": {
                                          "type": "string"
                                        },
                                        "credentialSources": {
                                          "type": "object",
                                          "properties": {
                                            "privateKey": {
                                              "type": "object",
                                              "properties": {
                                                "source": {
                                                  "type": "string",
                                                  "enum": [
                                                    "onepassword"
                                                  ]
                                                },
                                                "secretsIntegrationId": {
                                                  "type": "string",
                                                  "minLength": 1
                                                },
                                                "secretReference": {
                                                  "type": "string",
                                                  "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                                },
                                                "secretReferenceLabel": {
                                                  "type": "string",
                                                  "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                                },
                                                "materializedAt": {
                                                  "anyOf": [
                                                    {
                                                      "type": "string",
                                                      "format": "date-time",
                                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                    },
                                                    {
                                                      "type": "null"
                                                    }
                                                  ]
                                                },
                                                "materializationError": {
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ]
                                                }
                                              },
                                              "required": [
                                                "source",
                                                "secretsIntegrationId",
                                                "secretReference",
                                                "secretReferenceLabel",
                                                "materializedAt",
                                                "materializationError"
                                              ],
                                              "additionalProperties": false
                                            },
                                            "sharedSecret": {
                                              "type": "object",
                                              "properties": {
                                                "source": {
                                                  "type": "string",
                                                  "enum": [
                                                    "onepassword"
                                                  ]
                                                },
                                                "secretsIntegrationId": {
                                                  "type": "string",
                                                  "minLength": 1
                                                },
                                                "secretReference": {
                                                  "type": "string",
                                                  "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                                },
                                                "secretReferenceLabel": {
                                                  "type": "string",
                                                  "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                                },
                                                "materializedAt": {
                                                  "anyOf": [
                                                    {
                                                      "type": "string",
                                                      "format": "date-time",
                                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                    },
                                                    {
                                                      "type": "null"
                                                    }
                                                  ]
                                                },
                                                "materializationError": {
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ]
                                                }
                                              },
                                              "required": [
                                                "source",
                                                "secretsIntegrationId",
                                                "secretReference",
                                                "secretReferenceLabel",
                                                "materializedAt",
                                                "materializationError"
                                              ],
                                              "additionalProperties": false
                                            }
                                          },
                                          "additionalProperties": false
                                        },
                                        "privateKey": {
                                          "type": "string",
                                          "enum": [
                                            ""
                                          ]
                                        },
                                        "sharedSecret": {
                                          "type": "string",
                                          "enum": [
                                            ""
                                          ]
                                        }
                                      },
                                      "required": [
                                        "issuerId",
                                        "privateKeyId",
                                        "privateKey",
                                        "sharedSecret"
                                      ],
                                      "additionalProperties": false
                                    },
                                    "fragile_appStoreConnect": {
                                      "type": "object",
                                      "properties": {
                                        "bundleId": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "bundleId"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "required": [
                                    "appStoreConnect",
                                    "fragile_appStoreConnect"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "updatedAt",
                                "configuration"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "stripe"
                                  ]
                                },
                                "updatedAt": {
                                  "type": "string",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                },
                                "configuration": {
                                  "type": "object",
                                  "properties": {
                                    "connect": {
                                      "type": "object",
                                      "properties": {
                                        "publishableKey": {
                                          "type": "string"
                                        },
                                        "webhookId": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "accountId": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "webhookApiVersion": {
                                          "type": [
                                            "string",
                                            "null"
                                          ]
                                        },
                                        "redirectUrls": {
                                          "default": [],
                                          "anyOf": [
                                            {
                                              "type": "array",
                                              "items": {
                                                "type": "string",
                                                "format": "uri"
                                              }
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "credentialSources": {
                                          "type": "object",
                                          "properties": {
                                            "publishableKey": {
                                              "type": "object",
                                              "properties": {
                                                "source": {
                                                  "type": "string",
                                                  "enum": [
                                                    "onepassword"
                                                  ]
                                                },
                                                "secretsIntegrationId": {
                                                  "type": "string",
                                                  "minLength": 1
                                                },
                                                "secretReference": {
                                                  "type": "string",
                                                  "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                                },
                                                "secretReferenceLabel": {
                                                  "type": "string",
                                                  "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                                },
                                                "materializedAt": {
                                                  "anyOf": [
                                                    {
                                                      "type": "string",
                                                      "format": "date-time",
                                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                    },
                                                    {
                                                      "type": "null"
                                                    }
                                                  ]
                                                },
                                                "materializationError": {
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ]
                                                }
                                              },
                                              "required": [
                                                "source",
                                                "secretsIntegrationId",
                                                "secretReference",
                                                "secretReferenceLabel",
                                                "materializedAt",
                                                "materializationError"
                                              ],
                                              "additionalProperties": false
                                            },
                                            "secretKey": {
                                              "type": "object",
                                              "properties": {
                                                "source": {
                                                  "type": "string",
                                                  "enum": [
                                                    "onepassword"
                                                  ]
                                                },
                                                "secretsIntegrationId": {
                                                  "type": "string",
                                                  "minLength": 1
                                                },
                                                "secretReference": {
                                                  "type": "string",
                                                  "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                                },
                                                "secretReferenceLabel": {
                                                  "type": "string",
                                                  "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                                },
                                                "materializedAt": {
                                                  "anyOf": [
                                                    {
                                                      "type": "string",
                                                      "format": "date-time",
                                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                    },
                                                    {
                                                      "type": "null"
                                                    }
                                                  ]
                                                },
                                                "materializationError": {
                                                  "type": [
                                                    "string",
                                                    "null"
                                                  ]
                                                }
                                              },
                                              "required": [
                                                "source",
                                                "secretsIntegrationId",
                                                "secretReference",
                                                "secretReferenceLabel",
                                                "materializedAt",
                                                "materializationError"
                                              ],
                                              "additionalProperties": false
                                            }
                                          },
                                          "additionalProperties": false
                                        },
                                        "secretKey": {
                                          "type": "string",
                                          "enum": [
                                            ""
                                          ]
                                        },
                                        "webhookSecret": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "enum": [
                                                ""
                                              ]
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "required": [
                                        "publishableKey",
                                        "redirectUrls",
                                        "secretKey"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "required": [
                                    "connect"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "id",
                                "type",
                                "updatedAt",
                                "configuration"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        }
                      },
                      "authenticationProvider": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "appleAppStore",
                              "clerk",
                              "customServer",
                              "firebase",
                              "none",
                              "oidc"
                            ]
                          },
                          {
                            "oneOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "appleAppStore"
                                    ]
                                  }
                                },
                                "required": [
                                  "type"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "customServer"
                                    ]
                                  }
                                },
                                "required": [
                                  "type"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "firebase"
                                    ]
                                  },
                                  "firebaseProjectId": {
                                    "type": "string",
                                    "minLength": 1
                                  },
                                  "customerDeprovisioningPolicy": {
                                    "type": "string",
                                    "enum": [
                                      "completeProductGrants",
                                      "retainProductGrants"
                                    ]
                                  }
                                },
                                "required": [
                                  "type",
                                  "firebaseProjectId",
                                  "customerDeprovisioningPolicy"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "clerk"
                                    ]
                                  },
                                  "instanceId": {
                                    "type": "string",
                                    "minLength": 1
                                  },
                                  "issuerURL": {
                                    "type": "string",
                                    "format": "uri"
                                  },
                                  "authorizedParties": {
                                    "minItems": 1,
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "format": "uri"
                                    }
                                  },
                                  "customerDeprovisioningPolicy": {
                                    "type": "string",
                                    "enum": [
                                      "completeProductGrants",
                                      "retainProductGrants"
                                    ]
                                  },
                                  "hasSecretKey": {
                                    "type": "boolean"
                                  },
                                  "webhook": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "status": {
                                            "type": "string",
                                            "enum": [
                                              "awaitingVerification",
                                              "verified"
                                            ]
                                          },
                                          "hasSigningSecret": {
                                            "type": "boolean"
                                          }
                                        },
                                        "required": [
                                          "status",
                                          "hasSigningSecret"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "type",
                                  "instanceId",
                                  "issuerURL",
                                  "authorizedParties",
                                  "customerDeprovisioningPolicy",
                                  "hasSecretKey",
                                  "webhook"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "oidc"
                                    ]
                                  },
                                  "issuerURL": {
                                    "type": "string",
                                    "format": "uri"
                                  },
                                  "audiences": {
                                    "minItems": 1,
                                    "maxItems": 20,
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "minLength": 1
                                    }
                                  }
                                },
                                "required": [
                                  "type",
                                  "issuerURL",
                                  "audiences"
                                ],
                                "additionalProperties": false
                              }
                            ]
                          }
                        ]
                      },
                      "sandboxMode": {
                        "type": "boolean"
                      },
                      "hidden": {
                        "type": "boolean"
                      },
                      "products": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "required": [
                      "id",
                      "conflicts",
                      "object",
                      "name",
                      "user",
                      "metadata",
                      "billingProviders",
                      "authenticationProvider",
                      "sandboxMode",
                      "hidden"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "post": {
        "summary": "Create a project",
        "operationId": "createProject",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "tombstoned": {
                      "type": "boolean"
                    },
                    "tombstonedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "conflicts": {
                      "type": "object",
                      "properties": {
                        "clientData": {},
                        "serverData": {},
                        "conflictedAt": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "clientData",
                        "serverData",
                        "conflictedAt"
                      ],
                      "additionalProperties": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "project"
                      ]
                    },
                    "api": {
                      "type": "object",
                      "properties": {
                        "links": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {
                            "type": "object",
                            "properties": {
                              "href": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "href"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "redactions": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "path": {
                                "type": "string"
                              },
                              "reason": {
                                "type": "string",
                                "enum": [
                                  "secret",
                                  "internal"
                                ]
                              }
                            },
                            "required": [
                              "path",
                              "reason"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1
                    },
                    "user": {
                      "type": "string"
                    },
                    "metadata": {
                      "type": "object",
                      "properties": {
                        "customServerURL": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uri"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "freeUsersAllowed": {
                          "type": [
                            "boolean",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "freeUsersAllowed"
                      ],
                      "additionalProperties": false
                    },
                    "billingProviders": {
                      "type": "array",
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "appleAppStore"
                                ]
                              },
                              "updatedAt": {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              "configuration": {
                                "type": "object",
                                "properties": {
                                  "appStoreConnect": {
                                    "type": "object",
                                    "properties": {
                                      "issuerId": {
                                        "type": "string"
                                      },
                                      "privateKeyId": {
                                        "type": "string"
                                      },
                                      "credentialSources": {
                                        "type": "object",
                                        "properties": {
                                          "privateKey": {
                                            "type": "object",
                                            "properties": {
                                              "source": {
                                                "type": "string",
                                                "enum": [
                                                  "onepassword"
                                                ]
                                              },
                                              "secretsIntegrationId": {
                                                "type": "string",
                                                "minLength": 1
                                              },
                                              "secretReference": {
                                                "type": "string",
                                                "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                              },
                                              "secretReferenceLabel": {
                                                "type": "string",
                                                "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                              },
                                              "materializedAt": {
                                                "anyOf": [
                                                  {
                                                    "type": "string",
                                                    "format": "date-time",
                                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "materializationError": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              }
                                            },
                                            "required": [
                                              "source",
                                              "secretsIntegrationId",
                                              "secretReference",
                                              "secretReferenceLabel",
                                              "materializedAt",
                                              "materializationError"
                                            ],
                                            "additionalProperties": false
                                          },
                                          "sharedSecret": {
                                            "type": "object",
                                            "properties": {
                                              "source": {
                                                "type": "string",
                                                "enum": [
                                                  "onepassword"
                                                ]
                                              },
                                              "secretsIntegrationId": {
                                                "type": "string",
                                                "minLength": 1
                                              },
                                              "secretReference": {
                                                "type": "string",
                                                "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                              },
                                              "secretReferenceLabel": {
                                                "type": "string",
                                                "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                              },
                                              "materializedAt": {
                                                "anyOf": [
                                                  {
                                                    "type": "string",
                                                    "format": "date-time",
                                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "materializationError": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              }
                                            },
                                            "required": [
                                              "source",
                                              "secretsIntegrationId",
                                              "secretReference",
                                              "secretReferenceLabel",
                                              "materializedAt",
                                              "materializationError"
                                            ],
                                            "additionalProperties": false
                                          }
                                        },
                                        "additionalProperties": false
                                      },
                                      "privateKey": {
                                        "type": "string",
                                        "enum": [
                                          ""
                                        ]
                                      },
                                      "sharedSecret": {
                                        "type": "string",
                                        "enum": [
                                          ""
                                        ]
                                      }
                                    },
                                    "required": [
                                      "issuerId",
                                      "privateKeyId",
                                      "privateKey",
                                      "sharedSecret"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "fragile_appStoreConnect": {
                                    "type": "object",
                                    "properties": {
                                      "bundleId": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "bundleId"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "appStoreConnect",
                                  "fragile_appStoreConnect"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "required": [
                              "id",
                              "type",
                              "updatedAt",
                              "configuration"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "stripe"
                                ]
                              },
                              "updatedAt": {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              "configuration": {
                                "type": "object",
                                "properties": {
                                  "connect": {
                                    "type": "object",
                                    "properties": {
                                      "publishableKey": {
                                        "type": "string"
                                      },
                                      "webhookId": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "accountId": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "webhookApiVersion": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "redirectUrls": {
                                        "default": [],
                                        "anyOf": [
                                          {
                                            "type": "array",
                                            "items": {
                                              "type": "string",
                                              "format": "uri"
                                            }
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "credentialSources": {
                                        "type": "object",
                                        "properties": {
                                          "publishableKey": {
                                            "type": "object",
                                            "properties": {
                                              "source": {
                                                "type": "string",
                                                "enum": [
                                                  "onepassword"
                                                ]
                                              },
                                              "secretsIntegrationId": {
                                                "type": "string",
                                                "minLength": 1
                                              },
                                              "secretReference": {
                                                "type": "string",
                                                "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                              },
                                              "secretReferenceLabel": {
                                                "type": "string",
                                                "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                              },
                                              "materializedAt": {
                                                "anyOf": [
                                                  {
                                                    "type": "string",
                                                    "format": "date-time",
                                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "materializationError": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              }
                                            },
                                            "required": [
                                              "source",
                                              "secretsIntegrationId",
                                              "secretReference",
                                              "secretReferenceLabel",
                                              "materializedAt",
                                              "materializationError"
                                            ],
                                            "additionalProperties": false
                                          },
                                          "secretKey": {
                                            "type": "object",
                                            "properties": {
                                              "source": {
                                                "type": "string",
                                                "enum": [
                                                  "onepassword"
                                                ]
                                              },
                                              "secretsIntegrationId": {
                                                "type": "string",
                                                "minLength": 1
                                              },
                                              "secretReference": {
                                                "type": "string",
                                                "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                              },
                                              "secretReferenceLabel": {
                                                "type": "string",
                                                "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                              },
                                              "materializedAt": {
                                                "anyOf": [
                                                  {
                                                    "type": "string",
                                                    "format": "date-time",
                                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "materializationError": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              }
                                            },
                                            "required": [
                                              "source",
                                              "secretsIntegrationId",
                                              "secretReference",
                                              "secretReferenceLabel",
                                              "materializedAt",
                                              "materializationError"
                                            ],
                                            "additionalProperties": false
                                          }
                                        },
                                        "additionalProperties": false
                                      },
                                      "secretKey": {
                                        "type": "string",
                                        "enum": [
                                          ""
                                        ]
                                      },
                                      "webhookSecret": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              ""
                                            ]
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "publishableKey",
                                      "redirectUrls",
                                      "secretKey"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "connect"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "required": [
                              "id",
                              "type",
                              "updatedAt",
                              "configuration"
                            ],
                            "additionalProperties": false
                          }
                        ]
                      }
                    },
                    "authenticationProvider": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "appleAppStore",
                            "clerk",
                            "customServer",
                            "firebase",
                            "none",
                            "oidc"
                          ]
                        },
                        {
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "appleAppStore"
                                  ]
                                }
                              },
                              "required": [
                                "type"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "customServer"
                                  ]
                                }
                              },
                              "required": [
                                "type"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "firebase"
                                  ]
                                },
                                "firebaseProjectId": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "customerDeprovisioningPolicy": {
                                  "type": "string",
                                  "enum": [
                                    "completeProductGrants",
                                    "retainProductGrants"
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "firebaseProjectId",
                                "customerDeprovisioningPolicy"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "clerk"
                                  ]
                                },
                                "instanceId": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "issuerURL": {
                                  "type": "string",
                                  "format": "uri"
                                },
                                "authorizedParties": {
                                  "minItems": 1,
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "format": "uri"
                                  }
                                },
                                "customerDeprovisioningPolicy": {
                                  "type": "string",
                                  "enum": [
                                    "completeProductGrants",
                                    "retainProductGrants"
                                  ]
                                },
                                "hasSecretKey": {
                                  "type": "boolean"
                                },
                                "webhook": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "status": {
                                          "type": "string",
                                          "enum": [
                                            "awaitingVerification",
                                            "verified"
                                          ]
                                        },
                                        "hasSigningSecret": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "status",
                                        "hasSigningSecret"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "instanceId",
                                "issuerURL",
                                "authorizedParties",
                                "customerDeprovisioningPolicy",
                                "hasSecretKey",
                                "webhook"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "oidc"
                                  ]
                                },
                                "issuerURL": {
                                  "type": "string",
                                  "format": "uri"
                                },
                                "audiences": {
                                  "minItems": 1,
                                  "maxItems": 20,
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "minLength": 1
                                  }
                                }
                              },
                              "required": [
                                "type",
                                "issuerURL",
                                "audiences"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        }
                      ]
                    },
                    "sandboxMode": {
                      "type": "boolean"
                    },
                    "hidden": {
                      "type": "boolean"
                    },
                    "products": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "id",
                    "conflicts",
                    "object",
                    "name",
                    "user",
                    "metadata",
                    "billingProviders",
                    "authenticationProvider",
                    "sandboxMode",
                    "hidden"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1
                  },
                  "metadata": {
                    "type": "object",
                    "properties": {
                      "customServerURL": {
                        "anyOf": [
                          {
                            "type": "string",
                            "format": "uri"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "freeUsersAllowed": {
                        "type": [
                          "boolean",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "customServerURL",
                      "freeUsersAllowed"
                    ],
                    "additionalProperties": false
                  },
                  "sandboxMode": {
                    "default": false,
                    "type": "boolean"
                  },
                  "authenticationProvider": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "appleAppStore",
                          "clerk",
                          "customServer",
                          "firebase",
                          "none",
                          "oidc"
                        ]
                      },
                      {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "appleAppStore"
                                ]
                              }
                            },
                            "required": [
                              "type"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "customServer"
                                ]
                              }
                            },
                            "required": [
                              "type"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "firebase"
                                ]
                              },
                              "firebaseProjectId": {
                                "type": "string",
                                "minLength": 1
                              },
                              "customerDeprovisioningPolicy": {
                                "type": "string",
                                "enum": [
                                  "completeProductGrants",
                                  "retainProductGrants"
                                ]
                              }
                            },
                            "required": [
                              "type",
                              "firebaseProjectId",
                              "customerDeprovisioningPolicy"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "clerk"
                                ]
                              },
                              "instanceId": {
                                "type": "string",
                                "minLength": 1
                              },
                              "issuerURL": {
                                "type": "string",
                                "format": "uri"
                              },
                              "authorizedParties": {
                                "minItems": 1,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "format": "uri"
                                }
                              },
                              "secretKey": {
                                "type": "string",
                                "minLength": 1
                              },
                              "customerDeprovisioningPolicy": {
                                "type": "string",
                                "enum": [
                                  "completeProductGrants",
                                  "retainProductGrants"
                                ]
                              },
                              "webhook": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "signingSecret": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "status": {
                                        "type": "string",
                                        "enum": [
                                          "awaitingVerification",
                                          "verified"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "signingSecret",
                                      "status"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "type",
                              "instanceId",
                              "issuerURL",
                              "authorizedParties",
                              "secretKey",
                              "customerDeprovisioningPolicy",
                              "webhook"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "oidc"
                                ]
                              },
                              "issuerURL": {
                                "type": "string",
                                "format": "uri"
                              },
                              "audiences": {
                                "minItems": 1,
                                "maxItems": 20,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1
                                }
                              }
                            },
                            "required": [
                              "type",
                              "issuerURL",
                              "audiences"
                            ],
                            "additionalProperties": false
                          }
                        ]
                      }
                    ]
                  }
                },
                "required": [
                  "name",
                  "metadata",
                  "sandboxMode",
                  "authenticationProvider"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/admin/projects/{projectId}": {
      "get": {
        "summary": "Retrieve a project",
        "operationId": "retrieveProject",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "tombstoned": {
                      "type": "boolean"
                    },
                    "tombstonedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "conflicts": {
                      "type": "object",
                      "properties": {
                        "clientData": {},
                        "serverData": {},
                        "conflictedAt": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "clientData",
                        "serverData",
                        "conflictedAt"
                      ],
                      "additionalProperties": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "project"
                      ]
                    },
                    "api": {
                      "type": "object",
                      "properties": {
                        "links": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {
                            "type": "object",
                            "properties": {
                              "href": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "href"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "redactions": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "path": {
                                "type": "string"
                              },
                              "reason": {
                                "type": "string",
                                "enum": [
                                  "secret",
                                  "internal"
                                ]
                              }
                            },
                            "required": [
                              "path",
                              "reason"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1
                    },
                    "user": {
                      "type": "string"
                    },
                    "metadata": {
                      "type": "object",
                      "properties": {
                        "customServerURL": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uri"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "freeUsersAllowed": {
                          "type": [
                            "boolean",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "freeUsersAllowed"
                      ],
                      "additionalProperties": false
                    },
                    "billingProviders": {
                      "type": "array",
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "appleAppStore"
                                ]
                              },
                              "updatedAt": {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              "configuration": {
                                "type": "object",
                                "properties": {
                                  "appStoreConnect": {
                                    "type": "object",
                                    "properties": {
                                      "issuerId": {
                                        "type": "string"
                                      },
                                      "privateKeyId": {
                                        "type": "string"
                                      },
                                      "credentialSources": {
                                        "type": "object",
                                        "properties": {
                                          "privateKey": {
                                            "type": "object",
                                            "properties": {
                                              "source": {
                                                "type": "string",
                                                "enum": [
                                                  "onepassword"
                                                ]
                                              },
                                              "secretsIntegrationId": {
                                                "type": "string",
                                                "minLength": 1
                                              },
                                              "secretReference": {
                                                "type": "string",
                                                "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                              },
                                              "secretReferenceLabel": {
                                                "type": "string",
                                                "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                              },
                                              "materializedAt": {
                                                "anyOf": [
                                                  {
                                                    "type": "string",
                                                    "format": "date-time",
                                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "materializationError": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              }
                                            },
                                            "required": [
                                              "source",
                                              "secretsIntegrationId",
                                              "secretReference",
                                              "secretReferenceLabel",
                                              "materializedAt",
                                              "materializationError"
                                            ],
                                            "additionalProperties": false
                                          },
                                          "sharedSecret": {
                                            "type": "object",
                                            "properties": {
                                              "source": {
                                                "type": "string",
                                                "enum": [
                                                  "onepassword"
                                                ]
                                              },
                                              "secretsIntegrationId": {
                                                "type": "string",
                                                "minLength": 1
                                              },
                                              "secretReference": {
                                                "type": "string",
                                                "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                              },
                                              "secretReferenceLabel": {
                                                "type": "string",
                                                "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                              },
                                              "materializedAt": {
                                                "anyOf": [
                                                  {
                                                    "type": "string",
                                                    "format": "date-time",
                                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "materializationError": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              }
                                            },
                                            "required": [
                                              "source",
                                              "secretsIntegrationId",
                                              "secretReference",
                                              "secretReferenceLabel",
                                              "materializedAt",
                                              "materializationError"
                                            ],
                                            "additionalProperties": false
                                          }
                                        },
                                        "additionalProperties": false
                                      },
                                      "privateKey": {
                                        "type": "string",
                                        "enum": [
                                          ""
                                        ]
                                      },
                                      "sharedSecret": {
                                        "type": "string",
                                        "enum": [
                                          ""
                                        ]
                                      }
                                    },
                                    "required": [
                                      "issuerId",
                                      "privateKeyId",
                                      "privateKey",
                                      "sharedSecret"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "fragile_appStoreConnect": {
                                    "type": "object",
                                    "properties": {
                                      "bundleId": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "bundleId"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "appStoreConnect",
                                  "fragile_appStoreConnect"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "required": [
                              "id",
                              "type",
                              "updatedAt",
                              "configuration"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "stripe"
                                ]
                              },
                              "updatedAt": {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              "configuration": {
                                "type": "object",
                                "properties": {
                                  "connect": {
                                    "type": "object",
                                    "properties": {
                                      "publishableKey": {
                                        "type": "string"
                                      },
                                      "webhookId": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "accountId": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "webhookApiVersion": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "redirectUrls": {
                                        "default": [],
                                        "anyOf": [
                                          {
                                            "type": "array",
                                            "items": {
                                              "type": "string",
                                              "format": "uri"
                                            }
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "credentialSources": {
                                        "type": "object",
                                        "properties": {
                                          "publishableKey": {
                                            "type": "object",
                                            "properties": {
                                              "source": {
                                                "type": "string",
                                                "enum": [
                                                  "onepassword"
                                                ]
                                              },
                                              "secretsIntegrationId": {
                                                "type": "string",
                                                "minLength": 1
                                              },
                                              "secretReference": {
                                                "type": "string",
                                                "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                              },
                                              "secretReferenceLabel": {
                                                "type": "string",
                                                "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                              },
                                              "materializedAt": {
                                                "anyOf": [
                                                  {
                                                    "type": "string",
                                                    "format": "date-time",
                                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "materializationError": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              }
                                            },
                                            "required": [
                                              "source",
                                              "secretsIntegrationId",
                                              "secretReference",
                                              "secretReferenceLabel",
                                              "materializedAt",
                                              "materializationError"
                                            ],
                                            "additionalProperties": false
                                          },
                                          "secretKey": {
                                            "type": "object",
                                            "properties": {
                                              "source": {
                                                "type": "string",
                                                "enum": [
                                                  "onepassword"
                                                ]
                                              },
                                              "secretsIntegrationId": {
                                                "type": "string",
                                                "minLength": 1
                                              },
                                              "secretReference": {
                                                "type": "string",
                                                "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                              },
                                              "secretReferenceLabel": {
                                                "type": "string",
                                                "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                              },
                                              "materializedAt": {
                                                "anyOf": [
                                                  {
                                                    "type": "string",
                                                    "format": "date-time",
                                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "materializationError": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              }
                                            },
                                            "required": [
                                              "source",
                                              "secretsIntegrationId",
                                              "secretReference",
                                              "secretReferenceLabel",
                                              "materializedAt",
                                              "materializationError"
                                            ],
                                            "additionalProperties": false
                                          }
                                        },
                                        "additionalProperties": false
                                      },
                                      "secretKey": {
                                        "type": "string",
                                        "enum": [
                                          ""
                                        ]
                                      },
                                      "webhookSecret": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              ""
                                            ]
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "publishableKey",
                                      "redirectUrls",
                                      "secretKey"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "connect"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "required": [
                              "id",
                              "type",
                              "updatedAt",
                              "configuration"
                            ],
                            "additionalProperties": false
                          }
                        ]
                      }
                    },
                    "authenticationProvider": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "appleAppStore",
                            "clerk",
                            "customServer",
                            "firebase",
                            "none",
                            "oidc"
                          ]
                        },
                        {
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "appleAppStore"
                                  ]
                                }
                              },
                              "required": [
                                "type"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "customServer"
                                  ]
                                }
                              },
                              "required": [
                                "type"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "firebase"
                                  ]
                                },
                                "firebaseProjectId": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "customerDeprovisioningPolicy": {
                                  "type": "string",
                                  "enum": [
                                    "completeProductGrants",
                                    "retainProductGrants"
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "firebaseProjectId",
                                "customerDeprovisioningPolicy"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "clerk"
                                  ]
                                },
                                "instanceId": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "issuerURL": {
                                  "type": "string",
                                  "format": "uri"
                                },
                                "authorizedParties": {
                                  "minItems": 1,
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "format": "uri"
                                  }
                                },
                                "customerDeprovisioningPolicy": {
                                  "type": "string",
                                  "enum": [
                                    "completeProductGrants",
                                    "retainProductGrants"
                                  ]
                                },
                                "hasSecretKey": {
                                  "type": "boolean"
                                },
                                "webhook": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "status": {
                                          "type": "string",
                                          "enum": [
                                            "awaitingVerification",
                                            "verified"
                                          ]
                                        },
                                        "hasSigningSecret": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "status",
                                        "hasSigningSecret"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "instanceId",
                                "issuerURL",
                                "authorizedParties",
                                "customerDeprovisioningPolicy",
                                "hasSecretKey",
                                "webhook"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "oidc"
                                  ]
                                },
                                "issuerURL": {
                                  "type": "string",
                                  "format": "uri"
                                },
                                "audiences": {
                                  "minItems": 1,
                                  "maxItems": 20,
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "minLength": 1
                                  }
                                }
                              },
                              "required": [
                                "type",
                                "issuerURL",
                                "audiences"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        }
                      ]
                    },
                    "sandboxMode": {
                      "type": "boolean"
                    },
                    "hidden": {
                      "type": "boolean"
                    },
                    "products": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "id",
                    "conflicts",
                    "object",
                    "name",
                    "user",
                    "metadata",
                    "billingProviders",
                    "authenticationProvider",
                    "sandboxMode",
                    "hidden"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "patch": {
        "summary": "Update a project",
        "operationId": "updateProject",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "tombstoned": {
                      "type": "boolean"
                    },
                    "tombstonedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "conflicts": {
                      "type": "object",
                      "properties": {
                        "clientData": {},
                        "serverData": {},
                        "conflictedAt": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "clientData",
                        "serverData",
                        "conflictedAt"
                      ],
                      "additionalProperties": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "project"
                      ]
                    },
                    "api": {
                      "type": "object",
                      "properties": {
                        "links": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {
                            "type": "object",
                            "properties": {
                              "href": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "href"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "redactions": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "path": {
                                "type": "string"
                              },
                              "reason": {
                                "type": "string",
                                "enum": [
                                  "secret",
                                  "internal"
                                ]
                              }
                            },
                            "required": [
                              "path",
                              "reason"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1
                    },
                    "user": {
                      "type": "string"
                    },
                    "metadata": {
                      "type": "object",
                      "properties": {
                        "customServerURL": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uri"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "freeUsersAllowed": {
                          "type": [
                            "boolean",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "freeUsersAllowed"
                      ],
                      "additionalProperties": false
                    },
                    "billingProviders": {
                      "type": "array",
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "appleAppStore"
                                ]
                              },
                              "updatedAt": {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              "configuration": {
                                "type": "object",
                                "properties": {
                                  "appStoreConnect": {
                                    "type": "object",
                                    "properties": {
                                      "issuerId": {
                                        "type": "string"
                                      },
                                      "privateKeyId": {
                                        "type": "string"
                                      },
                                      "credentialSources": {
                                        "type": "object",
                                        "properties": {
                                          "privateKey": {
                                            "type": "object",
                                            "properties": {
                                              "source": {
                                                "type": "string",
                                                "enum": [
                                                  "onepassword"
                                                ]
                                              },
                                              "secretsIntegrationId": {
                                                "type": "string",
                                                "minLength": 1
                                              },
                                              "secretReference": {
                                                "type": "string",
                                                "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                              },
                                              "secretReferenceLabel": {
                                                "type": "string",
                                                "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                              },
                                              "materializedAt": {
                                                "anyOf": [
                                                  {
                                                    "type": "string",
                                                    "format": "date-time",
                                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "materializationError": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              }
                                            },
                                            "required": [
                                              "source",
                                              "secretsIntegrationId",
                                              "secretReference",
                                              "secretReferenceLabel",
                                              "materializedAt",
                                              "materializationError"
                                            ],
                                            "additionalProperties": false
                                          },
                                          "sharedSecret": {
                                            "type": "object",
                                            "properties": {
                                              "source": {
                                                "type": "string",
                                                "enum": [
                                                  "onepassword"
                                                ]
                                              },
                                              "secretsIntegrationId": {
                                                "type": "string",
                                                "minLength": 1
                                              },
                                              "secretReference": {
                                                "type": "string",
                                                "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                              },
                                              "secretReferenceLabel": {
                                                "type": "string",
                                                "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                              },
                                              "materializedAt": {
                                                "anyOf": [
                                                  {
                                                    "type": "string",
                                                    "format": "date-time",
                                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "materializationError": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              }
                                            },
                                            "required": [
                                              "source",
                                              "secretsIntegrationId",
                                              "secretReference",
                                              "secretReferenceLabel",
                                              "materializedAt",
                                              "materializationError"
                                            ],
                                            "additionalProperties": false
                                          }
                                        },
                                        "additionalProperties": false
                                      },
                                      "privateKey": {
                                        "type": "string",
                                        "enum": [
                                          ""
                                        ]
                                      },
                                      "sharedSecret": {
                                        "type": "string",
                                        "enum": [
                                          ""
                                        ]
                                      }
                                    },
                                    "required": [
                                      "issuerId",
                                      "privateKeyId",
                                      "privateKey",
                                      "sharedSecret"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "fragile_appStoreConnect": {
                                    "type": "object",
                                    "properties": {
                                      "bundleId": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "bundleId"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "appStoreConnect",
                                  "fragile_appStoreConnect"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "required": [
                              "id",
                              "type",
                              "updatedAt",
                              "configuration"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "stripe"
                                ]
                              },
                              "updatedAt": {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              "configuration": {
                                "type": "object",
                                "properties": {
                                  "connect": {
                                    "type": "object",
                                    "properties": {
                                      "publishableKey": {
                                        "type": "string"
                                      },
                                      "webhookId": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "accountId": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "webhookApiVersion": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "redirectUrls": {
                                        "default": [],
                                        "anyOf": [
                                          {
                                            "type": "array",
                                            "items": {
                                              "type": "string",
                                              "format": "uri"
                                            }
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "credentialSources": {
                                        "type": "object",
                                        "properties": {
                                          "publishableKey": {
                                            "type": "object",
                                            "properties": {
                                              "source": {
                                                "type": "string",
                                                "enum": [
                                                  "onepassword"
                                                ]
                                              },
                                              "secretsIntegrationId": {
                                                "type": "string",
                                                "minLength": 1
                                              },
                                              "secretReference": {
                                                "type": "string",
                                                "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                              },
                                              "secretReferenceLabel": {
                                                "type": "string",
                                                "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                              },
                                              "materializedAt": {
                                                "anyOf": [
                                                  {
                                                    "type": "string",
                                                    "format": "date-time",
                                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "materializationError": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              }
                                            },
                                            "required": [
                                              "source",
                                              "secretsIntegrationId",
                                              "secretReference",
                                              "secretReferenceLabel",
                                              "materializedAt",
                                              "materializationError"
                                            ],
                                            "additionalProperties": false
                                          },
                                          "secretKey": {
                                            "type": "object",
                                            "properties": {
                                              "source": {
                                                "type": "string",
                                                "enum": [
                                                  "onepassword"
                                                ]
                                              },
                                              "secretsIntegrationId": {
                                                "type": "string",
                                                "minLength": 1
                                              },
                                              "secretReference": {
                                                "type": "string",
                                                "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                              },
                                              "secretReferenceLabel": {
                                                "type": "string",
                                                "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                              },
                                              "materializedAt": {
                                                "anyOf": [
                                                  {
                                                    "type": "string",
                                                    "format": "date-time",
                                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "materializationError": {
                                                "type": [
                                                  "string",
                                                  "null"
                                                ]
                                              }
                                            },
                                            "required": [
                                              "source",
                                              "secretsIntegrationId",
                                              "secretReference",
                                              "secretReferenceLabel",
                                              "materializedAt",
                                              "materializationError"
                                            ],
                                            "additionalProperties": false
                                          }
                                        },
                                        "additionalProperties": false
                                      },
                                      "secretKey": {
                                        "type": "string",
                                        "enum": [
                                          ""
                                        ]
                                      },
                                      "webhookSecret": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              ""
                                            ]
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "publishableKey",
                                      "redirectUrls",
                                      "secretKey"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "connect"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "required": [
                              "id",
                              "type",
                              "updatedAt",
                              "configuration"
                            ],
                            "additionalProperties": false
                          }
                        ]
                      }
                    },
                    "authenticationProvider": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "appleAppStore",
                            "clerk",
                            "customServer",
                            "firebase",
                            "none",
                            "oidc"
                          ]
                        },
                        {
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "appleAppStore"
                                  ]
                                }
                              },
                              "required": [
                                "type"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "customServer"
                                  ]
                                }
                              },
                              "required": [
                                "type"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "firebase"
                                  ]
                                },
                                "firebaseProjectId": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "customerDeprovisioningPolicy": {
                                  "type": "string",
                                  "enum": [
                                    "completeProductGrants",
                                    "retainProductGrants"
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "firebaseProjectId",
                                "customerDeprovisioningPolicy"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "clerk"
                                  ]
                                },
                                "instanceId": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "issuerURL": {
                                  "type": "string",
                                  "format": "uri"
                                },
                                "authorizedParties": {
                                  "minItems": 1,
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "format": "uri"
                                  }
                                },
                                "customerDeprovisioningPolicy": {
                                  "type": "string",
                                  "enum": [
                                    "completeProductGrants",
                                    "retainProductGrants"
                                  ]
                                },
                                "hasSecretKey": {
                                  "type": "boolean"
                                },
                                "webhook": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "status": {
                                          "type": "string",
                                          "enum": [
                                            "awaitingVerification",
                                            "verified"
                                          ]
                                        },
                                        "hasSigningSecret": {
                                          "type": "boolean"
                                        }
                                      },
                                      "required": [
                                        "status",
                                        "hasSigningSecret"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "instanceId",
                                "issuerURL",
                                "authorizedParties",
                                "customerDeprovisioningPolicy",
                                "hasSecretKey",
                                "webhook"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "oidc"
                                  ]
                                },
                                "issuerURL": {
                                  "type": "string",
                                  "format": "uri"
                                },
                                "audiences": {
                                  "minItems": 1,
                                  "maxItems": 20,
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "minLength": 1
                                  }
                                }
                              },
                              "required": [
                                "type",
                                "issuerURL",
                                "audiences"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        }
                      ]
                    },
                    "sandboxMode": {
                      "type": "boolean"
                    },
                    "hidden": {
                      "type": "boolean"
                    },
                    "products": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "id",
                    "conflicts",
                    "object",
                    "name",
                    "user",
                    "metadata",
                    "billingProviders",
                    "authenticationProvider",
                    "sandboxMode",
                    "hidden"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1
                  },
                  "metadata": {
                    "type": "object",
                    "properties": {
                      "customServerURL": {
                        "anyOf": [
                          {
                            "type": "string",
                            "format": "uri"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "freeUsersAllowed": {
                        "type": [
                          "boolean",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "customServerURL",
                      "freeUsersAllowed"
                    ],
                    "additionalProperties": false
                  },
                  "authenticationProvider": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "appleAppStore",
                          "clerk",
                          "customServer",
                          "firebase",
                          "none",
                          "oidc"
                        ]
                      },
                      {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "appleAppStore"
                                ]
                              }
                            },
                            "required": [
                              "type"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "customServer"
                                ]
                              }
                            },
                            "required": [
                              "type"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "firebase"
                                ]
                              },
                              "firebaseProjectId": {
                                "type": "string",
                                "minLength": 1
                              },
                              "customerDeprovisioningPolicy": {
                                "type": "string",
                                "enum": [
                                  "completeProductGrants",
                                  "retainProductGrants"
                                ]
                              }
                            },
                            "required": [
                              "type",
                              "firebaseProjectId",
                              "customerDeprovisioningPolicy"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "clerk"
                                ]
                              },
                              "instanceId": {
                                "type": "string",
                                "minLength": 1
                              },
                              "issuerURL": {
                                "type": "string",
                                "format": "uri"
                              },
                              "authorizedParties": {
                                "minItems": 1,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "format": "uri"
                                }
                              },
                              "secretKey": {
                                "type": "string",
                                "minLength": 1
                              },
                              "customerDeprovisioningPolicy": {
                                "type": "string",
                                "enum": [
                                  "completeProductGrants",
                                  "retainProductGrants"
                                ]
                              },
                              "webhook": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "signingSecret": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "status": {
                                        "type": "string",
                                        "enum": [
                                          "awaitingVerification",
                                          "verified"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "signingSecret",
                                      "status"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "type",
                              "instanceId",
                              "issuerURL",
                              "authorizedParties",
                              "secretKey",
                              "customerDeprovisioningPolicy",
                              "webhook"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "oidc"
                                ]
                              },
                              "issuerURL": {
                                "type": "string",
                                "format": "uri"
                              },
                              "audiences": {
                                "minItems": 1,
                                "maxItems": 20,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1
                                }
                              }
                            },
                            "required": [
                              "type",
                              "issuerURL",
                              "audiences"
                            ],
                            "additionalProperties": false
                          }
                        ]
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "delete": {
        "summary": "Delete a project",
        "operationId": "deleteProject",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "success"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/admin/projects/{projectId}/billing-providers": {
      "post": {
        "summary": "Enable an external billing provider",
        "operationId": "enableExternalBillingProvider",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "createdAt": {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            "updatedAt": {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            "tombstoned": {
                              "type": "boolean",
                              "enum": [
                                false
                              ]
                            },
                            "tombstonedAt": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "conflicts": {
                              "type": "object",
                              "properties": {
                                "clientData": {},
                                "serverData": {},
                                "conflictedAt": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "clientData",
                                "serverData",
                                "conflictedAt"
                              ],
                              "additionalProperties": false
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "external_billing_provider"
                              ]
                            },
                            "api": {
                              "type": "object",
                              "properties": {
                                "links": {
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string"
                                  },
                                  "additionalProperties": {
                                    "type": "object",
                                    "properties": {
                                      "href": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "href"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "redactions": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "path": {
                                        "type": "string"
                                      },
                                      "reason": {
                                        "type": "string",
                                        "enum": [
                                          "secret",
                                          "internal"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "path",
                                      "reason"
                                    ],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "additionalProperties": false
                            },
                            "project": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "appleAppStore"
                              ]
                            },
                            "configuration": {
                              "type": "object",
                              "properties": {
                                "appStoreConnect": {
                                  "type": "object",
                                  "properties": {
                                    "issuerId": {
                                      "type": "string"
                                    },
                                    "privateKeyId": {
                                      "type": "string"
                                    },
                                    "credentialSources": {
                                      "type": "object",
                                      "properties": {
                                        "privateKey": {
                                          "type": "object",
                                          "properties": {
                                            "source": {
                                              "type": "string",
                                              "enum": [
                                                "onepassword"
                                              ]
                                            },
                                            "secretsIntegrationId": {
                                              "type": "string",
                                              "minLength": 1
                                            },
                                            "secretReference": {
                                              "type": "string",
                                              "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                            },
                                            "secretReferenceLabel": {
                                              "type": "string",
                                              "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                            },
                                            "materializedAt": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "date-time",
                                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "materializationError": {
                                              "type": [
                                                "string",
                                                "null"
                                              ]
                                            }
                                          },
                                          "required": [
                                            "source",
                                            "secretsIntegrationId",
                                            "secretReference",
                                            "secretReferenceLabel",
                                            "materializedAt",
                                            "materializationError"
                                          ],
                                          "additionalProperties": false
                                        },
                                        "sharedSecret": {
                                          "type": "object",
                                          "properties": {
                                            "source": {
                                              "type": "string",
                                              "enum": [
                                                "onepassword"
                                              ]
                                            },
                                            "secretsIntegrationId": {
                                              "type": "string",
                                              "minLength": 1
                                            },
                                            "secretReference": {
                                              "type": "string",
                                              "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                            },
                                            "secretReferenceLabel": {
                                              "type": "string",
                                              "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                            },
                                            "materializedAt": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "date-time",
                                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "materializationError": {
                                              "type": [
                                                "string",
                                                "null"
                                              ]
                                            }
                                          },
                                          "required": [
                                            "source",
                                            "secretsIntegrationId",
                                            "secretReference",
                                            "secretReferenceLabel",
                                            "materializedAt",
                                            "materializationError"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    "privateKey": {
                                      "type": "string",
                                      "enum": [
                                        ""
                                      ]
                                    },
                                    "sharedSecret": {
                                      "type": "string",
                                      "enum": [
                                        ""
                                      ]
                                    }
                                  },
                                  "required": [
                                    "issuerId",
                                    "privateKeyId",
                                    "privateKey",
                                    "sharedSecret"
                                  ],
                                  "additionalProperties": false
                                },
                                "fragile_appStoreConnect": {
                                  "type": "object",
                                  "properties": {
                                    "bundleId": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "bundleId"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "appStoreConnect",
                                "fragile_appStoreConnect"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "id",
                            "updatedAt",
                            "conflicts",
                            "object",
                            "project",
                            "type",
                            "configuration"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "createdAt": {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            "updatedAt": {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            "tombstoned": {
                              "type": "boolean",
                              "enum": [
                                false
                              ]
                            },
                            "tombstonedAt": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "conflicts": {
                              "type": "object",
                              "properties": {
                                "clientData": {},
                                "serverData": {},
                                "conflictedAt": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "clientData",
                                "serverData",
                                "conflictedAt"
                              ],
                              "additionalProperties": false
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "external_billing_provider"
                              ]
                            },
                            "api": {
                              "type": "object",
                              "properties": {
                                "links": {
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string"
                                  },
                                  "additionalProperties": {
                                    "type": "object",
                                    "properties": {
                                      "href": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "href"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "redactions": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "path": {
                                        "type": "string"
                                      },
                                      "reason": {
                                        "type": "string",
                                        "enum": [
                                          "secret",
                                          "internal"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "path",
                                      "reason"
                                    ],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "additionalProperties": false
                            },
                            "project": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "stripe"
                              ]
                            },
                            "configuration": {
                              "type": "object",
                              "properties": {
                                "connect": {
                                  "type": "object",
                                  "properties": {
                                    "publishableKey": {
                                      "type": "string"
                                    },
                                    "webhookId": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "accountId": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "webhookApiVersion": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "redirectUrls": {
                                      "default": [],
                                      "anyOf": [
                                        {
                                          "type": "array",
                                          "items": {
                                            "type": "string",
                                            "format": "uri"
                                          }
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "credentialSources": {
                                      "type": "object",
                                      "properties": {
                                        "publishableKey": {
                                          "type": "object",
                                          "properties": {
                                            "source": {
                                              "type": "string",
                                              "enum": [
                                                "onepassword"
                                              ]
                                            },
                                            "secretsIntegrationId": {
                                              "type": "string",
                                              "minLength": 1
                                            },
                                            "secretReference": {
                                              "type": "string",
                                              "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                            },
                                            "secretReferenceLabel": {
                                              "type": "string",
                                              "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                            },
                                            "materializedAt": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "date-time",
                                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "materializationError": {
                                              "type": [
                                                "string",
                                                "null"
                                              ]
                                            }
                                          },
                                          "required": [
                                            "source",
                                            "secretsIntegrationId",
                                            "secretReference",
                                            "secretReferenceLabel",
                                            "materializedAt",
                                            "materializationError"
                                          ],
                                          "additionalProperties": false
                                        },
                                        "secretKey": {
                                          "type": "object",
                                          "properties": {
                                            "source": {
                                              "type": "string",
                                              "enum": [
                                                "onepassword"
                                              ]
                                            },
                                            "secretsIntegrationId": {
                                              "type": "string",
                                              "minLength": 1
                                            },
                                            "secretReference": {
                                              "type": "string",
                                              "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                            },
                                            "secretReferenceLabel": {
                                              "type": "string",
                                              "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                            },
                                            "materializedAt": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "date-time",
                                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "materializationError": {
                                              "type": [
                                                "string",
                                                "null"
                                              ]
                                            }
                                          },
                                          "required": [
                                            "source",
                                            "secretsIntegrationId",
                                            "secretReference",
                                            "secretReferenceLabel",
                                            "materializedAt",
                                            "materializationError"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    "secretKey": {
                                      "type": "string",
                                      "enum": [
                                        ""
                                      ]
                                    },
                                    "webhookSecret": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "enum": [
                                            ""
                                          ]
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "publishableKey",
                                    "redirectUrls",
                                    "secretKey"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "connect"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "id",
                            "updatedAt",
                            "conflicts",
                            "object",
                            "project",
                            "type",
                            "configuration"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "tombstoned": {
                          "type": "boolean",
                          "enum": [
                            true
                          ]
                        },
                        "tombstonedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "conflicts": {
                          "type": "object",
                          "properties": {
                            "clientData": {},
                            "serverData": {},
                            "conflictedAt": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "clientData",
                            "serverData",
                            "conflictedAt"
                          ],
                          "additionalProperties": false
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "external_billing_provider"
                          ]
                        },
                        "api": {
                          "type": "object",
                          "properties": {
                            "links": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "type": "object",
                                "properties": {
                                  "href": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "href"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "redactions": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "path": {
                                    "type": "string"
                                  },
                                  "reason": {
                                    "type": "string",
                                    "enum": [
                                      "secret",
                                      "internal"
                                    ]
                                  }
                                },
                                "required": [
                                  "path",
                                  "reason"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "additionalProperties": false
                        },
                        "project": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "appleAppStore",
                            "stripe"
                          ]
                        },
                        "configuration": {
                          "type": "null"
                        }
                      },
                      "required": [
                        "id",
                        "updatedAt",
                        "tombstoned",
                        "conflicts",
                        "object",
                        "project",
                        "type",
                        "configuration"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "appleAppStore"
                        ]
                      },
                      "configuration": {
                        "type": "object",
                        "properties": {
                          "appStoreConnect": {
                            "type": "object",
                            "properties": {
                              "issuerId": {
                                "type": "string"
                              },
                              "privateKeyId": {
                                "type": "string"
                              },
                              "credentialSources": {
                                "type": "object",
                                "properties": {
                                  "privateKey": {
                                    "type": "object",
                                    "properties": {
                                      "source": {
                                        "type": "string",
                                        "enum": [
                                          "onepassword"
                                        ]
                                      },
                                      "secretsIntegrationId": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "secretReference": {
                                        "type": "string",
                                        "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                      },
                                      "secretReferenceLabel": {
                                        "type": "string",
                                        "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                      },
                                      "materializedAt": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "date-time",
                                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "materializationError": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "source",
                                      "secretsIntegrationId",
                                      "secretReference",
                                      "secretReferenceLabel",
                                      "materializedAt",
                                      "materializationError"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "sharedSecret": {
                                    "type": "object",
                                    "properties": {
                                      "source": {
                                        "type": "string",
                                        "enum": [
                                          "onepassword"
                                        ]
                                      },
                                      "secretsIntegrationId": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "secretReference": {
                                        "type": "string",
                                        "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                      },
                                      "secretReferenceLabel": {
                                        "type": "string",
                                        "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                      },
                                      "materializedAt": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "date-time",
                                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "materializationError": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "source",
                                      "secretsIntegrationId",
                                      "secretReference",
                                      "secretReferenceLabel",
                                      "materializedAt",
                                      "materializationError"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "additionalProperties": false
                              },
                              "privateKey": {
                                "type": "string"
                              },
                              "sharedSecret": {
                                "type": "string"
                              },
                              "credentialSelections": {
                                "type": "object",
                                "properties": {
                                  "privateKey": {
                                    "oneOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "source": {
                                            "type": "string",
                                            "enum": [
                                              "unchanged"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "source"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "source": {
                                            "type": "string",
                                            "enum": [
                                              "inline"
                                            ]
                                          },
                                          "value": {
                                            "type": "string",
                                            "minLength": 1
                                          }
                                        },
                                        "required": [
                                          "source",
                                          "value"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "source": {
                                            "type": "string",
                                            "enum": [
                                              "onepassword"
                                            ]
                                          },
                                          "secretsIntegrationId": {
                                            "type": "string",
                                            "minLength": 1
                                          },
                                          "secretReference": {
                                            "type": "string",
                                            "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                          },
                                          "secretReferenceLabel": {
                                            "type": "string",
                                            "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                          }
                                        },
                                        "required": [
                                          "source",
                                          "secretsIntegrationId",
                                          "secretReference",
                                          "secretReferenceLabel"
                                        ],
                                        "additionalProperties": false
                                      }
                                    ]
                                  },
                                  "sharedSecret": {
                                    "oneOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "source": {
                                            "type": "string",
                                            "enum": [
                                              "unchanged"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "source"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "source": {
                                            "type": "string",
                                            "enum": [
                                              "inline"
                                            ]
                                          },
                                          "value": {
                                            "type": "string",
                                            "minLength": 1
                                          }
                                        },
                                        "required": [
                                          "source",
                                          "value"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "source": {
                                            "type": "string",
                                            "enum": [
                                              "onepassword"
                                            ]
                                          },
                                          "secretsIntegrationId": {
                                            "type": "string",
                                            "minLength": 1
                                          },
                                          "secretReference": {
                                            "type": "string",
                                            "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                          },
                                          "secretReferenceLabel": {
                                            "type": "string",
                                            "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                          }
                                        },
                                        "required": [
                                          "source",
                                          "secretsIntegrationId",
                                          "secretReference",
                                          "secretReferenceLabel"
                                        ],
                                        "additionalProperties": false
                                      }
                                    ]
                                  }
                                },
                                "additionalProperties": false
                              }
                            },
                            "required": [
                              "issuerId",
                              "privateKeyId",
                              "privateKey",
                              "sharedSecret"
                            ],
                            "additionalProperties": false
                          },
                          "fragile_appStoreConnect": {
                            "type": "object",
                            "properties": {
                              "bundleId": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "bundleId"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "appStoreConnect",
                          "fragile_appStoreConnect"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "type",
                      "configuration"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "stripe"
                        ]
                      },
                      "configuration": {
                        "type": "object",
                        "properties": {
                          "connect": {
                            "type": "object",
                            "properties": {
                              "publishableKey": {
                                "type": "string"
                              },
                              "webhookId": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "accountId": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "webhookApiVersion": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "redirectUrls": {
                                "default": [],
                                "anyOf": [
                                  {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "format": "uri"
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "credentialSources": {
                                "type": "object",
                                "properties": {
                                  "publishableKey": {
                                    "type": "object",
                                    "properties": {
                                      "source": {
                                        "type": "string",
                                        "enum": [
                                          "onepassword"
                                        ]
                                      },
                                      "secretsIntegrationId": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "secretReference": {
                                        "type": "string",
                                        "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                      },
                                      "secretReferenceLabel": {
                                        "type": "string",
                                        "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                      },
                                      "materializedAt": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "date-time",
                                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "materializationError": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "source",
                                      "secretsIntegrationId",
                                      "secretReference",
                                      "secretReferenceLabel",
                                      "materializedAt",
                                      "materializationError"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "secretKey": {
                                    "type": "object",
                                    "properties": {
                                      "source": {
                                        "type": "string",
                                        "enum": [
                                          "onepassword"
                                        ]
                                      },
                                      "secretsIntegrationId": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "secretReference": {
                                        "type": "string",
                                        "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                      },
                                      "secretReferenceLabel": {
                                        "type": "string",
                                        "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                      },
                                      "materializedAt": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "date-time",
                                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "materializationError": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "source",
                                      "secretsIntegrationId",
                                      "secretReference",
                                      "secretReferenceLabel",
                                      "materializedAt",
                                      "materializationError"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "additionalProperties": false
                              },
                              "secretKey": {
                                "type": "string"
                              },
                              "webhookSecret": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "credentialSelections": {
                                "type": "object",
                                "properties": {
                                  "publishableKey": {
                                    "oneOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "source": {
                                            "type": "string",
                                            "enum": [
                                              "unchanged"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "source"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "source": {
                                            "type": "string",
                                            "enum": [
                                              "inline"
                                            ]
                                          },
                                          "value": {
                                            "type": "string",
                                            "minLength": 1
                                          }
                                        },
                                        "required": [
                                          "source",
                                          "value"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "source": {
                                            "type": "string",
                                            "enum": [
                                              "onepassword"
                                            ]
                                          },
                                          "secretsIntegrationId": {
                                            "type": "string",
                                            "minLength": 1
                                          },
                                          "secretReference": {
                                            "type": "string",
                                            "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                          },
                                          "secretReferenceLabel": {
                                            "type": "string",
                                            "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                          }
                                        },
                                        "required": [
                                          "source",
                                          "secretsIntegrationId",
                                          "secretReference",
                                          "secretReferenceLabel"
                                        ],
                                        "additionalProperties": false
                                      }
                                    ]
                                  },
                                  "secretKey": {
                                    "oneOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "source": {
                                            "type": "string",
                                            "enum": [
                                              "unchanged"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "source"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "source": {
                                            "type": "string",
                                            "enum": [
                                              "inline"
                                            ]
                                          },
                                          "value": {
                                            "type": "string",
                                            "minLength": 1
                                          }
                                        },
                                        "required": [
                                          "source",
                                          "value"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "source": {
                                            "type": "string",
                                            "enum": [
                                              "onepassword"
                                            ]
                                          },
                                          "secretsIntegrationId": {
                                            "type": "string",
                                            "minLength": 1
                                          },
                                          "secretReference": {
                                            "type": "string",
                                            "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                          },
                                          "secretReferenceLabel": {
                                            "type": "string",
                                            "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                          }
                                        },
                                        "required": [
                                          "source",
                                          "secretsIntegrationId",
                                          "secretReference",
                                          "secretReferenceLabel"
                                        ],
                                        "additionalProperties": false
                                      }
                                    ]
                                  }
                                },
                                "additionalProperties": false
                              }
                            },
                            "required": [
                              "publishableKey",
                              "redirectUrls",
                              "secretKey"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "connect"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "type",
                      "configuration"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/admin/projects/{projectId}/billing-providers/{billingProviderId}": {
      "patch": {
        "summary": "Update an external billing provider",
        "operationId": "updateExternalBillingProvider",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "billingProviderId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "createdAt": {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            "updatedAt": {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            "tombstoned": {
                              "type": "boolean",
                              "enum": [
                                false
                              ]
                            },
                            "tombstonedAt": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "conflicts": {
                              "type": "object",
                              "properties": {
                                "clientData": {},
                                "serverData": {},
                                "conflictedAt": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "clientData",
                                "serverData",
                                "conflictedAt"
                              ],
                              "additionalProperties": false
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "external_billing_provider"
                              ]
                            },
                            "api": {
                              "type": "object",
                              "properties": {
                                "links": {
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string"
                                  },
                                  "additionalProperties": {
                                    "type": "object",
                                    "properties": {
                                      "href": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "href"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "redactions": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "path": {
                                        "type": "string"
                                      },
                                      "reason": {
                                        "type": "string",
                                        "enum": [
                                          "secret",
                                          "internal"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "path",
                                      "reason"
                                    ],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "additionalProperties": false
                            },
                            "project": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "appleAppStore"
                              ]
                            },
                            "configuration": {
                              "type": "object",
                              "properties": {
                                "appStoreConnect": {
                                  "type": "object",
                                  "properties": {
                                    "issuerId": {
                                      "type": "string"
                                    },
                                    "privateKeyId": {
                                      "type": "string"
                                    },
                                    "credentialSources": {
                                      "type": "object",
                                      "properties": {
                                        "privateKey": {
                                          "type": "object",
                                          "properties": {
                                            "source": {
                                              "type": "string",
                                              "enum": [
                                                "onepassword"
                                              ]
                                            },
                                            "secretsIntegrationId": {
                                              "type": "string",
                                              "minLength": 1
                                            },
                                            "secretReference": {
                                              "type": "string",
                                              "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                            },
                                            "secretReferenceLabel": {
                                              "type": "string",
                                              "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                            },
                                            "materializedAt": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "date-time",
                                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "materializationError": {
                                              "type": [
                                                "string",
                                                "null"
                                              ]
                                            }
                                          },
                                          "required": [
                                            "source",
                                            "secretsIntegrationId",
                                            "secretReference",
                                            "secretReferenceLabel",
                                            "materializedAt",
                                            "materializationError"
                                          ],
                                          "additionalProperties": false
                                        },
                                        "sharedSecret": {
                                          "type": "object",
                                          "properties": {
                                            "source": {
                                              "type": "string",
                                              "enum": [
                                                "onepassword"
                                              ]
                                            },
                                            "secretsIntegrationId": {
                                              "type": "string",
                                              "minLength": 1
                                            },
                                            "secretReference": {
                                              "type": "string",
                                              "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                            },
                                            "secretReferenceLabel": {
                                              "type": "string",
                                              "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                            },
                                            "materializedAt": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "date-time",
                                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "materializationError": {
                                              "type": [
                                                "string",
                                                "null"
                                              ]
                                            }
                                          },
                                          "required": [
                                            "source",
                                            "secretsIntegrationId",
                                            "secretReference",
                                            "secretReferenceLabel",
                                            "materializedAt",
                                            "materializationError"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    "privateKey": {
                                      "type": "string",
                                      "enum": [
                                        ""
                                      ]
                                    },
                                    "sharedSecret": {
                                      "type": "string",
                                      "enum": [
                                        ""
                                      ]
                                    }
                                  },
                                  "required": [
                                    "issuerId",
                                    "privateKeyId",
                                    "privateKey",
                                    "sharedSecret"
                                  ],
                                  "additionalProperties": false
                                },
                                "fragile_appStoreConnect": {
                                  "type": "object",
                                  "properties": {
                                    "bundleId": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "bundleId"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "appStoreConnect",
                                "fragile_appStoreConnect"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "id",
                            "updatedAt",
                            "conflicts",
                            "object",
                            "project",
                            "type",
                            "configuration"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "createdAt": {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            "updatedAt": {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            "tombstoned": {
                              "type": "boolean",
                              "enum": [
                                false
                              ]
                            },
                            "tombstonedAt": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "conflicts": {
                              "type": "object",
                              "properties": {
                                "clientData": {},
                                "serverData": {},
                                "conflictedAt": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "clientData",
                                "serverData",
                                "conflictedAt"
                              ],
                              "additionalProperties": false
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "external_billing_provider"
                              ]
                            },
                            "api": {
                              "type": "object",
                              "properties": {
                                "links": {
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string"
                                  },
                                  "additionalProperties": {
                                    "type": "object",
                                    "properties": {
                                      "href": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "href"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "redactions": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "path": {
                                        "type": "string"
                                      },
                                      "reason": {
                                        "type": "string",
                                        "enum": [
                                          "secret",
                                          "internal"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "path",
                                      "reason"
                                    ],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "additionalProperties": false
                            },
                            "project": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "stripe"
                              ]
                            },
                            "configuration": {
                              "type": "object",
                              "properties": {
                                "connect": {
                                  "type": "object",
                                  "properties": {
                                    "publishableKey": {
                                      "type": "string"
                                    },
                                    "webhookId": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "accountId": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "webhookApiVersion": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "redirectUrls": {
                                      "default": [],
                                      "anyOf": [
                                        {
                                          "type": "array",
                                          "items": {
                                            "type": "string",
                                            "format": "uri"
                                          }
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "credentialSources": {
                                      "type": "object",
                                      "properties": {
                                        "publishableKey": {
                                          "type": "object",
                                          "properties": {
                                            "source": {
                                              "type": "string",
                                              "enum": [
                                                "onepassword"
                                              ]
                                            },
                                            "secretsIntegrationId": {
                                              "type": "string",
                                              "minLength": 1
                                            },
                                            "secretReference": {
                                              "type": "string",
                                              "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                            },
                                            "secretReferenceLabel": {
                                              "type": "string",
                                              "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                            },
                                            "materializedAt": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "date-time",
                                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "materializationError": {
                                              "type": [
                                                "string",
                                                "null"
                                              ]
                                            }
                                          },
                                          "required": [
                                            "source",
                                            "secretsIntegrationId",
                                            "secretReference",
                                            "secretReferenceLabel",
                                            "materializedAt",
                                            "materializationError"
                                          ],
                                          "additionalProperties": false
                                        },
                                        "secretKey": {
                                          "type": "object",
                                          "properties": {
                                            "source": {
                                              "type": "string",
                                              "enum": [
                                                "onepassword"
                                              ]
                                            },
                                            "secretsIntegrationId": {
                                              "type": "string",
                                              "minLength": 1
                                            },
                                            "secretReference": {
                                              "type": "string",
                                              "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                            },
                                            "secretReferenceLabel": {
                                              "type": "string",
                                              "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                            },
                                            "materializedAt": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "date-time",
                                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "materializationError": {
                                              "type": [
                                                "string",
                                                "null"
                                              ]
                                            }
                                          },
                                          "required": [
                                            "source",
                                            "secretsIntegrationId",
                                            "secretReference",
                                            "secretReferenceLabel",
                                            "materializedAt",
                                            "materializationError"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    "secretKey": {
                                      "type": "string",
                                      "enum": [
                                        ""
                                      ]
                                    },
                                    "webhookSecret": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "enum": [
                                            ""
                                          ]
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "publishableKey",
                                    "redirectUrls",
                                    "secretKey"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "connect"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "id",
                            "updatedAt",
                            "conflicts",
                            "object",
                            "project",
                            "type",
                            "configuration"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "tombstoned": {
                          "type": "boolean",
                          "enum": [
                            true
                          ]
                        },
                        "tombstonedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "conflicts": {
                          "type": "object",
                          "properties": {
                            "clientData": {},
                            "serverData": {},
                            "conflictedAt": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "clientData",
                            "serverData",
                            "conflictedAt"
                          ],
                          "additionalProperties": false
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "external_billing_provider"
                          ]
                        },
                        "api": {
                          "type": "object",
                          "properties": {
                            "links": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "type": "object",
                                "properties": {
                                  "href": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "href"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "redactions": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "path": {
                                    "type": "string"
                                  },
                                  "reason": {
                                    "type": "string",
                                    "enum": [
                                      "secret",
                                      "internal"
                                    ]
                                  }
                                },
                                "required": [
                                  "path",
                                  "reason"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "additionalProperties": false
                        },
                        "project": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "appleAppStore",
                            "stripe"
                          ]
                        },
                        "configuration": {
                          "type": "null"
                        }
                      },
                      "required": [
                        "id",
                        "updatedAt",
                        "tombstoned",
                        "conflicts",
                        "object",
                        "project",
                        "type",
                        "configuration"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "appleAppStore"
                        ]
                      },
                      "configuration": {
                        "type": "object",
                        "properties": {
                          "appStoreConnect": {
                            "type": "object",
                            "properties": {
                              "issuerId": {
                                "type": "string"
                              },
                              "privateKeyId": {
                                "type": "string"
                              },
                              "credentialSources": {
                                "type": "object",
                                "properties": {
                                  "privateKey": {
                                    "type": "object",
                                    "properties": {
                                      "source": {
                                        "type": "string",
                                        "enum": [
                                          "onepassword"
                                        ]
                                      },
                                      "secretsIntegrationId": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "secretReference": {
                                        "type": "string",
                                        "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                      },
                                      "secretReferenceLabel": {
                                        "type": "string",
                                        "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                      },
                                      "materializedAt": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "date-time",
                                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "materializationError": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "source",
                                      "secretsIntegrationId",
                                      "secretReference",
                                      "secretReferenceLabel",
                                      "materializedAt",
                                      "materializationError"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "sharedSecret": {
                                    "type": "object",
                                    "properties": {
                                      "source": {
                                        "type": "string",
                                        "enum": [
                                          "onepassword"
                                        ]
                                      },
                                      "secretsIntegrationId": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "secretReference": {
                                        "type": "string",
                                        "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                      },
                                      "secretReferenceLabel": {
                                        "type": "string",
                                        "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                      },
                                      "materializedAt": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "date-time",
                                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "materializationError": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "source",
                                      "secretsIntegrationId",
                                      "secretReference",
                                      "secretReferenceLabel",
                                      "materializedAt",
                                      "materializationError"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "additionalProperties": false
                              },
                              "privateKey": {
                                "type": "string"
                              },
                              "sharedSecret": {
                                "type": "string"
                              },
                              "credentialSelections": {
                                "type": "object",
                                "properties": {
                                  "privateKey": {
                                    "oneOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "source": {
                                            "type": "string",
                                            "enum": [
                                              "unchanged"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "source"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "source": {
                                            "type": "string",
                                            "enum": [
                                              "inline"
                                            ]
                                          },
                                          "value": {
                                            "type": "string",
                                            "minLength": 1
                                          }
                                        },
                                        "required": [
                                          "source",
                                          "value"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "source": {
                                            "type": "string",
                                            "enum": [
                                              "onepassword"
                                            ]
                                          },
                                          "secretsIntegrationId": {
                                            "type": "string",
                                            "minLength": 1
                                          },
                                          "secretReference": {
                                            "type": "string",
                                            "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                          },
                                          "secretReferenceLabel": {
                                            "type": "string",
                                            "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                          }
                                        },
                                        "required": [
                                          "source",
                                          "secretsIntegrationId",
                                          "secretReference",
                                          "secretReferenceLabel"
                                        ],
                                        "additionalProperties": false
                                      }
                                    ]
                                  },
                                  "sharedSecret": {
                                    "oneOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "source": {
                                            "type": "string",
                                            "enum": [
                                              "unchanged"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "source"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "source": {
                                            "type": "string",
                                            "enum": [
                                              "inline"
                                            ]
                                          },
                                          "value": {
                                            "type": "string",
                                            "minLength": 1
                                          }
                                        },
                                        "required": [
                                          "source",
                                          "value"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "source": {
                                            "type": "string",
                                            "enum": [
                                              "onepassword"
                                            ]
                                          },
                                          "secretsIntegrationId": {
                                            "type": "string",
                                            "minLength": 1
                                          },
                                          "secretReference": {
                                            "type": "string",
                                            "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                          },
                                          "secretReferenceLabel": {
                                            "type": "string",
                                            "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                          }
                                        },
                                        "required": [
                                          "source",
                                          "secretsIntegrationId",
                                          "secretReference",
                                          "secretReferenceLabel"
                                        ],
                                        "additionalProperties": false
                                      }
                                    ]
                                  }
                                },
                                "additionalProperties": false
                              }
                            },
                            "required": [
                              "issuerId",
                              "privateKeyId",
                              "privateKey",
                              "sharedSecret"
                            ],
                            "additionalProperties": false
                          },
                          "fragile_appStoreConnect": {
                            "type": "object",
                            "properties": {
                              "bundleId": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "bundleId"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "appStoreConnect",
                          "fragile_appStoreConnect"
                        ],
                        "additionalProperties": false
                      },
                      "expectedUpdatedAt": {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                      }
                    },
                    "required": [
                      "type",
                      "configuration",
                      "expectedUpdatedAt"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "stripe"
                        ]
                      },
                      "configuration": {
                        "type": "object",
                        "properties": {
                          "connect": {
                            "type": "object",
                            "properties": {
                              "publishableKey": {
                                "type": "string"
                              },
                              "webhookId": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "accountId": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "webhookApiVersion": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "redirectUrls": {
                                "default": [],
                                "anyOf": [
                                  {
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "format": "uri"
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "credentialSources": {
                                "type": "object",
                                "properties": {
                                  "publishableKey": {
                                    "type": "object",
                                    "properties": {
                                      "source": {
                                        "type": "string",
                                        "enum": [
                                          "onepassword"
                                        ]
                                      },
                                      "secretsIntegrationId": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "secretReference": {
                                        "type": "string",
                                        "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                      },
                                      "secretReferenceLabel": {
                                        "type": "string",
                                        "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                      },
                                      "materializedAt": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "date-time",
                                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "materializationError": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "source",
                                      "secretsIntegrationId",
                                      "secretReference",
                                      "secretReferenceLabel",
                                      "materializedAt",
                                      "materializationError"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "secretKey": {
                                    "type": "object",
                                    "properties": {
                                      "source": {
                                        "type": "string",
                                        "enum": [
                                          "onepassword"
                                        ]
                                      },
                                      "secretsIntegrationId": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "secretReference": {
                                        "type": "string",
                                        "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                      },
                                      "secretReferenceLabel": {
                                        "type": "string",
                                        "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                      },
                                      "materializedAt": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "date-time",
                                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "materializationError": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "source",
                                      "secretsIntegrationId",
                                      "secretReference",
                                      "secretReferenceLabel",
                                      "materializedAt",
                                      "materializationError"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "additionalProperties": false
                              },
                              "secretKey": {
                                "type": "string"
                              },
                              "webhookSecret": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "credentialSelections": {
                                "type": "object",
                                "properties": {
                                  "publishableKey": {
                                    "oneOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "source": {
                                            "type": "string",
                                            "enum": [
                                              "unchanged"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "source"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "source": {
                                            "type": "string",
                                            "enum": [
                                              "inline"
                                            ]
                                          },
                                          "value": {
                                            "type": "string",
                                            "minLength": 1
                                          }
                                        },
                                        "required": [
                                          "source",
                                          "value"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "source": {
                                            "type": "string",
                                            "enum": [
                                              "onepassword"
                                            ]
                                          },
                                          "secretsIntegrationId": {
                                            "type": "string",
                                            "minLength": 1
                                          },
                                          "secretReference": {
                                            "type": "string",
                                            "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                          },
                                          "secretReferenceLabel": {
                                            "type": "string",
                                            "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                          }
                                        },
                                        "required": [
                                          "source",
                                          "secretsIntegrationId",
                                          "secretReference",
                                          "secretReferenceLabel"
                                        ],
                                        "additionalProperties": false
                                      }
                                    ]
                                  },
                                  "secretKey": {
                                    "oneOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "source": {
                                            "type": "string",
                                            "enum": [
                                              "unchanged"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "source"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "source": {
                                            "type": "string",
                                            "enum": [
                                              "inline"
                                            ]
                                          },
                                          "value": {
                                            "type": "string",
                                            "minLength": 1
                                          }
                                        },
                                        "required": [
                                          "source",
                                          "value"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "source": {
                                            "type": "string",
                                            "enum": [
                                              "onepassword"
                                            ]
                                          },
                                          "secretsIntegrationId": {
                                            "type": "string",
                                            "minLength": 1
                                          },
                                          "secretReference": {
                                            "type": "string",
                                            "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                          },
                                          "secretReferenceLabel": {
                                            "type": "string",
                                            "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                          }
                                        },
                                        "required": [
                                          "source",
                                          "secretsIntegrationId",
                                          "secretReference",
                                          "secretReferenceLabel"
                                        ],
                                        "additionalProperties": false
                                      }
                                    ]
                                  }
                                },
                                "additionalProperties": false
                              }
                            },
                            "required": [
                              "publishableKey",
                              "redirectUrls",
                              "secretKey"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "connect"
                        ],
                        "additionalProperties": false
                      },
                      "expectedUpdatedAt": {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                      }
                    },
                    "required": [
                      "type",
                      "configuration",
                      "expectedUpdatedAt"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "delete": {
        "summary": "Disconnect an external billing provider",
        "operationId": "disconnectExternalBillingProvider",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "billingProviderId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "createdAt": {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            "updatedAt": {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            "tombstoned": {
                              "type": "boolean",
                              "enum": [
                                false
                              ]
                            },
                            "tombstonedAt": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "conflicts": {
                              "type": "object",
                              "properties": {
                                "clientData": {},
                                "serverData": {},
                                "conflictedAt": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "clientData",
                                "serverData",
                                "conflictedAt"
                              ],
                              "additionalProperties": false
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "external_billing_provider"
                              ]
                            },
                            "api": {
                              "type": "object",
                              "properties": {
                                "links": {
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string"
                                  },
                                  "additionalProperties": {
                                    "type": "object",
                                    "properties": {
                                      "href": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "href"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "redactions": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "path": {
                                        "type": "string"
                                      },
                                      "reason": {
                                        "type": "string",
                                        "enum": [
                                          "secret",
                                          "internal"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "path",
                                      "reason"
                                    ],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "additionalProperties": false
                            },
                            "project": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "appleAppStore"
                              ]
                            },
                            "configuration": {
                              "type": "object",
                              "properties": {
                                "appStoreConnect": {
                                  "type": "object",
                                  "properties": {
                                    "issuerId": {
                                      "type": "string"
                                    },
                                    "privateKeyId": {
                                      "type": "string"
                                    },
                                    "credentialSources": {
                                      "type": "object",
                                      "properties": {
                                        "privateKey": {
                                          "type": "object",
                                          "properties": {
                                            "source": {
                                              "type": "string",
                                              "enum": [
                                                "onepassword"
                                              ]
                                            },
                                            "secretsIntegrationId": {
                                              "type": "string",
                                              "minLength": 1
                                            },
                                            "secretReference": {
                                              "type": "string",
                                              "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                            },
                                            "secretReferenceLabel": {
                                              "type": "string",
                                              "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                            },
                                            "materializedAt": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "date-time",
                                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "materializationError": {
                                              "type": [
                                                "string",
                                                "null"
                                              ]
                                            }
                                          },
                                          "required": [
                                            "source",
                                            "secretsIntegrationId",
                                            "secretReference",
                                            "secretReferenceLabel",
                                            "materializedAt",
                                            "materializationError"
                                          ],
                                          "additionalProperties": false
                                        },
                                        "sharedSecret": {
                                          "type": "object",
                                          "properties": {
                                            "source": {
                                              "type": "string",
                                              "enum": [
                                                "onepassword"
                                              ]
                                            },
                                            "secretsIntegrationId": {
                                              "type": "string",
                                              "minLength": 1
                                            },
                                            "secretReference": {
                                              "type": "string",
                                              "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                            },
                                            "secretReferenceLabel": {
                                              "type": "string",
                                              "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                            },
                                            "materializedAt": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "date-time",
                                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "materializationError": {
                                              "type": [
                                                "string",
                                                "null"
                                              ]
                                            }
                                          },
                                          "required": [
                                            "source",
                                            "secretsIntegrationId",
                                            "secretReference",
                                            "secretReferenceLabel",
                                            "materializedAt",
                                            "materializationError"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    "privateKey": {
                                      "type": "string",
                                      "enum": [
                                        ""
                                      ]
                                    },
                                    "sharedSecret": {
                                      "type": "string",
                                      "enum": [
                                        ""
                                      ]
                                    }
                                  },
                                  "required": [
                                    "issuerId",
                                    "privateKeyId",
                                    "privateKey",
                                    "sharedSecret"
                                  ],
                                  "additionalProperties": false
                                },
                                "fragile_appStoreConnect": {
                                  "type": "object",
                                  "properties": {
                                    "bundleId": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "bundleId"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "appStoreConnect",
                                "fragile_appStoreConnect"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "id",
                            "updatedAt",
                            "conflicts",
                            "object",
                            "project",
                            "type",
                            "configuration"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "createdAt": {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            "updatedAt": {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            "tombstoned": {
                              "type": "boolean",
                              "enum": [
                                false
                              ]
                            },
                            "tombstonedAt": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "conflicts": {
                              "type": "object",
                              "properties": {
                                "clientData": {},
                                "serverData": {},
                                "conflictedAt": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "clientData",
                                "serverData",
                                "conflictedAt"
                              ],
                              "additionalProperties": false
                            },
                            "object": {
                              "type": "string",
                              "enum": [
                                "external_billing_provider"
                              ]
                            },
                            "api": {
                              "type": "object",
                              "properties": {
                                "links": {
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string"
                                  },
                                  "additionalProperties": {
                                    "type": "object",
                                    "properties": {
                                      "href": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "href"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "redactions": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "path": {
                                        "type": "string"
                                      },
                                      "reason": {
                                        "type": "string",
                                        "enum": [
                                          "secret",
                                          "internal"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "path",
                                      "reason"
                                    ],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "additionalProperties": false
                            },
                            "project": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "stripe"
                              ]
                            },
                            "configuration": {
                              "type": "object",
                              "properties": {
                                "connect": {
                                  "type": "object",
                                  "properties": {
                                    "publishableKey": {
                                      "type": "string"
                                    },
                                    "webhookId": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "accountId": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "webhookApiVersion": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "redirectUrls": {
                                      "default": [],
                                      "anyOf": [
                                        {
                                          "type": "array",
                                          "items": {
                                            "type": "string",
                                            "format": "uri"
                                          }
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "credentialSources": {
                                      "type": "object",
                                      "properties": {
                                        "publishableKey": {
                                          "type": "object",
                                          "properties": {
                                            "source": {
                                              "type": "string",
                                              "enum": [
                                                "onepassword"
                                              ]
                                            },
                                            "secretsIntegrationId": {
                                              "type": "string",
                                              "minLength": 1
                                            },
                                            "secretReference": {
                                              "type": "string",
                                              "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                            },
                                            "secretReferenceLabel": {
                                              "type": "string",
                                              "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                            },
                                            "materializedAt": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "date-time",
                                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "materializationError": {
                                              "type": [
                                                "string",
                                                "null"
                                              ]
                                            }
                                          },
                                          "required": [
                                            "source",
                                            "secretsIntegrationId",
                                            "secretReference",
                                            "secretReferenceLabel",
                                            "materializedAt",
                                            "materializationError"
                                          ],
                                          "additionalProperties": false
                                        },
                                        "secretKey": {
                                          "type": "object",
                                          "properties": {
                                            "source": {
                                              "type": "string",
                                              "enum": [
                                                "onepassword"
                                              ]
                                            },
                                            "secretsIntegrationId": {
                                              "type": "string",
                                              "minLength": 1
                                            },
                                            "secretReference": {
                                              "type": "string",
                                              "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                            },
                                            "secretReferenceLabel": {
                                              "type": "string",
                                              "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                            },
                                            "materializedAt": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "date-time",
                                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "materializationError": {
                                              "type": [
                                                "string",
                                                "null"
                                              ]
                                            }
                                          },
                                          "required": [
                                            "source",
                                            "secretsIntegrationId",
                                            "secretReference",
                                            "secretReferenceLabel",
                                            "materializedAt",
                                            "materializationError"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      "additionalProperties": false
                                    },
                                    "secretKey": {
                                      "type": "string",
                                      "enum": [
                                        ""
                                      ]
                                    },
                                    "webhookSecret": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "enum": [
                                            ""
                                          ]
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "publishableKey",
                                    "redirectUrls",
                                    "secretKey"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "connect"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "id",
                            "updatedAt",
                            "conflicts",
                            "object",
                            "project",
                            "type",
                            "configuration"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "tombstoned": {
                          "type": "boolean",
                          "enum": [
                            true
                          ]
                        },
                        "tombstonedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "conflicts": {
                          "type": "object",
                          "properties": {
                            "clientData": {},
                            "serverData": {},
                            "conflictedAt": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "clientData",
                            "serverData",
                            "conflictedAt"
                          ],
                          "additionalProperties": false
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "external_billing_provider"
                          ]
                        },
                        "api": {
                          "type": "object",
                          "properties": {
                            "links": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "type": "object",
                                "properties": {
                                  "href": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "href"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "redactions": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "path": {
                                    "type": "string"
                                  },
                                  "reason": {
                                    "type": "string",
                                    "enum": [
                                      "secret",
                                      "internal"
                                    ]
                                  }
                                },
                                "required": [
                                  "path",
                                  "reason"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "additionalProperties": false
                        },
                        "project": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "appleAppStore",
                            "stripe"
                          ]
                        },
                        "configuration": {
                          "type": "null"
                        }
                      },
                      "required": [
                        "id",
                        "updatedAt",
                        "tombstoned",
                        "conflicts",
                        "object",
                        "project",
                        "type",
                        "configuration"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "expectedUpdatedAt": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                  }
                },
                "required": [
                  "expectedUpdatedAt"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/admin/projects/{projectId}/accounts": {
      "get": {
        "summary": "List provider accounts",
        "operationId": "listExternalServiceAccounts",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "createdAt": {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                      },
                      "updatedAt": {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                      },
                      "tombstoned": {
                        "type": "boolean"
                      },
                      "tombstonedAt": {
                        "anyOf": [
                          {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "conflicts": {
                        "type": "object",
                        "properties": {
                          "clientData": {},
                          "serverData": {},
                          "conflictedAt": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "clientData",
                          "serverData",
                          "conflictedAt"
                        ],
                        "additionalProperties": false
                      },
                      "object": {
                        "type": "string",
                        "enum": [
                          "external_service_account"
                        ]
                      },
                      "api": {
                        "type": "object",
                        "properties": {
                          "links": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "type": "object",
                              "properties": {
                                "href": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "href"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "redactions": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "path": {
                                  "type": "string"
                                },
                                "reason": {
                                  "type": "string",
                                  "enum": [
                                    "secret",
                                    "internal"
                                  ]
                                }
                              },
                              "required": [
                                "path",
                                "reason"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "additionalProperties": false
                      },
                      "serviceTypeIdentifier": {
                        "type": "string",
                        "enum": [
                          "anthropic",
                          "openai",
                          "preternatural-ai",
                          "typesafe-ai",
                          "elevenlabs",
                          "rime-ai",
                          "x-ai"
                        ]
                      },
                      "projectIds": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "apiKeyPreview": {
                        "type": "string"
                      },
                      "hasApiKey": {
                        "type": "boolean"
                      },
                      "credentialSource": {
                        "type": "string",
                        "enum": [
                          "inline",
                          "onepassword",
                          "subscription-sign-in"
                        ]
                      },
                      "secretsIntegrationId": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "secretReference": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "secretMaterializedAt": {
                        "anyOf": [
                          {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "secretMaterializationError": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "metadata": {
                        "type": "object",
                        "properties": {
                          "displayName": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "provider": {
                            "type": "string",
                            "enum": [
                              "anthropic",
                              "openai",
                              "preternatural-ai",
                              "typesafe-ai",
                              "elevenlabs",
                              "rime-ai",
                              "x-ai"
                            ]
                          },
                          "secretReferenceLabel": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "provider"
                        ],
                        "additionalProperties": false
                      },
                      "sandboxMode": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "id",
                      "conflicts",
                      "object",
                      "serviceTypeIdentifier",
                      "projectIds",
                      "apiKeyPreview",
                      "hasApiKey",
                      "metadata",
                      "sandboxMode"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "post": {
        "summary": "Create a provider account",
        "operationId": "createExternalServiceAccount",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "tombstoned": {
                      "type": "boolean"
                    },
                    "tombstonedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "conflicts": {
                      "type": "object",
                      "properties": {
                        "clientData": {},
                        "serverData": {},
                        "conflictedAt": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "clientData",
                        "serverData",
                        "conflictedAt"
                      ],
                      "additionalProperties": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "external_service_account"
                      ]
                    },
                    "api": {
                      "type": "object",
                      "properties": {
                        "links": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {
                            "type": "object",
                            "properties": {
                              "href": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "href"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "redactions": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "path": {
                                "type": "string"
                              },
                              "reason": {
                                "type": "string",
                                "enum": [
                                  "secret",
                                  "internal"
                                ]
                              }
                            },
                            "required": [
                              "path",
                              "reason"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "serviceTypeIdentifier": {
                      "type": "string",
                      "enum": [
                        "anthropic",
                        "openai",
                        "preternatural-ai",
                        "typesafe-ai",
                        "elevenlabs",
                        "rime-ai",
                        "x-ai"
                      ]
                    },
                    "projectIds": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "apiKeyPreview": {
                      "type": "string"
                    },
                    "hasApiKey": {
                      "type": "boolean"
                    },
                    "credentialSource": {
                      "type": "string",
                      "enum": [
                        "inline",
                        "onepassword",
                        "subscription-sign-in"
                      ]
                    },
                    "secretsIntegrationId": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "secretReference": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "secretMaterializedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "secretMaterializationError": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "metadata": {
                      "type": "object",
                      "properties": {
                        "displayName": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "provider": {
                          "type": "string",
                          "enum": [
                            "anthropic",
                            "openai",
                            "preternatural-ai",
                            "typesafe-ai",
                            "elevenlabs",
                            "rime-ai",
                            "x-ai"
                          ]
                        },
                        "secretReferenceLabel": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "provider"
                      ],
                      "additionalProperties": false
                    },
                    "sandboxMode": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "id",
                    "conflicts",
                    "object",
                    "serviceTypeIdentifier",
                    "projectIds",
                    "apiKeyPreview",
                    "hasApiKey",
                    "metadata",
                    "sandboxMode"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "serviceTypeIdentifier": {
                        "type": "string",
                        "enum": [
                          "anthropic",
                          "openai",
                          "preternatural-ai",
                          "typesafe-ai",
                          "elevenlabs",
                          "rime-ai",
                          "x-ai"
                        ]
                      },
                      "credentialSource": {
                        "type": "string",
                        "enum": [
                          "inline"
                        ]
                      },
                      "apiKey": {
                        "type": "string",
                        "minLength": 1
                      },
                      "metadata": {
                        "type": "object",
                        "properties": {
                          "displayName": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "serviceTypeIdentifier",
                      "credentialSource",
                      "apiKey"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "serviceTypeIdentifier": {
                        "type": "string",
                        "enum": [
                          "anthropic",
                          "openai",
                          "preternatural-ai",
                          "typesafe-ai",
                          "elevenlabs",
                          "rime-ai",
                          "x-ai"
                        ]
                      },
                      "credentialSource": {
                        "type": "string",
                        "enum": [
                          "onepassword"
                        ]
                      },
                      "secretsIntegrationId": {
                        "type": "string",
                        "minLength": 1
                      },
                      "secretReference": {
                        "type": "string",
                        "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                      },
                      "metadata": {
                        "type": "object",
                        "properties": {
                          "displayName": {
                            "type": "string"
                          },
                          "secretReferenceLabel": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "serviceTypeIdentifier",
                      "credentialSource",
                      "secretsIntegrationId",
                      "secretReference"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/admin/projects/{projectId}/accounts/{accountId}": {
      "get": {
        "summary": "Retrieve a provider account",
        "operationId": "retrieveExternalServiceAccount",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "tombstoned": {
                      "type": "boolean"
                    },
                    "tombstonedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "conflicts": {
                      "type": "object",
                      "properties": {
                        "clientData": {},
                        "serverData": {},
                        "conflictedAt": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "clientData",
                        "serverData",
                        "conflictedAt"
                      ],
                      "additionalProperties": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "external_service_account"
                      ]
                    },
                    "api": {
                      "type": "object",
                      "properties": {
                        "links": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {
                            "type": "object",
                            "properties": {
                              "href": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "href"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "redactions": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "path": {
                                "type": "string"
                              },
                              "reason": {
                                "type": "string",
                                "enum": [
                                  "secret",
                                  "internal"
                                ]
                              }
                            },
                            "required": [
                              "path",
                              "reason"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "serviceTypeIdentifier": {
                      "type": "string",
                      "enum": [
                        "anthropic",
                        "openai",
                        "preternatural-ai",
                        "typesafe-ai",
                        "elevenlabs",
                        "rime-ai",
                        "x-ai"
                      ]
                    },
                    "projectIds": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "apiKeyPreview": {
                      "type": "string"
                    },
                    "hasApiKey": {
                      "type": "boolean"
                    },
                    "credentialSource": {
                      "type": "string",
                      "enum": [
                        "inline",
                        "onepassword",
                        "subscription-sign-in"
                      ]
                    },
                    "secretsIntegrationId": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "secretReference": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "secretMaterializedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "secretMaterializationError": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "metadata": {
                      "type": "object",
                      "properties": {
                        "displayName": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "provider": {
                          "type": "string",
                          "enum": [
                            "anthropic",
                            "openai",
                            "preternatural-ai",
                            "typesafe-ai",
                            "elevenlabs",
                            "rime-ai",
                            "x-ai"
                          ]
                        },
                        "secretReferenceLabel": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "provider"
                      ],
                      "additionalProperties": false
                    },
                    "sandboxMode": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "id",
                    "conflicts",
                    "object",
                    "serviceTypeIdentifier",
                    "projectIds",
                    "apiKeyPreview",
                    "hasApiKey",
                    "metadata",
                    "sandboxMode"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "patch": {
        "summary": "Update a provider account",
        "operationId": "updateExternalServiceAccount",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "tombstoned": {
                      "type": "boolean"
                    },
                    "tombstonedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "conflicts": {
                      "type": "object",
                      "properties": {
                        "clientData": {},
                        "serverData": {},
                        "conflictedAt": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "clientData",
                        "serverData",
                        "conflictedAt"
                      ],
                      "additionalProperties": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "external_service_account"
                      ]
                    },
                    "api": {
                      "type": "object",
                      "properties": {
                        "links": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {
                            "type": "object",
                            "properties": {
                              "href": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "href"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "redactions": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "path": {
                                "type": "string"
                              },
                              "reason": {
                                "type": "string",
                                "enum": [
                                  "secret",
                                  "internal"
                                ]
                              }
                            },
                            "required": [
                              "path",
                              "reason"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "serviceTypeIdentifier": {
                      "type": "string",
                      "enum": [
                        "anthropic",
                        "openai",
                        "preternatural-ai",
                        "typesafe-ai",
                        "elevenlabs",
                        "rime-ai",
                        "x-ai"
                      ]
                    },
                    "projectIds": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "apiKeyPreview": {
                      "type": "string"
                    },
                    "hasApiKey": {
                      "type": "boolean"
                    },
                    "credentialSource": {
                      "type": "string",
                      "enum": [
                        "inline",
                        "onepassword",
                        "subscription-sign-in"
                      ]
                    },
                    "secretsIntegrationId": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "secretReference": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "secretMaterializedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "secretMaterializationError": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "metadata": {
                      "type": "object",
                      "properties": {
                        "displayName": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "provider": {
                          "type": "string",
                          "enum": [
                            "anthropic",
                            "openai",
                            "preternatural-ai",
                            "typesafe-ai",
                            "elevenlabs",
                            "rime-ai",
                            "x-ai"
                          ]
                        },
                        "secretReferenceLabel": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "provider"
                      ],
                      "additionalProperties": false
                    },
                    "sandboxMode": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "id",
                    "conflicts",
                    "object",
                    "serviceTypeIdentifier",
                    "projectIds",
                    "apiKeyPreview",
                    "hasApiKey",
                    "metadata",
                    "sandboxMode"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "serviceTypeIdentifier": {
                        "type": "string",
                        "enum": [
                          "anthropic",
                          "openai",
                          "preternatural-ai",
                          "typesafe-ai",
                          "elevenlabs",
                          "rime-ai",
                          "x-ai"
                        ]
                      },
                      "credentialSource": {
                        "type": "string",
                        "enum": [
                          "inline"
                        ]
                      },
                      "apiKey": {
                        "type": "string",
                        "minLength": 1
                      },
                      "metadata": {
                        "type": "object",
                        "properties": {
                          "displayName": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "serviceTypeIdentifier",
                      "credentialSource",
                      "apiKey"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "serviceTypeIdentifier": {
                        "type": "string",
                        "enum": [
                          "anthropic",
                          "openai",
                          "preternatural-ai",
                          "typesafe-ai",
                          "elevenlabs",
                          "rime-ai",
                          "x-ai"
                        ]
                      },
                      "credentialSource": {
                        "type": "string",
                        "enum": [
                          "onepassword"
                        ]
                      },
                      "secretsIntegrationId": {
                        "type": "string",
                        "minLength": 1
                      },
                      "secretReference": {
                        "type": "string",
                        "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                      },
                      "metadata": {
                        "type": "object",
                        "properties": {
                          "displayName": {
                            "type": "string"
                          },
                          "secretReferenceLabel": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "serviceTypeIdentifier",
                      "credentialSource",
                      "secretsIntegrationId",
                      "secretReference"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "delete": {
        "summary": "Delete a provider account",
        "operationId": "deleteExternalServiceAccount",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "success"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/admin/secrets-integrations": {
      "get": {
        "summary": "List secrets integrations",
        "operationId": "listSecretsIntegrations",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          "tombstoned": {
                            "type": "boolean"
                          },
                          "tombstonedAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "conflicts": {
                            "type": "object",
                            "properties": {
                              "clientData": {},
                              "serverData": {},
                              "conflictedAt": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "clientData",
                              "serverData",
                              "conflictedAt"
                            ],
                            "additionalProperties": false
                          },
                          "object": {
                            "type": "string",
                            "enum": [
                              "secrets_integration"
                            ]
                          },
                          "api": {
                            "type": "object",
                            "properties": {
                              "links": {
                                "type": "object",
                                "propertyNames": {
                                  "type": "string"
                                },
                                "additionalProperties": {
                                  "type": "object",
                                  "properties": {
                                    "href": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "href"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "redactions": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "path": {
                                      "type": "string"
                                    },
                                    "reason": {
                                      "type": "string",
                                      "enum": [
                                        "secret",
                                        "internal"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "path",
                                    "reason"
                                  ],
                                  "additionalProperties": false
                                }
                              }
                            },
                            "additionalProperties": false
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "onepassword-service-account"
                            ]
                          },
                          "configuration": {
                            "type": "object",
                            "properties": {
                              "serviceAccountTokenPreview": {
                                "type": "string"
                              },
                              "hasServiceAccountToken": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "serviceAccountTokenPreview",
                              "hasServiceAccountToken"
                            ],
                            "additionalProperties": false
                          },
                          "metadata": {
                            "type": "object",
                            "properties": {
                              "displayName": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "onePasswordNavigation": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "accountId": {
                                        "type": "string",
                                        "pattern": "^[a-z0-9]{26}$"
                                      },
                                      "signInHost": {
                                        "type": "string",
                                        "pattern": "^(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)*1password\\.(?:com|ca|eu)$"
                                      }
                                    },
                                    "required": [
                                      "accountId",
                                      "signInHost"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "additionalProperties": false
                          },
                          "lastSyncedAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "lastSyncError": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "accountCount": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "id",
                          "conflicts",
                          "object",
                          "kind",
                          "configuration",
                          "metadata"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "post": {
        "summary": "Create a secrets integration",
        "operationId": "createSecretsIntegration",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "tombstoned": {
                          "type": "boolean"
                        },
                        "tombstonedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "conflicts": {
                          "type": "object",
                          "properties": {
                            "clientData": {},
                            "serverData": {},
                            "conflictedAt": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "clientData",
                            "serverData",
                            "conflictedAt"
                          ],
                          "additionalProperties": false
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "secrets_integration"
                          ]
                        },
                        "api": {
                          "type": "object",
                          "properties": {
                            "links": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "type": "object",
                                "properties": {
                                  "href": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "href"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "redactions": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "path": {
                                    "type": "string"
                                  },
                                  "reason": {
                                    "type": "string",
                                    "enum": [
                                      "secret",
                                      "internal"
                                    ]
                                  }
                                },
                                "required": [
                                  "path",
                                  "reason"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "additionalProperties": false
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "onepassword-service-account"
                          ]
                        },
                        "configuration": {
                          "type": "object",
                          "properties": {
                            "serviceAccountTokenPreview": {
                              "type": "string"
                            },
                            "hasServiceAccountToken": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "serviceAccountTokenPreview",
                            "hasServiceAccountToken"
                          ],
                          "additionalProperties": false
                        },
                        "metadata": {
                          "type": "object",
                          "properties": {
                            "displayName": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "onePasswordNavigation": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "accountId": {
                                      "type": "string",
                                      "pattern": "^[a-z0-9]{26}$"
                                    },
                                    "signInHost": {
                                      "type": "string",
                                      "pattern": "^(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)*1password\\.(?:com|ca|eu)$"
                                    }
                                  },
                                  "required": [
                                    "accountId",
                                    "signInHost"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "additionalProperties": false
                        },
                        "lastSyncedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "lastSyncError": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "accountCount": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": [
                        "id",
                        "conflicts",
                        "object",
                        "kind",
                        "configuration",
                        "metadata"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "onepassword-service-account"
                        ]
                      },
                      "configuration": {
                        "type": "object",
                        "properties": {
                          "serviceAccountToken": {
                            "type": "string",
                            "minLength": 1
                          }
                        },
                        "required": [
                          "serviceAccountToken"
                        ],
                        "additionalProperties": false
                      },
                      "metadata": {
                        "type": "object",
                        "properties": {
                          "displayName": {
                            "type": "string"
                          },
                          "onePasswordNavigation": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "accountId": {
                                    "type": "string",
                                    "pattern": "^[a-z0-9]{26}$"
                                  },
                                  "signInHost": {
                                    "type": "string",
                                    "pattern": "^(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)*1password\\.(?:com|ca|eu)$"
                                  }
                                },
                                "required": [
                                  "accountId",
                                  "signInHost"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "kind",
                      "configuration"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/admin/secrets-integrations/{integrationId}": {
      "get": {
        "summary": "Retrieve a secrets integration",
        "operationId": "retrieveSecretsIntegration",
        "parameters": [
          {
            "name": "integrationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "tombstoned": {
                          "type": "boolean"
                        },
                        "tombstonedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "conflicts": {
                          "type": "object",
                          "properties": {
                            "clientData": {},
                            "serverData": {},
                            "conflictedAt": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "clientData",
                            "serverData",
                            "conflictedAt"
                          ],
                          "additionalProperties": false
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "secrets_integration"
                          ]
                        },
                        "api": {
                          "type": "object",
                          "properties": {
                            "links": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "type": "object",
                                "properties": {
                                  "href": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "href"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "redactions": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "path": {
                                    "type": "string"
                                  },
                                  "reason": {
                                    "type": "string",
                                    "enum": [
                                      "secret",
                                      "internal"
                                    ]
                                  }
                                },
                                "required": [
                                  "path",
                                  "reason"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "additionalProperties": false
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "onepassword-service-account"
                          ]
                        },
                        "configuration": {
                          "type": "object",
                          "properties": {
                            "serviceAccountTokenPreview": {
                              "type": "string"
                            },
                            "hasServiceAccountToken": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "serviceAccountTokenPreview",
                            "hasServiceAccountToken"
                          ],
                          "additionalProperties": false
                        },
                        "metadata": {
                          "type": "object",
                          "properties": {
                            "displayName": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "onePasswordNavigation": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "accountId": {
                                      "type": "string",
                                      "pattern": "^[a-z0-9]{26}$"
                                    },
                                    "signInHost": {
                                      "type": "string",
                                      "pattern": "^(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)*1password\\.(?:com|ca|eu)$"
                                    }
                                  },
                                  "required": [
                                    "accountId",
                                    "signInHost"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "additionalProperties": false
                        },
                        "lastSyncedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "lastSyncError": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "accountCount": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": [
                        "id",
                        "conflicts",
                        "object",
                        "kind",
                        "configuration",
                        "metadata"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "delete": {
        "summary": "Delete a secrets integration",
        "operationId": "deleteSecretsIntegration",
        "parameters": [
          {
            "name": "integrationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "tombstoned": {
                          "type": "boolean"
                        },
                        "tombstonedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "conflicts": {
                          "type": "object",
                          "properties": {
                            "clientData": {},
                            "serverData": {},
                            "conflictedAt": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "clientData",
                            "serverData",
                            "conflictedAt"
                          ],
                          "additionalProperties": false
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "secrets_integration"
                          ]
                        },
                        "api": {
                          "type": "object",
                          "properties": {
                            "links": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "type": "object",
                                "properties": {
                                  "href": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "href"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "redactions": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "path": {
                                    "type": "string"
                                  },
                                  "reason": {
                                    "type": "string",
                                    "enum": [
                                      "secret",
                                      "internal"
                                    ]
                                  }
                                },
                                "required": [
                                  "path",
                                  "reason"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "additionalProperties": false
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "onepassword-service-account"
                          ]
                        },
                        "configuration": {
                          "type": "object",
                          "properties": {
                            "serviceAccountTokenPreview": {
                              "type": "string"
                            },
                            "hasServiceAccountToken": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "serviceAccountTokenPreview",
                            "hasServiceAccountToken"
                          ],
                          "additionalProperties": false
                        },
                        "metadata": {
                          "type": "object",
                          "properties": {
                            "displayName": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "onePasswordNavigation": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "accountId": {
                                      "type": "string",
                                      "pattern": "^[a-z0-9]{26}$"
                                    },
                                    "signInHost": {
                                      "type": "string",
                                      "pattern": "^(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)*1password\\.(?:com|ca|eu)$"
                                    }
                                  },
                                  "required": [
                                    "accountId",
                                    "signInHost"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "additionalProperties": false
                        },
                        "lastSyncedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "lastSyncError": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "accountCount": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": [
                        "id",
                        "conflicts",
                        "object",
                        "kind",
                        "configuration",
                        "metadata"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/admin/secrets-integrations/{integrationId}/sync": {
      "post": {
        "summary": "Refresh account and provider credential fields from a secrets integration",
        "operationId": "syncSecretsIntegration",
        "parameters": [
          {
            "name": "integrationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "targetsChecked": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "targetsUpdated": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "superseded": {
                      "type": "boolean"
                    },
                    "failures": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "target": {
                            "type": "string"
                          },
                          "message": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "target",
                          "message"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "targetsChecked",
                    "targetsUpdated",
                    "failures"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/admin/secrets-integrations/{integrationId}/vaults": {
      "get": {
        "summary": "List a secrets integration's vaults",
        "operationId": "listSecretsIntegrationVaults",
        "parameters": [
          {
            "name": "integrationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "title"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/admin/secrets-integrations/{integrationId}/items": {
      "get": {
        "summary": "List the items in a secrets integration's vault",
        "operationId": "listSecretsIntegrationVaultItems",
        "parameters": [
          {
            "name": "integrationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "vault",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "title": {
                        "type": "string"
                      },
                      "vaultId": {
                        "type": "string"
                      },
                      "category": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "title",
                      "vaultId",
                      "category"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/admin/subscription-signin": {
      "get": {
        "summary": "List subscription sign-ins",
        "operationId": "listSubscriptionSignIns",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "signIns": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "realm": {
                            "type": "string"
                          },
                          "principalId": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "source": {
                            "type": "string",
                            "enum": [
                              "managed",
                              "local"
                            ]
                          },
                          "expiresAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "pending": {
                            "type": "boolean"
                          },
                          "relayCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "id",
                          "realm",
                          "principalId",
                          "source",
                          "expiresAt",
                          "pending",
                          "relayCount"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "signIns"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/admin/subscription-signin/import": {
      "post": {
        "summary": "Import a coding-harness subscription sign-in",
        "operationId": "importSubscriptionSignIn",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "enum": [
                            "imported"
                          ]
                        },
                        "signIn": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "realm": {
                              "type": "string"
                            },
                            "principalId": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "source": {
                              "type": "string",
                              "enum": [
                                "managed",
                                "local"
                              ]
                            },
                            "expiresAt": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "pending": {
                              "type": "boolean"
                            },
                            "relayCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "id",
                            "realm",
                            "principalId",
                            "source",
                            "expiresAt",
                            "pending",
                            "relayCount"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "status",
                        "signIn"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "enum": [
                            "duplicate"
                          ]
                        },
                        "signIns": {
                          "minItems": 1,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "realm": {
                                "type": "string"
                              },
                              "principalId": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "source": {
                                "type": "string",
                                "enum": [
                                  "managed",
                                  "local"
                                ]
                              },
                              "expiresAt": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "pending": {
                                "type": "boolean"
                              },
                              "relayCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": [
                              "id",
                              "realm",
                              "principalId",
                              "source",
                              "expiresAt",
                              "pending",
                              "relayCount"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "status",
                        "signIns"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "format": {
                    "type": "string",
                    "enum": [
                      "codex:auth-json",
                      "grok:auth-json",
                      "claude:credentials-json"
                    ]
                  },
                  "authJson": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "accountMetadata": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "choice": {
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "action": {
                            "type": "string",
                            "enum": [
                              "add"
                            ]
                          }
                        },
                        "required": [
                          "action"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "action": {
                            "type": "string",
                            "enum": [
                              "update"
                            ]
                          },
                          "signInId": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                          }
                        },
                        "required": [
                          "action",
                          "signInId"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  }
                },
                "required": [
                  "format",
                  "authJson"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/admin/subscription-signin/import-codex": {
      "post": {
        "summary": "Import an existing Codex ChatGPT sign-in",
        "operationId": "importCodexSubscriptionSignIn",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "enum": [
                            "imported"
                          ]
                        },
                        "signIn": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "realm": {
                              "type": "string"
                            },
                            "principalId": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "source": {
                              "type": "string",
                              "enum": [
                                "managed",
                                "local"
                              ]
                            },
                            "expiresAt": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "pending": {
                              "type": "boolean"
                            },
                            "relayCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "id",
                            "realm",
                            "principalId",
                            "source",
                            "expiresAt",
                            "pending",
                            "relayCount"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "status",
                        "signIn"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "type": "string",
                          "enum": [
                            "duplicate"
                          ]
                        },
                        "signIns": {
                          "minItems": 1,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "realm": {
                                "type": "string"
                              },
                              "principalId": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "source": {
                                "type": "string",
                                "enum": [
                                  "managed",
                                  "local"
                                ]
                              },
                              "expiresAt": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "pending": {
                                "type": "boolean"
                              },
                              "relayCount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": [
                              "id",
                              "realm",
                              "principalId",
                              "source",
                              "expiresAt",
                              "pending",
                              "relayCount"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "status",
                        "signIns"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "authJson": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "accountMetadata": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "choice": {
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "action": {
                            "type": "string",
                            "enum": [
                              "add"
                            ]
                          }
                        },
                        "required": [
                          "action"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "action": {
                            "type": "string",
                            "enum": [
                              "update"
                            ]
                          },
                          "signInId": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                          }
                        },
                        "required": [
                          "action",
                          "signInId"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  }
                },
                "required": [
                  "authJson"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/admin/subscription-signin/claude-quota": {
      "post": {
        "summary": "Report subscription quotas from a local Claude Code session",
        "operationId": "reportClaudeQuota",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "signInId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    }
                  },
                  "required": [
                    "signInId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "rate_limits": {
                        "type": "object",
                        "properties": {
                          "five_hour": {
                            "type": "object",
                            "properties": {
                              "used_percentage": {
                                "type": "number",
                                "minimum": 0
                              },
                              "resets_at": {
                                "type": "integer",
                                "exclusiveMinimum": 0,
                                "maximum": 8640000000000
                              }
                            },
                            "required": [
                              "used_percentage",
                              "resets_at"
                            ],
                            "additionalProperties": false
                          },
                          "seven_day": {
                            "type": "object",
                            "properties": {
                              "used_percentage": {
                                "type": "number",
                                "minimum": 0
                              },
                              "resets_at": {
                                "type": "integer",
                                "exclusiveMinimum": 0,
                                "maximum": 8640000000000
                              }
                            },
                            "required": [
                              "used_percentage",
                              "resets_at"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "additionalProperties": false
                      },
                      "source": {
                        "type": "string",
                        "enum": [
                          "status-line"
                        ]
                      },
                      "installationId": {
                        "type": "string",
                        "pattern": "^[a-zA-Z0-9_-]{1,64}$"
                      }
                    },
                    "required": [
                      "rate_limits",
                      "source",
                      "installationId"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "source": {
                        "type": "string",
                        "enum": [
                          "agent-sdk"
                        ]
                      },
                      "installationId": {
                        "type": "string",
                        "pattern": "^[a-zA-Z0-9_-]{1,64}$"
                      },
                      "usage": {
                        "type": "object",
                        "properties": {
                          "rate_limits_available": {
                            "type": "boolean"
                          },
                          "rate_limits": {
                            "anyOf": [
                              {
                                "type": "object",
                                "propertyNames": {
                                  "type": "string"
                                },
                                "additionalProperties": {}
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "rate_limits_available"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "source",
                      "installationId",
                      "usage"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/admin/subscription-signin/{signInId}/account": {
      "post": {
        "summary": "Read a subscription sign-in's account, renewing its token if needed",
        "operationId": "inspectSubscriptionSignInAccount",
        "parameters": [
          {
            "name": "signInId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "signInId": {
                      "type": "string"
                    },
                    "account": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "status": {
                              "type": "string",
                              "enum": [
                                "available"
                              ]
                            },
                            "plan": {
                              "type": "string"
                            },
                            "accountLimits": {},
                            "paidCredits": {
                              "type": "object",
                              "properties": {
                                "hasCredits": {
                                  "type": "boolean"
                                },
                                "unlimited": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "hasCredits",
                                "unlimited"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "status",
                            "accountLimits"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "status": {
                              "type": "string",
                              "enum": [
                                "rejected"
                              ]
                            },
                            "reason": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "status",
                            "reason"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "status": {
                              "type": "string",
                              "enum": [
                                "failed"
                              ]
                            },
                            "kind": {
                              "type": "string",
                              "enum": [
                                "http",
                                "network",
                                "parse",
                                "aborted"
                              ]
                            },
                            "reason": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "status",
                            "kind",
                            "reason"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "required": [
                    "signInId",
                    "account"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/admin/subscription-signin/{signInId}/chat": {
      "post": {
        "summary": "Chat with a subscription sign-in",
        "operationId": "chatWithSubscriptionSignIn",
        "parameters": [
          {
            "name": "signInId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "signInId": {
                      "type": "string"
                    },
                    "principalId": {
                      "type": "string"
                    },
                    "reply": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "signInId",
                    "principalId",
                    "reply"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "prompt": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 4000
                  }
                },
                "required": [
                  "prompt"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/admin/subscription-relays": {
      "get": {
        "summary": "List subscription relays",
        "operationId": "listSubscriptionRelays",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "relays": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "realm": {
                            "type": "string"
                          },
                          "signInIds": {
                            "minItems": 1,
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "membershipRevision": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "signedIn": {
                            "type": "boolean"
                          },
                          "projectId": {
                            "type": "string"
                          },
                          "baseUrl": {
                            "type": "string",
                            "format": "uri"
                          },
                          "clientSetup": {
                            "type": "object",
                            "properties": {
                              "client": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "name"
                                ],
                                "additionalProperties": false
                              },
                              "steps": {
                                "type": "array",
                                "items": {
                                  "oneOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "enum": [
                                            "credential"
                                          ]
                                        },
                                        "environmentVariable": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "environmentVariable"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "enum": [
                                            "configuration"
                                          ]
                                        },
                                        "path": {
                                          "type": "string"
                                        },
                                        "language": {
                                          "type": "string",
                                          "enum": [
                                            "toml"
                                          ]
                                        },
                                        "content": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "path",
                                        "language",
                                        "content"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "enum": [
                                            "shell"
                                          ]
                                        },
                                        "language": {
                                          "type": "string",
                                          "enum": [
                                            "sh"
                                          ]
                                        },
                                        "content": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "language",
                                        "content"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "enum": [
                                            "command"
                                          ]
                                        },
                                        "content": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "content"
                                      ],
                                      "additionalProperties": false
                                    }
                                  ]
                                }
                              },
                              "copyText": {
                                "type": "string"
                              },
                              "notes": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "enum": [
                                    "separate-cli-home"
                                  ]
                                }
                              }
                            },
                            "required": [
                              "client",
                              "steps",
                              "copyText",
                              "notes"
                            ],
                            "additionalProperties": false
                          },
                          "keyPreview": {
                            "type": "string"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                          },
                          "lastUsedAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "realm",
                          "signInIds",
                          "membershipRevision",
                          "signedIn",
                          "projectId",
                          "baseUrl",
                          "keyPreview",
                          "createdAt",
                          "lastUsedAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "relays"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "post": {
        "summary": "Create a subscription relay and return its key once",
        "operationId": "createSubscriptionRelay",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "relay": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "realm": {
                          "type": "string"
                        },
                        "signInIds": {
                          "minItems": 1,
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "membershipRevision": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "signedIn": {
                          "type": "boolean"
                        },
                        "projectId": {
                          "type": "string"
                        },
                        "baseUrl": {
                          "type": "string",
                          "format": "uri"
                        },
                        "clientSetup": {
                          "type": "object",
                          "properties": {
                            "client": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "id",
                                "name"
                              ],
                              "additionalProperties": false
                            },
                            "steps": {
                              "type": "array",
                              "items": {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "enum": [
                                          "credential"
                                        ]
                                      },
                                      "environmentVariable": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "environmentVariable"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "enum": [
                                          "configuration"
                                        ]
                                      },
                                      "path": {
                                        "type": "string"
                                      },
                                      "language": {
                                        "type": "string",
                                        "enum": [
                                          "toml"
                                        ]
                                      },
                                      "content": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "path",
                                      "language",
                                      "content"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "enum": [
                                          "shell"
                                        ]
                                      },
                                      "language": {
                                        "type": "string",
                                        "enum": [
                                          "sh"
                                        ]
                                      },
                                      "content": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "language",
                                      "content"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "enum": [
                                          "command"
                                        ]
                                      },
                                      "content": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "content"
                                    ],
                                    "additionalProperties": false
                                  }
                                ]
                              }
                            },
                            "copyText": {
                              "type": "string"
                            },
                            "notes": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "separate-cli-home"
                                ]
                              }
                            }
                          },
                          "required": [
                            "client",
                            "steps",
                            "copyText",
                            "notes"
                          ],
                          "additionalProperties": false
                        },
                        "keyPreview": {
                          "type": "string"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        },
                        "lastUsedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "realm",
                        "signInIds",
                        "membershipRevision",
                        "signedIn",
                        "projectId",
                        "baseUrl",
                        "keyPreview",
                        "createdAt",
                        "lastUsedAt"
                      ],
                      "additionalProperties": false
                    },
                    "relayKey": {
                      "type": "string"
                    },
                    "credentialCommand": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "relay",
                    "relayKey"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "signInIds": {
                    "minItems": 1,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    }
                  },
                  "memberOptions": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "credits": {
                          "type": "object",
                          "properties": {
                            "useWhenExhausted": {
                              "type": "boolean"
                            },
                            "timing": {
                              "type": "string",
                              "enum": [
                                "immediate",
                                "deferred"
                              ]
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "signInIds"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/admin/subscription-relays/{relayId}/membership": {
      "get": {
        "summary": "Read ordered relay membership",
        "operationId": "getSubscriptionRelayMembership",
        "parameters": [
          {
            "name": "relayId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "realm": {
                      "type": "string"
                    },
                    "provider": {
                      "type": "string",
                      "enum": [
                        "anthropic",
                        "openai",
                        "preternatural-ai",
                        "typesafe-ai",
                        "elevenlabs",
                        "rime-ai",
                        "x-ai"
                      ]
                    },
                    "revision": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "primarySignInId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "subscriptions": {
                      "minItems": 1,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                          },
                          "principalId": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "email": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "signedIn": {
                            "type": "boolean"
                          },
                          "options": {
                            "type": "object",
                            "properties": {
                              "credits": {
                                "type": "object",
                                "properties": {
                                  "useWhenExhausted": {
                                    "type": "boolean"
                                  },
                                  "timing": {
                                    "type": "string",
                                    "enum": [
                                      "immediate",
                                      "deferred"
                                    ]
                                  }
                                },
                                "additionalProperties": false
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "id",
                          "principalId",
                          "email",
                          "signedIn"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "realm",
                    "provider",
                    "revision",
                    "primarySignInId",
                    "subscriptions"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "patch": {
        "summary": "Replace ordered relay membership",
        "operationId": "updateSubscriptionRelayMembership",
        "parameters": [
          {
            "name": "relayId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "realm": {
                      "type": "string"
                    },
                    "provider": {
                      "type": "string",
                      "enum": [
                        "anthropic",
                        "openai",
                        "preternatural-ai",
                        "typesafe-ai",
                        "elevenlabs",
                        "rime-ai",
                        "x-ai"
                      ]
                    },
                    "revision": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "primarySignInId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "subscriptions": {
                      "minItems": 1,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                          },
                          "principalId": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "email": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "signedIn": {
                            "type": "boolean"
                          },
                          "options": {
                            "type": "object",
                            "properties": {
                              "credits": {
                                "type": "object",
                                "properties": {
                                  "useWhenExhausted": {
                                    "type": "boolean"
                                  },
                                  "timing": {
                                    "type": "string",
                                    "enum": [
                                      "immediate",
                                      "deferred"
                                    ]
                                  }
                                },
                                "additionalProperties": false
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "id",
                          "principalId",
                          "email",
                          "signedIn"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "realm",
                    "provider",
                    "revision",
                    "primarySignInId",
                    "subscriptions"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "expectedRevision": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "signInIds": {
                    "minItems": 1,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    }
                  },
                  "memberOptions": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "credits": {
                          "type": "object",
                          "properties": {
                            "useWhenExhausted": {
                              "type": "boolean"
                            },
                            "timing": {
                              "type": "string",
                              "enum": [
                                "immediate",
                                "deferred"
                              ]
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "expectedRevision",
                  "signInIds"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/admin/subscription-relays/{relayId}": {
      "delete": {
        "summary": "Revoke a subscription relay",
        "operationId": "revokeSubscriptionRelay",
        "parameters": [
          {
            "name": "relayId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "success"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/admin/projects/{projectId}/products": {
      "get": {
        "summary": "List products",
        "operationId": "listProducts",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "createdAt": {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                      },
                      "updatedAt": {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                      },
                      "tombstoned": {
                        "type": "boolean"
                      },
                      "tombstonedAt": {
                        "anyOf": [
                          {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "conflicts": {
                        "type": "object",
                        "properties": {
                          "clientData": {},
                          "serverData": {},
                          "conflictedAt": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "clientData",
                          "serverData",
                          "conflictedAt"
                        ],
                        "additionalProperties": false
                      },
                      "object": {
                        "type": "string",
                        "enum": [
                          "product"
                        ]
                      },
                      "api": {
                        "type": "object",
                        "properties": {
                          "links": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "type": "object",
                              "properties": {
                                "href": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "href"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "redactions": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "path": {
                                  "type": "string"
                                },
                                "reason": {
                                  "type": "string",
                                  "enum": [
                                    "secret",
                                    "internal"
                                  ]
                                }
                              },
                              "required": [
                                "path",
                                "reason"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "additionalProperties": false
                      },
                      "sku": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "metadata": {
                        "type": "object",
                        "properties": {
                          "displayName": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": {}
                      },
                      "project": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string",
                        "enum": [
                          "free",
                          "paid"
                        ]
                      },
                      "billingInterval": {
                        "type": "string",
                        "enum": [
                          "daily",
                          "weekly",
                          "monthly",
                          "yearly",
                          "infinite"
                        ]
                      },
                      "sandboxMode": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "id",
                      "conflicts",
                      "object",
                      "sku",
                      "metadata",
                      "project",
                      "type",
                      "billingInterval",
                      "sandboxMode"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "post": {
        "summary": "Create a product",
        "operationId": "createProduct",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "tombstoned": {
                      "type": "boolean"
                    },
                    "tombstonedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "conflicts": {
                      "type": "object",
                      "properties": {
                        "clientData": {},
                        "serverData": {},
                        "conflictedAt": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "clientData",
                        "serverData",
                        "conflictedAt"
                      ],
                      "additionalProperties": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "product"
                      ]
                    },
                    "api": {
                      "type": "object",
                      "properties": {
                        "links": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {
                            "type": "object",
                            "properties": {
                              "href": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "href"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "redactions": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "path": {
                                "type": "string"
                              },
                              "reason": {
                                "type": "string",
                                "enum": [
                                  "secret",
                                  "internal"
                                ]
                              }
                            },
                            "required": [
                              "path",
                              "reason"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "sku": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "metadata": {
                      "type": "object",
                      "properties": {
                        "displayName": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": {}
                    },
                    "project": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "free",
                        "paid"
                      ]
                    },
                    "billingInterval": {
                      "type": "string",
                      "enum": [
                        "daily",
                        "weekly",
                        "monthly",
                        "yearly",
                        "infinite"
                      ]
                    },
                    "sandboxMode": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "id",
                    "conflicts",
                    "object",
                    "sku",
                    "metadata",
                    "project",
                    "type",
                    "billingInterval",
                    "sandboxMode"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "sku": {
                    "type": "string",
                    "minLength": 1
                  },
                  "billingInterval": {
                    "type": "string",
                    "enum": [
                      "daily",
                      "weekly",
                      "monthly",
                      "yearly",
                      "infinite"
                    ]
                  },
                  "metadata": {
                    "default": {},
                    "type": "object",
                    "properties": {
                      "displayName": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": {}
                  }
                },
                "required": [
                  "sku",
                  "billingInterval",
                  "metadata"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/admin/projects/{projectId}/products/{productId}": {
      "get": {
        "summary": "Retrieve a product",
        "operationId": "retrieveProduct",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "productId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "tombstoned": {
                      "type": "boolean"
                    },
                    "tombstonedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "conflicts": {
                      "type": "object",
                      "properties": {
                        "clientData": {},
                        "serverData": {},
                        "conflictedAt": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "clientData",
                        "serverData",
                        "conflictedAt"
                      ],
                      "additionalProperties": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "product"
                      ]
                    },
                    "api": {
                      "type": "object",
                      "properties": {
                        "links": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {
                            "type": "object",
                            "properties": {
                              "href": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "href"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "redactions": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "path": {
                                "type": "string"
                              },
                              "reason": {
                                "type": "string",
                                "enum": [
                                  "secret",
                                  "internal"
                                ]
                              }
                            },
                            "required": [
                              "path",
                              "reason"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "sku": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "metadata": {
                      "type": "object",
                      "properties": {
                        "displayName": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": {}
                    },
                    "project": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "free",
                        "paid"
                      ]
                    },
                    "billingInterval": {
                      "type": "string",
                      "enum": [
                        "daily",
                        "weekly",
                        "monthly",
                        "yearly",
                        "infinite"
                      ]
                    },
                    "sandboxMode": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "id",
                    "conflicts",
                    "object",
                    "sku",
                    "metadata",
                    "project",
                    "type",
                    "billingInterval",
                    "sandboxMode"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "patch": {
        "summary": "Update a product",
        "operationId": "updateProduct",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "productId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "tombstoned": {
                      "type": "boolean"
                    },
                    "tombstonedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "conflicts": {
                      "type": "object",
                      "properties": {
                        "clientData": {},
                        "serverData": {},
                        "conflictedAt": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "clientData",
                        "serverData",
                        "conflictedAt"
                      ],
                      "additionalProperties": false
                    },
                    "object": {
                      "type": "string",
                      "enum": [
                        "product"
                      ]
                    },
                    "api": {
                      "type": "object",
                      "properties": {
                        "links": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {
                            "type": "object",
                            "properties": {
                              "href": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "href"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "redactions": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "path": {
                                "type": "string"
                              },
                              "reason": {
                                "type": "string",
                                "enum": [
                                  "secret",
                                  "internal"
                                ]
                              }
                            },
                            "required": [
                              "path",
                              "reason"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "sku": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "metadata": {
                      "type": "object",
                      "properties": {
                        "displayName": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": {}
                    },
                    "project": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "free",
                        "paid"
                      ]
                    },
                    "billingInterval": {
                      "type": "string",
                      "enum": [
                        "daily",
                        "weekly",
                        "monthly",
                        "yearly",
                        "infinite"
                      ]
                    },
                    "sandboxMode": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "id",
                    "conflicts",
                    "object",
                    "sku",
                    "metadata",
                    "project",
                    "type",
                    "billingInterval",
                    "sandboxMode"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "sku": {
                    "type": "string",
                    "minLength": 1
                  },
                  "billingInterval": {
                    "type": "string",
                    "enum": [
                      "daily",
                      "weekly",
                      "monthly",
                      "yearly",
                      "infinite"
                    ]
                  },
                  "metadata": {
                    "default": {},
                    "type": "object",
                    "properties": {
                      "displayName": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": {}
                  }
                },
                "required": [
                  "sku",
                  "billingInterval",
                  "metadata"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "delete": {
        "summary": "Delete a product",
        "operationId": "deleteProduct",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "productId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "success"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/admin/projects/{projectId}/products/{productId}/accounts/{externalServiceAccountId}": {
      "post": {
        "summary": "Attach a provider account to a product",
        "operationId": "attachExternalServiceAccountToProduct",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "productId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "externalServiceAccountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "tombstoned": {
                      "type": "boolean"
                    },
                    "tombstonedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "conflicts": {
                      "type": "object",
                      "properties": {
                        "clientData": {},
                        "serverData": {},
                        "conflictedAt": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "clientData",
                        "serverData",
                        "conflictedAt"
                      ],
                      "additionalProperties": false
                    },
                    "externalServiceAccount": {
                      "type": "string"
                    },
                    "product": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "conflicts",
                    "externalServiceAccount",
                    "product"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "delete": {
        "summary": "Detach a provider account from a product",
        "operationId": "detachExternalServiceAccountFromProduct",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "productId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "externalServiceAccountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "success"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/admin/projects/{projectId}/products/{productId}/usagelimit": {
      "post": {
        "summary": "Create a usage limit rule",
        "operationId": "createUsageLimitRule",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "productId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "tombstoned": {
                      "type": "boolean"
                    },
                    "tombstonedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "conflicts": {
                      "type": "object",
                      "properties": {
                        "clientData": {},
                        "serverData": {},
                        "conflictedAt": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "clientData",
                        "serverData",
                        "conflictedAt"
                      ],
                      "additionalProperties": false
                    },
                    "metadata": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {}
                    },
                    "scopeValue": {
                      "type": "string"
                    },
                    "scopeKind": {
                      "type": "string",
                      "enum": [
                        "modelIdentifier",
                        "requestRegexPatterns"
                      ]
                    },
                    "allowanceMetric": {
                      "type": "string",
                      "enum": [
                        "audioDurationMilliseconds",
                        "audioFileSizeBytes",
                        "costMicros",
                        "numberOfCharacters",
                        "numberOfImages",
                        "numberOfRequest",
                        "numberOfTokens"
                      ]
                    },
                    "allowanceValue": {
                      "type": "number"
                    },
                    "product": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id"
                      ],
                      "additionalProperties": false
                    },
                    "project": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id"
                      ],
                      "additionalProperties": false
                    },
                    "billedUsages": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "sandboxMode": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "id",
                    "conflicts",
                    "metadata",
                    "scopeValue",
                    "scopeKind",
                    "allowanceMetric",
                    "allowanceValue",
                    "product",
                    "project",
                    "billedUsages",
                    "sandboxMode"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "allowanceValue": {
                    "type": "number"
                  },
                  "allowanceMetric": {
                    "type": "string",
                    "enum": [
                      "audioDurationMilliseconds",
                      "audioFileSizeBytes",
                      "costMicros",
                      "numberOfCharacters",
                      "numberOfImages",
                      "numberOfRequest",
                      "numberOfTokens"
                    ]
                  },
                  "scopeValue": {
                    "type": "string"
                  },
                  "scopeKind": {
                    "type": "string",
                    "enum": [
                      "modelIdentifier",
                      "requestRegexPatterns"
                    ]
                  }
                },
                "required": [
                  "allowanceValue",
                  "allowanceMetric",
                  "scopeValue",
                  "scopeKind"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "get": {
        "summary": "List usage limit rules",
        "operationId": "listUsageLimitRules",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "productId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "createdAt": {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                      },
                      "updatedAt": {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                      },
                      "tombstoned": {
                        "type": "boolean"
                      },
                      "tombstonedAt": {
                        "anyOf": [
                          {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "conflicts": {
                        "type": "object",
                        "properties": {
                          "clientData": {},
                          "serverData": {},
                          "conflictedAt": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "clientData",
                          "serverData",
                          "conflictedAt"
                        ],
                        "additionalProperties": false
                      },
                      "metadata": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {}
                      },
                      "scopeValue": {
                        "type": "string"
                      },
                      "scopeKind": {
                        "type": "string",
                        "enum": [
                          "modelIdentifier",
                          "requestRegexPatterns"
                        ]
                      },
                      "allowanceMetric": {
                        "type": "string",
                        "enum": [
                          "audioDurationMilliseconds",
                          "audioFileSizeBytes",
                          "costMicros",
                          "numberOfCharacters",
                          "numberOfImages",
                          "numberOfRequest",
                          "numberOfTokens"
                        ]
                      },
                      "allowanceValue": {
                        "type": "number"
                      },
                      "product": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id"
                        ],
                        "additionalProperties": false
                      },
                      "project": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id"
                        ],
                        "additionalProperties": false
                      },
                      "billedUsages": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "sandboxMode": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "id",
                      "conflicts",
                      "metadata",
                      "scopeValue",
                      "scopeKind",
                      "allowanceMetric",
                      "allowanceValue",
                      "product",
                      "project",
                      "billedUsages",
                      "sandboxMode"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "delete": {
        "summary": "Delete every usage limit rule of a product",
        "operationId": "deleteUsageLimitRules",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "productId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "success"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/admin/projects/{projectId}/products/{productId}/usagelimit/{usageLimitId}": {
      "get": {
        "summary": "Retrieve a usage limit rule",
        "operationId": "retrieveUsageLimitRule",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "productId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "usageLimitId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "tombstoned": {
                      "type": "boolean"
                    },
                    "tombstonedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "conflicts": {
                      "type": "object",
                      "properties": {
                        "clientData": {},
                        "serverData": {},
                        "conflictedAt": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "clientData",
                        "serverData",
                        "conflictedAt"
                      ],
                      "additionalProperties": false
                    },
                    "metadata": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {}
                    },
                    "scopeValue": {
                      "type": "string"
                    },
                    "scopeKind": {
                      "type": "string",
                      "enum": [
                        "modelIdentifier",
                        "requestRegexPatterns"
                      ]
                    },
                    "allowanceMetric": {
                      "type": "string",
                      "enum": [
                        "audioDurationMilliseconds",
                        "audioFileSizeBytes",
                        "costMicros",
                        "numberOfCharacters",
                        "numberOfImages",
                        "numberOfRequest",
                        "numberOfTokens"
                      ]
                    },
                    "allowanceValue": {
                      "type": "number"
                    },
                    "product": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id"
                      ],
                      "additionalProperties": false
                    },
                    "project": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id"
                      ],
                      "additionalProperties": false
                    },
                    "billedUsages": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "sandboxMode": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "id",
                    "conflicts",
                    "metadata",
                    "scopeValue",
                    "scopeKind",
                    "allowanceMetric",
                    "allowanceValue",
                    "product",
                    "project",
                    "billedUsages",
                    "sandboxMode"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "delete": {
        "summary": "Delete a usage limit rule",
        "operationId": "deleteUsageLimitRule",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "productId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "usageLimitId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "success"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "patch": {
        "summary": "Update a usage limit rule",
        "operationId": "updateUsageLimitRule",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "productId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "usageLimitId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "tombstoned": {
                      "type": "boolean"
                    },
                    "tombstonedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "conflicts": {
                      "type": "object",
                      "properties": {
                        "clientData": {},
                        "serverData": {},
                        "conflictedAt": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "clientData",
                        "serverData",
                        "conflictedAt"
                      ],
                      "additionalProperties": false
                    },
                    "metadata": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {}
                    },
                    "scopeValue": {
                      "type": "string"
                    },
                    "scopeKind": {
                      "type": "string",
                      "enum": [
                        "modelIdentifier",
                        "requestRegexPatterns"
                      ]
                    },
                    "allowanceMetric": {
                      "type": "string",
                      "enum": [
                        "audioDurationMilliseconds",
                        "audioFileSizeBytes",
                        "costMicros",
                        "numberOfCharacters",
                        "numberOfImages",
                        "numberOfRequest",
                        "numberOfTokens"
                      ]
                    },
                    "allowanceValue": {
                      "type": "number"
                    },
                    "product": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id"
                      ],
                      "additionalProperties": false
                    },
                    "project": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id"
                      ],
                      "additionalProperties": false
                    },
                    "billedUsages": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "sandboxMode": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "id",
                    "conflicts",
                    "metadata",
                    "scopeValue",
                    "scopeKind",
                    "allowanceMetric",
                    "allowanceValue",
                    "product",
                    "project",
                    "billedUsages",
                    "sandboxMode"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "allowanceValue": {
                    "type": "number"
                  },
                  "allowanceMetric": {
                    "type": "string",
                    "enum": [
                      "audioDurationMilliseconds",
                      "audioFileSizeBytes",
                      "costMicros",
                      "numberOfCharacters",
                      "numberOfImages",
                      "numberOfRequest",
                      "numberOfTokens"
                    ]
                  },
                  "scopeValue": {
                    "type": "string"
                  },
                  "scopeKind": {
                    "type": "string",
                    "enum": [
                      "modelIdentifier",
                      "requestRegexPatterns"
                    ]
                  }
                },
                "required": [
                  "allowanceValue",
                  "allowanceMetric",
                  "scopeValue",
                  "scopeKind"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/admin/projects/{projectId}/products/{productId}/ratelimit": {
      "post": {
        "summary": "Create a rate limit rule",
        "operationId": "createRateLimitRule",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "productId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "tombstoned": {
                      "type": "boolean"
                    },
                    "tombstonedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "conflicts": {
                      "type": "object",
                      "properties": {
                        "clientData": {},
                        "serverData": {},
                        "conflictedAt": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "clientData",
                        "serverData",
                        "conflictedAt"
                      ],
                      "additionalProperties": false
                    },
                    "scopeKind": {
                      "type": "string",
                      "enum": [
                        "modelIdentifier",
                        "requestRegexPatterns"
                      ]
                    },
                    "scopeValue": {
                      "type": "string"
                    },
                    "allowanceMetric": {
                      "type": "string",
                      "enum": [
                        "audioDurationMilliseconds",
                        "audioFileSizeBytes",
                        "costMicros",
                        "numberOfCharacters",
                        "numberOfImages",
                        "numberOfRequest",
                        "numberOfTokens"
                      ]
                    },
                    "allowanceValue": {
                      "type": "number"
                    },
                    "rateLimitFrequency": {
                      "type": "string",
                      "enum": [
                        "minute",
                        "hour",
                        "day"
                      ]
                    },
                    "product": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id"
                      ],
                      "additionalProperties": false
                    },
                    "project": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id"
                      ],
                      "additionalProperties": false
                    },
                    "billedRateLimitUsages": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "sandboxMode": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "id",
                    "conflicts",
                    "scopeKind",
                    "scopeValue",
                    "allowanceMetric",
                    "allowanceValue",
                    "rateLimitFrequency",
                    "product",
                    "project",
                    "billedRateLimitUsages",
                    "sandboxMode"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "allowanceValue": {
                    "type": "number"
                  },
                  "allowanceMetric": {
                    "type": "string",
                    "enum": [
                      "audioDurationMilliseconds",
                      "audioFileSizeBytes",
                      "costMicros",
                      "numberOfCharacters",
                      "numberOfImages",
                      "numberOfRequest",
                      "numberOfTokens"
                    ]
                  },
                  "scopeValue": {
                    "type": "string"
                  },
                  "scopeKind": {
                    "type": "string",
                    "enum": [
                      "modelIdentifier",
                      "requestRegexPatterns"
                    ]
                  },
                  "rateLimitFrequency": {
                    "type": "string",
                    "enum": [
                      "minute",
                      "hour",
                      "day"
                    ]
                  }
                },
                "required": [
                  "allowanceValue",
                  "allowanceMetric",
                  "scopeValue",
                  "scopeKind",
                  "rateLimitFrequency"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "get": {
        "summary": "List rate limit rules",
        "operationId": "listRateLimitRules",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "productId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "createdAt": {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                      },
                      "updatedAt": {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                      },
                      "tombstoned": {
                        "type": "boolean"
                      },
                      "tombstonedAt": {
                        "anyOf": [
                          {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "conflicts": {
                        "type": "object",
                        "properties": {
                          "clientData": {},
                          "serverData": {},
                          "conflictedAt": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "clientData",
                          "serverData",
                          "conflictedAt"
                        ],
                        "additionalProperties": false
                      },
                      "scopeKind": {
                        "type": "string",
                        "enum": [
                          "modelIdentifier",
                          "requestRegexPatterns"
                        ]
                      },
                      "scopeValue": {
                        "type": "string"
                      },
                      "allowanceMetric": {
                        "type": "string",
                        "enum": [
                          "audioDurationMilliseconds",
                          "audioFileSizeBytes",
                          "costMicros",
                          "numberOfCharacters",
                          "numberOfImages",
                          "numberOfRequest",
                          "numberOfTokens"
                        ]
                      },
                      "allowanceValue": {
                        "type": "number"
                      },
                      "rateLimitFrequency": {
                        "type": "string",
                        "enum": [
                          "minute",
                          "hour",
                          "day"
                        ]
                      },
                      "product": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id"
                        ],
                        "additionalProperties": false
                      },
                      "project": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id"
                        ],
                        "additionalProperties": false
                      },
                      "billedRateLimitUsages": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "sandboxMode": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "id",
                      "conflicts",
                      "scopeKind",
                      "scopeValue",
                      "allowanceMetric",
                      "allowanceValue",
                      "rateLimitFrequency",
                      "product",
                      "project",
                      "billedRateLimitUsages",
                      "sandboxMode"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "delete": {
        "summary": "Delete every rate limit rule of a product",
        "operationId": "deleteRateLimitRules",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "productId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "success"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/admin/projects/{projectId}/products/{productId}/ratelimit/{rateLimitId}": {
      "get": {
        "summary": "Retrieve a rate limit rule",
        "operationId": "retrieveRateLimitRule",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "productId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "rateLimitId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "tombstoned": {
                      "type": "boolean"
                    },
                    "tombstonedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "conflicts": {
                      "type": "object",
                      "properties": {
                        "clientData": {},
                        "serverData": {},
                        "conflictedAt": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "clientData",
                        "serverData",
                        "conflictedAt"
                      ],
                      "additionalProperties": false
                    },
                    "scopeKind": {
                      "type": "string",
                      "enum": [
                        "modelIdentifier",
                        "requestRegexPatterns"
                      ]
                    },
                    "scopeValue": {
                      "type": "string"
                    },
                    "allowanceMetric": {
                      "type": "string",
                      "enum": [
                        "audioDurationMilliseconds",
                        "audioFileSizeBytes",
                        "costMicros",
                        "numberOfCharacters",
                        "numberOfImages",
                        "numberOfRequest",
                        "numberOfTokens"
                      ]
                    },
                    "allowanceValue": {
                      "type": "number"
                    },
                    "rateLimitFrequency": {
                      "type": "string",
                      "enum": [
                        "minute",
                        "hour",
                        "day"
                      ]
                    },
                    "product": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id"
                      ],
                      "additionalProperties": false
                    },
                    "project": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id"
                      ],
                      "additionalProperties": false
                    },
                    "billedRateLimitUsages": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "sandboxMode": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "id",
                    "conflicts",
                    "scopeKind",
                    "scopeValue",
                    "allowanceMetric",
                    "allowanceValue",
                    "rateLimitFrequency",
                    "product",
                    "project",
                    "billedRateLimitUsages",
                    "sandboxMode"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "delete": {
        "summary": "Delete a rate limit rule",
        "operationId": "deleteRateLimitRule",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "productId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "rateLimitId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "success"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "patch": {
        "summary": "Update a rate limit rule",
        "operationId": "updateRateLimitRule",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "productId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "rateLimitId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "tombstoned": {
                      "type": "boolean"
                    },
                    "tombstonedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "conflicts": {
                      "type": "object",
                      "properties": {
                        "clientData": {},
                        "serverData": {},
                        "conflictedAt": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "clientData",
                        "serverData",
                        "conflictedAt"
                      ],
                      "additionalProperties": false
                    },
                    "scopeKind": {
                      "type": "string",
                      "enum": [
                        "modelIdentifier",
                        "requestRegexPatterns"
                      ]
                    },
                    "scopeValue": {
                      "type": "string"
                    },
                    "allowanceMetric": {
                      "type": "string",
                      "enum": [
                        "audioDurationMilliseconds",
                        "audioFileSizeBytes",
                        "costMicros",
                        "numberOfCharacters",
                        "numberOfImages",
                        "numberOfRequest",
                        "numberOfTokens"
                      ]
                    },
                    "allowanceValue": {
                      "type": "number"
                    },
                    "rateLimitFrequency": {
                      "type": "string",
                      "enum": [
                        "minute",
                        "hour",
                        "day"
                      ]
                    },
                    "product": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id"
                      ],
                      "additionalProperties": false
                    },
                    "project": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id"
                      ],
                      "additionalProperties": false
                    },
                    "billedRateLimitUsages": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "sandboxMode": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "id",
                    "conflicts",
                    "scopeKind",
                    "scopeValue",
                    "allowanceMetric",
                    "allowanceValue",
                    "rateLimitFrequency",
                    "product",
                    "project",
                    "billedRateLimitUsages",
                    "sandboxMode"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "allowanceValue": {
                    "type": "number"
                  },
                  "allowanceMetric": {
                    "type": "string",
                    "enum": [
                      "audioDurationMilliseconds",
                      "audioFileSizeBytes",
                      "costMicros",
                      "numberOfCharacters",
                      "numberOfImages",
                      "numberOfRequest",
                      "numberOfTokens"
                    ]
                  },
                  "scopeValue": {
                    "type": "string"
                  },
                  "scopeKind": {
                    "type": "string",
                    "enum": [
                      "modelIdentifier",
                      "requestRegexPatterns"
                    ]
                  },
                  "rateLimitFrequency": {
                    "type": "string",
                    "enum": [
                      "minute",
                      "hour",
                      "day"
                    ]
                  }
                },
                "required": [
                  "allowanceValue",
                  "allowanceMetric",
                  "scopeValue",
                  "scopeKind",
                  "rateLimitFrequency"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/admin/projects/{projectId}/customers": {
      "post": {
        "summary": "Create a sandbox customer",
        "operationId": "createSandboxCustomer",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "tombstoned": {
                      "type": "boolean"
                    },
                    "tombstonedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "conflicts": {
                      "type": "object",
                      "properties": {
                        "clientData": {},
                        "serverData": {},
                        "conflictedAt": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "clientData",
                        "serverData",
                        "conflictedAt"
                      ],
                      "additionalProperties": false
                    },
                    "project": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "tombstoned": {
                          "type": "boolean"
                        },
                        "tombstonedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "conflicts": {
                          "type": "object",
                          "properties": {
                            "clientData": {},
                            "serverData": {},
                            "conflictedAt": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "clientData",
                            "serverData",
                            "conflictedAt"
                          ],
                          "additionalProperties": false
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "project"
                          ]
                        },
                        "api": {
                          "type": "object",
                          "properties": {
                            "links": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "type": "object",
                                "properties": {
                                  "href": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "href"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "redactions": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "path": {
                                    "type": "string"
                                  },
                                  "reason": {
                                    "type": "string",
                                    "enum": [
                                      "secret",
                                      "internal"
                                    ]
                                  }
                                },
                                "required": [
                                  "path",
                                  "reason"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "additionalProperties": false
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1
                        },
                        "user": {
                          "type": "string"
                        },
                        "metadata": {
                          "type": "object",
                          "properties": {
                            "customServerURL": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "uri"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "freeUsersAllowed": {
                              "type": [
                                "boolean",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "freeUsersAllowed"
                          ],
                          "additionalProperties": false
                        },
                        "billingProviders": {
                          "type": "array",
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "appleAppStore"
                                    ]
                                  },
                                  "updatedAt": {
                                    "type": "string",
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                  },
                                  "configuration": {
                                    "type": "object",
                                    "properties": {
                                      "appStoreConnect": {
                                        "type": "object",
                                        "properties": {
                                          "issuerId": {
                                            "type": "string"
                                          },
                                          "privateKeyId": {
                                            "type": "string"
                                          },
                                          "credentialSources": {
                                            "type": "object",
                                            "properties": {
                                              "privateKey": {
                                                "type": "object",
                                                "properties": {
                                                  "source": {
                                                    "type": "string",
                                                    "enum": [
                                                      "onepassword"
                                                    ]
                                                  },
                                                  "secretsIntegrationId": {
                                                    "type": "string",
                                                    "minLength": 1
                                                  },
                                                  "secretReference": {
                                                    "type": "string",
                                                    "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                                  },
                                                  "secretReferenceLabel": {
                                                    "type": "string",
                                                    "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                                  },
                                                  "materializedAt": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "materializationError": {
                                                    "type": [
                                                      "string",
                                                      "null"
                                                    ]
                                                  }
                                                },
                                                "required": [
                                                  "source",
                                                  "secretsIntegrationId",
                                                  "secretReference",
                                                  "secretReferenceLabel",
                                                  "materializedAt",
                                                  "materializationError"
                                                ],
                                                "additionalProperties": false
                                              },
                                              "sharedSecret": {
                                                "type": "object",
                                                "properties": {
                                                  "source": {
                                                    "type": "string",
                                                    "enum": [
                                                      "onepassword"
                                                    ]
                                                  },
                                                  "secretsIntegrationId": {
                                                    "type": "string",
                                                    "minLength": 1
                                                  },
                                                  "secretReference": {
                                                    "type": "string",
                                                    "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                                  },
                                                  "secretReferenceLabel": {
                                                    "type": "string",
                                                    "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                                  },
                                                  "materializedAt": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "materializationError": {
                                                    "type": [
                                                      "string",
                                                      "null"
                                                    ]
                                                  }
                                                },
                                                "required": [
                                                  "source",
                                                  "secretsIntegrationId",
                                                  "secretReference",
                                                  "secretReferenceLabel",
                                                  "materializedAt",
                                                  "materializationError"
                                                ],
                                                "additionalProperties": false
                                              }
                                            },
                                            "additionalProperties": false
                                          },
                                          "privateKey": {
                                            "type": "string",
                                            "enum": [
                                              ""
                                            ]
                                          },
                                          "sharedSecret": {
                                            "type": "string",
                                            "enum": [
                                              ""
                                            ]
                                          }
                                        },
                                        "required": [
                                          "issuerId",
                                          "privateKeyId",
                                          "privateKey",
                                          "sharedSecret"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "fragile_appStoreConnect": {
                                        "type": "object",
                                        "properties": {
                                          "bundleId": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "bundleId"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "required": [
                                      "appStoreConnect",
                                      "fragile_appStoreConnect"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "id",
                                  "type",
                                  "updatedAt",
                                  "configuration"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "stripe"
                                    ]
                                  },
                                  "updatedAt": {
                                    "type": "string",
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                  },
                                  "configuration": {
                                    "type": "object",
                                    "properties": {
                                      "connect": {
                                        "type": "object",
                                        "properties": {
                                          "publishableKey": {
                                            "type": "string"
                                          },
                                          "webhookId": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "accountId": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "webhookApiVersion": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "redirectUrls": {
                                            "default": [],
                                            "anyOf": [
                                              {
                                                "type": "array",
                                                "items": {
                                                  "type": "string",
                                                  "format": "uri"
                                                }
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "credentialSources": {
                                            "type": "object",
                                            "properties": {
                                              "publishableKey": {
                                                "type": "object",
                                                "properties": {
                                                  "source": {
                                                    "type": "string",
                                                    "enum": [
                                                      "onepassword"
                                                    ]
                                                  },
                                                  "secretsIntegrationId": {
                                                    "type": "string",
                                                    "minLength": 1
                                                  },
                                                  "secretReference": {
                                                    "type": "string",
                                                    "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                                  },
                                                  "secretReferenceLabel": {
                                                    "type": "string",
                                                    "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                                  },
                                                  "materializedAt": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "materializationError": {
                                                    "type": [
                                                      "string",
                                                      "null"
                                                    ]
                                                  }
                                                },
                                                "required": [
                                                  "source",
                                                  "secretsIntegrationId",
                                                  "secretReference",
                                                  "secretReferenceLabel",
                                                  "materializedAt",
                                                  "materializationError"
                                                ],
                                                "additionalProperties": false
                                              },
                                              "secretKey": {
                                                "type": "object",
                                                "properties": {
                                                  "source": {
                                                    "type": "string",
                                                    "enum": [
                                                      "onepassword"
                                                    ]
                                                  },
                                                  "secretsIntegrationId": {
                                                    "type": "string",
                                                    "minLength": 1
                                                  },
                                                  "secretReference": {
                                                    "type": "string",
                                                    "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                                  },
                                                  "secretReferenceLabel": {
                                                    "type": "string",
                                                    "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                                  },
                                                  "materializedAt": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "materializationError": {
                                                    "type": [
                                                      "string",
                                                      "null"
                                                    ]
                                                  }
                                                },
                                                "required": [
                                                  "source",
                                                  "secretsIntegrationId",
                                                  "secretReference",
                                                  "secretReferenceLabel",
                                                  "materializedAt",
                                                  "materializationError"
                                                ],
                                                "additionalProperties": false
                                              }
                                            },
                                            "additionalProperties": false
                                          },
                                          "secretKey": {
                                            "type": "string",
                                            "enum": [
                                              ""
                                            ]
                                          },
                                          "webhookSecret": {
                                            "anyOf": [
                                              {
                                                "type": "string",
                                                "enum": [
                                                  ""
                                                ]
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          }
                                        },
                                        "required": [
                                          "publishableKey",
                                          "redirectUrls",
                                          "secretKey"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "required": [
                                      "connect"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "id",
                                  "type",
                                  "updatedAt",
                                  "configuration"
                                ],
                                "additionalProperties": false
                              }
                            ]
                          }
                        },
                        "authenticationProvider": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "appleAppStore",
                                "clerk",
                                "customServer",
                                "firebase",
                                "none",
                                "oidc"
                              ]
                            },
                            {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "appleAppStore"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "type"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "customServer"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "type"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "firebase"
                                      ]
                                    },
                                    "firebaseProjectId": {
                                      "type": "string",
                                      "minLength": 1
                                    },
                                    "customerDeprovisioningPolicy": {
                                      "type": "string",
                                      "enum": [
                                        "completeProductGrants",
                                        "retainProductGrants"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "firebaseProjectId",
                                    "customerDeprovisioningPolicy"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "clerk"
                                      ]
                                    },
                                    "instanceId": {
                                      "type": "string",
                                      "minLength": 1
                                    },
                                    "issuerURL": {
                                      "type": "string",
                                      "format": "uri"
                                    },
                                    "authorizedParties": {
                                      "minItems": 1,
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "format": "uri"
                                      }
                                    },
                                    "customerDeprovisioningPolicy": {
                                      "type": "string",
                                      "enum": [
                                        "completeProductGrants",
                                        "retainProductGrants"
                                      ]
                                    },
                                    "hasSecretKey": {
                                      "type": "boolean"
                                    },
                                    "webhook": {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "status": {
                                              "type": "string",
                                              "enum": [
                                                "awaitingVerification",
                                                "verified"
                                              ]
                                            },
                                            "hasSigningSecret": {
                                              "type": "boolean"
                                            }
                                          },
                                          "required": [
                                            "status",
                                            "hasSigningSecret"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "instanceId",
                                    "issuerURL",
                                    "authorizedParties",
                                    "customerDeprovisioningPolicy",
                                    "hasSecretKey",
                                    "webhook"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "oidc"
                                      ]
                                    },
                                    "issuerURL": {
                                      "type": "string",
                                      "format": "uri"
                                    },
                                    "audiences": {
                                      "minItems": 1,
                                      "maxItems": 20,
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "minLength": 1
                                      }
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "issuerURL",
                                    "audiences"
                                  ],
                                  "additionalProperties": false
                                }
                              ]
                            }
                          ]
                        },
                        "sandboxMode": {
                          "type": "boolean"
                        },
                        "hidden": {
                          "type": "boolean"
                        },
                        "products": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "required": [
                        "id",
                        "conflicts",
                        "object",
                        "name",
                        "user",
                        "metadata",
                        "billingProviders",
                        "authenticationProvider",
                        "sandboxMode",
                        "hidden"
                      ],
                      "additionalProperties": false
                    },
                    "emailAddress": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "email",
                          "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "isSuspended": {
                      "type": "boolean"
                    },
                    "metadata": {
                      "anyOf": [
                        {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sandboxMode": {
                      "type": "boolean"
                    },
                    "sandboxSecret": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "appUserId": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "billedRequests": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          "tombstoned": {
                            "type": "boolean"
                          },
                          "tombstonedAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "conflicts": {
                            "type": "object",
                            "properties": {
                              "clientData": {},
                              "serverData": {},
                              "conflictedAt": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "clientData",
                              "serverData",
                              "conflictedAt"
                            ],
                            "additionalProperties": false
                          },
                          "usageLimitRuleIds": {
                            "anyOf": [
                              {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "rateLimitRuleIds": {
                            "anyOf": [
                              {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "message": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {}
                          },
                          "error": {
                            "type": "boolean"
                          },
                          "finishedAt": {
                            "type": "string"
                          },
                          "project": {
                            "type": "string"
                          },
                          "product": {
                            "type": "string"
                          },
                          "customer": {
                            "type": "string"
                          },
                          "externalServiceAccount": {
                            "type": "string"
                          },
                          "completion": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "createdAt": {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              "updatedAt": {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              "tombstoned": {
                                "type": "boolean"
                              },
                              "tombstonedAt": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "conflicts": {
                                "type": "object",
                                "properties": {
                                  "clientData": {},
                                  "serverData": {},
                                  "conflictedAt": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "clientData",
                                  "serverData",
                                  "conflictedAt"
                                ],
                                "additionalProperties": false
                              },
                              "usage": {
                                "type": "object",
                                "propertyNames": {
                                  "type": "string"
                                },
                                "additionalProperties": {}
                              },
                              "openai": {
                                "type": "object",
                                "propertyNames": {
                                  "type": "string"
                                },
                                "additionalProperties": {}
                              },
                              "requestId": {
                                "type": "string"
                              },
                              "numberOfInputTokens": {
                                "default": 0,
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              },
                              "numberOfCompletionTokens": {
                                "default": 0,
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              },
                              "inputTokensCost": {
                                "default": 0,
                                "type": "number"
                              },
                              "completionTokensCost": {
                                "default": 0,
                                "type": "number"
                              },
                              "totalTokensCost": {
                                "default": 0,
                                "type": "number"
                              },
                              "sandboxMode": {
                                "default": false,
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "id",
                              "conflicts",
                              "usage",
                              "openai",
                              "requestId",
                              "numberOfInputTokens",
                              "numberOfCompletionTokens",
                              "inputTokensCost",
                              "completionTokensCost",
                              "totalTokensCost",
                              "sandboxMode"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "id",
                          "conflicts",
                          "usageLimitRuleIds",
                          "rateLimitRuleIds",
                          "error",
                          "finishedAt",
                          "project",
                          "product",
                          "customer",
                          "externalServiceAccount"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "billedUsages": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          "tombstoned": {
                            "type": "boolean"
                          },
                          "tombstonedAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "conflicts": {
                            "type": "object",
                            "properties": {
                              "clientData": {},
                              "serverData": {},
                              "conflictedAt": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "clientData",
                              "serverData",
                              "conflictedAt"
                            ],
                            "additionalProperties": false
                          },
                          "rawAmount": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "rule": {
                            "type": "string"
                          },
                          "customer": {
                            "type": "string"
                          },
                          "billingPeriod": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "conflicts",
                          "rawAmount",
                          "rule",
                          "customer",
                          "billingPeriod"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "conflicts",
                    "project",
                    "isSuspended",
                    "sandboxMode",
                    "billedRequests",
                    "billedUsages"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "maxLength": 254,
                    "format": "email",
                    "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "get": {
        "summary": "List customers",
        "operationId": "listCustomers",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "createdAt": {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                      },
                      "updatedAt": {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                      },
                      "tombstoned": {
                        "type": "boolean"
                      },
                      "tombstonedAt": {
                        "anyOf": [
                          {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "conflicts": {
                        "type": "object",
                        "properties": {
                          "clientData": {},
                          "serverData": {},
                          "conflictedAt": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "clientData",
                          "serverData",
                          "conflictedAt"
                        ],
                        "additionalProperties": false
                      },
                      "project": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          "tombstoned": {
                            "type": "boolean"
                          },
                          "tombstonedAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "conflicts": {
                            "type": "object",
                            "properties": {
                              "clientData": {},
                              "serverData": {},
                              "conflictedAt": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "clientData",
                              "serverData",
                              "conflictedAt"
                            ],
                            "additionalProperties": false
                          },
                          "object": {
                            "type": "string",
                            "enum": [
                              "project"
                            ]
                          },
                          "api": {
                            "type": "object",
                            "properties": {
                              "links": {
                                "type": "object",
                                "propertyNames": {
                                  "type": "string"
                                },
                                "additionalProperties": {
                                  "type": "object",
                                  "properties": {
                                    "href": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "href"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "redactions": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "path": {
                                      "type": "string"
                                    },
                                    "reason": {
                                      "type": "string",
                                      "enum": [
                                        "secret",
                                        "internal"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "path",
                                    "reason"
                                  ],
                                  "additionalProperties": false
                                }
                              }
                            },
                            "additionalProperties": false
                          },
                          "name": {
                            "type": "string",
                            "minLength": 1
                          },
                          "user": {
                            "type": "string"
                          },
                          "metadata": {
                            "type": "object",
                            "properties": {
                              "customServerURL": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uri"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "freeUsersAllowed": {
                                "type": [
                                  "boolean",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "freeUsersAllowed"
                            ],
                            "additionalProperties": false
                          },
                          "billingProviders": {
                            "type": "array",
                            "items": {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "appleAppStore"
                                      ]
                                    },
                                    "updatedAt": {
                                      "type": "string",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                    },
                                    "configuration": {
                                      "type": "object",
                                      "properties": {
                                        "appStoreConnect": {
                                          "type": "object",
                                          "properties": {
                                            "issuerId": {
                                              "type": "string"
                                            },
                                            "privateKeyId": {
                                              "type": "string"
                                            },
                                            "credentialSources": {
                                              "type": "object",
                                              "properties": {
                                                "privateKey": {
                                                  "type": "object",
                                                  "properties": {
                                                    "source": {
                                                      "type": "string",
                                                      "enum": [
                                                        "onepassword"
                                                      ]
                                                    },
                                                    "secretsIntegrationId": {
                                                      "type": "string",
                                                      "minLength": 1
                                                    },
                                                    "secretReference": {
                                                      "type": "string",
                                                      "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                                    },
                                                    "secretReferenceLabel": {
                                                      "type": "string",
                                                      "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                                    },
                                                    "materializedAt": {
                                                      "anyOf": [
                                                        {
                                                          "type": "string",
                                                          "format": "date-time",
                                                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    },
                                                    "materializationError": {
                                                      "type": [
                                                        "string",
                                                        "null"
                                                      ]
                                                    }
                                                  },
                                                  "required": [
                                                    "source",
                                                    "secretsIntegrationId",
                                                    "secretReference",
                                                    "secretReferenceLabel",
                                                    "materializedAt",
                                                    "materializationError"
                                                  ],
                                                  "additionalProperties": false
                                                },
                                                "sharedSecret": {
                                                  "type": "object",
                                                  "properties": {
                                                    "source": {
                                                      "type": "string",
                                                      "enum": [
                                                        "onepassword"
                                                      ]
                                                    },
                                                    "secretsIntegrationId": {
                                                      "type": "string",
                                                      "minLength": 1
                                                    },
                                                    "secretReference": {
                                                      "type": "string",
                                                      "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                                    },
                                                    "secretReferenceLabel": {
                                                      "type": "string",
                                                      "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                                    },
                                                    "materializedAt": {
                                                      "anyOf": [
                                                        {
                                                          "type": "string",
                                                          "format": "date-time",
                                                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    },
                                                    "materializationError": {
                                                      "type": [
                                                        "string",
                                                        "null"
                                                      ]
                                                    }
                                                  },
                                                  "required": [
                                                    "source",
                                                    "secretsIntegrationId",
                                                    "secretReference",
                                                    "secretReferenceLabel",
                                                    "materializedAt",
                                                    "materializationError"
                                                  ],
                                                  "additionalProperties": false
                                                }
                                              },
                                              "additionalProperties": false
                                            },
                                            "privateKey": {
                                              "type": "string",
                                              "enum": [
                                                ""
                                              ]
                                            },
                                            "sharedSecret": {
                                              "type": "string",
                                              "enum": [
                                                ""
                                              ]
                                            }
                                          },
                                          "required": [
                                            "issuerId",
                                            "privateKeyId",
                                            "privateKey",
                                            "sharedSecret"
                                          ],
                                          "additionalProperties": false
                                        },
                                        "fragile_appStoreConnect": {
                                          "type": "object",
                                          "properties": {
                                            "bundleId": {
                                              "type": "string"
                                            }
                                          },
                                          "required": [
                                            "bundleId"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      "required": [
                                        "appStoreConnect",
                                        "fragile_appStoreConnect"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "updatedAt",
                                    "configuration"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "stripe"
                                      ]
                                    },
                                    "updatedAt": {
                                      "type": "string",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                    },
                                    "configuration": {
                                      "type": "object",
                                      "properties": {
                                        "connect": {
                                          "type": "object",
                                          "properties": {
                                            "publishableKey": {
                                              "type": "string"
                                            },
                                            "webhookId": {
                                              "type": [
                                                "string",
                                                "null"
                                              ]
                                            },
                                            "accountId": {
                                              "type": [
                                                "string",
                                                "null"
                                              ]
                                            },
                                            "webhookApiVersion": {
                                              "type": [
                                                "string",
                                                "null"
                                              ]
                                            },
                                            "redirectUrls": {
                                              "default": [],
                                              "anyOf": [
                                                {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "string",
                                                    "format": "uri"
                                                  }
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "credentialSources": {
                                              "type": "object",
                                              "properties": {
                                                "publishableKey": {
                                                  "type": "object",
                                                  "properties": {
                                                    "source": {
                                                      "type": "string",
                                                      "enum": [
                                                        "onepassword"
                                                      ]
                                                    },
                                                    "secretsIntegrationId": {
                                                      "type": "string",
                                                      "minLength": 1
                                                    },
                                                    "secretReference": {
                                                      "type": "string",
                                                      "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                                    },
                                                    "secretReferenceLabel": {
                                                      "type": "string",
                                                      "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                                    },
                                                    "materializedAt": {
                                                      "anyOf": [
                                                        {
                                                          "type": "string",
                                                          "format": "date-time",
                                                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    },
                                                    "materializationError": {
                                                      "type": [
                                                        "string",
                                                        "null"
                                                      ]
                                                    }
                                                  },
                                                  "required": [
                                                    "source",
                                                    "secretsIntegrationId",
                                                    "secretReference",
                                                    "secretReferenceLabel",
                                                    "materializedAt",
                                                    "materializationError"
                                                  ],
                                                  "additionalProperties": false
                                                },
                                                "secretKey": {
                                                  "type": "object",
                                                  "properties": {
                                                    "source": {
                                                      "type": "string",
                                                      "enum": [
                                                        "onepassword"
                                                      ]
                                                    },
                                                    "secretsIntegrationId": {
                                                      "type": "string",
                                                      "minLength": 1
                                                    },
                                                    "secretReference": {
                                                      "type": "string",
                                                      "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                                    },
                                                    "secretReferenceLabel": {
                                                      "type": "string",
                                                      "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                                    },
                                                    "materializedAt": {
                                                      "anyOf": [
                                                        {
                                                          "type": "string",
                                                          "format": "date-time",
                                                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    },
                                                    "materializationError": {
                                                      "type": [
                                                        "string",
                                                        "null"
                                                      ]
                                                    }
                                                  },
                                                  "required": [
                                                    "source",
                                                    "secretsIntegrationId",
                                                    "secretReference",
                                                    "secretReferenceLabel",
                                                    "materializedAt",
                                                    "materializationError"
                                                  ],
                                                  "additionalProperties": false
                                                }
                                              },
                                              "additionalProperties": false
                                            },
                                            "secretKey": {
                                              "type": "string",
                                              "enum": [
                                                ""
                                              ]
                                            },
                                            "webhookSecret": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "enum": [
                                                    ""
                                                  ]
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            }
                                          },
                                          "required": [
                                            "publishableKey",
                                            "redirectUrls",
                                            "secretKey"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      "required": [
                                        "connect"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "type",
                                    "updatedAt",
                                    "configuration"
                                  ],
                                  "additionalProperties": false
                                }
                              ]
                            }
                          },
                          "authenticationProvider": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "appleAppStore",
                                  "clerk",
                                  "customServer",
                                  "firebase",
                                  "none",
                                  "oidc"
                                ]
                              },
                              {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "appleAppStore"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "customServer"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "type"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "firebase"
                                        ]
                                      },
                                      "firebaseProjectId": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "customerDeprovisioningPolicy": {
                                        "type": "string",
                                        "enum": [
                                          "completeProductGrants",
                                          "retainProductGrants"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "firebaseProjectId",
                                      "customerDeprovisioningPolicy"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "clerk"
                                        ]
                                      },
                                      "instanceId": {
                                        "type": "string",
                                        "minLength": 1
                                      },
                                      "issuerURL": {
                                        "type": "string",
                                        "format": "uri"
                                      },
                                      "authorizedParties": {
                                        "minItems": 1,
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "format": "uri"
                                        }
                                      },
                                      "customerDeprovisioningPolicy": {
                                        "type": "string",
                                        "enum": [
                                          "completeProductGrants",
                                          "retainProductGrants"
                                        ]
                                      },
                                      "hasSecretKey": {
                                        "type": "boolean"
                                      },
                                      "webhook": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "properties": {
                                              "status": {
                                                "type": "string",
                                                "enum": [
                                                  "awaitingVerification",
                                                  "verified"
                                                ]
                                              },
                                              "hasSigningSecret": {
                                                "type": "boolean"
                                              }
                                            },
                                            "required": [
                                              "status",
                                              "hasSigningSecret"
                                            ],
                                            "additionalProperties": false
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "instanceId",
                                      "issuerURL",
                                      "authorizedParties",
                                      "customerDeprovisioningPolicy",
                                      "hasSecretKey",
                                      "webhook"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "oidc"
                                        ]
                                      },
                                      "issuerURL": {
                                        "type": "string",
                                        "format": "uri"
                                      },
                                      "audiences": {
                                        "minItems": 1,
                                        "maxItems": 20,
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "minLength": 1
                                        }
                                      }
                                    },
                                    "required": [
                                      "type",
                                      "issuerURL",
                                      "audiences"
                                    ],
                                    "additionalProperties": false
                                  }
                                ]
                              }
                            ]
                          },
                          "sandboxMode": {
                            "type": "boolean"
                          },
                          "hidden": {
                            "type": "boolean"
                          },
                          "products": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "id",
                          "conflicts",
                          "object",
                          "name",
                          "user",
                          "metadata",
                          "billingProviders",
                          "authenticationProvider",
                          "sandboxMode",
                          "hidden"
                        ],
                        "additionalProperties": false
                      },
                      "emailAddress": {
                        "anyOf": [
                          {
                            "type": "string",
                            "format": "email",
                            "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "name": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "isSuspended": {
                        "type": "boolean"
                      },
                      "metadata": {
                        "anyOf": [
                          {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {}
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "sandboxMode": {
                        "type": "boolean"
                      },
                      "sandboxSecret": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "appUserId": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "billedRequests": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "createdAt": {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            "updatedAt": {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            "tombstoned": {
                              "type": "boolean"
                            },
                            "tombstonedAt": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "conflicts": {
                              "type": "object",
                              "properties": {
                                "clientData": {},
                                "serverData": {},
                                "conflictedAt": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "clientData",
                                "serverData",
                                "conflictedAt"
                              ],
                              "additionalProperties": false
                            },
                            "usageLimitRuleIds": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "rateLimitRuleIds": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "message": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            "error": {
                              "type": "boolean"
                            },
                            "finishedAt": {
                              "type": "string"
                            },
                            "project": {
                              "type": "string"
                            },
                            "product": {
                              "type": "string"
                            },
                            "customer": {
                              "type": "string"
                            },
                            "externalServiceAccount": {
                              "type": "string"
                            },
                            "completion": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "createdAt": {
                                  "type": "string",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                },
                                "updatedAt": {
                                  "type": "string",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                },
                                "tombstoned": {
                                  "type": "boolean"
                                },
                                "tombstonedAt": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "conflicts": {
                                  "type": "object",
                                  "properties": {
                                    "clientData": {},
                                    "serverData": {},
                                    "conflictedAt": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "clientData",
                                    "serverData",
                                    "conflictedAt"
                                  ],
                                  "additionalProperties": false
                                },
                                "usage": {
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string"
                                  },
                                  "additionalProperties": {}
                                },
                                "openai": {
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string"
                                  },
                                  "additionalProperties": {}
                                },
                                "requestId": {
                                  "type": "string"
                                },
                                "numberOfInputTokens": {
                                  "default": 0,
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                },
                                "numberOfCompletionTokens": {
                                  "default": 0,
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                },
                                "inputTokensCost": {
                                  "default": 0,
                                  "type": "number"
                                },
                                "completionTokensCost": {
                                  "default": 0,
                                  "type": "number"
                                },
                                "totalTokensCost": {
                                  "default": 0,
                                  "type": "number"
                                },
                                "sandboxMode": {
                                  "default": false,
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "id",
                                "conflicts",
                                "usage",
                                "openai",
                                "requestId",
                                "numberOfInputTokens",
                                "numberOfCompletionTokens",
                                "inputTokensCost",
                                "completionTokensCost",
                                "totalTokensCost",
                                "sandboxMode"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "id",
                            "conflicts",
                            "usageLimitRuleIds",
                            "rateLimitRuleIds",
                            "error",
                            "finishedAt",
                            "project",
                            "product",
                            "customer",
                            "externalServiceAccount"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "billedUsages": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "createdAt": {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            "updatedAt": {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            "tombstoned": {
                              "type": "boolean"
                            },
                            "tombstonedAt": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "conflicts": {
                              "type": "object",
                              "properties": {
                                "clientData": {},
                                "serverData": {},
                                "conflictedAt": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "clientData",
                                "serverData",
                                "conflictedAt"
                              ],
                              "additionalProperties": false
                            },
                            "rawAmount": {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            },
                            "rule": {
                              "type": "string"
                            },
                            "customer": {
                              "type": "string"
                            },
                            "billingPeriod": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "conflicts",
                            "rawAmount",
                            "rule",
                            "customer",
                            "billingPeriod"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "id",
                      "conflicts",
                      "project",
                      "isSuspended",
                      "sandboxMode",
                      "billedRequests",
                      "billedUsages"
                    ],
                    "additionalProperties": false
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/admin/projects/{projectId}/customers/{customerId}": {
      "get": {
        "summary": "Retrieve a customer",
        "operationId": "retrieveCustomer",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "customerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "tombstoned": {
                      "type": "boolean"
                    },
                    "tombstonedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "conflicts": {
                      "type": "object",
                      "properties": {
                        "clientData": {},
                        "serverData": {},
                        "conflictedAt": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "clientData",
                        "serverData",
                        "conflictedAt"
                      ],
                      "additionalProperties": false
                    },
                    "project": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "tombstoned": {
                          "type": "boolean"
                        },
                        "tombstonedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "conflicts": {
                          "type": "object",
                          "properties": {
                            "clientData": {},
                            "serverData": {},
                            "conflictedAt": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "clientData",
                            "serverData",
                            "conflictedAt"
                          ],
                          "additionalProperties": false
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "project"
                          ]
                        },
                        "api": {
                          "type": "object",
                          "properties": {
                            "links": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "type": "object",
                                "properties": {
                                  "href": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "href"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "redactions": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "path": {
                                    "type": "string"
                                  },
                                  "reason": {
                                    "type": "string",
                                    "enum": [
                                      "secret",
                                      "internal"
                                    ]
                                  }
                                },
                                "required": [
                                  "path",
                                  "reason"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "additionalProperties": false
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1
                        },
                        "user": {
                          "type": "string"
                        },
                        "metadata": {
                          "type": "object",
                          "properties": {
                            "customServerURL": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "uri"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "freeUsersAllowed": {
                              "type": [
                                "boolean",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "freeUsersAllowed"
                          ],
                          "additionalProperties": false
                        },
                        "billingProviders": {
                          "type": "array",
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "appleAppStore"
                                    ]
                                  },
                                  "updatedAt": {
                                    "type": "string",
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                  },
                                  "configuration": {
                                    "type": "object",
                                    "properties": {
                                      "appStoreConnect": {
                                        "type": "object",
                                        "properties": {
                                          "issuerId": {
                                            "type": "string"
                                          },
                                          "privateKeyId": {
                                            "type": "string"
                                          },
                                          "credentialSources": {
                                            "type": "object",
                                            "properties": {
                                              "privateKey": {
                                                "type": "object",
                                                "properties": {
                                                  "source": {
                                                    "type": "string",
                                                    "enum": [
                                                      "onepassword"
                                                    ]
                                                  },
                                                  "secretsIntegrationId": {
                                                    "type": "string",
                                                    "minLength": 1
                                                  },
                                                  "secretReference": {
                                                    "type": "string",
                                                    "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                                  },
                                                  "secretReferenceLabel": {
                                                    "type": "string",
                                                    "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                                  },
                                                  "materializedAt": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "materializationError": {
                                                    "type": [
                                                      "string",
                                                      "null"
                                                    ]
                                                  }
                                                },
                                                "required": [
                                                  "source",
                                                  "secretsIntegrationId",
                                                  "secretReference",
                                                  "secretReferenceLabel",
                                                  "materializedAt",
                                                  "materializationError"
                                                ],
                                                "additionalProperties": false
                                              },
                                              "sharedSecret": {
                                                "type": "object",
                                                "properties": {
                                                  "source": {
                                                    "type": "string",
                                                    "enum": [
                                                      "onepassword"
                                                    ]
                                                  },
                                                  "secretsIntegrationId": {
                                                    "type": "string",
                                                    "minLength": 1
                                                  },
                                                  "secretReference": {
                                                    "type": "string",
                                                    "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                                  },
                                                  "secretReferenceLabel": {
                                                    "type": "string",
                                                    "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                                  },
                                                  "materializedAt": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "materializationError": {
                                                    "type": [
                                                      "string",
                                                      "null"
                                                    ]
                                                  }
                                                },
                                                "required": [
                                                  "source",
                                                  "secretsIntegrationId",
                                                  "secretReference",
                                                  "secretReferenceLabel",
                                                  "materializedAt",
                                                  "materializationError"
                                                ],
                                                "additionalProperties": false
                                              }
                                            },
                                            "additionalProperties": false
                                          },
                                          "privateKey": {
                                            "type": "string",
                                            "enum": [
                                              ""
                                            ]
                                          },
                                          "sharedSecret": {
                                            "type": "string",
                                            "enum": [
                                              ""
                                            ]
                                          }
                                        },
                                        "required": [
                                          "issuerId",
                                          "privateKeyId",
                                          "privateKey",
                                          "sharedSecret"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "fragile_appStoreConnect": {
                                        "type": "object",
                                        "properties": {
                                          "bundleId": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "bundleId"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "required": [
                                      "appStoreConnect",
                                      "fragile_appStoreConnect"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "id",
                                  "type",
                                  "updatedAt",
                                  "configuration"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "stripe"
                                    ]
                                  },
                                  "updatedAt": {
                                    "type": "string",
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                  },
                                  "configuration": {
                                    "type": "object",
                                    "properties": {
                                      "connect": {
                                        "type": "object",
                                        "properties": {
                                          "publishableKey": {
                                            "type": "string"
                                          },
                                          "webhookId": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "accountId": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "webhookApiVersion": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "redirectUrls": {
                                            "default": [],
                                            "anyOf": [
                                              {
                                                "type": "array",
                                                "items": {
                                                  "type": "string",
                                                  "format": "uri"
                                                }
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "credentialSources": {
                                            "type": "object",
                                            "properties": {
                                              "publishableKey": {
                                                "type": "object",
                                                "properties": {
                                                  "source": {
                                                    "type": "string",
                                                    "enum": [
                                                      "onepassword"
                                                    ]
                                                  },
                                                  "secretsIntegrationId": {
                                                    "type": "string",
                                                    "minLength": 1
                                                  },
                                                  "secretReference": {
                                                    "type": "string",
                                                    "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                                  },
                                                  "secretReferenceLabel": {
                                                    "type": "string",
                                                    "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                                  },
                                                  "materializedAt": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "materializationError": {
                                                    "type": [
                                                      "string",
                                                      "null"
                                                    ]
                                                  }
                                                },
                                                "required": [
                                                  "source",
                                                  "secretsIntegrationId",
                                                  "secretReference",
                                                  "secretReferenceLabel",
                                                  "materializedAt",
                                                  "materializationError"
                                                ],
                                                "additionalProperties": false
                                              },
                                              "secretKey": {
                                                "type": "object",
                                                "properties": {
                                                  "source": {
                                                    "type": "string",
                                                    "enum": [
                                                      "onepassword"
                                                    ]
                                                  },
                                                  "secretsIntegrationId": {
                                                    "type": "string",
                                                    "minLength": 1
                                                  },
                                                  "secretReference": {
                                                    "type": "string",
                                                    "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                                  },
                                                  "secretReferenceLabel": {
                                                    "type": "string",
                                                    "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                                  },
                                                  "materializedAt": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "materializationError": {
                                                    "type": [
                                                      "string",
                                                      "null"
                                                    ]
                                                  }
                                                },
                                                "required": [
                                                  "source",
                                                  "secretsIntegrationId",
                                                  "secretReference",
                                                  "secretReferenceLabel",
                                                  "materializedAt",
                                                  "materializationError"
                                                ],
                                                "additionalProperties": false
                                              }
                                            },
                                            "additionalProperties": false
                                          },
                                          "secretKey": {
                                            "type": "string",
                                            "enum": [
                                              ""
                                            ]
                                          },
                                          "webhookSecret": {
                                            "anyOf": [
                                              {
                                                "type": "string",
                                                "enum": [
                                                  ""
                                                ]
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          }
                                        },
                                        "required": [
                                          "publishableKey",
                                          "redirectUrls",
                                          "secretKey"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "required": [
                                      "connect"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "id",
                                  "type",
                                  "updatedAt",
                                  "configuration"
                                ],
                                "additionalProperties": false
                              }
                            ]
                          }
                        },
                        "authenticationProvider": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "appleAppStore",
                                "clerk",
                                "customServer",
                                "firebase",
                                "none",
                                "oidc"
                              ]
                            },
                            {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "appleAppStore"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "type"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "customServer"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "type"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "firebase"
                                      ]
                                    },
                                    "firebaseProjectId": {
                                      "type": "string",
                                      "minLength": 1
                                    },
                                    "customerDeprovisioningPolicy": {
                                      "type": "string",
                                      "enum": [
                                        "completeProductGrants",
                                        "retainProductGrants"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "firebaseProjectId",
                                    "customerDeprovisioningPolicy"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "clerk"
                                      ]
                                    },
                                    "instanceId": {
                                      "type": "string",
                                      "minLength": 1
                                    },
                                    "issuerURL": {
                                      "type": "string",
                                      "format": "uri"
                                    },
                                    "authorizedParties": {
                                      "minItems": 1,
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "format": "uri"
                                      }
                                    },
                                    "customerDeprovisioningPolicy": {
                                      "type": "string",
                                      "enum": [
                                        "completeProductGrants",
                                        "retainProductGrants"
                                      ]
                                    },
                                    "hasSecretKey": {
                                      "type": "boolean"
                                    },
                                    "webhook": {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "status": {
                                              "type": "string",
                                              "enum": [
                                                "awaitingVerification",
                                                "verified"
                                              ]
                                            },
                                            "hasSigningSecret": {
                                              "type": "boolean"
                                            }
                                          },
                                          "required": [
                                            "status",
                                            "hasSigningSecret"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "instanceId",
                                    "issuerURL",
                                    "authorizedParties",
                                    "customerDeprovisioningPolicy",
                                    "hasSecretKey",
                                    "webhook"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "oidc"
                                      ]
                                    },
                                    "issuerURL": {
                                      "type": "string",
                                      "format": "uri"
                                    },
                                    "audiences": {
                                      "minItems": 1,
                                      "maxItems": 20,
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "minLength": 1
                                      }
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "issuerURL",
                                    "audiences"
                                  ],
                                  "additionalProperties": false
                                }
                              ]
                            }
                          ]
                        },
                        "sandboxMode": {
                          "type": "boolean"
                        },
                        "hidden": {
                          "type": "boolean"
                        },
                        "products": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "required": [
                        "id",
                        "conflicts",
                        "object",
                        "name",
                        "user",
                        "metadata",
                        "billingProviders",
                        "authenticationProvider",
                        "sandboxMode",
                        "hidden"
                      ],
                      "additionalProperties": false
                    },
                    "emailAddress": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "email",
                          "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "isSuspended": {
                      "type": "boolean"
                    },
                    "metadata": {
                      "anyOf": [
                        {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sandboxMode": {
                      "type": "boolean"
                    },
                    "sandboxSecret": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "appUserId": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "billedRequests": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          "tombstoned": {
                            "type": "boolean"
                          },
                          "tombstonedAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "conflicts": {
                            "type": "object",
                            "properties": {
                              "clientData": {},
                              "serverData": {},
                              "conflictedAt": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "clientData",
                              "serverData",
                              "conflictedAt"
                            ],
                            "additionalProperties": false
                          },
                          "usageLimitRuleIds": {
                            "anyOf": [
                              {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "rateLimitRuleIds": {
                            "anyOf": [
                              {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "message": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {}
                          },
                          "error": {
                            "type": "boolean"
                          },
                          "finishedAt": {
                            "type": "string"
                          },
                          "project": {
                            "type": "string"
                          },
                          "product": {
                            "type": "string"
                          },
                          "customer": {
                            "type": "string"
                          },
                          "externalServiceAccount": {
                            "type": "string"
                          },
                          "completion": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "createdAt": {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              "updatedAt": {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              "tombstoned": {
                                "type": "boolean"
                              },
                              "tombstonedAt": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "conflicts": {
                                "type": "object",
                                "properties": {
                                  "clientData": {},
                                  "serverData": {},
                                  "conflictedAt": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "clientData",
                                  "serverData",
                                  "conflictedAt"
                                ],
                                "additionalProperties": false
                              },
                              "usage": {
                                "type": "object",
                                "propertyNames": {
                                  "type": "string"
                                },
                                "additionalProperties": {}
                              },
                              "openai": {
                                "type": "object",
                                "propertyNames": {
                                  "type": "string"
                                },
                                "additionalProperties": {}
                              },
                              "requestId": {
                                "type": "string"
                              },
                              "numberOfInputTokens": {
                                "default": 0,
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              },
                              "numberOfCompletionTokens": {
                                "default": 0,
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              },
                              "inputTokensCost": {
                                "default": 0,
                                "type": "number"
                              },
                              "completionTokensCost": {
                                "default": 0,
                                "type": "number"
                              },
                              "totalTokensCost": {
                                "default": 0,
                                "type": "number"
                              },
                              "sandboxMode": {
                                "default": false,
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "id",
                              "conflicts",
                              "usage",
                              "openai",
                              "requestId",
                              "numberOfInputTokens",
                              "numberOfCompletionTokens",
                              "inputTokensCost",
                              "completionTokensCost",
                              "totalTokensCost",
                              "sandboxMode"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "id",
                          "conflicts",
                          "usageLimitRuleIds",
                          "rateLimitRuleIds",
                          "error",
                          "finishedAt",
                          "project",
                          "product",
                          "customer",
                          "externalServiceAccount"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "billedUsages": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          "tombstoned": {
                            "type": "boolean"
                          },
                          "tombstonedAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "conflicts": {
                            "type": "object",
                            "properties": {
                              "clientData": {},
                              "serverData": {},
                              "conflictedAt": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "clientData",
                              "serverData",
                              "conflictedAt"
                            ],
                            "additionalProperties": false
                          },
                          "rawAmount": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "rule": {
                            "type": "string"
                          },
                          "customer": {
                            "type": "string"
                          },
                          "billingPeriod": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "conflicts",
                          "rawAmount",
                          "rule",
                          "customer",
                          "billingPeriod"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "conflicts",
                    "project",
                    "isSuspended",
                    "sandboxMode",
                    "billedRequests",
                    "billedUsages"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "delete": {
        "summary": "Delete a customer",
        "operationId": "deleteCustomer",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "customerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "success"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "patch": {
        "summary": "Update a customer",
        "operationId": "updateCustomer",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "customerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "tombstoned": {
                      "type": "boolean"
                    },
                    "tombstonedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "conflicts": {
                      "type": "object",
                      "properties": {
                        "clientData": {},
                        "serverData": {},
                        "conflictedAt": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "clientData",
                        "serverData",
                        "conflictedAt"
                      ],
                      "additionalProperties": false
                    },
                    "project": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "tombstoned": {
                          "type": "boolean"
                        },
                        "tombstonedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "conflicts": {
                          "type": "object",
                          "properties": {
                            "clientData": {},
                            "serverData": {},
                            "conflictedAt": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "clientData",
                            "serverData",
                            "conflictedAt"
                          ],
                          "additionalProperties": false
                        },
                        "object": {
                          "type": "string",
                          "enum": [
                            "project"
                          ]
                        },
                        "api": {
                          "type": "object",
                          "properties": {
                            "links": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "type": "object",
                                "properties": {
                                  "href": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "href"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "redactions": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "path": {
                                    "type": "string"
                                  },
                                  "reason": {
                                    "type": "string",
                                    "enum": [
                                      "secret",
                                      "internal"
                                    ]
                                  }
                                },
                                "required": [
                                  "path",
                                  "reason"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "additionalProperties": false
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1
                        },
                        "user": {
                          "type": "string"
                        },
                        "metadata": {
                          "type": "object",
                          "properties": {
                            "customServerURL": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "uri"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "freeUsersAllowed": {
                              "type": [
                                "boolean",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "freeUsersAllowed"
                          ],
                          "additionalProperties": false
                        },
                        "billingProviders": {
                          "type": "array",
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "appleAppStore"
                                    ]
                                  },
                                  "updatedAt": {
                                    "type": "string",
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                  },
                                  "configuration": {
                                    "type": "object",
                                    "properties": {
                                      "appStoreConnect": {
                                        "type": "object",
                                        "properties": {
                                          "issuerId": {
                                            "type": "string"
                                          },
                                          "privateKeyId": {
                                            "type": "string"
                                          },
                                          "credentialSources": {
                                            "type": "object",
                                            "properties": {
                                              "privateKey": {
                                                "type": "object",
                                                "properties": {
                                                  "source": {
                                                    "type": "string",
                                                    "enum": [
                                                      "onepassword"
                                                    ]
                                                  },
                                                  "secretsIntegrationId": {
                                                    "type": "string",
                                                    "minLength": 1
                                                  },
                                                  "secretReference": {
                                                    "type": "string",
                                                    "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                                  },
                                                  "secretReferenceLabel": {
                                                    "type": "string",
                                                    "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                                  },
                                                  "materializedAt": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "materializationError": {
                                                    "type": [
                                                      "string",
                                                      "null"
                                                    ]
                                                  }
                                                },
                                                "required": [
                                                  "source",
                                                  "secretsIntegrationId",
                                                  "secretReference",
                                                  "secretReferenceLabel",
                                                  "materializedAt",
                                                  "materializationError"
                                                ],
                                                "additionalProperties": false
                                              },
                                              "sharedSecret": {
                                                "type": "object",
                                                "properties": {
                                                  "source": {
                                                    "type": "string",
                                                    "enum": [
                                                      "onepassword"
                                                    ]
                                                  },
                                                  "secretsIntegrationId": {
                                                    "type": "string",
                                                    "minLength": 1
                                                  },
                                                  "secretReference": {
                                                    "type": "string",
                                                    "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                                  },
                                                  "secretReferenceLabel": {
                                                    "type": "string",
                                                    "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                                  },
                                                  "materializedAt": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "materializationError": {
                                                    "type": [
                                                      "string",
                                                      "null"
                                                    ]
                                                  }
                                                },
                                                "required": [
                                                  "source",
                                                  "secretsIntegrationId",
                                                  "secretReference",
                                                  "secretReferenceLabel",
                                                  "materializedAt",
                                                  "materializationError"
                                                ],
                                                "additionalProperties": false
                                              }
                                            },
                                            "additionalProperties": false
                                          },
                                          "privateKey": {
                                            "type": "string",
                                            "enum": [
                                              ""
                                            ]
                                          },
                                          "sharedSecret": {
                                            "type": "string",
                                            "enum": [
                                              ""
                                            ]
                                          }
                                        },
                                        "required": [
                                          "issuerId",
                                          "privateKeyId",
                                          "privateKey",
                                          "sharedSecret"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "fragile_appStoreConnect": {
                                        "type": "object",
                                        "properties": {
                                          "bundleId": {
                                            "type": "string"
                                          }
                                        },
                                        "required": [
                                          "bundleId"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "required": [
                                      "appStoreConnect",
                                      "fragile_appStoreConnect"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "id",
                                  "type",
                                  "updatedAt",
                                  "configuration"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "stripe"
                                    ]
                                  },
                                  "updatedAt": {
                                    "type": "string",
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                  },
                                  "configuration": {
                                    "type": "object",
                                    "properties": {
                                      "connect": {
                                        "type": "object",
                                        "properties": {
                                          "publishableKey": {
                                            "type": "string"
                                          },
                                          "webhookId": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "accountId": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "webhookApiVersion": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "redirectUrls": {
                                            "default": [],
                                            "anyOf": [
                                              {
                                                "type": "array",
                                                "items": {
                                                  "type": "string",
                                                  "format": "uri"
                                                }
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "credentialSources": {
                                            "type": "object",
                                            "properties": {
                                              "publishableKey": {
                                                "type": "object",
                                                "properties": {
                                                  "source": {
                                                    "type": "string",
                                                    "enum": [
                                                      "onepassword"
                                                    ]
                                                  },
                                                  "secretsIntegrationId": {
                                                    "type": "string",
                                                    "minLength": 1
                                                  },
                                                  "secretReference": {
                                                    "type": "string",
                                                    "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                                  },
                                                  "secretReferenceLabel": {
                                                    "type": "string",
                                                    "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                                  },
                                                  "materializedAt": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "materializationError": {
                                                    "type": [
                                                      "string",
                                                      "null"
                                                    ]
                                                  }
                                                },
                                                "required": [
                                                  "source",
                                                  "secretsIntegrationId",
                                                  "secretReference",
                                                  "secretReferenceLabel",
                                                  "materializedAt",
                                                  "materializationError"
                                                ],
                                                "additionalProperties": false
                                              },
                                              "secretKey": {
                                                "type": "object",
                                                "properties": {
                                                  "source": {
                                                    "type": "string",
                                                    "enum": [
                                                      "onepassword"
                                                    ]
                                                  },
                                                  "secretsIntegrationId": {
                                                    "type": "string",
                                                    "minLength": 1
                                                  },
                                                  "secretReference": {
                                                    "type": "string",
                                                    "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                                  },
                                                  "secretReferenceLabel": {
                                                    "type": "string",
                                                    "pattern": "^op:\\/\\/[^/]+\\/[^/]+(?:\\/[^/]+)+$"
                                                  },
                                                  "materializedAt": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "materializationError": {
                                                    "type": [
                                                      "string",
                                                      "null"
                                                    ]
                                                  }
                                                },
                                                "required": [
                                                  "source",
                                                  "secretsIntegrationId",
                                                  "secretReference",
                                                  "secretReferenceLabel",
                                                  "materializedAt",
                                                  "materializationError"
                                                ],
                                                "additionalProperties": false
                                              }
                                            },
                                            "additionalProperties": false
                                          },
                                          "secretKey": {
                                            "type": "string",
                                            "enum": [
                                              ""
                                            ]
                                          },
                                          "webhookSecret": {
                                            "anyOf": [
                                              {
                                                "type": "string",
                                                "enum": [
                                                  ""
                                                ]
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          }
                                        },
                                        "required": [
                                          "publishableKey",
                                          "redirectUrls",
                                          "secretKey"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "required": [
                                      "connect"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "id",
                                  "type",
                                  "updatedAt",
                                  "configuration"
                                ],
                                "additionalProperties": false
                              }
                            ]
                          }
                        },
                        "authenticationProvider": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "appleAppStore",
                                "clerk",
                                "customServer",
                                "firebase",
                                "none",
                                "oidc"
                              ]
                            },
                            {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "appleAppStore"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "type"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "customServer"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "type"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "firebase"
                                      ]
                                    },
                                    "firebaseProjectId": {
                                      "type": "string",
                                      "minLength": 1
                                    },
                                    "customerDeprovisioningPolicy": {
                                      "type": "string",
                                      "enum": [
                                        "completeProductGrants",
                                        "retainProductGrants"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "firebaseProjectId",
                                    "customerDeprovisioningPolicy"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "clerk"
                                      ]
                                    },
                                    "instanceId": {
                                      "type": "string",
                                      "minLength": 1
                                    },
                                    "issuerURL": {
                                      "type": "string",
                                      "format": "uri"
                                    },
                                    "authorizedParties": {
                                      "minItems": 1,
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "format": "uri"
                                      }
                                    },
                                    "customerDeprovisioningPolicy": {
                                      "type": "string",
                                      "enum": [
                                        "completeProductGrants",
                                        "retainProductGrants"
                                      ]
                                    },
                                    "hasSecretKey": {
                                      "type": "boolean"
                                    },
                                    "webhook": {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "properties": {
                                            "status": {
                                              "type": "string",
                                              "enum": [
                                                "awaitingVerification",
                                                "verified"
                                              ]
                                            },
                                            "hasSigningSecret": {
                                              "type": "boolean"
                                            }
                                          },
                                          "required": [
                                            "status",
                                            "hasSigningSecret"
                                          ],
                                          "additionalProperties": false
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "instanceId",
                                    "issuerURL",
                                    "authorizedParties",
                                    "customerDeprovisioningPolicy",
                                    "hasSecretKey",
                                    "webhook"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "oidc"
                                      ]
                                    },
                                    "issuerURL": {
                                      "type": "string",
                                      "format": "uri"
                                    },
                                    "audiences": {
                                      "minItems": 1,
                                      "maxItems": 20,
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "minLength": 1
                                      }
                                    }
                                  },
                                  "required": [
                                    "type",
                                    "issuerURL",
                                    "audiences"
                                  ],
                                  "additionalProperties": false
                                }
                              ]
                            }
                          ]
                        },
                        "sandboxMode": {
                          "type": "boolean"
                        },
                        "hidden": {
                          "type": "boolean"
                        },
                        "products": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "required": [
                        "id",
                        "conflicts",
                        "object",
                        "name",
                        "user",
                        "metadata",
                        "billingProviders",
                        "authenticationProvider",
                        "sandboxMode",
                        "hidden"
                      ],
                      "additionalProperties": false
                    },
                    "emailAddress": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "email",
                          "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "isSuspended": {
                      "type": "boolean"
                    },
                    "metadata": {
                      "anyOf": [
                        {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sandboxMode": {
                      "type": "boolean"
                    },
                    "sandboxSecret": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "appUserId": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "billedRequests": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          "tombstoned": {
                            "type": "boolean"
                          },
                          "tombstonedAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "conflicts": {
                            "type": "object",
                            "properties": {
                              "clientData": {},
                              "serverData": {},
                              "conflictedAt": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "clientData",
                              "serverData",
                              "conflictedAt"
                            ],
                            "additionalProperties": false
                          },
                          "usageLimitRuleIds": {
                            "anyOf": [
                              {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "rateLimitRuleIds": {
                            "anyOf": [
                              {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "message": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {}
                          },
                          "error": {
                            "type": "boolean"
                          },
                          "finishedAt": {
                            "type": "string"
                          },
                          "project": {
                            "type": "string"
                          },
                          "product": {
                            "type": "string"
                          },
                          "customer": {
                            "type": "string"
                          },
                          "externalServiceAccount": {
                            "type": "string"
                          },
                          "completion": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "createdAt": {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              "updatedAt": {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              "tombstoned": {
                                "type": "boolean"
                              },
                              "tombstonedAt": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "conflicts": {
                                "type": "object",
                                "properties": {
                                  "clientData": {},
                                  "serverData": {},
                                  "conflictedAt": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "clientData",
                                  "serverData",
                                  "conflictedAt"
                                ],
                                "additionalProperties": false
                              },
                              "usage": {
                                "type": "object",
                                "propertyNames": {
                                  "type": "string"
                                },
                                "additionalProperties": {}
                              },
                              "openai": {
                                "type": "object",
                                "propertyNames": {
                                  "type": "string"
                                },
                                "additionalProperties": {}
                              },
                              "requestId": {
                                "type": "string"
                              },
                              "numberOfInputTokens": {
                                "default": 0,
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              },
                              "numberOfCompletionTokens": {
                                "default": 0,
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              },
                              "inputTokensCost": {
                                "default": 0,
                                "type": "number"
                              },
                              "completionTokensCost": {
                                "default": 0,
                                "type": "number"
                              },
                              "totalTokensCost": {
                                "default": 0,
                                "type": "number"
                              },
                              "sandboxMode": {
                                "default": false,
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "id",
                              "conflicts",
                              "usage",
                              "openai",
                              "requestId",
                              "numberOfInputTokens",
                              "numberOfCompletionTokens",
                              "inputTokensCost",
                              "completionTokensCost",
                              "totalTokensCost",
                              "sandboxMode"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "id",
                          "conflicts",
                          "usageLimitRuleIds",
                          "rateLimitRuleIds",
                          "error",
                          "finishedAt",
                          "project",
                          "product",
                          "customer",
                          "externalServiceAccount"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "billedUsages": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          "tombstoned": {
                            "type": "boolean"
                          },
                          "tombstonedAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "conflicts": {
                            "type": "object",
                            "properties": {
                              "clientData": {},
                              "serverData": {},
                              "conflictedAt": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "clientData",
                              "serverData",
                              "conflictedAt"
                            ],
                            "additionalProperties": false
                          },
                          "rawAmount": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "rule": {
                            "type": "string"
                          },
                          "customer": {
                            "type": "string"
                          },
                          "billingPeriod": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "conflicts",
                          "rawAmount",
                          "rule",
                          "customer",
                          "billingPeriod"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "conflicts",
                    "project",
                    "isSuspended",
                    "sandboxMode",
                    "billedRequests",
                    "billedUsages"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "appUserId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "email": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 254,
                        "format": "email",
                        "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "name": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "metadata": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 40
                    },
                    "additionalProperties": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 500
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "isSuspended": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/admin/projects/{projectId}/customers/native/login": {
      "post": {
        "summary": "Log a customer in with native authentication",
        "operationId": "logInNativeAuthenticationCustomer",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "accessToken": {
                      "type": "string"
                    },
                    "refreshToken": {
                      "type": "string"
                    },
                    "customer": {
                      "type": "string"
                    },
                    "project": {
                      "type": "string"
                    },
                    "sandboxMode": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "accessToken",
                    "refreshToken",
                    "customer",
                    "project",
                    "sandboxMode"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "customerId": {
                    "type": "string"
                  }
                },
                "required": [
                  "customerId"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/admin/projects/{projectId}/customers/native/register": {
      "post": {
        "summary": "Register a customer with native authentication",
        "operationId": "registerNativeAuthenticationCustomer",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "accessToken": {
                      "type": "string"
                    },
                    "refreshToken": {
                      "type": "string"
                    },
                    "customer": {
                      "type": "string"
                    },
                    "project": {
                      "type": "string"
                    },
                    "sandboxMode": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "accessToken",
                    "refreshToken",
                    "customer",
                    "project",
                    "sandboxMode"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "metadata": {
                    "type": "object",
                    "properties": {
                      "authProvider": {
                        "type": "string"
                      },
                      "authId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      }
                    },
                    "required": [
                      "authProvider",
                      "authId"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "metadata"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/admin/projects/{projectId}/customers/{customerId}/product-grants": {
      "post": {
        "summary": "Grant a customer a product",
        "operationId": "createProductGrant",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "customerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "object": {
                      "type": "string",
                      "enum": [
                        "product_grant"
                      ]
                    },
                    "api": {
                      "type": "object",
                      "properties": {
                        "links": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {
                            "type": "object",
                            "properties": {
                              "href": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "href"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "redactions": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "path": {
                                "type": "string"
                              },
                              "reason": {
                                "type": "string",
                                "enum": [
                                  "secret",
                                  "internal"
                                ]
                              }
                            },
                            "required": [
                              "path",
                              "reason"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "customer": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "product": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "displayName": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "sku": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "billingInterval": {
                          "type": "string",
                          "enum": [
                            "daily",
                            "weekly",
                            "monthly",
                            "yearly",
                            "infinite"
                          ]
                        },
                        "isDefault": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "id",
                        "displayName",
                        "sku",
                        "billingInterval",
                        "isDefault"
                      ],
                      "additionalProperties": false
                    },
                    "source": {
                      "type": "string",
                      "enum": [
                        "default",
                        "manual",
                        "stripe",
                        "appStore"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "completed",
                        "refunded"
                      ]
                    },
                    "period": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "start": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "end": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "start",
                            "end"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "grantedBy": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "enum": [
                                "adminApiKey",
                                "user"
                              ]
                            },
                            "id": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "kind",
                            "id"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "stripe": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "checkoutSession": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "subscription": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "invoice": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "paymentIntent": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "customer": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "checkoutSession",
                            "subscription",
                            "invoice",
                            "paymentIntent",
                            "customer"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "appStore": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "originalTransactionId": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "originalTransactionId"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "payment": {
                      "type": "object",
                      "properties": {
                        "amountPaid": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "amountRefunded": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "amountUnrefunded": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "currency": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[a-z]{3}$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "refundHistoryAvailable": {
                          "type": "boolean"
                        },
                        "refunds": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "currency": {
                                "type": "string",
                                "pattern": "^[a-z]{3}$"
                              },
                              "refundAmount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "canceled",
                                  "failed",
                                  "pending",
                                  "requires_action",
                                  "succeeded"
                                ]
                              },
                              "stripeChargeId": {
                                "type": "string"
                              },
                              "stripePaymentIntentId": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "stripeRefundCreatedAt": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "stripeRefundId": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "currency",
                              "refundAmount",
                              "status",
                              "stripeChargeId",
                              "stripePaymentIntentId",
                              "stripeRefundCreatedAt",
                              "stripeRefundId"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "stripeChargeId": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "stripeCheckoutSessionId": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "stripeSubscriptionTerminal": {
                          "type": [
                            "boolean",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "amountPaid",
                        "amountRefunded",
                        "amountUnrefunded",
                        "currency",
                        "refundHistoryAvailable",
                        "refunds",
                        "stripeChargeId",
                        "stripeCheckoutSessionId",
                        "stripeSubscriptionTerminal"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "object",
                    "id",
                    "customer",
                    "product",
                    "source",
                    "status",
                    "period",
                    "grantedBy",
                    "stripe",
                    "appStore",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "product": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "endsAt": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "product"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/admin/projects/{projectId}/firebase/lifecycle": {
      "post": {
        "summary": "Relay a Firebase Auth user deletion",
        "operationId": "relayFirebaseUserDeleted",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "received": {
                      "type": "boolean",
                      "enum": [
                        true
                      ]
                    }
                  },
                  "required": [
                    "received"
                  ],
                  "additionalProperties": false
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "eventId": {
                    "type": "string",
                    "minLength": 1
                  },
                  "eventTime": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  "eventType": {
                    "type": "string",
                    "enum": [
                      "user.deleted"
                    ]
                  },
                  "firebaseProjectId": {
                    "type": "string",
                    "minLength": 1
                  },
                  "uid": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  }
                },
                "required": [
                  "eventId",
                  "eventTime",
                  "eventType",
                  "firebaseProjectId",
                  "uid"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/admin/backups/export": {
      "get": {
        "summary": "Export a workspace backup",
        "operationId": "exportWorkspaceBackup",
        "parameters": [
          {
            "name": "includeSecrets",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/gzip": {}
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/admin/projects/{projectId}/backups/export": {
      "get": {
        "summary": "Export a project backup",
        "operationId": "exportProjectBackup",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "includeSecrets",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/gzip": {}
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/admin/backups/restore": {
      "post": {
        "summary": "Restore a workspace backup",
        "operationId": "restoreWorkspaceBackup",
        "parameters": [
          {
            "name": "includeSecrets",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "restore": {
                      "type": "object",
                      "properties": {
                        "entities": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "entity": {
                                "type": "string"
                              },
                              "rows": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "entity",
                              "rows"
                            ],
                            "additionalProperties": {}
                          }
                        },
                        "rowCount": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "entities",
                        "rowCount"
                      ],
                      "additionalProperties": {}
                    }
                  },
                  "required": [
                    "restore"
                  ],
                  "additionalProperties": {}
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/gzip": {}
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/admin/projects/{projectId}/backups/restore": {
      "post": {
        "summary": "Restore a project backup",
        "operationId": "restoreProjectBackup",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          },
          {
            "name": "includeSecrets",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "restore": {
                      "type": "object",
                      "properties": {
                        "entities": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "entity": {
                                "type": "string"
                              },
                              "rows": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "entity",
                              "rows"
                            ],
                            "additionalProperties": {}
                          }
                        },
                        "rowCount": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "entities",
                        "rowCount"
                      ],
                      "additionalProperties": {}
                    }
                  },
                  "required": [
                    "restore"
                  ],
                  "additionalProperties": {}
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/gzip": {}
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  }
}