@carrierllc/sdk 0.2.32 → 0.2.35

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/ai.d.ts ADDED
@@ -0,0 +1,53 @@
1
+ /**
2
+ * Carrier AI Agent Toolkits.
3
+ *
4
+ * Provides ready-to-use tool definitions and execution functions for AI agents
5
+ * across Vercel AI SDK, LangChain, Claude Tool Use, and OpenAI function calling.
6
+ */
7
+ import type { Carrier } from "./client.js";
8
+ export interface CarrierToolParameterSchema {
9
+ type: string;
10
+ description?: string;
11
+ enum?: string[];
12
+ properties?: Record<string, CarrierToolParameterSchema>;
13
+ required?: string[];
14
+ items?: CarrierToolParameterSchema;
15
+ }
16
+ export interface CarrierToolDefinition<TArgs = any, TResult = any> {
17
+ name: string;
18
+ description: string;
19
+ parameters: {
20
+ type: "object";
21
+ properties: Record<string, CarrierToolParameterSchema>;
22
+ required?: string[];
23
+ };
24
+ inputSchema?: {
25
+ type: "object";
26
+ properties: Record<string, CarrierToolParameterSchema>;
27
+ required?: string[];
28
+ };
29
+ execute: (args: TArgs) => Promise<TResult>;
30
+ }
31
+ export interface IssueEsimArgs {
32
+ plan: string;
33
+ idempotency_key: string;
34
+ metadata?: Record<string, string>;
35
+ }
36
+ export interface GetEsimArgs {
37
+ intent_id: string;
38
+ }
39
+ export interface SimulateTelemetryEventArgs {
40
+ type: string;
41
+ carrier_id?: string;
42
+ iccid?: string;
43
+ data?: Record<string, unknown>;
44
+ }
45
+ export interface GetSubscriberArgs {
46
+ iccid: string;
47
+ }
48
+ export interface GetUsageArgs {
49
+ iccid: string;
50
+ start: string;
51
+ end: string;
52
+ }
53
+ export declare function createCarrierAgentTools(carrier: Carrier): Record<string, CarrierToolDefinition>;
package/dist/ai.js ADDED
@@ -0,0 +1,146 @@
1
+ /**
2
+ * Carrier AI Agent Toolkits.
3
+ *
4
+ * Provides ready-to-use tool definitions and execution functions for AI agents
5
+ * across Vercel AI SDK, LangChain, Claude Tool Use, and OpenAI function calling.
6
+ */
7
+ export function createCarrierAgentTools(carrier) {
8
+ const issueEsimParams = {
9
+ type: "object",
10
+ properties: {
11
+ plan: {
12
+ type: "string",
13
+ description: "Plan identifier, e.g. 'test_global_1gb' or a custom product ID.",
14
+ },
15
+ idempotency_key: {
16
+ type: "string",
17
+ description: "Unique idempotency key to prevent double issuance.",
18
+ },
19
+ metadata: {
20
+ type: "object",
21
+ description: "Optional key-value metadata to attach to the intent.",
22
+ },
23
+ },
24
+ required: ["plan", "idempotency_key"],
25
+ };
26
+ const getEsimParams = {
27
+ type: "object",
28
+ properties: {
29
+ intent_id: {
30
+ type: "string",
31
+ description: "The connectivity intent ID, e.g. 'cni_...'.",
32
+ },
33
+ },
34
+ required: ["intent_id"],
35
+ };
36
+ const listCarriersParams = {
37
+ type: "object",
38
+ properties: {},
39
+ };
40
+ const simulateParams = {
41
+ type: "object",
42
+ properties: {
43
+ type: {
44
+ type: "string",
45
+ description: "Event type: 'network.attached', 'network.detached', 'usage.threshold_reached', 'balance.topped_up'.",
46
+ },
47
+ carrier_id: {
48
+ type: "string",
49
+ description: "Target carrier ID, e.g. 'carrier_alphatel', 'carrier_apex', or 'carrier_orbitcell'.",
50
+ },
51
+ iccid: {
52
+ type: "string",
53
+ description: "Optional ICCID to simulate event on.",
54
+ },
55
+ data: {
56
+ type: "object",
57
+ description: "Optional event payload overrides.",
58
+ },
59
+ },
60
+ required: ["type"],
61
+ };
62
+ const getSubscriberParams = {
63
+ type: "object",
64
+ properties: {
65
+ iccid: {
66
+ type: "string",
67
+ description: "The 19-20 digit ICCID of the subscriber SIM.",
68
+ },
69
+ },
70
+ required: ["iccid"],
71
+ };
72
+ const getUsageParams = {
73
+ type: "object",
74
+ properties: {
75
+ iccid: {
76
+ type: "string",
77
+ description: "The ICCID of the subscriber.",
78
+ },
79
+ start: {
80
+ type: "string",
81
+ description: "Start date in YYYY-MM-DD format.",
82
+ },
83
+ end: {
84
+ type: "string",
85
+ description: "End date in YYYY-MM-DD format.",
86
+ },
87
+ },
88
+ required: ["iccid", "start", "end"],
89
+ };
90
+ return {
91
+ issue_esim: {
92
+ name: "issue_esim",
93
+ description: "Provision a new eSIM connectivity profile for a device. Supports live plans or sandbox test plans.",
94
+ parameters: issueEsimParams,
95
+ inputSchema: issueEsimParams,
96
+ execute: async (args) => {
97
+ return carrier.esims.issue({ plan: args.plan, metadata: args.metadata }, { idempotencyKey: args.idempotency_key });
98
+ },
99
+ },
100
+ get_esim: {
101
+ name: "get_esim",
102
+ description: "Retrieve eSIM profile details and activation code by connectivity intent ID.",
103
+ parameters: getEsimParams,
104
+ inputSchema: getEsimParams,
105
+ execute: async (args) => {
106
+ return carrier.esims.get(args.intent_id);
107
+ },
108
+ },
109
+ list_sandbox_carriers: {
110
+ name: "list_sandbox_carriers",
111
+ description: "List available sandbox telecom networks (AlphaTel US, Apex Mobile Europe, OrbitCell IoT) and their capabilities.",
112
+ parameters: listCarriersParams,
113
+ inputSchema: listCarriersParams,
114
+ execute: async () => {
115
+ return carrier.sandbox.carriers();
116
+ },
117
+ },
118
+ simulate_telemetry_event: {
119
+ name: "simulate_telemetry_event",
120
+ description: "Simulate a carrier network or data usage event on a sandbox eSIM to test webhooks and agent triggers.",
121
+ parameters: simulateParams,
122
+ inputSchema: simulateParams,
123
+ execute: async (args) => {
124
+ return carrier.sandbox.simulateEvent(args);
125
+ },
126
+ },
127
+ get_subscriber: {
128
+ name: "get_subscriber",
129
+ description: "Look up real-time subscriber profile and network status by ICCID.",
130
+ parameters: getSubscriberParams,
131
+ inputSchema: getSubscriberParams,
132
+ execute: async (args) => {
133
+ return carrier.subscribers.get(args.iccid);
134
+ },
135
+ },
136
+ get_usage: {
137
+ name: "get_usage",
138
+ description: "Get recorded data consumption and session logs for an active subscriber over a date period.",
139
+ parameters: getUsageParams,
140
+ inputSchema: getUsageParams,
141
+ execute: async (args) => {
142
+ return carrier.subscribers.usage(args.iccid, { start: args.start, end: args.end });
143
+ },
144
+ },
145
+ };
146
+ }
package/dist/client.d.ts CHANGED
@@ -35,6 +35,49 @@ export declare class Carrier {
35
35
  }>;
36
36
  updatePlan: (id: string, slug: string, body: StorefrontPlanUpdateParams) => Promise<NonNullable<HostedStorefront["plans"]>[number]>;
37
37
  };
38
+ readonly subscribers: {
39
+ list: (params?: {
40
+ page?: number;
41
+ limit?: number;
42
+ }) => Promise<unknown>;
43
+ get: (iccid: string) => Promise<unknown>;
44
+ usage: (iccid: string, params: {
45
+ start: string;
46
+ end: string;
47
+ }) => Promise<unknown>;
48
+ };
49
+ readonly esims: {
50
+ issue: (body: IntentCreateParams, options: IdempotentRequest) => Promise<ConnectivityIntent>;
51
+ get: (id: string) => Promise<ConnectivityIntent>;
52
+ list: (params?: {
53
+ limit?: number;
54
+ }) => Promise<{
55
+ object: "list";
56
+ data: ConnectivityIntent[];
57
+ }>;
58
+ };
59
+ readonly sandbox: {
60
+ carriers: () => Promise<{
61
+ object: "list";
62
+ data: Array<Record<string, unknown>>;
63
+ }>;
64
+ simulateEvent: (body: {
65
+ carrier_id?: string;
66
+ type?: string;
67
+ iccid?: string;
68
+ data?: Record<string, unknown>;
69
+ }) => Promise<unknown>;
70
+ };
71
+ readonly events: {
72
+ list: (params?: {
73
+ intentId?: string;
74
+ }) => Promise<{
75
+ object: "list";
76
+ data: unknown[];
77
+ }>;
78
+ get: (id: string) => Promise<unknown>;
79
+ retry: (id: string) => Promise<unknown>;
80
+ };
38
81
  constructor(apiKey: string, options?: CarrierOptions);
39
82
  /** Call any operation id from the public OpenAPI document. */
40
83
  call(operationId: OperationId, params?: CallParams): Promise<unknown>;
package/dist/client.js CHANGED
@@ -16,6 +16,10 @@ export class Carrier {
16
16
  intents;
17
17
  products;
18
18
  storefronts;
19
+ subscribers;
20
+ esims;
21
+ sandbox;
22
+ events;
19
23
  constructor(apiKey, options = {}) {
20
24
  if (apiKey.trim() === "") {
21
25
  throw new CarrierError(400, "invalid_api_key", "A Carrier API key is required.");
@@ -36,6 +40,25 @@ export class Carrier {
36
40
  upsertPlan: (id, body) => this.request("POST", `/v1/storefronts/${encodeURIComponent(id)}/plans`, { body }),
37
41
  updatePlan: (id, slug, body) => this.request("PATCH", `/v1/storefronts/${encodeURIComponent(id)}/plans/${encodeURIComponent(slug)}`, { body }),
38
42
  };
43
+ this.subscribers = {
44
+ list: (params) => this.request("GET", "/v1/subscribers", { query: params }),
45
+ get: (iccid) => this.request("GET", `/v1/subscribers/${encodeURIComponent(iccid)}`, {}),
46
+ usage: (iccid, params) => this.request("POST", `/v1/subscribers/${encodeURIComponent(iccid)}/usage`, { body: params }),
47
+ };
48
+ this.esims = {
49
+ issue: (body, request) => this.post("/v1/connectivity/intents", body, request.idempotencyKey),
50
+ get: (id) => this.request("GET", `/v1/connectivity/intents/${encodeURIComponent(id)}`, {}),
51
+ list: (params) => this.request("GET", "/v1/connectivity/intents", { query: params?.limit ? { limit: String(params.limit) } : undefined }),
52
+ };
53
+ this.sandbox = {
54
+ carriers: () => this.request("GET", "/v1/connectivity/sandbox/carriers", {}),
55
+ simulateEvent: (body) => this.request("POST", "/v1/connectivity/sandbox/simulate-event", { body }),
56
+ };
57
+ this.events = {
58
+ list: (params) => this.request("GET", "/v1/connectivity/events", { query: params?.intentId ? { intent: params.intentId } : undefined }),
59
+ get: (id) => this.request("GET", `/v1/connectivity/events/${encodeURIComponent(id)}`, {}),
60
+ retry: (id) => this.request("POST", `/v1/connectivity/events/${encodeURIComponent(id)}/retry`, {}),
61
+ };
39
62
  }
40
63
  /** Call any operation id from the public OpenAPI document. */
41
64
  async call(operationId, params = {}) {
@@ -2093,6 +2093,17 @@
2093
2093
  }
2094
2094
  ]
2095
2095
  },
2096
+ {
2097
+ "invocation": "carrier billing ai-credits",
2098
+ "domain": "billing",
2099
+ "summary": "Read your organization's AI credit wallet in EUR: balance_eur and available_eur.",
2100
+ "write": false,
2101
+ "transport": "mcp",
2102
+ "tool": "ai_credit_balance",
2103
+ "restMethod": null,
2104
+ "restPath": null,
2105
+ "options": []
2106
+ },
2096
2107
  {
2097
2108
  "invocation": "carrier billing credits",
2098
2109
  "domain": "billing",
@@ -1943,6 +1943,19 @@
1943
1943
  ],
1944
1944
  "headerParams": []
1945
1945
  },
1946
+ {
1947
+ "id": "ai_credit_balance",
1948
+ "method": "GET",
1949
+ "path": "/v1/ai/wallet",
1950
+ "tag": "AI",
1951
+ "summary": "Read your organization's AI credits in EUR",
1952
+ "security": "bearer",
1953
+ "body": false,
1954
+ "bodyRequired": false,
1955
+ "pathParams": [],
1956
+ "queryParams": [],
1957
+ "headerParams": []
1958
+ },
1946
1959
  {
1947
1960
  "id": "ai_chat",
1948
1961
  "method": "POST",
@@ -2179,6 +2192,32 @@
2179
2192
  "queryParams": [],
2180
2193
  "headerParams": []
2181
2194
  },
2195
+ {
2196
+ "id": "list_sandbox_carriers",
2197
+ "method": "GET",
2198
+ "path": "/v1/connectivity/sandbox/carriers",
2199
+ "tag": "Connectivity",
2200
+ "summary": "List sandbox telecom carriers available for simulation",
2201
+ "security": "bearer",
2202
+ "body": false,
2203
+ "bodyRequired": false,
2204
+ "pathParams": [],
2205
+ "queryParams": [],
2206
+ "headerParams": []
2207
+ },
2208
+ {
2209
+ "id": "simulate_sandbox_event",
2210
+ "method": "POST",
2211
+ "path": "/v1/connectivity/sandbox/simulate-event",
2212
+ "tag": "Connectivity",
2213
+ "summary": "Simulate a carrier network or connectivity telemetry event",
2214
+ "security": "bearer",
2215
+ "body": true,
2216
+ "bodyRequired": true,
2217
+ "pathParams": [],
2218
+ "queryParams": [],
2219
+ "headerParams": []
2220
+ },
2182
2221
  {
2183
2222
  "id": "create_connectivity_offering",
2184
2223
  "method": "POST",
package/dist/index.d.ts CHANGED
@@ -11,3 +11,4 @@ export { normalizeStorefrontDomain } from "./storefront-domain.js";
11
11
  export { storefrontRequest, type StorefrontOperation, type StorefrontRequest, } from "./storefront-operations.js";
12
12
  export { isStorefrontPlanError, logoFileDataUrl, logoReference, majorToCents, parseCountryInput, parseDataGb, parseValidityDays, parseWholeNumber, completePlanInput, storefrontBrandPatch, storefrontNotificationPatch, storefrontPlanBody, hostedStorefrontUrl, storefrontSlugFrom, type ExistingStorefrontBrand, type StorefrontBrandInput, type StorefrontNotificationInput, type StorefrontPlanBody, type StorefrontPlanInput, type StoredPlanIdentity, } from "./storefront-write.js";
13
13
  export type { ConnectivityEsim, ConnectivityIntent, ConnectivityPlan, HostedStorefront, IdempotentRequest, IntentCreateParams, IntentStatus, PlanPrice, ProductCreateParams, StorefrontCreateParams, StorefrontPlanParams, StorefrontPlanUpdateParams, StorefrontUpdateParams, } from "./types.js";
14
+ export { createCarrierAgentTools, type CarrierToolDefinition, type CarrierToolParameterSchema, type IssueEsimArgs, type GetEsimArgs, type SimulateTelemetryEventArgs, type GetSubscriberArgs, } from "./ai.js";
package/dist/index.js CHANGED
@@ -8,3 +8,4 @@ export { SDK_VERSION } from "./version.js";
8
8
  export { normalizeStorefrontDomain } from "./storefront-domain.js";
9
9
  export { storefrontRequest, } from "./storefront-operations.js";
10
10
  export { isStorefrontPlanError, logoFileDataUrl, logoReference, majorToCents, parseCountryInput, parseDataGb, parseValidityDays, parseWholeNumber, completePlanInput, storefrontBrandPatch, storefrontNotificationPatch, storefrontPlanBody, hostedStorefrontUrl, storefrontSlugFrom, } from "./storefront-write.js";
11
+ export { createCarrierAgentTools, } from "./ai.js";
@@ -2,4 +2,4 @@
2
2
  *
3
3
  * Generated by sdks/generate.py. Do not edit by hand.
4
4
  */
5
- export type OperationId = "list_reseller_accounts" | "get_reseller_info" | "esim_status_per_account" | "list_sponsors" | "list_steering_lists" | "get_subscriber" | "list_subscribers" | "create_subscriber" | "get_sim_provider_status" | "change_sim_status" | "get_subscriber_location" | "hlr_get_bitrate" | "hlr_set_bitrate" | "list_subscriber_packages" | "assign_package" | "clean_all_packages" | "list_package_templates" | "create_package_template" | "list_location_zones" | "create_location_zone" | "list_detailed_location_zones" | "list_destination_prefixes" | "subscriber_usage" | "subscriber_network_events" | "subscriber_active_period" | "get_tariff" | "list_network_profiles" | "modify_subscriber_balance" | "modify_subscriber_status" | "modify_subscriber_contact_info" | "set_subscriber_traffic_restrictions" | "modify_subscriber_steering_list" | "move_subscriber_range_to_account" | "assign_recurring_package" | "modify_package_limits" | "modify_package_expiry" | "modify_package_status" | "stop_resume_recurring_package" | "modify_account_balance" | "delete_subscriber_package" | "modify_template_core" | "modify_template_recurring" | "modify_template_throttling" | "send_sms" | "fleet_health" | "churn_risk" | "audit_network_coverage" | "diagnose_subscriber" | "detect_usage_anomalies" | "optimize_package" | "marketing_intelligence" | "high_cost_subscribers" | "high_cost_subscribers_method_guard" | "detect_country_entry" | "list_intelligence_schedules" | "create_intelligence_schedule" | "delete_intelligence_schedule" | "run_intelligence_schedule" | "get_intelligence_schedule_report" | "get_intelligence_share" | "operator_billing_connect_begin" | "operator_billing_connect_oauth_begin" | "operator_billing_connect_oauth_complete" | "operator_billing_connect_status" | "operator_billing_connect_dashboard_link" | "operator_billing_list_payouts" | "operator_billing_create_manual_payout" | "operator_billing_get_payout_schedule" | "operator_billing_update_payout_schedule" | "operator_billing_list_fees" | "operator_billing_list_charges" | "operator_billing_get_balance" | "operator_billing_list_refunds" | "operator_billing_create_refund" | "operator_billing_list_disputes" | "operator_billing_submit_dispute_evidence" | "operator_billing_list_fraud_reviews" | "operator_billing_approve_fraud_review" | "operator_billing_decline_fraud_review" | "operator_billing_list_value_lists" | "operator_billing_add_value_list_item" | "affiliates_me_get" | "affiliates_me_create" | "affiliates_me_commissions_list" | "affiliates_link" | "operator_identity_status" | "operator_identity_create_session" | "operator_identity_update_session" | "operator_list_promotions" | "operator_create_promotion" | "signup_start" | "signup_verify" | "create_api_key" | "get_onboarding_state" | "onboarding_save_org" | "onboarding_connect_ocs_token" | "onboarding_start_managed_account" | "onboarding_save_plan" | "onboarding_skip_plan" | "onboarding_test_esim" | "onboarding_complete" | "operator_billing_stripe_webhook" | "receive_bridge4ip_webhook" | "affect_subscriber_phone_number" | "modify_subscriber_mobile_plan" | "modify_subscriber_voip_plan" | "push_steering_to_subscriber" | "modify_subscriber_package_active_period" | "get_subscriber_location_by_cell_id" | "reset_subscriber_gz_counter" | "list_destination_lists" | "list_subscriber_voip_tariff" | "list_voip_tariff_rule" | "change_network_profile_of_location_zone" | "get_network_default" | "set_network_default" | "plan_network_default" | "carrier_webhook_config" | "ai_chat" | "ai_insights" | "ai_quota" | "list_invoice_periods" | "get_billing_config" | "update_billing_config" | "stripe_connect_begin" | "stripe_connect_status" | "list_invoices" | "create_invoice" | "get_invoice" | "update_invoice" | "void_invoice" | "get_invoice_document" | "list_connectivity_plans" | "create_connectivity_offering" | "list_connectivity_offerings" | "list_connectivity_offering_templates" | "create_connectivity_offering_from_template" | "get_connectivity_offering_revision" | "validate_connectivity_offering_revision" | "get_connectivity_offering_template_source" | "duplicate_connectivity_offering" | "get_connectivity_offering" | "update_connectivity_offering" | "create_connectivity_link" | "list_connectivity_links" | "set_connectivity_link_status" | "resolve_connectivity_public_link" | "create_benefit_campaign" | "list_benefit_campaigns" | "set_benefit_campaign_status" | "create_benefit_entitlement" | "list_benefit_claims" | "claim_benefit" | "issue_benefit_claim" | "reconcile_benefit_claim" | "record_experiment_event" | "experiment_report" | "list_connectivity_products" | "create_connectivity_product" | "get_connectivity_product" | "list_connectivity_intents" | "create_connectivity_intent" | "get_connectivity_intent" | "confirm_connectivity_intent" | "create_connectivity_webhook_endpoint" | "list_connectivity_webhook_endpoints" | "delete_connectivity_webhook_endpoint" | "list_connectivity_events" | "get_connectivity_event" | "create_connectivity_usage_record" | "list_connectivity_usage_records" | "retry_connectivity_event" | "issue_esim_from_inventory" | "rollback_esim_issuance" | "subscriber_country_history" | "get_subscriber_notes" | "add_subscriber_note" | "put_subscriber_notes" | "observe_connectivity_event" | "ingest_connectivity_usage" | "ingest_cdr_events" | "aggregate_cdr" | "list_storefront_templates" | "list_storefront_buyer_orders" | "get_storefront_order_usage" | "get_storefront_order_top_up_options" | "cancel_storefront_top_up_checkout" | "cancel_storefront_order" | "get_storefront_order" | "rollback_storefront_order" | "get_hosted_storefront" | "get_hosted_storefront_plan_readiness" | "list_storefronts" | "create_storefront" | "list_storefront_orders" | "get_storefront" | "update_storefront" | "upsert_storefront_plan" | "update_storefront_plan" | "publish_storefront" | "plan_storefront_publish" | "unpublish_storefront" | "health_check";
5
+ export type OperationId = "list_reseller_accounts" | "get_reseller_info" | "esim_status_per_account" | "list_sponsors" | "list_steering_lists" | "get_subscriber" | "list_subscribers" | "create_subscriber" | "get_sim_provider_status" | "change_sim_status" | "get_subscriber_location" | "hlr_get_bitrate" | "hlr_set_bitrate" | "list_subscriber_packages" | "assign_package" | "clean_all_packages" | "list_package_templates" | "create_package_template" | "list_location_zones" | "create_location_zone" | "list_detailed_location_zones" | "list_destination_prefixes" | "subscriber_usage" | "subscriber_network_events" | "subscriber_active_period" | "get_tariff" | "list_network_profiles" | "modify_subscriber_balance" | "modify_subscriber_status" | "modify_subscriber_contact_info" | "set_subscriber_traffic_restrictions" | "modify_subscriber_steering_list" | "move_subscriber_range_to_account" | "assign_recurring_package" | "modify_package_limits" | "modify_package_expiry" | "modify_package_status" | "stop_resume_recurring_package" | "modify_account_balance" | "delete_subscriber_package" | "modify_template_core" | "modify_template_recurring" | "modify_template_throttling" | "send_sms" | "fleet_health" | "churn_risk" | "audit_network_coverage" | "diagnose_subscriber" | "detect_usage_anomalies" | "optimize_package" | "marketing_intelligence" | "high_cost_subscribers" | "high_cost_subscribers_method_guard" | "detect_country_entry" | "list_intelligence_schedules" | "create_intelligence_schedule" | "delete_intelligence_schedule" | "run_intelligence_schedule" | "get_intelligence_schedule_report" | "get_intelligence_share" | "operator_billing_connect_begin" | "operator_billing_connect_oauth_begin" | "operator_billing_connect_oauth_complete" | "operator_billing_connect_status" | "operator_billing_connect_dashboard_link" | "operator_billing_list_payouts" | "operator_billing_create_manual_payout" | "operator_billing_get_payout_schedule" | "operator_billing_update_payout_schedule" | "operator_billing_list_fees" | "operator_billing_list_charges" | "operator_billing_get_balance" | "operator_billing_list_refunds" | "operator_billing_create_refund" | "operator_billing_list_disputes" | "operator_billing_submit_dispute_evidence" | "operator_billing_list_fraud_reviews" | "operator_billing_approve_fraud_review" | "operator_billing_decline_fraud_review" | "operator_billing_list_value_lists" | "operator_billing_add_value_list_item" | "affiliates_me_get" | "affiliates_me_create" | "affiliates_me_commissions_list" | "affiliates_link" | "operator_identity_status" | "operator_identity_create_session" | "operator_identity_update_session" | "operator_list_promotions" | "operator_create_promotion" | "signup_start" | "signup_verify" | "create_api_key" | "get_onboarding_state" | "onboarding_save_org" | "onboarding_connect_ocs_token" | "onboarding_start_managed_account" | "onboarding_save_plan" | "onboarding_skip_plan" | "onboarding_test_esim" | "onboarding_complete" | "operator_billing_stripe_webhook" | "receive_bridge4ip_webhook" | "affect_subscriber_phone_number" | "modify_subscriber_mobile_plan" | "modify_subscriber_voip_plan" | "push_steering_to_subscriber" | "modify_subscriber_package_active_period" | "get_subscriber_location_by_cell_id" | "reset_subscriber_gz_counter" | "list_destination_lists" | "list_subscriber_voip_tariff" | "list_voip_tariff_rule" | "change_network_profile_of_location_zone" | "get_network_default" | "set_network_default" | "plan_network_default" | "carrier_webhook_config" | "ai_credit_balance" | "ai_chat" | "ai_insights" | "ai_quota" | "list_invoice_periods" | "get_billing_config" | "update_billing_config" | "stripe_connect_begin" | "stripe_connect_status" | "list_invoices" | "create_invoice" | "get_invoice" | "update_invoice" | "void_invoice" | "get_invoice_document" | "list_connectivity_plans" | "list_sandbox_carriers" | "simulate_sandbox_event" | "create_connectivity_offering" | "list_connectivity_offerings" | "list_connectivity_offering_templates" | "create_connectivity_offering_from_template" | "get_connectivity_offering_revision" | "validate_connectivity_offering_revision" | "get_connectivity_offering_template_source" | "duplicate_connectivity_offering" | "get_connectivity_offering" | "update_connectivity_offering" | "create_connectivity_link" | "list_connectivity_links" | "set_connectivity_link_status" | "resolve_connectivity_public_link" | "create_benefit_campaign" | "list_benefit_campaigns" | "set_benefit_campaign_status" | "create_benefit_entitlement" | "list_benefit_claims" | "claim_benefit" | "issue_benefit_claim" | "reconcile_benefit_claim" | "record_experiment_event" | "experiment_report" | "list_connectivity_products" | "create_connectivity_product" | "get_connectivity_product" | "list_connectivity_intents" | "create_connectivity_intent" | "get_connectivity_intent" | "confirm_connectivity_intent" | "create_connectivity_webhook_endpoint" | "list_connectivity_webhook_endpoints" | "delete_connectivity_webhook_endpoint" | "list_connectivity_events" | "get_connectivity_event" | "create_connectivity_usage_record" | "list_connectivity_usage_records" | "retry_connectivity_event" | "issue_esim_from_inventory" | "rollback_esim_issuance" | "subscriber_country_history" | "get_subscriber_notes" | "add_subscriber_note" | "put_subscriber_notes" | "observe_connectivity_event" | "ingest_connectivity_usage" | "ingest_cdr_events" | "aggregate_cdr" | "list_storefront_templates" | "list_storefront_buyer_orders" | "get_storefront_order_usage" | "get_storefront_order_top_up_options" | "cancel_storefront_top_up_checkout" | "cancel_storefront_order" | "get_storefront_order" | "rollback_storefront_order" | "get_hosted_storefront" | "get_hosted_storefront_plan_readiness" | "list_storefronts" | "create_storefront" | "list_storefront_orders" | "get_storefront" | "update_storefront" | "upsert_storefront_plan" | "update_storefront_plan" | "publish_storefront" | "plan_storefront_publish" | "unpublish_storefront" | "health_check";
package/dist/version.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  /** Published version. Keep this equal to package.json. */
2
- export declare const SDK_VERSION = "0.2.32";
3
- export declare const USER_AGENT = "@carrierllc/sdk/0.2.32";
2
+ export declare const SDK_VERSION = "0.2.35";
3
+ export declare const USER_AGENT = "@carrierllc/sdk/0.2.35";
package/dist/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  /** Published version. Keep this equal to package.json. */
2
- export const SDK_VERSION = "0.2.32";
2
+ export const SDK_VERSION = "0.2.35";
3
3
  export const USER_AGENT = `@carrierllc/sdk/${SDK_VERSION}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carrierllc/sdk",
3
- "version": "0.2.32",
3
+ "version": "0.2.35",
4
4
  "description": "TypeScript client for the Carrier API, MCP server, and CLI.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -11,6 +11,10 @@
11
11
  "types": "./dist/index.d.ts",
12
12
  "import": "./dist/index.js"
13
13
  },
14
+ "./ai": {
15
+ "types": "./dist/ai.d.ts",
16
+ "import": "./dist/ai.js"
17
+ },
14
18
  "./storefront-domain": {
15
19
  "types": "./dist/storefront-domain.d.ts",
16
20
  "import": "./dist/storefront-domain.js"