{
  "$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-output-schema.json",
  "title": "CreateCollaborationChangeRequestOutput",
  "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/CreateCollaborationChangeRequestOutput",
  "type": "object",
  "properties": {
    "collaborationChangeRequest": {
      "$ref": "#/$defs/CollaborationChangeRequest"
    }
  },
  "required": [
    "collaborationChangeRequest"
  ],
  "$defs": {
    "ApprovalStatusDetails": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "APPROVED",
            "DENIED",
            "PENDING"
          ],
          "description": "The approval status of a member's vote on the change request. Valid values are PENDING (if they haven't voted), APPROVED, or DENIED."
        }
      },
      "required": [
        "status"
      ]
    },
    "Change": {
      "type": "object",
      "properties": {
        "specificationType": {
          "type": "string",
          "enum": [
            "MEMBER",
            "COLLABORATION"
          ],
          "description": "The type of specification for this change."
        },
        "specification": {
          "$ref": "#/$defs/ChangeSpecification"
        },
        "types": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "ADD_MEMBER",
              "GRANT_RECEIVE_RESULTS_ABILITY",
              "REVOKE_RECEIVE_RESULTS_ABILITY",
              "EDIT_AUTO_APPROVED_CHANGE_TYPES",
              "ADD_PAYER_CANDIDATE",
              "REMOVE_PAYER_CANDIDATE",
              "GRANT_CAN_RECEIVE_MODEL_OUTPUT",
              "GRANT_CAN_RECEIVE_INFERENCE_OUTPUT",
              "REVOKE_CAN_RECEIVE_MODEL_OUTPUT",
              "REVOKE_CAN_RECEIVE_INFERENCE_OUTPUT",
              "GRANT_EXPORT_QUERY_ANALYSIS_LOG_ABILITY",
              "REVOKE_EXPORT_QUERY_ANALYSIS_LOG_ABILITY"
            ]
          },
          "description": "The list of change types that were applied."
        }
      },
      "required": [
        "specificationType",
        "specification",
        "types"
      ]
    },
    "ChangeSpecification": {
      "type": "object",
      "properties": {
        "member": {
          "$ref": "#/$defs/MemberChangeSpecification"
        },
        "collaboration": {
          "$ref": "#/$defs/CollaborationChangeSpecification"
        }
      },
      "description": "Exactly one member is set."
    },
    "CollaborationChangeRequest": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier for the change request."
        },
        "collaborationId": {
          "type": "string",
          "description": "The unique identifier for the collaboration being modified."
        },
        "createTime": {
          "type": "string",
          "description": "The time when the change request was created."
        },
        "updateTime": {
          "type": "string",
          "description": "The time when the change request was last updated."
        },
        "status": {
          "type": "string",
          "enum": [
            "PENDING",
            "APPROVED",
            "CANCELLED",
            "DENIED",
            "COMMITTED"
          ],
          "description": "The current status of the change request. Valid values are PENDING, APPROVED, DENIED, COMMITTED, and CANCELLED."
        },
        "isAutoApproved": {
          "type": "boolean",
          "description": "Whether the change request was automatically approved based on the collaboration's auto-approval settings."
        },
        "changes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Change"
          },
          "description": "The list of changes specified in this change request."
        },
        "approvals": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/ApprovalStatusDetails"
          },
          "description": "A list of approval details from collaboration members, including approval status and multi-party approval workflow information."
        }
      },
      "required": [
        "id",
        "collaborationId",
        "createTime",
        "updateTime",
        "status",
        "isAutoApproved",
        "changes"
      ]
    },
    "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"
      ]
    }
  }
}