changedOutput schema / allOf
Previous value: -[
- {
- "description": "The reusable parts of a digital test. `connectorId`/`target`/`targetRef` are\nheld here as the default but can be overridden at launch — running the same\ntest against a different bot is the common case.\n\nEither `connectorId` or a complete `target`+`targetRef` pair is required.\n`connectorId` is resolved into the concrete target at LAUNCH time, so\nediting the connector updates every config that points at it; the inline\npair is TRANSITIONAL and accepted only until every config has been\nbackfilled with a connector.\n\nPer-kind rules are enforced at SAVE time, not just at launch: a config that\ncould never run is rejected with 400 rather than stored for you to discover\nlater. This excludes whether a `connectorId` actually resolves — that is not\nchecked until LAUNCH, so a typo'd, deleted, or cross-workspace connector still\nsaves with 200 and only fails when a run is started, before any billing occurs.\n",
- "properties": {
- "acceptance": {
- "description": "Required for `kind: freeform`.",
- "type": "string"
- },
- "additionalContext": {
- "maxLength": 800,
- "type": "string"
- },
- "catalogueTestId": {
- "description": "Required for `kind: compliance`.",
- "pattern": "^M-\\d{3}$",
- "type": "string"
- },
- "connectorId": {
- "description": "The connector this test runs against. Resolved at LAUNCH time, so\nediting a connector updates every test pointing at it.\n",
- "type": "string"
- },
- "description": {
- "maxLength": 2000,
- "type": "string"
- },
- "failConditions": {
- "items": {
- "type": "string"
- },
- "maxItems": 50,
- "type": "array"
- },
- "kind": {
- "default": "freeform",
- "enum": [
- "freeform",
- "compliance",
- "standard"
- ],
- "type": "string"
- },
- "maxTurns": {
- "maximum": 60,
- "minimum": 1,
- "type": "integer"
- },
- "mission": {
- "type": "string"
- },
- "name": {
- "maxLength": 200,
- "minLength": 1,
- "type": "string"
- },
- "passConditions": {
- "items": {
- "type": "string"
- },
- "maxItems": 50,
- "type": "array"
- },
- "probes": {
- "items": {
- "type": "string"
- },
- "maxItems": 100,
- "type": "array"
- },
- "profile": {
- "description": "Test data a `standard` run's steps draw on. The voice profile shape minus `voiceItems`.",
- "properties": {
- "dataItems": {
- "additionalProperties": {
- "properties": {
- "label": {
- "type": "string"
- },
- "value": {
- "type": "string"
- }
- },
- "type": "object"
- },
- "type": "object"
- }
- },
- "type": "object"
- },
- "profileId": {
- "description": "Reference to a saved profile (see `/profiles`) to draw test data from —\nthe same mechanism voice tests use. Resolved at RUN time, so editing the\nprofile updates every test that points at it rather than leaving stale\ncopies behind. Takes precedence over an inline `profile`.\n\nA profile that resolves to no usable items is rejected with 400 rather\nthan run with no data — a test that silently sent nothing would fail\nagainst a perfectly good bot and read as a product defect.\n",
- "type": "string"
- },
- "profileSnapshot": {
- "additionalProperties": true,
- "type": "object"
- },
- "samples": {
- "description": "Defaults to 3 for the judged kinds and 1 for `standard`.",
- "maximum": 10,
- "minimum": 1,
- "type": "integer"
- },
- "sector": {
- "type": "string"
- },
- "setup": {
- "type": "string"
- },
- "steps": {
- "description": "`standard` only.",
- "items": {
- "description": "One step of a `kind: standard` test, discriminated on `type`.\n\nModelled as a discriminated union rather than one permissive object so a\ngenerated client cannot build a step that the API will reject - an `expect`\nwith no `expected`, for instance.\n",
- "discriminator": {
- "mapping": {
- "end": "#/components/schemas/EndChatStep",
- "expect": "#/components/schemas/ExpectChatStep",
- "send": "#/components/schemas/SendChatStep",
- "wait": "#/components/schemas/WaitChatStep"
- },
- "propertyName": "type"
- },
- "oneOf": [
- {
- "allOf": [
- {
- "properties": {
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "type": "object"
- },
- {
- "description": "Send a customer message. Supply EXACTLY ONE of `text` or `profileItemId` -\nboth, or neither, is a 400.\n\n`profileItemId` is a key into `profile.dataItems`, mirroring how a voice\nDTMF step resolves one. There is no template syntax: an unresolvable\nreference fails loudly rather than sending the literal `{{accountNumber}}`\nto the bot.\n",
- "properties": {
- "profileItemId": {
- "type": "string"
- },
- "text": {
- "type": "string"
- },
- "type": {
- "enum": [
- "send"
- ],
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "type": "object"
- }
- ]
- },
- {
- "allOf": [
- {
- "properties": {
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "type": "object"
- },
- {
- "description": "Assert the bot's next message.\n\n`exact` is the default because chat delivers the bytes the bot sent. Voice\nhas to fuzzy-match at a threshold because ASR is lossy; defaulting to one\nhere would silently pass near-misses. Matching trims and collapses\nwhitespace but is case-SENSITIVE - a bot that changed case changed its\noutput.\n",
- "properties": {
- "expected": {
- "minLength": 1,
- "type": "string"
- },
- "matcher": {
- "default": "exact",
- "enum": [
- "exact",
- "contains",
- "regex",
- "similarity"
- ],
- "type": "string"
- },
- "threshold": {
- "default": 100,
- "description": "Only consulted by `similarity`, but reported on every result row so a failure shows the bar it was judged against.",
- "maximum": 100,
- "minimum": 0,
- "type": "integer"
- },
- "timeoutSecs": {
- "default": 20,
- "exclusiveMinimum": 0,
- "maximum": 120,
- "type": "number"
- },
- "type": {
- "enum": [
- "expect"
- ],
- "type": "string"
- }
- },
- "required": [
- "type",
- "expected"
- ],
- "type": "object"
- }
- ]
- },
- {
- "allOf": [
- {
- "properties": {
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "type": "object"
- },
- {
- "description": "Pause. For targets that rate-limit, or to let an async handoff settle.",
- "properties": {
- "seconds": {
- "default": 1,
- "exclusiveMinimum": 0,
- "maximum": 60,
- "type": "number"
- },
- "type": {
- "enum": [
- "wait"
- ],
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "type": "object"
- }
- ]
- },
- {
- "allOf": [
- {
- "properties": {
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "type": "object"
- },
- {
- "description": "Close the conversation explicitly. Optional - the runner closes the transport anyway.",
- "properties": {
- "type": {
- "enum": [
- "end"
- ],
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "type": "object"
- }
- ]
- }
- ],
- "type": "object"
- },
- "maxItems": 200,
- "type": "array"
- },
- "target": {
- "allOf": [
- {
- "description": "What `phoneNumber` becomes on a text channel. Discriminated on `transport`.\n`targetRef` (on the run, not here) is the stable human-readable identity a\nreport aggregates on.\n",
- "discriminator": {
- "mapping": {
- "connect-chat": "#/components/schemas/ConnectChatTarget",
- "http-json": "#/components/schemas/HttpJsonTarget",
- "web-widget": "#/components/schemas/WebWidgetTarget"
- },
- "propertyName": "transport"
- },
- "oneOf": [
- {
- "description": "Amazon Connect chat via StartChatContact plus the participant websocket.",
- "properties": {
- "assumeRoleArn": {
- "description": "Optional cross-account role. Absent means ambient credentials.",
- "type": "string"
- },
- "attributes": {
- "additionalProperties": {
- "type": "string"
- },
- "description": "Contact attributes set at StartChatContact.",
- "type": "object"
- },
- "contactFlowId": {
- "example": "<contact-flow-id>",
- "type": "string"
- },
- "instanceId": {
- "example": "<connect-instance-id>",
- "type": "string"
- },
- "region": {
- "default": "us-east-1",
- "type": "string"
- },
- "transport": {
- "enum": [
- "connect-chat"
- ],
- "type": "string"
- }
- },
- "required": [
- "transport",
- "instanceId",
- "contactFlowId"
- ],
- "type": "object"
- },
- {
- "description": "Generic REST chat endpoint, including OpenAI-compatible shapes.",
- "properties": {
- "authRef": {
- "type": "string"
- },
- "endpoint": {
- "example": "https://bot.example.com/v1/chat",
- "type": "string"
- },
- "openaiCompatible": {
- "type": "boolean"
- },
- "transport": {
- "enum": [
- "http-json"
- ],
- "type": "string"
- }
- },
- "required": [
- "transport",
- "endpoint"
- ],
- "type": "object"
- },
- {
- "description": "Browser-automated embedded chat widget, for targets with no API at all.",
- "properties": {
- "selectorProfile": {
- "type": "string"
- },
- "transport": {
- "enum": [
- "web-widget"
- ],
- "type": "string"
- },
- "url": {
- "example": "https://example.com/support",
- "type": "string"
- }
- },
- "required": [
- "transport",
- "url"
- ],
- "type": "object"
- }
- ],
- "type": "object"
- }
- ],
- "description": "TRANSITIONAL — inline target. Superseded by `connectorId`; required\ntogether with `targetRef` only when `connectorId` is absent.\n"
- },
- "targetRef": {
- "description": "TRANSITIONAL — inline target identity. Superseded by `connectorId`;\nrequired together with `target` only when `connectorId` is absent.\n",
- "example": "acme/billing-bot",
- "minLength": 1,
- "type": "string"
- }
- },
- "type": "object"
- },
- {
- "properties": {
- "createdAt": {
- "format": "date-time",
- "type": "string"
- },
- "id": {
- "format": "uuid",
- "type": "string"
- },
- "updatedAt": {
- "format": "date-time",
- "type": "string"
- },
- "userId": {
- "type": "string"
- },
- "workspaceId": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "workspaceId",
- "name",
- "sector",
- "mission",
- "kind",
- "createdAt",
- "updatedAt"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "description": "The reusable parts of a digital test. `connectorId`/`target`/`targetRef` are\nheld here as the default but can be overridden at launch — running the same\ntest against a different bot is the common case.\n\nEither `connectorId` or a complete `target`+`targetRef` pair is required.\n`connectorId` is resolved into the concrete target at LAUNCH time, so\nediting the connector updates every config that points at it; the inline\npair is TRANSITIONAL and accepted only until every config has been\nbackfilled with a connector.\n\nPer-kind rules are enforced at SAVE time, not just at launch: a config that\ncould never run is rejected with 400 rather than stored for you to discover\nlater. This excludes whether a `connectorId` actually resolves — that is not\nchecked until LAUNCH, so a typo'd, deleted, or cross-workspace connector still\nsaves with 200 and only fails when a run is started, before any billing occurs.\n",
+ "properties": {
+ "acceptance": {
+ "description": "Required for `kind: freeform`.",
+ "type": "string"
+ },
+ "additionalContext": {
+ "maxLength": 800,
+ "type": "string"
+ },
+ "catalogueTestId": {
+ "description": "Required for `kind: compliance`.",
+ "pattern": "^M-\\d{3}$",
+ "type": "string"
+ },
+ "connectorId": {
+ "description": "The connector this test runs against. Resolved at LAUNCH time, so\nediting a connector updates every test pointing at it.\n",
+ "type": "string"
+ },
+ "description": {
+ "maxLength": 2000,
+ "type": "string"
+ },
+ "failConditions": {
+ "items": {
+ "type": "string"
+ },
+ "maxItems": 50,
+ "type": "array"
+ },
+ "kind": {
+ "default": "freeform",
+ "enum": [
+ "freeform",
+ "compliance",
+ "standard"
+ ],
+ "type": "string"
+ },
+ "maxTurns": {
+ "maximum": 60,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "mission": {
+ "type": "string"
+ },
+ "name": {
+ "maxLength": 200,
+ "minLength": 1,
+ "type": "string"
+ },
+ "passConditions": {
+ "items": {
+ "type": "string"
+ },
+ "maxItems": 50,
+ "type": "array"
+ },
+ "probes": {
+ "items": {
+ "type": "string"
+ },
+ "maxItems": 100,
+ "type": "array"
+ },
+ "profile": {
+ "description": "Test data a `standard` run's steps draw on. The voice profile shape minus `voiceItems`.",
+ "properties": {
+ "dataItems": {
+ "additionalProperties": {
+ "properties": {
+ "label": {
+ "type": "string"
+ },
+ "value": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "type": "object"
+ }
+ },
+ "type": "object"
+ },
+ "profileId": {
+ "description": "Reference to a saved profile (see `/profiles`) to draw test data from —\nthe same mechanism voice tests use. Resolved at RUN time, so editing the\nprofile updates every test that points at it rather than leaving stale\ncopies behind. Takes precedence over an inline `profile`.\n\nA profile that resolves to no usable items is rejected with 400 rather\nthan run with no data — a test that silently sent nothing would fail\nagainst a perfectly good bot and read as a product defect.\n",
+ "type": "string"
+ },
+ "profileSnapshot": {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ "samples": {
+ "description": "Defaults to 3 for the judged kinds and 1 for `standard`.",
+ "maximum": 10,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "sector": {
+ "type": "string"
+ },
+ "setup": {
+ "type": "string"
+ },
+ "steps": {
+ "description": "`standard` only.",
+ "items": {
+ "description": "One step of a `kind: standard` test, discriminated on `type`.\n\nModelled as a discriminated union rather than one permissive object so a\ngenerated client cannot build a step that the API will reject - an `expect`\nwith no `expected`, for instance.\n",
+ "discriminator": {
+ "mapping": {
+ "end": "#/components/schemas/EndChatStep",
+ "expect": "#/components/schemas/ExpectChatStep",
+ "send": "#/components/schemas/SendChatStep",
+ "wait": "#/components/schemas/WaitChatStep"
+ },
+ "propertyName": "type"
+ },
+ "oneOf": [
+ {
+ "allOf": [
+ {
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "description": "Send a customer message. Supply EXACTLY ONE of `text` or `profileItemId` -\nboth, or neither, is a 400.\n\n`profileItemId` is a key into `profile.dataItems`, mirroring how a voice\nDTMF step resolves one. There is no template syntax: an unresolvable\nreference fails loudly rather than sending the literal `{{accountNumber}}`\nto the bot.\n",
+ "properties": {
+ "profileItemId": {
+ "type": "string"
+ },
+ "text": {
+ "type": "string"
+ },
+ "type": {
+ "enum": [
+ "send"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "description": "Assert the bot's next message.\n\n`exact` is the default because chat delivers the bytes the bot sent. Voice\nhas to fuzzy-match at a threshold because ASR is lossy; defaulting to one\nhere would silently pass near-misses. Matching trims and collapses\nwhitespace but is case-SENSITIVE - a bot that changed case changed its\noutput.\n",
+ "properties": {
+ "expected": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "matcher": {
+ "default": "exact",
+ "enum": [
+ "exact",
+ "contains",
+ "regex",
+ "similarity"
+ ],
+ "type": "string"
+ },
+ "threshold": {
+ "default": 100,
+ "description": "Only consulted by `similarity`, but reported on every result row so a failure shows the bar it was judged against.",
+ "maximum": 100,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "timeoutSecs": {
+ "default": 20,
+ "exclusiveMinimum": 0,
+ "maximum": 120,
+ "type": "number"
+ },
+ "type": {
+ "enum": [
+ "expect"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "expected"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "description": "Pause. For targets that rate-limit, or to let an async handoff settle.",
+ "properties": {
+ "seconds": {
+ "default": 1,
+ "exclusiveMinimum": 0,
+ "maximum": 60,
+ "type": "number"
+ },
+ "type": {
+ "enum": [
+ "wait"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ {
+ "allOf": [
+ {
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "description": "Close the conversation explicitly. Optional - the runner closes the transport anyway.",
+ "properties": {
+ "type": {
+ "enum": [
+ "end"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "type": "object"
+ }
+ ]
+ }
+ ],
+ "type": "object"
+ },
+ "maxItems": 200,
+ "type": "array"
+ },
+ "target": {
+ "allOf": [
+ {
+ "description": "What `phoneNumber` becomes on a text channel. Discriminated on `transport`.\n`targetRef` (on the run, not here) is the stable human-readable identity a\nreport aggregates on.\n",
+ "discriminator": {
+ "mapping": {
+ "connect-chat": "#/components/schemas/ConnectChatTarget",
+ "direct-line": "#/components/schemas/DirectLineTarget",
+ "http-json": "#/components/schemas/HttpJsonTarget",
+ "lex-v2": "#/components/schemas/LexV2Target",
+ "web-widget": "#/components/schemas/WebWidgetTarget"
+ },
+ "propertyName": "transport"
+ },
+ "oneOf": [
+ {
+ "description": "Amazon Connect chat via StartChatContact plus the participant websocket.",
+ "properties": {
+ "assumeRoleArn": {
+ "description": "Optional cross-account role. Absent means ambient credentials.",
+ "type": "string"
+ },
+ "attributes": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Contact attributes set at StartChatContact.",
+ "type": "object"
+ },
+ "contactFlowId": {
+ "example": "<contact-flow-id>",
+ "type": "string"
+ },
+ "instanceId": {
+ "example": "<connect-instance-id>",
+ "type": "string"
+ },
+ "region": {
+ "default": "us-east-1",
+ "type": "string"
+ },
+ "transport": {
+ "enum": [
+ "connect-chat"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "transport",
+ "instanceId",
+ "contactFlowId"
+ ],
+ "type": "object"
+ },
+ {
+ "description": "Generic REST chat endpoint, including OpenAI-compatible shapes.",
+ "properties": {
+ "authRef": {
+ "type": "string"
+ },
+ "endpoint": {
+ "example": "https://bot.example.com/v1/chat",
+ "type": "string"
+ },
+ "openaiCompatible": {
+ "type": "boolean"
+ },
+ "transport": {
+ "enum": [
+ "http-json"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "transport",
+ "endpoint"
+ ],
+ "type": "object"
+ },
+ {
+ "description": "Browser-automated embedded chat widget, for targets with no API at all.",
+ "properties": {
+ "selectorProfile": {
+ "type": "string"
+ },
+ "transport": {
+ "enum": [
+ "web-widget"
+ ],
+ "type": "string"
+ },
+ "url": {
+ "example": "https://example.com/support",
+ "type": "string"
+ }
+ },
+ "required": [
+ "transport",
+ "url"
+ ],
+ "type": "object"
+ },
+ {
+ "description": "Amazon Lex V2 via RecognizeText. Plain request and response, no websocket.",
+ "properties": {
+ "assumeRoleArn": {
+ "description": "Optional cross-account role. Absent means ambient credentials.",
+ "type": "string"
+ },
+ "botAliasId": {
+ "example": "<lex-bot-alias-id>",
+ "minLength": 1,
+ "type": "string"
+ },
+ "botId": {
+ "example": "<lex-bot-id>",
+ "minLength": 1,
+ "type": "string"
+ },
+ "localeId": {
+ "default": "en_US",
+ "minLength": 1,
+ "type": "string"
+ },
+ "region": {
+ "default": "us-east-1",
+ "type": "string"
+ },
+ "transport": {
+ "enum": [
+ "lex-v2"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "transport",
+ "botId",
+ "botAliasId"
+ ],
+ "type": "object"
+ },
+ {
+ "description": "Microsoft Bot Framework Direct Line 3.0: Copilot Studio agents and Azure Bot\nService bots. Holds a token endpoint URL, never a Direct Line secret.\n",
+ "properties": {
+ "directLineDomain": {
+ "description": "The Direct Line host, for example `https://europe.directline.botframework.com`.\nWhen absent it is discovered (Copilot Studio) or the global host is used.\n",
+ "type": "string"
+ },
+ "locale": {
+ "default": "en-US",
+ "minLength": 1,
+ "type": "string"
+ },
+ "skipStartEvent": {
+ "default": false,
+ "description": "A `startConversation` event is sent when the conversation opens, which is what\nmakes a Copilot Studio agent greet. Set true for a bot that greets on its own.\n",
+ "type": "boolean"
+ },
+ "tokenEndpoint": {
+ "description": "An https endpoint that returns a Direct Line token. Copilot Studio serves one;\nfor Azure Bot Service it is an endpoint the customer hosts that exchanges their\nsecret for a token.\n",
+ "example": "https://bot.example.com/directline/token",
+ "minLength": 1,
+ "type": "string"
+ },
+ "transport": {
+ "enum": [
+ "direct-line"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "transport",
+ "tokenEndpoint"
+ ],
+ "type": "object"
+ }
+ ],
+ "type": "object"
+ }
+ ],
+ "description": "TRANSITIONAL — inline target. Superseded by `connectorId`; required\ntogether with `targetRef` only when `connectorId` is absent.\n"
+ },
+ "targetRef": {
+ "description": "TRANSITIONAL — inline target identity. Superseded by `connectorId`;\nrequired together with `target` only when `connectorId` is absent.\n",
+ "example": "acme/billing-bot",
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ {
+ "properties": {
+ "createdAt": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "id": {
+ "format": "uuid",
+ "type": "string"
+ },
+ "updatedAt": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "userId": {
+ "type": "string"
+ },
+ "workspaceId": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "workspaceId",
+ "name",
+ "sector",
+ "mission",
+ "kind",
+ "createdAt",
+ "updatedAt"
+ ],
+ "type": "object"
+ }
+]