Skip to content

Commit 0aebcaa

Browse files
committed
update api client
1 parent 72026b4 commit 0aebcaa

5 files changed

Lines changed: 16 additions & 11 deletions

File tree

.github/workflows/publish.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ jobs:
3737
node-version: 22
3838
cache: "pnpm"
3939

40-
- name: Update npm for OIDC support
41-
run: npm install -g npm@latest # Needs 11.5.1+ for npm trusted publishing
40+
- name: Install npm 11+ for OIDC provenance publishing
41+
run: corepack enable npm && corepack install -g npm@latest
42+
env:
43+
COREPACK_ENABLE_STRICT: 0
4244

4345
- name: Install dependencies
4446
run: pnpm install --frozen-lockfile
@@ -59,12 +61,14 @@ jobs:
5961
if: github.event_name == 'workflow_dispatch'
6062
id: version
6163
run: |
62-
npm version ${{ github.event.inputs.version_type }}
64+
pnpm version ${{ github.event.inputs.version_type }}
6365
echo "new_version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
6466
git push --follow-tags
6567
6668
- name: Publish to npm
6769
run: npm publish --provenance
70+
env:
71+
COREPACK_ENABLE_STRICT: 0
6872

6973
- name: Create GitHub release (manual trigger only)
7074
if: github.event_name == 'workflow_dispatch'

TOOLS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
- **create_triggered_campaign** ✏️: Create a new triggered campaign from an existing template. The campaign is created in Ready state and must be activated before it can send.
1616
- **deactivate_triggered_campaign** ✏️: Deactivate a triggered campaign (requires API triggered campaign deactivation enabled)
1717
- **get_campaign**: Get detailed information about a specific campaign
18-
- **get_campaign_metrics**: Get campaign performance metrics
18+
- **get_campaign_metrics**: Get campaign performance metrics. Requires a date range. Always use the narrowest window possible for performance.
1919
- **get_campaigns**: Retrieve campaigns
2020
- **get_child_campaigns**: Get child campaigns generated by a recurring campaign
2121
- **schedule_campaign** ✏️✉️: Schedule an existing campaign to be sent at a specific time

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
},
7777
"dependencies": {
7878
"@alcyone-labs/zod-to-json-schema": "4.0.10",
79-
"@iterable/api": "0.10.0",
79+
"@iterable/api": "0.10.3",
8080
"@modelcontextprotocol/sdk": "1.18.1",
8181
"@primno/dpapi": "2.0.1",
8282
"@types/json-schema": "7.0.15",

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/tools/campaigns.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ export function createCampaignTools(client: IterableClient): Tool[] {
4141

4242
createTool({
4343
name: "get_campaign_metrics",
44-
description: "Get campaign performance metrics",
44+
description:
45+
"Get campaign performance metrics. Requires a date range. Always use the narrowest window possible for performance.",
4546
schema: GetCampaignMetricsParamsSchema,
4647
execute: (params) => client.getCampaignMetrics(params),
4748
}),

0 commit comments

Comments
 (0)