@carrierllc/mcp 0.13.60 → 0.13.62

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/cli.js CHANGED
@@ -45,7 +45,7 @@ import {
45
45
  verifyStorefront,
46
46
  walletScreen,
47
47
  which
48
- } from "./chunk-6J2ZU3T5.js";
48
+ } from "./chunk-SZR42TUZ.js";
49
49
  import {
50
50
  copyTree,
51
51
  exists,
@@ -4978,6 +4978,253 @@ var CLI_DOMAINS = [
4978
4978
  }
4979
4979
  ]
4980
4980
  },
4981
+ {
4982
+ name: "benefits",
4983
+ summary: "Member-benefit campaigns: create, pause, claim, issue an eSIM and reconcile",
4984
+ commands: [
4985
+ {
4986
+ name: "create",
4987
+ tool: "create_benefit_campaign",
4988
+ summary: "Create a member-benefit campaign: a capped number of eSIM claims for one offering revision, each costing a fixed amount from your sponsor wallet.",
4989
+ requireConfirm: true,
4990
+ options: [
4991
+ {
4992
+ flags: "--offering-id <id>",
4993
+ description: "Offering the campaign issues from.",
4994
+ arg: "offering_id",
4995
+ type: "string",
4996
+ required: true
4997
+ },
4998
+ {
4999
+ flags: "--revision <n>",
5000
+ description: "Offering revision, 1 or higher.",
5001
+ arg: "revision",
5002
+ type: "number",
5003
+ required: true
5004
+ },
5005
+ {
5006
+ flags: "--max-claims <n>",
5007
+ description: "Most claims the campaign accepts.",
5008
+ arg: "max_claims",
5009
+ type: "number",
5010
+ required: true
5011
+ },
5012
+ {
5013
+ flags: "--cost-cents <n>",
5014
+ description: "Cost of one claim in cents.",
5015
+ arg: "cost_cents",
5016
+ type: "number",
5017
+ required: true
5018
+ },
5019
+ {
5020
+ flags: "--expires-at <n>",
5021
+ description: "Expiry as epoch milliseconds.",
5022
+ arg: "expires_at",
5023
+ type: "number",
5024
+ required: true
5025
+ },
5026
+ {
5027
+ flags: "--product-id <id>",
5028
+ description: "Optional product to issue from.",
5029
+ arg: "product_id",
5030
+ type: "string"
5031
+ }
5032
+ ]
5033
+ },
5034
+ {
5035
+ name: "status",
5036
+ tool: "set_benefit_campaign_status",
5037
+ summary: "Pause a campaign so it accepts no new claims, or resume it.",
5038
+ requireConfirm: true,
5039
+ options: [
5040
+ {
5041
+ flags: "--campaign-id <id>",
5042
+ description: "Campaign id, cbc_ followed by 32 hex characters.",
5043
+ arg: "campaign_id",
5044
+ type: "string",
5045
+ required: true
5046
+ },
5047
+ {
5048
+ flags: "--status <status>",
5049
+ description: "The status to set. One of: active, paused.",
5050
+ arg: "status",
5051
+ type: "string",
5052
+ required: true
5053
+ }
5054
+ ]
5055
+ },
5056
+ {
5057
+ name: "entitle",
5058
+ tool: "create_benefit_entitlement",
5059
+ summary: "Issue ONE single-use right for one external booking or member reference, which the claimant presents to claim a benefit.",
5060
+ requireConfirm: true,
5061
+ options: [
5062
+ {
5063
+ flags: "--campaign-id <id>",
5064
+ description: "Campaign id, cbc_ followed by 32 hex characters.",
5065
+ arg: "campaign_id",
5066
+ type: "string",
5067
+ required: true
5068
+ },
5069
+ {
5070
+ flags: "--external-ref <ref>",
5071
+ description: "Your own reference for the person, 1 to 200 characters.",
5072
+ arg: "external_ref",
5073
+ type: "string",
5074
+ required: true
5075
+ },
5076
+ {
5077
+ flags: "--ttl-ms <n>",
5078
+ description: "Lifetime of the right in milliseconds.",
5079
+ arg: "ttl_ms",
5080
+ type: "number"
5081
+ }
5082
+ ]
5083
+ },
5084
+ {
5085
+ name: "claim",
5086
+ tool: "claim_benefit",
5087
+ summary: "Claim one benefit from a campaign for an external reference, which places a hold on the sponsor wallet.",
5088
+ requireConfirm: true,
5089
+ options: [
5090
+ {
5091
+ flags: "--campaign-id <id>",
5092
+ description: "Campaign id, cbc_ followed by 32 hex characters.",
5093
+ arg: "campaign_id",
5094
+ type: "string",
5095
+ required: true
5096
+ },
5097
+ {
5098
+ flags: "--external-ref <ref>",
5099
+ description: "Your own reference for the claimant, 1 to 200 characters.",
5100
+ arg: "external_ref",
5101
+ type: "string",
5102
+ required: true
5103
+ }
5104
+ ]
5105
+ },
5106
+ {
5107
+ name: "issue",
5108
+ tool: "issue_benefit_claim",
5109
+ summary: "Issue ONE REAL eSIM for a held claim and settle the wallet hold.",
5110
+ requireConfirm: true,
5111
+ options: [
5112
+ {
5113
+ flags: "--campaign-id <id>",
5114
+ description: "Campaign id, cbc_ followed by 32 hex characters.",
5115
+ arg: "campaign_id",
5116
+ type: "string",
5117
+ required: true
5118
+ },
5119
+ {
5120
+ flags: "--claim-id <id>",
5121
+ description: "Claim id from claim_benefit, cbl_ followed by 32 hex characters.",
5122
+ arg: "claim_id",
5123
+ type: "string",
5124
+ required: true
5125
+ }
5126
+ ]
5127
+ },
5128
+ {
5129
+ name: "reconcile",
5130
+ tool: "reconcile_benefit_claim",
5131
+ summary: "Ask the provider what happened to a claim whose issuance ended in an unknown outcome.",
5132
+ requireConfirm: true,
5133
+ options: [
5134
+ {
5135
+ flags: "--campaign-id <id>",
5136
+ description: "Campaign id, cbc_ followed by 32 hex characters.",
5137
+ arg: "campaign_id",
5138
+ type: "string",
5139
+ required: true
5140
+ },
5141
+ {
5142
+ flags: "--claim-id <id>",
5143
+ description: "Claim id, cbl_ followed by 32 hex characters.",
5144
+ arg: "claim_id",
5145
+ type: "string",
5146
+ required: true
5147
+ }
5148
+ ]
5149
+ }
5150
+ ]
5151
+ },
5152
+ {
5153
+ name: "experiments",
5154
+ summary: "Connectivity experiments: record an event and count events per measure",
5155
+ commands: [
5156
+ {
5157
+ name: "record",
5158
+ tool: "record_experiment_event",
5159
+ summary: "Record ONE event of an experiment: what a participant saw or did.",
5160
+ options: [
5161
+ {
5162
+ flags: "--event-id <id>",
5163
+ description: "Your own id for this event.",
5164
+ arg: "event_id",
5165
+ type: "string",
5166
+ required: true
5167
+ },
5168
+ {
5169
+ flags: "--experiment-id <id>",
5170
+ description: "The experiment this event belongs to.",
5171
+ arg: "experiment_id",
5172
+ type: "string",
5173
+ required: true
5174
+ },
5175
+ {
5176
+ flags: "--revision <n>",
5177
+ description: "The revision of the experiment.",
5178
+ arg: "revision",
5179
+ type: "number",
5180
+ required: true
5181
+ },
5182
+ {
5183
+ flags: "--link <link>",
5184
+ description: "The participant this event is about.",
5185
+ arg: "link",
5186
+ type: "string",
5187
+ required: true
5188
+ },
5189
+ {
5190
+ flags: "--measure <measure>",
5191
+ description: "What the participant did. One of: viewed, confirmed, issued, first_data.",
5192
+ arg: "measure",
5193
+ type: "string",
5194
+ required: true
5195
+ }
5196
+ ]
5197
+ },
5198
+ {
5199
+ name: "report",
5200
+ tool: "experiment_report",
5201
+ summary: "Count the events of one experiment per measure inside a time window.",
5202
+ options: [
5203
+ {
5204
+ flags: "--experiment-id <id>",
5205
+ description: "The experiment to report on.",
5206
+ arg: "experiment_id",
5207
+ type: "string",
5208
+ required: true
5209
+ },
5210
+ {
5211
+ flags: "--from <n>",
5212
+ description: "Start of the window, epoch milliseconds.",
5213
+ arg: "from",
5214
+ type: "number",
5215
+ required: true
5216
+ },
5217
+ {
5218
+ flags: "--to <n>",
5219
+ description: "End of the window, epoch milliseconds, exclusive.",
5220
+ arg: "to",
5221
+ type: "number",
5222
+ required: true
5223
+ }
5224
+ ]
5225
+ }
5226
+ ]
5227
+ },
4981
5228
  {
4982
5229
  name: "billing",
4983
5230
  summary: "Carrier plan credits, spend thresholds and rate-limit state",