{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-clean-rooms/json-schema/amazon-clean-rooms-create-collaboration-change-request-input-schema.json",
  "title": "CreateCollaborationChangeRequestInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-clean-rooms-changerequests-api-openapi.yml#/components/schemas/CreateCollaborationChangeRequestInput",
  "type": "object",
  "properties": {
    "collaborationIdentifier": {
      "type": "string",
      "description": "The identifier of the collaboration that the change request is made against."
    },
    "changes": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ChangeInput"
      },
      "description": "The list of changes to apply to the collaboration. Each change specifies the type of modification and the details of what should be changed."
    }
  },
  "required": [
    "collaborationIdentifier",
    "changes"
  ],
  "$defs": {
    "ChangeInput": {
      "type": "object",
      "properties": {
        "specificationType": {
          "type": "string",
          "enum": [
            "MEMBER",
            "COLLABORATION"
          ],
          "description": "The type of specification for the change. Currently supports MEMBER for member-related changes."
        },
        "specification": {
          "$ref": "#/$defs/ChangeSpecification"
        }
      },
      "required": [
        "specificationType",
        "specification"
      ]
    },
    "ChangeSpecification": {
      "type": "object",
      "properties": {
        "member": {
          "$ref": "#/$defs/MemberChangeSpecification"
        },
        "collaboration": {
          "$ref": "#/$defs/CollaborationChangeSpecification"
        }
      },
      "description": "Exactly one member is set."
    },
    "CollaborationChangeSpecification": {
      "type": "object",
      "properties": {
        "autoApprovedChangeTypes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "ADD_MEMBER",
              "GRANT_RECEIVE_RESULTS_ABILITY",
              "REVOKE_RECEIVE_RESULTS_ABILITY",
              "GRANT_EXPORT_QUERY_ANALYSIS_LOG_ABILITY",
              "REVOKE_EXPORT_QUERY_ANALYSIS_LOG_ABILITY"
            ]
          },
          "description": "Defines requested updates to properties of the collaboration. Currently, this only supports modifying which change types are auto-approved for the collaboration."
        }
      }
    },
    "JobComputePaymentConfig": {
      "type": "object",
      "properties": {
        "isResponsible": {
          "type": "boolean",
          "description": "Indicates whether the collaboration creator has configured the collaboration member to pay for query and job compute costs (TRUE) or has not configured the collaboration member to pay for query and job compute costs (FALSE). One or more members can be configured as payer candidates for query and job compute costs. An error is returned if the collaboration creator sets a FALSE value for the member who can run queries and jobs."
        }
      },
      "required": [
        "isResponsible"
      ]
    },
    "MLMemberAbilities": {
      "type": "object",
      "properties": {
        "customMLMemberAbilities": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "CAN_RECEIVE_MODEL_OUTPUT",
              "CAN_RECEIVE_INFERENCE_OUTPUT"
            ]
          },
          "description": "The custom ML member abilities for a collaboration member."
        }
      },
      "required": [
        "customMLMemberAbilities"
      ]
    },
    "MLPaymentConfig": {
      "type": "object",
      "properties": {
        "modelTraining": {
          "$ref": "#/$defs/ModelTrainingPaymentConfig"
        },
        "modelInference": {
          "$ref": "#/$defs/ModelInferencePaymentConfig"
        },
        "syntheticDataGeneration": {
          "$ref": "#/$defs/SyntheticDataGenerationPaymentConfig"
        }
      }
    },
    "MemberChangeSpecification": {
      "type": "object",
      "properties": {
        "accountId": {
          "type": "string",
          "description": "The Amazon Web Services account ID of the member to add to the collaboration."
        },
        "memberAbilities": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "CAN_QUERY",
              "CAN_RECEIVE_RESULTS",
              "CAN_RUN_JOB",
              "CAN_EXPORT_QUERY_ANALYSIS_LOG"
            ]
          },
          "description": "The abilities granted to the collaboration member. These determine what actions the member can perform within the collaboration. The following values are currently not supported: CAN_QUERY and CAN_RUN_JOB. Set the value of memberAbilities to [] to allow a member to contribute data. Set the value of memberAbilities to [CAN_RECEIVE_RESULTS] to allow a member to contribute data and receive results. Set the value of memberAbilities to [CAN_EXPORT_QUERY_ANALYSIS_LOG] so that the member can export the analysis logs for a protected query. Having this ability isn't sufficient on its own: You can expor"
        },
        "mlMemberAbilities": {
          "$ref": "#/$defs/MLMemberAbilities"
        },
        "paymentConfiguration": {
          "$ref": "#/$defs/PaymentConfiguration"
        },
        "displayName": {
          "type": "string",
          "description": "Specifies the display name that will be shown for this member in the collaboration. While this field is required when inviting new members, it becomes optional when modifying abilities of existing collaboration members."
        }
      },
      "required": [
        "accountId",
        "memberAbilities"
      ]
    },
    "ModelInferencePaymentConfig": {
      "type": "object",
      "properties": {
        "isResponsible": {
          "type": "boolean",
          "description": "Indicates whether the collaboration creator has configured the collaboration member to pay for model inference costs (TRUE) or has not configured the collaboration member to pay for model inference costs (FALSE). One or more members can be configured as payer candidates for model inference costs. If the collaboration creator hasn't specified anyone as the member paying for model inference costs, then the member who can query is the default payer."
        }
      },
      "required": [
        "isResponsible"
      ]
    },
    "ModelTrainingPaymentConfig": {
      "type": "object",
      "properties": {
        "isResponsible": {
          "type": "boolean",
          "description": "Indicates whether the collaboration creator has configured the collaboration member to pay for model training costs (TRUE) or has not configured the collaboration member to pay for model training costs (FALSE). One or more members can be configured as payer candidates for model training costs. If the collaboration creator hasn't specified anyone as the member paying for model training costs, then the member who can query is the default payer."
        }
      },
      "required": [
        "isResponsible"
      ]
    },
    "PaymentConfiguration": {
      "type": "object",
      "properties": {
        "queryCompute": {
          "$ref": "#/$defs/QueryComputePaymentConfig"
        },
        "machineLearning": {
          "$ref": "#/$defs/MLPaymentConfig"
        },
        "jobCompute": {
          "$ref": "#/$defs/JobComputePaymentConfig"
        }
      },
      "required": [
        "queryCompute"
      ]
    },
    "QueryComputePaymentConfig": {
      "type": "object",
      "properties": {
        "isResponsible": {
          "type": "boolean",
          "description": "Indicates whether the collaboration creator has configured the collaboration member to pay for query compute costs (TRUE) or has not configured the collaboration member to pay for query compute costs (FALSE). One or more members can be configured as payer candidates for query compute costs. If the collaboration creator hasn't specified anyone as the member paying for query compute costs, then the member who can query is the default payer."
        }
      },
      "required": [
        "isResponsible"
      ]
    },
    "SyntheticDataGenerationPaymentConfig": {
      "type": "object",
      "properties": {
        "isResponsible": {
          "type": "boolean",
          "description": "Indicates who is responsible for paying for synthetic data generation."
        }
      },
      "required": [
        "isResponsible"
      ]
    }
  }
}