{
  "openapi": "3.0.1",
  "info": {
    "title": "BCSoft.MessageBirdExtension.WebAPI",
    "version": "1.0"
  },
  "paths": {
    "/OracleCXAppInstall/status": {
      "get": {
        "tags": [
          "OracleCXAppInstall"
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/OracleCXAppInstall/config": {
      "post": {
        "tags": [
          "OracleCXAppInstall"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfigInstallRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfigInstallRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ConfigInstallRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/OracleCXAppInstall/saveConfig": {
      "post": {
        "tags": [
          "OracleCXAppInstall"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveInstallConfigurationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveInstallConfigurationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SaveInstallConfigurationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SaveInstallConfigurationResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SaveInstallConfigurationResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SaveInstallConfigurationResponse"
                }
              }
            }
          }
        }
      }
    },
    "/OracleCXAppInstall/install": {
      "post": {
        "tags": [
          "OracleCXAppInstall"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InstallRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/InstallRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/InstallRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/OracleCXAppInstall/uninstall": {
      "post": {
        "tags": [
          "OracleCXAppInstall"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApplicationInstall"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ApplicationInstall"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ApplicationInstall"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/OracleCXAppInstall/notification": {
      "post": {
        "tags": [
          "OracleCXAppInstall"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NotificationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/NotificationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/NotificationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/OracleCXAppService/status": {
      "get": {
        "tags": [
          "OracleCXAppService"
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/OracleCXAppService/create": {
      "post": {
        "tags": [
          "OracleCXAppService"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceInstallResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceInstallResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceInstallResponse"
                }
              }
            }
          }
        }
      }
    },
    "/OracleCXAppService/invoke": {
      "post": {
        "tags": [
          "OracleCXAppService"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvokeRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/InvokeRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/InvokeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InvokeResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvokeResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InvokeResponse"
                }
              }
            }
          }
        }
      }
    },
    "/OracleCXAppService/config": {
      "post": {
        "tags": [
          "OracleCXAppService"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfigRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfigRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ConfigRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/OracleCXAppService/saveConfig": {
      "post": {
        "tags": [
          "OracleCXAppService"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveServiceConfigurationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveServiceConfigurationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SaveServiceConfigurationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SaveServiceConfigurationResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SaveServiceConfigurationResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SaveServiceConfigurationResponse"
                }
              }
            }
          }
        }
      }
    },
    "/OracleCXAppService/delete": {
      "delete": {
        "tags": [
          "OracleCXAppService"
        ],
        "parameters": [
          {
            "name": "appId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "installId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "instance",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "userName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "siteName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "siteId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/OracleCXAppService/install": {
      "post": {
        "tags": [
          "OracleCXAppService"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InstallRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/InstallRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/InstallRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ApplicationInstall": {
        "type": "object",
        "properties": {
          "uuid": {
            "type": "string",
            "nullable": true
          },
          "deleted": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "application": {
            "$ref": "#/components/schemas/CXApplication"
          },
          "status": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ApplicationServiceInstall": {
        "type": "object",
        "properties": {
          "uuid": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "invokeUrl": {
            "type": "string",
            "nullable": true
          },
          "smallLogo": {
            "type": "string",
            "nullable": true
          },
          "mediumLogo": {
            "type": "string",
            "nullable": true
          },
          "largeLogo": {
            "type": "string",
            "nullable": true
          },
          "maxBatchSize": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "application": {
            "$ref": "#/components/schemas/CXApplication"
          },
          "serviceType": {
            "$ref": "#/components/schemas/ServiceType"
          },
          "installUuid": {
            "type": "string",
            "nullable": true
          },
          "productName": {
            "type": "string",
            "nullable": true
          },
          "providerName": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "additionalProperties": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ConfigInstallRequest": {
        "type": "object",
        "properties": {
          "applicationInstall": {
            "$ref": "#/components/schemas/ApplicationInstall"
          },
          "locale": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ConfigRequest": {
        "type": "object",
        "properties": {
          "uuid": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "locale": {
            "type": "string",
            "nullable": true
          },
          "assetId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "assetType": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Content": {
        "type": "object",
        "properties": {
          "invocationId": {
            "type": "string",
            "nullable": true
          },
          "instanceId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateRequest": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "nullable": true
          },
          "assetId": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "assetType": {
            "type": "string",
            "nullable": true
          },
          "uuid": {
            "type": "string",
            "nullable": true
          },
          "secret": {
            "type": "string",
            "nullable": true
          },
          "recordDefinition": {
            "nullable": true
          },
          "applicationServiceInstall": {
            "$ref": "#/components/schemas/ApplicationServiceInstall"
          },
          "additionalProperties": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CXApplication": {
        "type": "object",
        "properties": {
          "uuid": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "baseUrl": {
            "type": "string",
            "nullable": true
          },
          "statusUrl": {
            "type": "string",
            "nullable": true
          },
          "installUrl": {
            "type": "string",
            "nullable": true
          },
          "configureUrl": {
            "type": "string",
            "nullable": true
          },
          "uninstallUrl": {
            "type": "string",
            "nullable": true
          },
          "saveConfigurationUrl": {
            "type": "string",
            "nullable": true
          },
          "smallLogo": {
            "type": "string",
            "nullable": true
          },
          "mediumLogo": {
            "type": "string",
            "nullable": true
          },
          "largeLogo": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "providerUuid": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Data": {
        "type": "object",
        "properties": {
          "notificationType": {
            "type": "string",
            "nullable": true
          },
          "notificationData": {
            "$ref": "#/components/schemas/NotificationData"
          }
        },
        "additionalProperties": false
      },
      "DataSet": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "rows": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "nullable": true
          },
          "size": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "additionalProperties": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Headers": {
        "type": "object",
        "properties": {
          "additionalProperties": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "InputParameter": {
        "type": "object",
        "properties": {
          "dataType": {
            "type": "string",
            "nullable": true
          },
          "unique": {
            "type": "boolean",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "width": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "required": {
            "type": "boolean",
            "nullable": true
          },
          "readOnly": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "InstallPayload": {
        "type": "object",
        "properties": {
          "username": {
            "type": "string",
            "nullable": true
          },
          "userEndPoint": {
            "type": "string",
            "nullable": true
          },
          "notificationEmails": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "marketingPrograms": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "appinstalluiid": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "InstallRequest": {
        "type": "object",
        "properties": {
          "applicationInstall": {
            "$ref": "#/components/schemas/ApplicationInstall"
          },
          "secret": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "InstanceContext": {
        "type": "object",
        "properties": {
          "appId": {
            "type": "string",
            "nullable": true
          },
          "appVersion": {
            "nullable": true
          },
          "installId": {
            "type": "string",
            "nullable": true
          },
          "instanceId": {
            "type": "string",
            "nullable": true
          },
          "serviceId": {
            "type": "string",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "nullable": true
          },
          "productId": {
            "type": "string",
            "nullable": true
          },
          "maxPushBatchSize": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "secret": {
            "type": "string",
            "nullable": true
          },
          "recordDefinition": {
            "$ref": "#/components/schemas/RecordDefinition"
          },
          "maxBatchSize": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "additionalProperties": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "InvokeRequest": {
        "type": "object",
        "properties": {
          "instanceContext": {
            "$ref": "#/components/schemas/InstanceContext"
          },
          "dataSet": {
            "$ref": "#/components/schemas/DataSet"
          },
          "productExportEndpoint": {
            "$ref": "#/components/schemas/ProductExportEndpoint"
          },
          "productImportEndpoint": {
            "$ref": "#/components/schemas/ProductImportEndpoint"
          },
          "onCompletionCallbackEndpoint": {
            "$ref": "#/components/schemas/OnCompletionCallbackEndpoint"
          },
          "maxPullPageSize": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "maxPushBatchSize": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "InvokeResponse": {
        "type": "object",
        "properties": {
          "successful": {
            "type": "boolean",
            "nullable": true
          },
          "content": {
            "$ref": "#/components/schemas/Content"
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "NotificationData": {
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string",
            "nullable": true
          },
          "tenantRestUrl": {
            "type": "string",
            "nullable": true
          },
          "productUuid": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "NotificationRequest": {
        "type": "object",
        "properties": {
          "eventId": {
            "type": "string",
            "nullable": true
          },
          "eventType": {
            "type": "string",
            "nullable": true
          },
          "data": {
            "$ref": "#/components/schemas/Data"
          }
        },
        "additionalProperties": false
      },
      "OnCompletionCallbackEndpoint": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "nullable": true
          },
          "method": {
            "type": "string",
            "nullable": true
          },
          "headers": {
            "$ref": "#/components/schemas/Headers"
          }
        },
        "additionalProperties": false
      },
      "OutputParameter": {
        "type": "object",
        "properties": {
          "dataType": {
            "type": "string",
            "nullable": true
          },
          "unique": {
            "type": "boolean",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "width": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "required": {
            "type": "boolean",
            "nullable": true
          },
          "readOnly": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProductExportEndpoint": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "nullable": true
          },
          "method": {
            "type": "string",
            "nullable": true
          },
          "headers": {
            "$ref": "#/components/schemas/Headers"
          }
        },
        "additionalProperties": false
      },
      "ProductImportEndpoint": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "nullable": true
          },
          "method": {
            "type": "string",
            "nullable": true
          },
          "headers": {
            "$ref": "#/components/schemas/Headers"
          }
        },
        "additionalProperties": false
      },
      "RecordDefinition": {
        "type": "object",
        "properties": {
          "inputParameters": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InputParameter"
            },
            "nullable": true
          },
          "outputParameters": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OutputParameter"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SaveInstallConfigurationRequest": {
        "type": "object",
        "properties": {
          "installUuid": {
            "type": "string",
            "nullable": true
          },
          "payload": {
            "$ref": "#/components/schemas/InstallPayload"
          }
        },
        "additionalProperties": false
      },
      "SaveInstallConfigurationResponse": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "nullable": true
          },
          "configurationStatus": {
            "type": "string",
            "nullable": true
          },
          "payload": {
            "$ref": "#/components/schemas/InstallPayload"
          },
          "httpStatusCode": {
            "type": "string",
            "nullable": true
          },
          "recordDefinition": {
            "$ref": "#/components/schemas/RecordDefinition"
          },
          "additionalProperties": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SaveServiceConfigurationRequest": {
        "type": "object",
        "properties": {
          "instanceUuid": {
            "type": "string",
            "nullable": true
          },
          "payload": {
            "$ref": "#/components/schemas/ServiceConfigurationPayload"
          }
        },
        "additionalProperties": false
      },
      "SaveServiceConfigurationResponse": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "nullable": true
          },
          "configurationStatus": {
            "type": "string",
            "nullable": true
          },
          "payload": {
            "$ref": "#/components/schemas/ServiceConfigurationPayload"
          },
          "httpStatusCode": {
            "type": "string",
            "nullable": true
          },
          "recordDefinition": {
            "$ref": "#/components/schemas/RecordDefinition"
          },
          "additionalProperties": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ServiceConfigurationPayload": {
        "type": "object",
        "properties": {
          "contactList": {
            "type": "string",
            "nullable": true
          },
          "pet": {
            "type": "string",
            "nullable": true
          },
          "delay": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "firstLink": {
            "type": "string",
            "nullable": true
          },
          "link1Parameters": {
            "type": "string",
            "nullable": true
          },
          "secondLink": {
            "type": "string",
            "nullable": true
          },
          "link2Parameters": {
            "type": "string",
            "nullable": true
          },
          "thirdLink": {
            "type": "string",
            "nullable": true
          },
          "link3Parameters": {
            "type": "string",
            "nullable": true
          },
          "messageText": {
            "type": "string",
            "nullable": true
          },
          "marketingProgram": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ServiceInstallResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "serviceId": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "iconUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ServiceType": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "externalName": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "additionalProperties": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    }
  }
}