@carrierllc/mcp 0.13.64 → 0.13.65

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/dist/index.js CHANGED
@@ -91,7 +91,7 @@ import {
91
91
  verifyStorefront,
92
92
  withOcsListSummary,
93
93
  withTemplateResellerId
94
- } from "./chunk-2S75JA45.js";
94
+ } from "./chunk-NMTO5PCG.js";
95
95
  import "./chunk-SHKKVIIA.js";
96
96
 
97
97
  // src/index.ts
@@ -6324,10 +6324,11 @@ function registerCarrierApiTools(server2, ctx) {
6324
6324
  "claim_benefit",
6325
6325
  {
6326
6326
  title: "Claim a benefit",
6327
- description: "Claim one benefit from a campaign for an external reference, which places a hold on the sponsor wallet. Calls POST /v1/connectivity/benefit-campaigns/{id}/claims on api.carrier.llc with your own MCP access token. Needs write scope. Safe to repeat with the same external_ref: the same claim comes back (HTTP 200) and nothing is held twice. Results: 201 held, 200 replay of an existing claim, 202 funding outcome unknown (repeat the call), 402 wallet cannot fund the claim, 409 campaign paused, expired or full. Params: campaign_id (cbc_ plus 32 hex), external_ref (1 to 200 characters, your own reference for the person). Do NOT use this to issue the eSIM \u2014 that is issue_benefit_claim, called with the claim id from this result.",
6327
+ description: "Claim one benefit from a campaign for an external reference, which places a hold on the sponsor wallet. Calls POST /v1/connectivity/benefit-campaigns/{id}/claims on api.carrier.llc with your own MCP access token. Needs write scope. Safe to repeat with the same external_ref: the same claim comes back (HTTP 200) and nothing is held twice. Results: 201 held, 200 replay of an existing claim, 202 funding outcome unknown (repeat the call), 402 wallet cannot fund the claim, 409 campaign paused, expired or full. Params: campaign_id (cbc_ plus 32 hex), external_ref (1 to 200 characters, your own reference for the person), entitlement_token (optional, 1 to 200 characters: the right from create_benefit_entitlement for this external_ref, required when the campaign requires a right). Do NOT use this to issue the eSIM \u2014 that is issue_benefit_claim, called with the claim id from this result.",
6328
6328
  inputSchema: {
6329
6329
  campaign_id: z7.string().regex(CAMPAIGN_ID_PATTERN).describe("Campaign id, cbc_ followed by 32 hex characters."),
6330
- external_ref: z7.string().min(1).max(200).describe("Your own reference for the claimant, 1 to 200 characters.")
6330
+ external_ref: z7.string().min(1).max(200).describe("Your own reference for the claimant, 1 to 200 characters."),
6331
+ entitlement_token: z7.string().min(1).max(200).optional().describe("The right issued for this external_ref by create_benefit_entitlement, 1 to 200 characters. Required when the campaign requires a right.")
6331
6332
  },
6332
6333
  annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: true }
6333
6334
  },
@@ -6341,7 +6342,10 @@ function registerCarrierApiTools(server2, ctx) {
6341
6342
  return carrierApiRequest(ctx, extra, {
6342
6343
  method: "POST",
6343
6344
  path: `/v1/connectivity/benefit-campaigns/${args.campaign_id}/claims`,
6344
- body: { external_ref: args.external_ref }
6345
+ body: {
6346
+ external_ref: args.external_ref,
6347
+ ...args.entitlement_token !== void 0 ? { entitlement_token: args.entitlement_token } : {}
6348
+ }
6345
6349
  });
6346
6350
  },
6347
6351
  { skipUserToken: true }