Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions .github/workflows/create-release-transactional.yml
Original file line number Diff line number Diff line change
Expand Up @@ -456,19 +456,11 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GIT_HUB_TOKEN }}
SPEC_VERSION: ${{ needs.validate.outputs.version }}
continue-on-error: true # temp

- name: Publish → npm → transactional-node
if: env.PUBLISH_EXTERNAL == 'true'
working-directory: transactional-node
run: NODE_AUTH_TOKEN="" npm publish --access public
continue-on-error: true # temp

- name: Upload NPM logs
uses: actions/upload-artifact@v4
with:
name: npm-logs
path: /home/runner/.npm/_logs/
run: NODE_AUTH_TOKEN="" npm publish --access public # must set token to empty string to use OIDC. See https://github.com/actions/setup-node/issues/1440

publish-php:
runs-on: ubuntu-latest
Expand Down
40 changes: 35 additions & 5 deletions spec/transactional.json
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
},
"swagger": "2.0",
"info": {
"version": "1.3.2",
"version": "1.3.3",
"title": "Mailchimp Transactional API",
"contact": {
"name": "API Support",
Expand Down Expand Up @@ -3310,8 +3310,13 @@
"description": "the full SMS content to be sent"
},
"to": {
"type": "string",
"description": "the phone number to send the SMS message to"
"type": "array",
"description": "the phone numbers to send the SMS message to",
"items": {
"type": "string",
"description": "a single recipient's phone number",
"example": "+10000000000"
}
},
"from": {
"type": "string",
Expand All @@ -3329,6 +3334,10 @@
}
}
}
},
"async": {
"type": "boolean",
"description": "enable a background sending mode that is optimized for bulk sending. In async mode, messages/send-sms will immediately return a status of \"queued\" for every recipient. To handle rejections when sending in async mode, set up a webhook for the 'reject' event. Defaults to false for messages with no more than 10 recipients; messages with more than 10 recipients are always sent asynchronously, regardless of the value of async."
}
}
}
Expand Down Expand Up @@ -3362,8 +3371,29 @@
},
"reject_reason": {
"type": "string",
"description": "The reason for the rejection if the recipient status is rejected",
"example": null
"description": "the reason for the rejection if the recipient status is \"rejected\"",
"enum": [
"hard-bounce",
"soft-bounce",
"spam",
"unsub",
"custom",
"invalid-sender",
"invalid",
"test-mode-limit",
"unsigned",
"rule"
],
"example": "hard-bounce"
},
"queue_reason": {
"type": "string",
"description": "The reason for the queueing if the recipient status is queued",
"enum": [
"multiple recipients",
"async requested by user"
],
"example": "multiple recipients"
},
"_id": {
"type": "string",
Expand Down
Loading