@carrierllc/sdk 0.2.29 → 0.2.31
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 +1 -1
- package/dist/data/cli.json +10 -5
- package/dist/data/operations.json +1 -1
- package/dist/mcp.d.ts +1 -1
- package/dist/mcp.js +1 -1
- package/dist/version.d.ts +2 -2
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ const issued = await carrier.call("create_connectivity_intent", {
|
|
|
24
24
|
idempotencyKey: "order_123",
|
|
25
25
|
})
|
|
26
26
|
|
|
27
|
-
const session = new Mcp(process.env.
|
|
27
|
+
const session = new Mcp(process.env.CARRIER_OCS_API_TOKEN ?? "")
|
|
28
28
|
const tools = await session.listTools()
|
|
29
29
|
await session.callTool("list_subscribers", { limit: 5 })
|
|
30
30
|
|
package/dist/data/cli.json
CHANGED
|
@@ -1668,7 +1668,7 @@
|
|
|
1668
1668
|
{
|
|
1669
1669
|
"invocation": "carrier onboard connect",
|
|
1670
1670
|
"domain": "onboard",
|
|
1671
|
-
"summary": "Connect your own
|
|
1671
|
+
"summary": "Connect your own network token (step 2, BYO). Verified against OCS, then stored encrypted; the token is never echoed back.",
|
|
1672
1672
|
"write": true,
|
|
1673
1673
|
"transport": "rest",
|
|
1674
1674
|
"tool": null,
|
|
@@ -1677,7 +1677,7 @@
|
|
|
1677
1677
|
"options": [
|
|
1678
1678
|
{
|
|
1679
1679
|
"flags": "--token <token>",
|
|
1680
|
-
"description": "
|
|
1680
|
+
"description": "Network API token. A flag lands in shell history — prefer a leading space, or run this once from a fresh shell.",
|
|
1681
1681
|
"required": true
|
|
1682
1682
|
}
|
|
1683
1683
|
]
|
|
@@ -1908,6 +1908,11 @@
|
|
|
1908
1908
|
"flags": "--external-ref <ref>",
|
|
1909
1909
|
"description": "Your own reference for the claimant, 1 to 200 characters.",
|
|
1910
1910
|
"required": true
|
|
1911
|
+
},
|
|
1912
|
+
{
|
|
1913
|
+
"flags": "--entitlement-token <token>",
|
|
1914
|
+
"description": "The right issued for this external_ref by create_benefit_entitlement, 1 to 200 characters. Required when the campaign requires a right.",
|
|
1915
|
+
"required": false
|
|
1911
1916
|
}
|
|
1912
1917
|
]
|
|
1913
1918
|
},
|
|
@@ -3104,7 +3109,7 @@
|
|
|
3104
3109
|
{
|
|
3105
3110
|
"invocation": "carrier env credentials",
|
|
3106
3111
|
"domain": "env",
|
|
3107
|
-
"summary": "Report on the stored
|
|
3112
|
+
"summary": "Report on the stored network credential without changing it: whether a token is present, whether it is encrypted, how old it is, and whether rotation is recommended (over 90 days).",
|
|
3108
3113
|
"write": false,
|
|
3109
3114
|
"transport": "mcp",
|
|
3110
3115
|
"tool": "credential_status",
|
|
@@ -3115,7 +3120,7 @@
|
|
|
3115
3120
|
{
|
|
3116
3121
|
"invocation": "carrier env rotate",
|
|
3117
3122
|
"domain": "env",
|
|
3118
|
-
"summary": "Replace the stored
|
|
3123
|
+
"summary": "Replace the stored network API token with one you supply.",
|
|
3119
3124
|
"write": true,
|
|
3120
3125
|
"transport": "mcp",
|
|
3121
3126
|
"tool": "rotate_credentials",
|
|
@@ -3124,7 +3129,7 @@
|
|
|
3124
3129
|
"options": [
|
|
3125
3130
|
{
|
|
3126
3131
|
"flags": "--new-token <token>",
|
|
3127
|
-
"description": "New
|
|
3132
|
+
"description": "New network API token to encrypt and store.",
|
|
3128
3133
|
"required": true
|
|
3129
3134
|
},
|
|
3130
3135
|
{
|
|
@@ -1575,7 +1575,7 @@
|
|
|
1575
1575
|
"method": "POST",
|
|
1576
1576
|
"path": "/v1/onboarding/ocs-connect",
|
|
1577
1577
|
"tag": "Onboarding",
|
|
1578
|
-
"summary": "Connect a BYO
|
|
1578
|
+
"summary": "Connect a BYO network token (step 2)",
|
|
1579
1579
|
"security": "bearer",
|
|
1580
1580
|
"body": true,
|
|
1581
1581
|
"bodyRequired": true,
|
package/dist/mcp.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Streamable HTTP client for the hosted Carrier MCP server.
|
|
3
3
|
*
|
|
4
|
-
* `auth: "token"` sends
|
|
4
|
+
* `auth: "token"` sends a network reseller token as `?TOKEN=`.
|
|
5
5
|
* `auth: "bearer"` sends an OAuth access token or a Clerk organization API key.
|
|
6
6
|
*/
|
|
7
7
|
export declare const DEFAULT_MCP_URL = "https://mcp.carrier.llc/mcp";
|
package/dist/mcp.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Streamable HTTP client for the hosted Carrier MCP server.
|
|
3
3
|
*
|
|
4
|
-
* `auth: "token"` sends
|
|
4
|
+
* `auth: "token"` sends a network reseller token as `?TOKEN=`.
|
|
5
5
|
* `auth: "bearer"` sends an OAuth access token or a Clerk organization API key.
|
|
6
6
|
*/
|
|
7
7
|
import { CarrierError } from "./error.js";
|
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.
|
|
3
|
-
export declare const USER_AGENT = "@carrierllc/sdk/0.2.
|
|
2
|
+
export declare const SDK_VERSION = "0.2.31";
|
|
3
|
+
export declare const USER_AGENT = "@carrierllc/sdk/0.2.31";
|
package/dist/version.js
CHANGED