@zavudev/sdk-mcp 0.15.1 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -228
- package/code-tool.d.mts +2 -44
- package/code-tool.d.mts.map +1 -1
- package/code-tool.d.ts +2 -44
- package/code-tool.d.ts.map +1 -1
- package/code-tool.js +2 -2
- package/code-tool.js.map +1 -1
- package/code-tool.mjs +2 -2
- package/code-tool.mjs.map +1 -1
- package/docs-search-tool.d.mts +3 -3
- package/docs-search-tool.d.mts.map +1 -1
- package/docs-search-tool.d.ts +3 -3
- package/docs-search-tool.d.ts.map +1 -1
- package/docs-search-tool.js +1 -1
- package/docs-search-tool.js.map +1 -1
- package/docs-search-tool.mjs +1 -1
- package/http.d.mts.map +1 -1
- package/http.d.ts.map +1 -1
- package/http.js +1 -18
- package/http.js.map +1 -1
- package/http.mjs +1 -18
- package/http.mjs.map +1 -1
- package/index.js +4 -40
- package/index.js.map +1 -1
- package/index.mjs +4 -40
- package/index.mjs.map +1 -1
- package/options.d.mts +0 -9
- package/options.d.mts.map +1 -1
- package/options.d.ts +0 -9
- package/options.d.ts.map +1 -1
- package/options.js +4 -359
- package/options.js.map +1 -1
- package/options.mjs +4 -359
- package/options.mjs.map +1 -1
- package/package.json +9 -49
- package/server.d.mts +3 -8
- package/server.d.mts.map +1 -1
- package/server.d.ts +3 -8
- package/server.d.ts.map +1 -1
- package/server.js +12 -65
- package/server.js.map +1 -1
- package/server.mjs +11 -62
- package/server.mjs.map +1 -1
- package/src/code-tool.ts +2 -2
- package/src/docs-search-tool.ts +1 -1
- package/src/http.ts +1 -19
- package/src/index.ts +5 -52
- package/src/options.ts +5 -386
- package/src/server.ts +12 -72
- package/src/stdio.ts +2 -3
- package/src/{tools/types.ts → types.ts} +1 -1
- package/stdio.d.mts +1 -2
- package/stdio.d.mts.map +1 -1
- package/stdio.d.ts +1 -2
- package/stdio.d.ts.map +1 -1
- package/stdio.js +2 -2
- package/stdio.js.map +1 -1
- package/stdio.mjs +2 -2
- package/stdio.mjs.map +1 -1
- package/{tools/types.d.mts → types.d.mts} +1 -1
- package/types.d.mts.map +1 -0
- package/{tools/types.d.ts → types.d.ts} +1 -1
- package/types.d.ts.map +1 -0
- package/types.js.map +1 -0
- package/types.mjs.map +1 -0
- package/compat.d.mts +0 -58
- package/compat.d.mts.map +0 -1
- package/compat.d.ts +0 -58
- package/compat.d.ts.map +0 -1
- package/compat.js +0 -387
- package/compat.js.map +0 -1
- package/compat.mjs +0 -378
- package/compat.mjs.map +0 -1
- package/dynamic-tools.d.mts +0 -12
- package/dynamic-tools.d.mts.map +0 -1
- package/dynamic-tools.d.ts +0 -12
- package/dynamic-tools.d.ts.map +0 -1
- package/dynamic-tools.js +0 -135
- package/dynamic-tools.js.map +0 -1
- package/dynamic-tools.mjs +0 -132
- package/dynamic-tools.mjs.map +0 -1
- package/filtering.d.mts +0 -3
- package/filtering.d.mts.map +0 -1
- package/filtering.d.ts +0 -3
- package/filtering.d.ts.map +0 -1
- package/filtering.js +0 -24
- package/filtering.js.map +0 -1
- package/filtering.mjs +0 -16
- package/filtering.mjs.map +0 -1
- package/src/compat.ts +0 -483
- package/src/dynamic-tools.ts +0 -153
- package/src/filtering.ts +0 -18
- package/src/tools/broadcasts/cancel-broadcasts.ts +0 -52
- package/src/tools/broadcasts/contacts/add-broadcasts-contacts.ts +0 -73
- package/src/tools/broadcasts/contacts/list-broadcasts-contacts.ts +0 -71
- package/src/tools/broadcasts/contacts/remove-broadcasts-contacts.ts +0 -43
- package/src/tools/broadcasts/create-broadcasts.ts +0 -134
- package/src/tools/broadcasts/delete-broadcasts.ts +0 -40
- package/src/tools/broadcasts/list-broadcasts.ts +0 -68
- package/src/tools/broadcasts/progress-broadcasts.ts +0 -54
- package/src/tools/broadcasts/retrieve-broadcasts.ts +0 -54
- package/src/tools/broadcasts/send-broadcasts.ts +0 -57
- package/src/tools/broadcasts/update-broadcasts.ts +0 -106
- package/src/tools/contacts/list-contacts.ts +0 -61
- package/src/tools/contacts/retrieve-by-phone-contacts.ts +0 -56
- package/src/tools/contacts/retrieve-contacts.ts +0 -54
- package/src/tools/contacts/update-contacts.ts +0 -61
- package/src/tools/index.ts +0 -149
- package/src/tools/introspect/validate-phone-introspect.ts +0 -52
- package/src/tools/messages/list-messages.ts +0 -78
- package/src/tools/messages/react-messages.ts +0 -59
- package/src/tools/messages/retrieve-messages.ts +0 -54
- package/src/tools/messages/send-messages.ts +0 -233
- package/src/tools/phone-numbers/list-phone-numbers.ts +0 -68
- package/src/tools/phone-numbers/purchase-phone-numbers.ts +0 -57
- package/src/tools/phone-numbers/release-phone-numbers.ts +0 -40
- package/src/tools/phone-numbers/retrieve-phone-numbers.ts +0 -56
- package/src/tools/phone-numbers/search-available-phone-numbers.ts +0 -72
- package/src/tools/phone-numbers/update-phone-numbers.ts +0 -62
- package/src/tools/senders/create-senders.ts +0 -86
- package/src/tools/senders/delete-senders.ts +0 -40
- package/src/tools/senders/get-profile-senders.ts +0 -54
- package/src/tools/senders/list-senders.ts +0 -58
- package/src/tools/senders/regenerate-webhook-secret-senders.ts +0 -54
- package/src/tools/senders/retrieve-senders.ts +0 -54
- package/src/tools/senders/update-profile-senders.ts +0 -107
- package/src/tools/senders/update-senders.ts +0 -90
- package/src/tools/senders/upload-profile-picture-senders.ts +0 -63
- package/src/tools/templates/create-templates.ts +0 -74
- package/src/tools/templates/delete-templates.ts +0 -40
- package/src/tools/templates/list-templates.ts +0 -58
- package/src/tools/templates/retrieve-templates.ts +0 -54
- package/src/tools/templates/submit-templates.ts +0 -66
- package/src/tools.ts +0 -1
- package/tools/broadcasts/cancel-broadcasts.d.mts +0 -51
- package/tools/broadcasts/cancel-broadcasts.d.mts.map +0 -1
- package/tools/broadcasts/cancel-broadcasts.d.ts +0 -51
- package/tools/broadcasts/cancel-broadcasts.d.ts.map +0 -1
- package/tools/broadcasts/cancel-broadcasts.js +0 -52
- package/tools/broadcasts/cancel-broadcasts.js.map +0 -1
- package/tools/broadcasts/cancel-broadcasts.mjs +0 -45
- package/tools/broadcasts/cancel-broadcasts.mjs.map +0 -1
- package/tools/broadcasts/contacts/add-broadcasts-contacts.d.mts +0 -51
- package/tools/broadcasts/contacts/add-broadcasts-contacts.d.mts.map +0 -1
- package/tools/broadcasts/contacts/add-broadcasts-contacts.d.ts +0 -51
- package/tools/broadcasts/contacts/add-broadcasts-contacts.d.ts.map +0 -1
- package/tools/broadcasts/contacts/add-broadcasts-contacts.js +0 -71
- package/tools/broadcasts/contacts/add-broadcasts-contacts.js.map +0 -1
- package/tools/broadcasts/contacts/add-broadcasts-contacts.mjs +0 -64
- package/tools/broadcasts/contacts/add-broadcasts-contacts.mjs.map +0 -1
- package/tools/broadcasts/contacts/list-broadcasts-contacts.d.mts +0 -51
- package/tools/broadcasts/contacts/list-broadcasts-contacts.d.mts.map +0 -1
- package/tools/broadcasts/contacts/list-broadcasts-contacts.d.ts +0 -51
- package/tools/broadcasts/contacts/list-broadcasts-contacts.d.ts.map +0 -1
- package/tools/broadcasts/contacts/list-broadcasts-contacts.js +0 -71
- package/tools/broadcasts/contacts/list-broadcasts-contacts.js.map +0 -1
- package/tools/broadcasts/contacts/list-broadcasts-contacts.mjs +0 -64
- package/tools/broadcasts/contacts/list-broadcasts-contacts.mjs.map +0 -1
- package/tools/broadcasts/contacts/remove-broadcasts-contacts.d.mts +0 -51
- package/tools/broadcasts/contacts/remove-broadcasts-contacts.d.mts.map +0 -1
- package/tools/broadcasts/contacts/remove-broadcasts-contacts.d.ts +0 -51
- package/tools/broadcasts/contacts/remove-broadcasts-contacts.d.ts.map +0 -1
- package/tools/broadcasts/contacts/remove-broadcasts-contacts.js +0 -40
- package/tools/broadcasts/contacts/remove-broadcasts-contacts.js.map +0 -1
- package/tools/broadcasts/contacts/remove-broadcasts-contacts.mjs +0 -36
- package/tools/broadcasts/contacts/remove-broadcasts-contacts.mjs.map +0 -1
- package/tools/broadcasts/create-broadcasts.d.mts +0 -51
- package/tools/broadcasts/create-broadcasts.d.mts.map +0 -1
- package/tools/broadcasts/create-broadcasts.d.ts +0 -51
- package/tools/broadcasts/create-broadcasts.d.ts.map +0 -1
- package/tools/broadcasts/create-broadcasts.js +0 -134
- package/tools/broadcasts/create-broadcasts.js.map +0 -1
- package/tools/broadcasts/create-broadcasts.mjs +0 -127
- package/tools/broadcasts/create-broadcasts.mjs.map +0 -1
- package/tools/broadcasts/delete-broadcasts.d.mts +0 -51
- package/tools/broadcasts/delete-broadcasts.d.mts.map +0 -1
- package/tools/broadcasts/delete-broadcasts.d.ts +0 -51
- package/tools/broadcasts/delete-broadcasts.d.ts.map +0 -1
- package/tools/broadcasts/delete-broadcasts.js +0 -37
- package/tools/broadcasts/delete-broadcasts.js.map +0 -1
- package/tools/broadcasts/delete-broadcasts.mjs +0 -33
- package/tools/broadcasts/delete-broadcasts.mjs.map +0 -1
- package/tools/broadcasts/list-broadcasts.d.mts +0 -51
- package/tools/broadcasts/list-broadcasts.d.mts.map +0 -1
- package/tools/broadcasts/list-broadcasts.d.ts +0 -51
- package/tools/broadcasts/list-broadcasts.d.ts.map +0 -1
- package/tools/broadcasts/list-broadcasts.js +0 -68
- package/tools/broadcasts/list-broadcasts.js.map +0 -1
- package/tools/broadcasts/list-broadcasts.mjs +0 -61
- package/tools/broadcasts/list-broadcasts.mjs.map +0 -1
- package/tools/broadcasts/progress-broadcasts.d.mts +0 -51
- package/tools/broadcasts/progress-broadcasts.d.mts.map +0 -1
- package/tools/broadcasts/progress-broadcasts.d.ts +0 -51
- package/tools/broadcasts/progress-broadcasts.d.ts.map +0 -1
- package/tools/broadcasts/progress-broadcasts.js +0 -54
- package/tools/broadcasts/progress-broadcasts.js.map +0 -1
- package/tools/broadcasts/progress-broadcasts.mjs +0 -47
- package/tools/broadcasts/progress-broadcasts.mjs.map +0 -1
- package/tools/broadcasts/retrieve-broadcasts.d.mts +0 -51
- package/tools/broadcasts/retrieve-broadcasts.d.mts.map +0 -1
- package/tools/broadcasts/retrieve-broadcasts.d.ts +0 -51
- package/tools/broadcasts/retrieve-broadcasts.d.ts.map +0 -1
- package/tools/broadcasts/retrieve-broadcasts.js +0 -54
- package/tools/broadcasts/retrieve-broadcasts.js.map +0 -1
- package/tools/broadcasts/retrieve-broadcasts.mjs +0 -47
- package/tools/broadcasts/retrieve-broadcasts.mjs.map +0 -1
- package/tools/broadcasts/send-broadcasts.d.mts +0 -51
- package/tools/broadcasts/send-broadcasts.d.mts.map +0 -1
- package/tools/broadcasts/send-broadcasts.d.ts +0 -51
- package/tools/broadcasts/send-broadcasts.d.ts.map +0 -1
- package/tools/broadcasts/send-broadcasts.js +0 -57
- package/tools/broadcasts/send-broadcasts.js.map +0 -1
- package/tools/broadcasts/send-broadcasts.mjs +0 -50
- package/tools/broadcasts/send-broadcasts.mjs.map +0 -1
- package/tools/broadcasts/update-broadcasts.d.mts +0 -51
- package/tools/broadcasts/update-broadcasts.d.mts.map +0 -1
- package/tools/broadcasts/update-broadcasts.d.ts +0 -51
- package/tools/broadcasts/update-broadcasts.d.ts.map +0 -1
- package/tools/broadcasts/update-broadcasts.js +0 -104
- package/tools/broadcasts/update-broadcasts.js.map +0 -1
- package/tools/broadcasts/update-broadcasts.mjs +0 -97
- package/tools/broadcasts/update-broadcasts.mjs.map +0 -1
- package/tools/contacts/list-contacts.d.mts +0 -51
- package/tools/contacts/list-contacts.d.mts.map +0 -1
- package/tools/contacts/list-contacts.d.ts +0 -51
- package/tools/contacts/list-contacts.d.ts.map +0 -1
- package/tools/contacts/list-contacts.js +0 -61
- package/tools/contacts/list-contacts.js.map +0 -1
- package/tools/contacts/list-contacts.mjs +0 -54
- package/tools/contacts/list-contacts.mjs.map +0 -1
- package/tools/contacts/retrieve-by-phone-contacts.d.mts +0 -51
- package/tools/contacts/retrieve-by-phone-contacts.d.mts.map +0 -1
- package/tools/contacts/retrieve-by-phone-contacts.d.ts +0 -51
- package/tools/contacts/retrieve-by-phone-contacts.d.ts.map +0 -1
- package/tools/contacts/retrieve-by-phone-contacts.js +0 -54
- package/tools/contacts/retrieve-by-phone-contacts.js.map +0 -1
- package/tools/contacts/retrieve-by-phone-contacts.mjs +0 -47
- package/tools/contacts/retrieve-by-phone-contacts.mjs.map +0 -1
- package/tools/contacts/retrieve-contacts.d.mts +0 -51
- package/tools/contacts/retrieve-contacts.d.mts.map +0 -1
- package/tools/contacts/retrieve-contacts.d.ts +0 -51
- package/tools/contacts/retrieve-contacts.d.ts.map +0 -1
- package/tools/contacts/retrieve-contacts.js +0 -54
- package/tools/contacts/retrieve-contacts.js.map +0 -1
- package/tools/contacts/retrieve-contacts.mjs +0 -47
- package/tools/contacts/retrieve-contacts.mjs.map +0 -1
- package/tools/contacts/update-contacts.d.mts +0 -51
- package/tools/contacts/update-contacts.d.mts.map +0 -1
- package/tools/contacts/update-contacts.d.ts +0 -51
- package/tools/contacts/update-contacts.d.ts.map +0 -1
- package/tools/contacts/update-contacts.js +0 -61
- package/tools/contacts/update-contacts.js.map +0 -1
- package/tools/contacts/update-contacts.mjs +0 -54
- package/tools/contacts/update-contacts.mjs.map +0 -1
- package/tools/index.d.mts +0 -10
- package/tools/index.d.mts.map +0 -1
- package/tools/index.d.ts +0 -10
- package/tools/index.d.ts.map +0 -1
- package/tools/index.js +0 -133
- package/tools/index.js.map +0 -1
- package/tools/index.mjs +0 -126
- package/tools/index.mjs.map +0 -1
- package/tools/introspect/validate-phone-introspect.d.mts +0 -51
- package/tools/introspect/validate-phone-introspect.d.mts.map +0 -1
- package/tools/introspect/validate-phone-introspect.d.ts +0 -51
- package/tools/introspect/validate-phone-introspect.d.ts.map +0 -1
- package/tools/introspect/validate-phone-introspect.js +0 -52
- package/tools/introspect/validate-phone-introspect.js.map +0 -1
- package/tools/introspect/validate-phone-introspect.mjs +0 -45
- package/tools/introspect/validate-phone-introspect.mjs.map +0 -1
- package/tools/messages/list-messages.d.mts +0 -51
- package/tools/messages/list-messages.d.mts.map +0 -1
- package/tools/messages/list-messages.d.ts +0 -51
- package/tools/messages/list-messages.d.ts.map +0 -1
- package/tools/messages/list-messages.js +0 -78
- package/tools/messages/list-messages.js.map +0 -1
- package/tools/messages/list-messages.mjs +0 -71
- package/tools/messages/list-messages.mjs.map +0 -1
- package/tools/messages/react-messages.d.mts +0 -51
- package/tools/messages/react-messages.d.mts.map +0 -1
- package/tools/messages/react-messages.d.ts +0 -51
- package/tools/messages/react-messages.d.ts.map +0 -1
- package/tools/messages/react-messages.js +0 -59
- package/tools/messages/react-messages.js.map +0 -1
- package/tools/messages/react-messages.mjs +0 -52
- package/tools/messages/react-messages.mjs.map +0 -1
- package/tools/messages/retrieve-messages.d.mts +0 -51
- package/tools/messages/retrieve-messages.d.mts.map +0 -1
- package/tools/messages/retrieve-messages.d.ts +0 -51
- package/tools/messages/retrieve-messages.d.ts.map +0 -1
- package/tools/messages/retrieve-messages.js +0 -54
- package/tools/messages/retrieve-messages.js.map +0 -1
- package/tools/messages/retrieve-messages.mjs +0 -47
- package/tools/messages/retrieve-messages.mjs.map +0 -1
- package/tools/messages/send-messages.d.mts +0 -51
- package/tools/messages/send-messages.d.mts.map +0 -1
- package/tools/messages/send-messages.d.ts +0 -51
- package/tools/messages/send-messages.d.ts.map +0 -1
- package/tools/messages/send-messages.js +0 -233
- package/tools/messages/send-messages.js.map +0 -1
- package/tools/messages/send-messages.mjs +0 -226
- package/tools/messages/send-messages.mjs.map +0 -1
- package/tools/phone-numbers/list-phone-numbers.d.mts +0 -51
- package/tools/phone-numbers/list-phone-numbers.d.mts.map +0 -1
- package/tools/phone-numbers/list-phone-numbers.d.ts +0 -51
- package/tools/phone-numbers/list-phone-numbers.d.ts.map +0 -1
- package/tools/phone-numbers/list-phone-numbers.js +0 -68
- package/tools/phone-numbers/list-phone-numbers.js.map +0 -1
- package/tools/phone-numbers/list-phone-numbers.mjs +0 -61
- package/tools/phone-numbers/list-phone-numbers.mjs.map +0 -1
- package/tools/phone-numbers/purchase-phone-numbers.d.mts +0 -51
- package/tools/phone-numbers/purchase-phone-numbers.d.mts.map +0 -1
- package/tools/phone-numbers/purchase-phone-numbers.d.ts +0 -51
- package/tools/phone-numbers/purchase-phone-numbers.d.ts.map +0 -1
- package/tools/phone-numbers/purchase-phone-numbers.js +0 -57
- package/tools/phone-numbers/purchase-phone-numbers.js.map +0 -1
- package/tools/phone-numbers/purchase-phone-numbers.mjs +0 -50
- package/tools/phone-numbers/purchase-phone-numbers.mjs.map +0 -1
- package/tools/phone-numbers/release-phone-numbers.d.mts +0 -51
- package/tools/phone-numbers/release-phone-numbers.d.mts.map +0 -1
- package/tools/phone-numbers/release-phone-numbers.d.ts +0 -51
- package/tools/phone-numbers/release-phone-numbers.d.ts.map +0 -1
- package/tools/phone-numbers/release-phone-numbers.js +0 -37
- package/tools/phone-numbers/release-phone-numbers.js.map +0 -1
- package/tools/phone-numbers/release-phone-numbers.mjs +0 -33
- package/tools/phone-numbers/release-phone-numbers.mjs.map +0 -1
- package/tools/phone-numbers/retrieve-phone-numbers.d.mts +0 -51
- package/tools/phone-numbers/retrieve-phone-numbers.d.mts.map +0 -1
- package/tools/phone-numbers/retrieve-phone-numbers.d.ts +0 -51
- package/tools/phone-numbers/retrieve-phone-numbers.d.ts.map +0 -1
- package/tools/phone-numbers/retrieve-phone-numbers.js +0 -54
- package/tools/phone-numbers/retrieve-phone-numbers.js.map +0 -1
- package/tools/phone-numbers/retrieve-phone-numbers.mjs +0 -47
- package/tools/phone-numbers/retrieve-phone-numbers.mjs.map +0 -1
- package/tools/phone-numbers/search-available-phone-numbers.d.mts +0 -51
- package/tools/phone-numbers/search-available-phone-numbers.d.mts.map +0 -1
- package/tools/phone-numbers/search-available-phone-numbers.d.ts +0 -51
- package/tools/phone-numbers/search-available-phone-numbers.d.ts.map +0 -1
- package/tools/phone-numbers/search-available-phone-numbers.js +0 -72
- package/tools/phone-numbers/search-available-phone-numbers.js.map +0 -1
- package/tools/phone-numbers/search-available-phone-numbers.mjs +0 -65
- package/tools/phone-numbers/search-available-phone-numbers.mjs.map +0 -1
- package/tools/phone-numbers/update-phone-numbers.d.mts +0 -51
- package/tools/phone-numbers/update-phone-numbers.d.mts.map +0 -1
- package/tools/phone-numbers/update-phone-numbers.d.ts +0 -51
- package/tools/phone-numbers/update-phone-numbers.d.ts.map +0 -1
- package/tools/phone-numbers/update-phone-numbers.js +0 -60
- package/tools/phone-numbers/update-phone-numbers.js.map +0 -1
- package/tools/phone-numbers/update-phone-numbers.mjs +0 -53
- package/tools/phone-numbers/update-phone-numbers.mjs.map +0 -1
- package/tools/senders/create-senders.d.mts +0 -51
- package/tools/senders/create-senders.d.mts.map +0 -1
- package/tools/senders/create-senders.d.ts +0 -51
- package/tools/senders/create-senders.d.ts.map +0 -1
- package/tools/senders/create-senders.js +0 -85
- package/tools/senders/create-senders.js.map +0 -1
- package/tools/senders/create-senders.mjs +0 -78
- package/tools/senders/create-senders.mjs.map +0 -1
- package/tools/senders/delete-senders.d.mts +0 -51
- package/tools/senders/delete-senders.d.mts.map +0 -1
- package/tools/senders/delete-senders.d.ts +0 -51
- package/tools/senders/delete-senders.d.ts.map +0 -1
- package/tools/senders/delete-senders.js +0 -37
- package/tools/senders/delete-senders.js.map +0 -1
- package/tools/senders/delete-senders.mjs +0 -33
- package/tools/senders/delete-senders.mjs.map +0 -1
- package/tools/senders/get-profile-senders.d.mts +0 -51
- package/tools/senders/get-profile-senders.d.mts.map +0 -1
- package/tools/senders/get-profile-senders.d.ts +0 -51
- package/tools/senders/get-profile-senders.d.ts.map +0 -1
- package/tools/senders/get-profile-senders.js +0 -54
- package/tools/senders/get-profile-senders.js.map +0 -1
- package/tools/senders/get-profile-senders.mjs +0 -47
- package/tools/senders/get-profile-senders.mjs.map +0 -1
- package/tools/senders/list-senders.d.mts +0 -51
- package/tools/senders/list-senders.d.mts.map +0 -1
- package/tools/senders/list-senders.d.ts +0 -51
- package/tools/senders/list-senders.d.ts.map +0 -1
- package/tools/senders/list-senders.js +0 -58
- package/tools/senders/list-senders.js.map +0 -1
- package/tools/senders/list-senders.mjs +0 -51
- package/tools/senders/list-senders.mjs.map +0 -1
- package/tools/senders/regenerate-webhook-secret-senders.d.mts +0 -51
- package/tools/senders/regenerate-webhook-secret-senders.d.mts.map +0 -1
- package/tools/senders/regenerate-webhook-secret-senders.d.ts +0 -51
- package/tools/senders/regenerate-webhook-secret-senders.d.ts.map +0 -1
- package/tools/senders/regenerate-webhook-secret-senders.js +0 -52
- package/tools/senders/regenerate-webhook-secret-senders.js.map +0 -1
- package/tools/senders/regenerate-webhook-secret-senders.mjs +0 -45
- package/tools/senders/regenerate-webhook-secret-senders.mjs.map +0 -1
- package/tools/senders/retrieve-senders.d.mts +0 -51
- package/tools/senders/retrieve-senders.d.mts.map +0 -1
- package/tools/senders/retrieve-senders.d.ts +0 -51
- package/tools/senders/retrieve-senders.d.ts.map +0 -1
- package/tools/senders/retrieve-senders.js +0 -54
- package/tools/senders/retrieve-senders.js.map +0 -1
- package/tools/senders/retrieve-senders.mjs +0 -47
- package/tools/senders/retrieve-senders.mjs.map +0 -1
- package/tools/senders/update-profile-senders.d.mts +0 -51
- package/tools/senders/update-profile-senders.d.mts.map +0 -1
- package/tools/senders/update-profile-senders.d.ts +0 -51
- package/tools/senders/update-profile-senders.d.ts.map +0 -1
- package/tools/senders/update-profile-senders.js +0 -105
- package/tools/senders/update-profile-senders.js.map +0 -1
- package/tools/senders/update-profile-senders.mjs +0 -98
- package/tools/senders/update-profile-senders.mjs.map +0 -1
- package/tools/senders/update-senders.d.mts +0 -51
- package/tools/senders/update-senders.d.mts.map +0 -1
- package/tools/senders/update-senders.d.ts +0 -51
- package/tools/senders/update-senders.d.ts.map +0 -1
- package/tools/senders/update-senders.js +0 -89
- package/tools/senders/update-senders.js.map +0 -1
- package/tools/senders/update-senders.mjs +0 -82
- package/tools/senders/update-senders.mjs.map +0 -1
- package/tools/senders/upload-profile-picture-senders.d.mts +0 -51
- package/tools/senders/upload-profile-picture-senders.d.mts.map +0 -1
- package/tools/senders/upload-profile-picture-senders.d.ts +0 -51
- package/tools/senders/upload-profile-picture-senders.d.ts.map +0 -1
- package/tools/senders/upload-profile-picture-senders.js +0 -61
- package/tools/senders/upload-profile-picture-senders.js.map +0 -1
- package/tools/senders/upload-profile-picture-senders.mjs +0 -54
- package/tools/senders/upload-profile-picture-senders.mjs.map +0 -1
- package/tools/templates/create-templates.d.mts +0 -51
- package/tools/templates/create-templates.d.mts.map +0 -1
- package/tools/templates/create-templates.d.ts +0 -51
- package/tools/templates/create-templates.d.ts.map +0 -1
- package/tools/templates/create-templates.js +0 -74
- package/tools/templates/create-templates.js.map +0 -1
- package/tools/templates/create-templates.mjs +0 -67
- package/tools/templates/create-templates.mjs.map +0 -1
- package/tools/templates/delete-templates.d.mts +0 -51
- package/tools/templates/delete-templates.d.mts.map +0 -1
- package/tools/templates/delete-templates.d.ts +0 -51
- package/tools/templates/delete-templates.d.ts.map +0 -1
- package/tools/templates/delete-templates.js +0 -37
- package/tools/templates/delete-templates.js.map +0 -1
- package/tools/templates/delete-templates.mjs +0 -33
- package/tools/templates/delete-templates.mjs.map +0 -1
- package/tools/templates/list-templates.d.mts +0 -51
- package/tools/templates/list-templates.d.mts.map +0 -1
- package/tools/templates/list-templates.d.ts +0 -51
- package/tools/templates/list-templates.d.ts.map +0 -1
- package/tools/templates/list-templates.js +0 -58
- package/tools/templates/list-templates.js.map +0 -1
- package/tools/templates/list-templates.mjs +0 -51
- package/tools/templates/list-templates.mjs.map +0 -1
- package/tools/templates/retrieve-templates.d.mts +0 -51
- package/tools/templates/retrieve-templates.d.mts.map +0 -1
- package/tools/templates/retrieve-templates.d.ts +0 -51
- package/tools/templates/retrieve-templates.d.ts.map +0 -1
- package/tools/templates/retrieve-templates.js +0 -54
- package/tools/templates/retrieve-templates.js.map +0 -1
- package/tools/templates/retrieve-templates.mjs +0 -47
- package/tools/templates/retrieve-templates.mjs.map +0 -1
- package/tools/templates/submit-templates.d.mts +0 -51
- package/tools/templates/submit-templates.d.mts.map +0 -1
- package/tools/templates/submit-templates.d.ts +0 -51
- package/tools/templates/submit-templates.d.ts.map +0 -1
- package/tools/templates/submit-templates.js +0 -66
- package/tools/templates/submit-templates.js.map +0 -1
- package/tools/templates/submit-templates.mjs +0 -59
- package/tools/templates/submit-templates.mjs.map +0 -1
- package/tools/types.d.mts.map +0 -1
- package/tools/types.d.ts.map +0 -1
- package/tools/types.js.map +0 -1
- package/tools/types.mjs.map +0 -1
- package/tools.d.mts +0 -2
- package/tools.d.mts.map +0 -1
- package/tools.d.ts +0 -2
- package/tools.d.ts.map +0 -1
- package/tools.js +0 -18
- package/tools.js.map +0 -1
- package/tools.mjs +0 -2
- package/tools.mjs.map +0 -1
- /package/{tools/types.js → types.js} +0 -0
- /package/{tools/types.mjs → types.mjs} +0 -0
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
-
};
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.handler = exports.tool = exports.metadata = void 0;
|
|
8
|
-
const filtering_1 = require("@zavudev/sdk-mcp/filtering");
|
|
9
|
-
const types_1 = require("@zavudev/sdk-mcp/tools/types");
|
|
10
|
-
const sdk_1 = __importDefault(require("@zavudev/sdk"));
|
|
11
|
-
exports.metadata = {
|
|
12
|
-
resource: 'broadcasts',
|
|
13
|
-
operation: 'read',
|
|
14
|
-
tags: [],
|
|
15
|
-
httpMethod: 'get',
|
|
16
|
-
httpPath: '/v1/broadcasts',
|
|
17
|
-
operationId: 'listBroadcasts',
|
|
18
|
-
};
|
|
19
|
-
exports.tool = {
|
|
20
|
-
name: 'list_broadcasts',
|
|
21
|
-
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nList broadcasts for this project.\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/broadcast'\n }\n },\n nextCursor: {\n type: 'string'\n }\n },\n required: [ 'items'\n ],\n $defs: {\n broadcast: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n channel: {\n $ref: '#/$defs/broadcast_channel'\n },\n createdAt: {\n type: 'string',\n format: 'date-time'\n },\n messageType: {\n $ref: '#/$defs/broadcast_message_type'\n },\n name: {\n type: 'string'\n },\n status: {\n $ref: '#/$defs/broadcast_status'\n },\n totalContacts: {\n type: 'integer',\n description: 'Total number of contacts in the broadcast.'\n },\n actualCost: {\n type: 'number',\n description: 'Actual cost so far in USD.'\n },\n completedAt: {\n type: 'string',\n format: 'date-time'\n },\n content: {\n $ref: '#/$defs/broadcast_content'\n },\n deliveredCount: {\n type: 'integer'\n },\n emailSubject: {\n type: 'string'\n },\n estimatedCost: {\n type: 'number',\n description: 'Estimated total cost in USD.'\n },\n failedCount: {\n type: 'integer'\n },\n metadata: {\n type: 'object',\n additionalProperties: true\n },\n pendingCount: {\n type: 'integer'\n },\n reservedAmount: {\n type: 'number',\n description: 'Amount reserved from balance in USD.'\n },\n scheduledAt: {\n type: 'string',\n format: 'date-time'\n },\n senderId: {\n type: 'string'\n },\n sendingCount: {\n type: 'integer'\n },\n startedAt: {\n type: 'string',\n format: 'date-time'\n },\n text: {\n type: 'string'\n },\n updatedAt: {\n type: 'string',\n format: 'date-time'\n }\n },\n required: [ 'id',\n 'channel',\n 'createdAt',\n 'messageType',\n 'name',\n 'status',\n 'totalContacts'\n ]\n },\n broadcast_channel: {\n type: 'string',\n description: 'Broadcast delivery channel.',\n enum: [ 'sms',\n 'whatsapp',\n 'email'\n ]\n },\n broadcast_message_type: {\n type: 'string',\n description: 'Type of message for broadcast.',\n enum: [ 'text',\n 'image',\n 'video',\n 'audio',\n 'document',\n 'template'\n ]\n },\n broadcast_status: {\n type: 'string',\n description: 'Current status of the broadcast.',\n enum: [ 'draft',\n 'scheduled',\n 'sending',\n 'paused',\n 'completed',\n 'cancelled',\n 'failed'\n ]\n },\n broadcast_content: {\n type: 'object',\n description: 'Content for non-text broadcast message types.',\n properties: {\n filename: {\n type: 'string',\n description: 'Filename for documents.'\n },\n mediaId: {\n type: 'string',\n description: 'Media ID if already uploaded.'\n },\n mediaUrl: {\n type: 'string',\n description: 'URL of the media file.'\n },\n mimeType: {\n type: 'string',\n description: 'MIME type of the media.'\n },\n templateId: {\n type: 'string',\n description: 'Template ID for template messages.'\n },\n templateVariables: {\n type: 'object',\n description: 'Default template variables (can be overridden per contact).',\n additionalProperties: true\n }\n }\n }\n }\n}\n```",
|
|
22
|
-
inputSchema: {
|
|
23
|
-
type: 'object',
|
|
24
|
-
properties: {
|
|
25
|
-
cursor: {
|
|
26
|
-
type: 'string',
|
|
27
|
-
},
|
|
28
|
-
limit: {
|
|
29
|
-
type: 'integer',
|
|
30
|
-
},
|
|
31
|
-
status: {
|
|
32
|
-
$ref: '#/$defs/broadcast_status',
|
|
33
|
-
},
|
|
34
|
-
jq_filter: {
|
|
35
|
-
type: 'string',
|
|
36
|
-
title: 'jq Filter',
|
|
37
|
-
description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
required: [],
|
|
41
|
-
$defs: {
|
|
42
|
-
broadcast_status: {
|
|
43
|
-
type: 'string',
|
|
44
|
-
description: 'Current status of the broadcast.',
|
|
45
|
-
enum: ['draft', 'scheduled', 'sending', 'paused', 'completed', 'cancelled', 'failed'],
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
annotations: {
|
|
50
|
-
readOnlyHint: true,
|
|
51
|
-
},
|
|
52
|
-
};
|
|
53
|
-
const handler = async (client, args) => {
|
|
54
|
-
const { jq_filter, ...body } = args;
|
|
55
|
-
const response = await client.broadcasts.list(body).asResponse();
|
|
56
|
-
try {
|
|
57
|
-
return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await response.json()));
|
|
58
|
-
}
|
|
59
|
-
catch (error) {
|
|
60
|
-
if (error instanceof sdk_1.default.APIError || (0, filtering_1.isJqError)(error)) {
|
|
61
|
-
return (0, types_1.asErrorResult)(error.message);
|
|
62
|
-
}
|
|
63
|
-
throw error;
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
exports.handler = handler;
|
|
67
|
-
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
68
|
-
//# sourceMappingURL=list-broadcasts.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-broadcasts.js","sourceRoot":"","sources":["../../src/tools/broadcasts/list-broadcasts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;AAEtF,0DAAoE;AACpE,wDAA4F;AAG5F,uDAAmC;AAEtB,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,YAAY;IACtB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,gBAAgB;IAC1B,WAAW,EAAE,gBAAgB;CAC9B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,iBAAiB;IACvB,WAAW,EACT,orIAAorI;IACtrI,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;aACf;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;aAChB;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,0BAA0B;aACjC;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,EAAE;QACZ,KAAK,EAAE;YACL,gBAAgB,EAAE;gBAChB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kCAAkC;gBAC/C,IAAI,EAAE,CAAC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,CAAC;aACtF;SACF;KACF;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAe,EAAE,IAAyC,EAAE,EAAE;IAC1F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IACjE,IAAI,CAAC;QACH,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IAClF,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,aAAO,CAAC,QAAQ,IAAI,IAAA,qBAAS,EAAC,KAAK,CAAC,EAAE,CAAC;YAC1D,OAAO,IAAA,qBAAa,EAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAXW,QAAA,OAAO,WAWlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { isJqError, maybeFilter } from '@zavudev/sdk-mcp/filtering';
|
|
3
|
-
import { asErrorResult, asTextContentResult } from '@zavudev/sdk-mcp/tools/types';
|
|
4
|
-
import Zavudev from '@zavudev/sdk';
|
|
5
|
-
export const metadata = {
|
|
6
|
-
resource: 'broadcasts',
|
|
7
|
-
operation: 'read',
|
|
8
|
-
tags: [],
|
|
9
|
-
httpMethod: 'get',
|
|
10
|
-
httpPath: '/v1/broadcasts',
|
|
11
|
-
operationId: 'listBroadcasts',
|
|
12
|
-
};
|
|
13
|
-
export const tool = {
|
|
14
|
-
name: 'list_broadcasts',
|
|
15
|
-
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nList broadcasts for this project.\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/$defs/broadcast'\n }\n },\n nextCursor: {\n type: 'string'\n }\n },\n required: [ 'items'\n ],\n $defs: {\n broadcast: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n channel: {\n $ref: '#/$defs/broadcast_channel'\n },\n createdAt: {\n type: 'string',\n format: 'date-time'\n },\n messageType: {\n $ref: '#/$defs/broadcast_message_type'\n },\n name: {\n type: 'string'\n },\n status: {\n $ref: '#/$defs/broadcast_status'\n },\n totalContacts: {\n type: 'integer',\n description: 'Total number of contacts in the broadcast.'\n },\n actualCost: {\n type: 'number',\n description: 'Actual cost so far in USD.'\n },\n completedAt: {\n type: 'string',\n format: 'date-time'\n },\n content: {\n $ref: '#/$defs/broadcast_content'\n },\n deliveredCount: {\n type: 'integer'\n },\n emailSubject: {\n type: 'string'\n },\n estimatedCost: {\n type: 'number',\n description: 'Estimated total cost in USD.'\n },\n failedCount: {\n type: 'integer'\n },\n metadata: {\n type: 'object',\n additionalProperties: true\n },\n pendingCount: {\n type: 'integer'\n },\n reservedAmount: {\n type: 'number',\n description: 'Amount reserved from balance in USD.'\n },\n scheduledAt: {\n type: 'string',\n format: 'date-time'\n },\n senderId: {\n type: 'string'\n },\n sendingCount: {\n type: 'integer'\n },\n startedAt: {\n type: 'string',\n format: 'date-time'\n },\n text: {\n type: 'string'\n },\n updatedAt: {\n type: 'string',\n format: 'date-time'\n }\n },\n required: [ 'id',\n 'channel',\n 'createdAt',\n 'messageType',\n 'name',\n 'status',\n 'totalContacts'\n ]\n },\n broadcast_channel: {\n type: 'string',\n description: 'Broadcast delivery channel.',\n enum: [ 'sms',\n 'whatsapp',\n 'email'\n ]\n },\n broadcast_message_type: {\n type: 'string',\n description: 'Type of message for broadcast.',\n enum: [ 'text',\n 'image',\n 'video',\n 'audio',\n 'document',\n 'template'\n ]\n },\n broadcast_status: {\n type: 'string',\n description: 'Current status of the broadcast.',\n enum: [ 'draft',\n 'scheduled',\n 'sending',\n 'paused',\n 'completed',\n 'cancelled',\n 'failed'\n ]\n },\n broadcast_content: {\n type: 'object',\n description: 'Content for non-text broadcast message types.',\n properties: {\n filename: {\n type: 'string',\n description: 'Filename for documents.'\n },\n mediaId: {\n type: 'string',\n description: 'Media ID if already uploaded.'\n },\n mediaUrl: {\n type: 'string',\n description: 'URL of the media file.'\n },\n mimeType: {\n type: 'string',\n description: 'MIME type of the media.'\n },\n templateId: {\n type: 'string',\n description: 'Template ID for template messages.'\n },\n templateVariables: {\n type: 'object',\n description: 'Default template variables (can be overridden per contact).',\n additionalProperties: true\n }\n }\n }\n }\n}\n```",
|
|
16
|
-
inputSchema: {
|
|
17
|
-
type: 'object',
|
|
18
|
-
properties: {
|
|
19
|
-
cursor: {
|
|
20
|
-
type: 'string',
|
|
21
|
-
},
|
|
22
|
-
limit: {
|
|
23
|
-
type: 'integer',
|
|
24
|
-
},
|
|
25
|
-
status: {
|
|
26
|
-
$ref: '#/$defs/broadcast_status',
|
|
27
|
-
},
|
|
28
|
-
jq_filter: {
|
|
29
|
-
type: 'string',
|
|
30
|
-
title: 'jq Filter',
|
|
31
|
-
description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
required: [],
|
|
35
|
-
$defs: {
|
|
36
|
-
broadcast_status: {
|
|
37
|
-
type: 'string',
|
|
38
|
-
description: 'Current status of the broadcast.',
|
|
39
|
-
enum: ['draft', 'scheduled', 'sending', 'paused', 'completed', 'cancelled', 'failed'],
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
annotations: {
|
|
44
|
-
readOnlyHint: true,
|
|
45
|
-
},
|
|
46
|
-
};
|
|
47
|
-
export const handler = async (client, args) => {
|
|
48
|
-
const { jq_filter, ...body } = args;
|
|
49
|
-
const response = await client.broadcasts.list(body).asResponse();
|
|
50
|
-
try {
|
|
51
|
-
return asTextContentResult(await maybeFilter(jq_filter, await response.json()));
|
|
52
|
-
}
|
|
53
|
-
catch (error) {
|
|
54
|
-
if (error instanceof Zavudev.APIError || isJqError(error)) {
|
|
55
|
-
return asErrorResult(error.message);
|
|
56
|
-
}
|
|
57
|
-
throw error;
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
export default { metadata, tool, handler };
|
|
61
|
-
//# sourceMappingURL=list-broadcasts.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-broadcasts.mjs","sourceRoot":"","sources":["../../src/tools/broadcasts/list-broadcasts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,4BAA4B;OAC5D,EAAY,aAAa,EAAE,mBAAmB,EAAE,MAAM,8BAA8B;OAGpF,OAAO,MAAM,cAAc;AAElC,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,YAAY;IACtB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,gBAAgB;IAC1B,WAAW,EAAE,gBAAgB;CAC9B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,iBAAiB;IACvB,WAAW,EACT,orIAAorI;IACtrI,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;aACf;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;aAChB;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,0BAA0B;aACjC;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,EAAE;QACZ,KAAK,EAAE;YACL,gBAAgB,EAAE;gBAChB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kCAAkC;gBAC/C,IAAI,EAAE,CAAC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,CAAC;aACtF;SACF;KACF;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAe,EAAE,IAAyC,EAAE,EAAE;IAC1F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;IACjE,IAAI,CAAC;QACH,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IAClF,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,OAAO,CAAC,QAAQ,IAAI,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;YAC1D,OAAO,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { Metadata } from '@zavudev/sdk-mcp/tools/types';
|
|
2
|
-
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
-
import Zavudev from '@zavudev/sdk';
|
|
4
|
-
export declare const metadata: Metadata;
|
|
5
|
-
export declare const tool: Tool;
|
|
6
|
-
export declare const handler: (client: Zavudev, args: Record<string, unknown> | undefined) => Promise<import("@zavudev/sdk-mcp/tools/types").ToolCallResult>;
|
|
7
|
-
declare const _default: {
|
|
8
|
-
metadata: Metadata;
|
|
9
|
-
tool: {
|
|
10
|
-
inputSchema: {
|
|
11
|
-
[x: string]: unknown;
|
|
12
|
-
type: "object";
|
|
13
|
-
properties?: {
|
|
14
|
-
[x: string]: object;
|
|
15
|
-
} | undefined;
|
|
16
|
-
required?: string[] | undefined;
|
|
17
|
-
};
|
|
18
|
-
name: string;
|
|
19
|
-
description?: string | undefined;
|
|
20
|
-
outputSchema?: {
|
|
21
|
-
[x: string]: unknown;
|
|
22
|
-
type: "object";
|
|
23
|
-
properties?: {
|
|
24
|
-
[x: string]: object;
|
|
25
|
-
} | undefined;
|
|
26
|
-
required?: string[] | undefined;
|
|
27
|
-
} | undefined;
|
|
28
|
-
annotations?: {
|
|
29
|
-
title?: string | undefined;
|
|
30
|
-
readOnlyHint?: boolean | undefined;
|
|
31
|
-
destructiveHint?: boolean | undefined;
|
|
32
|
-
idempotentHint?: boolean | undefined;
|
|
33
|
-
openWorldHint?: boolean | undefined;
|
|
34
|
-
} | undefined;
|
|
35
|
-
execution?: {
|
|
36
|
-
taskSupport?: "optional" | "required" | "forbidden" | undefined;
|
|
37
|
-
} | undefined;
|
|
38
|
-
_meta?: {
|
|
39
|
-
[x: string]: unknown;
|
|
40
|
-
} | undefined;
|
|
41
|
-
icons?: {
|
|
42
|
-
src: string;
|
|
43
|
-
mimeType?: string | undefined;
|
|
44
|
-
sizes?: string[] | undefined;
|
|
45
|
-
}[] | undefined;
|
|
46
|
-
title?: string | undefined;
|
|
47
|
-
};
|
|
48
|
-
handler: (client: Zavudev, args: Record<string, unknown> | undefined) => Promise<import("@zavudev/sdk-mcp/tools/types").ToolCallResult>;
|
|
49
|
-
};
|
|
50
|
-
export default _default;
|
|
51
|
-
//# sourceMappingURL=progress-broadcasts.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"progress-broadcasts.d.mts","sourceRoot":"","sources":["../../src/tools/broadcasts/progress-broadcasts.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAsC,MAAM,8BAA8B;OAEpF,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,OAAO,MAAM,cAAc;AAElC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAsBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,OAAO,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,mEAUvF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAVoC,OAAO,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAYxF,wBAA2C"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { Metadata } from '@zavudev/sdk-mcp/tools/types';
|
|
2
|
-
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
-
import Zavudev from '@zavudev/sdk';
|
|
4
|
-
export declare const metadata: Metadata;
|
|
5
|
-
export declare const tool: Tool;
|
|
6
|
-
export declare const handler: (client: Zavudev, args: Record<string, unknown> | undefined) => Promise<import("@zavudev/sdk-mcp/tools/types").ToolCallResult>;
|
|
7
|
-
declare const _default: {
|
|
8
|
-
metadata: Metadata;
|
|
9
|
-
tool: {
|
|
10
|
-
inputSchema: {
|
|
11
|
-
[x: string]: unknown;
|
|
12
|
-
type: "object";
|
|
13
|
-
properties?: {
|
|
14
|
-
[x: string]: object;
|
|
15
|
-
} | undefined;
|
|
16
|
-
required?: string[] | undefined;
|
|
17
|
-
};
|
|
18
|
-
name: string;
|
|
19
|
-
description?: string | undefined;
|
|
20
|
-
outputSchema?: {
|
|
21
|
-
[x: string]: unknown;
|
|
22
|
-
type: "object";
|
|
23
|
-
properties?: {
|
|
24
|
-
[x: string]: object;
|
|
25
|
-
} | undefined;
|
|
26
|
-
required?: string[] | undefined;
|
|
27
|
-
} | undefined;
|
|
28
|
-
annotations?: {
|
|
29
|
-
title?: string | undefined;
|
|
30
|
-
readOnlyHint?: boolean | undefined;
|
|
31
|
-
destructiveHint?: boolean | undefined;
|
|
32
|
-
idempotentHint?: boolean | undefined;
|
|
33
|
-
openWorldHint?: boolean | undefined;
|
|
34
|
-
} | undefined;
|
|
35
|
-
execution?: {
|
|
36
|
-
taskSupport?: "optional" | "required" | "forbidden" | undefined;
|
|
37
|
-
} | undefined;
|
|
38
|
-
_meta?: {
|
|
39
|
-
[x: string]: unknown;
|
|
40
|
-
} | undefined;
|
|
41
|
-
icons?: {
|
|
42
|
-
src: string;
|
|
43
|
-
mimeType?: string | undefined;
|
|
44
|
-
sizes?: string[] | undefined;
|
|
45
|
-
}[] | undefined;
|
|
46
|
-
title?: string | undefined;
|
|
47
|
-
};
|
|
48
|
-
handler: (client: Zavudev, args: Record<string, unknown> | undefined) => Promise<import("@zavudev/sdk-mcp/tools/types").ToolCallResult>;
|
|
49
|
-
};
|
|
50
|
-
export default _default;
|
|
51
|
-
//# sourceMappingURL=progress-broadcasts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"progress-broadcasts.d.ts","sourceRoot":"","sources":["../../src/tools/broadcasts/progress-broadcasts.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAsC,MAAM,8BAA8B;OAEpF,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,OAAO,MAAM,cAAc;AAElC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAsBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,OAAO,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,mEAUvF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAVoC,OAAO,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAYxF,wBAA2C"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
-
};
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.handler = exports.tool = exports.metadata = void 0;
|
|
8
|
-
const filtering_1 = require("@zavudev/sdk-mcp/filtering");
|
|
9
|
-
const types_1 = require("@zavudev/sdk-mcp/tools/types");
|
|
10
|
-
const sdk_1 = __importDefault(require("@zavudev/sdk"));
|
|
11
|
-
exports.metadata = {
|
|
12
|
-
resource: 'broadcasts',
|
|
13
|
-
operation: 'read',
|
|
14
|
-
tags: [],
|
|
15
|
-
httpMethod: 'get',
|
|
16
|
-
httpPath: '/v1/broadcasts/{broadcastId}/progress',
|
|
17
|
-
operationId: 'getBroadcastProgress',
|
|
18
|
-
};
|
|
19
|
-
exports.tool = {
|
|
20
|
-
name: 'progress_broadcasts',
|
|
21
|
-
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nGet real-time progress of a broadcast including delivery counts and estimated completion time.\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/broadcast_progress',\n $defs: {\n broadcast_progress: {\n type: 'object',\n properties: {\n broadcastId: {\n type: 'string'\n },\n delivered: {\n type: 'integer',\n description: 'Successfully delivered.'\n },\n failed: {\n type: 'integer',\n description: 'Failed to deliver.'\n },\n pending: {\n type: 'integer',\n description: 'Not yet queued for sending.'\n },\n percentComplete: {\n type: 'number',\n description: 'Percentage complete (0-100).'\n },\n sending: {\n type: 'integer',\n description: 'Currently being sent.'\n },\n skipped: {\n type: 'integer',\n description: 'Skipped (broadcast cancelled).'\n },\n status: {\n $ref: '#/$defs/broadcast_status'\n },\n total: {\n type: 'integer',\n description: 'Total contacts in broadcast.'\n },\n actualCost: {\n type: 'number',\n description: 'Actual cost so far in USD.'\n },\n estimatedCompletionAt: {\n type: 'string',\n format: 'date-time'\n },\n estimatedCost: {\n type: 'number',\n description: 'Estimated total cost in USD.'\n },\n reservedAmount: {\n type: 'number',\n description: 'Amount reserved from balance in USD.'\n },\n startedAt: {\n type: 'string',\n format: 'date-time'\n }\n },\n required: [ 'broadcastId',\n 'delivered',\n 'failed',\n 'pending',\n 'percentComplete',\n 'sending',\n 'skipped',\n 'status',\n 'total'\n ]\n },\n broadcast_status: {\n type: 'string',\n description: 'Current status of the broadcast.',\n enum: [ 'draft',\n 'scheduled',\n 'sending',\n 'paused',\n 'completed',\n 'cancelled',\n 'failed'\n ]\n }\n }\n}\n```",
|
|
22
|
-
inputSchema: {
|
|
23
|
-
type: 'object',
|
|
24
|
-
properties: {
|
|
25
|
-
broadcastId: {
|
|
26
|
-
type: 'string',
|
|
27
|
-
},
|
|
28
|
-
jq_filter: {
|
|
29
|
-
type: 'string',
|
|
30
|
-
title: 'jq Filter',
|
|
31
|
-
description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
required: ['broadcastId'],
|
|
35
|
-
},
|
|
36
|
-
annotations: {
|
|
37
|
-
readOnlyHint: true,
|
|
38
|
-
},
|
|
39
|
-
};
|
|
40
|
-
const handler = async (client, args) => {
|
|
41
|
-
const { broadcastId, jq_filter, ...body } = args;
|
|
42
|
-
try {
|
|
43
|
-
return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.broadcasts.progress(broadcastId)));
|
|
44
|
-
}
|
|
45
|
-
catch (error) {
|
|
46
|
-
if (error instanceof sdk_1.default.APIError || (0, filtering_1.isJqError)(error)) {
|
|
47
|
-
return (0, types_1.asErrorResult)(error.message);
|
|
48
|
-
}
|
|
49
|
-
throw error;
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
exports.handler = handler;
|
|
53
|
-
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
54
|
-
//# sourceMappingURL=progress-broadcasts.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"progress-broadcasts.js","sourceRoot":"","sources":["../../src/tools/broadcasts/progress-broadcasts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;AAEtF,0DAAoE;AACpE,wDAA4F;AAG5F,uDAAmC;AAEtB,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,YAAY;IACtB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,uCAAuC;IACjD,WAAW,EAAE,sBAAsB;CACpC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EACT,y3EAAy3E;IAC33E,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,aAAa,CAAC;KAC1B;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAe,EAAE,IAAyC,EAAE,EAAE;IAC1F,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACxD,IAAI,CAAC;QACH,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IAC1G,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,aAAO,CAAC,QAAQ,IAAI,IAAA,qBAAS,EAAC,KAAK,CAAC,EAAE,CAAC;YAC1D,OAAO,IAAA,qBAAa,EAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAVW,QAAA,OAAO,WAUlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { isJqError, maybeFilter } from '@zavudev/sdk-mcp/filtering';
|
|
3
|
-
import { asErrorResult, asTextContentResult } from '@zavudev/sdk-mcp/tools/types';
|
|
4
|
-
import Zavudev from '@zavudev/sdk';
|
|
5
|
-
export const metadata = {
|
|
6
|
-
resource: 'broadcasts',
|
|
7
|
-
operation: 'read',
|
|
8
|
-
tags: [],
|
|
9
|
-
httpMethod: 'get',
|
|
10
|
-
httpPath: '/v1/broadcasts/{broadcastId}/progress',
|
|
11
|
-
operationId: 'getBroadcastProgress',
|
|
12
|
-
};
|
|
13
|
-
export const tool = {
|
|
14
|
-
name: 'progress_broadcasts',
|
|
15
|
-
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nGet real-time progress of a broadcast including delivery counts and estimated completion time.\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/broadcast_progress',\n $defs: {\n broadcast_progress: {\n type: 'object',\n properties: {\n broadcastId: {\n type: 'string'\n },\n delivered: {\n type: 'integer',\n description: 'Successfully delivered.'\n },\n failed: {\n type: 'integer',\n description: 'Failed to deliver.'\n },\n pending: {\n type: 'integer',\n description: 'Not yet queued for sending.'\n },\n percentComplete: {\n type: 'number',\n description: 'Percentage complete (0-100).'\n },\n sending: {\n type: 'integer',\n description: 'Currently being sent.'\n },\n skipped: {\n type: 'integer',\n description: 'Skipped (broadcast cancelled).'\n },\n status: {\n $ref: '#/$defs/broadcast_status'\n },\n total: {\n type: 'integer',\n description: 'Total contacts in broadcast.'\n },\n actualCost: {\n type: 'number',\n description: 'Actual cost so far in USD.'\n },\n estimatedCompletionAt: {\n type: 'string',\n format: 'date-time'\n },\n estimatedCost: {\n type: 'number',\n description: 'Estimated total cost in USD.'\n },\n reservedAmount: {\n type: 'number',\n description: 'Amount reserved from balance in USD.'\n },\n startedAt: {\n type: 'string',\n format: 'date-time'\n }\n },\n required: [ 'broadcastId',\n 'delivered',\n 'failed',\n 'pending',\n 'percentComplete',\n 'sending',\n 'skipped',\n 'status',\n 'total'\n ]\n },\n broadcast_status: {\n type: 'string',\n description: 'Current status of the broadcast.',\n enum: [ 'draft',\n 'scheduled',\n 'sending',\n 'paused',\n 'completed',\n 'cancelled',\n 'failed'\n ]\n }\n }\n}\n```",
|
|
16
|
-
inputSchema: {
|
|
17
|
-
type: 'object',
|
|
18
|
-
properties: {
|
|
19
|
-
broadcastId: {
|
|
20
|
-
type: 'string',
|
|
21
|
-
},
|
|
22
|
-
jq_filter: {
|
|
23
|
-
type: 'string',
|
|
24
|
-
title: 'jq Filter',
|
|
25
|
-
description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
required: ['broadcastId'],
|
|
29
|
-
},
|
|
30
|
-
annotations: {
|
|
31
|
-
readOnlyHint: true,
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
export const handler = async (client, args) => {
|
|
35
|
-
const { broadcastId, jq_filter, ...body } = args;
|
|
36
|
-
try {
|
|
37
|
-
return asTextContentResult(await maybeFilter(jq_filter, await client.broadcasts.progress(broadcastId)));
|
|
38
|
-
}
|
|
39
|
-
catch (error) {
|
|
40
|
-
if (error instanceof Zavudev.APIError || isJqError(error)) {
|
|
41
|
-
return asErrorResult(error.message);
|
|
42
|
-
}
|
|
43
|
-
throw error;
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
export default { metadata, tool, handler };
|
|
47
|
-
//# sourceMappingURL=progress-broadcasts.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"progress-broadcasts.mjs","sourceRoot":"","sources":["../../src/tools/broadcasts/progress-broadcasts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,4BAA4B;OAC5D,EAAY,aAAa,EAAE,mBAAmB,EAAE,MAAM,8BAA8B;OAGpF,OAAO,MAAM,cAAc;AAElC,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,YAAY;IACtB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,uCAAuC;IACjD,WAAW,EAAE,sBAAsB;CACpC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EACT,y3EAAy3E;IAC33E,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,aAAa,CAAC;KAC1B;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAe,EAAE,IAAyC,EAAE,EAAE;IAC1F,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACxD,IAAI,CAAC;QACH,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IAC1G,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,OAAO,CAAC,QAAQ,IAAI,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;YAC1D,OAAO,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { Metadata } from '@zavudev/sdk-mcp/tools/types';
|
|
2
|
-
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
-
import Zavudev from '@zavudev/sdk';
|
|
4
|
-
export declare const metadata: Metadata;
|
|
5
|
-
export declare const tool: Tool;
|
|
6
|
-
export declare const handler: (client: Zavudev, args: Record<string, unknown> | undefined) => Promise<import("@zavudev/sdk-mcp/tools/types").ToolCallResult>;
|
|
7
|
-
declare const _default: {
|
|
8
|
-
metadata: Metadata;
|
|
9
|
-
tool: {
|
|
10
|
-
inputSchema: {
|
|
11
|
-
[x: string]: unknown;
|
|
12
|
-
type: "object";
|
|
13
|
-
properties?: {
|
|
14
|
-
[x: string]: object;
|
|
15
|
-
} | undefined;
|
|
16
|
-
required?: string[] | undefined;
|
|
17
|
-
};
|
|
18
|
-
name: string;
|
|
19
|
-
description?: string | undefined;
|
|
20
|
-
outputSchema?: {
|
|
21
|
-
[x: string]: unknown;
|
|
22
|
-
type: "object";
|
|
23
|
-
properties?: {
|
|
24
|
-
[x: string]: object;
|
|
25
|
-
} | undefined;
|
|
26
|
-
required?: string[] | undefined;
|
|
27
|
-
} | undefined;
|
|
28
|
-
annotations?: {
|
|
29
|
-
title?: string | undefined;
|
|
30
|
-
readOnlyHint?: boolean | undefined;
|
|
31
|
-
destructiveHint?: boolean | undefined;
|
|
32
|
-
idempotentHint?: boolean | undefined;
|
|
33
|
-
openWorldHint?: boolean | undefined;
|
|
34
|
-
} | undefined;
|
|
35
|
-
execution?: {
|
|
36
|
-
taskSupport?: "optional" | "required" | "forbidden" | undefined;
|
|
37
|
-
} | undefined;
|
|
38
|
-
_meta?: {
|
|
39
|
-
[x: string]: unknown;
|
|
40
|
-
} | undefined;
|
|
41
|
-
icons?: {
|
|
42
|
-
src: string;
|
|
43
|
-
mimeType?: string | undefined;
|
|
44
|
-
sizes?: string[] | undefined;
|
|
45
|
-
}[] | undefined;
|
|
46
|
-
title?: string | undefined;
|
|
47
|
-
};
|
|
48
|
-
handler: (client: Zavudev, args: Record<string, unknown> | undefined) => Promise<import("@zavudev/sdk-mcp/tools/types").ToolCallResult>;
|
|
49
|
-
};
|
|
50
|
-
export default _default;
|
|
51
|
-
//# sourceMappingURL=retrieve-broadcasts.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-broadcasts.d.mts","sourceRoot":"","sources":["../../src/tools/broadcasts/retrieve-broadcasts.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAsC,MAAM,8BAA8B;OAEpF,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,OAAO,MAAM,cAAc;AAElC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAsBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,OAAO,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,mEAUvF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAVoC,OAAO,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAYxF,wBAA2C"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { Metadata } from '@zavudev/sdk-mcp/tools/types';
|
|
2
|
-
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
-
import Zavudev from '@zavudev/sdk';
|
|
4
|
-
export declare const metadata: Metadata;
|
|
5
|
-
export declare const tool: Tool;
|
|
6
|
-
export declare const handler: (client: Zavudev, args: Record<string, unknown> | undefined) => Promise<import("@zavudev/sdk-mcp/tools/types").ToolCallResult>;
|
|
7
|
-
declare const _default: {
|
|
8
|
-
metadata: Metadata;
|
|
9
|
-
tool: {
|
|
10
|
-
inputSchema: {
|
|
11
|
-
[x: string]: unknown;
|
|
12
|
-
type: "object";
|
|
13
|
-
properties?: {
|
|
14
|
-
[x: string]: object;
|
|
15
|
-
} | undefined;
|
|
16
|
-
required?: string[] | undefined;
|
|
17
|
-
};
|
|
18
|
-
name: string;
|
|
19
|
-
description?: string | undefined;
|
|
20
|
-
outputSchema?: {
|
|
21
|
-
[x: string]: unknown;
|
|
22
|
-
type: "object";
|
|
23
|
-
properties?: {
|
|
24
|
-
[x: string]: object;
|
|
25
|
-
} | undefined;
|
|
26
|
-
required?: string[] | undefined;
|
|
27
|
-
} | undefined;
|
|
28
|
-
annotations?: {
|
|
29
|
-
title?: string | undefined;
|
|
30
|
-
readOnlyHint?: boolean | undefined;
|
|
31
|
-
destructiveHint?: boolean | undefined;
|
|
32
|
-
idempotentHint?: boolean | undefined;
|
|
33
|
-
openWorldHint?: boolean | undefined;
|
|
34
|
-
} | undefined;
|
|
35
|
-
execution?: {
|
|
36
|
-
taskSupport?: "optional" | "required" | "forbidden" | undefined;
|
|
37
|
-
} | undefined;
|
|
38
|
-
_meta?: {
|
|
39
|
-
[x: string]: unknown;
|
|
40
|
-
} | undefined;
|
|
41
|
-
icons?: {
|
|
42
|
-
src: string;
|
|
43
|
-
mimeType?: string | undefined;
|
|
44
|
-
sizes?: string[] | undefined;
|
|
45
|
-
}[] | undefined;
|
|
46
|
-
title?: string | undefined;
|
|
47
|
-
};
|
|
48
|
-
handler: (client: Zavudev, args: Record<string, unknown> | undefined) => Promise<import("@zavudev/sdk-mcp/tools/types").ToolCallResult>;
|
|
49
|
-
};
|
|
50
|
-
export default _default;
|
|
51
|
-
//# sourceMappingURL=retrieve-broadcasts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-broadcasts.d.ts","sourceRoot":"","sources":["../../src/tools/broadcasts/retrieve-broadcasts.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAsC,MAAM,8BAA8B;OAEpF,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,OAAO,MAAM,cAAc;AAElC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAsBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,OAAO,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,mEAUvF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAVoC,OAAO,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAYxF,wBAA2C"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
-
};
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.handler = exports.tool = exports.metadata = void 0;
|
|
8
|
-
const filtering_1 = require("@zavudev/sdk-mcp/filtering");
|
|
9
|
-
const types_1 = require("@zavudev/sdk-mcp/tools/types");
|
|
10
|
-
const sdk_1 = __importDefault(require("@zavudev/sdk"));
|
|
11
|
-
exports.metadata = {
|
|
12
|
-
resource: 'broadcasts',
|
|
13
|
-
operation: 'read',
|
|
14
|
-
tags: [],
|
|
15
|
-
httpMethod: 'get',
|
|
16
|
-
httpPath: '/v1/broadcasts/{broadcastId}',
|
|
17
|
-
operationId: 'getBroadcast',
|
|
18
|
-
};
|
|
19
|
-
exports.tool = {
|
|
20
|
-
name: 'retrieve_broadcasts',
|
|
21
|
-
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nGet broadcast\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/broadcast_retrieve_response',\n $defs: {\n broadcast_retrieve_response: {\n type: 'object',\n properties: {\n broadcast: {\n $ref: '#/$defs/broadcast'\n }\n },\n required: [ 'broadcast'\n ]\n },\n broadcast: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n channel: {\n $ref: '#/$defs/broadcast_channel'\n },\n createdAt: {\n type: 'string',\n format: 'date-time'\n },\n messageType: {\n $ref: '#/$defs/broadcast_message_type'\n },\n name: {\n type: 'string'\n },\n status: {\n $ref: '#/$defs/broadcast_status'\n },\n totalContacts: {\n type: 'integer',\n description: 'Total number of contacts in the broadcast.'\n },\n actualCost: {\n type: 'number',\n description: 'Actual cost so far in USD.'\n },\n completedAt: {\n type: 'string',\n format: 'date-time'\n },\n content: {\n $ref: '#/$defs/broadcast_content'\n },\n deliveredCount: {\n type: 'integer'\n },\n emailSubject: {\n type: 'string'\n },\n estimatedCost: {\n type: 'number',\n description: 'Estimated total cost in USD.'\n },\n failedCount: {\n type: 'integer'\n },\n metadata: {\n type: 'object',\n additionalProperties: true\n },\n pendingCount: {\n type: 'integer'\n },\n reservedAmount: {\n type: 'number',\n description: 'Amount reserved from balance in USD.'\n },\n scheduledAt: {\n type: 'string',\n format: 'date-time'\n },\n senderId: {\n type: 'string'\n },\n sendingCount: {\n type: 'integer'\n },\n startedAt: {\n type: 'string',\n format: 'date-time'\n },\n text: {\n type: 'string'\n },\n updatedAt: {\n type: 'string',\n format: 'date-time'\n }\n },\n required: [ 'id',\n 'channel',\n 'createdAt',\n 'messageType',\n 'name',\n 'status',\n 'totalContacts'\n ]\n },\n broadcast_channel: {\n type: 'string',\n description: 'Broadcast delivery channel.',\n enum: [ 'sms',\n 'whatsapp',\n 'email'\n ]\n },\n broadcast_message_type: {\n type: 'string',\n description: 'Type of message for broadcast.',\n enum: [ 'text',\n 'image',\n 'video',\n 'audio',\n 'document',\n 'template'\n ]\n },\n broadcast_status: {\n type: 'string',\n description: 'Current status of the broadcast.',\n enum: [ 'draft',\n 'scheduled',\n 'sending',\n 'paused',\n 'completed',\n 'cancelled',\n 'failed'\n ]\n },\n broadcast_content: {\n type: 'object',\n description: 'Content for non-text broadcast message types.',\n properties: {\n filename: {\n type: 'string',\n description: 'Filename for documents.'\n },\n mediaId: {\n type: 'string',\n description: 'Media ID if already uploaded.'\n },\n mediaUrl: {\n type: 'string',\n description: 'URL of the media file.'\n },\n mimeType: {\n type: 'string',\n description: 'MIME type of the media.'\n },\n templateId: {\n type: 'string',\n description: 'Template ID for template messages.'\n },\n templateVariables: {\n type: 'object',\n description: 'Default template variables (can be overridden per contact).',\n additionalProperties: true\n }\n }\n }\n }\n}\n```",
|
|
22
|
-
inputSchema: {
|
|
23
|
-
type: 'object',
|
|
24
|
-
properties: {
|
|
25
|
-
broadcastId: {
|
|
26
|
-
type: 'string',
|
|
27
|
-
},
|
|
28
|
-
jq_filter: {
|
|
29
|
-
type: 'string',
|
|
30
|
-
title: 'jq Filter',
|
|
31
|
-
description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
required: ['broadcastId'],
|
|
35
|
-
},
|
|
36
|
-
annotations: {
|
|
37
|
-
readOnlyHint: true,
|
|
38
|
-
},
|
|
39
|
-
};
|
|
40
|
-
const handler = async (client, args) => {
|
|
41
|
-
const { broadcastId, jq_filter, ...body } = args;
|
|
42
|
-
try {
|
|
43
|
-
return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.broadcasts.retrieve(broadcastId)));
|
|
44
|
-
}
|
|
45
|
-
catch (error) {
|
|
46
|
-
if (error instanceof sdk_1.default.APIError || (0, filtering_1.isJqError)(error)) {
|
|
47
|
-
return (0, types_1.asErrorResult)(error.message);
|
|
48
|
-
}
|
|
49
|
-
throw error;
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
exports.handler = handler;
|
|
53
|
-
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
54
|
-
//# sourceMappingURL=retrieve-broadcasts.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-broadcasts.js","sourceRoot":"","sources":["../../src/tools/broadcasts/retrieve-broadcasts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;AAEtF,0DAAoE;AACpE,wDAA4F;AAG5F,uDAAmC;AAEtB,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,YAAY;IACtB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,8BAA8B;IACxC,WAAW,EAAE,cAAc;CAC5B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EACT,qsIAAqsI;IACvsI,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,aAAa,CAAC;KAC1B;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAe,EAAE,IAAyC,EAAE,EAAE;IAC1F,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACxD,IAAI,CAAC;QACH,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IAC1G,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,aAAO,CAAC,QAAQ,IAAI,IAAA,qBAAS,EAAC,KAAK,CAAC,EAAE,CAAC;YAC1D,OAAO,IAAA,qBAAa,EAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAVW,QAAA,OAAO,WAUlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { isJqError, maybeFilter } from '@zavudev/sdk-mcp/filtering';
|
|
3
|
-
import { asErrorResult, asTextContentResult } from '@zavudev/sdk-mcp/tools/types';
|
|
4
|
-
import Zavudev from '@zavudev/sdk';
|
|
5
|
-
export const metadata = {
|
|
6
|
-
resource: 'broadcasts',
|
|
7
|
-
operation: 'read',
|
|
8
|
-
tags: [],
|
|
9
|
-
httpMethod: 'get',
|
|
10
|
-
httpPath: '/v1/broadcasts/{broadcastId}',
|
|
11
|
-
operationId: 'getBroadcast',
|
|
12
|
-
};
|
|
13
|
-
export const tool = {
|
|
14
|
-
name: 'retrieve_broadcasts',
|
|
15
|
-
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nGet broadcast\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/broadcast_retrieve_response',\n $defs: {\n broadcast_retrieve_response: {\n type: 'object',\n properties: {\n broadcast: {\n $ref: '#/$defs/broadcast'\n }\n },\n required: [ 'broadcast'\n ]\n },\n broadcast: {\n type: 'object',\n properties: {\n id: {\n type: 'string'\n },\n channel: {\n $ref: '#/$defs/broadcast_channel'\n },\n createdAt: {\n type: 'string',\n format: 'date-time'\n },\n messageType: {\n $ref: '#/$defs/broadcast_message_type'\n },\n name: {\n type: 'string'\n },\n status: {\n $ref: '#/$defs/broadcast_status'\n },\n totalContacts: {\n type: 'integer',\n description: 'Total number of contacts in the broadcast.'\n },\n actualCost: {\n type: 'number',\n description: 'Actual cost so far in USD.'\n },\n completedAt: {\n type: 'string',\n format: 'date-time'\n },\n content: {\n $ref: '#/$defs/broadcast_content'\n },\n deliveredCount: {\n type: 'integer'\n },\n emailSubject: {\n type: 'string'\n },\n estimatedCost: {\n type: 'number',\n description: 'Estimated total cost in USD.'\n },\n failedCount: {\n type: 'integer'\n },\n metadata: {\n type: 'object',\n additionalProperties: true\n },\n pendingCount: {\n type: 'integer'\n },\n reservedAmount: {\n type: 'number',\n description: 'Amount reserved from balance in USD.'\n },\n scheduledAt: {\n type: 'string',\n format: 'date-time'\n },\n senderId: {\n type: 'string'\n },\n sendingCount: {\n type: 'integer'\n },\n startedAt: {\n type: 'string',\n format: 'date-time'\n },\n text: {\n type: 'string'\n },\n updatedAt: {\n type: 'string',\n format: 'date-time'\n }\n },\n required: [ 'id',\n 'channel',\n 'createdAt',\n 'messageType',\n 'name',\n 'status',\n 'totalContacts'\n ]\n },\n broadcast_channel: {\n type: 'string',\n description: 'Broadcast delivery channel.',\n enum: [ 'sms',\n 'whatsapp',\n 'email'\n ]\n },\n broadcast_message_type: {\n type: 'string',\n description: 'Type of message for broadcast.',\n enum: [ 'text',\n 'image',\n 'video',\n 'audio',\n 'document',\n 'template'\n ]\n },\n broadcast_status: {\n type: 'string',\n description: 'Current status of the broadcast.',\n enum: [ 'draft',\n 'scheduled',\n 'sending',\n 'paused',\n 'completed',\n 'cancelled',\n 'failed'\n ]\n },\n broadcast_content: {\n type: 'object',\n description: 'Content for non-text broadcast message types.',\n properties: {\n filename: {\n type: 'string',\n description: 'Filename for documents.'\n },\n mediaId: {\n type: 'string',\n description: 'Media ID if already uploaded.'\n },\n mediaUrl: {\n type: 'string',\n description: 'URL of the media file.'\n },\n mimeType: {\n type: 'string',\n description: 'MIME type of the media.'\n },\n templateId: {\n type: 'string',\n description: 'Template ID for template messages.'\n },\n templateVariables: {\n type: 'object',\n description: 'Default template variables (can be overridden per contact).',\n additionalProperties: true\n }\n }\n }\n }\n}\n```",
|
|
16
|
-
inputSchema: {
|
|
17
|
-
type: 'object',
|
|
18
|
-
properties: {
|
|
19
|
-
broadcastId: {
|
|
20
|
-
type: 'string',
|
|
21
|
-
},
|
|
22
|
-
jq_filter: {
|
|
23
|
-
type: 'string',
|
|
24
|
-
title: 'jq Filter',
|
|
25
|
-
description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
required: ['broadcastId'],
|
|
29
|
-
},
|
|
30
|
-
annotations: {
|
|
31
|
-
readOnlyHint: true,
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
export const handler = async (client, args) => {
|
|
35
|
-
const { broadcastId, jq_filter, ...body } = args;
|
|
36
|
-
try {
|
|
37
|
-
return asTextContentResult(await maybeFilter(jq_filter, await client.broadcasts.retrieve(broadcastId)));
|
|
38
|
-
}
|
|
39
|
-
catch (error) {
|
|
40
|
-
if (error instanceof Zavudev.APIError || isJqError(error)) {
|
|
41
|
-
return asErrorResult(error.message);
|
|
42
|
-
}
|
|
43
|
-
throw error;
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
export default { metadata, tool, handler };
|
|
47
|
-
//# sourceMappingURL=retrieve-broadcasts.mjs.map
|