@npayload/sdk 5.0.4 → 5.1.0
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 +4 -0
- package/dist/chunk-2G46BKEC.mjs +1 -0
- package/dist/{chunk-KUJJYP3K.mjs → chunk-2WG7FETK.mjs} +1 -1
- package/dist/chunk-5R5L7GTT.mjs +17 -0
- package/dist/{chunk-2N25V56J.mjs → chunk-6R2QLUWE.mjs} +2 -2
- package/dist/chunk-7IFTQ52O.mjs +1 -0
- package/dist/chunk-7QTR5IWG.mjs +1 -0
- package/dist/chunk-AECDYMA2.mjs +1 -0
- package/dist/{chunk-455C67EN.mjs → chunk-AGDMCMF3.mjs} +1 -1
- package/dist/chunk-C5EDDEPR.mjs +1 -0
- package/dist/{chunk-2PCG57PX.mjs → chunk-CDA75PLA.mjs} +1 -1
- package/dist/{chunk-6ZOPXG44.mjs → chunk-CFM43QNN.mjs} +4 -4
- package/dist/{chunk-6RMN6EHY.mjs → chunk-GG7UQYUV.mjs} +1 -1
- package/dist/{chunk-FAO3QJC5.mjs → chunk-HX6PH7C3.mjs} +1 -1
- package/dist/{chunk-RIBBVOCC.mjs → chunk-IH2OLS7G.mjs} +1 -1
- package/dist/{chunk-FNAZW7X3.mjs → chunk-K3YY77PG.mjs} +1 -1
- package/dist/chunk-KQCX2PCW.mjs +1 -0
- package/dist/chunk-LCUELOEE.mjs +2 -0
- package/dist/{chunk-2XQXDEXA.mjs → chunk-M7WGBUJ2.mjs} +1 -1
- package/dist/{chunk-UMQ2SWSM.mjs → chunk-N6NIJISZ.mjs} +1 -1
- package/dist/chunk-ONTNXGOM.mjs +1 -0
- package/dist/{chunk-HTQLUO4J.mjs → chunk-ORT5FUFW.mjs} +1 -1
- package/dist/chunk-R6DPWMZM.mjs +1 -0
- package/dist/{chunk-MPYL6HQR.mjs → chunk-STS7CL74.mjs} +1 -1
- package/dist/{chunk-A7HA64P6.mjs → chunk-TUWFD3AZ.mjs} +1 -1
- package/dist/chunk-UDLS46F5.mjs +1 -0
- package/dist/chunk-VZT7RCAC.mjs +4 -0
- package/dist/{chunk-76OM2ZBO.mjs → chunk-WOMYXKGW.mjs} +3 -3
- package/dist/{chunk-6NCRQ746.mjs → chunk-X3CZMXOZ.mjs} +1 -1
- package/dist/{chunk-BMMAZIUY.mjs → chunk-YFFHEYYK.mjs} +1 -1
- package/dist/chunk-YHUBO6K4.mjs +1 -0
- package/dist/{chunk-4HVQZC7R.mjs → chunk-YLV3KSNV.mjs} +1 -1
- package/dist/{chunk-2OCUKD3K.mjs → chunk-ZDOLKWQD.mjs} +1 -1
- package/dist/cli/index.js +254 -277
- package/dist/cli/index.mjs +183 -206
- package/dist/index.d.mts +4795 -1890
- package/dist/index.d.ts +4795 -1890
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-22PYMXSS.mjs +0 -1
- package/dist/chunk-52ZB3ZAG.mjs +0 -1
- package/dist/chunk-5YK2JKKH.mjs +0 -17
- package/dist/chunk-APBVAT7F.mjs +0 -1
- package/dist/chunk-EL7XOWA4.mjs +0 -1
- package/dist/chunk-GKDZ7663.mjs +0 -1
- package/dist/chunk-II74EBLQ.mjs +0 -1
- package/dist/chunk-JBAV2AQK.mjs +0 -1
- package/dist/chunk-LT2DQLXJ.mjs +0 -1
- package/dist/chunk-QUJ2IZXU.mjs +0 -1
- package/dist/chunk-WE3NRBO6.mjs +0 -1
- package/dist/chunk-YHY7Y4HD.mjs +0 -4
- package/dist/chunk-YQVQTVHK.mjs +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as o}from"./chunk-455C67EN.mjs";import{a as s,b as u,d}from"./chunk-LJNU5QHZ.mjs";var l=u(r=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.CLI_COMMANDS=void 0;r.CLI_COMMANDS={contentHash:"ecf3a148496a6e2d270fbbfea654a04cc5e5b0024ba7654387d6526157dc78d1",generatedAt:"contract-ecf3a148496a6e2d270fbbfea654a04cc5e5b0024ba7654387d6526157dc78d1",commands:[{key:"primus.actions.send",commandPath:["primus","actions","send"],opId:"POST /v1/primus/conversations/:conversationId/send",method:"POST",pattern:"/v1/primus/conversations/:conversationId/send",pathParams:[{name:"conversationGid",key:"conversationId"}],flags:[{name:"content",coerce:null,optional:!1}],scopes:["conversations:write"],idempotent:!0,isQuery:!1,summary:"Send a user message into a conversation over the customer edge."},{key:"primus.actions.testFire",commandPath:["primus","actions","testFire"],opId:"POST /v1/primus/triggers/:triggerId/test-fire",method:"POST",pattern:"/v1/primus/triggers/:triggerId/test-fire",pathParams:[{name:"triggerGid",key:"triggerId"}],flags:[],scopes:["triggers:write"],idempotent:!0,isQuery:!1,summary:"Test-fire a trigger over the customer edge."},{key:"primus.agentGoals.create",commandPath:["primus","agentGoals","create"],opId:"POST /v1/primus/agent-goals",method:"POST",pattern:"/v1/primus/agent-goals",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"name",coerce:null,optional:!1},{name:"description",coerce:null,optional:!1},{name:"priority",coerce:null,optional:!1,choices:["critical","high","medium","low"]},{name:"type",coerce:null,optional:!1,choices:["standing","milestone","recurring"]},{name:"schedule",coerce:null,optional:!0},{name:"milestones",coerce:"json",optional:!0},{name:"constraints",coerce:"json",optional:!0},{name:"boundaries",coerce:"json",optional:!0}],scopes:["agents:write"],idempotent:!0,isQuery:!1,summary:"Create an agent goal over the customer edge."},{key:"primus.agentGoals.list",commandPath:["primus","agentGoals","list"],opId:"GET /v1/primus/agent-goals",method:"GET",pattern:"/v1/primus/agent-goals",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"status",coerce:null,optional:!0,choices:["active","completed","paused","abandoned"]},{name:"limit",coerce:"number",optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"List agent goals over the customer edge."},{key:"primus.agentGoals.recordProgress",commandPath:["primus","agentGoals","recordProgress"],opId:"POST /v1/primus/agent-goals/:goalId/progress",method:"POST",pattern:"/v1/primus/agent-goals/:goalId/progress",pathParams:[{name:"goalGid",key:"goalId"}],flags:[{name:"progress",coerce:"number",optional:!1},{name:"milestoneCompleted",coerce:"number",optional:!0}],scopes:["agents:write"],idempotent:!0,isQuery:!1,summary:"Record goal progress over the customer edge."},{key:"primus.agentGoals.retrieve",commandPath:["primus","agentGoals","retrieve"],opId:"GET /v1/primus/agent-goals/:goalId",method:"GET",pattern:"/v1/primus/agent-goals/:goalId",pathParams:[{name:"goalGid",key:"goalId"}],flags:[],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"Retrieve an agent goal over the customer edge."},{key:"primus.agentGoals.setStatus",commandPath:["primus","agentGoals","setStatus"],opId:"POST /v1/primus/agent-goals/:goalId/status",method:"POST",pattern:"/v1/primus/agent-goals/:goalId/status",pathParams:[{name:"goalGid",key:"goalId"}],flags:[{name:"status",coerce:null,optional:!1,choices:["active","paused","completed","abandoned"]}],scopes:["agents:write"],idempotent:!0,isQuery:!1,summary:"Set goal status over the customer edge."},{key:"primus.agentGoals.update",commandPath:["primus","agentGoals","update"],opId:"PATCH /v1/primus/agent-goals/:goalId",method:"PATCH",pattern:"/v1/primus/agent-goals/:goalId",pathParams:[{name:"goalGid",key:"goalId"}],flags:[{name:"name",coerce:null,optional:!0},{name:"description",coerce:null,optional:!0},{name:"priority",coerce:null,optional:!0,choices:["critical","high","medium","low"]},{name:"schedule",coerce:null,optional:!0},{name:"boundaries",coerce:"json",optional:!0}],scopes:["agents:write"],idempotent:!0,isQuery:!1,summary:"Update an agent goal over the customer edge."},{key:"primus.agents.activate",commandPath:["primus","agents","activate"],opId:"POST /v1/primus/agents/:agentId/activate",method:"POST",pattern:"/v1/primus/agents/:agentId/activate",pathParams:[{name:"agentGid",key:"agentId"}],flags:[],scopes:["agents:write"],idempotent:!0,isQuery:!1,summary:"Activate an agent over the customer edge."},{key:"primus.agents.archive",commandPath:["primus","agents","archive"],opId:"POST /v1/primus/agents/:agentId/archive",method:"POST",pattern:"/v1/primus/agents/:agentId/archive",pathParams:[{name:"agentGid",key:"agentId"}],flags:[],scopes:["agents:admin"],idempotent:!0,isQuery:!1,summary:"Archive an agent over the customer edge."},{key:"primus.agents.assignSkill",commandPath:["primus","agents","assignSkill"],opId:"POST /v1/primus/agents/:agentId/skills/assign",method:"POST",pattern:"/v1/primus/agents/:agentId/skills/assign",pathParams:[{name:"agentGid",key:"agentId"}],flags:[{name:"skillGid",coerce:null,optional:!1}],scopes:["agents:write"],idempotent:!0,isQuery:!1,summary:"Assign a skill to an agent over the customer edge."},{key:"primus.agents.create",commandPath:["primus","agents","create"],opId:"POST /v1/primus/agents",method:"POST",pattern:"/v1/primus/agents",pathParams:[],flags:[{name:"name",coerce:null,optional:!1},{name:"description",coerce:null,optional:!0},{name:"systemPrompt",coerce:null,optional:!1},{name:"personality",coerce:null,optional:!0},{name:"language",coerce:null,optional:!0},{name:"skills",coerce:"json",optional:!0},{name:"slug",coerce:null,optional:!0},{name:"isDiscoverable",coerce:"boolean",optional:!0},{name:"trustLevel",coerce:null,optional:!0,choices:["restricted","standard","elevated","admin"]},{name:"defaultModel",coerce:null,optional:!0},{name:"maxTurns",coerce:"number",optional:!0}],scopes:["agents:write"],idempotent:!0,isQuery:!1,summary:"Create an agent over the customer edge."},{key:"primus.agents.invoke",commandPath:["primus","agents","invoke"],opId:"POST /v1/primus/agents/:agentId/invoke",method:"POST",pattern:"/v1/primus/agents/:agentId/invoke",pathParams:[{name:"agentGid",key:"agentId"}],flags:[{name:"input",coerce:null,optional:!1},{name:"conversationId",coerce:null,optional:!0},{name:"stream",coerce:"boolean",optional:!0},{name:"traceparent",coerce:null,optional:!0}],scopes:["agents:execute"],idempotent:!0,isQuery:!1,summary:"Invoke an agent over the customer edge (action dispatch)."},{key:"primus.agents.list",commandPath:["primus","agents","list"],opId:"GET /v1/primus/agents",method:"GET",pattern:"/v1/primus/agents",pathParams:[],flags:[{name:"activeOnly",coerce:"boolean",optional:!0},{name:"status",coerce:null,optional:!0,choices:["active","paused","archived","all"]},{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"List agents over the customer edge \u2014 newest first, one page per call (limit \u2264 200, default 200; cursor = the previous page's last gid). With no status filter the listing returns every row that is NOT archived \u2014 paused rows included; status is an exact filter: active | paused | archived, plus all for every row."},{key:"primus.agents.pause",commandPath:["primus","agents","pause"],opId:"POST /v1/primus/agents/:agentId/pause",method:"POST",pattern:"/v1/primus/agents/:agentId/pause",pathParams:[{name:"agentGid",key:"agentId"}],flags:[],scopes:["agents:write"],idempotent:!0,isQuery:!1,summary:"Pause an agent over the customer edge."},{key:"primus.agents.remove",commandPath:["primus","agents","remove"],opId:"DELETE /v1/primus/agents/:agentId",method:"DELETE",pattern:"/v1/primus/agents/:agentId",pathParams:[{name:"agentGid",key:"agentId"}],flags:[],scopes:["agents:admin"],idempotent:!0,isQuery:!1,summary:"Soft-delete an agent over the customer edge."},{key:"primus.agents.retrieve",commandPath:["primus","agents","retrieve"],opId:"GET /v1/primus/agents/:agentId",method:"GET",pattern:"/v1/primus/agents/:agentId",pathParams:[{name:"agentGid",key:"agentId"}],flags:[],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"Retrieve an agent over the customer edge."},{key:"primus.agents.run",commandPath:["primus","agents","run"],opId:"POST /v1/primus/agents/:agentId/run",method:"POST",pattern:"/v1/primus/agents/:agentId/run",pathParams:[{name:"agentGid",key:"agentId"}],flags:[{name:"input",coerce:null,optional:!1},{name:"conversationId",coerce:null,optional:!0},{name:"traceparent",coerce:null,optional:!0}],scopes:["agents:execute"],idempotent:!0,isQuery:!1,summary:"Run an agent (action dispatch) over the customer edge."},{key:"primus.agents.unassignSkill",commandPath:["primus","agents","unassignSkill"],opId:"POST /v1/primus/agents/:agentId/skills/unassign",method:"POST",pattern:"/v1/primus/agents/:agentId/skills/unassign",pathParams:[{name:"agentGid",key:"agentId"}],flags:[{name:"skillGid",coerce:null,optional:!1}],scopes:["agents:write"],idempotent:!0,isQuery:!1,summary:"Unassign a skill from an agent over the customer edge."},{key:"primus.agents.update",commandPath:["primus","agents","update"],opId:"PATCH /v1/primus/agents/:agentId",method:"PATCH",pattern:"/v1/primus/agents/:agentId",pathParams:[{name:"agentGid",key:"agentId"}],flags:[{name:"name",coerce:null,optional:!0},{name:"description",coerce:null,optional:!0},{name:"systemPrompt",coerce:null,optional:!0},{name:"personality",coerce:null,optional:!0},{name:"language",coerce:null,optional:!0},{name:"skills",coerce:"json",optional:!0},{name:"enabledIntegrations",coerce:"json",optional:!0},{name:"trustLevel",coerce:null,optional:!0,choices:["restricted","standard","elevated","admin"]},{name:"defaultModel",coerce:null,optional:!0},{name:"maxTurns",coerce:"number",optional:!0},{name:"config",coerce:"json",optional:!0},{name:"isDiscoverable",coerce:"boolean",optional:!0}],scopes:["agents:write"],idempotent:!0,isQuery:!1,summary:"Update an agent over the customer edge."},{key:"primus.approvals.approve",commandPath:["primus","approvals","approve"],opId:"POST /v1/primus/approvals/:approvalId/approve",method:"POST",pattern:"/v1/primus/approvals/:approvalId/approve",pathParams:[{name:"approvalGid",key:"approvalId"}],flags:[{name:"reason",coerce:null,optional:!0}],scopes:["approvals:write"],idempotent:!0,isQuery:!1,summary:"Approve a pending approval over the customer edge."},{key:"primus.approvals.create",commandPath:["primus","approvals","create"],opId:"POST /v1/primus/approvals",method:"POST",pattern:"/v1/primus/approvals",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"conversationId",coerce:null,optional:!0},{name:"actionType",coerce:null,optional:!1},{name:"requiredApprover",coerce:null,optional:!1,choices:["member","manager","admin"]},{name:"actionDescription",coerce:null,optional:!1},{name:"actionPayload",coerce:"json",optional:!1},{name:"riskFactors",coerce:"json",optional:!0},{name:"expiresInMs",coerce:"number",optional:!0}],scopes:["approvals:write"],idempotent:!0,isQuery:!1,summary:"Create an approval request over the customer edge."},{key:"primus.approvals.getPendingSummary",commandPath:["primus","approvals","getPendingSummary"],opId:"GET /v1/primus/approvals/pending/summary",method:"GET",pattern:"/v1/primus/approvals/pending/summary",pathParams:[],flags:[],scopes:["approvals:read"],idempotent:!1,isQuery:!0,summary:"Pending approval summary over the customer edge."},{key:"primus.approvals.list",commandPath:["primus","approvals","list"],opId:"GET /v1/primus/approvals",method:"GET",pattern:"/v1/primus/approvals",pathParams:[],flags:[{name:"status",coerce:null,optional:!0,choices:["pending","approved","rejected","expired","auto_approved"]}],scopes:["approvals:read"],idempotent:!1,isQuery:!0,summary:"List approvals over the customer edge."},{key:"primus.approvals.listByAgent",commandPath:["primus","approvals","listByAgent"],opId:"GET /v1/primus/approvals/by-agent",method:"GET",pattern:"/v1/primus/approvals/by-agent",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"pendingOnly",coerce:"boolean",optional:!0}],scopes:["approvals:read"],idempotent:!1,isQuery:!0,summary:"List an agent approvals over the customer edge."},{key:"primus.approvals.listPending",commandPath:["primus","approvals","listPending"],opId:"GET /v1/primus/approvals/pending",method:"GET",pattern:"/v1/primus/approvals/pending",pathParams:[],flags:[],scopes:["approvals:read"],idempotent:!1,isQuery:!0,summary:"List pending approvals over the customer edge."},{key:"primus.approvals.pendingCount",commandPath:["primus","approvals","pendingCount"],opId:"GET /v1/primus/approvals/pending/count",method:"GET",pattern:"/v1/primus/approvals/pending/count",pathParams:[],flags:[],scopes:["approvals:read"],idempotent:!1,isQuery:!0,summary:"Pending approval count over the customer edge."},{key:"primus.approvals.reject",commandPath:["primus","approvals","reject"],opId:"POST /v1/primus/approvals/:approvalId/reject",method:"POST",pattern:"/v1/primus/approvals/:approvalId/reject",pathParams:[{name:"approvalGid",key:"approvalId"}],flags:[{name:"reason",coerce:null,optional:!0}],scopes:["approvals:write"],idempotent:!0,isQuery:!1,summary:"Reject a pending approval over the customer edge."},{key:"primus.approvals.retrieve",commandPath:["primus","approvals","retrieve"],opId:"GET /v1/primus/approvals/:approvalId",method:"GET",pattern:"/v1/primus/approvals/:approvalId",pathParams:[{name:"approvalGid",key:"approvalId"}],flags:[],scopes:["approvals:read"],idempotent:!1,isQuery:!0,summary:"Retrieve an approval over the customer edge."},{key:"primus.brainConfig.configure",commandPath:["primus","brainConfig","configure"],opId:"PUT /v1/primus/brain/config",method:"PUT",pattern:"/v1/primus/brain/config",pathParams:[],flags:[{name:"mode",coerce:null,optional:!1,choices:["managed","byok"]},{name:"providers",coerce:"json",optional:!1},{name:"routing",coerce:null,optional:!1,choices:["cost-optimized","latency-optimized","quality-optimized","compliance"]},{name:"defaultProvider",coerce:null,optional:!0},{name:"defaultModel",coerce:null,optional:!0},{name:"tokenBudget",coerce:"json",optional:!0}],scopes:["brain:write"],idempotent:!0,isQuery:!1,summary:"Configure the brain over the customer edge."},{key:"primus.brainConfig.deleteConfig",commandPath:["primus","brainConfig","deleteConfig"],opId:"DELETE /v1/primus/brain/config",method:"DELETE",pattern:"/v1/primus/brain/config",pathParams:[],flags:[],scopes:["brain:admin"],idempotent:!0,isQuery:!1,summary:"Delete brain config over the customer edge."},{key:"primus.brainConfig.getConfig",commandPath:["primus","brainConfig","getConfig"],opId:"GET /v1/primus/brain/config",method:"GET",pattern:"/v1/primus/brain/config",pathParams:[],flags:[],scopes:["brain:read"],idempotent:!1,isQuery:!0,summary:"Get brain config over the customer edge."},{key:"primus.brainConfig.getLlmDashboard",commandPath:["primus","brainConfig","getLlmDashboard"],opId:"GET /v1/primus/brain/llm-dashboard",method:"GET",pattern:"/v1/primus/brain/llm-dashboard",pathParams:[],flags:[],scopes:["brain:read"],idempotent:!1,isQuery:!0,summary:"LLM dashboard over the customer edge."},{key:"primus.brainConfig.getUsageDashboard",commandPath:["primus","brainConfig","getUsageDashboard"],opId:"GET /v1/primus/brain/usage-dashboard",method:"GET",pattern:"/v1/primus/brain/usage-dashboard",pathParams:[],flags:[{name:"range",coerce:null,optional:!0,choices:["7d","30d","90d"]}],scopes:["brain:read"],idempotent:!1,isQuery:!0,summary:"Brain usage dashboard over the customer edge."},{key:"primus.brainConfig.listProviderModels",commandPath:["primus","brainConfig","listProviderModels"],opId:"POST /v1/primus/brain/provider-models",method:"POST",pattern:"/v1/primus/brain/provider-models",pathParams:[],flags:[{name:"provider",coerce:null,optional:!1}],scopes:["brain:read"],idempotent:!1,isQuery:!1,summary:"List a provider's callable models (live) over the customer edge."},{key:"primus.brainConfig.storeProviderKey",commandPath:["primus","brainConfig","storeProviderKey"],opId:"POST /v1/primus/brain/provider-keys",method:"POST",pattern:"/v1/primus/brain/provider-keys",pathParams:[],flags:[{name:"provider",coerce:null,optional:!1},{name:"apiKey",coerce:null,optional:!1}],scopes:["brain:write"],idempotent:!0,isQuery:!1,summary:"Store an LLM provider key (action) over the customer edge."},{key:"primus.brainModels.list",commandPath:["primus","brainModels","list"],opId:"GET /v1/primus/brain/models",method:"GET",pattern:"/v1/primus/brain/models",pathParams:[],flags:[{name:"provider",coerce:null,optional:!0}],scopes:["brain:read"],idempotent:!0,isQuery:!0,summary:"List the tenant's persisted provider-models catalog with per-provider sync state (no live provider call)."},{key:"primus.brainModels.refresh",commandPath:["primus","brainModels","refresh"],opId:"POST /v1/primus/brain/models/refresh",method:"POST",pattern:"/v1/primus/brain/models/refresh",pathParams:[],flags:[{name:"provider",coerce:null,optional:!0}],scopes:["brain:write"],idempotent:!1,isQuery:!1,summary:"Durably re-sync the persisted models catalog from the providers' live APIs (retrier-backed; outcome lands on the catalog state)."},{key:"primus.configPromotion.applyConfigBundle",commandPath:["primus","configPromotion","applyConfigBundle"],opId:"POST /v1/primus/config/apply",method:"POST",pattern:"/v1/primus/config/apply",pathParams:[],flags:[{name:"data",coerce:"json",optional:!1}],scopes:["agents:admin"],idempotent:!1,isQuery:!1,summary:"Apply a promotion bundle onto the caller's (app, environment) \u2014 idempotent on natural keys, fail-closed on missing parents."},{key:"primus.configPromotion.exportConfig",commandPath:["primus","configPromotion","exportConfig"],opId:"GET /v1/primus/config/export",method:"GET",pattern:"/v1/primus/config/export",pathParams:[],flags:[],scopes:["agents:admin"],idempotent:!1,isQuery:!0,summary:"Export the (app, environment) config snapshot for promotion \u2014 every secret-bearing field stripped."},{key:"primus.conversations.archive",commandPath:["primus","conversations","archive"],opId:"POST /v1/primus/conversations/:conversationId/archive",method:"POST",pattern:"/v1/primus/conversations/:conversationId/archive",pathParams:[{name:"conversationGid",key:"conversationId"}],flags:[],scopes:["conversations:admin"],idempotent:!0,isQuery:!1,summary:"Archive a conversation over the customer edge."},{key:"primus.conversations.create",commandPath:["primus","conversations","create"],opId:"POST /v1/primus/conversations",method:"POST",pattern:"/v1/primus/conversations",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"title",coerce:null,optional:!0}],scopes:["conversations:write"],idempotent:!0,isQuery:!1,summary:"Create a conversation over the customer edge."},{key:"primus.conversations.getWithMessages",commandPath:["primus","conversations","getWithMessages"],opId:"GET /v1/primus/conversations/:conversationId/messages",method:"GET",pattern:"/v1/primus/conversations/:conversationId/messages",pathParams:[{name:"conversationGid",key:"conversationId"}],flags:[{name:"messageLimit",coerce:"number",optional:!0}],scopes:["conversations:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a conversation with messages over the customer edge."},{key:"primus.conversations.list",commandPath:["primus","conversations","list"],opId:"GET /v1/primus/conversations",method:"GET",pattern:"/v1/primus/conversations",pathParams:[],flags:[{name:"status",coerce:null,optional:!0,choices:["active","archived","deleted"]},{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0}],scopes:["conversations:read"],idempotent:!1,isQuery:!0,summary:"List conversations over the customer edge."},{key:"primus.conversations.listByAgent",commandPath:["primus","conversations","listByAgent"],opId:"GET /v1/primus/conversations/by-agent",method:"GET",pattern:"/v1/primus/conversations/by-agent",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"includeArchived",coerce:"boolean",optional:!0}],scopes:["conversations:read"],idempotent:!1,isQuery:!0,summary:"List an agent's conversations over the customer edge."},{key:"primus.conversations.listWithStats",commandPath:["primus","conversations","listWithStats"],opId:"GET /v1/primus/conversations/stats",method:"GET",pattern:"/v1/primus/conversations/stats",pathParams:[],flags:[{name:"status",coerce:null,optional:!0,choices:["active","archived","deleted"]},{name:"limit",coerce:"number",optional:!0}],scopes:["conversations:read"],idempotent:!1,isQuery:!0,summary:"List conversations with stats over the customer edge."},{key:"primus.conversations.remove",commandPath:["primus","conversations","remove"],opId:"DELETE /v1/primus/conversations/:conversationId",method:"DELETE",pattern:"/v1/primus/conversations/:conversationId",pathParams:[{name:"conversationGid",key:"conversationId"}],flags:[],scopes:["conversations:admin"],idempotent:!0,isQuery:!1,summary:"Delete a conversation over the customer edge."},{key:"primus.conversations.retrieve",commandPath:["primus","conversations","retrieve"],opId:"GET /v1/primus/conversations/:conversationId",method:"GET",pattern:"/v1/primus/conversations/:conversationId",pathParams:[{name:"conversationGid",key:"conversationId"}],flags:[],scopes:["conversations:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a conversation over the customer edge."},{key:"primus.conversations.update",commandPath:["primus","conversations","update"],opId:"PATCH /v1/primus/conversations/:conversationId",method:"PATCH",pattern:"/v1/primus/conversations/:conversationId",pathParams:[{name:"conversationGid",key:"conversationId"}],flags:[{name:"title",coerce:null,optional:!0},{name:"summary",coerce:null,optional:!0}],scopes:["conversations:write"],idempotent:!0,isQuery:!1,summary:"Update a conversation over the customer edge."},{key:"primus.delegations.listByDelegate",commandPath:["primus","delegations","listByDelegate"],opId:"GET /v1/primus/delegations/by-delegate",method:"GET",pattern:"/v1/primus/delegations/by-delegate",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"limit",coerce:"number",optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"List delegations by delegate over the customer edge."},{key:"primus.delegations.listByDelegator",commandPath:["primus","delegations","listByDelegator"],opId:"GET /v1/primus/delegations/by-delegator",method:"GET",pattern:"/v1/primus/delegations/by-delegator",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"limit",coerce:"number",optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"List delegations by delegator over the customer edge."},{key:"primus.delegations.listByTeam",commandPath:["primus","delegations","listByTeam"],opId:"GET /v1/primus/delegations/by-team",method:"GET",pattern:"/v1/primus/delegations/by-team",pathParams:[],flags:[{name:"teamGid",coerce:null,optional:!1},{name:"limit",coerce:"number",optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"List delegations by team over the customer edge."},{key:"primus.entitlements.retrieve",commandPath:["primus","entitlements","retrieve"],opId:"GET /v1/primus/entitlements",method:"GET",pattern:"/v1/primus/entitlements",pathParams:[],flags:[],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"The caller's plan tier, capabilities, and limits+usage."},{key:"primus.execution.approve",commandPath:["primus","execution","approve"],opId:"POST /v1/primus/executions/:executionId/approve",method:"POST",pattern:"/v1/primus/executions/:executionId/approve",pathParams:[{name:"executionGid",key:"executionId"}],flags:[],scopes:["executions:admin"],idempotent:!0,isQuery:!1,summary:"Approve a pending execution over the customer edge."},{key:"primus.execution.cancel",commandPath:["primus","execution","cancel"],opId:"POST /v1/primus/executions/:executionId/cancel",method:"POST",pattern:"/v1/primus/executions/:executionId/cancel",pathParams:[{name:"executionGid",key:"executionId"}],flags:[{name:"reason",coerce:null,optional:!0}],scopes:["executions:execute"],idempotent:!0,isQuery:!1,summary:"Cancel an execution over the customer edge."},{key:"primus.execution.create",commandPath:["primus","execution","create"],opId:"POST /v1/primus/executions",method:"POST",pattern:"/v1/primus/executions",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"conversationGid",coerce:null,optional:!0},{name:"toolName",coerce:null,optional:!1},{name:"arguments",coerce:"json",optional:!1},{name:"priority",coerce:null,optional:!0,choices:["low","normal","high","urgent"]},{name:"parentExecutionGid",coerce:null,optional:!0},{name:"triggerType",coerce:null,optional:!0,choices:["user","agent","trigger","proactive"]},{name:"triggerSource",coerce:null,optional:!0}],scopes:["executions:execute"],idempotent:!0,isQuery:!1,summary:"Create an execution over the customer edge."},{key:"primus.execution.createBatch",commandPath:["primus","execution","createBatch"],opId:"POST /v1/primus/executions/batch",method:"POST",pattern:"/v1/primus/executions/batch",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"conversationGid",coerce:null,optional:!0},{name:"executions",coerce:"json",optional:!1},{name:"parallel",coerce:"boolean",optional:!0}],scopes:["executions:execute"],idempotent:!0,isQuery:!1,summary:"Create an execution batch over the customer edge."},{key:"primus.execution.getDetails",commandPath:["primus","execution","getDetails"],opId:"GET /v1/primus/executions/:executionId/details",method:"GET",pattern:"/v1/primus/executions/:executionId/details",pathParams:[{name:"executionGid",key:"executionId"}],flags:[],scopes:["executions:read"],idempotent:!1,isQuery:!0,summary:"Execution details over the customer edge."},{key:"primus.execution.getPendingApprovals",commandPath:["primus","execution","getPendingApprovals"],opId:"GET /v1/primus/executions/pending-approvals",method:"GET",pattern:"/v1/primus/executions/pending-approvals",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!0}],scopes:["executions:read"],idempotent:!1,isQuery:!0,summary:"Pending approvals over the customer edge."},{key:"primus.execution.getStats",commandPath:["primus","execution","getStats"],opId:"GET /v1/primus/executions/stats",method:"GET",pattern:"/v1/primus/executions/stats",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!0},{name:"timeRange",coerce:"number",optional:!0}],scopes:["executions:read"],idempotent:!1,isQuery:!0,summary:"Execution stats over the customer edge."},{key:"primus.execution.list",commandPath:["primus","execution","list"],opId:"GET /v1/primus/executions",method:"GET",pattern:"/v1/primus/executions",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!0},{name:"status",coerce:null,optional:!0},{name:"includeLeadRuns",coerce:"boolean",optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["executions:read"],idempotent:!1,isQuery:!0,summary:"List executions over the customer edge."},{key:"primus.execution.listByAgent",commandPath:["primus","execution","listByAgent"],opId:"GET /v1/primus/executions/by-agent",method:"GET",pattern:"/v1/primus/executions/by-agent",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"status",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["executions:read"],idempotent:!1,isQuery:!0,summary:"List an agent executions over the customer edge."},{key:"primus.execution.listByConversation",commandPath:["primus","execution","listByConversation"],opId:"GET /v1/primus/executions/by-conversation",method:"GET",pattern:"/v1/primus/executions/by-conversation",pathParams:[],flags:[{name:"conversationGid",coerce:null,optional:!1},{name:"limit",coerce:"number",optional:!0}],scopes:["executions:read"],idempotent:!1,isQuery:!0,summary:"List a conversation executions over the customer edge."},{key:"primus.execution.reject",commandPath:["primus","execution","reject"],opId:"POST /v1/primus/executions/:executionId/reject",method:"POST",pattern:"/v1/primus/executions/:executionId/reject",pathParams:[{name:"executionGid",key:"executionId"}],flags:[{name:"reason",coerce:null,optional:!0}],scopes:["executions:admin"],idempotent:!0,isQuery:!1,summary:"Reject a pending execution over the customer edge."},{key:"primus.execution.retrieve",commandPath:["primus","execution","retrieve"],opId:"GET /v1/primus/executions/:executionId",method:"GET",pattern:"/v1/primus/executions/:executionId",pathParams:[{name:"executionGid",key:"executionId"}],flags:[],scopes:["executions:read"],idempotent:!1,isQuery:!0,summary:"Retrieve an execution over the customer edge."},{key:"primus.execution.streamEvents",commandPath:["primus","execution","streamEvents"],opId:"GET /v1/primus/executions/:executionId/events",method:"GET",pattern:"/v1/primus/executions/:executionId/events",pathParams:[{name:"executionGid",key:"executionId"}],flags:[{name:"afterSequence",coerce:"number",optional:!0}],scopes:["executions:read"],idempotent:!1,isQuery:!0,summary:"Execution stream events over the customer edge."},{key:"primus.execution.traces",commandPath:["primus","execution","traces"],opId:"GET /v1/primus/executions/:executionId/traces",method:"GET",pattern:"/v1/primus/executions/:executionId/traces",pathParams:[{name:"executionGid",key:"executionId"}],flags:[],scopes:["executions:read"],idempotent:!1,isQuery:!0,summary:"Execution traces over the customer edge."},{key:"primus.guardrailOutcomes.list",commandPath:["primus","guardrailOutcomes","list"],opId:"GET /v1/primus/guardrails/outcomes",method:"GET",pattern:"/v1/primus/guardrails/outcomes",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["guardrails:read"],idempotent:!1,isQuery:!0,summary:"List what your guardrails blocked or stopped, newest first."},{key:"primus.guardrailOutcomes.retrieve",commandPath:["primus","guardrailOutcomes","retrieve"],opId:"GET /v1/primus/guardrails/outcomes/:outcomeId",method:"GET",pattern:"/v1/primus/guardrails/outcomes/:outcomeId",pathParams:[{name:"outcomeGid",key:"outcomeId"}],flags:[],scopes:["guardrails:read"],idempotent:!1,isQuery:!0,summary:"Retrieve one guardrail outcome by its reference."},{key:"primus.integrations.connect",commandPath:["primus","integrations","connect"],opId:"POST /v1/primus/integrations/connect",method:"POST",pattern:"/v1/primus/integrations/connect",pathParams:[],flags:[{name:"provider",coerce:null,optional:!1,choices:["google","microsoft","slack","github","npayload","custom"]},{name:"authCode",coerce:null,optional:!1},{name:"redirectUri",coerce:null,optional:!1},{name:"scopes",coerce:"json",optional:!1},{name:"name",coerce:null,optional:!0}],scopes:["connections:write"],idempotent:!1,isQuery:!1,summary:"Connect a third-party integration for the caller's app + environment (OAuth code exchange completes asynchronously; tokens land in the vault only)."},{key:"primus.integrations.disconnect",commandPath:["primus","integrations","disconnect"],opId:"POST /v1/primus/integrations/:connectionId/disconnect",method:"POST",pattern:"/v1/primus/integrations/:connectionId/disconnect",pathParams:[{name:"connectionGid",key:"connectionId"}],flags:[],scopes:["connections:write"],idempotent:!1,isQuery:!1,summary:"Disconnect one integration connection (revoked; its stored credentials are deleted)."},{key:"primus.integrations.list",commandPath:["primus","integrations","list"],opId:"GET /v1/primus/integrations",method:"GET",pattern:"/v1/primus/integrations",pathParams:[],flags:[{name:"status",coerce:null,optional:!0,choices:["active","expired","revoked"]},{name:"activeOnly",coerce:"boolean",optional:!0}],scopes:["connections:read"],idempotent:!1,isQuery:!0,summary:"List the caller's integration connections (no token material)."},{key:"primus.integrations.refresh",commandPath:["primus","integrations","refresh"],opId:"POST /v1/primus/integrations/:connectionId/refresh",method:"POST",pattern:"/v1/primus/integrations/:connectionId/refresh",pathParams:[{name:"connectionGid",key:"connectionId"}],flags:[],scopes:["connections:write"],idempotent:!1,isQuery:!1,summary:"Schedule a token refresh for one connection \u2014 honours the provider's rotation, retries transient failures."},{key:"primus.integrations.retrieve",commandPath:["primus","integrations","retrieve"],opId:"GET /v1/primus/integrations/:connectionId",method:"GET",pattern:"/v1/primus/integrations/:connectionId",pathParams:[{name:"connectionGid",key:"connectionId"}],flags:[],scopes:["connections:read"],idempotent:!1,isQuery:!0,summary:"Retrieve one integration connection by gid (no token material)."},{key:"primus.killSwitch.activate",commandPath:["primus","killSwitch","activate"],opId:"POST /v1/primus/kill-switch/activate",method:"POST",pattern:"/v1/primus/kill-switch/activate",pathParams:[],flags:[{name:"level",coerce:null,optional:!1,choices:["owner","agent"]},{name:"targetAgentGid",coerce:null,optional:!0},{name:"reason",coerce:null,optional:!1},{name:"threatLevel",coerce:null,optional:!1,choices:["low","medium","high","critical"]},{name:"autoResumeAt",coerce:"number",optional:!0}],scopes:["guardrails:admin"],idempotent:!0,isQuery:!1,summary:"Turn on a kill switch for your organization (level owner) or one agent (level agent)."},{key:"primus.killSwitch.checkBlocking",commandPath:["primus","killSwitch","checkBlocking"],opId:"GET /v1/primus/kill-switch/check",method:"GET",pattern:"/v1/primus/kill-switch/check",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1}],scopes:["guardrails:read"],idempotent:!1,isQuery:!0,summary:"Kill-switch blocking check over the customer edge."},{key:"primus.killSwitch.deactivate",commandPath:["primus","killSwitch","deactivate"],opId:"POST /v1/primus/kill-switch/deactivate",method:"POST",pattern:"/v1/primus/kill-switch/deactivate",pathParams:[],flags:[{name:"killSwitchGid",coerce:null,optional:!1},{name:"resolutionNotes",coerce:null,optional:!0}],scopes:["guardrails:admin"],idempotent:!0,isQuery:!1,summary:"Deactivate a kill switch over the customer edge."},{key:"primus.killSwitch.list",commandPath:["primus","killSwitch","list"],opId:"GET /v1/primus/kill-switch",method:"GET",pattern:"/v1/primus/kill-switch",pathParams:[],flags:[{name:"level",coerce:null,optional:!0},{name:"agentGid",coerce:null,optional:!0}],scopes:["guardrails:read"],idempotent:!1,isQuery:!0,summary:"List kill switches over the customer edge."},{key:"primus.killSwitch.listActive",commandPath:["primus","killSwitch","listActive"],opId:"GET /v1/primus/kill-switch/active",method:"GET",pattern:"/v1/primus/kill-switch/active",pathParams:[],flags:[],scopes:["guardrails:read"],idempotent:!1,isQuery:!0,summary:"Active kill switches over the customer edge."},{key:"primus.killSwitch.retrieve",commandPath:["primus","killSwitch","retrieve"],opId:"GET /v1/primus/kill-switch/:killSwitchId",method:"GET",pattern:"/v1/primus/kill-switch/:killSwitchId",pathParams:[{name:"killSwitchGid",key:"killSwitchId"}],flags:[],scopes:["guardrails:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a kill switch over the customer edge."},{key:"primus.killSwitch.status",commandPath:["primus","killSwitch","status"],opId:"GET /v1/primus/kill-switch/status",method:"GET",pattern:"/v1/primus/kill-switch/status",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!0}],scopes:["guardrails:read"],idempotent:!1,isQuery:!0,summary:"Kill-switch status over the customer edge."},{key:"primus.learning.decideProactiveAction",commandPath:["primus","learning","decideProactiveAction"],opId:"POST /v1/primus/learning/proactive-actions/decide",method:"POST",pattern:"/v1/primus/learning/proactive-actions/decide",pathParams:[],flags:[{name:"actionGid",coerce:null,optional:!1},{name:"decision",coerce:null,optional:!1,choices:["approve","reject","modify"]},{name:"modification",coerce:null,optional:!0}],scopes:["agents:write"],idempotent:!0,isQuery:!1,summary:"Decide a proactive action over the customer edge."},{key:"primus.learning.listFeedback",commandPath:["primus","learning","listFeedback"],opId:"GET /v1/primus/learning/feedback",method:"GET",pattern:"/v1/primus/learning/feedback",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"List feedback over the customer edge."},{key:"primus.learning.listFeedbackByAgent",commandPath:["primus","learning","listFeedbackByAgent"],opId:"GET /v1/primus/learning/feedback/by-agent",method:"GET",pattern:"/v1/primus/learning/feedback/by-agent",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"timeRange",coerce:"number",optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"List an agent feedback over the customer edge."},{key:"primus.learning.listPatterns",commandPath:["primus","learning","listPatterns"],opId:"GET /v1/primus/learning/patterns",method:"GET",pattern:"/v1/primus/learning/patterns",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!0},{name:"type",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"List learning patterns over the customer edge."},{key:"primus.learning.listPatternsByAgent",commandPath:["primus","learning","listPatternsByAgent"],opId:"GET /v1/primus/learning/patterns/by-agent",method:"GET",pattern:"/v1/primus/learning/patterns/by-agent",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"timeRange",coerce:"number",optional:!0},{name:"type",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"List an agent patterns over the customer edge."},{key:"primus.learning.listPredictions",commandPath:["primus","learning","listPredictions"],opId:"GET /v1/primus/learning/predictions",method:"GET",pattern:"/v1/primus/learning/predictions",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"status",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"List predictions over the customer edge."},{key:"primus.learning.listProactiveActions",commandPath:["primus","learning","listProactiveActions"],opId:"GET /v1/primus/learning/proactive-actions",method:"GET",pattern:"/v1/primus/learning/proactive-actions",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"status",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"List proactive actions over the customer edge."},{key:"primus.learning.setPatternActive",commandPath:["primus","learning","setPatternActive"],opId:"POST /v1/primus/learning/patterns/set-active",method:"POST",pattern:"/v1/primus/learning/patterns/set-active",pathParams:[],flags:[{name:"patternGid",coerce:null,optional:!1},{name:"isActive",coerce:"boolean",optional:!1}],scopes:["agents:write"],idempotent:!0,isQuery:!1,summary:"Set a pattern active over the customer edge."},{key:"primus.learning.submitFeedback",commandPath:["primus","learning","submitFeedback"],opId:"POST /v1/primus/learning/feedback",method:"POST",pattern:"/v1/primus/learning/feedback",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"type",coerce:null,optional:!1,choices:["explicit","implicit","correction"]},{name:"sentiment",coerce:null,optional:!1,choices:["positive","negative","neutral"]},{name:"rating",coerce:"number",optional:!0},{name:"comment",coerce:null,optional:!0},{name:"correction",coerce:null,optional:!0},{name:"conversationGid",coerce:null,optional:!0},{name:"executionGid",coerce:null,optional:!0},{name:"messageGid",coerce:null,optional:!0},{name:"metadata",coerce:"json",optional:!0}],scopes:["agents:write"],idempotent:!0,isQuery:!1,summary:"Submit feedback over the customer edge."},{key:"primus.mcpConnect.beginConnect",commandPath:["primus","mcpConnect","beginConnect"],opId:"POST /v1/primus/mcp-servers/:mcpServerId/connect/begin",method:"POST",pattern:"/v1/primus/mcp-servers/:mcpServerId/connect/begin",pathParams:[{name:"mcpServerGid",key:"mcpServerId"}],flags:[],scopes:["connections:write"],idempotent:!1,isQuery:!1,summary:"Begin an end-user MCP connection \u2014 returns the authorize URL the component opens."},{key:"primus.mcpConnect.listConnections",commandPath:["primus","mcpConnect","listConnections"],opId:"GET /v1/primus/mcp-connections",method:"GET",pattern:"/v1/primus/mcp-connections",pathParams:[],flags:[],scopes:["connections:read"],idempotent:!1,isQuery:!0,summary:"List the calling end user's own MCP connections."},{key:"primus.mcpConnect.revokeConnection",commandPath:["primus","mcpConnect","revokeConnection"],opId:"POST /v1/primus/mcp-connections/:credentialId/revoke",method:"POST",pattern:"/v1/primus/mcp-connections/:credentialId/revoke",pathParams:[{name:"credentialGid",key:"credentialId"}],flags:[],scopes:["connections:write"],idempotent:!0,isQuery:!1,summary:"Revoke the calling end user's own MCP connection."},{key:"primus.mcpOauth.beginOauth",commandPath:["primus","mcpOauth","beginOauth"],opId:"POST /v1/primus/mcp-servers/:mcpServerId/oauth/begin",method:"POST",pattern:"/v1/primus/mcp-servers/:mcpServerId/oauth/begin",pathParams:[{name:"mcpServerGid",key:"mcpServerId"}],flags:[],scopes:["tools:write"],idempotent:!1,isQuery:!1,summary:"Begin connector OAuth for an outbound MCP server \u2014 returns the authorize URL the browser opens."},{key:"primus.mcpOauth.setPreregisteredClient",commandPath:["primus","mcpOauth","setPreregisteredClient"],opId:"POST /v1/primus/mcp-servers/:mcpServerId/oauth/client",method:"POST",pattern:"/v1/primus/mcp-servers/:mcpServerId/oauth/client",pathParams:[{name:"mcpServerGid",key:"mcpServerId"}],flags:[{name:"clientId",coerce:null,optional:!1},{name:"clientSecret",coerce:null,optional:!0}],scopes:["tools:admin"],idempotent:!0,isQuery:!1,summary:"Register an out-of-band OAuth client for an outbound MCP server (operator-supplied client_id + optional secret)."},{key:"primus.mcpServers.connect",commandPath:["primus","mcpServers","connect"],opId:"POST /v1/primus/mcp-servers",method:"POST",pattern:"/v1/primus/mcp-servers",pathParams:[],flags:[{name:"serverUrl",coerce:null,optional:!1},{name:"name",coerce:null,optional:!1},{name:"description",coerce:null,optional:!0},{name:"authMethod",coerce:null,optional:!1,choices:["none","bearer","oauth"]},{name:"authToken",coerce:null,optional:!0},{name:"credentialScope",coerce:null,optional:!0,choices:["shared","per_tenant"]}],scopes:["tools:write"],idempotent:!0,isQuery:!1,summary:"Connect an MCP server (action) over the customer edge."},{key:"primus.mcpServers.disconnect",commandPath:["primus","mcpServers","disconnect"],opId:"POST /v1/primus/mcp-servers/:mcpServerId/disconnect",method:"POST",pattern:"/v1/primus/mcp-servers/:mcpServerId/disconnect",pathParams:[{name:"mcpServerGid",key:"mcpServerId"}],flags:[],scopes:["tools:admin"],idempotent:!0,isQuery:!1,summary:"Disconnect an MCP server (action) over the customer edge."},{key:"primus.mcpServers.list",commandPath:["primus","mcpServers","list"],opId:"GET /v1/primus/mcp-servers",method:"GET",pattern:"/v1/primus/mcp-servers",pathParams:[],flags:[],scopes:["tools:read"],idempotent:!1,isQuery:!0,summary:"List MCP servers over the customer edge."},{key:"primus.mcpServers.reconnect",commandPath:["primus","mcpServers","reconnect"],opId:"POST /v1/primus/mcp-servers/:mcpServerId/reconnect",method:"POST",pattern:"/v1/primus/mcp-servers/:mcpServerId/reconnect",pathParams:[{name:"mcpServerGid",key:"mcpServerId"}],flags:[],scopes:["tools:write"],idempotent:!0,isQuery:!1,summary:"Reconnect an MCP server (action) over the customer edge."},{key:"primus.mcpServers.rename",commandPath:["primus","mcpServers","rename"],opId:"POST /v1/primus/mcp-servers/:mcpServerId/rename",method:"POST",pattern:"/v1/primus/mcp-servers/:mcpServerId/rename",pathParams:[{name:"mcpServerGid",key:"mcpServerId"}],flags:[{name:"name",coerce:null,optional:!1}],scopes:["tools:write"],idempotent:!0,isQuery:!1,summary:"Rename an MCP server (action) over the customer edge."},{key:"primus.mcpServers.retrieve",commandPath:["primus","mcpServers","retrieve"],opId:"GET /v1/primus/mcp-servers/:mcpServerId",method:"GET",pattern:"/v1/primus/mcp-servers/:mcpServerId",pathParams:[{name:"mcpServerGid",key:"mcpServerId"}],flags:[],scopes:["tools:read"],idempotent:!1,isQuery:!0,summary:"Retrieve an MCP server over the customer edge."},{key:"primus.mcpServers.rotateAuth",commandPath:["primus","mcpServers","rotateAuth"],opId:"POST /v1/primus/mcp-servers/:mcpServerId/rotate-auth",method:"POST",pattern:"/v1/primus/mcp-servers/:mcpServerId/rotate-auth",pathParams:[{name:"mcpServerGid",key:"mcpServerId"}],flags:[{name:"authToken",coerce:null,optional:!1}],scopes:["tools:admin"],idempotent:!0,isQuery:!1,summary:"Rotate MCP server auth (action) over the customer edge."},{key:"primus.mcpServers.test",commandPath:["primus","mcpServers","test"],opId:"POST /v1/primus/mcp-servers/test",method:"POST",pattern:"/v1/primus/mcp-servers/test",pathParams:[],flags:[{name:"serverUrl",coerce:null,optional:!1},{name:"authMethod",coerce:null,optional:!1,choices:["none","bearer","oauth"]},{name:"authToken",coerce:null,optional:!0}],scopes:["tools:write"],idempotent:!0,isQuery:!1,summary:"Test an MCP server (action) over the customer edge."},{key:"primus.memories.create",commandPath:["primus","memories","create"],opId:"POST /v1/primus/memory",method:"POST",pattern:"/v1/primus/memory",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"conversationGid",coerce:null,optional:!0},{name:"type",coerce:null,optional:!1,choices:["working","session","long_term","shared"]},{name:"key",coerce:null,optional:!1},{name:"content",coerce:null,optional:!1},{name:"embedding",coerce:"json",optional:!0},{name:"importance",coerce:"number",optional:!0},{name:"isEncrypted",coerce:"boolean",optional:!0},{name:"vaultSecretId",coerce:null,optional:!0},{name:"expiresAt",coerce:"number",optional:!0},{name:"scope",coerce:null,optional:!1},{name:"teamId",coerce:null,optional:!0}],scopes:["memory:write"],idempotent:!0,isQuery:!1,summary:"Create a memory over the customer edge."},{key:"primus.memories.list",commandPath:["primus","memories","list"],opId:"GET /v1/primus/memory",method:"GET",pattern:"/v1/primus/memory",pathParams:[],flags:[{name:"type",coerce:null,optional:!0,choices:["working","session","long_term","shared"]},{name:"limit",coerce:"number",optional:!0}],scopes:["memory:read"],idempotent:!1,isQuery:!0,summary:"List memories over the customer edge."},{key:"primus.memories.listByAgent",commandPath:["primus","memories","listByAgent"],opId:"GET /v1/primus/memory/by-agent",method:"GET",pattern:"/v1/primus/memory/by-agent",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"type",coerce:null,optional:!0,choices:["working","session","long_term","shared"]},{name:"limit",coerce:"number",optional:!0}],scopes:["memory:read"],idempotent:!1,isQuery:!0,summary:"List an agent memories over the customer edge."},{key:"primus.memories.listByConversation",commandPath:["primus","memories","listByConversation"],opId:"GET /v1/primus/memory/by-conversation",method:"GET",pattern:"/v1/primus/memory/by-conversation",pathParams:[],flags:[{name:"conversationGid",coerce:null,optional:!1}],scopes:["memory:read"],idempotent:!1,isQuery:!0,summary:"List a conversation memories over the customer edge."},{key:"primus.memories.listQuarantined",commandPath:["primus","memories","listQuarantined"],opId:"GET /v1/primus/memory/quarantined",method:"GET",pattern:"/v1/primus/memory/quarantined",pathParams:[],flags:[],scopes:["memory:read"],idempotent:!1,isQuery:!0,summary:"List quarantined memories over the customer edge."},{key:"primus.memories.quarantine",commandPath:["primus","memories","quarantine"],opId:"POST /v1/primus/memory/:memoryId/quarantine",method:"POST",pattern:"/v1/primus/memory/:memoryId/quarantine",pathParams:[{name:"memoryGid",key:"memoryId"}],flags:[{name:"reason",coerce:null,optional:!1}],scopes:["memory:write"],idempotent:!0,isQuery:!1,summary:"Quarantine a memory over the customer edge."},{key:"primus.memories.remove",commandPath:["primus","memories","remove"],opId:"DELETE /v1/primus/memory/:memoryId",method:"DELETE",pattern:"/v1/primus/memory/:memoryId",pathParams:[{name:"memoryGid",key:"memoryId"}],flags:[],scopes:["memory:admin"],idempotent:!0,isQuery:!1,summary:"Delete a memory over the customer edge."},{key:"primus.memories.retrieve",commandPath:["primus","memories","retrieve"],opId:"GET /v1/primus/memory/:memoryId",method:"GET",pattern:"/v1/primus/memory/:memoryId",pathParams:[{name:"memoryGid",key:"memoryId"}],flags:[],scopes:["memory:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a memory over the customer edge."},{key:"primus.memories.unquarantine",commandPath:["primus","memories","unquarantine"],opId:"POST /v1/primus/memory/:memoryId/unquarantine",method:"POST",pattern:"/v1/primus/memory/:memoryId/unquarantine",pathParams:[{name:"memoryGid",key:"memoryId"}],flags:[],scopes:["memory:write"],idempotent:!0,isQuery:!1,summary:"Unquarantine a memory over the customer edge."},{key:"primus.memories.update",commandPath:["primus","memories","update"],opId:"PATCH /v1/primus/memory/:memoryId",method:"PATCH",pattern:"/v1/primus/memory/:memoryId",pathParams:[{name:"memoryGid",key:"memoryId"}],flags:[{name:"content",coerce:null,optional:!0},{name:"embedding",coerce:"json",optional:!0},{name:"importance",coerce:"number",optional:!0},{name:"expiresAt",coerce:"number",optional:!0}],scopes:["memory:write"],idempotent:!0,isQuery:!1,summary:"Update a memory over the customer edge."},{key:"primus.memoriesEncrypted.decryptMemory",commandPath:["primus","memoriesEncrypted","decryptMemory"],opId:"POST /v1/primus/memories/:memoryId/decrypt",method:"POST",pattern:"/v1/primus/memories/:memoryId/decrypt",pathParams:[{name:"memoryGid",key:"memoryId"}],flags:[{name:"reason",coerce:null,optional:!0}],scopes:["memory:read"],idempotent:!1,isQuery:!1,summary:"Decrypt one memory's content for its owner (deliberate, audited read)."},{key:"primus.memoriesEncrypted.getEncryption",commandPath:["primus","memoriesEncrypted","getEncryption"],opId:"GET /v1/primus/memories/:memoryId/encryption",method:"GET",pattern:"/v1/primus/memories/:memoryId/encryption",pathParams:[{name:"memoryGid",key:"memoryId"}],flags:[{name:"revealNonce",coerce:"boolean",optional:!0}],scopes:["memory:read"],idempotent:!1,isQuery:!1,summary:"Read a memory's encryption metadata (algorithm, key version, vault secret, masked nonce, size, time) \u2014 never the ciphertext."},{key:"primus.memoriesEncrypted.reencrypt",commandPath:["primus","memoriesEncrypted","reencrypt"],opId:"POST /v1/primus/memories/:memoryId/reencrypt",method:"POST",pattern:"/v1/primus/memories/:memoryId/reencrypt",pathParams:[{name:"memoryGid",key:"memoryId"}],flags:[],scopes:["memory:write"],idempotent:!1,isQuery:!1,summary:"Re-encrypt a memory under the current tenant key version (audited roll-forward)."},{key:"primus.memory.getLineage",commandPath:["primus","memory","getLineage"],opId:"GET /v1/primus/memory/store/:memoryId/lineage",method:"GET",pattern:"/v1/primus/memory/store/:memoryId/lineage",pathParams:[{name:"memoryGid",key:"memoryId"}],flags:[],scopes:["memory:read"],idempotent:!1,isQuery:!0,summary:"Memory lineage over the customer edge."},{key:"primus.memory.getQuarantineSummary",commandPath:["primus","memory","getQuarantineSummary"],opId:"GET /v1/primus/memory/store/quarantine-summary",method:"GET",pattern:"/v1/primus/memory/store/quarantine-summary",pathParams:[],flags:[],scopes:["memory:read"],idempotent:!1,isQuery:!0,summary:"Quarantine summary over the customer edge."},{key:"primus.memory.getRetrievalHistory",commandPath:["primus","memory","getRetrievalHistory"],opId:"GET /v1/primus/memory/store/:memoryId/retrieval-history",method:"GET",pattern:"/v1/primus/memory/store/:memoryId/retrieval-history",pathParams:[{name:"memoryGid",key:"memoryId"}],flags:[{name:"days",coerce:"number",optional:!0}],scopes:["memory:read"],idempotent:!1,isQuery:!0,summary:"Memory retrieval history over the customer edge."},{key:"primus.memory.list",commandPath:["primus","memory","list"],opId:"GET /v1/primus/memory/store/list",method:"GET",pattern:"/v1/primus/memory/store/list",pathParams:[],flags:[{name:"type",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["memory:read"],idempotent:!1,isQuery:!0,summary:"List stored memories over the customer edge."},{key:"primus.memory.listByTeam",commandPath:["primus","memory","listByTeam"],opId:"GET /v1/primus/memory/store/by-team",method:"GET",pattern:"/v1/primus/memory/store/by-team",pathParams:[],flags:[{name:"teamGid",coerce:null,optional:!1},{name:"limit",coerce:"number",optional:!0}],scopes:["memory:read"],idempotent:!1,isQuery:!0,summary:"List team memories over the customer edge."},{key:"primus.memory.listQuarantined",commandPath:["primus","memory","listQuarantined"],opId:"GET /v1/primus/memory/store/quarantined",method:"GET",pattern:"/v1/primus/memory/store/quarantined",pathParams:[],flags:[{name:"limit",coerce:"number",optional:!0}],scopes:["memory:read"],idempotent:!1,isQuery:!0,summary:"List quarantined stored memories over the customer edge."},{key:"primus.memory.recall",commandPath:["primus","memory","recall"],opId:"GET /v1/primus/memory/recall",method:"GET",pattern:"/v1/primus/memory/recall",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"query",coerce:null,optional:!0},{name:"type",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0}],scopes:["memory:read"],idempotent:!1,isQuery:!1,summary:"Recall agent memory over the customer edge."},{key:"primus.memory.store",commandPath:["primus","memory","store"],opId:"POST /v1/primus/memory/store",method:"POST",pattern:"/v1/primus/memory/store",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"type",coerce:null,optional:!1},{name:"content",coerce:null,optional:!1},{name:"source",coerce:null,optional:!0},{name:"sourceId",coerce:null,optional:!0},{name:"tags",coerce:"json",optional:!0},{name:"metadata",coerce:"json",optional:!0},{name:"expiresAt",coerce:"number",optional:!0},{name:"importance",coerce:"number",optional:!0},{name:"scope",coerce:null,optional:!1,choices:["private","team","tenant"]},{name:"teamId",coerce:null,optional:!0}],scopes:["memory:write"],idempotent:!0,isQuery:!1,summary:"Encrypted memory store (action) over the customer edge."},{key:"primus.observability.acknowledgeAlert",commandPath:["primus","observability","acknowledgeAlert"],opId:"POST /v1/primus/observability/alerts/acknowledge",method:"POST",pattern:"/v1/primus/observability/alerts/acknowledge",pathParams:[],flags:[{name:"alertGid",coerce:null,optional:!1},{name:"acknowledgedBy",coerce:null,optional:!0}],scopes:["agents:write"],idempotent:!0,isQuery:!1,summary:"Acknowledge an alert over the customer edge."},{key:"primus.observability.aggregateMetrics",commandPath:["primus","observability","aggregateMetrics"],opId:"GET /v1/primus/metrics/aggregate",method:"GET",pattern:"/v1/primus/metrics/aggregate",pathParams:[],flags:[{name:"name",coerce:null,optional:!1},{name:"startTime",coerce:"number",optional:!1},{name:"endTime",coerce:"number",optional:!0},{name:"aggregation",coerce:null,optional:!1,choices:["sum","avg","min","max","count","p50","p95","p99"]},{name:"groupBy",coerce:null,optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"Aggregate metrics over the customer edge."},{key:"primus.observability.getActiveAlerts",commandPath:["primus","observability","getActiveAlerts"],opId:"GET /v1/primus/observability/alerts",method:"GET",pattern:"/v1/primus/observability/alerts",pathParams:[],flags:[{name:"severity",coerce:null,optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"Active alerts over the customer edge."},{key:"primus.observability.getErrorDistribution",commandPath:["primus","observability","getErrorDistribution"],opId:"GET /v1/primus/observability/errors/distribution",method:"GET",pattern:"/v1/primus/observability/errors/distribution",pathParams:[],flags:[{name:"startTime",coerce:"number",optional:!1},{name:"endTime",coerce:"number",optional:!0},{name:"byField",coerce:null,optional:!0,choices:["type","source","fingerprint","status"]},{name:"limit",coerce:"number",optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"Error distribution over the customer edge."},{key:"primus.observability.getErrors",commandPath:["primus","observability","getErrors"],opId:"GET /v1/primus/observability/errors",method:"GET",pattern:"/v1/primus/observability/errors",pathParams:[],flags:[{name:"status",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"List errors over the customer edge."},{key:"primus.observability.getMetrics",commandPath:["primus","observability","getMetrics"],opId:"GET /v1/primus/metrics",method:"GET",pattern:"/v1/primus/metrics",pathParams:[],flags:[{name:"name",coerce:null,optional:!1},{name:"startTime",coerce:"number",optional:!1},{name:"endTime",coerce:"number",optional:!0},{name:"agentGid",coerce:null,optional:!0},{name:"labels",coerce:"json",optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"Query metrics over the customer edge."},{key:"primus.observability.getSystemMetrics",commandPath:["primus","observability","getSystemMetrics"],opId:"GET /v1/primus/metrics/system",method:"GET",pattern:"/v1/primus/metrics/system",pathParams:[],flags:[],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"System metrics over the customer edge."},{key:"primus.observability.getTrace",commandPath:["primus","observability","getTrace"],opId:"GET /v1/primus/observability/traces/:traceId",method:"GET",pattern:"/v1/primus/observability/traces/:traceId",pathParams:[{name:"traceId",key:"traceId"}],flags:[],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a trace over the customer edge."},{key:"primus.observability.listErrorsByAgent",commandPath:["primus","observability","listErrorsByAgent"],opId:"GET /v1/primus/observability/errors/by-agent",method:"GET",pattern:"/v1/primus/observability/errors/by-agent",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"status",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"Errors by agent over the customer edge."},{key:"primus.observability.listErrorsByExecution",commandPath:["primus","observability","listErrorsByExecution"],opId:"GET /v1/primus/observability/errors/by-execution",method:"GET",pattern:"/v1/primus/observability/errors/by-execution",pathParams:[],flags:[{name:"executionGid",coerce:null,optional:!1},{name:"limit",coerce:"number",optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"Errors by execution over the customer edge."},{key:"primus.observability.resolveAlert",commandPath:["primus","observability","resolveAlert"],opId:"POST /v1/primus/observability/alerts/resolve",method:"POST",pattern:"/v1/primus/observability/alerts/resolve",pathParams:[],flags:[{name:"alertGid",coerce:null,optional:!1},{name:"resolvedBy",coerce:null,optional:!0},{name:"resolution",coerce:null,optional:!0}],scopes:["agents:write"],idempotent:!0,isQuery:!1,summary:"Resolve an alert over the customer edge."},{key:"primus.observability.resolveError",commandPath:["primus","observability","resolveError"],opId:"POST /v1/primus/observability/errors/resolve",method:"POST",pattern:"/v1/primus/observability/errors/resolve",pathParams:[],flags:[{name:"errorGid",coerce:null,optional:!1}],scopes:["agents:write"],idempotent:!0,isQuery:!1,summary:"Resolve an error over the customer edge."},{key:"primus.overview.getActiveTriggers",commandPath:["primus","overview","getActiveTriggers"],opId:"GET /v1/primus/overview/active-triggers",method:"GET",pattern:"/v1/primus/overview/active-triggers",pathParams:[],flags:[{name:"limit",coerce:"number",optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"Active triggers over the customer edge."},{key:"primus.overview.getMemoryHealth",commandPath:["primus","overview","getMemoryHealth"],opId:"GET /v1/primus/overview/memory-health",method:"GET",pattern:"/v1/primus/overview/memory-health",pathParams:[],flags:[],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"Memory health over the customer edge."},{key:"primus.overview.getMetricsSummary",commandPath:["primus","overview","getMetricsSummary"],opId:"GET /v1/primus/overview/metrics-summary",method:"GET",pattern:"/v1/primus/overview/metrics-summary",pathParams:[],flags:[],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"Overview metrics summary over the customer edge."},{key:"primus.overview.getStats",commandPath:["primus","overview","getStats"],opId:"GET /v1/primus/overview/stats",method:"GET",pattern:"/v1/primus/overview/stats",pathParams:[],flags:[],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"Overview stats over the customer edge."},{key:"primus.overview.getTopAgents",commandPath:["primus","overview","getTopAgents"],opId:"GET /v1/primus/overview/top-agents",method:"GET",pattern:"/v1/primus/overview/top-agents",pathParams:[],flags:[{name:"limit",coerce:"number",optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"Top agents over the customer edge."},{key:"primus.rag.searchDualAuth",commandPath:["primus","rag","searchDualAuth"],opId:"POST /v1/primus/memory/search",method:"POST",pattern:"/v1/primus/memory/search",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"query",coerce:null,optional:!1},{name:"topK",coerce:"number",optional:!0},{name:"tags",coerce:"json",optional:!0},{name:"memoryTypes",coerce:"json",optional:!0},{name:"excludeQuarantined",coerce:"boolean",optional:!0},{name:"rerank",coerce:null,optional:!0,choices:["rrf","mmr"]},{name:"diversityFactor",coerce:"number",optional:!0}],scopes:["memory:read"],idempotent:!1,isQuery:!1,summary:"Hybrid memory search (vector + keyword, RRF-merged) over the customer edge."},{key:"primus.rag.searchExplainDualAuth",commandPath:["primus","rag","searchExplainDualAuth"],opId:"POST /v1/primus/memory/search/explain",method:"POST",pattern:"/v1/primus/memory/search/explain",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"query",coerce:null,optional:!1},{name:"topK",coerce:"number",optional:!0},{name:"hybridWeight",coerce:"number",optional:!0}],scopes:["memory:read"],idempotent:!1,isQuery:!1,summary:"Hybrid memory search with the per-result score breakdown over the customer edge."},{key:"primus.selfKnowledge.list",commandPath:["primus","selfKnowledge","list"],opId:"GET /v1/primus/self-knowledge",method:"GET",pattern:"/v1/primus/self-knowledge",pathParams:[],flags:[{name:"category",coerce:null,optional:!0,choices:["strength","weakness","failure_pattern","improvement"]},{name:"activeOnly",coerce:"boolean",optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"List self-knowledge over the customer edge."},{key:"primus.selfKnowledge.record",commandPath:["primus","selfKnowledge","record"],opId:"POST /v1/primus/self-knowledge",method:"POST",pattern:"/v1/primus/self-knowledge",pathParams:[],flags:[{name:"category",coerce:null,optional:!1,choices:["strength","weakness","failure_pattern","improvement"]},{name:"description",coerce:null,optional:!1},{name:"key",coerce:null,optional:!0},{name:"value",coerce:"json",optional:!0},{name:"source",coerce:null,optional:!0},{name:"evidence",coerce:"json",optional:!0},{name:"confidence",coerce:"number",optional:!1}],scopes:["agents:write"],idempotent:!0,isQuery:!1,summary:"Record self-knowledge over the customer edge."},{key:"primus.selfKnowledge.retrieve",commandPath:["primus","selfKnowledge","retrieve"],opId:"GET /v1/primus/self-knowledge/:knowledgeId",method:"GET",pattern:"/v1/primus/self-knowledge/:knowledgeId",pathParams:[{name:"knowledgeGid",key:"knowledgeId"}],flags:[],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"Retrieve self-knowledge over the customer edge."},{key:"primus.selfKnowledge.setActive",commandPath:["primus","selfKnowledge","setActive"],opId:"POST /v1/primus/self-knowledge/:knowledgeId/active",method:"POST",pattern:"/v1/primus/self-knowledge/:knowledgeId/active",pathParams:[{name:"knowledgeGid",key:"knowledgeId"}],flags:[{name:"isActive",coerce:"boolean",optional:!1}],scopes:["agents:write"],idempotent:!0,isQuery:!1,summary:"Set self-knowledge active over the customer edge."},{key:"primus.selfKnowledge.validate",commandPath:["primus","selfKnowledge","validate"],opId:"POST /v1/primus/self-knowledge/:knowledgeId/validate",method:"POST",pattern:"/v1/primus/self-knowledge/:knowledgeId/validate",pathParams:[{name:"knowledgeGid",key:"knowledgeId"}],flags:[],scopes:["agents:write"],idempotent:!0,isQuery:!1,summary:"Validate self-knowledge over the customer edge."},{key:"primus.skills.create",commandPath:["primus","skills","create"],opId:"POST /v1/primus/skills",method:"POST",pattern:"/v1/primus/skills",pathParams:[],flags:[{name:"name",coerce:null,optional:!1},{name:"description",coerce:null,optional:!1},{name:"category",coerce:null,optional:!0},{name:"icon",coerce:null,optional:!0},{name:"slug",coerce:null,optional:!0},{name:"executor",coerce:null,optional:!1,choices:["inline","webhook","dynamic_worker","container","gpu","openshell","cloud_run","fly_machines","k8s_jobs"]},{name:"definition",coerce:"json",optional:!1},{name:"limits",coerce:"json",optional:!0},{name:"enabled",coerce:"boolean",optional:!0}],scopes:["skills:write"],idempotent:!0,isQuery:!1,summary:"Create a skill over the customer edge."},{key:"primus.skills.disable",commandPath:["primus","skills","disable"],opId:"POST /v1/primus/skills/:skillId/disable",method:"POST",pattern:"/v1/primus/skills/:skillId/disable",pathParams:[{name:"skillGid",key:"skillId"}],flags:[],scopes:["skills:write"],idempotent:!0,isQuery:!1,summary:"Disable a skill over the customer edge."},{key:"primus.skills.enable",commandPath:["primus","skills","enable"],opId:"POST /v1/primus/skills/:skillId/enable",method:"POST",pattern:"/v1/primus/skills/:skillId/enable",pathParams:[{name:"skillGid",key:"skillId"}],flags:[],scopes:["skills:write"],idempotent:!0,isQuery:!1,summary:"Enable a skill over the customer edge."},{key:"primus.skills.getStats",commandPath:["primus","skills","getStats"],opId:"GET /v1/primus/skills/:skillId/stats",method:"GET",pattern:"/v1/primus/skills/:skillId/stats",pathParams:[{name:"skillGid",key:"skillId"}],flags:[{name:"limit",coerce:"number",optional:!0},{name:"startTime",coerce:"number",optional:!0},{name:"endTime",coerce:"number",optional:!0}],scopes:["skills:read"],idempotent:!1,isQuery:!0,summary:"Skill stats over the customer edge."},{key:"primus.skills.getWithExecutions",commandPath:["primus","skills","getWithExecutions"],opId:"GET /v1/primus/skills/:skillId/executions",method:"GET",pattern:"/v1/primus/skills/:skillId/executions",pathParams:[{name:"skillGid",key:"skillId"}],flags:[{name:"executionLimit",coerce:"number",optional:!0}],scopes:["skills:read"],idempotent:!1,isQuery:!0,summary:"Skill with executions over the customer edge."},{key:"primus.skills.list",commandPath:["primus","skills","list"],opId:"GET /v1/primus/skills",method:"GET",pattern:"/v1/primus/skills",pathParams:[],flags:[{name:"category",coerce:null,optional:!0},{name:"enabledOnly",coerce:"boolean",optional:!0},{name:"includeBuiltIn",coerce:"boolean",optional:!0}],scopes:["skills:read"],idempotent:!1,isQuery:!0,summary:"List skills over the customer edge."},{key:"primus.skills.listBuiltIn",commandPath:["primus","skills","listBuiltIn"],opId:"GET /v1/primus/skills/built-in",method:"GET",pattern:"/v1/primus/skills/built-in",pathParams:[],flags:[{name:"category",coerce:null,optional:!0}],scopes:["skills:read"],idempotent:!1,isQuery:!0,summary:"List built-in skills over the customer edge."},{key:"primus.skills.listByCategory",commandPath:["primus","skills","listByCategory"],opId:"GET /v1/primus/skills/by-category",method:"GET",pattern:"/v1/primus/skills/by-category",pathParams:[],flags:[{name:"category",coerce:null,optional:!1}],scopes:["skills:read"],idempotent:!1,isQuery:!0,summary:"List skills by category over the customer edge."},{key:"primus.skills.remove",commandPath:["primus","skills","remove"],opId:"DELETE /v1/primus/skills/:skillId",method:"DELETE",pattern:"/v1/primus/skills/:skillId",pathParams:[{name:"skillGid",key:"skillId"}],flags:[],scopes:["skills:admin"],idempotent:!0,isQuery:!1,summary:"Delete a skill over the customer edge."},{key:"primus.skills.retrieve",commandPath:["primus","skills","retrieve"],opId:"GET /v1/primus/skills/:skillId",method:"GET",pattern:"/v1/primus/skills/:skillId",pathParams:[{name:"skillGid",key:"skillId"}],flags:[],scopes:["skills:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a skill over the customer edge."},{key:"primus.skills.update",commandPath:["primus","skills","update"],opId:"PATCH /v1/primus/skills/:skillId",method:"PATCH",pattern:"/v1/primus/skills/:skillId",pathParams:[{name:"skillGid",key:"skillId"}],flags:[{name:"name",coerce:null,optional:!0},{name:"description",coerce:null,optional:!0},{name:"category",coerce:null,optional:!0},{name:"icon",coerce:null,optional:!0},{name:"executor",coerce:null,optional:!0,choices:["inline","webhook","dynamic_worker","container","gpu","openshell","cloud_run","fly_machines","k8s_jobs"]},{name:"enabled",coerce:"boolean",optional:!0},{name:"definition",coerce:"json",optional:!0},{name:"limits",coerce:"json",optional:!0}],scopes:["skills:write"],idempotent:!0,isQuery:!1,summary:"Update a skill over the customer edge."},{key:"primus.skillSynthesis.getForTool",commandPath:["primus","skillSynthesis","getForTool"],opId:"GET /v1/primus/skill-synthesis/for-tool",method:"GET",pattern:"/v1/primus/skill-synthesis/for-tool",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"Synthesis candidates for a tool over the customer edge."},{key:"primus.skillSynthesis.list",commandPath:["primus","skillSynthesis","list"],opId:"GET /v1/primus/skill-synthesis",method:"GET",pattern:"/v1/primus/skill-synthesis",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"status",coerce:null,optional:!0},{name:"category",coerce:null,optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"List synthesized skills over the customer edge."},{key:"primus.skillSynthesis.promote",commandPath:["primus","skillSynthesis","promote"],opId:"POST /v1/primus/skill-synthesis/:skillId/promote",method:"POST",pattern:"/v1/primus/skill-synthesis/:skillId/promote",pathParams:[{name:"skillGid",key:"skillId"}],flags:[{name:"status",coerce:null,optional:!1,choices:["approved","rejected"]},{name:"reviewNotes",coerce:null,optional:!0}],scopes:["agents:write"],idempotent:!0,isQuery:!1,summary:"Promote a synthesized skill over the customer edge."},{key:"primus.skillSynthesis.retrieve",commandPath:["primus","skillSynthesis","retrieve"],opId:"GET /v1/primus/skill-synthesis/:skillId",method:"GET",pattern:"/v1/primus/skill-synthesis/:skillId",pathParams:[{name:"skillGid",key:"skillId"}],flags:[],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a synthesized skill over the customer edge."},{key:"primus.skillSynthesis.runPipeline",commandPath:["primus","skillSynthesis","runPipeline"],opId:"POST /v1/primus/skill-synthesis/run-pipeline",method:"POST",pattern:"/v1/primus/skill-synthesis/run-pipeline",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!0},{name:"stages",coerce:"json",optional:!0},{name:"minConfidence",coerce:"number",optional:!0},{name:"minFrequency",coerce:"number",optional:!0}],scopes:["agents:execute"],idempotent:!0,isQuery:!1,summary:"Run the synthesis pipeline (action) over the customer edge."},{key:"primus.spendCap.retrieve",commandPath:["primus","spendCap","retrieve"],opId:"GET /v1/primus/spend-cap",method:"GET",pattern:"/v1/primus/spend-cap",pathParams:[],flags:[],scopes:["brain:read"],idempotent:!1,isQuery:!0,summary:"Your organization's monthly spend cap, this month's spend and when the month resets."},{key:"primus.spendCap.update",commandPath:["primus","spendCap","update"],opId:"PUT /v1/primus/spend-cap",method:"PUT",pattern:"/v1/primus/spend-cap",pathParams:[],flags:[{name:"capCents",coerce:null,optional:!1}],scopes:["brain:write"],idempotent:!0,isQuery:!1,summary:"Set or remove your organization's monthly spend cap (a person in the organization only)."},{key:"primus.stats.retrieve",commandPath:["primus","stats","retrieve"],opId:"GET /v1/primus/learning/stats",method:"GET",pattern:"/v1/primus/learning/stats",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"timeRange",coerce:"number",optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"Learning stats over the customer edge."},{key:"primus.teams.addMember",commandPath:["primus","teams","addMember"],opId:"POST /v1/primus/teams/members",method:"POST",pattern:"/v1/primus/teams/members",pathParams:[],flags:[{name:"name",coerce:null,optional:!1},{name:"role",coerce:null,optional:!1},{name:"memberRole",coerce:null,optional:!0,choices:["lead","specialist","system"]},{name:"systemPrompt",coerce:null,optional:!1},{name:"skills",coerce:"json",optional:!0},{name:"makeSubLead",coerce:"boolean",optional:!0}],scopes:["teams:write"],idempotent:!0,isQuery:!1,summary:"Add a team member (action) over the customer edge."},{key:"primus.teams.assignAgent",commandPath:["primus","teams","assignAgent"],opId:"POST /v1/primus/teams/assign",method:"POST",pattern:"/v1/primus/teams/assign",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"makeSubLead",coerce:"boolean",optional:!0}],scopes:["teams:write"],idempotent:!0,isQuery:!1,summary:"Assign an agent to the team over the customer edge."},{key:"primus.teams.create",commandPath:["primus","teams","create"],opId:"POST /v1/primus/teams",method:"POST",pattern:"/v1/primus/teams",pathParams:[],flags:[{name:"name",coerce:null,optional:!0},{name:"businessContext",coerce:null,optional:!0}],scopes:["teams:write"],idempotent:!0,isQuery:!1,summary:"Create a team over the customer edge."},{key:"primus.teams.createWithSpecialists",commandPath:["primus","teams","createWithSpecialists"],opId:"POST /v1/primus/teams/with-specialists",method:"POST",pattern:"/v1/primus/teams/with-specialists",pathParams:[],flags:[{name:"name",coerce:null,optional:!0},{name:"businessContext",coerce:null,optional:!0},{name:"specialists",coerce:"json",optional:!0}],scopes:["teams:write"],idempotent:!0,isQuery:!1,summary:"Create a team with specialists (action) over the customer edge."},{key:"primus.teams.delegateByTag",commandPath:["primus","teams","delegateByTag"],opId:"POST /v1/primus/teams/delegate",method:"POST",pattern:"/v1/primus/teams/delegate",pathParams:[],flags:[{name:"taskTag",coerce:null,optional:!1},{name:"task",coerce:null,optional:!1},{name:"teamGid",coerce:null,optional:!0},{name:"priority",coerce:null,optional:!0}],scopes:["teams:write"],idempotent:!0,isQuery:!1,summary:"Delegate a task by tag (action) over the customer edge."},{key:"primus.teams.list",commandPath:["primus","teams","list"],opId:"GET /v1/primus/teams",method:"GET",pattern:"/v1/primus/teams",pathParams:[],flags:[{name:"status",coerce:null,optional:!0}],scopes:["teams:read"],idempotent:!1,isQuery:!0,summary:"List teams over the customer edge."},{key:"primus.teams.remove",commandPath:["primus","teams","remove"],opId:"DELETE /v1/primus/teams/:teamId",method:"DELETE",pattern:"/v1/primus/teams/:teamId",pathParams:[{name:"teamGid",key:"teamId"}],flags:[{name:"reason",coerce:null,optional:!0}],scopes:["teams:admin"],idempotent:!0,isQuery:!1,summary:"Remove (soft-delete) a team over the customer edge: the lead and every specialist are archived; a repeat is a visible no-op."},{key:"primus.teams.removeMember",commandPath:["primus","teams","removeMember"],opId:"POST /v1/primus/teams/remove-member",method:"POST",pattern:"/v1/primus/teams/remove-member",pathParams:[],flags:[{name:"specialistGid",coerce:null,optional:!1},{name:"reason",coerce:null,optional:!0}],scopes:["teams:admin"],idempotent:!0,isQuery:!1,summary:"Remove a team member over the customer edge."},{key:"primus.teams.retrieve",commandPath:["primus","teams","retrieve"],opId:"GET /v1/primus/teams/:teamId",method:"GET",pattern:"/v1/primus/teams/:teamId",pathParams:[{name:"teamGid",key:"teamId"}],flags:[],scopes:["teams:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a team over the customer edge."},{key:"primus.teams.unassignAgent",commandPath:["primus","teams","unassignAgent"],opId:"POST /v1/primus/teams/unassign",method:"POST",pattern:"/v1/primus/teams/unassign",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1}],scopes:["teams:write"],idempotent:!0,isQuery:!1,summary:"Unassign an agent from the team over the customer edge."},{key:"primus.teams.update",commandPath:["primus","teams","update"],opId:"PATCH /v1/primus/teams/:teamId",method:"PATCH",pattern:"/v1/primus/teams/:teamId",pathParams:[{name:"teamGid",key:"teamId"}],flags:[{name:"name",coerce:null,optional:!0},{name:"description",coerce:null,optional:!0},{name:"systemPrompt",coerce:null,optional:!0}],scopes:["teams:write"],idempotent:!0,isQuery:!1,summary:"Update a team over the customer edge."},{key:"primus.tenants.archive",commandPath:["primus","tenants","archive"],opId:"POST /v1/primus/tenants/:tenantId/archive",method:"POST",pattern:"/v1/primus/tenants/:tenantId/archive",pathParams:[{name:"tenantGid",key:"tenantId"}],flags:[],scopes:["tenants:admin"],idempotent:!0,isQuery:!1,summary:"Archive a tenant over the customer edge."},{key:"primus.tenants.create",commandPath:["primus","tenants","create"],opId:"POST /v1/primus/tenants",method:"POST",pattern:"/v1/primus/tenants",pathParams:[],flags:[{name:"externalId",coerce:null,optional:!1},{name:"name",coerce:null,optional:!1},{name:"metadata",coerce:"json",optional:!0}],scopes:["tenants:write"],idempotent:!0,isQuery:!1,summary:"Create a tenant over the customer edge."},{key:"primus.tenants.getByExternalId",commandPath:["primus","tenants","getByExternalId"],opId:"GET /v1/primus/tenants/by-external-id",method:"GET",pattern:"/v1/primus/tenants/by-external-id",pathParams:[],flags:[{name:"externalId",coerce:null,optional:!1}],scopes:["tenants:read"],idempotent:!1,isQuery:!0,summary:"Tenant by external id over the customer edge."},{key:"primus.tenants.list",commandPath:["primus","tenants","list"],opId:"GET /v1/primus/tenants",method:"GET",pattern:"/v1/primus/tenants",pathParams:[],flags:[],scopes:["tenants:read"],idempotent:!1,isQuery:!0,summary:"List tenants over the customer edge."},{key:"primus.tenants.retrieve",commandPath:["primus","tenants","retrieve"],opId:"GET /v1/primus/tenants/:tenantId",method:"GET",pattern:"/v1/primus/tenants/:tenantId",pathParams:[{name:"tenantGid",key:"tenantId"}],flags:[],scopes:["tenants:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a tenant over the customer edge."},{key:"primus.tenants.suspend",commandPath:["primus","tenants","suspend"],opId:"POST /v1/primus/tenants/:tenantId/suspend",method:"POST",pattern:"/v1/primus/tenants/:tenantId/suspend",pathParams:[{name:"tenantGid",key:"tenantId"}],flags:[],scopes:["tenants:write"],idempotent:!0,isQuery:!1,summary:"Suspend a tenant over the customer edge."},{key:"primus.tenants.update",commandPath:["primus","tenants","update"],opId:"PATCH /v1/primus/tenants/:tenantId",method:"PATCH",pattern:"/v1/primus/tenants/:tenantId",pathParams:[{name:"tenantGid",key:"tenantId"}],flags:[{name:"name",coerce:null,optional:!0},{name:"metadata",coerce:"json",optional:!0}],scopes:["tenants:write"],idempotent:!0,isQuery:!1,summary:"Update a tenant over the customer edge."},{key:"primus.tools.create",commandPath:["primus","tools","create"],opId:"POST /v1/primus/tools",method:"POST",pattern:"/v1/primus/tools",pathParams:[],flags:[{name:"name",coerce:null,optional:!1},{name:"description",coerce:null,optional:!1},{name:"parameters",coerce:"json",optional:!0},{name:"outputSchema",coerce:"json",optional:!0},{name:"riskLevel",coerce:null,optional:!1,choices:["safe","moderate","dangerous"]},{name:"requiresApproval",coerce:"boolean",optional:!0},{name:"endpoint",coerce:null,optional:!0},{name:"uri",coerce:null,optional:!0},{name:"authType",coerce:null,optional:!0,choices:["none","bearer","apiKey","basic","oauth","hmac"]},{name:"scopes",coerce:"json",optional:!0},{name:"executor",coerce:null,optional:!0,choices:["webhook","inline","dynamic_worker","container","gpu","openshell"]},{name:"timeout",coerce:"number",optional:!0},{name:"category",coerce:null,optional:!0},{name:"headers",coerce:"json",optional:!0},{name:"slug",coerce:null,optional:!0}],scopes:["tools:write"],idempotent:!0,isQuery:!1,summary:"Create a tool (action) over the customer edge."},{key:"primus.tools.disable",commandPath:["primus","tools","disable"],opId:"POST /v1/primus/tools/:toolId/disable",method:"POST",pattern:"/v1/primus/tools/:toolId/disable",pathParams:[{name:"toolGid",key:"toolId"}],flags:[],scopes:["tools:admin"],idempotent:!0,isQuery:!1,summary:"Disable a tool over the customer edge."},{key:"primus.tools.discover",commandPath:["primus","tools","discover"],opId:"GET /v1/tools",method:"GET",pattern:"/v1/tools",pathParams:[],flags:[{name:"source",coerce:null,optional:!0,choices:["builtin","skill","mcp","integration"]},{name:"enabledOnly",coerce:"boolean",optional:!0}],scopes:["tools:read"],idempotent:!1,isQuery:!0,summary:"Discover registered tools over the customer edge \u2014 the external-agent discovery door (/v1/tools)."},{key:"primus.tools.enable",commandPath:["primus","tools","enable"],opId:"POST /v1/primus/tools/:toolId/enable",method:"POST",pattern:"/v1/primus/tools/:toolId/enable",pathParams:[{name:"toolGid",key:"toolId"}],flags:[],scopes:["tools:write"],idempotent:!0,isQuery:!1,summary:"Enable a tool over the customer edge."},{key:"primus.tools.getByName",commandPath:["primus","tools","getByName"],opId:"GET /v1/primus/tools/by-name",method:"GET",pattern:"/v1/primus/tools/by-name",pathParams:[],flags:[{name:"name",coerce:null,optional:!1}],scopes:["tools:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a tool by name over the customer edge."},{key:"primus.tools.getStats",commandPath:["primus","tools","getStats"],opId:"GET /v1/primus/tools/stats",method:"GET",pattern:"/v1/primus/tools/stats",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!0},{name:"toolName",coerce:null,optional:!0},{name:"startTime",coerce:"number",optional:!0},{name:"endTime",coerce:"number",optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["tools:read"],idempotent:!1,isQuery:!0,summary:"Tool usage stats over the customer edge."},{key:"primus.tools.importFromOpenApi",commandPath:["primus","tools","importFromOpenApi"],opId:"POST /v1/primus/tools/import",method:"POST",pattern:"/v1/primus/tools/import",pathParams:[],flags:[{name:"uri",coerce:null,optional:!0},{name:"specJson",coerce:null,optional:!0},{name:"authType",coerce:null,optional:!0,choices:["bearer","apiKey","basic","none"]},{name:"authTokenFrom",coerce:null,optional:!0},{name:"authHeaderName",coerce:null,optional:!0},{name:"authIn",coerce:null,optional:!0,choices:["header","query"]},{name:"include",coerce:"json",optional:!0},{name:"exclude",coerce:"json",optional:!0}],scopes:["tools:write"],idempotent:!0,isQuery:!1,summary:"Import tools from OpenAPI (action) over the customer edge."},{key:"primus.tools.list",commandPath:["primus","tools","list"],opId:"GET /v1/primus/tools",method:"GET",pattern:"/v1/primus/tools",pathParams:[],flags:[{name:"source",coerce:null,optional:!0,choices:["builtin","skill","mcp","integration"]},{name:"enabledOnly",coerce:"boolean",optional:!0}],scopes:["tools:read"],idempotent:!1,isQuery:!0,summary:"List tools over the customer edge."},{key:"primus.tools.remove",commandPath:["primus","tools","remove"],opId:"DELETE /v1/primus/tools/:toolId",method:"DELETE",pattern:"/v1/primus/tools/:toolId",pathParams:[{name:"toolGid",key:"toolId"}],flags:[],scopes:["tools:admin"],idempotent:!0,isQuery:!1,summary:"Delete a tool over the customer edge."},{key:"primus.tools.retrieve",commandPath:["primus","tools","retrieve"],opId:"GET /v1/primus/tools/:toolId",method:"GET",pattern:"/v1/primus/tools/:toolId",pathParams:[{name:"toolGid",key:"toolId"}],flags:[],scopes:["tools:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a tool over the customer edge."},{key:"primus.tools.testCall",commandPath:["primus","tools","testCall"],opId:"POST /v1/primus/tools/:toolId/test",method:"POST",pattern:"/v1/primus/tools/:toolId/test",pathParams:[{name:"toolGid",key:"toolId"}],flags:[{name:"inputs",coerce:"json",optional:!1}],scopes:["tools:write"],idempotent:!0,isQuery:!1,summary:"Test-call a tool (action) over the customer edge."},{key:"primus.tools.update",commandPath:["primus","tools","update"],opId:"PATCH /v1/primus/tools/:toolId",method:"PATCH",pattern:"/v1/primus/tools/:toolId",pathParams:[{name:"toolGid",key:"toolId"}],flags:[{name:"description",coerce:null,optional:!0},{name:"parameters",coerce:"json",optional:!0},{name:"outputSchema",coerce:"json",optional:!0},{name:"riskLevel",coerce:null,optional:!0,choices:["safe","moderate","dangerous"]},{name:"requiresApproval",coerce:"boolean",optional:!0},{name:"endpoint",coerce:null,optional:!0},{name:"executor",coerce:null,optional:!0,choices:["webhook","inline","dynamic_worker","container","gpu","openshell"]},{name:"timeout",coerce:"number",optional:!0},{name:"category",coerce:null,optional:!0},{name:"secretRef",coerce:null,optional:!0},{name:"headers",coerce:"json",optional:!0}],scopes:["tools:write"],idempotent:!0,isQuery:!1,summary:"Update a tool over the customer edge."},{key:"primus.triggers.create",commandPath:["primus","triggers","create"],opId:"POST /v1/primus/triggers",method:"POST",pattern:"/v1/primus/triggers",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"name",coerce:null,optional:!1},{name:"slug",coerce:null,optional:!0},{name:"description",coerce:null,optional:!0},{name:"type",coerce:null,optional:!1},{name:"config",coerce:"json",optional:!1},{name:"action",coerce:"json",optional:!1},{name:"conditions",coerce:"json",optional:!0},{name:"enabled",coerce:"boolean",optional:!0}],scopes:["triggers:write"],idempotent:!0,isQuery:!1,summary:"Create a trigger over the customer edge (type: cron, event, webhook or message)."},{key:"primus.triggers.disable",commandPath:["primus","triggers","disable"],opId:"POST /v1/primus/triggers/:triggerId/disable",method:"POST",pattern:"/v1/primus/triggers/:triggerId/disable",pathParams:[{name:"triggerGid",key:"triggerId"}],flags:[],scopes:["triggers:write"],idempotent:!0,isQuery:!1,summary:"Disable a trigger over the customer edge."},{key:"primus.triggers.enable",commandPath:["primus","triggers","enable"],opId:"POST /v1/primus/triggers/:triggerId/enable",method:"POST",pattern:"/v1/primus/triggers/:triggerId/enable",pathParams:[{name:"triggerGid",key:"triggerId"}],flags:[],scopes:["triggers:write"],idempotent:!0,isQuery:!1,summary:"Enable a trigger over the customer edge."},{key:"primus.triggers.getWithExecutions",commandPath:["primus","triggers","getWithExecutions"],opId:"GET /v1/primus/triggers/:triggerId/executions",method:"GET",pattern:"/v1/primus/triggers/:triggerId/executions",pathParams:[{name:"triggerGid",key:"triggerId"}],flags:[{name:"executionLimit",coerce:"number",optional:!0}],scopes:["triggers:read"],idempotent:!1,isQuery:!0,summary:"Trigger with executions over the customer edge."},{key:"primus.triggers.list",commandPath:["primus","triggers","list"],opId:"GET /v1/primus/triggers",method:"GET",pattern:"/v1/primus/triggers",pathParams:[],flags:[{name:"type",coerce:null,optional:!0,choices:["cron","event","webhook","message"]},{name:"enabled",coerce:"boolean",optional:!0}],scopes:["triggers:read"],idempotent:!1,isQuery:!0,summary:"List triggers over the customer edge."},{key:"primus.triggers.listByAgent",commandPath:["primus","triggers","listByAgent"],opId:"GET /v1/primus/triggers/by-agent",method:"GET",pattern:"/v1/primus/triggers/by-agent",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"enabledOnly",coerce:"boolean",optional:!0}],scopes:["triggers:read"],idempotent:!1,isQuery:!0,summary:"List an agent triggers over the customer edge."},{key:"primus.triggers.remove",commandPath:["primus","triggers","remove"],opId:"DELETE /v1/primus/triggers/:triggerId",method:"DELETE",pattern:"/v1/primus/triggers/:triggerId",pathParams:[{name:"triggerGid",key:"triggerId"}],flags:[],scopes:["triggers:admin"],idempotent:!0,isQuery:!1,summary:"Delete a trigger over the customer edge."},{key:"primus.triggers.retrieve",commandPath:["primus","triggers","retrieve"],opId:"GET /v1/primus/triggers/:triggerId",method:"GET",pattern:"/v1/primus/triggers/:triggerId",pathParams:[{name:"triggerGid",key:"triggerId"}],flags:[],scopes:["triggers:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a trigger over the customer edge."},{key:"primus.triggers.rotateSecret",commandPath:["primus","triggers","rotateSecret"],opId:"POST /v1/primus/triggers/:triggerId/rotate-secret",method:"POST",pattern:"/v1/primus/triggers/:triggerId/rotate-secret",pathParams:[{name:"triggerGid",key:"triggerId"}],flags:[],scopes:["triggers:write"],idempotent:!1,isQuery:!1,summary:"Rotate a webhook trigger's signing secret over the customer edge (the new secret is returned once)."},{key:"primus.triggers.update",commandPath:["primus","triggers","update"],opId:"PATCH /v1/primus/triggers/:triggerId",method:"PATCH",pattern:"/v1/primus/triggers/:triggerId",pathParams:[{name:"triggerGid",key:"triggerId"}],flags:[{name:"name",coerce:null,optional:!0},{name:"description",coerce:null,optional:!0},{name:"config",coerce:"json",optional:!0},{name:"action",coerce:"json",optional:!0},{name:"conditions",coerce:"json",optional:!0},{name:"enabled",coerce:"boolean",optional:!0}],scopes:["triggers:write"],idempotent:!0,isQuery:!1,summary:"Update a trigger over the customer edge."},{key:"primus.usage.byTenant",commandPath:["primus","usage","byTenant"],opId:"GET /v1/primus/usage/by-tenant",method:"GET",pattern:"/v1/primus/usage/by-tenant",pathParams:[],flags:[{name:"tenantId",coerce:null,optional:!1},{name:"dayUtcMs",coerce:"number",optional:!1}],scopes:["billing:read"],idempotent:!1,isQuery:!0,summary:"Usage by tenant over the customer edge."},{key:"primus.usage.checkLimits",commandPath:["primus","usage","checkLimits"],opId:"GET /v1/primus/usage/limits",method:"GET",pattern:"/v1/primus/usage/limits",pathParams:[],flags:[],scopes:["billing:read"],idempotent:!1,isQuery:!0,summary:"Usage limits over the customer edge."},{key:"primus.usage.getHistory",commandPath:["primus","usage","getHistory"],opId:"GET /v1/primus/usage/history",method:"GET",pattern:"/v1/primus/usage/history",pathParams:[],flags:[{name:"startMs",coerce:"number",optional:!1},{name:"endMs",coerce:"number",optional:!1},{name:"granularity",coerce:null,optional:!0,choices:["hour","day","week"]}],scopes:["billing:read"],idempotent:!1,isQuery:!0,summary:"Usage history over the customer edge."},{key:"primus.usage.getSummary",commandPath:["primus","usage","getSummary"],opId:"GET /v1/primus/usage/summary",method:"GET",pattern:"/v1/primus/usage/summary",pathParams:[],flags:[{name:"tenantId",coerce:null,optional:!0}],scopes:["billing:read"],idempotent:!1,isQuery:!0,summary:"Usage summary over the customer edge."},{key:"primus.webhooks.create",commandPath:["primus","webhooks","create"],opId:"POST /v1/primus/webhooks",method:"POST",pattern:"/v1/primus/webhooks",pathParams:[],flags:[{name:"url",coerce:null,optional:!1},{name:"events",coerce:"json",optional:!0}],scopes:["agent_webhooks:write"],idempotent:!1,isQuery:!1,summary:"Register an agent-event webhook endpoint for the caller's app + environment; the signing secret is answered exactly once."},{key:"primus.webhooks.list",commandPath:["primus","webhooks","list"],opId:"GET /v1/primus/webhooks",method:"GET",pattern:"/v1/primus/webhooks",pathParams:[],flags:[],scopes:["agent_webhooks:read"],idempotent:!1,isQuery:!0,summary:"List the caller's agent-event webhook endpoints (never the signing secret)."},{key:"primus.webhooks.remove",commandPath:["primus","webhooks","remove"],opId:"DELETE /v1/primus/webhooks/:webhookId",method:"DELETE",pattern:"/v1/primus/webhooks/:webhookId",pathParams:[{name:"webhookId",key:"webhookId"}],flags:[],scopes:["agent_webhooks:write"],idempotent:!0,isQuery:!1,summary:"Remove an agent-event webhook endpoint by gid (idempotent)."}]}});var i={contentHash:"d6f97f724c494689c7307f26fa9081b55303f9d0c6f4b7b9523b2f4a26172cb3",generatedAt:"contract-d6f97f724c494689c7307f26fa9081b55303f9d0c6f4b7b9523b2f4a26172cb3",commands:[{key:"account.environments.clone",commandPath:["account","environments","clone"],opId:"POST /v1/account/environments/:slug/clone",method:"POST",pattern:"/v1/account/environments/:slug/clone",pathParams:[{name:"slug",key:"slug"}],flags:[{name:"targetSlug",coerce:null,optional:!1},{name:"targetName",coerce:null,optional:!0},{name:"mode",coerce:null,optional:!0,choices:["config","config_and_data"]},{name:"confirmation",coerce:null,optional:!0}],scopes:["account:write"],idempotent:!1,isQuery:!1,summary:"Clone an environment into a new development environment (background job)."},{key:"account.environments.create",commandPath:["account","environments","create"],opId:"POST /v1/account/environments",method:"POST",pattern:"/v1/account/environments",pathParams:[],flags:[{name:"appId",coerce:null,optional:!0},{name:"name",coerce:null,optional:!1},{name:"slug",coerce:null,optional:!1},{name:"kind",coerce:null,optional:!1,choices:["development","production"]}],scopes:["account:write"],idempotent:!1,isQuery:!1,summary:"Create a logical environment (N development; production is a singleton)."},{key:"account.environments.list",commandPath:["account","environments","list"],opId:"GET /v1/account/environments",method:"GET",pattern:"/v1/account/environments",pathParams:[],flags:[],scopes:["account:read"],idempotent:!0,isQuery:!0,summary:"List the bound app's logical environments."},{key:"account.environments.show",commandPath:["account","environments","show"],opId:"GET /v1/account/environments/:slug",method:"GET",pattern:"/v1/account/environments/:slug",pathParams:[{name:"slug",key:"slug"}],flags:[],scopes:["account:read"],idempotent:!0,isQuery:!0,summary:"Show one of the bound app's environments by slug."},{key:"analytics.events.tail",commandPath:["analytics","events","tail"],opId:"GET /v1/analytics/events/tail",method:"GET",pattern:"/v1/analytics/events/tail",pathParams:[],flags:[{name:"appId",coerce:null,optional:!1},{name:"eventName",coerce:null,optional:!1},{name:"fromTs",coerce:"number",optional:!0},{name:"toTs",coerce:"number",optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["analytics:read"],idempotent:!0,isQuery:!1,summary:"Tail recent raw analytics events for the calling org (RLS-scoped)."},{key:"analytics.rollups.list",commandPath:["analytics","rollups","list"],opId:"GET /v1/analytics/rollups",method:"GET",pattern:"/v1/analytics/rollups",pathParams:[],flags:[{name:"appId",coerce:null,optional:!1},{name:"eventName",coerce:null,optional:!0},{name:"envId",coerce:null,optional:!0},{name:"granularity",coerce:null,optional:!0,choices:["minute","hour","day"]},{name:"start",coerce:"number",optional:!1},{name:"end",coerce:"number",optional:!1},{name:"pageSize",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0}],scopes:["analytics:read"],idempotent:!0,isQuery:!1,summary:"List the calling org's analytics rollups (paginated, RLS-scoped)."},{key:"analytics.sketches.percentile",commandPath:["analytics","sketches","percentile"],opId:"GET /v1/analytics/sketches/percentile",method:"GET",pattern:"/v1/analytics/sketches/percentile",pathParams:[],flags:[{name:"appId",coerce:null,optional:!1},{name:"envId",coerce:null,optional:!1},{name:"eventName",coerce:null,optional:!1},{name:"granularity",coerce:null,optional:!1,choices:["minute","hour","day"]},{name:"bucketStart",coerce:"number",optional:!1},{name:"dimensionName",coerce:null,optional:!1},{name:"quantile",coerce:"number",optional:!1}],scopes:["analytics:read"],idempotent:!0,isQuery:!1,summary:"Compute a t-digest percentile over a sketch bucket (RLS-scoped)."},{key:"analytics.sketches.topK",commandPath:["analytics","sketches","topK"],opId:"GET /v1/analytics/sketches/topk",method:"GET",pattern:"/v1/analytics/sketches/topk",pathParams:[],flags:[{name:"appId",coerce:null,optional:!1},{name:"envId",coerce:null,optional:!1},{name:"eventName",coerce:null,optional:!1},{name:"granularity",coerce:null,optional:!1,choices:["minute","hour","day"]},{name:"bucketStart",coerce:"number",optional:!1},{name:"dimensionName",coerce:null,optional:!1},{name:"n",coerce:"number",optional:!1}],scopes:["analytics:read"],idempotent:!0,isQuery:!1,summary:"Top-K dimension values over a sketch bucket (RLS-scoped)."},{key:"analytics.summary.snapshot",commandPath:["analytics","summary","snapshot"],opId:"GET /v1/analytics/summary",method:"GET",pattern:"/v1/analytics/summary",pathParams:[],flags:[{name:"appId",coerce:null,optional:!1},{name:"eventName",coerce:null,optional:!0},{name:"envId",coerce:null,optional:!0},{name:"start",coerce:"number",optional:!1},{name:"end",coerce:"number",optional:!1},{name:"granularity",coerce:null,optional:!0,choices:["minute","hour","day"]}],scopes:["analytics:read"],idempotent:!0,isQuery:!1,summary:"App overview over a window (server-summed series + per-event totals)."},{key:"audit.chain.verifyStatus",commandPath:["audit","chain","verifyStatus"],opId:"GET /v1/audit/chain/status",method:"GET",pattern:"/v1/audit/chain/status",pathParams:[],flags:[],scopes:["audit:read"],idempotent:!0,isQuery:!1,summary:"Hash-chain verification posture: newest signed chain-head anchor per source deployment."},{key:"audit.events.get",commandPath:["audit","events","get"],opId:"GET /v1/audit/events/get",method:"GET",pattern:"/v1/audit/events/get",pathParams:[],flags:[{name:"gid",coerce:null,optional:!1}],scopes:["audit:read"],idempotent:!0,isQuery:!1,summary:"Retrieve one of the calling org's federated hash-chained audit events by gid."},{key:"audit.events.list",commandPath:["audit","events","list"],opId:"GET /v1/audit/events/list",method:"GET",pattern:"/v1/audit/events/list",pathParams:[],flags:[{name:"appId",coerce:null,optional:!0},{name:"envId",coerce:null,optional:!0},{name:"action",coerce:null,optional:!0},{name:"rowActor",coerce:null,optional:!0},{name:"tenantId",coerce:null,optional:!0},{name:"cursor",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0},{name:"start",coerce:"number",optional:!0},{name:"end",coerce:"number",optional:!0}],scopes:["audit:read"],idempotent:!0,isQuery:!1,summary:"List the calling org's federated hash-chained audit events (paged, RLS-scoped)."},{key:"audit.events.stats",commandPath:["audit","events","stats"],opId:"GET /v1/audit/events/stats",method:"GET",pattern:"/v1/audit/events/stats",pathParams:[],flags:[{name:"appId",coerce:null,optional:!0},{name:"envId",coerce:null,optional:!0},{name:"start",coerce:"number",optional:!0},{name:"end",coerce:"number",optional:!0}],scopes:["audit:read"],idempotent:!0,isQuery:!1,summary:"Aggregate audit stat tiles for the calling org's window."},{key:"billing.connectAccounts.createAccountSession",commandPath:["billing","connectAccounts","createAccountSession"],opId:"POST /v1/billing/connect-accounts/session",method:"POST",pattern:"/v1/billing/connect-accounts/session",pathParams:[],flags:[{name:"components",coerce:"json",optional:!1}],scopes:["billing:write"],idempotent:!1,isQuery:!1,summary:"Create a Stripe Connect account session client secret for embedded components."},{key:"billing.connectAccounts.ensureConnectAccount",commandPath:["billing","connectAccounts","ensureConnectAccount"],opId:"POST /v1/billing/connect-accounts/ensure",method:"POST",pattern:"/v1/billing/connect-accounts/ensure",pathParams:[],flags:[{name:"country",coerce:null,optional:!0},{name:"email",coerce:null,optional:!0},{name:"name",coerce:null,optional:!0},{name:"businessType",coerce:null,optional:!0,choices:["individual","company","non_profit","government_entity"]}],scopes:["billing:write"],idempotent:!1,isQuery:!1,summary:"Ensure the calling org has a Stripe Connect account (create if missing)."},{key:"billing.credits.listCredits",commandPath:["billing","credits","listCredits"],opId:"GET /v1/billing/credits",method:"GET",pattern:"/v1/billing/credits",pathParams:[],flags:[{name:"sinceMs",coerce:"number",optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"List credit memos for the authenticated org."},{key:"billing.disputes.listDisputes",commandPath:["billing","disputes","listDisputes"],opId:"GET /v1/billing/disputes",method:"GET",pattern:"/v1/billing/disputes",pathParams:[],flags:[{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0},{name:"status",coerce:null,optional:!0}],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"List the calling org's payment disputes (RLS-scoped)."},{key:"billing.disputes.retrieveDispute",commandPath:["billing","disputes","retrieveDispute"],opId:"GET /v1/billing/disputes/:disputeId",method:"GET",pattern:"/v1/billing/disputes/:disputeId",pathParams:[{name:"disputeId",key:"disputeId"}],flags:[],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"Retrieve one dispute by id (RLS-scoped to the calling org)."},{key:"billing.dunning.getRecoveryStatus",commandPath:["billing","dunning","getRecoveryStatus"],opId:"GET /v1/billing/dunning/recovery-status",method:"GET",pattern:"/v1/billing/dunning/recovery-status",pathParams:[],flags:[],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"Get the calling org's dunning recovery status."},{key:"billing.dunning.listDelinquencies",commandPath:["billing","dunning","listDelinquencies"],opId:"GET /v1/billing/dunning",method:"GET",pattern:"/v1/billing/dunning",pathParams:[],flags:[{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0},{name:"state",coerce:null,optional:!0}],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"List the calling org's delinquency (dunning) records."},{key:"billing.feedListings.canSubscribeToListing",commandPath:["billing","feedListings","canSubscribeToListing"],opId:"GET /v1/billing/feed-listings/can-subscribe",method:"GET",pattern:"/v1/billing/feed-listings/can-subscribe",pathParams:[],flags:[{name:"listingGid",coerce:null,optional:!0}],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"Feed listing checkout."},{key:"billing.feedListings.getDefaultPaymentMethodPreview",commandPath:["billing","feedListings","getDefaultPaymentMethodPreview"],opId:"GET /v1/billing/feed-listings/default-payment-method-preview",method:"GET",pattern:"/v1/billing/feed-listings/default-payment-method-preview",pathParams:[],flags:[],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"Feed listing checkout."},{key:"billing.feedListings.subscribeToListing",commandPath:["billing","feedListings","subscribeToListing"],opId:"POST /v1/billing/feed-listings/subscribe",method:"POST",pattern:"/v1/billing/feed-listings/subscribe",pathParams:[],flags:[{name:"listingGid",coerce:null,optional:!1},{name:"listingName",coerce:null,optional:!1},{name:"publisherName",coerce:null,optional:!1},{name:"pricingModel",coerce:null,optional:!1},{name:"priceInCents",coerce:"number",optional:!1},{name:"trialDays",coerce:"number",optional:!0},{name:"tierName",coerce:null,optional:!0},{name:"billingCycle",coerce:null,optional:!0,choices:["monthly","yearly"]},{name:"revenueSplitBps",coerce:"number",optional:!0},{name:"buyerCountry",coerce:null,optional:!0},{name:"attemptKey",coerce:null,optional:!0},{name:"acceptedSubscriberAgreementVersion",coerce:null,optional:!0},{name:"acceptedListingLicenceVersion",coerce:null,optional:!0}],scopes:["billing:write"],idempotent:!1,isQuery:!1,summary:"Feed listing checkout."},{key:"billing.feedListings.subscribeToListingWithSavedCard",commandPath:["billing","feedListings","subscribeToListingWithSavedCard"],opId:"POST /v1/billing/feed-listings/subscribe-with-saved-card",method:"POST",pattern:"/v1/billing/feed-listings/subscribe-with-saved-card",pathParams:[],flags:[{name:"listingGid",coerce:null,optional:!1},{name:"listingName",coerce:null,optional:!1},{name:"publisherName",coerce:null,optional:!1},{name:"priceInCents",coerce:"number",optional:!1},{name:"billingCycle",coerce:null,optional:!0,choices:["monthly","yearly"]},{name:"tierName",coerce:null,optional:!0},{name:"revenueSplitBps",coerce:"number",optional:!0},{name:"trialDays",coerce:"number",optional:!0},{name:"buyerCountry",coerce:null,optional:!0},{name:"acceptedSubscriberAgreementVersion",coerce:null,optional:!0},{name:"acceptedListingLicenceVersion",coerce:null,optional:!0}],scopes:["billing:write"],idempotent:!1,isQuery:!1,summary:"Feed listing checkout."},{key:"billing.functions.listPlanCatalogue",commandPath:["billing","functions","listPlanCatalogue"],opId:"GET /v1/billing/plans/catalogue",method:"GET",pattern:"/v1/billing/plans/catalogue",pathParams:[],flags:[],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"List the plan catalogue (all tiers + pricing)."},{key:"billing.functions.listTierChangesForOrg",commandPath:["billing","functions","listTierChangesForOrg"],opId:"GET /v1/billing/plans/tier-changes",method:"GET",pattern:"/v1/billing/plans/tier-changes",pathParams:[],flags:[{name:"limit",coerce:"number",optional:!0}],scopes:["billing:read"],idempotent:!0,isQuery:!0,summary:"Recent tier changes for the calling org, newest first (limit \u2264 200, default 50)."},{key:"billing.functions.setBillingAddress",commandPath:["billing","functions","setBillingAddress"],opId:"PATCH /v1/billing/account/address",method:"PATCH",pattern:"/v1/billing/account/address",pathParams:[],flags:[{name:"line1",coerce:null,optional:!1},{name:"line2",coerce:null,optional:!0},{name:"city",coerce:null,optional:!1},{name:"region",coerce:null,optional:!1},{name:"postalCode",coerce:null,optional:!1},{name:"country",coerce:null,optional:!1}],scopes:["billing:write"],idempotent:!0,isQuery:!1,summary:"Set the calling org's billing address (Stripe Tax jurisdiction)."},{key:"billing.functions.updateBillingEmail",commandPath:["billing","functions","updateBillingEmail"],opId:"PATCH /v1/billing/account/email",method:"PATCH",pattern:"/v1/billing/account/email",pathParams:[],flags:[{name:"billingEmail",coerce:null,optional:!1}],scopes:["billing:write"],idempotent:!0,isQuery:!1,summary:"Update the calling org's billing email."},{key:"billing.invoices.getInvoicePdfUrl",commandPath:["billing","invoices","getInvoicePdfUrl"],opId:"GET /v1/billing/invoices/:invoiceId/pdf",method:"GET",pattern:"/v1/billing/invoices/:invoiceId/pdf",pathParams:[{name:"invoiceId",key:"invoiceId"}],flags:[],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"Get a short-lived PDF download URL for one invoice."},{key:"billing.invoices.listInvoices",commandPath:["billing","invoices","listInvoices"],opId:"GET /v1/billing/invoices",method:"GET",pattern:"/v1/billing/invoices",pathParams:[],flags:[{name:"limit",coerce:"number",optional:!0},{name:"startingAfter",coerce:null,optional:!0},{name:"createdAfter",coerce:"number",optional:!0},{name:"createdBefore",coerce:"number",optional:!0},{name:"status",coerce:null,optional:!0,choices:["paid","open","past_due","uncollectible","void","draft"]}],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"List the calling org's invoices (RLS-scoped)."},{key:"billing.invoices.retrieveInvoice",commandPath:["billing","invoices","retrieveInvoice"],opId:"GET /v1/billing/invoices/:invoiceId",method:"GET",pattern:"/v1/billing/invoices/:invoiceId",pathParams:[{name:"invoiceId",key:"invoiceId"}],flags:[],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"Retrieve one invoice by id (RLS-scoped to the calling org)."},{key:"billing.paymentMethods.attachPaymentMethod",commandPath:["billing","paymentMethods","attachPaymentMethod"],opId:"POST /v1/billing/payment-methods/attach",method:"POST",pattern:"/v1/billing/payment-methods/attach",pathParams:[],flags:[{name:"paymentMethodId",coerce:null,optional:!1},{name:"setAsDefault",coerce:"boolean",optional:!0}],scopes:["billing:write"],idempotent:!1,isQuery:!1,summary:"Attach a payment method to the calling org's customer."},{key:"billing.paymentMethods.detachPaymentMethod",commandPath:["billing","paymentMethods","detachPaymentMethod"],opId:"POST /v1/billing/payment-methods/detach",method:"POST",pattern:"/v1/billing/payment-methods/detach",pathParams:[],flags:[{name:"paymentMethodId",coerce:null,optional:!1},{name:"moveDefaultTo",coerce:null,optional:!0}],scopes:["billing:write"],idempotent:!1,isQuery:!1,summary:"Detach a payment method from the calling org's customer."},{key:"billing.paymentMethods.listPaymentMethods",commandPath:["billing","paymentMethods","listPaymentMethods"],opId:"GET /v1/billing/payment-methods",method:"GET",pattern:"/v1/billing/payment-methods",pathParams:[],flags:[],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"List the calling org's saved payment methods."},{key:"billing.paymentMethods.setDefaultPaymentMethod",commandPath:["billing","paymentMethods","setDefaultPaymentMethod"],opId:"POST /v1/billing/payment-methods/set-default",method:"POST",pattern:"/v1/billing/payment-methods/set-default",pathParams:[],flags:[{name:"paymentMethodId",coerce:null,optional:!1}],scopes:["billing:write"],idempotent:!1,isQuery:!1,summary:"Set the calling org's default payment method."},{key:"billing.payouts.getEarningsSummary",commandPath:["billing","payouts","getEarningsSummary"],opId:"GET /v1/billing/earnings/summary",method:"GET",pattern:"/v1/billing/earnings/summary",pathParams:[],flags:[{name:"sinceMs",coerce:"number",optional:!0}],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"Rollup over the publisher's payouts (sums + per-period breakdown)."},{key:"billing.payouts.getRevenueSummary",commandPath:["billing","payouts","getRevenueSummary"],opId:"GET /v1/billing/revenue/summary",method:"GET",pattern:"/v1/billing/revenue/summary",pathParams:[],flags:[{name:"sinceMs",coerce:"number",optional:!0}],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"Publisher revenue from the destination charges of its paid listings."},{key:"billing.payouts.list",commandPath:["billing","payouts","list"],opId:"GET /v1/feeds/payouts",method:"GET",pattern:"/v1/feeds/payouts",pathParams:[],flags:[{name:"cursor",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"Your released payouts, newest first, and your balance as the billing service reads it: available, held back by the 14-day hold, and open debts beside them."},{key:"billing.payouts.listPayouts",commandPath:["billing","payouts","listPayouts"],opId:"GET /v1/billing/payouts",method:"GET",pattern:"/v1/billing/payouts",pathParams:[],flags:[{name:"sinceMs",coerce:"number",optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"List the calling publisher org's payout history (RLS-scoped)."},{key:"billing.revenue.customer",commandPath:["billing","revenue","customer"],opId:"GET /v1/feeds/revenue/customers/:subscriptionId",method:"GET",pattern:"/v1/feeds/revenue/customers/:subscriptionId",pathParams:[{name:"subscriptionGid",key:"subscriptionId"}],flags:[{name:"sinceMs",coerce:"number",optional:!0}],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"Revenue from one of your customers on its listing, summed from the payment ledger; failed and pending payments are never counted."},{key:"billing.revenue.listings",commandPath:["billing","revenue","listings"],opId:"GET /v1/feeds/revenue/listings",method:"GET",pattern:"/v1/feeds/revenue/listings",pathParams:[],flags:[{name:"sinceMs",coerce:"number",optional:!0}],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"Revenue per listing you publish, summed from the payment ledger; failed and pending payments are never counted."},{key:"billing.subscriptions.accountStatus",commandPath:["billing","subscriptions","accountStatus"],opId:"GET /v1/billing/account-status",method:"GET",pattern:"/v1/billing/account-status",pathParams:[],flags:[],scopes:["billing:read"],idempotent:!0,isQuery:!0,summary:"The calling org's plan/trial standing: tier, days left, and the upgrade pointer."},{key:"billing.subscriptions.applyTierChange",commandPath:["billing","subscriptions","applyTierChange"],opId:"POST /v1/billing/subscriptions/tier-change",method:"POST",pattern:"/v1/billing/subscriptions/tier-change",pathParams:[],flags:[{name:"newTier",coerce:null,optional:!1,choices:["signal","relay","mesh"]},{name:"newInterval",coerce:null,optional:!0,choices:["monthly","annual"]}],scopes:["billing:write"],idempotent:!1,isQuery:!1,summary:"Apply a tier/interval change to the calling org's subscription."},{key:"billing.subscriptions.cancelSubscription",commandPath:["billing","subscriptions","cancelSubscription"],opId:"POST /v1/billing/subscriptions/cancel",method:"POST",pattern:"/v1/billing/subscriptions/cancel",pathParams:[],flags:[{name:"immediate",coerce:"boolean",optional:!0}],scopes:["billing:write"],idempotent:!1,isQuery:!1,summary:"Cancel the calling org's subscription (at period end)."},{key:"billing.subscriptions.confirmSubscriptionPayment",commandPath:["billing","subscriptions","confirmSubscriptionPayment"],opId:"POST /v1/billing/subscriptions/confirm-payment",method:"POST",pattern:"/v1/billing/subscriptions/confirm-payment",pathParams:[],flags:[{name:"subscriptionId",coerce:null,optional:!1}],scopes:["billing:write"],idempotent:!0,isQuery:!1,summary:"Confirm the latest invoice payment after SCA / 3DS."},{key:"billing.subscriptions.createSetupIntent",commandPath:["billing","subscriptions","createSetupIntent"],opId:"POST /v1/billing/payment-methods/setup-intent",method:"POST",pattern:"/v1/billing/payment-methods/setup-intent",pathParams:[],flags:[],scopes:["billing:write"],idempotent:!1,isQuery:!1,summary:"Create a Stripe SetupIntent to collect a payment method."},{key:"billing.subscriptions.createSubscription",commandPath:["billing","subscriptions","createSubscription"],opId:"POST /v1/billing/subscriptions",method:"POST",pattern:"/v1/billing/subscriptions",pathParams:[],flags:[{name:"tier",coerce:null,optional:!1,choices:["signal","relay","mesh"]},{name:"interval",coerce:null,optional:!1,choices:["monthly","annual"]},{name:"paymentMethodId",coerce:null,optional:!0},{name:"trialDays",coerce:"number",optional:!0}],scopes:["billing:write"],idempotent:!1,isQuery:!1,summary:"Subscribe the calling org to a tier (default_incomplete)."},{key:"billing.subscriptions.listSubscriptions",commandPath:["billing","subscriptions","listSubscriptions"],opId:"GET /v1/billing/subscriptions",method:"GET",pattern:"/v1/billing/subscriptions",pathParams:[],flags:[{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0},{name:"status",coerce:null,optional:!0}],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"List the calling org's subscriptions (RLS-scoped)."},{key:"billing.subscriptions.previewTierChange",commandPath:["billing","subscriptions","previewTierChange"],opId:"POST /v1/billing/subscriptions/preview",method:"POST",pattern:"/v1/billing/subscriptions/preview",pathParams:[],flags:[{name:"newTier",coerce:null,optional:!1,choices:["signal","relay","mesh"]},{name:"newInterval",coerce:null,optional:!0,choices:["monthly","annual"]}],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"Preview proration for a tier/interval change."},{key:"billing.subscriptions.reactivateSubscription",commandPath:["billing","subscriptions","reactivateSubscription"],opId:"POST /v1/billing/subscriptions/reactivate",method:"POST",pattern:"/v1/billing/subscriptions/reactivate",pathParams:[],flags:[],scopes:["billing:write"],idempotent:!1,isQuery:!1,summary:"Reactivate a subscription scheduled to cancel at period end."},{key:"billing.subscriptions.retrieveSubscription",commandPath:["billing","subscriptions","retrieveSubscription"],opId:"GET /v1/billing/subscriptions/:subscriptionId",method:"GET",pattern:"/v1/billing/subscriptions/:subscriptionId",pathParams:[{name:"subscriptionId",key:"subscriptionId"}],flags:[],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"Retrieve one subscription by id (RLS-scoped to the calling org)."},{key:"billing.tax.previewTax",commandPath:["billing","tax","previewTax"],opId:"POST /v1/billing/tax/preview",method:"POST",pattern:"/v1/billing/tax/preview",pathParams:[],flags:[{name:"amountCents",coerce:"number",optional:!1},{name:"customer",coerce:"json",optional:!1},{name:"customerTaxIds",coerce:"json",optional:!0},{name:"tierReference",coerce:null,optional:!0}],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"Preview the tax Stripe Tax computes on an amount for a customer's location and tax ids."},{key:"billing.taxIds.addTaxId",commandPath:["billing","taxIds","addTaxId"],opId:"POST /v1/billing/tax-ids",method:"POST",pattern:"/v1/billing/tax-ids",pathParams:[],flags:[{name:"type",coerce:null,optional:!1},{name:"value",coerce:null,optional:!1}],scopes:["billing:write"],idempotent:!1,isQuery:!1,summary:"Add a tax ID to the calling org."},{key:"billing.taxIds.listTaxIds",commandPath:["billing","taxIds","listTaxIds"],opId:"GET /v1/billing/tax-ids",method:"GET",pattern:"/v1/billing/tax-ids",pathParams:[],flags:[],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"List the calling org's tax IDs (RLS-scoped)."},{key:"billing.taxIds.removeTaxId",commandPath:["billing","taxIds","removeTaxId"],opId:"DELETE /v1/billing/tax-ids/:taxIdId",method:"DELETE",pattern:"/v1/billing/tax-ids/:taxIdId",pathParams:[{name:"taxIdId",key:"taxIdId"}],flags:[],scopes:["billing:write"],idempotent:!1,isQuery:!1,summary:"Remove a tax ID from the calling org by id."},{key:"billing.testClocks.advanceTestClock",commandPath:["billing","testClocks","advanceTestClock"],opId:"POST /v1/billing/test-clock/advance",method:"POST",pattern:"/v1/billing/test-clock/advance",pathParams:[],flags:[{name:"frozenTime",coerce:"number",optional:!1}],scopes:["billing:write"],idempotent:!1,isQuery:!1,summary:"Advance the calling org's Stripe TEST clock to frozenTime (test environments only; refused in production)."},{key:"billing.usage.getQuotas",commandPath:["billing","usage","getQuotas"],opId:"GET /v1/billing/usage/quotas",method:"GET",pattern:"/v1/billing/usage/quotas",pathParams:[],flags:[],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"Per-tier snapshot quotas (limit / current / remaining) for the calling org."},{key:"billing.usage.getUsageSummary",commandPath:["billing","usage","getUsageSummary"],opId:"GET /v1/billing/usage/summary",method:"GET",pattern:"/v1/billing/usage/summary",pathParams:[],flags:[{name:"periodStart",coerce:"number",optional:!0},{name:"periodEnd",coerce:"number",optional:!0}],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"Current-cycle usage summary for the calling org."},{key:"connect.connect.approveAccess",commandPath:["connect","connect","approveAccess"],opId:"POST /v1/connect/grants/:grantId/approve",method:"POST",pattern:"/v1/connect/grants/:grantId/approve",pathParams:[{name:"grantId",key:"grantId"}],flags:[{name:"rateLimit",coerce:"json",optional:!0},{name:"expiresAt",coerce:"number",optional:!0}],scopes:["grants:write"],idempotent:!1,isQuery:!1,summary:"Approve a pending access grant (publisher only)."},{key:"connect.connect.confirmBridge",commandPath:["connect","connect","confirmBridge"],opId:"POST /v1/connect/bridges/:bridgeGid/confirm",method:"POST",pattern:"/v1/connect/bridges/:bridgeGid/confirm",pathParams:[{name:"gid",key:"bridgeGid"}],flags:[],scopes:["bridges:write"],idempotent:!1,isQuery:!1,summary:"Confirm a pending identity bridge (target party)."},{key:"connect.connect.createBridge",commandPath:["connect","connect","createBridge"],opId:"POST /v1/connect/bridges",method:"POST",pattern:"/v1/connect/bridges",pathParams:[],flags:[{name:"targetOrgGID",coerce:null,optional:!1},{name:"entityTypeSlug",coerce:null,optional:!1}],scopes:["bridges:write"],idempotent:!1,isQuery:!1,summary:"Create an identity bridge (admin-first; caller org becomes source)."},{key:"connect.connect.initiateTenantApproval",commandPath:["connect","connect","initiateTenantApproval"],opId:"POST /v1/connect/tenant-approvals",method:"POST",pattern:"/v1/connect/tenant-approvals",pathParams:[],flags:[{name:"grantId",coerce:null,optional:!1},{name:"tenantId",coerce:null,optional:!1},{name:"tenantDisplayName",coerce:null,optional:!0},{name:"redirectUri",coerce:null,optional:!0},{name:"originFingerprint",coerce:null,optional:!0}],scopes:["tenant_approvals:write"],idempotent:!1,isQuery:!1,summary:"Initiate a tenant consent challenge (admin-first; PUBLISHER org, platform app only)."},{key:"connect.connect.listPartnerAppTenantApprovals",commandPath:["connect","connect","listPartnerAppTenantApprovals"],opId:"GET /v1/connect/partner/apps/:appId/tenant-approvals",method:"GET",pattern:"/v1/connect/partner/apps/:appId/tenant-approvals",pathParams:[{name:"targetAppId",key:"appId"}],flags:[{name:"status",coerce:null,optional:!0,choices:["active","revoked","frozen","delisted","expired"]},{name:"cursor",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["partner:read"],idempotent:!0,isQuery:!0,summary:"List a partner-governed app's tenant approvals (read side)."},{key:"connect.connect.listPartnerGovernedApps",commandPath:["connect","connect","listPartnerGovernedApps"],opId:"GET /v1/connect/partner/apps",method:"GET",pattern:"/v1/connect/partner/apps",pathParams:[],flags:[{name:"cursor",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["partner:read"],idempotent:!0,isQuery:!0,summary:"List the apps a Connect partner governs (read side of partner governance)."},{key:"connect.connect.listRevocationAudit",commandPath:["connect","connect","listRevocationAudit"],opId:"GET /v1/connect/grants/:grantId/audit",method:"GET",pattern:"/v1/connect/grants/:grantId/audit",pathParams:[{name:"grantId",key:"grantId"}],flags:[],scopes:["grants:read"],idempotent:!0,isQuery:!0,summary:"A grant's revocation audit entries \u2014 its own and its tenant approvals' \u2014 for either party (audit right, transparency right)."},{key:"connect.connect.partnerDelistApp",commandPath:["connect","connect","partnerDelistApp"],opId:"POST /v1/connect/partner/apps/:appId/delist",method:"POST",pattern:"/v1/connect/partner/apps/:appId/delist",pathParams:[{name:"targetAppId",key:"appId"}],flags:[{name:"reason",coerce:null,optional:!0}],scopes:["partner:admin"],idempotent:!1,isQuery:!1,summary:"Delist a partner-governed app from the marketplace (platform operator)."},{key:"connect.connect.partnerFreezeApp",commandPath:["connect","connect","partnerFreezeApp"],opId:"POST /v1/connect/partner/apps/:appId/freeze",method:"POST",pattern:"/v1/connect/partner/apps/:appId/freeze",pathParams:[{name:"targetAppId",key:"appId"}],flags:[{name:"reason",coerce:null,optional:!1}],scopes:["partner:admin"],idempotent:!1,isQuery:!1,summary:"Freeze a partner-governed app (platform operator)."},{key:"connect.connect.partnerOverrideTenantApproval",commandPath:["connect","connect","partnerOverrideTenantApproval"],opId:"POST /v1/connect/partner/tenant-approvals/:approvalGid/override",method:"POST",pattern:"/v1/connect/partner/tenant-approvals/:approvalGid/override",pathParams:[{name:"targetTenantApprovalGid",key:"approvalGid"}],flags:[{name:"action",coerce:null,optional:!1,choices:["approve","revoke"]},{name:"reason",coerce:null,optional:!1}],scopes:["partner:admin"],idempotent:!1,isQuery:!1,summary:"Override a tenant approval decision (platform operator)."},{key:"connect.connect.partnerReinstateApp",commandPath:["connect","connect","partnerReinstateApp"],opId:"POST /v1/connect/partner/apps/:appId/reinstate",method:"POST",pattern:"/v1/connect/partner/apps/:appId/reinstate",pathParams:[{name:"targetAppId",key:"appId"}],flags:[{name:"reason",coerce:null,optional:!0}],scopes:["partner:admin"],idempotent:!0,isQuery:!1,summary:"Reinstate a frozen partner-governed app (platform operator)."},{key:"connect.connect.rejectAccess",commandPath:["connect","connect","rejectAccess"],opId:"POST /v1/connect/grants/:grantId/reject",method:"POST",pattern:"/v1/connect/grants/:grantId/reject",pathParams:[{name:"grantId",key:"grantId"}],flags:[{name:"reason",coerce:null,optional:!1}],scopes:["grants:write"],idempotent:!1,isQuery:!1,summary:"Reject a pending access grant (publisher only)."},{key:"connect.connect.requestAccess",commandPath:["connect","connect","requestAccess"],opId:"POST /v1/connect/grants",method:"POST",pattern:"/v1/connect/grants",pathParams:[],flags:[{name:"publisherAppId",coerce:null,optional:!1},{name:"publisherOrgId",coerce:null,optional:!0},{name:"eventTypes",coerce:"json",optional:!1},{name:"purpose",coerce:null,optional:!0},{name:"estimatedVolume",coerce:null,optional:!0},{name:"subscriberAppId",coerce:null,optional:!1},{name:"rateLimit",coerce:"json",optional:!0},{name:"scope",coerce:"json",optional:!0}],scopes:["grants:write"],idempotent:!1,isQuery:!1,summary:"Request access to a publisher app's events (creates a pending grant)."},{key:"connect.connect.revokeGrant",commandPath:["connect","connect","revokeGrant"],opId:"POST /v1/connect/grants/:grantId/revoke",method:"POST",pattern:"/v1/connect/grants/:grantId/revoke",pathParams:[{name:"grantId",key:"grantId"}],flags:[{name:"reasonText",coerce:null,optional:!0},{name:"source",coerce:null,optional:!0,choices:["dashboard","api","webhook"]},{name:"requestContext",coerce:"json",optional:!0}],scopes:["grants:write"],idempotent:!1,isQuery:!1,summary:"Revoke an active or pending access grant (either party)."},{key:"connect.connect.revokeTenantApproval",commandPath:["connect","connect","revokeTenantApproval"],opId:"POST /v1/connect/tenant-approvals/:approvalGid/revoke",method:"POST",pattern:"/v1/connect/tenant-approvals/:approvalGid/revoke",pathParams:[{name:"approvalId",key:"approvalGid"}],flags:[{name:"reasonText",coerce:null,optional:!0},{name:"source",coerce:null,optional:!0,choices:["dashboard","api","webhook"]},{name:"requestContext",coerce:"json",optional:!0}],scopes:["tenant_approvals:write"],idempotent:!1,isQuery:!1,summary:"Revoke an active tenant approval (admin-first)."},{key:"connect.connect.updateAppProfile",commandPath:["connect","connect","updateAppProfile"],opId:"PATCH /v1/connect/profile/:appId",method:"PATCH",pattern:"/v1/connect/profile/:appId",pathParams:[{name:"appId",key:"appId"}],flags:[{name:"connectVisibility",coerce:null,optional:!0,choices:["public","listed","unlisted","private"]},{name:"connectDescription",coerce:null,optional:!0},{name:"publishedEventTypes",coerce:"json",optional:!0},{name:"platformSlug",coerce:null,optional:!0},{name:"complianceBadges",coerce:"json",optional:!0},{name:"supportContact",coerce:"json",optional:!0}],scopes:["profile:write"],idempotent:!1,isQuery:!1,summary:"Update the caller org's own app connect profile (admin-first)."},{key:"connect.identityBridges.archiveBridge",commandPath:["connect","identityBridges","archiveBridge"],opId:"POST /v1/connect/bridges/:bridgeGid/archive",method:"POST",pattern:"/v1/connect/bridges/:bridgeGid/archive",pathParams:[{name:"gid",key:"bridgeGid"}],flags:[],scopes:["connect:write"],idempotent:!1,isQuery:!1,summary:"Archive an identity bridge (irreversible; revokes derived consent + grant)."},{key:"connect.identityBridges.suspendBridge",commandPath:["connect","identityBridges","suspendBridge"],opId:"POST /v1/connect/bridges/:bridgeGid/suspend",method:"POST",pattern:"/v1/connect/bridges/:bridgeGid/suspend",pathParams:[{name:"gid",key:"bridgeGid"}],flags:[],scopes:["bridges:write"],idempotent:!1,isQuery:!1,summary:"Suspend an active identity bridge (temporary pause)."},{key:"connect.publishGrants.create",commandPath:["connect","publishGrants","create"],opId:"POST /v1/connect/publish-grants",method:"POST",pattern:"/v1/connect/publish-grants",pathParams:[],flags:[{name:"channelId",coerce:null,optional:!1},{name:"producerAppId",coerce:null,optional:!1},{name:"expiresAt",coerce:"number",optional:!0}],scopes:["connect:write"],idempotent:!0,isQuery:!1,summary:"Grant one producer app of another organization the right to publish to one of your channels."},{key:"connect.publishGrants.list",commandPath:["connect","publishGrants","list"],opId:"GET /v1/connect/publish-grants",method:"GET",pattern:"/v1/connect/publish-grants",pathParams:[],flags:[{name:"direction",coerce:null,optional:!1,choices:["granted","held"]},{name:"status",coerce:null,optional:!0},{name:"cursor",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["connect:read"],idempotent:!0,isQuery:!0,summary:"List the publish grants your organization granted or holds."},{key:"connect.publishGrants.pause",commandPath:["connect","publishGrants","pause"],opId:"POST /v1/connect/publish-grants/:id/pause",method:"POST",pattern:"/v1/connect/publish-grants/:id/pause",pathParams:[{name:"id",key:"id"}],flags:[],scopes:["connect:write"],idempotent:!1,isQuery:!1,summary:"Pause a publish grant you issued (reversible)."},{key:"connect.publishGrants.resume",commandPath:["connect","publishGrants","resume"],opId:"POST /v1/connect/publish-grants/:id/resume",method:"POST",pattern:"/v1/connect/publish-grants/:id/resume",pathParams:[{name:"id",key:"id"}],flags:[],scopes:["connect:write"],idempotent:!1,isQuery:!1,summary:"Resume a paused publish grant you issued."},{key:"connect.publishGrants.retrieve",commandPath:["connect","publishGrants","retrieve"],opId:"GET /v1/connect/publish-grants/:id",method:"GET",pattern:"/v1/connect/publish-grants/:id",pathParams:[{name:"id",key:"id"}],flags:[],scopes:["connect:read"],idempotent:!0,isQuery:!0,summary:"Retrieve one publish grant you are a party of."},{key:"connect.publishGrants.revoke",commandPath:["connect","publishGrants","revoke"],opId:"POST /v1/connect/publish-grants/:id/revoke",method:"POST",pattern:"/v1/connect/publish-grants/:id/revoke",pathParams:[{name:"id",key:"id"}],flags:[],scopes:["connect:write"],idempotent:!1,isQuery:!1,summary:"Revoke a publish grant (terminal) \u2014 the channel owner revokes, the producer renounces."},{key:"embed.origins.list",commandPath:["embed","origins","list"],opId:"GET /v1/embed/origins",method:"GET",pattern:"/v1/embed/origins",pathParams:[],flags:[{name:"appGID",coerce:null,optional:!1},{name:"envId",coerce:null,optional:!1}],scopes:["embed:read"],idempotent:!0,isQuery:!0,summary:"List an app/env's registered embed origins."},{key:"embed.origins.set",commandPath:["embed","origins","set"],opId:"PUT /v1/embed/origins",method:"PUT",pattern:"/v1/embed/origins",pathParams:[],flags:[{name:"appGID",coerce:null,optional:!1},{name:"envId",coerce:null,optional:!1},{name:"allowedOrigins",coerce:"json",optional:!1}],scopes:["embed:write"],idempotent:!0,isQuery:!1,summary:"Replace an app/env's embed origin allowlist (owner-scoped)."},{key:"embed.sessions.create",commandPath:["embed","sessions","create"],opId:"POST /v1/embed/sessions",method:"POST",pattern:"/v1/embed/sessions",pathParams:[],flags:[{name:"appId",coerce:null,optional:!1},{name:"envId",coerce:null,optional:!0},{name:"tenantId",coerce:null,optional:!1},{name:"features",coerce:"json",optional:!0},{name:"components",coerce:"json",optional:!0},{name:"mode",coerce:null,optional:!0,choices:["custom","isolated"]},{name:"permissions",coerce:"json",optional:!0},{name:"expiresInSeconds",coerce:"number",optional:!0},{name:"returnUrl",coerce:null,optional:!0},{name:"attestedSubject",coerce:null,optional:!0}],scopes:["embed:write"],idempotent:!1,isQuery:!1,summary:"Mint an embed session for a browser component (tenant-attenuated)."},{key:"embed.sessions.revoke",commandPath:["embed","sessions","revoke"],opId:"POST /v1/embed/sessions/:sessionGid/revoke",method:"POST",pattern:"/v1/embed/sessions/:sessionGid/revoke",pathParams:[{name:"sessionGid",key:"sessionGid"}],flags:[],scopes:["embed:write"],idempotent:!0,isQuery:!1,summary:"Revoke an embed session \u2014 a subsequent edge exchange fails closed."},{key:"feed.listings.archive",commandPath:["feed","listings","archive"],opId:"DELETE /v1/feeds/listings/:listingId",method:"DELETE",pattern:"/v1/feeds/listings/:listingId",pathParams:[{name:"listingGid",key:"listingId"}],flags:[],scopes:["listings:write"],idempotent:!0,isQuery:!1,summary:"Archive a listing and cancel its subscriptions at once."},{key:"feed.listings.canCreateListing",commandPath:["feed","listings","canCreateListing"],opId:"GET /v1/feeds/publisher-eligibility",method:"GET",pattern:"/v1/feeds/publisher-eligibility",pathParams:[],flags:[],scopes:["listings:read"],idempotent:!0,isQuery:!0,summary:"Check whether the calling org may create listings (production-app gate)."},{key:"feed.listings.create",commandPath:["feed","listings","create"],opId:"POST /v1/feeds/listings",method:"POST",pattern:"/v1/feeds/listings",pathParams:[],flags:[{name:"publisherGid",coerce:null,optional:!1},{name:"channelGid",coerce:null,optional:!1},{name:"cellId",coerce:null,optional:!1},{name:"name",coerce:null,optional:!1},{name:"slug",coerce:null,optional:!1},{name:"description",coerce:null,optional:!1},{name:"shortDescription",coerce:null,optional:!0},{name:"iconStorageId",coerce:null,optional:!0},{name:"bannerStorageId",coerce:null,optional:!0},{name:"documentationUrl",coerce:null,optional:!0},{name:"samplePayload",coerce:null,optional:!0},{name:"category",coerce:null,optional:!1},{name:"tags",coerce:"json",optional:!1},{name:"pricing",coerce:"json",optional:!1},{name:"visibility",coerce:null,optional:!0,choices:["public","unlisted","private"]},{name:"environment",coerce:null,optional:!0,choices:["sandbox","production"]},{name:"licence",coerce:"json",optional:!0}],scopes:["listings:write"],idempotent:!1,isQuery:!1,summary:"Create a draft listing in the canonical catalog."},{key:"feed.listings.generateUploadUrl",commandPath:["feed","listings","generateUploadUrl"],opId:"POST /v1/feeds/listings/upload-url",method:"POST",pattern:"/v1/feeds/listings/upload-url",pathParams:[],flags:[],scopes:["listings:write"],idempotent:!1,isQuery:!1,summary:"Mint a single-use upload URL for a listing icon or banner."},{key:"feed.listings.getByGid",commandPath:["feed","listings","getByGid"],opId:"GET /v1/feeds/listings/:listingId",method:"GET",pattern:"/v1/feeds/listings/:listingId",pathParams:[{name:"gid",key:"listingId"}],flags:[],scopes:["listings:read"],idempotent:!0,isQuery:!0,summary:"Get a single listing by its global id."},{key:"feed.listings.getBySlug",commandPath:["feed","listings","getBySlug"],opId:"GET /v1/feeds/publishers/:publisherSlug/listings/:listingSlug",method:"GET",pattern:"/v1/feeds/publishers/:publisherSlug/listings/:listingSlug",pathParams:[{name:"publisherSlug",key:"publisherSlug"},{name:"listingSlug",key:"listingSlug"}],flags:[],scopes:["listings:read"],idempotent:!0,isQuery:!0,summary:"Get a single listing by its publisher-namespaced slug."},{key:"feed.listings.listByPublisherWire",commandPath:["feed","listings","listByPublisherWire"],opId:"GET /v1/feeds/publishers/:publisherId/listings",method:"GET",pattern:"/v1/feeds/publishers/:publisherId/listings",pathParams:[{name:"publisherGid",key:"publisherId"}],flags:[{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0}],scopes:["listings:read"],idempotent:!0,isQuery:!0,summary:"List a publisher's own listings (any status) as a bounded page \u2014 { page, isDone, continueCursor }; limit (default 50, cap 200) + cursor. RLS-scoped to the caller org."},{key:"feed.listings.listEligibleListingChannelApps",commandPath:["feed","listings","listEligibleListingChannelApps"],opId:"GET /v1/feeds/listing-eligible-apps",method:"GET",pattern:"/v1/feeds/listing-eligible-apps",pathParams:[],flags:[],scopes:["listings:read"],idempotent:!0,isQuery:!0,summary:"App GIDs eligible to back a feed listing (have both sandbox + production envs)."},{key:"feed.listings.listPublished",commandPath:["feed","listings","listPublished"],opId:"GET /v1/feeds/listings",method:"GET",pattern:"/v1/feeds/listings",pathParams:[],flags:[{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0},{name:"domain",coerce:null,optional:!0},{name:"category",coerce:null,optional:!0},{name:"priceTier",coerce:null,optional:!0,choices:["free","flat_rate","usage_based","tiered"]},{name:"query",coerce:null,optional:!0},{name:"environment",coerce:null,optional:!0,choices:["sandbox","production"]}],scopes:["listings:read"],idempotent:!0,isQuery:!0,summary:"List published, public listings in the global catalog."},{key:"feed.listings.publish",commandPath:["feed","listings","publish"],opId:"POST /v1/feeds/listings/:listingId/publish",method:"POST",pattern:"/v1/feeds/listings/:listingId/publish",pathParams:[{name:"listingGid",key:"listingId"}],flags:[],scopes:["listings:write"],idempotent:!0,isQuery:!1,summary:"Publish an approved listing to the marketplace."},{key:"feed.listings.resolveByRef",commandPath:["feed","listings","resolveByRef"],opId:"GET /v1/feeds/resolve/:publisherSlug/:listingSlug",method:"GET",pattern:"/v1/feeds/resolve/:publisherSlug/:listingSlug",pathParams:[{name:"publisherSlug",key:"publisherSlug"},{name:"listingSlug",key:"listingSlug"}],flags:[],scopes:["listings:read"],idempotent:!0,isQuery:!0,summary:"Resolve a feed listing by its reference <publisherSlug>/<listingSlug> \u2014 gid, store facts, pricing and the two acceptance versions in one read."},{key:"feed.listings.submitForReview",commandPath:["feed","listings","submitForReview"],opId:"POST /v1/feeds/listings/:listingId/submit",method:"POST",pattern:"/v1/feeds/listings/:listingId/submit",pathParams:[{name:"listingGid",key:"listingId"}],flags:[{name:"acceptedOwnershipDeclarationVersion",coerce:null,optional:!0}],scopes:["listings:write"],idempotent:!0,isQuery:!1,summary:"Submit a draft listing for marketplace review."},{key:"feed.listings.unpublish",commandPath:["feed","listings","unpublish"],opId:"POST /v1/feeds/listings/:listingId/unpublish",method:"POST",pattern:"/v1/feeds/listings/:listingId/unpublish",pathParams:[{name:"listingGid",key:"listingId"}],flags:[],scopes:["listings:write"],idempotent:!0,isQuery:!1,summary:"Take a live listing off the marketplace back to draft."},{key:"feed.listings.update",commandPath:["feed","listings","update"],opId:"POST /v1/feeds/listings/:listingId",method:"POST",pattern:"/v1/feeds/listings/:listingId",pathParams:[{name:"listingGid",key:"listingId"}],flags:[{name:"name",coerce:null,optional:!0},{name:"description",coerce:null,optional:!0},{name:"shortDescription",coerce:null,optional:!0},{name:"iconStorageId",coerce:null,optional:!0},{name:"bannerStorageId",coerce:null,optional:!0},{name:"documentationUrl",coerce:null,optional:!0},{name:"samplePayload",coerce:null,optional:!0},{name:"sla",coerce:"json",optional:!0},{name:"category",coerce:null,optional:!0},{name:"tags",coerce:"json",optional:!0},{name:"visibility",coerce:null,optional:!0,choices:["public","unlisted","private"]},{name:"licence",coerce:"json",optional:!0}],scopes:["listings:write"],idempotent:!1,isQuery:!1,summary:"Update mutable fields of a draft or published listing."},{key:"feed.listings.updatePricing",commandPath:["feed","listings","updatePricing"],opId:"POST /v1/feeds/listings/:listingId/pricing",method:"POST",pattern:"/v1/feeds/listings/:listingId/pricing",pathParams:[{name:"listingGid",key:"listingId"}],flags:[{name:"pricing",coerce:"json",optional:!1}],scopes:["listings:write"],idempotent:!1,isQuery:!1,summary:"Update the pricing of a draft listing."},{key:"feed.listings.withdrawSubmission",commandPath:["feed","listings","withdrawSubmission"],opId:"POST /v1/feeds/listings/:listingId/withdraw",method:"POST",pattern:"/v1/feeds/listings/:listingId/withdraw",pathParams:[{name:"listingGid",key:"listingId"}],flags:[],scopes:["listings:write"],idempotent:!0,isQuery:!1,summary:"Withdraw a listing from review back to draft."},{key:"feed.publishers.getByGid",commandPath:["feed","publishers","getByGid"],opId:"GET /v1/feeds/publishers/:publisherId",method:"GET",pattern:"/v1/feeds/publishers/:publisherId",pathParams:[{name:"gid",key:"publisherId"}],flags:[],scopes:["publishers:read"],idempotent:!0,isQuery:!0,summary:"Get a publisher by its global id."},{key:"feed.publishers.getBySlug",commandPath:["feed","publishers","getBySlug"],opId:"GET /v1/feeds/publishers/by-slug/:slug",method:"GET",pattern:"/v1/feeds/publishers/by-slug/:slug",pathParams:[{name:"slug",key:"slug"}],flags:[],scopes:["publishers:read"],idempotent:!0,isQuery:!0,summary:"Get a publisher by its slug."},{key:"feed.publishers.getMine",commandPath:["feed","publishers","getMine"],opId:"GET /v1/feeds/publishers/me",method:"GET",pattern:"/v1/feeds/publishers/me",pathParams:[],flags:[],scopes:["publishers:read"],idempotent:!0,isQuery:!0,summary:"Resolve the publisher row for the calling org."},{key:"feed.publishers.listVerified",commandPath:["feed","publishers","listVerified"],opId:"GET /v1/feeds/publishers",method:"GET",pattern:"/v1/feeds/publishers",pathParams:[],flags:[{name:"limit",coerce:"number",optional:!0}],scopes:["publishers:read"],idempotent:!0,isQuery:!0,summary:"List all verified publishers in the catalog."},{key:"feed.publishers.register",commandPath:["feed","publishers","register"],opId:"POST /v1/feeds/publishers",method:"POST",pattern:"/v1/feeds/publishers",pathParams:[],flags:[{name:"name",coerce:null,optional:!1},{name:"slug",coerce:null,optional:!1},{name:"description",coerce:null,optional:!0},{name:"websiteUrl",coerce:null,optional:!0},{name:"supportEmail",coerce:null,optional:!0},{name:"supportUrl",coerce:null,optional:!0},{name:"logoUrl",coerce:null,optional:!0},{name:"acceptedAgreementVersion",coerce:null,optional:!0}],scopes:["publishers:write"],idempotent:!1,isQuery:!1,summary:"Register a publisher for the calling org."},{key:"feed.publishers.revokePublisher",commandPath:["feed","publishers","revokePublisher"],opId:"POST /v1/feeds/publishers/:publisherId/revoke",method:"POST",pattern:"/v1/feeds/publishers/:publisherId/revoke",pathParams:[{name:"publisherGid",key:"publisherId"}],flags:[{name:"reason",coerce:null,optional:!0}],scopes:["publishers:write"],idempotent:!0,isQuery:!1,summary:"Owner-initiated revoke of a publisher and its listings."},{key:"feed.publishers.update",commandPath:["feed","publishers","update"],opId:"POST /v1/feeds/publishers/:publisherId",method:"POST",pattern:"/v1/feeds/publishers/:publisherId",pathParams:[{name:"publisherGid",key:"publisherId"}],flags:[{name:"name",coerce:null,optional:!0},{name:"description",coerce:null,optional:!0},{name:"websiteUrl",coerce:null,optional:!0},{name:"supportEmail",coerce:null,optional:!0},{name:"supportUrl",coerce:null,optional:!0},{name:"logoUrl",coerce:null,optional:!0},{name:"defaultRevenueSplit",coerce:"number",optional:!0},{name:"payoutDestination",coerce:null,optional:!0},{name:"taxProfile",coerce:"json",optional:!0},{name:"notificationPreferences",coerce:"json",optional:!0}],scopes:["publishers:write"],idempotent:!1,isQuery:!1,summary:"Update a publisher's mutable identity fields (owner-only)."},{key:"feed.subscriptions.cancel",commandPath:["feed","subscriptions","cancel"],opId:"DELETE /v1/feeds/subscriptions/:subscriptionId",method:"DELETE",pattern:"/v1/feeds/subscriptions/:subscriptionId",pathParams:[{name:"gid",key:"subscriptionId"}],flags:[{name:"reason",coerce:null,optional:!0}],scopes:["feed:write"],idempotent:!0,isQuery:!1,summary:"Cancel a feed subscription."},{key:"feed.subscriptions.convertTrialToPaid",commandPath:["feed","subscriptions","convertTrialToPaid"],opId:"POST /v1/feeds/subscriptions/:subscriptionId/convert-to-paid",method:"POST",pattern:"/v1/feeds/subscriptions/:subscriptionId/convert-to-paid",pathParams:[{name:"gid",key:"subscriptionId"}],flags:[{name:"productionEnvGid",coerce:null,optional:!0}],scopes:["feed:write"],idempotent:!0,isQuery:!1,summary:"Convert a $0 trial subscription to a paid production subscription."},{key:"feed.subscriptions.countByPublisher",commandPath:["feed","subscriptions","countByPublisher"],opId:"GET /v1/feeds/publishers/:publisherId/subscriber-count",method:"GET",pattern:"/v1/feeds/publishers/:publisherId/subscriber-count",pathParams:[{name:"publisherGid",key:"publisherId"}],flags:[],scopes:["feed:read"],idempotent:!0,isQuery:!0,summary:"Count active/total subscribers for a publisher (RLS-scoped)."},{key:"feed.subscriptions.getByGid",commandPath:["feed","subscriptions","getByGid"],opId:"GET /v1/feeds/subscriptions/:subscriptionId",method:"GET",pattern:"/v1/feeds/subscriptions/:subscriptionId",pathParams:[{name:"gid",key:"subscriptionId"}],flags:[],scopes:["feed:read"],idempotent:!0,isQuery:!0,summary:"Fetch one feed subscription by id (RLS-scoped to the caller org)."},{key:"feed.subscriptions.listBySubscriber",commandPath:["feed","subscriptions","listBySubscriber"],opId:"GET /v1/feeds/subscriptions",method:"GET",pattern:"/v1/feeds/subscriptions",pathParams:[],flags:[{name:"status",coerce:null,optional:!0}],scopes:["feed:read"],idempotent:!0,isQuery:!0,summary:"List the calling org's feed subscriptions."},{key:"feed.subscriptions.listBySubscriberEnriched",commandPath:["feed","subscriptions","listBySubscriberEnriched"],opId:"GET /v1/feeds/subscriptions/enriched",method:"GET",pattern:"/v1/feeds/subscriptions/enriched",pathParams:[],flags:[],scopes:["feed:read"],idempotent:!0,isQuery:!0,summary:"List the calling org's feed subscriptions with listing + publisher enrichment joined (single aggregate)."},{key:"feed.subscriptions.pause",commandPath:["feed","subscriptions","pause"],opId:"POST /v1/feeds/subscriptions/:subscriptionId/pause",method:"POST",pattern:"/v1/feeds/subscriptions/:subscriptionId/pause",pathParams:[{name:"gid",key:"subscriptionId"}],flags:[],scopes:["feed:write"],idempotent:!0,isQuery:!1,summary:"Pause an active feed subscription."},{key:"feed.subscriptions.resume",commandPath:["feed","subscriptions","resume"],opId:"POST /v1/feeds/subscriptions/:subscriptionId/resume",method:"POST",pattern:"/v1/feeds/subscriptions/:subscriptionId/resume",pathParams:[{name:"gid",key:"subscriptionId"}],flags:[],scopes:["feed:write"],idempotent:!0,isQuery:!1,summary:"Resume a paused feed subscription."},{key:"feed.subscriptions.subscribe",commandPath:["feed","subscriptions","subscribe"],opId:"POST /v1/feeds/listings/:listingId/subscribe",method:"POST",pattern:"/v1/feeds/listings/:listingId/subscribe",pathParams:[{name:"listingGid",key:"listingId"}],flags:[{name:"targetAppGids",coerce:"json",optional:!1},{name:"billingCycle",coerce:null,optional:!0,choices:["monthly","yearly"]},{name:"tierName",coerce:null,optional:!0},{name:"acceptedSubscriberAgreementVersion",coerce:null,optional:!0},{name:"acceptedListingLicenceVersion",coerce:null,optional:!0}],scopes:["feed:write"],idempotent:!1,isQuery:!1,summary:"Subscribe the calling org to a published listing."},{key:"notify.dispatches.list",commandPath:["notify","dispatches","list"],opId:"GET /v1/notifications/dispatches",method:"GET",pattern:"/v1/notifications/dispatches",pathParams:[],flags:[{name:"appId",coerce:null,optional:!1},{name:"status",coerce:null,optional:!0,choices:["queued","sending","sent","failed","dlq"]},{name:"cursor",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["notify:read"],idempotent:!0,isQuery:!1,summary:"List the calling org's notification dispatch history (RLS-scoped)."},{key:"notify.inbox.archive",commandPath:["notify","inbox","archive"],opId:"POST /v1/notifications/inbox/:gid/archive",method:"POST",pattern:"/v1/notifications/inbox/:gid/archive",pathParams:[{name:"gid",key:"gid"}],flags:[{name:"appId",coerce:null,optional:!1},{name:"user",coerce:null,optional:!1}],scopes:["notify:write"],idempotent:!0,isQuery:!1,summary:"Archive one inbox notification (dashboard parity write)."},{key:"notify.inbox.list",commandPath:["notify","inbox","list"],opId:"GET /v1/notifications/inbox",method:"GET",pattern:"/v1/notifications/inbox",pathParams:[],flags:[{name:"appId",coerce:null,optional:!1},{name:"user",coerce:null,optional:!1},{name:"status",coerce:null,optional:!0,choices:["unread","read","archived"]},{name:"cursor",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["notify:read"],idempotent:!0,isQuery:!1,summary:"List the calling org's notification inbox (paginated, RLS-scoped)."},{key:"notify.inbox.markAllRead",commandPath:["notify","inbox","markAllRead"],opId:"POST /v1/notifications/inbox/mark-all-read",method:"POST",pattern:"/v1/notifications/inbox/mark-all-read",pathParams:[],flags:[{name:"appId",coerce:null,optional:!1},{name:"user",coerce:null,optional:!1}],scopes:["notify:write"],idempotent:!0,isQuery:!1,summary:"Mark ALL unread inbox notifications read for one recipient (dashboard parity write)."},{key:"notify.inbox.markRead",commandPath:["notify","inbox","markRead"],opId:"POST /v1/notifications/inbox/:gid/mark-read",method:"POST",pattern:"/v1/notifications/inbox/:gid/mark-read",pathParams:[{name:"gid",key:"gid"}],flags:[{name:"appId",coerce:null,optional:!1},{name:"user",coerce:null,optional:!1}],scopes:["notify:write"],idempotent:!0,isQuery:!1,summary:"Mark one inbox notification read (dashboard bell/inbox parity write)."},{key:"notify.preferences.clear",commandPath:["notify","preferences","clear"],opId:"DELETE /v1/notifications/preferences",method:"DELETE",pattern:"/v1/notifications/preferences",pathParams:[],flags:[{name:"appId",coerce:null,optional:!1},{name:"user",coerce:null,optional:!1},{name:"typeSlug",coerce:null,optional:!0},{name:"channel",coerce:null,optional:!0,choices:["email","sms","push","inapp","slack"]}],scopes:["notify:write"],idempotent:!0,isQuery:!1,summary:"Clear one notification preference row back to defaults."},{key:"notify.preferences.list",commandPath:["notify","preferences","list"],opId:"GET /v1/notifications/preferences",method:"GET",pattern:"/v1/notifications/preferences",pathParams:[],flags:[{name:"appId",coerce:null,optional:!1},{name:"user",coerce:null,optional:!1}],scopes:["notify:read"],idempotent:!0,isQuery:!1,summary:"List the calling org's notification preferences (RLS-scoped)."},{key:"notify.preferences.setDigestCadence",commandPath:["notify","preferences","setDigestCadence"],opId:"PUT /v1/notifications/preferences/digest",method:"PUT",pattern:"/v1/notifications/preferences/digest",pathParams:[],flags:[{name:"appId",coerce:null,optional:!1},{name:"user",coerce:null,optional:!1},{name:"channel",coerce:null,optional:!1,choices:["email","sms","push","inapp","slack"]},{name:"cadence",coerce:null,optional:!0,choices:["hourly","daily"]}],scopes:["notify:write"],idempotent:!0,isQuery:!1,summary:"Set (or clear, by omitting cadence) the per-channel digest cadence."},{key:"notify.preferences.setGlobalMute",commandPath:["notify","preferences","setGlobalMute"],opId:"PUT /v1/notifications/preferences/global-mute",method:"PUT",pattern:"/v1/notifications/preferences/global-mute",pathParams:[],flags:[{name:"appId",coerce:null,optional:!1},{name:"user",coerce:null,optional:!1},{name:"globalMute",coerce:"boolean",optional:!1}],scopes:["notify:write"],idempotent:!0,isQuery:!1,summary:"Set the recipient's global mute (the dashboard's master enable/disable + unsubscribe-all)."},{key:"notify.preferences.setQuietHours",commandPath:["notify","preferences","setQuietHours"],opId:"PUT /v1/notifications/preferences/quiet-hours",method:"PUT",pattern:"/v1/notifications/preferences/quiet-hours",pathParams:[],flags:[{name:"appId",coerce:null,optional:!1},{name:"user",coerce:null,optional:!1},{name:"startHour",coerce:"number",optional:!0},{name:"endHour",coerce:"number",optional:!0}],scopes:["notify:write"],idempotent:!0,isQuery:!1,summary:"Set (or clear, by omitting both hours) the recipient's quiet-hours window."},{key:"notify.preferences.upsert",commandPath:["notify","preferences","upsert"],opId:"PUT /v1/notifications/preferences",method:"PUT",pattern:"/v1/notifications/preferences",pathParams:[],flags:[{name:"appId",coerce:null,optional:!1},{name:"user",coerce:null,optional:!1},{name:"typeSlug",coerce:null,optional:!0},{name:"channel",coerce:null,optional:!0,choices:["email","sms","push","inapp","slack"]},{name:"optIn",coerce:"boolean",optional:!1}],scopes:["notify:write"],idempotent:!0,isQuery:!1,summary:"Upsert one notification preference row (per-type / per-channel opt-in)."},{key:"notify.summary.get",commandPath:["notify","summary","get"],opId:"GET /v1/notifications/summary",method:"GET",pattern:"/v1/notifications/summary",pathParams:[],flags:[{name:"appId",coerce:null,optional:!1},{name:"user",coerce:null,optional:!1}],scopes:["notify:read"],idempotent:!0,isQuery:!1,summary:"Get the calling org's unread notification count (RLS-scoped)."},{key:"notify.templates.create",commandPath:["notify","templates","create"],opId:"POST /v1/notifications/templates",method:"POST",pattern:"/v1/notifications/templates",pathParams:[],flags:[{name:"appId",coerce:null,optional:!1},{name:"typeSlug",coerce:null,optional:!1},{name:"locale",coerce:null,optional:!1},{name:"channel",coerce:null,optional:!1,choices:["email","sms","push","inapp","slack"]},{name:"version",coerce:"number",optional:!1},{name:"subject",coerce:null,optional:!0},{name:"previewText",coerce:null,optional:!0},{name:"bodyMarkdown",coerce:null,optional:!1}],scopes:["notify:write"],idempotent:!0,isQuery:!1,summary:"Create a notification template for the org/app (wording only: subject, preview text, markdown body)."},{key:"notify.templates.get",commandPath:["notify","templates","get"],opId:"GET /v1/notifications/templates/:gid",method:"GET",pattern:"/v1/notifications/templates/:gid",pathParams:[{name:"gid",key:"gid"}],flags:[{name:"appId",coerce:null,optional:!1}],scopes:["notify:read"],idempotent:!0,isQuery:!1,summary:"Get one notification template by gid (RLS-scoped)."},{key:"notify.templates.list",commandPath:["notify","templates","list"],opId:"GET /v1/notifications/templates",method:"GET",pattern:"/v1/notifications/templates",pathParams:[],flags:[{name:"appId",coerce:null,optional:!1},{name:"typeSlug",coerce:null,optional:!0},{name:"includeRetired",coerce:"boolean",optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["notify:read"],idempotent:!0,isQuery:!1,summary:"List the calling org/app's notification templates (RLS-scoped)."},{key:"notify.templates.preview",commandPath:["notify","templates","preview"],opId:"POST /v1/notifications/templates/preview",method:"POST",pattern:"/v1/notifications/templates/preview",pathParams:[],flags:[{name:"appId",coerce:null,optional:!1},{name:"typeSlug",coerce:null,optional:!1},{name:"channel",coerce:null,optional:!1,choices:["email","sms","push","inapp","slack"]},{name:"locale",coerce:null,optional:!0},{name:"vars",coerce:"json",optional:!1},{name:"catalogDefaultLocale",coerce:null,optional:!0}],scopes:["notify:read"],idempotent:!0,isQuery:!1,summary:"Render the template the dispatcher would pick for a type/channel/locale, without sending."},{key:"notify.templates.retire",commandPath:["notify","templates","retire"],opId:"POST /v1/notifications/templates/:gid/retire",method:"POST",pattern:"/v1/notifications/templates/:gid/retire",pathParams:[{name:"gid",key:"gid"}],flags:[{name:"appId",coerce:null,optional:!1}],scopes:["notify:write"],idempotent:!0,isQuery:!1,summary:"Retire (archive) one notification template."},{key:"notify.templates.sendTest",commandPath:["notify","templates","sendTest"],opId:"POST /v1/notifications/templates/:gid/test-send",method:"POST",pattern:"/v1/notifications/templates/:gid/test-send",pathParams:[{name:"gid",key:"gid"}],flags:[{name:"appId",coerce:null,optional:!1},{name:"channel",coerce:null,optional:!0}],scopes:["notify:read","notify:write"],idempotent:!0,isQuery:!1,summary:"Send a test of one notification template to the calling principal: one in-app inbox row and one dispatch record, both tagged test (real render, never the resolver)."},{key:"notify.templates.update",commandPath:["notify","templates","update"],opId:"PATCH /v1/notifications/templates/:gid",method:"PATCH",pattern:"/v1/notifications/templates/:gid",pathParams:[{name:"gid",key:"gid"}],flags:[{name:"appId",coerce:null,optional:!1},{name:"subject",coerce:null,optional:!0},{name:"previewText",coerce:null,optional:!0},{name:"bodyMarkdown",coerce:null,optional:!0}],scopes:["notify:write"],idempotent:!0,isQuery:!1,summary:"Update one notification template's wording (subject, preview text, markdown body)."},{key:"notify.types.get",commandPath:["notify","types","get"],opId:"GET /v1/notifications/types/:typeSlug",method:"GET",pattern:"/v1/notifications/types/:typeSlug",pathParams:[{name:"typeSlug",key:"typeSlug"}],flags:[{name:"appId",coerce:null,optional:!1},{name:"version",coerce:"number",optional:!0}],scopes:["notify:read"],idempotent:!0,isQuery:!1,summary:"Get one notification type by slug (latest active, or an exact version)."},{key:"notify.types.list",commandPath:["notify","types","list"],opId:"GET /v1/notifications/types",method:"GET",pattern:"/v1/notifications/types",pathParams:[],flags:[{name:"appId",coerce:null,optional:!1},{name:"limit",coerce:"number",optional:!0}],scopes:["notify:read"],idempotent:!0,isQuery:!1,summary:"List the calling org's notification type catalog (RLS-scoped)."},{key:"tenants.actAs.actAs",commandPath:["tenants","actAs","actAs"],opId:"POST /v1/tenants/act-as",method:"POST",pattern:"/v1/tenants/act-as",pathParams:[],flags:[{name:"externalId",coerce:null,optional:!1},{name:"scopes",coerce:"json",optional:!0}],scopes:["tenants:write"],idempotent:!1,isQuery:!1,summary:"Exchange the caller's credential for a short-lived, DPoP-bound, tenant-pinned token."},{key:"tenants.tenants.activate",commandPath:["tenants","tenants","activate"],opId:"POST /v1/tenants/:tenantId/activate",method:"POST",pattern:"/v1/tenants/:tenantId/activate",pathParams:[{name:"tenantId",key:"tenantId"}],flags:[],scopes:["tenants:write"],idempotent:!0,isQuery:!1,summary:"Activate a tenant \u2014 promotes pending/suspended to active (mint-eligible)."},{key:"tenants.tenants.close",commandPath:["tenants","tenants","close"],opId:"POST /v1/tenants/:tenantId/close",method:"POST",pattern:"/v1/tenants/:tenantId/close",pathParams:[{name:"tenantId",key:"tenantId"}],flags:[],scopes:["tenants:admin"],idempotent:!0,isQuery:!1,summary:"Close a tenant (terminal), revoke every live embed session, and answer only once every Primus engine that may serve its tokens holds the close."},{key:"tenants.tenants.list",commandPath:["tenants","tenants","list"],opId:"GET /v1/tenants",method:"GET",pattern:"/v1/tenants",pathParams:[],flags:[{name:"platformId",coerce:null,optional:!0},{name:"status",coerce:null,optional:!0,choices:["pending","active","suspended","closed","inactive"]}],scopes:["tenants:read"],idempotent:!0,isQuery:!0,summary:"List the calling org's platform tenants (optionally by platform/status)."},{key:"tenants.tenants.suspend",commandPath:["tenants","tenants","suspend"],opId:"POST /v1/tenants/:tenantId/suspend",method:"POST",pattern:"/v1/tenants/:tenantId/suspend",pathParams:[{name:"tenantId",key:"tenantId"}],flags:[],scopes:["tenants:write"],idempotent:!0,isQuery:!1,summary:"Suspend a tenant \u2014 revokes its Primus/embed minting and every live embed session."},{key:"tenants.tenants.upsert",commandPath:["tenants","tenants","upsert"],opId:"POST /v1/tenants",method:"POST",pattern:"/v1/tenants",pathParams:[],flags:[{name:"externalId",coerce:null,optional:!1},{name:"displayName",coerce:null,optional:!0},{name:"metadata",coerce:"json",optional:!0}],scopes:["tenants:write"],idempotent:!0,isQuery:!1,summary:"Create or update (idempotent) a platform tenant on the natural key; the platform is the caller's own (derived from the app binding), never an input."}]};var m={contentHash:"dd2a9247fa0edc80d2fdf343b2be91752bdf95c3d183cb5cb5a15c1b0702b40d",generatedAt:"contract-dd2a9247fa0edc80d2fdf343b2be91752bdf95c3d183cb5cb5a15c1b0702b40d",commands:[{key:"pipes.agentExecutions.getAgentExecution",commandPath:["pipes","agentExecutions","getAgentExecution"],opId:"GET /v1/pipes/agent-executions/:agentExecutionGid",method:"GET",pattern:"/v1/pipes/agent-executions/:agentExecutionGid",pathParams:[{name:"agentExecutionGid",key:"agentExecutionGid"}],flags:[],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a single agent-driven workflow execution by GID."},{key:"pipes.agentExecutions.listAgentExecutions",commandPath:["pipes","agentExecutions","listAgentExecutions"],opId:"GET /v1/pipes/agent-executions",method:"GET",pattern:"/v1/pipes/agent-executions",pathParams:[],flags:[{name:"workflowGid",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0}],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"List agent-driven workflow executions (optional workflow filter)."},{key:"pipes.analyses.getAnalysis",commandPath:["pipes","analyses","getAnalysis"],opId:"GET /v1/pipes/analyses/:analysisGid",method:"GET",pattern:"/v1/pipes/analyses/:analysisGid",pathParams:[{name:"analysisGid",key:"analysisGid"}],flags:[],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a single Analyze-stage analysis by GID."},{key:"pipes.analyses.listAnalyses",commandPath:["pipes","analyses","listAnalyses"],opId:"GET /v1/pipes/analyses",method:"GET",pattern:"/v1/pipes/analyses",pathParams:[],flags:[{name:"workflowGid",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0}],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"List Analyze-stage analyses (optional workflow filter)."},{key:"pipes.connectors.deleteCredential",commandPath:["pipes","connectors","deleteCredential"],opId:"DELETE /v1/pipes/credentials/:credentialId",method:"DELETE",pattern:"/v1/pipes/credentials/:credentialId",pathParams:[{name:"credentialGid",key:"credentialId"}],flags:[],scopes:["credentials:admin"],idempotent:!0,isQuery:!1,summary:"Delete a connector credential. DESTRUCTIVE: requires the admin verb."},{key:"pipes.connectors.listCredentials",commandPath:["pipes","connectors","listCredentials"],opId:"GET /v1/pipes/credentials",method:"GET",pattern:"/v1/pipes/credentials",pathParams:[],flags:[{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0}],scopes:["credentials:read"],idempotent:!1,isQuery:!0,summary:"List stored credentials (metadata only \u2014 never the secret)."},{key:"pipes.connectors.revokeCredential",commandPath:["pipes","connectors","revokeCredential"],opId:"POST /v1/pipes/credentials/:credentialId/revoke",method:"POST",pattern:"/v1/pipes/credentials/:credentialId/revoke",pathParams:[{name:"credentialGid",key:"credentialId"}],flags:[],scopes:["credentials:admin"],idempotent:!0,isQuery:!1,summary:"Revoke a credential (Zapier-style: unusable, secret unretrievable). DESTRUCTIVE: requires the admin verb."},{key:"pipes.connectors.rotateCredential",commandPath:["pipes","connectors","rotateCredential"],opId:"POST /v1/pipes/credentials/:credentialId/rotate",method:"POST",pattern:"/v1/pipes/credentials/:credentialId/rotate",pathParams:[{name:"credentialGid",key:"credentialId"}],flags:[{name:"newSecret",coerce:null,optional:!1}],scopes:["credentials:write"],idempotent:!0,isQuery:!1,summary:"Rotate a credential's secret (vault re-encrypt)."},{key:"pipes.connectors.storeCredential",commandPath:["pipes","connectors","storeCredential"],opId:"POST /v1/pipes/credentials",method:"POST",pattern:"/v1/pipes/credentials",pathParams:[],flags:[{name:"connectorId",coerce:null,optional:!1},{name:"name",coerce:null,optional:!1},{name:"auth",coerce:"json",optional:!1},{name:"secret",coerce:null,optional:!0}],scopes:["credentials:write"],idempotent:!0,isQuery:!1,summary:"Store a connector credential (vault-encrypted secret)."},{key:"pipes.connectors.testCredentialPublic",commandPath:["pipes","connectors","testCredentialPublic"],opId:"POST /v1/pipes/credentials/test",method:"POST",pattern:"/v1/pipes/credentials/test",pathParams:[],flags:[{name:"connectorId",coerce:null,optional:!1},{name:"apiKey",coerce:null,optional:!1}],scopes:["credentials:write"],idempotent:!1,isQuery:!1,summary:"Test a connector credential (connectorId + apiKey in body)."},{key:"pipes.connectors.updateCredential",commandPath:["pipes","connectors","updateCredential"],opId:"PATCH /v1/pipes/credentials/:credentialId",method:"PATCH",pattern:"/v1/pipes/credentials/:credentialId",pathParams:[{name:"credentialGid",key:"credentialId"}],flags:[{name:"name",coerce:null,optional:!0},{name:"auth",coerce:"json",optional:!0}],scopes:["credentials:write"],idempotent:!1,isQuery:!1,summary:"Update credential metadata/auth (no secret rotation here)."},{key:"pipes.decisions.approveDecision",commandPath:["pipes","decisions","approveDecision"],opId:"POST /v1/pipes/decisions/:decisionGid/approve",method:"POST",pattern:"/v1/pipes/decisions/:decisionGid/approve",pathParams:[{name:"decisionGid",key:"decisionGid"}],flags:[{name:"rationale",coerce:null,optional:!0}],scopes:["pipes:write"],idempotent:!0,isQuery:!1,summary:"Approve a pending AI decision (idempotent \u2014 first actor preserved)."},{key:"pipes.decisions.getDecision",commandPath:["pipes","decisions","getDecision"],opId:"GET /v1/pipes/decisions/:decisionGid",method:"GET",pattern:"/v1/pipes/decisions/:decisionGid",pathParams:[{name:"decisionGid",key:"decisionGid"}],flags:[],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a single AI decision checkpoint by GID."},{key:"pipes.decisions.listDecisions",commandPath:["pipes","decisions","listDecisions"],opId:"GET /v1/pipes/decisions",method:"GET",pattern:"/v1/pipes/decisions",pathParams:[],flags:[{name:"gateState",coerce:null,optional:!0,choices:["auto-approved","pending-human-approval","approved","rejected","expired"]},{name:"workflowGid",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0}],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"List AI decision checkpoints (optional gateState/workflow filter)."},{key:"pipes.decisions.rejectDecision",commandPath:["pipes","decisions","rejectDecision"],opId:"POST /v1/pipes/decisions/:decisionGid/reject",method:"POST",pattern:"/v1/pipes/decisions/:decisionGid/reject",pathParams:[{name:"decisionGid",key:"decisionGid"}],flags:[{name:"rationale",coerce:null,optional:!0}],scopes:["pipes:write"],idempotent:!0,isQuery:!1,summary:"Reject a pending AI decision (idempotent)."},{key:"pipes.dlq.discardDlqEntry",commandPath:["pipes","dlq","discardDlqEntry"],opId:"POST /v1/pipes/dlq/:dlqEntryId/discard",method:"POST",pattern:"/v1/pipes/dlq/:dlqEntryId/discard",pathParams:[{name:"dlqEntryId",key:"dlqEntryId"}],flags:[],scopes:["pipes:write"],idempotent:!0,isQuery:!1,summary:"Discard an execution DLQ entry (idempotent \u2014 already-discarded is a no-op)."},{key:"pipes.dlq.getDlqEntry",commandPath:["pipes","dlq","getDlqEntry"],opId:"GET /v1/pipes/dlq/:dlqEntryId",method:"GET",pattern:"/v1/pipes/dlq/:dlqEntryId",pathParams:[{name:"dlqEntryId",key:"dlqEntryId"}],flags:[],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a single execution DLQ entry by id (RLS-scoped), or 404."},{key:"pipes.dlq.getDlqStats",commandPath:["pipes","dlq","getDlqStats"],opId:"GET /v1/pipes/dlq/stats",method:"GET",pattern:"/v1/pipes/dlq/stats",pathParams:[],flags:[],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"Aggregate execution DLQ stats (counts by status) for the caller's app."},{key:"pipes.dlq.listDlqEntries",commandPath:["pipes","dlq","listDlqEntries"],opId:"GET /v1/pipes/dlq",method:"GET",pattern:"/v1/pipes/dlq",pathParams:[],flags:[{name:"status",coerce:null,optional:!0,choices:["pending","retrying","resolved","discarded","exhausted"]},{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0}],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"List execution DLQ entries for the caller's app (optional status filter)."},{key:"pipes.executions.cancelExecution",commandPath:["pipes","executions","cancelExecution"],opId:"POST /v1/pipes/executions/:executionId/cancel",method:"POST",pattern:"/v1/pipes/executions/:executionId/cancel",pathParams:[{name:"executionGid",key:"executionId"}],flags:[],scopes:["pipes:execute"],idempotent:!0,isQuery:!1,summary:"Cancel a running execution."},{key:"pipes.executions.executeNode",commandPath:["pipes","executions","executeNode"],opId:"POST /v1/pipes/workflows/:workflowId/nodes/:nodeId/execute",method:"POST",pattern:"/v1/pipes/workflows/:workflowId/nodes/:nodeId/execute",pathParams:[{name:"workflowGid",key:"workflowId"},{name:"nodeId",key:"nodeId"}],flags:[{name:"triggerData",coerce:"json",optional:!0},{name:"upstreamOutputs",coerce:"json",optional:!0},{name:"variables",coerce:"json",optional:!0},{name:"idempotencyKey",coerce:null,optional:!0}],scopes:["pipes:execute"],idempotent:!1,isQuery:!1,summary:"Execute a single workflow node in isolation (editor test-node)."},{key:"pipes.executions.getExecution",commandPath:["pipes","executions","getExecution"],opId:"GET /v1/pipes/executions/:executionId",method:"GET",pattern:"/v1/pipes/executions/:executionId",pathParams:[{name:"executionGid",key:"executionId"}],flags:[],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a single execution by GID (RLS-scoped), or 404."},{key:"pipes.executions.getExecutionRate",commandPath:["pipes","executions","getExecutionRate"],opId:"GET /v1/pipes/executions/rate",method:"GET",pattern:"/v1/pipes/executions/rate",pathParams:[],flags:[],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"Runs per second over the last 24 hours for the caller's app and environment, with one point per hour."},{key:"pipes.executions.getExecutionStatus",commandPath:["pipes","executions","getExecutionStatus"],opId:"GET /v1/pipes/executions/:executionId/status",method:"GET",pattern:"/v1/pipes/executions/:executionId/status",pathParams:[{name:"executionGid",key:"executionId"}],flags:[],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"Retrieve an execution's status + per-node progress."},{key:"pipes.executions.listExecutions",commandPath:["pipes","executions","listExecutions"],opId:"GET /v1/pipes/workflows/:workflowId/executions",method:"GET",pattern:"/v1/pipes/workflows/:workflowId/executions",pathParams:[{name:"workflowGid",key:"workflowId"}],flags:[{name:"status",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0}],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"List executions for a workflow (RLS-scoped run history)."},{key:"pipes.executions.triggerExecution",commandPath:["pipes","executions","triggerExecution"],opId:"POST /v1/pipes/workflows/:workflowId/trigger",method:"POST",pattern:"/v1/pipes/workflows/:workflowId/trigger",pathParams:[{name:"workflowGid",key:"workflowId"}],flags:[{name:"triggeredBy",coerce:null,optional:!0},{name:"triggerData",coerce:"json",optional:!0},{name:"idempotencyKey",coerce:null,optional:!0}],scopes:["pipes:execute"],idempotent:!0,isQuery:!1,summary:"Trigger a workflow execution (manual run)."},{key:"pipes.governance.addToAllowlist",commandPath:["pipes","governance","addToAllowlist"],opId:"POST /v1/pipes/governance/allowlist",method:"POST",pattern:"/v1/pipes/governance/allowlist",pathParams:[],flags:[{name:"connectorIds",coerce:"json",optional:!1}],scopes:["pipes:write"],idempotent:!0,isQuery:!1,summary:"Add connector ids to the governance allowlist."},{key:"pipes.governance.addToBlocklist",commandPath:["pipes","governance","addToBlocklist"],opId:"POST /v1/pipes/governance/blocklist",method:"POST",pattern:"/v1/pipes/governance/blocklist",pathParams:[],flags:[{name:"connectorIds",coerce:"json",optional:!1}],scopes:["pipes:write"],idempotent:!0,isQuery:!1,summary:"Add connector ids to the governance blocklist."},{key:"pipes.governance.approveConnectorRequest",commandPath:["pipes","governance","approveConnectorRequest"],opId:"POST /v1/pipes/governance/approvals/:requestId/approve",method:"POST",pattern:"/v1/pipes/governance/approvals/:requestId/approve",pathParams:[{name:"requestId",key:"requestId"}],flags:[{name:"notes",coerce:null,optional:!0}],scopes:["pipes:admin"],idempotent:!1,isQuery:!1,summary:"Approve a connector approval request."},{key:"pipes.governance.getAgentReviewRules",commandPath:["pipes","governance","getAgentReviewRules"],opId:"GET /v1/pipes/governance/agent-review",method:"GET",pattern:"/v1/pipes/governance/agent-review",pathParams:[],flags:[],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"Get the scopes in which a person must review the pipes agents make (none by default)."},{key:"pipes.governance.getGovernanceSettings",commandPath:["pipes","governance","getGovernanceSettings"],opId:"GET /v1/pipes/governance",method:"GET",pattern:"/v1/pipes/governance",pathParams:[],flags:[],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"Get connector governance settings (mode, allow/block lists, restrictions)."},{key:"pipes.governance.listApprovalRequests",commandPath:["pipes","governance","listApprovalRequests"],opId:"GET /v1/pipes/governance/approvals",method:"GET",pattern:"/v1/pipes/governance/approvals",pathParams:[],flags:[{name:"status",coerce:null,optional:!0,choices:["pending","approved","rejected","revoked"]},{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0}],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"List connector approval requests (optional status filter)."},{key:"pipes.governance.listGovernanceAuditLogs",commandPath:["pipes","governance","listGovernanceAuditLogs"],opId:"GET /v1/pipes/governance/audit",method:"GET",pattern:"/v1/pipes/governance/audit",pathParams:[],flags:[{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0},{name:"eventType",coerce:null,optional:!0},{name:"targetType",coerce:null,optional:!0},{name:"targetId",coerce:null,optional:!0},{name:"actorId",coerce:null,optional:!0}],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"List governance audit logs (optional filters)."},{key:"pipes.governance.listPendingApprovals",commandPath:["pipes","governance","listPendingApprovals"],opId:"GET /v1/pipes/governance/approvals/pending",method:"GET",pattern:"/v1/pipes/governance/approvals/pending",pathParams:[],flags:[{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0}],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"List pending connector approval requests."},{key:"pipes.governance.rejectConnectorRequest",commandPath:["pipes","governance","rejectConnectorRequest"],opId:"POST /v1/pipes/governance/approvals/:requestId/reject",method:"POST",pattern:"/v1/pipes/governance/approvals/:requestId/reject",pathParams:[{name:"requestId",key:"requestId"}],flags:[{name:"notes",coerce:null,optional:!0}],scopes:["pipes:admin"],idempotent:!1,isQuery:!1,summary:"Reject a connector approval request."},{key:"pipes.governance.removeFromAllowlist",commandPath:["pipes","governance","removeFromAllowlist"],opId:"DELETE /v1/pipes/governance/allowlist",method:"DELETE",pattern:"/v1/pipes/governance/allowlist",pathParams:[],flags:[{name:"connectorIds",coerce:"json",optional:!1}],scopes:["pipes:write"],idempotent:!0,isQuery:!1,summary:"Remove connector ids from the governance allowlist."},{key:"pipes.governance.removeFromBlocklist",commandPath:["pipes","governance","removeFromBlocklist"],opId:"DELETE /v1/pipes/governance/blocklist",method:"DELETE",pattern:"/v1/pipes/governance/blocklist",pathParams:[],flags:[{name:"connectorIds",coerce:"json",optional:!1}],scopes:["pipes:write"],idempotent:!0,isQuery:!1,summary:"Remove connector ids from the governance blocklist."},{key:"pipes.governance.requestConnectorApproval",commandPath:["pipes","governance","requestConnectorApproval"],opId:"POST /v1/pipes/governance/approvals",method:"POST",pattern:"/v1/pipes/governance/approvals",pathParams:[],flags:[{name:"connectorGid",coerce:null,optional:!1},{name:"reason",coerce:null,optional:!0}],scopes:["pipes:write"],idempotent:!1,isQuery:!1,summary:"Request approval to use a connector."},{key:"pipes.governance.revokeConnectorApproval",commandPath:["pipes","governance","revokeConnectorApproval"],opId:"POST /v1/pipes/governance/connectors/:connectorGid/revoke",method:"POST",pattern:"/v1/pipes/governance/connectors/:connectorGid/revoke",pathParams:[{name:"connectorGid",key:"connectorGid"}],flags:[{name:"reason",coerce:null,optional:!0}],scopes:["pipes:admin"],idempotent:!0,isQuery:!1,summary:"Revoke a previously approved connector."},{key:"pipes.governance.setAgentReviewRules",commandPath:["pipes","governance","setAgentReviewRules"],opId:"PUT /v1/pipes/governance/agent-review",method:"PUT",pattern:"/v1/pipes/governance/agent-review",pathParams:[],flags:[{name:"rules",coerce:"json",optional:!1}],scopes:["pipes:admin"],idempotent:!0,isQuery:!1,summary:"Set the scopes in which a person must review the pipes agents make (organization admin)."},{key:"pipes.governance.updateGovernanceSettings",commandPath:["pipes","governance","updateGovernanceSettings"],opId:"PATCH /v1/pipes/governance",method:"PATCH",pattern:"/v1/pipes/governance",pathParams:[],flags:[{name:"mode",coerce:null,optional:!0,choices:["open","allowlist","approval_required"]},{name:"allowedConnectors",coerce:"json",optional:!0},{name:"blockedConnectors",coerce:"json",optional:!0},{name:"allowedTiers",coerce:"json",optional:!0},{name:"allowedCategories",coerce:"json",optional:!0},{name:"requireFirstUseApproval",coerce:"boolean",optional:!0},{name:"autoApproveInternalConnectors",coerce:"boolean",optional:!0},{name:"maxCredentialsPerConnector",coerce:"number",optional:!0},{name:"auditConfig",coerce:"json",optional:!0}],scopes:["pipes:write"],idempotent:!1,isQuery:!1,summary:"Update connector governance settings (mode, restrictions, audit config)."},{key:"pipes.recordDlq.discardRecordDlqEntry",commandPath:["pipes","recordDlq","discardRecordDlqEntry"],opId:"POST /v1/pipes/record-dlq/:entryGid/discard",method:"POST",pattern:"/v1/pipes/record-dlq/:entryGid/discard",pathParams:[{name:"entryGid",key:"entryGid"}],flags:[{name:"reason",coerce:null,optional:!0}],scopes:["pipes:write"],idempotent:!0,isQuery:!1,summary:"Discard a record-DLQ entry (idempotent \u2014 preserves first discardedBy/discardedAt)."},{key:"pipes.recordDlq.getRecordDlqEntry",commandPath:["pipes","recordDlq","getRecordDlqEntry"],opId:"GET /v1/pipes/record-dlq/:entryGid",method:"GET",pattern:"/v1/pipes/record-dlq/:entryGid",pathParams:[{name:"entryGid",key:"entryGid"}],flags:[],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a single record-DLQ entry by GID (RLS-scoped), or 404."},{key:"pipes.recordDlq.getRecordDlqStats",commandPath:["pipes","recordDlq","getRecordDlqStats"],opId:"GET /v1/pipes/record-dlq/stats",method:"GET",pattern:"/v1/pipes/record-dlq/stats",pathParams:[],flags:[{name:"workflowGid",coerce:null,optional:!0}],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"Aggregate record-DLQ stats (counts by status) for the caller's app."},{key:"pipes.recordDlq.listRecordDlq",commandPath:["pipes","recordDlq","listRecordDlq"],opId:"GET /v1/pipes/record-dlq",method:"GET",pattern:"/v1/pipes/record-dlq",pathParams:[],flags:[{name:"workflowGid",coerce:null,optional:!0},{name:"status",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0}],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"List record-level DLQ entries for the caller's app (optional workflow/status filter)."},{key:"pipes.recordDlq.replayRecordDlqEntry",commandPath:["pipes","recordDlq","replayRecordDlqEntry"],opId:"POST /v1/pipes/record-dlq/:entryGid/replay",method:"POST",pattern:"/v1/pipes/record-dlq/:entryGid/replay",pathParams:[{name:"entryGid",key:"entryGid"}],flags:[],scopes:["pipes:write"],idempotent:!1,isQuery:!1,summary:"Replay a record-DLQ entry (re-run the failed record)."},{key:"pipes.tools.getTool",commandPath:["pipes","tools","getTool"],opId:"GET /v1/pipes/tools/:toolName",method:"GET",pattern:"/v1/pipes/tools/:toolName",pathParams:[{name:"toolName",key:"toolName"}],flags:[],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a single Tool Registry entry by tool name."},{key:"pipes.tools.listTools",commandPath:["pipes","tools","listTools"],opId:"GET /v1/pipes/tools",method:"GET",pattern:"/v1/pipes/tools",pathParams:[],flags:[{name:"stage",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0}],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"List Tool Registry entries (optional stage filter)."},{key:"pipes.watermarks.getWatermark",commandPath:["pipes","watermarks","getWatermark"],opId:"GET /v1/pipes/watermarks/:sourceId",method:"GET",pattern:"/v1/pipes/watermarks/:sourceId",pathParams:[{name:"sourceId",key:"sourceId"}],flags:[{name:"workflowGid",coerce:null,optional:!1}],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"Retrieve the incremental-extract watermark cursor for a source."},{key:"pipes.watermarks.listWatermarks",commandPath:["pipes","watermarks","listWatermarks"],opId:"GET /v1/pipes/watermarks",method:"GET",pattern:"/v1/pipes/watermarks",pathParams:[],flags:[{name:"workflowGid",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0}],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"List watermark cursors (optional workflow filter)."},{key:"pipes.watermarks.resetWatermark",commandPath:["pipes","watermarks","resetWatermark"],opId:"POST /v1/pipes/watermarks/:watermarkGid/reset",method:"POST",pattern:"/v1/pipes/watermarks/:watermarkGid/reset",pathParams:[{name:"watermarkGid",key:"watermarkGid"}],flags:[{name:"newValue",coerce:null,optional:!0},{name:"reason",coerce:null,optional:!0}],scopes:["pipes:write"],idempotent:!0,isQuery:!1,summary:"Reset a watermark cursor (idempotent \u2014 prior audit chain preserved)."},{key:"pipes.webhooks.getTriggerUrl",commandPath:["pipes","webhooks","getTriggerUrl"],opId:"GET /v1/pipes/webhook-triggers/:workflowId",method:"GET",pattern:"/v1/pipes/webhook-triggers/:workflowId",pathParams:[{name:"workflowGid",key:"workflowId"}],flags:[],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"Get the trigger URL, HMAC secret, and config for a webhook workflow."},{key:"pipes.webhooks.listWebhookWorkflows",commandPath:["pipes","webhooks","listWebhookWorkflows"],opId:"GET /v1/pipes/webhook-triggers",method:"GET",pattern:"/v1/pipes/webhook-triggers",pathParams:[],flags:[{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0}],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"List webhook-triggered workflows for the caller's app."},{key:"pipes.webhooks.rotateWebhookSecret",commandPath:["pipes","webhooks","rotateWebhookSecret"],opId:"POST /v1/pipes/webhook-triggers/:workflowId/rotate-secret",method:"POST",pattern:"/v1/pipes/webhook-triggers/:workflowId/rotate-secret",pathParams:[{name:"workflowGid",key:"workflowId"}],flags:[],scopes:["pipes:write"],idempotent:!1,isQuery:!1,summary:"Rotate a webhook workflow's HMAC secret (returns the new secret)."},{key:"pipes.workflows.activateWorkflow",commandPath:["pipes","workflows","activateWorkflow"],opId:"POST /v1/pipes/workflows/:workflowId/activate",method:"POST",pattern:"/v1/pipes/workflows/:workflowId/activate",pathParams:[{name:"workflowGid",key:"workflowId"}],flags:[],scopes:["pipes:write"],idempotent:!1,isQuery:!1,summary:"Activate a paused or draft workflow."},{key:"pipes.workflows.archiveWorkflow",commandPath:["pipes","workflows","archiveWorkflow"],opId:"POST /v1/pipes/workflows/:workflowId/archive",method:"POST",pattern:"/v1/pipes/workflows/:workflowId/archive",pathParams:[{name:"workflowGid",key:"workflowId"}],flags:[],scopes:["pipes:write"],idempotent:!0,isQuery:!1,summary:"Archive a workflow (pause-then-archive if active)."},{key:"pipes.workflows.createWorkflow",commandPath:["pipes","workflows","createWorkflow"],opId:"POST /v1/pipes/workflows",method:"POST",pattern:"/v1/pipes/workflows",pathParams:[],flags:[{name:"name",coerce:null,optional:!1},{name:"description",coerce:null,optional:!0},{name:"definition",coerce:null,optional:!1},{name:"triggerConfig",coerce:null,optional:!1},{name:"requestReview",coerce:"boolean",optional:!0}],scopes:["pipes:write"],idempotent:!0,isQuery:!1,summary:"Create a Pipes workflow in an app."},{key:"pipes.workflows.deleteWorkflow",commandPath:["pipes","workflows","deleteWorkflow"],opId:"DELETE /v1/pipes/workflows/:workflowId",method:"DELETE",pattern:"/v1/pipes/workflows/:workflowId",pathParams:[{name:"workflowGid",key:"workflowId"}],flags:[],scopes:["pipes:admin"],idempotent:!0,isQuery:!1,summary:"Delete a workflow (RLS-scoped). DESTRUCTIVE: requires the admin verb."},{key:"pipes.workflows.getWorkflow",commandPath:["pipes","workflows","getWorkflow"],opId:"GET /v1/pipes/workflows/:workflowId",method:"GET",pattern:"/v1/pipes/workflows/:workflowId",pathParams:[{name:"workflowGid",key:"workflowId"}],flags:[],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a single workflow by GID (RLS-scoped), or 404."},{key:"pipes.workflows.getWorkflowDefinitionSchema",commandPath:["pipes","workflows","getWorkflowDefinitionSchema"],opId:"GET /v1/pipes/workflow-definitions/schema",method:"GET",pattern:"/v1/pipes/workflow-definitions/schema",pathParams:[],flags:[],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"Get the pipe-definition JSON Schema every create and update is validated against."},{key:"pipes.workflows.getWorkflowTriggerConfig",commandPath:["pipes","workflows","getWorkflowTriggerConfig"],opId:"GET /v1/pipes/workflows/:workflowId/trigger-config",method:"GET",pattern:"/v1/pipes/workflows/:workflowId/trigger-config",pathParams:[{name:"workflowGid",key:"workflowId"}],flags:[],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a workflow's trigger configuration ({ type, config }) as the workflow's read answers it (RLS-scoped), or 404."},{key:"pipes.workflows.listConnectors",commandPath:["pipes","workflows","listConnectors"],opId:"GET /v1/pipes/connectors",method:"GET",pattern:"/v1/pipes/connectors",pathParams:[],flags:[{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0}],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"List the connectors available to the caller's app (v1 allowlist)."},{key:"pipes.workflows.listWorkflows",commandPath:["pipes","workflows","listWorkflows"],opId:"GET /v1/pipes/workflows",method:"GET",pattern:"/v1/pipes/workflows",pathParams:[],flags:[{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0}],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"List workflows for the caller's app (RLS-scoped)."},{key:"pipes.workflows.pauseWorkflow",commandPath:["pipes","workflows","pauseWorkflow"],opId:"POST /v1/pipes/workflows/:workflowId/pause",method:"POST",pattern:"/v1/pipes/workflows/:workflowId/pause",pathParams:[{name:"workflowGid",key:"workflowId"}],flags:[],scopes:["pipes:write"],idempotent:!1,isQuery:!1,summary:"Pause an active workflow."},{key:"pipes.workflows.updateWorkflow",commandPath:["pipes","workflows","updateWorkflow"],opId:"PATCH /v1/pipes/workflows/:workflowId",method:"PATCH",pattern:"/v1/pipes/workflows/:workflowId",pathParams:[{name:"workflowGid",key:"workflowId"}],flags:[{name:"definition",coerce:null,optional:!1}],scopes:["pipes:write"],idempotent:!1,isQuery:!1,summary:"Update a workflow definition (nodes/edges); bumps the version."},{key:"pipes.workflows.updateWorkflowMeta",commandPath:["pipes","workflows","updateWorkflowMeta"],opId:"PATCH /v1/pipes/workflows/:workflowId/meta",method:"PATCH",pattern:"/v1/pipes/workflows/:workflowId/meta",pathParams:[{name:"workflowGid",key:"workflowId"}],flags:[{name:"name",coerce:null,optional:!0},{name:"description",coerce:null,optional:!0}],scopes:["pipes:write"],idempotent:!1,isQuery:!1,summary:"Update workflow metadata only (name, description)."},{key:"pipes.workflows.updateWorkflowTriggerConfig",commandPath:["pipes","workflows","updateWorkflowTriggerConfig"],opId:"PATCH /v1/pipes/workflows/:workflowId/trigger-config",method:"PATCH",pattern:"/v1/pipes/workflows/:workflowId/trigger-config",pathParams:[{name:"workflowGid",key:"workflowId"}],flags:[{name:"triggerConfig",coerce:null,optional:!1}],scopes:["pipes:write"],idempotent:!1,isQuery:!1,summary:"Update a workflow's trigger configuration."},{key:"pipes.workflows.validateWorkflowDefinition",commandPath:["pipes","workflows","validateWorkflowDefinition"],opId:"POST /v1/pipes/workflows/validate",method:"POST",pattern:"/v1/pipes/workflows/validate",pathParams:[],flags:[{name:"definition",coerce:null,optional:!1},{name:"triggerConfig",coerce:null,optional:!0}],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"Validate a pipe definition and trigger config without saving anything; an invalid one answers 400 PIPE_DEFINITION_INVALID with every reason."}]};var c=d(l());function p(e,t){return!1}s(p,"isOperatorDoor");function n(e){return!p(e.method,e.pattern)}s(n,"customerRow");async function g(){let e=c.CLI_COMMANDS;return{...e,commands:e.commands.filter(n)}}s(g,"loadPrimusCliCommands");function y(){let e=new Set(o.commands.map(t=>t.key));return i.commands.filter(t=>!e.has(t.key)&&n(t))}s(y,"adminExtraCommands");function h(){let e=new Set(o.commands.map(a=>a.key));return m.commands.filter(a=>!e.has(a.key)&&n(a))}s(h,"pipesExtraCommands");async function S(){let e=await g(),t=new Set(o.commands.map(a=>a.key));return[...e.commands,...y(),...h()].filter(a=>!t.has(a.key))}s(S,"loadExtraCommandRows");export{g as a,y as b,h as c,S as d};
|
|
1
|
+
import{a as o}from"./chunk-AGDMCMF3.mjs";import{a as s,b as u,d}from"./chunk-LJNU5QHZ.mjs";var l=u(r=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.CLI_COMMANDS=void 0;r.CLI_COMMANDS={contentHash:"ecf3a148496a6e2d270fbbfea654a04cc5e5b0024ba7654387d6526157dc78d1",generatedAt:"contract-ecf3a148496a6e2d270fbbfea654a04cc5e5b0024ba7654387d6526157dc78d1",commands:[{key:"primus.actions.send",commandPath:["primus","actions","send"],opId:"POST /v1/primus/conversations/:conversationId/send",method:"POST",pattern:"/v1/primus/conversations/:conversationId/send",pathParams:[{name:"conversationGid",key:"conversationId"}],flags:[{name:"content",coerce:null,optional:!1}],scopes:["conversations:write"],idempotent:!0,isQuery:!1,summary:"Send a user message into a conversation over the customer edge."},{key:"primus.actions.testFire",commandPath:["primus","actions","testFire"],opId:"POST /v1/primus/triggers/:triggerId/test-fire",method:"POST",pattern:"/v1/primus/triggers/:triggerId/test-fire",pathParams:[{name:"triggerGid",key:"triggerId"}],flags:[],scopes:["triggers:write"],idempotent:!0,isQuery:!1,summary:"Test-fire a trigger over the customer edge."},{key:"primus.agentGoals.create",commandPath:["primus","agentGoals","create"],opId:"POST /v1/primus/agent-goals",method:"POST",pattern:"/v1/primus/agent-goals",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"name",coerce:null,optional:!1},{name:"description",coerce:null,optional:!1},{name:"priority",coerce:null,optional:!1,choices:["critical","high","medium","low"]},{name:"type",coerce:null,optional:!1,choices:["standing","milestone","recurring"]},{name:"schedule",coerce:null,optional:!0},{name:"milestones",coerce:"json",optional:!0},{name:"constraints",coerce:"json",optional:!0},{name:"boundaries",coerce:"json",optional:!0}],scopes:["agents:write"],idempotent:!0,isQuery:!1,summary:"Create an agent goal over the customer edge."},{key:"primus.agentGoals.list",commandPath:["primus","agentGoals","list"],opId:"GET /v1/primus/agent-goals",method:"GET",pattern:"/v1/primus/agent-goals",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"status",coerce:null,optional:!0,choices:["active","completed","paused","abandoned"]},{name:"limit",coerce:"number",optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"List agent goals over the customer edge."},{key:"primus.agentGoals.recordProgress",commandPath:["primus","agentGoals","recordProgress"],opId:"POST /v1/primus/agent-goals/:goalId/progress",method:"POST",pattern:"/v1/primus/agent-goals/:goalId/progress",pathParams:[{name:"goalGid",key:"goalId"}],flags:[{name:"progress",coerce:"number",optional:!1},{name:"milestoneCompleted",coerce:"number",optional:!0}],scopes:["agents:write"],idempotent:!0,isQuery:!1,summary:"Record goal progress over the customer edge."},{key:"primus.agentGoals.retrieve",commandPath:["primus","agentGoals","retrieve"],opId:"GET /v1/primus/agent-goals/:goalId",method:"GET",pattern:"/v1/primus/agent-goals/:goalId",pathParams:[{name:"goalGid",key:"goalId"}],flags:[],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"Retrieve an agent goal over the customer edge."},{key:"primus.agentGoals.setStatus",commandPath:["primus","agentGoals","setStatus"],opId:"POST /v1/primus/agent-goals/:goalId/status",method:"POST",pattern:"/v1/primus/agent-goals/:goalId/status",pathParams:[{name:"goalGid",key:"goalId"}],flags:[{name:"status",coerce:null,optional:!1,choices:["active","paused","completed","abandoned"]}],scopes:["agents:write"],idempotent:!0,isQuery:!1,summary:"Set goal status over the customer edge."},{key:"primus.agentGoals.update",commandPath:["primus","agentGoals","update"],opId:"PATCH /v1/primus/agent-goals/:goalId",method:"PATCH",pattern:"/v1/primus/agent-goals/:goalId",pathParams:[{name:"goalGid",key:"goalId"}],flags:[{name:"name",coerce:null,optional:!0},{name:"description",coerce:null,optional:!0},{name:"priority",coerce:null,optional:!0,choices:["critical","high","medium","low"]},{name:"schedule",coerce:null,optional:!0},{name:"boundaries",coerce:"json",optional:!0}],scopes:["agents:write"],idempotent:!0,isQuery:!1,summary:"Update an agent goal over the customer edge."},{key:"primus.agents.activate",commandPath:["primus","agents","activate"],opId:"POST /v1/primus/agents/:agentId/activate",method:"POST",pattern:"/v1/primus/agents/:agentId/activate",pathParams:[{name:"agentGid",key:"agentId"}],flags:[],scopes:["agents:write"],idempotent:!0,isQuery:!1,summary:"Activate an agent over the customer edge."},{key:"primus.agents.archive",commandPath:["primus","agents","archive"],opId:"POST /v1/primus/agents/:agentId/archive",method:"POST",pattern:"/v1/primus/agents/:agentId/archive",pathParams:[{name:"agentGid",key:"agentId"}],flags:[],scopes:["agents:admin"],idempotent:!0,isQuery:!1,summary:"Archive an agent over the customer edge."},{key:"primus.agents.assignSkill",commandPath:["primus","agents","assignSkill"],opId:"POST /v1/primus/agents/:agentId/skills/assign",method:"POST",pattern:"/v1/primus/agents/:agentId/skills/assign",pathParams:[{name:"agentGid",key:"agentId"}],flags:[{name:"skillGid",coerce:null,optional:!1}],scopes:["agents:write"],idempotent:!0,isQuery:!1,summary:"Assign a skill to an agent over the customer edge."},{key:"primus.agents.create",commandPath:["primus","agents","create"],opId:"POST /v1/primus/agents",method:"POST",pattern:"/v1/primus/agents",pathParams:[],flags:[{name:"name",coerce:null,optional:!1},{name:"description",coerce:null,optional:!0},{name:"systemPrompt",coerce:null,optional:!1},{name:"personality",coerce:null,optional:!0},{name:"language",coerce:null,optional:!0},{name:"skills",coerce:"json",optional:!0},{name:"slug",coerce:null,optional:!0},{name:"isDiscoverable",coerce:"boolean",optional:!0},{name:"trustLevel",coerce:null,optional:!0,choices:["restricted","standard","elevated","admin"]},{name:"defaultModel",coerce:null,optional:!0},{name:"maxTurns",coerce:"number",optional:!0}],scopes:["agents:write"],idempotent:!0,isQuery:!1,summary:"Create an agent over the customer edge."},{key:"primus.agents.invoke",commandPath:["primus","agents","invoke"],opId:"POST /v1/primus/agents/:agentId/invoke",method:"POST",pattern:"/v1/primus/agents/:agentId/invoke",pathParams:[{name:"agentGid",key:"agentId"}],flags:[{name:"input",coerce:null,optional:!1},{name:"conversationId",coerce:null,optional:!0},{name:"stream",coerce:"boolean",optional:!0},{name:"traceparent",coerce:null,optional:!0}],scopes:["agents:execute"],idempotent:!0,isQuery:!1,summary:"Invoke an agent over the customer edge (action dispatch)."},{key:"primus.agents.list",commandPath:["primus","agents","list"],opId:"GET /v1/primus/agents",method:"GET",pattern:"/v1/primus/agents",pathParams:[],flags:[{name:"activeOnly",coerce:"boolean",optional:!0},{name:"status",coerce:null,optional:!0,choices:["active","paused","archived","all"]},{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"List agents over the customer edge \u2014 newest first, one page per call (limit \u2264 200, default 200; cursor = the previous page's last gid). With no status filter the listing returns every row that is NOT archived \u2014 paused rows included; status is an exact filter: active | paused | archived, plus all for every row."},{key:"primus.agents.pause",commandPath:["primus","agents","pause"],opId:"POST /v1/primus/agents/:agentId/pause",method:"POST",pattern:"/v1/primus/agents/:agentId/pause",pathParams:[{name:"agentGid",key:"agentId"}],flags:[],scopes:["agents:write"],idempotent:!0,isQuery:!1,summary:"Pause an agent over the customer edge."},{key:"primus.agents.remove",commandPath:["primus","agents","remove"],opId:"DELETE /v1/primus/agents/:agentId",method:"DELETE",pattern:"/v1/primus/agents/:agentId",pathParams:[{name:"agentGid",key:"agentId"}],flags:[],scopes:["agents:admin"],idempotent:!0,isQuery:!1,summary:"Soft-delete an agent over the customer edge."},{key:"primus.agents.retrieve",commandPath:["primus","agents","retrieve"],opId:"GET /v1/primus/agents/:agentId",method:"GET",pattern:"/v1/primus/agents/:agentId",pathParams:[{name:"agentGid",key:"agentId"}],flags:[],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"Retrieve an agent over the customer edge."},{key:"primus.agents.run",commandPath:["primus","agents","run"],opId:"POST /v1/primus/agents/:agentId/run",method:"POST",pattern:"/v1/primus/agents/:agentId/run",pathParams:[{name:"agentGid",key:"agentId"}],flags:[{name:"input",coerce:null,optional:!1},{name:"conversationId",coerce:null,optional:!0},{name:"traceparent",coerce:null,optional:!0}],scopes:["agents:execute"],idempotent:!0,isQuery:!1,summary:"Run an agent (action dispatch) over the customer edge."},{key:"primus.agents.unassignSkill",commandPath:["primus","agents","unassignSkill"],opId:"POST /v1/primus/agents/:agentId/skills/unassign",method:"POST",pattern:"/v1/primus/agents/:agentId/skills/unassign",pathParams:[{name:"agentGid",key:"agentId"}],flags:[{name:"skillGid",coerce:null,optional:!1}],scopes:["agents:write"],idempotent:!0,isQuery:!1,summary:"Unassign a skill from an agent over the customer edge."},{key:"primus.agents.update",commandPath:["primus","agents","update"],opId:"PATCH /v1/primus/agents/:agentId",method:"PATCH",pattern:"/v1/primus/agents/:agentId",pathParams:[{name:"agentGid",key:"agentId"}],flags:[{name:"name",coerce:null,optional:!0},{name:"description",coerce:null,optional:!0},{name:"systemPrompt",coerce:null,optional:!0},{name:"personality",coerce:null,optional:!0},{name:"language",coerce:null,optional:!0},{name:"skills",coerce:"json",optional:!0},{name:"enabledIntegrations",coerce:"json",optional:!0},{name:"trustLevel",coerce:null,optional:!0,choices:["restricted","standard","elevated","admin"]},{name:"defaultModel",coerce:null,optional:!0},{name:"maxTurns",coerce:"number",optional:!0},{name:"config",coerce:"json",optional:!0},{name:"isDiscoverable",coerce:"boolean",optional:!0}],scopes:["agents:write"],idempotent:!0,isQuery:!1,summary:"Update an agent over the customer edge."},{key:"primus.approvals.approve",commandPath:["primus","approvals","approve"],opId:"POST /v1/primus/approvals/:approvalId/approve",method:"POST",pattern:"/v1/primus/approvals/:approvalId/approve",pathParams:[{name:"approvalGid",key:"approvalId"}],flags:[{name:"reason",coerce:null,optional:!0}],scopes:["approvals:write"],idempotent:!0,isQuery:!1,summary:"Approve a pending approval over the customer edge."},{key:"primus.approvals.create",commandPath:["primus","approvals","create"],opId:"POST /v1/primus/approvals",method:"POST",pattern:"/v1/primus/approvals",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"conversationId",coerce:null,optional:!0},{name:"actionType",coerce:null,optional:!1},{name:"requiredApprover",coerce:null,optional:!1,choices:["member","manager","admin"]},{name:"actionDescription",coerce:null,optional:!1},{name:"actionPayload",coerce:"json",optional:!1},{name:"riskFactors",coerce:"json",optional:!0},{name:"expiresInMs",coerce:"number",optional:!0}],scopes:["approvals:write"],idempotent:!0,isQuery:!1,summary:"Create an approval request over the customer edge."},{key:"primus.approvals.getPendingSummary",commandPath:["primus","approvals","getPendingSummary"],opId:"GET /v1/primus/approvals/pending/summary",method:"GET",pattern:"/v1/primus/approvals/pending/summary",pathParams:[],flags:[],scopes:["approvals:read"],idempotent:!1,isQuery:!0,summary:"Pending approval summary over the customer edge."},{key:"primus.approvals.list",commandPath:["primus","approvals","list"],opId:"GET /v1/primus/approvals",method:"GET",pattern:"/v1/primus/approvals",pathParams:[],flags:[{name:"status",coerce:null,optional:!0,choices:["pending","approved","rejected","expired","auto_approved"]}],scopes:["approvals:read"],idempotent:!1,isQuery:!0,summary:"List approvals over the customer edge."},{key:"primus.approvals.listByAgent",commandPath:["primus","approvals","listByAgent"],opId:"GET /v1/primus/approvals/by-agent",method:"GET",pattern:"/v1/primus/approvals/by-agent",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"pendingOnly",coerce:"boolean",optional:!0}],scopes:["approvals:read"],idempotent:!1,isQuery:!0,summary:"List an agent approvals over the customer edge."},{key:"primus.approvals.listPending",commandPath:["primus","approvals","listPending"],opId:"GET /v1/primus/approvals/pending",method:"GET",pattern:"/v1/primus/approvals/pending",pathParams:[],flags:[],scopes:["approvals:read"],idempotent:!1,isQuery:!0,summary:"List pending approvals over the customer edge."},{key:"primus.approvals.pendingCount",commandPath:["primus","approvals","pendingCount"],opId:"GET /v1/primus/approvals/pending/count",method:"GET",pattern:"/v1/primus/approvals/pending/count",pathParams:[],flags:[],scopes:["approvals:read"],idempotent:!1,isQuery:!0,summary:"Pending approval count over the customer edge."},{key:"primus.approvals.reject",commandPath:["primus","approvals","reject"],opId:"POST /v1/primus/approvals/:approvalId/reject",method:"POST",pattern:"/v1/primus/approvals/:approvalId/reject",pathParams:[{name:"approvalGid",key:"approvalId"}],flags:[{name:"reason",coerce:null,optional:!0}],scopes:["approvals:write"],idempotent:!0,isQuery:!1,summary:"Reject a pending approval over the customer edge."},{key:"primus.approvals.retrieve",commandPath:["primus","approvals","retrieve"],opId:"GET /v1/primus/approvals/:approvalId",method:"GET",pattern:"/v1/primus/approvals/:approvalId",pathParams:[{name:"approvalGid",key:"approvalId"}],flags:[],scopes:["approvals:read"],idempotent:!1,isQuery:!0,summary:"Retrieve an approval over the customer edge."},{key:"primus.brainConfig.configure",commandPath:["primus","brainConfig","configure"],opId:"PUT /v1/primus/brain/config",method:"PUT",pattern:"/v1/primus/brain/config",pathParams:[],flags:[{name:"mode",coerce:null,optional:!1,choices:["managed","byok"]},{name:"providers",coerce:"json",optional:!1},{name:"routing",coerce:null,optional:!1,choices:["cost-optimized","latency-optimized","quality-optimized","compliance"]},{name:"defaultProvider",coerce:null,optional:!0},{name:"defaultModel",coerce:null,optional:!0},{name:"tokenBudget",coerce:"json",optional:!0}],scopes:["brain:write"],idempotent:!0,isQuery:!1,summary:"Configure the brain over the customer edge."},{key:"primus.brainConfig.deleteConfig",commandPath:["primus","brainConfig","deleteConfig"],opId:"DELETE /v1/primus/brain/config",method:"DELETE",pattern:"/v1/primus/brain/config",pathParams:[],flags:[],scopes:["brain:admin"],idempotent:!0,isQuery:!1,summary:"Delete brain config over the customer edge."},{key:"primus.brainConfig.getConfig",commandPath:["primus","brainConfig","getConfig"],opId:"GET /v1/primus/brain/config",method:"GET",pattern:"/v1/primus/brain/config",pathParams:[],flags:[],scopes:["brain:read"],idempotent:!1,isQuery:!0,summary:"Get brain config over the customer edge."},{key:"primus.brainConfig.getLlmDashboard",commandPath:["primus","brainConfig","getLlmDashboard"],opId:"GET /v1/primus/brain/llm-dashboard",method:"GET",pattern:"/v1/primus/brain/llm-dashboard",pathParams:[],flags:[],scopes:["brain:read"],idempotent:!1,isQuery:!0,summary:"LLM dashboard over the customer edge."},{key:"primus.brainConfig.getUsageDashboard",commandPath:["primus","brainConfig","getUsageDashboard"],opId:"GET /v1/primus/brain/usage-dashboard",method:"GET",pattern:"/v1/primus/brain/usage-dashboard",pathParams:[],flags:[{name:"range",coerce:null,optional:!0,choices:["7d","30d","90d"]}],scopes:["brain:read"],idempotent:!1,isQuery:!0,summary:"Brain usage dashboard over the customer edge."},{key:"primus.brainConfig.listProviderModels",commandPath:["primus","brainConfig","listProviderModels"],opId:"POST /v1/primus/brain/provider-models",method:"POST",pattern:"/v1/primus/brain/provider-models",pathParams:[],flags:[{name:"provider",coerce:null,optional:!1}],scopes:["brain:read"],idempotent:!1,isQuery:!1,summary:"List a provider's callable models (live) over the customer edge."},{key:"primus.brainConfig.storeProviderKey",commandPath:["primus","brainConfig","storeProviderKey"],opId:"POST /v1/primus/brain/provider-keys",method:"POST",pattern:"/v1/primus/brain/provider-keys",pathParams:[],flags:[{name:"provider",coerce:null,optional:!1},{name:"apiKey",coerce:null,optional:!1}],scopes:["brain:write"],idempotent:!0,isQuery:!1,summary:"Store an LLM provider key (action) over the customer edge."},{key:"primus.brainModels.list",commandPath:["primus","brainModels","list"],opId:"GET /v1/primus/brain/models",method:"GET",pattern:"/v1/primus/brain/models",pathParams:[],flags:[{name:"provider",coerce:null,optional:!0}],scopes:["brain:read"],idempotent:!0,isQuery:!0,summary:"List the tenant's persisted provider-models catalog with per-provider sync state (no live provider call)."},{key:"primus.brainModels.refresh",commandPath:["primus","brainModels","refresh"],opId:"POST /v1/primus/brain/models/refresh",method:"POST",pattern:"/v1/primus/brain/models/refresh",pathParams:[],flags:[{name:"provider",coerce:null,optional:!0}],scopes:["brain:write"],idempotent:!1,isQuery:!1,summary:"Durably re-sync the persisted models catalog from the providers' live APIs (retrier-backed; outcome lands on the catalog state)."},{key:"primus.configPromotion.applyConfigBundle",commandPath:["primus","configPromotion","applyConfigBundle"],opId:"POST /v1/primus/config/apply",method:"POST",pattern:"/v1/primus/config/apply",pathParams:[],flags:[{name:"data",coerce:"json",optional:!1}],scopes:["agents:admin"],idempotent:!1,isQuery:!1,summary:"Apply a promotion bundle onto the caller's (app, environment) \u2014 idempotent on natural keys, fail-closed on missing parents."},{key:"primus.configPromotion.exportConfig",commandPath:["primus","configPromotion","exportConfig"],opId:"GET /v1/primus/config/export",method:"GET",pattern:"/v1/primus/config/export",pathParams:[],flags:[],scopes:["agents:admin"],idempotent:!1,isQuery:!0,summary:"Export the (app, environment) config snapshot for promotion \u2014 every secret-bearing field stripped."},{key:"primus.conversations.archive",commandPath:["primus","conversations","archive"],opId:"POST /v1/primus/conversations/:conversationId/archive",method:"POST",pattern:"/v1/primus/conversations/:conversationId/archive",pathParams:[{name:"conversationGid",key:"conversationId"}],flags:[],scopes:["conversations:admin"],idempotent:!0,isQuery:!1,summary:"Archive a conversation over the customer edge."},{key:"primus.conversations.create",commandPath:["primus","conversations","create"],opId:"POST /v1/primus/conversations",method:"POST",pattern:"/v1/primus/conversations",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"title",coerce:null,optional:!0}],scopes:["conversations:write"],idempotent:!0,isQuery:!1,summary:"Create a conversation over the customer edge."},{key:"primus.conversations.getWithMessages",commandPath:["primus","conversations","getWithMessages"],opId:"GET /v1/primus/conversations/:conversationId/messages",method:"GET",pattern:"/v1/primus/conversations/:conversationId/messages",pathParams:[{name:"conversationGid",key:"conversationId"}],flags:[{name:"messageLimit",coerce:"number",optional:!0}],scopes:["conversations:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a conversation with messages over the customer edge."},{key:"primus.conversations.list",commandPath:["primus","conversations","list"],opId:"GET /v1/primus/conversations",method:"GET",pattern:"/v1/primus/conversations",pathParams:[],flags:[{name:"status",coerce:null,optional:!0,choices:["active","archived","deleted"]},{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0}],scopes:["conversations:read"],idempotent:!1,isQuery:!0,summary:"List conversations over the customer edge."},{key:"primus.conversations.listByAgent",commandPath:["primus","conversations","listByAgent"],opId:"GET /v1/primus/conversations/by-agent",method:"GET",pattern:"/v1/primus/conversations/by-agent",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"includeArchived",coerce:"boolean",optional:!0}],scopes:["conversations:read"],idempotent:!1,isQuery:!0,summary:"List an agent's conversations over the customer edge."},{key:"primus.conversations.listWithStats",commandPath:["primus","conversations","listWithStats"],opId:"GET /v1/primus/conversations/stats",method:"GET",pattern:"/v1/primus/conversations/stats",pathParams:[],flags:[{name:"status",coerce:null,optional:!0,choices:["active","archived","deleted"]},{name:"limit",coerce:"number",optional:!0}],scopes:["conversations:read"],idempotent:!1,isQuery:!0,summary:"List conversations with stats over the customer edge."},{key:"primus.conversations.remove",commandPath:["primus","conversations","remove"],opId:"DELETE /v1/primus/conversations/:conversationId",method:"DELETE",pattern:"/v1/primus/conversations/:conversationId",pathParams:[{name:"conversationGid",key:"conversationId"}],flags:[],scopes:["conversations:admin"],idempotent:!0,isQuery:!1,summary:"Delete a conversation over the customer edge."},{key:"primus.conversations.retrieve",commandPath:["primus","conversations","retrieve"],opId:"GET /v1/primus/conversations/:conversationId",method:"GET",pattern:"/v1/primus/conversations/:conversationId",pathParams:[{name:"conversationGid",key:"conversationId"}],flags:[],scopes:["conversations:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a conversation over the customer edge."},{key:"primus.conversations.update",commandPath:["primus","conversations","update"],opId:"PATCH /v1/primus/conversations/:conversationId",method:"PATCH",pattern:"/v1/primus/conversations/:conversationId",pathParams:[{name:"conversationGid",key:"conversationId"}],flags:[{name:"title",coerce:null,optional:!0},{name:"summary",coerce:null,optional:!0}],scopes:["conversations:write"],idempotent:!0,isQuery:!1,summary:"Update a conversation over the customer edge."},{key:"primus.delegations.listByDelegate",commandPath:["primus","delegations","listByDelegate"],opId:"GET /v1/primus/delegations/by-delegate",method:"GET",pattern:"/v1/primus/delegations/by-delegate",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"limit",coerce:"number",optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"List delegations by delegate over the customer edge."},{key:"primus.delegations.listByDelegator",commandPath:["primus","delegations","listByDelegator"],opId:"GET /v1/primus/delegations/by-delegator",method:"GET",pattern:"/v1/primus/delegations/by-delegator",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"limit",coerce:"number",optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"List delegations by delegator over the customer edge."},{key:"primus.delegations.listByTeam",commandPath:["primus","delegations","listByTeam"],opId:"GET /v1/primus/delegations/by-team",method:"GET",pattern:"/v1/primus/delegations/by-team",pathParams:[],flags:[{name:"teamGid",coerce:null,optional:!1},{name:"limit",coerce:"number",optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"List delegations by team over the customer edge."},{key:"primus.entitlements.retrieve",commandPath:["primus","entitlements","retrieve"],opId:"GET /v1/primus/entitlements",method:"GET",pattern:"/v1/primus/entitlements",pathParams:[],flags:[],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"The caller's plan tier, capabilities, and limits+usage."},{key:"primus.execution.approve",commandPath:["primus","execution","approve"],opId:"POST /v1/primus/executions/:executionId/approve",method:"POST",pattern:"/v1/primus/executions/:executionId/approve",pathParams:[{name:"executionGid",key:"executionId"}],flags:[],scopes:["executions:admin"],idempotent:!0,isQuery:!1,summary:"Approve a pending execution over the customer edge."},{key:"primus.execution.cancel",commandPath:["primus","execution","cancel"],opId:"POST /v1/primus/executions/:executionId/cancel",method:"POST",pattern:"/v1/primus/executions/:executionId/cancel",pathParams:[{name:"executionGid",key:"executionId"}],flags:[{name:"reason",coerce:null,optional:!0}],scopes:["executions:execute"],idempotent:!0,isQuery:!1,summary:"Cancel an execution over the customer edge."},{key:"primus.execution.create",commandPath:["primus","execution","create"],opId:"POST /v1/primus/executions",method:"POST",pattern:"/v1/primus/executions",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"conversationGid",coerce:null,optional:!0},{name:"toolName",coerce:null,optional:!1},{name:"arguments",coerce:"json",optional:!1},{name:"priority",coerce:null,optional:!0,choices:["low","normal","high","urgent"]},{name:"parentExecutionGid",coerce:null,optional:!0},{name:"triggerType",coerce:null,optional:!0,choices:["user","agent","trigger","proactive"]},{name:"triggerSource",coerce:null,optional:!0}],scopes:["executions:execute"],idempotent:!0,isQuery:!1,summary:"Create an execution over the customer edge."},{key:"primus.execution.createBatch",commandPath:["primus","execution","createBatch"],opId:"POST /v1/primus/executions/batch",method:"POST",pattern:"/v1/primus/executions/batch",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"conversationGid",coerce:null,optional:!0},{name:"executions",coerce:"json",optional:!1},{name:"parallel",coerce:"boolean",optional:!0}],scopes:["executions:execute"],idempotent:!0,isQuery:!1,summary:"Create an execution batch over the customer edge."},{key:"primus.execution.getDetails",commandPath:["primus","execution","getDetails"],opId:"GET /v1/primus/executions/:executionId/details",method:"GET",pattern:"/v1/primus/executions/:executionId/details",pathParams:[{name:"executionGid",key:"executionId"}],flags:[],scopes:["executions:read"],idempotent:!1,isQuery:!0,summary:"Execution details over the customer edge."},{key:"primus.execution.getPendingApprovals",commandPath:["primus","execution","getPendingApprovals"],opId:"GET /v1/primus/executions/pending-approvals",method:"GET",pattern:"/v1/primus/executions/pending-approvals",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!0}],scopes:["executions:read"],idempotent:!1,isQuery:!0,summary:"Pending approvals over the customer edge."},{key:"primus.execution.getStats",commandPath:["primus","execution","getStats"],opId:"GET /v1/primus/executions/stats",method:"GET",pattern:"/v1/primus/executions/stats",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!0},{name:"timeRange",coerce:"number",optional:!0}],scopes:["executions:read"],idempotent:!1,isQuery:!0,summary:"Execution stats over the customer edge."},{key:"primus.execution.list",commandPath:["primus","execution","list"],opId:"GET /v1/primus/executions",method:"GET",pattern:"/v1/primus/executions",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!0},{name:"status",coerce:null,optional:!0},{name:"includeLeadRuns",coerce:"boolean",optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["executions:read"],idempotent:!1,isQuery:!0,summary:"List executions over the customer edge."},{key:"primus.execution.listByAgent",commandPath:["primus","execution","listByAgent"],opId:"GET /v1/primus/executions/by-agent",method:"GET",pattern:"/v1/primus/executions/by-agent",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"status",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["executions:read"],idempotent:!1,isQuery:!0,summary:"List an agent executions over the customer edge."},{key:"primus.execution.listByConversation",commandPath:["primus","execution","listByConversation"],opId:"GET /v1/primus/executions/by-conversation",method:"GET",pattern:"/v1/primus/executions/by-conversation",pathParams:[],flags:[{name:"conversationGid",coerce:null,optional:!1},{name:"limit",coerce:"number",optional:!0}],scopes:["executions:read"],idempotent:!1,isQuery:!0,summary:"List a conversation executions over the customer edge."},{key:"primus.execution.reject",commandPath:["primus","execution","reject"],opId:"POST /v1/primus/executions/:executionId/reject",method:"POST",pattern:"/v1/primus/executions/:executionId/reject",pathParams:[{name:"executionGid",key:"executionId"}],flags:[{name:"reason",coerce:null,optional:!0}],scopes:["executions:admin"],idempotent:!0,isQuery:!1,summary:"Reject a pending execution over the customer edge."},{key:"primus.execution.retrieve",commandPath:["primus","execution","retrieve"],opId:"GET /v1/primus/executions/:executionId",method:"GET",pattern:"/v1/primus/executions/:executionId",pathParams:[{name:"executionGid",key:"executionId"}],flags:[],scopes:["executions:read"],idempotent:!1,isQuery:!0,summary:"Retrieve an execution over the customer edge."},{key:"primus.execution.streamEvents",commandPath:["primus","execution","streamEvents"],opId:"GET /v1/primus/executions/:executionId/events",method:"GET",pattern:"/v1/primus/executions/:executionId/events",pathParams:[{name:"executionGid",key:"executionId"}],flags:[{name:"afterSequence",coerce:"number",optional:!0}],scopes:["executions:read"],idempotent:!1,isQuery:!0,summary:"Execution stream events over the customer edge."},{key:"primus.execution.traces",commandPath:["primus","execution","traces"],opId:"GET /v1/primus/executions/:executionId/traces",method:"GET",pattern:"/v1/primus/executions/:executionId/traces",pathParams:[{name:"executionGid",key:"executionId"}],flags:[],scopes:["executions:read"],idempotent:!1,isQuery:!0,summary:"Execution traces over the customer edge."},{key:"primus.guardrailOutcomes.list",commandPath:["primus","guardrailOutcomes","list"],opId:"GET /v1/primus/guardrails/outcomes",method:"GET",pattern:"/v1/primus/guardrails/outcomes",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["guardrails:read"],idempotent:!1,isQuery:!0,summary:"List what your guardrails blocked or stopped, newest first."},{key:"primus.guardrailOutcomes.retrieve",commandPath:["primus","guardrailOutcomes","retrieve"],opId:"GET /v1/primus/guardrails/outcomes/:outcomeId",method:"GET",pattern:"/v1/primus/guardrails/outcomes/:outcomeId",pathParams:[{name:"outcomeGid",key:"outcomeId"}],flags:[],scopes:["guardrails:read"],idempotent:!1,isQuery:!0,summary:"Retrieve one guardrail outcome by its reference."},{key:"primus.integrations.connect",commandPath:["primus","integrations","connect"],opId:"POST /v1/primus/integrations/connect",method:"POST",pattern:"/v1/primus/integrations/connect",pathParams:[],flags:[{name:"provider",coerce:null,optional:!1,choices:["google","microsoft","slack","github","npayload","custom"]},{name:"authCode",coerce:null,optional:!1},{name:"redirectUri",coerce:null,optional:!1},{name:"scopes",coerce:"json",optional:!1},{name:"name",coerce:null,optional:!0}],scopes:["connections:write"],idempotent:!1,isQuery:!1,summary:"Connect a third-party integration for the caller's app + environment (OAuth code exchange completes asynchronously; tokens land in the vault only)."},{key:"primus.integrations.disconnect",commandPath:["primus","integrations","disconnect"],opId:"POST /v1/primus/integrations/:connectionId/disconnect",method:"POST",pattern:"/v1/primus/integrations/:connectionId/disconnect",pathParams:[{name:"connectionGid",key:"connectionId"}],flags:[],scopes:["connections:write"],idempotent:!1,isQuery:!1,summary:"Disconnect one integration connection (revoked; its stored credentials are deleted)."},{key:"primus.integrations.list",commandPath:["primus","integrations","list"],opId:"GET /v1/primus/integrations",method:"GET",pattern:"/v1/primus/integrations",pathParams:[],flags:[{name:"status",coerce:null,optional:!0,choices:["active","expired","revoked"]},{name:"activeOnly",coerce:"boolean",optional:!0}],scopes:["connections:read"],idempotent:!1,isQuery:!0,summary:"List the caller's integration connections (no token material)."},{key:"primus.integrations.refresh",commandPath:["primus","integrations","refresh"],opId:"POST /v1/primus/integrations/:connectionId/refresh",method:"POST",pattern:"/v1/primus/integrations/:connectionId/refresh",pathParams:[{name:"connectionGid",key:"connectionId"}],flags:[],scopes:["connections:write"],idempotent:!1,isQuery:!1,summary:"Schedule a token refresh for one connection \u2014 honours the provider's rotation, retries transient failures."},{key:"primus.integrations.retrieve",commandPath:["primus","integrations","retrieve"],opId:"GET /v1/primus/integrations/:connectionId",method:"GET",pattern:"/v1/primus/integrations/:connectionId",pathParams:[{name:"connectionGid",key:"connectionId"}],flags:[],scopes:["connections:read"],idempotent:!1,isQuery:!0,summary:"Retrieve one integration connection by gid (no token material)."},{key:"primus.killSwitch.activate",commandPath:["primus","killSwitch","activate"],opId:"POST /v1/primus/kill-switch/activate",method:"POST",pattern:"/v1/primus/kill-switch/activate",pathParams:[],flags:[{name:"level",coerce:null,optional:!1,choices:["owner","agent"]},{name:"targetAgentGid",coerce:null,optional:!0},{name:"reason",coerce:null,optional:!1},{name:"threatLevel",coerce:null,optional:!1,choices:["low","medium","high","critical"]},{name:"autoResumeAt",coerce:"number",optional:!0}],scopes:["guardrails:admin"],idempotent:!0,isQuery:!1,summary:"Turn on a kill switch for your organization (level owner) or one agent (level agent)."},{key:"primus.killSwitch.checkBlocking",commandPath:["primus","killSwitch","checkBlocking"],opId:"GET /v1/primus/kill-switch/check",method:"GET",pattern:"/v1/primus/kill-switch/check",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1}],scopes:["guardrails:read"],idempotent:!1,isQuery:!0,summary:"Kill-switch blocking check over the customer edge."},{key:"primus.killSwitch.deactivate",commandPath:["primus","killSwitch","deactivate"],opId:"POST /v1/primus/kill-switch/deactivate",method:"POST",pattern:"/v1/primus/kill-switch/deactivate",pathParams:[],flags:[{name:"killSwitchGid",coerce:null,optional:!1},{name:"resolutionNotes",coerce:null,optional:!0}],scopes:["guardrails:admin"],idempotent:!0,isQuery:!1,summary:"Deactivate a kill switch over the customer edge."},{key:"primus.killSwitch.list",commandPath:["primus","killSwitch","list"],opId:"GET /v1/primus/kill-switch",method:"GET",pattern:"/v1/primus/kill-switch",pathParams:[],flags:[{name:"level",coerce:null,optional:!0},{name:"agentGid",coerce:null,optional:!0}],scopes:["guardrails:read"],idempotent:!1,isQuery:!0,summary:"List kill switches over the customer edge."},{key:"primus.killSwitch.listActive",commandPath:["primus","killSwitch","listActive"],opId:"GET /v1/primus/kill-switch/active",method:"GET",pattern:"/v1/primus/kill-switch/active",pathParams:[],flags:[],scopes:["guardrails:read"],idempotent:!1,isQuery:!0,summary:"Active kill switches over the customer edge."},{key:"primus.killSwitch.retrieve",commandPath:["primus","killSwitch","retrieve"],opId:"GET /v1/primus/kill-switch/:killSwitchId",method:"GET",pattern:"/v1/primus/kill-switch/:killSwitchId",pathParams:[{name:"killSwitchGid",key:"killSwitchId"}],flags:[],scopes:["guardrails:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a kill switch over the customer edge."},{key:"primus.killSwitch.status",commandPath:["primus","killSwitch","status"],opId:"GET /v1/primus/kill-switch/status",method:"GET",pattern:"/v1/primus/kill-switch/status",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!0}],scopes:["guardrails:read"],idempotent:!1,isQuery:!0,summary:"Kill-switch status over the customer edge."},{key:"primus.learning.decideProactiveAction",commandPath:["primus","learning","decideProactiveAction"],opId:"POST /v1/primus/learning/proactive-actions/decide",method:"POST",pattern:"/v1/primus/learning/proactive-actions/decide",pathParams:[],flags:[{name:"actionGid",coerce:null,optional:!1},{name:"decision",coerce:null,optional:!1,choices:["approve","reject","modify"]},{name:"modification",coerce:null,optional:!0}],scopes:["agents:write"],idempotent:!0,isQuery:!1,summary:"Decide a proactive action over the customer edge."},{key:"primus.learning.listFeedback",commandPath:["primus","learning","listFeedback"],opId:"GET /v1/primus/learning/feedback",method:"GET",pattern:"/v1/primus/learning/feedback",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"List feedback over the customer edge."},{key:"primus.learning.listFeedbackByAgent",commandPath:["primus","learning","listFeedbackByAgent"],opId:"GET /v1/primus/learning/feedback/by-agent",method:"GET",pattern:"/v1/primus/learning/feedback/by-agent",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"timeRange",coerce:"number",optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"List an agent feedback over the customer edge."},{key:"primus.learning.listPatterns",commandPath:["primus","learning","listPatterns"],opId:"GET /v1/primus/learning/patterns",method:"GET",pattern:"/v1/primus/learning/patterns",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!0},{name:"type",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"List learning patterns over the customer edge."},{key:"primus.learning.listPatternsByAgent",commandPath:["primus","learning","listPatternsByAgent"],opId:"GET /v1/primus/learning/patterns/by-agent",method:"GET",pattern:"/v1/primus/learning/patterns/by-agent",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"timeRange",coerce:"number",optional:!0},{name:"type",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"List an agent patterns over the customer edge."},{key:"primus.learning.listPredictions",commandPath:["primus","learning","listPredictions"],opId:"GET /v1/primus/learning/predictions",method:"GET",pattern:"/v1/primus/learning/predictions",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"status",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"List predictions over the customer edge."},{key:"primus.learning.listProactiveActions",commandPath:["primus","learning","listProactiveActions"],opId:"GET /v1/primus/learning/proactive-actions",method:"GET",pattern:"/v1/primus/learning/proactive-actions",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"status",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"List proactive actions over the customer edge."},{key:"primus.learning.setPatternActive",commandPath:["primus","learning","setPatternActive"],opId:"POST /v1/primus/learning/patterns/set-active",method:"POST",pattern:"/v1/primus/learning/patterns/set-active",pathParams:[],flags:[{name:"patternGid",coerce:null,optional:!1},{name:"isActive",coerce:"boolean",optional:!1}],scopes:["agents:write"],idempotent:!0,isQuery:!1,summary:"Set a pattern active over the customer edge."},{key:"primus.learning.submitFeedback",commandPath:["primus","learning","submitFeedback"],opId:"POST /v1/primus/learning/feedback",method:"POST",pattern:"/v1/primus/learning/feedback",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"type",coerce:null,optional:!1,choices:["explicit","implicit","correction"]},{name:"sentiment",coerce:null,optional:!1,choices:["positive","negative","neutral"]},{name:"rating",coerce:"number",optional:!0},{name:"comment",coerce:null,optional:!0},{name:"correction",coerce:null,optional:!0},{name:"conversationGid",coerce:null,optional:!0},{name:"executionGid",coerce:null,optional:!0},{name:"messageGid",coerce:null,optional:!0},{name:"metadata",coerce:"json",optional:!0}],scopes:["agents:write"],idempotent:!0,isQuery:!1,summary:"Submit feedback over the customer edge."},{key:"primus.mcpConnect.beginConnect",commandPath:["primus","mcpConnect","beginConnect"],opId:"POST /v1/primus/mcp-servers/:mcpServerId/connect/begin",method:"POST",pattern:"/v1/primus/mcp-servers/:mcpServerId/connect/begin",pathParams:[{name:"mcpServerGid",key:"mcpServerId"}],flags:[],scopes:["connections:write"],idempotent:!1,isQuery:!1,summary:"Begin an end-user MCP connection \u2014 returns the authorize URL the component opens."},{key:"primus.mcpConnect.listConnections",commandPath:["primus","mcpConnect","listConnections"],opId:"GET /v1/primus/mcp-connections",method:"GET",pattern:"/v1/primus/mcp-connections",pathParams:[],flags:[],scopes:["connections:read"],idempotent:!1,isQuery:!0,summary:"List the calling end user's own MCP connections."},{key:"primus.mcpConnect.revokeConnection",commandPath:["primus","mcpConnect","revokeConnection"],opId:"POST /v1/primus/mcp-connections/:credentialId/revoke",method:"POST",pattern:"/v1/primus/mcp-connections/:credentialId/revoke",pathParams:[{name:"credentialGid",key:"credentialId"}],flags:[],scopes:["connections:write"],idempotent:!0,isQuery:!1,summary:"Revoke the calling end user's own MCP connection."},{key:"primus.mcpOauth.beginOauth",commandPath:["primus","mcpOauth","beginOauth"],opId:"POST /v1/primus/mcp-servers/:mcpServerId/oauth/begin",method:"POST",pattern:"/v1/primus/mcp-servers/:mcpServerId/oauth/begin",pathParams:[{name:"mcpServerGid",key:"mcpServerId"}],flags:[],scopes:["tools:write"],idempotent:!1,isQuery:!1,summary:"Begin connector OAuth for an outbound MCP server \u2014 returns the authorize URL the browser opens."},{key:"primus.mcpOauth.setPreregisteredClient",commandPath:["primus","mcpOauth","setPreregisteredClient"],opId:"POST /v1/primus/mcp-servers/:mcpServerId/oauth/client",method:"POST",pattern:"/v1/primus/mcp-servers/:mcpServerId/oauth/client",pathParams:[{name:"mcpServerGid",key:"mcpServerId"}],flags:[{name:"clientId",coerce:null,optional:!1},{name:"clientSecret",coerce:null,optional:!0}],scopes:["tools:admin"],idempotent:!0,isQuery:!1,summary:"Register an out-of-band OAuth client for an outbound MCP server (operator-supplied client_id + optional secret)."},{key:"primus.mcpServers.connect",commandPath:["primus","mcpServers","connect"],opId:"POST /v1/primus/mcp-servers",method:"POST",pattern:"/v1/primus/mcp-servers",pathParams:[],flags:[{name:"serverUrl",coerce:null,optional:!1},{name:"name",coerce:null,optional:!1},{name:"description",coerce:null,optional:!0},{name:"authMethod",coerce:null,optional:!1,choices:["none","bearer","oauth"]},{name:"authToken",coerce:null,optional:!0},{name:"credentialScope",coerce:null,optional:!0,choices:["shared","per_tenant"]}],scopes:["tools:write"],idempotent:!0,isQuery:!1,summary:"Connect an MCP server (action) over the customer edge."},{key:"primus.mcpServers.disconnect",commandPath:["primus","mcpServers","disconnect"],opId:"POST /v1/primus/mcp-servers/:mcpServerId/disconnect",method:"POST",pattern:"/v1/primus/mcp-servers/:mcpServerId/disconnect",pathParams:[{name:"mcpServerGid",key:"mcpServerId"}],flags:[],scopes:["tools:admin"],idempotent:!0,isQuery:!1,summary:"Disconnect an MCP server (action) over the customer edge."},{key:"primus.mcpServers.list",commandPath:["primus","mcpServers","list"],opId:"GET /v1/primus/mcp-servers",method:"GET",pattern:"/v1/primus/mcp-servers",pathParams:[],flags:[],scopes:["tools:read"],idempotent:!1,isQuery:!0,summary:"List MCP servers over the customer edge."},{key:"primus.mcpServers.reconnect",commandPath:["primus","mcpServers","reconnect"],opId:"POST /v1/primus/mcp-servers/:mcpServerId/reconnect",method:"POST",pattern:"/v1/primus/mcp-servers/:mcpServerId/reconnect",pathParams:[{name:"mcpServerGid",key:"mcpServerId"}],flags:[],scopes:["tools:write"],idempotent:!0,isQuery:!1,summary:"Reconnect an MCP server (action) over the customer edge."},{key:"primus.mcpServers.rename",commandPath:["primus","mcpServers","rename"],opId:"POST /v1/primus/mcp-servers/:mcpServerId/rename",method:"POST",pattern:"/v1/primus/mcp-servers/:mcpServerId/rename",pathParams:[{name:"mcpServerGid",key:"mcpServerId"}],flags:[{name:"name",coerce:null,optional:!1}],scopes:["tools:write"],idempotent:!0,isQuery:!1,summary:"Rename an MCP server (action) over the customer edge."},{key:"primus.mcpServers.retrieve",commandPath:["primus","mcpServers","retrieve"],opId:"GET /v1/primus/mcp-servers/:mcpServerId",method:"GET",pattern:"/v1/primus/mcp-servers/:mcpServerId",pathParams:[{name:"mcpServerGid",key:"mcpServerId"}],flags:[],scopes:["tools:read"],idempotent:!1,isQuery:!0,summary:"Retrieve an MCP server over the customer edge."},{key:"primus.mcpServers.rotateAuth",commandPath:["primus","mcpServers","rotateAuth"],opId:"POST /v1/primus/mcp-servers/:mcpServerId/rotate-auth",method:"POST",pattern:"/v1/primus/mcp-servers/:mcpServerId/rotate-auth",pathParams:[{name:"mcpServerGid",key:"mcpServerId"}],flags:[{name:"authToken",coerce:null,optional:!1}],scopes:["tools:admin"],idempotent:!0,isQuery:!1,summary:"Rotate MCP server auth (action) over the customer edge."},{key:"primus.mcpServers.test",commandPath:["primus","mcpServers","test"],opId:"POST /v1/primus/mcp-servers/test",method:"POST",pattern:"/v1/primus/mcp-servers/test",pathParams:[],flags:[{name:"serverUrl",coerce:null,optional:!1},{name:"authMethod",coerce:null,optional:!1,choices:["none","bearer","oauth"]},{name:"authToken",coerce:null,optional:!0}],scopes:["tools:write"],idempotent:!0,isQuery:!1,summary:"Test an MCP server (action) over the customer edge."},{key:"primus.memories.create",commandPath:["primus","memories","create"],opId:"POST /v1/primus/memory",method:"POST",pattern:"/v1/primus/memory",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"conversationGid",coerce:null,optional:!0},{name:"type",coerce:null,optional:!1,choices:["working","session","long_term","shared"]},{name:"key",coerce:null,optional:!1},{name:"content",coerce:null,optional:!1},{name:"embedding",coerce:"json",optional:!0},{name:"importance",coerce:"number",optional:!0},{name:"isEncrypted",coerce:"boolean",optional:!0},{name:"vaultSecretId",coerce:null,optional:!0},{name:"expiresAt",coerce:"number",optional:!0},{name:"scope",coerce:null,optional:!1},{name:"teamId",coerce:null,optional:!0}],scopes:["memory:write"],idempotent:!0,isQuery:!1,summary:"Create a memory over the customer edge."},{key:"primus.memories.list",commandPath:["primus","memories","list"],opId:"GET /v1/primus/memory",method:"GET",pattern:"/v1/primus/memory",pathParams:[],flags:[{name:"type",coerce:null,optional:!0,choices:["working","session","long_term","shared"]},{name:"limit",coerce:"number",optional:!0}],scopes:["memory:read"],idempotent:!1,isQuery:!0,summary:"List memories over the customer edge."},{key:"primus.memories.listByAgent",commandPath:["primus","memories","listByAgent"],opId:"GET /v1/primus/memory/by-agent",method:"GET",pattern:"/v1/primus/memory/by-agent",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"type",coerce:null,optional:!0,choices:["working","session","long_term","shared"]},{name:"limit",coerce:"number",optional:!0}],scopes:["memory:read"],idempotent:!1,isQuery:!0,summary:"List an agent memories over the customer edge."},{key:"primus.memories.listByConversation",commandPath:["primus","memories","listByConversation"],opId:"GET /v1/primus/memory/by-conversation",method:"GET",pattern:"/v1/primus/memory/by-conversation",pathParams:[],flags:[{name:"conversationGid",coerce:null,optional:!1}],scopes:["memory:read"],idempotent:!1,isQuery:!0,summary:"List a conversation memories over the customer edge."},{key:"primus.memories.listQuarantined",commandPath:["primus","memories","listQuarantined"],opId:"GET /v1/primus/memory/quarantined",method:"GET",pattern:"/v1/primus/memory/quarantined",pathParams:[],flags:[],scopes:["memory:read"],idempotent:!1,isQuery:!0,summary:"List quarantined memories over the customer edge."},{key:"primus.memories.quarantine",commandPath:["primus","memories","quarantine"],opId:"POST /v1/primus/memory/:memoryId/quarantine",method:"POST",pattern:"/v1/primus/memory/:memoryId/quarantine",pathParams:[{name:"memoryGid",key:"memoryId"}],flags:[{name:"reason",coerce:null,optional:!1}],scopes:["memory:write"],idempotent:!0,isQuery:!1,summary:"Quarantine a memory over the customer edge."},{key:"primus.memories.remove",commandPath:["primus","memories","remove"],opId:"DELETE /v1/primus/memory/:memoryId",method:"DELETE",pattern:"/v1/primus/memory/:memoryId",pathParams:[{name:"memoryGid",key:"memoryId"}],flags:[],scopes:["memory:admin"],idempotent:!0,isQuery:!1,summary:"Delete a memory over the customer edge."},{key:"primus.memories.retrieve",commandPath:["primus","memories","retrieve"],opId:"GET /v1/primus/memory/:memoryId",method:"GET",pattern:"/v1/primus/memory/:memoryId",pathParams:[{name:"memoryGid",key:"memoryId"}],flags:[],scopes:["memory:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a memory over the customer edge."},{key:"primus.memories.unquarantine",commandPath:["primus","memories","unquarantine"],opId:"POST /v1/primus/memory/:memoryId/unquarantine",method:"POST",pattern:"/v1/primus/memory/:memoryId/unquarantine",pathParams:[{name:"memoryGid",key:"memoryId"}],flags:[],scopes:["memory:write"],idempotent:!0,isQuery:!1,summary:"Unquarantine a memory over the customer edge."},{key:"primus.memories.update",commandPath:["primus","memories","update"],opId:"PATCH /v1/primus/memory/:memoryId",method:"PATCH",pattern:"/v1/primus/memory/:memoryId",pathParams:[{name:"memoryGid",key:"memoryId"}],flags:[{name:"content",coerce:null,optional:!0},{name:"embedding",coerce:"json",optional:!0},{name:"importance",coerce:"number",optional:!0},{name:"expiresAt",coerce:"number",optional:!0}],scopes:["memory:write"],idempotent:!0,isQuery:!1,summary:"Update a memory over the customer edge."},{key:"primus.memoriesEncrypted.decryptMemory",commandPath:["primus","memoriesEncrypted","decryptMemory"],opId:"POST /v1/primus/memories/:memoryId/decrypt",method:"POST",pattern:"/v1/primus/memories/:memoryId/decrypt",pathParams:[{name:"memoryGid",key:"memoryId"}],flags:[{name:"reason",coerce:null,optional:!0}],scopes:["memory:read"],idempotent:!1,isQuery:!1,summary:"Decrypt one memory's content for its owner (deliberate, audited read)."},{key:"primus.memoriesEncrypted.getEncryption",commandPath:["primus","memoriesEncrypted","getEncryption"],opId:"GET /v1/primus/memories/:memoryId/encryption",method:"GET",pattern:"/v1/primus/memories/:memoryId/encryption",pathParams:[{name:"memoryGid",key:"memoryId"}],flags:[{name:"revealNonce",coerce:"boolean",optional:!0}],scopes:["memory:read"],idempotent:!1,isQuery:!1,summary:"Read a memory's encryption metadata (algorithm, key version, vault secret, masked nonce, size, time) \u2014 never the ciphertext."},{key:"primus.memoriesEncrypted.reencrypt",commandPath:["primus","memoriesEncrypted","reencrypt"],opId:"POST /v1/primus/memories/:memoryId/reencrypt",method:"POST",pattern:"/v1/primus/memories/:memoryId/reencrypt",pathParams:[{name:"memoryGid",key:"memoryId"}],flags:[],scopes:["memory:write"],idempotent:!1,isQuery:!1,summary:"Re-encrypt a memory under the current tenant key version (audited roll-forward)."},{key:"primus.memory.getLineage",commandPath:["primus","memory","getLineage"],opId:"GET /v1/primus/memory/store/:memoryId/lineage",method:"GET",pattern:"/v1/primus/memory/store/:memoryId/lineage",pathParams:[{name:"memoryGid",key:"memoryId"}],flags:[],scopes:["memory:read"],idempotent:!1,isQuery:!0,summary:"Memory lineage over the customer edge."},{key:"primus.memory.getQuarantineSummary",commandPath:["primus","memory","getQuarantineSummary"],opId:"GET /v1/primus/memory/store/quarantine-summary",method:"GET",pattern:"/v1/primus/memory/store/quarantine-summary",pathParams:[],flags:[],scopes:["memory:read"],idempotent:!1,isQuery:!0,summary:"Quarantine summary over the customer edge."},{key:"primus.memory.getRetrievalHistory",commandPath:["primus","memory","getRetrievalHistory"],opId:"GET /v1/primus/memory/store/:memoryId/retrieval-history",method:"GET",pattern:"/v1/primus/memory/store/:memoryId/retrieval-history",pathParams:[{name:"memoryGid",key:"memoryId"}],flags:[{name:"days",coerce:"number",optional:!0}],scopes:["memory:read"],idempotent:!1,isQuery:!0,summary:"Memory retrieval history over the customer edge."},{key:"primus.memory.list",commandPath:["primus","memory","list"],opId:"GET /v1/primus/memory/store/list",method:"GET",pattern:"/v1/primus/memory/store/list",pathParams:[],flags:[{name:"type",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["memory:read"],idempotent:!1,isQuery:!0,summary:"List stored memories over the customer edge."},{key:"primus.memory.listByTeam",commandPath:["primus","memory","listByTeam"],opId:"GET /v1/primus/memory/store/by-team",method:"GET",pattern:"/v1/primus/memory/store/by-team",pathParams:[],flags:[{name:"teamGid",coerce:null,optional:!1},{name:"limit",coerce:"number",optional:!0}],scopes:["memory:read"],idempotent:!1,isQuery:!0,summary:"List team memories over the customer edge."},{key:"primus.memory.listQuarantined",commandPath:["primus","memory","listQuarantined"],opId:"GET /v1/primus/memory/store/quarantined",method:"GET",pattern:"/v1/primus/memory/store/quarantined",pathParams:[],flags:[{name:"limit",coerce:"number",optional:!0}],scopes:["memory:read"],idempotent:!1,isQuery:!0,summary:"List quarantined stored memories over the customer edge."},{key:"primus.memory.recall",commandPath:["primus","memory","recall"],opId:"GET /v1/primus/memory/recall",method:"GET",pattern:"/v1/primus/memory/recall",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"query",coerce:null,optional:!0},{name:"type",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0}],scopes:["memory:read"],idempotent:!1,isQuery:!1,summary:"Recall agent memory over the customer edge."},{key:"primus.memory.store",commandPath:["primus","memory","store"],opId:"POST /v1/primus/memory/store",method:"POST",pattern:"/v1/primus/memory/store",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"type",coerce:null,optional:!1},{name:"content",coerce:null,optional:!1},{name:"source",coerce:null,optional:!0},{name:"sourceId",coerce:null,optional:!0},{name:"tags",coerce:"json",optional:!0},{name:"metadata",coerce:"json",optional:!0},{name:"expiresAt",coerce:"number",optional:!0},{name:"importance",coerce:"number",optional:!0},{name:"scope",coerce:null,optional:!1,choices:["private","team","tenant"]},{name:"teamId",coerce:null,optional:!0}],scopes:["memory:write"],idempotent:!0,isQuery:!1,summary:"Encrypted memory store (action) over the customer edge."},{key:"primus.observability.acknowledgeAlert",commandPath:["primus","observability","acknowledgeAlert"],opId:"POST /v1/primus/observability/alerts/acknowledge",method:"POST",pattern:"/v1/primus/observability/alerts/acknowledge",pathParams:[],flags:[{name:"alertGid",coerce:null,optional:!1},{name:"acknowledgedBy",coerce:null,optional:!0}],scopes:["agents:write"],idempotent:!0,isQuery:!1,summary:"Acknowledge an alert over the customer edge."},{key:"primus.observability.aggregateMetrics",commandPath:["primus","observability","aggregateMetrics"],opId:"GET /v1/primus/metrics/aggregate",method:"GET",pattern:"/v1/primus/metrics/aggregate",pathParams:[],flags:[{name:"name",coerce:null,optional:!1},{name:"startTime",coerce:"number",optional:!1},{name:"endTime",coerce:"number",optional:!0},{name:"aggregation",coerce:null,optional:!1,choices:["sum","avg","min","max","count","p50","p95","p99"]},{name:"groupBy",coerce:null,optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"Aggregate metrics over the customer edge."},{key:"primus.observability.getActiveAlerts",commandPath:["primus","observability","getActiveAlerts"],opId:"GET /v1/primus/observability/alerts",method:"GET",pattern:"/v1/primus/observability/alerts",pathParams:[],flags:[{name:"severity",coerce:null,optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"Active alerts over the customer edge."},{key:"primus.observability.getErrorDistribution",commandPath:["primus","observability","getErrorDistribution"],opId:"GET /v1/primus/observability/errors/distribution",method:"GET",pattern:"/v1/primus/observability/errors/distribution",pathParams:[],flags:[{name:"startTime",coerce:"number",optional:!1},{name:"endTime",coerce:"number",optional:!0},{name:"byField",coerce:null,optional:!0,choices:["type","source","fingerprint","status"]},{name:"limit",coerce:"number",optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"Error distribution over the customer edge."},{key:"primus.observability.getErrors",commandPath:["primus","observability","getErrors"],opId:"GET /v1/primus/observability/errors",method:"GET",pattern:"/v1/primus/observability/errors",pathParams:[],flags:[{name:"status",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"List errors over the customer edge."},{key:"primus.observability.getMetrics",commandPath:["primus","observability","getMetrics"],opId:"GET /v1/primus/metrics",method:"GET",pattern:"/v1/primus/metrics",pathParams:[],flags:[{name:"name",coerce:null,optional:!1},{name:"startTime",coerce:"number",optional:!1},{name:"endTime",coerce:"number",optional:!0},{name:"agentGid",coerce:null,optional:!0},{name:"labels",coerce:"json",optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"Query metrics over the customer edge."},{key:"primus.observability.getSystemMetrics",commandPath:["primus","observability","getSystemMetrics"],opId:"GET /v1/primus/metrics/system",method:"GET",pattern:"/v1/primus/metrics/system",pathParams:[],flags:[],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"System metrics over the customer edge."},{key:"primus.observability.getTrace",commandPath:["primus","observability","getTrace"],opId:"GET /v1/primus/observability/traces/:traceId",method:"GET",pattern:"/v1/primus/observability/traces/:traceId",pathParams:[{name:"traceId",key:"traceId"}],flags:[],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a trace over the customer edge."},{key:"primus.observability.listErrorsByAgent",commandPath:["primus","observability","listErrorsByAgent"],opId:"GET /v1/primus/observability/errors/by-agent",method:"GET",pattern:"/v1/primus/observability/errors/by-agent",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"status",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"Errors by agent over the customer edge."},{key:"primus.observability.listErrorsByExecution",commandPath:["primus","observability","listErrorsByExecution"],opId:"GET /v1/primus/observability/errors/by-execution",method:"GET",pattern:"/v1/primus/observability/errors/by-execution",pathParams:[],flags:[{name:"executionGid",coerce:null,optional:!1},{name:"limit",coerce:"number",optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"Errors by execution over the customer edge."},{key:"primus.observability.resolveAlert",commandPath:["primus","observability","resolveAlert"],opId:"POST /v1/primus/observability/alerts/resolve",method:"POST",pattern:"/v1/primus/observability/alerts/resolve",pathParams:[],flags:[{name:"alertGid",coerce:null,optional:!1},{name:"resolvedBy",coerce:null,optional:!0},{name:"resolution",coerce:null,optional:!0}],scopes:["agents:write"],idempotent:!0,isQuery:!1,summary:"Resolve an alert over the customer edge."},{key:"primus.observability.resolveError",commandPath:["primus","observability","resolveError"],opId:"POST /v1/primus/observability/errors/resolve",method:"POST",pattern:"/v1/primus/observability/errors/resolve",pathParams:[],flags:[{name:"errorGid",coerce:null,optional:!1}],scopes:["agents:write"],idempotent:!0,isQuery:!1,summary:"Resolve an error over the customer edge."},{key:"primus.overview.getActiveTriggers",commandPath:["primus","overview","getActiveTriggers"],opId:"GET /v1/primus/overview/active-triggers",method:"GET",pattern:"/v1/primus/overview/active-triggers",pathParams:[],flags:[{name:"limit",coerce:"number",optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"Active triggers over the customer edge."},{key:"primus.overview.getMemoryHealth",commandPath:["primus","overview","getMemoryHealth"],opId:"GET /v1/primus/overview/memory-health",method:"GET",pattern:"/v1/primus/overview/memory-health",pathParams:[],flags:[],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"Memory health over the customer edge."},{key:"primus.overview.getMetricsSummary",commandPath:["primus","overview","getMetricsSummary"],opId:"GET /v1/primus/overview/metrics-summary",method:"GET",pattern:"/v1/primus/overview/metrics-summary",pathParams:[],flags:[],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"Overview metrics summary over the customer edge."},{key:"primus.overview.getStats",commandPath:["primus","overview","getStats"],opId:"GET /v1/primus/overview/stats",method:"GET",pattern:"/v1/primus/overview/stats",pathParams:[],flags:[],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"Overview stats over the customer edge."},{key:"primus.overview.getTopAgents",commandPath:["primus","overview","getTopAgents"],opId:"GET /v1/primus/overview/top-agents",method:"GET",pattern:"/v1/primus/overview/top-agents",pathParams:[],flags:[{name:"limit",coerce:"number",optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"Top agents over the customer edge."},{key:"primus.rag.searchDualAuth",commandPath:["primus","rag","searchDualAuth"],opId:"POST /v1/primus/memory/search",method:"POST",pattern:"/v1/primus/memory/search",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"query",coerce:null,optional:!1},{name:"topK",coerce:"number",optional:!0},{name:"tags",coerce:"json",optional:!0},{name:"memoryTypes",coerce:"json",optional:!0},{name:"excludeQuarantined",coerce:"boolean",optional:!0},{name:"rerank",coerce:null,optional:!0,choices:["rrf","mmr"]},{name:"diversityFactor",coerce:"number",optional:!0}],scopes:["memory:read"],idempotent:!1,isQuery:!1,summary:"Hybrid memory search (vector + keyword, RRF-merged) over the customer edge."},{key:"primus.rag.searchExplainDualAuth",commandPath:["primus","rag","searchExplainDualAuth"],opId:"POST /v1/primus/memory/search/explain",method:"POST",pattern:"/v1/primus/memory/search/explain",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"query",coerce:null,optional:!1},{name:"topK",coerce:"number",optional:!0},{name:"hybridWeight",coerce:"number",optional:!0}],scopes:["memory:read"],idempotent:!1,isQuery:!1,summary:"Hybrid memory search with the per-result score breakdown over the customer edge."},{key:"primus.selfKnowledge.list",commandPath:["primus","selfKnowledge","list"],opId:"GET /v1/primus/self-knowledge",method:"GET",pattern:"/v1/primus/self-knowledge",pathParams:[],flags:[{name:"category",coerce:null,optional:!0,choices:["strength","weakness","failure_pattern","improvement"]},{name:"activeOnly",coerce:"boolean",optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"List self-knowledge over the customer edge."},{key:"primus.selfKnowledge.record",commandPath:["primus","selfKnowledge","record"],opId:"POST /v1/primus/self-knowledge",method:"POST",pattern:"/v1/primus/self-knowledge",pathParams:[],flags:[{name:"category",coerce:null,optional:!1,choices:["strength","weakness","failure_pattern","improvement"]},{name:"description",coerce:null,optional:!1},{name:"key",coerce:null,optional:!0},{name:"value",coerce:"json",optional:!0},{name:"source",coerce:null,optional:!0},{name:"evidence",coerce:"json",optional:!0},{name:"confidence",coerce:"number",optional:!1}],scopes:["agents:write"],idempotent:!0,isQuery:!1,summary:"Record self-knowledge over the customer edge."},{key:"primus.selfKnowledge.retrieve",commandPath:["primus","selfKnowledge","retrieve"],opId:"GET /v1/primus/self-knowledge/:knowledgeId",method:"GET",pattern:"/v1/primus/self-knowledge/:knowledgeId",pathParams:[{name:"knowledgeGid",key:"knowledgeId"}],flags:[],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"Retrieve self-knowledge over the customer edge."},{key:"primus.selfKnowledge.setActive",commandPath:["primus","selfKnowledge","setActive"],opId:"POST /v1/primus/self-knowledge/:knowledgeId/active",method:"POST",pattern:"/v1/primus/self-knowledge/:knowledgeId/active",pathParams:[{name:"knowledgeGid",key:"knowledgeId"}],flags:[{name:"isActive",coerce:"boolean",optional:!1}],scopes:["agents:write"],idempotent:!0,isQuery:!1,summary:"Set self-knowledge active over the customer edge."},{key:"primus.selfKnowledge.validate",commandPath:["primus","selfKnowledge","validate"],opId:"POST /v1/primus/self-knowledge/:knowledgeId/validate",method:"POST",pattern:"/v1/primus/self-knowledge/:knowledgeId/validate",pathParams:[{name:"knowledgeGid",key:"knowledgeId"}],flags:[],scopes:["agents:write"],idempotent:!0,isQuery:!1,summary:"Validate self-knowledge over the customer edge."},{key:"primus.skills.create",commandPath:["primus","skills","create"],opId:"POST /v1/primus/skills",method:"POST",pattern:"/v1/primus/skills",pathParams:[],flags:[{name:"name",coerce:null,optional:!1},{name:"description",coerce:null,optional:!1},{name:"category",coerce:null,optional:!0},{name:"icon",coerce:null,optional:!0},{name:"slug",coerce:null,optional:!0},{name:"executor",coerce:null,optional:!1,choices:["inline","webhook","dynamic_worker","container","gpu","openshell","cloud_run","fly_machines","k8s_jobs"]},{name:"definition",coerce:"json",optional:!1},{name:"limits",coerce:"json",optional:!0},{name:"enabled",coerce:"boolean",optional:!0}],scopes:["skills:write"],idempotent:!0,isQuery:!1,summary:"Create a skill over the customer edge."},{key:"primus.skills.disable",commandPath:["primus","skills","disable"],opId:"POST /v1/primus/skills/:skillId/disable",method:"POST",pattern:"/v1/primus/skills/:skillId/disable",pathParams:[{name:"skillGid",key:"skillId"}],flags:[],scopes:["skills:write"],idempotent:!0,isQuery:!1,summary:"Disable a skill over the customer edge."},{key:"primus.skills.enable",commandPath:["primus","skills","enable"],opId:"POST /v1/primus/skills/:skillId/enable",method:"POST",pattern:"/v1/primus/skills/:skillId/enable",pathParams:[{name:"skillGid",key:"skillId"}],flags:[],scopes:["skills:write"],idempotent:!0,isQuery:!1,summary:"Enable a skill over the customer edge."},{key:"primus.skills.getStats",commandPath:["primus","skills","getStats"],opId:"GET /v1/primus/skills/:skillId/stats",method:"GET",pattern:"/v1/primus/skills/:skillId/stats",pathParams:[{name:"skillGid",key:"skillId"}],flags:[{name:"limit",coerce:"number",optional:!0},{name:"startTime",coerce:"number",optional:!0},{name:"endTime",coerce:"number",optional:!0}],scopes:["skills:read"],idempotent:!1,isQuery:!0,summary:"Skill stats over the customer edge."},{key:"primus.skills.getWithExecutions",commandPath:["primus","skills","getWithExecutions"],opId:"GET /v1/primus/skills/:skillId/executions",method:"GET",pattern:"/v1/primus/skills/:skillId/executions",pathParams:[{name:"skillGid",key:"skillId"}],flags:[{name:"executionLimit",coerce:"number",optional:!0}],scopes:["skills:read"],idempotent:!1,isQuery:!0,summary:"Skill with executions over the customer edge."},{key:"primus.skills.list",commandPath:["primus","skills","list"],opId:"GET /v1/primus/skills",method:"GET",pattern:"/v1/primus/skills",pathParams:[],flags:[{name:"category",coerce:null,optional:!0},{name:"enabledOnly",coerce:"boolean",optional:!0},{name:"includeBuiltIn",coerce:"boolean",optional:!0}],scopes:["skills:read"],idempotent:!1,isQuery:!0,summary:"List skills over the customer edge."},{key:"primus.skills.listBuiltIn",commandPath:["primus","skills","listBuiltIn"],opId:"GET /v1/primus/skills/built-in",method:"GET",pattern:"/v1/primus/skills/built-in",pathParams:[],flags:[{name:"category",coerce:null,optional:!0}],scopes:["skills:read"],idempotent:!1,isQuery:!0,summary:"List built-in skills over the customer edge."},{key:"primus.skills.listByCategory",commandPath:["primus","skills","listByCategory"],opId:"GET /v1/primus/skills/by-category",method:"GET",pattern:"/v1/primus/skills/by-category",pathParams:[],flags:[{name:"category",coerce:null,optional:!1}],scopes:["skills:read"],idempotent:!1,isQuery:!0,summary:"List skills by category over the customer edge."},{key:"primus.skills.remove",commandPath:["primus","skills","remove"],opId:"DELETE /v1/primus/skills/:skillId",method:"DELETE",pattern:"/v1/primus/skills/:skillId",pathParams:[{name:"skillGid",key:"skillId"}],flags:[],scopes:["skills:admin"],idempotent:!0,isQuery:!1,summary:"Delete a skill over the customer edge."},{key:"primus.skills.retrieve",commandPath:["primus","skills","retrieve"],opId:"GET /v1/primus/skills/:skillId",method:"GET",pattern:"/v1/primus/skills/:skillId",pathParams:[{name:"skillGid",key:"skillId"}],flags:[],scopes:["skills:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a skill over the customer edge."},{key:"primus.skills.update",commandPath:["primus","skills","update"],opId:"PATCH /v1/primus/skills/:skillId",method:"PATCH",pattern:"/v1/primus/skills/:skillId",pathParams:[{name:"skillGid",key:"skillId"}],flags:[{name:"name",coerce:null,optional:!0},{name:"description",coerce:null,optional:!0},{name:"category",coerce:null,optional:!0},{name:"icon",coerce:null,optional:!0},{name:"executor",coerce:null,optional:!0,choices:["inline","webhook","dynamic_worker","container","gpu","openshell","cloud_run","fly_machines","k8s_jobs"]},{name:"enabled",coerce:"boolean",optional:!0},{name:"definition",coerce:"json",optional:!0},{name:"limits",coerce:"json",optional:!0}],scopes:["skills:write"],idempotent:!0,isQuery:!1,summary:"Update a skill over the customer edge."},{key:"primus.skillSynthesis.getForTool",commandPath:["primus","skillSynthesis","getForTool"],opId:"GET /v1/primus/skill-synthesis/for-tool",method:"GET",pattern:"/v1/primus/skill-synthesis/for-tool",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"Synthesis candidates for a tool over the customer edge."},{key:"primus.skillSynthesis.list",commandPath:["primus","skillSynthesis","list"],opId:"GET /v1/primus/skill-synthesis",method:"GET",pattern:"/v1/primus/skill-synthesis",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"status",coerce:null,optional:!0},{name:"category",coerce:null,optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"List synthesized skills over the customer edge."},{key:"primus.skillSynthesis.promote",commandPath:["primus","skillSynthesis","promote"],opId:"POST /v1/primus/skill-synthesis/:skillId/promote",method:"POST",pattern:"/v1/primus/skill-synthesis/:skillId/promote",pathParams:[{name:"skillGid",key:"skillId"}],flags:[{name:"status",coerce:null,optional:!1,choices:["approved","rejected"]},{name:"reviewNotes",coerce:null,optional:!0}],scopes:["agents:write"],idempotent:!0,isQuery:!1,summary:"Promote a synthesized skill over the customer edge."},{key:"primus.skillSynthesis.retrieve",commandPath:["primus","skillSynthesis","retrieve"],opId:"GET /v1/primus/skill-synthesis/:skillId",method:"GET",pattern:"/v1/primus/skill-synthesis/:skillId",pathParams:[{name:"skillGid",key:"skillId"}],flags:[],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a synthesized skill over the customer edge."},{key:"primus.skillSynthesis.runPipeline",commandPath:["primus","skillSynthesis","runPipeline"],opId:"POST /v1/primus/skill-synthesis/run-pipeline",method:"POST",pattern:"/v1/primus/skill-synthesis/run-pipeline",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!0},{name:"stages",coerce:"json",optional:!0},{name:"minConfidence",coerce:"number",optional:!0},{name:"minFrequency",coerce:"number",optional:!0}],scopes:["agents:execute"],idempotent:!0,isQuery:!1,summary:"Run the synthesis pipeline (action) over the customer edge."},{key:"primus.spendCap.retrieve",commandPath:["primus","spendCap","retrieve"],opId:"GET /v1/primus/spend-cap",method:"GET",pattern:"/v1/primus/spend-cap",pathParams:[],flags:[],scopes:["brain:read"],idempotent:!1,isQuery:!0,summary:"Your organization's monthly spend cap, this month's spend and when the month resets."},{key:"primus.spendCap.update",commandPath:["primus","spendCap","update"],opId:"PUT /v1/primus/spend-cap",method:"PUT",pattern:"/v1/primus/spend-cap",pathParams:[],flags:[{name:"capCents",coerce:null,optional:!1}],scopes:["brain:write"],idempotent:!0,isQuery:!1,summary:"Set or remove your organization's monthly spend cap (a person in the organization only)."},{key:"primus.stats.retrieve",commandPath:["primus","stats","retrieve"],opId:"GET /v1/primus/learning/stats",method:"GET",pattern:"/v1/primus/learning/stats",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"timeRange",coerce:"number",optional:!0}],scopes:["agents:read"],idempotent:!1,isQuery:!0,summary:"Learning stats over the customer edge."},{key:"primus.teams.addMember",commandPath:["primus","teams","addMember"],opId:"POST /v1/primus/teams/members",method:"POST",pattern:"/v1/primus/teams/members",pathParams:[],flags:[{name:"name",coerce:null,optional:!1},{name:"role",coerce:null,optional:!1},{name:"memberRole",coerce:null,optional:!0,choices:["lead","specialist","system"]},{name:"systemPrompt",coerce:null,optional:!1},{name:"skills",coerce:"json",optional:!0},{name:"makeSubLead",coerce:"boolean",optional:!0}],scopes:["teams:write"],idempotent:!0,isQuery:!1,summary:"Add a team member (action) over the customer edge."},{key:"primus.teams.assignAgent",commandPath:["primus","teams","assignAgent"],opId:"POST /v1/primus/teams/assign",method:"POST",pattern:"/v1/primus/teams/assign",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"makeSubLead",coerce:"boolean",optional:!0}],scopes:["teams:write"],idempotent:!0,isQuery:!1,summary:"Assign an agent to the team over the customer edge."},{key:"primus.teams.create",commandPath:["primus","teams","create"],opId:"POST /v1/primus/teams",method:"POST",pattern:"/v1/primus/teams",pathParams:[],flags:[{name:"name",coerce:null,optional:!0},{name:"businessContext",coerce:null,optional:!0}],scopes:["teams:write"],idempotent:!0,isQuery:!1,summary:"Create a team over the customer edge."},{key:"primus.teams.createWithSpecialists",commandPath:["primus","teams","createWithSpecialists"],opId:"POST /v1/primus/teams/with-specialists",method:"POST",pattern:"/v1/primus/teams/with-specialists",pathParams:[],flags:[{name:"name",coerce:null,optional:!0},{name:"businessContext",coerce:null,optional:!0},{name:"specialists",coerce:"json",optional:!0}],scopes:["teams:write"],idempotent:!0,isQuery:!1,summary:"Create a team with specialists (action) over the customer edge."},{key:"primus.teams.delegateByTag",commandPath:["primus","teams","delegateByTag"],opId:"POST /v1/primus/teams/delegate",method:"POST",pattern:"/v1/primus/teams/delegate",pathParams:[],flags:[{name:"taskTag",coerce:null,optional:!1},{name:"task",coerce:null,optional:!1},{name:"teamGid",coerce:null,optional:!0},{name:"priority",coerce:null,optional:!0}],scopes:["teams:write"],idempotent:!0,isQuery:!1,summary:"Delegate a task by tag (action) over the customer edge."},{key:"primus.teams.list",commandPath:["primus","teams","list"],opId:"GET /v1/primus/teams",method:"GET",pattern:"/v1/primus/teams",pathParams:[],flags:[{name:"status",coerce:null,optional:!0}],scopes:["teams:read"],idempotent:!1,isQuery:!0,summary:"List teams over the customer edge."},{key:"primus.teams.remove",commandPath:["primus","teams","remove"],opId:"DELETE /v1/primus/teams/:teamId",method:"DELETE",pattern:"/v1/primus/teams/:teamId",pathParams:[{name:"teamGid",key:"teamId"}],flags:[{name:"reason",coerce:null,optional:!0}],scopes:["teams:admin"],idempotent:!0,isQuery:!1,summary:"Remove (soft-delete) a team over the customer edge: the lead and every specialist are archived; a repeat is a visible no-op."},{key:"primus.teams.removeMember",commandPath:["primus","teams","removeMember"],opId:"POST /v1/primus/teams/remove-member",method:"POST",pattern:"/v1/primus/teams/remove-member",pathParams:[],flags:[{name:"specialistGid",coerce:null,optional:!1},{name:"reason",coerce:null,optional:!0}],scopes:["teams:admin"],idempotent:!0,isQuery:!1,summary:"Remove a team member over the customer edge."},{key:"primus.teams.retrieve",commandPath:["primus","teams","retrieve"],opId:"GET /v1/primus/teams/:teamId",method:"GET",pattern:"/v1/primus/teams/:teamId",pathParams:[{name:"teamGid",key:"teamId"}],flags:[],scopes:["teams:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a team over the customer edge."},{key:"primus.teams.unassignAgent",commandPath:["primus","teams","unassignAgent"],opId:"POST /v1/primus/teams/unassign",method:"POST",pattern:"/v1/primus/teams/unassign",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1}],scopes:["teams:write"],idempotent:!0,isQuery:!1,summary:"Unassign an agent from the team over the customer edge."},{key:"primus.teams.update",commandPath:["primus","teams","update"],opId:"PATCH /v1/primus/teams/:teamId",method:"PATCH",pattern:"/v1/primus/teams/:teamId",pathParams:[{name:"teamGid",key:"teamId"}],flags:[{name:"name",coerce:null,optional:!0},{name:"description",coerce:null,optional:!0},{name:"systemPrompt",coerce:null,optional:!0}],scopes:["teams:write"],idempotent:!0,isQuery:!1,summary:"Update a team over the customer edge."},{key:"primus.tenants.archive",commandPath:["primus","tenants","archive"],opId:"POST /v1/primus/tenants/:tenantId/archive",method:"POST",pattern:"/v1/primus/tenants/:tenantId/archive",pathParams:[{name:"tenantGid",key:"tenantId"}],flags:[],scopes:["tenants:admin"],idempotent:!0,isQuery:!1,summary:"Archive a tenant over the customer edge."},{key:"primus.tenants.create",commandPath:["primus","tenants","create"],opId:"POST /v1/primus/tenants",method:"POST",pattern:"/v1/primus/tenants",pathParams:[],flags:[{name:"externalId",coerce:null,optional:!1},{name:"name",coerce:null,optional:!1},{name:"metadata",coerce:"json",optional:!0}],scopes:["tenants:write"],idempotent:!0,isQuery:!1,summary:"Create a tenant over the customer edge."},{key:"primus.tenants.getByExternalId",commandPath:["primus","tenants","getByExternalId"],opId:"GET /v1/primus/tenants/by-external-id",method:"GET",pattern:"/v1/primus/tenants/by-external-id",pathParams:[],flags:[{name:"externalId",coerce:null,optional:!1}],scopes:["tenants:read"],idempotent:!1,isQuery:!0,summary:"Tenant by external id over the customer edge."},{key:"primus.tenants.list",commandPath:["primus","tenants","list"],opId:"GET /v1/primus/tenants",method:"GET",pattern:"/v1/primus/tenants",pathParams:[],flags:[],scopes:["tenants:read"],idempotent:!1,isQuery:!0,summary:"List tenants over the customer edge."},{key:"primus.tenants.retrieve",commandPath:["primus","tenants","retrieve"],opId:"GET /v1/primus/tenants/:tenantId",method:"GET",pattern:"/v1/primus/tenants/:tenantId",pathParams:[{name:"tenantGid",key:"tenantId"}],flags:[],scopes:["tenants:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a tenant over the customer edge."},{key:"primus.tenants.suspend",commandPath:["primus","tenants","suspend"],opId:"POST /v1/primus/tenants/:tenantId/suspend",method:"POST",pattern:"/v1/primus/tenants/:tenantId/suspend",pathParams:[{name:"tenantGid",key:"tenantId"}],flags:[],scopes:["tenants:write"],idempotent:!0,isQuery:!1,summary:"Suspend a tenant over the customer edge."},{key:"primus.tenants.update",commandPath:["primus","tenants","update"],opId:"PATCH /v1/primus/tenants/:tenantId",method:"PATCH",pattern:"/v1/primus/tenants/:tenantId",pathParams:[{name:"tenantGid",key:"tenantId"}],flags:[{name:"name",coerce:null,optional:!0},{name:"metadata",coerce:"json",optional:!0}],scopes:["tenants:write"],idempotent:!0,isQuery:!1,summary:"Update a tenant over the customer edge."},{key:"primus.tools.create",commandPath:["primus","tools","create"],opId:"POST /v1/primus/tools",method:"POST",pattern:"/v1/primus/tools",pathParams:[],flags:[{name:"name",coerce:null,optional:!1},{name:"description",coerce:null,optional:!1},{name:"parameters",coerce:"json",optional:!0},{name:"outputSchema",coerce:"json",optional:!0},{name:"riskLevel",coerce:null,optional:!1,choices:["safe","moderate","dangerous"]},{name:"requiresApproval",coerce:"boolean",optional:!0},{name:"endpoint",coerce:null,optional:!0},{name:"uri",coerce:null,optional:!0},{name:"authType",coerce:null,optional:!0,choices:["none","bearer","apiKey","basic","oauth","hmac"]},{name:"scopes",coerce:"json",optional:!0},{name:"executor",coerce:null,optional:!0,choices:["webhook","inline","dynamic_worker","container","gpu","openshell"]},{name:"timeout",coerce:"number",optional:!0},{name:"category",coerce:null,optional:!0},{name:"headers",coerce:"json",optional:!0},{name:"slug",coerce:null,optional:!0}],scopes:["tools:write"],idempotent:!0,isQuery:!1,summary:"Create a tool (action) over the customer edge."},{key:"primus.tools.disable",commandPath:["primus","tools","disable"],opId:"POST /v1/primus/tools/:toolId/disable",method:"POST",pattern:"/v1/primus/tools/:toolId/disable",pathParams:[{name:"toolGid",key:"toolId"}],flags:[],scopes:["tools:admin"],idempotent:!0,isQuery:!1,summary:"Disable a tool over the customer edge."},{key:"primus.tools.discover",commandPath:["primus","tools","discover"],opId:"GET /v1/tools",method:"GET",pattern:"/v1/tools",pathParams:[],flags:[{name:"source",coerce:null,optional:!0,choices:["builtin","skill","mcp","integration"]},{name:"enabledOnly",coerce:"boolean",optional:!0}],scopes:["tools:read"],idempotent:!1,isQuery:!0,summary:"Discover registered tools over the customer edge \u2014 the external-agent discovery door (/v1/tools)."},{key:"primus.tools.enable",commandPath:["primus","tools","enable"],opId:"POST /v1/primus/tools/:toolId/enable",method:"POST",pattern:"/v1/primus/tools/:toolId/enable",pathParams:[{name:"toolGid",key:"toolId"}],flags:[],scopes:["tools:write"],idempotent:!0,isQuery:!1,summary:"Enable a tool over the customer edge."},{key:"primus.tools.getByName",commandPath:["primus","tools","getByName"],opId:"GET /v1/primus/tools/by-name",method:"GET",pattern:"/v1/primus/tools/by-name",pathParams:[],flags:[{name:"name",coerce:null,optional:!1}],scopes:["tools:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a tool by name over the customer edge."},{key:"primus.tools.getStats",commandPath:["primus","tools","getStats"],opId:"GET /v1/primus/tools/stats",method:"GET",pattern:"/v1/primus/tools/stats",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!0},{name:"toolName",coerce:null,optional:!0},{name:"startTime",coerce:"number",optional:!0},{name:"endTime",coerce:"number",optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["tools:read"],idempotent:!1,isQuery:!0,summary:"Tool usage stats over the customer edge."},{key:"primus.tools.importFromOpenApi",commandPath:["primus","tools","importFromOpenApi"],opId:"POST /v1/primus/tools/import",method:"POST",pattern:"/v1/primus/tools/import",pathParams:[],flags:[{name:"uri",coerce:null,optional:!0},{name:"specJson",coerce:null,optional:!0},{name:"authType",coerce:null,optional:!0,choices:["bearer","apiKey","basic","none"]},{name:"authTokenFrom",coerce:null,optional:!0},{name:"authHeaderName",coerce:null,optional:!0},{name:"authIn",coerce:null,optional:!0,choices:["header","query"]},{name:"include",coerce:"json",optional:!0},{name:"exclude",coerce:"json",optional:!0}],scopes:["tools:write"],idempotent:!0,isQuery:!1,summary:"Import tools from OpenAPI (action) over the customer edge."},{key:"primus.tools.list",commandPath:["primus","tools","list"],opId:"GET /v1/primus/tools",method:"GET",pattern:"/v1/primus/tools",pathParams:[],flags:[{name:"source",coerce:null,optional:!0,choices:["builtin","skill","mcp","integration"]},{name:"enabledOnly",coerce:"boolean",optional:!0}],scopes:["tools:read"],idempotent:!1,isQuery:!0,summary:"List tools over the customer edge."},{key:"primus.tools.remove",commandPath:["primus","tools","remove"],opId:"DELETE /v1/primus/tools/:toolId",method:"DELETE",pattern:"/v1/primus/tools/:toolId",pathParams:[{name:"toolGid",key:"toolId"}],flags:[],scopes:["tools:admin"],idempotent:!0,isQuery:!1,summary:"Delete a tool over the customer edge."},{key:"primus.tools.retrieve",commandPath:["primus","tools","retrieve"],opId:"GET /v1/primus/tools/:toolId",method:"GET",pattern:"/v1/primus/tools/:toolId",pathParams:[{name:"toolGid",key:"toolId"}],flags:[],scopes:["tools:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a tool over the customer edge."},{key:"primus.tools.testCall",commandPath:["primus","tools","testCall"],opId:"POST /v1/primus/tools/:toolId/test",method:"POST",pattern:"/v1/primus/tools/:toolId/test",pathParams:[{name:"toolGid",key:"toolId"}],flags:[{name:"inputs",coerce:"json",optional:!1}],scopes:["tools:write"],idempotent:!0,isQuery:!1,summary:"Test-call a tool (action) over the customer edge."},{key:"primus.tools.update",commandPath:["primus","tools","update"],opId:"PATCH /v1/primus/tools/:toolId",method:"PATCH",pattern:"/v1/primus/tools/:toolId",pathParams:[{name:"toolGid",key:"toolId"}],flags:[{name:"description",coerce:null,optional:!0},{name:"parameters",coerce:"json",optional:!0},{name:"outputSchema",coerce:"json",optional:!0},{name:"riskLevel",coerce:null,optional:!0,choices:["safe","moderate","dangerous"]},{name:"requiresApproval",coerce:"boolean",optional:!0},{name:"endpoint",coerce:null,optional:!0},{name:"executor",coerce:null,optional:!0,choices:["webhook","inline","dynamic_worker","container","gpu","openshell"]},{name:"timeout",coerce:"number",optional:!0},{name:"category",coerce:null,optional:!0},{name:"secretRef",coerce:null,optional:!0},{name:"headers",coerce:"json",optional:!0}],scopes:["tools:write"],idempotent:!0,isQuery:!1,summary:"Update a tool over the customer edge."},{key:"primus.triggers.create",commandPath:["primus","triggers","create"],opId:"POST /v1/primus/triggers",method:"POST",pattern:"/v1/primus/triggers",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"name",coerce:null,optional:!1},{name:"slug",coerce:null,optional:!0},{name:"description",coerce:null,optional:!0},{name:"type",coerce:null,optional:!1},{name:"config",coerce:"json",optional:!1},{name:"action",coerce:"json",optional:!1},{name:"conditions",coerce:"json",optional:!0},{name:"enabled",coerce:"boolean",optional:!0}],scopes:["triggers:write"],idempotent:!0,isQuery:!1,summary:"Create a trigger over the customer edge (type: cron, event, webhook or message)."},{key:"primus.triggers.disable",commandPath:["primus","triggers","disable"],opId:"POST /v1/primus/triggers/:triggerId/disable",method:"POST",pattern:"/v1/primus/triggers/:triggerId/disable",pathParams:[{name:"triggerGid",key:"triggerId"}],flags:[],scopes:["triggers:write"],idempotent:!0,isQuery:!1,summary:"Disable a trigger over the customer edge."},{key:"primus.triggers.enable",commandPath:["primus","triggers","enable"],opId:"POST /v1/primus/triggers/:triggerId/enable",method:"POST",pattern:"/v1/primus/triggers/:triggerId/enable",pathParams:[{name:"triggerGid",key:"triggerId"}],flags:[],scopes:["triggers:write"],idempotent:!0,isQuery:!1,summary:"Enable a trigger over the customer edge."},{key:"primus.triggers.getWithExecutions",commandPath:["primus","triggers","getWithExecutions"],opId:"GET /v1/primus/triggers/:triggerId/executions",method:"GET",pattern:"/v1/primus/triggers/:triggerId/executions",pathParams:[{name:"triggerGid",key:"triggerId"}],flags:[{name:"executionLimit",coerce:"number",optional:!0}],scopes:["triggers:read"],idempotent:!1,isQuery:!0,summary:"Trigger with executions over the customer edge."},{key:"primus.triggers.list",commandPath:["primus","triggers","list"],opId:"GET /v1/primus/triggers",method:"GET",pattern:"/v1/primus/triggers",pathParams:[],flags:[{name:"type",coerce:null,optional:!0,choices:["cron","event","webhook","message"]},{name:"enabled",coerce:"boolean",optional:!0}],scopes:["triggers:read"],idempotent:!1,isQuery:!0,summary:"List triggers over the customer edge."},{key:"primus.triggers.listByAgent",commandPath:["primus","triggers","listByAgent"],opId:"GET /v1/primus/triggers/by-agent",method:"GET",pattern:"/v1/primus/triggers/by-agent",pathParams:[],flags:[{name:"agentGid",coerce:null,optional:!1},{name:"enabledOnly",coerce:"boolean",optional:!0}],scopes:["triggers:read"],idempotent:!1,isQuery:!0,summary:"List an agent triggers over the customer edge."},{key:"primus.triggers.remove",commandPath:["primus","triggers","remove"],opId:"DELETE /v1/primus/triggers/:triggerId",method:"DELETE",pattern:"/v1/primus/triggers/:triggerId",pathParams:[{name:"triggerGid",key:"triggerId"}],flags:[],scopes:["triggers:admin"],idempotent:!0,isQuery:!1,summary:"Delete a trigger over the customer edge."},{key:"primus.triggers.retrieve",commandPath:["primus","triggers","retrieve"],opId:"GET /v1/primus/triggers/:triggerId",method:"GET",pattern:"/v1/primus/triggers/:triggerId",pathParams:[{name:"triggerGid",key:"triggerId"}],flags:[],scopes:["triggers:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a trigger over the customer edge."},{key:"primus.triggers.rotateSecret",commandPath:["primus","triggers","rotateSecret"],opId:"POST /v1/primus/triggers/:triggerId/rotate-secret",method:"POST",pattern:"/v1/primus/triggers/:triggerId/rotate-secret",pathParams:[{name:"triggerGid",key:"triggerId"}],flags:[],scopes:["triggers:write"],idempotent:!1,isQuery:!1,summary:"Rotate a webhook trigger's signing secret over the customer edge (the new secret is returned once)."},{key:"primus.triggers.update",commandPath:["primus","triggers","update"],opId:"PATCH /v1/primus/triggers/:triggerId",method:"PATCH",pattern:"/v1/primus/triggers/:triggerId",pathParams:[{name:"triggerGid",key:"triggerId"}],flags:[{name:"name",coerce:null,optional:!0},{name:"description",coerce:null,optional:!0},{name:"config",coerce:"json",optional:!0},{name:"action",coerce:"json",optional:!0},{name:"conditions",coerce:"json",optional:!0},{name:"enabled",coerce:"boolean",optional:!0}],scopes:["triggers:write"],idempotent:!0,isQuery:!1,summary:"Update a trigger over the customer edge."},{key:"primus.usage.byTenant",commandPath:["primus","usage","byTenant"],opId:"GET /v1/primus/usage/by-tenant",method:"GET",pattern:"/v1/primus/usage/by-tenant",pathParams:[],flags:[{name:"tenantId",coerce:null,optional:!1},{name:"dayUtcMs",coerce:"number",optional:!1}],scopes:["billing:read"],idempotent:!1,isQuery:!0,summary:"Usage by tenant over the customer edge."},{key:"primus.usage.checkLimits",commandPath:["primus","usage","checkLimits"],opId:"GET /v1/primus/usage/limits",method:"GET",pattern:"/v1/primus/usage/limits",pathParams:[],flags:[],scopes:["billing:read"],idempotent:!1,isQuery:!0,summary:"Usage limits over the customer edge."},{key:"primus.usage.getHistory",commandPath:["primus","usage","getHistory"],opId:"GET /v1/primus/usage/history",method:"GET",pattern:"/v1/primus/usage/history",pathParams:[],flags:[{name:"startMs",coerce:"number",optional:!1},{name:"endMs",coerce:"number",optional:!1},{name:"granularity",coerce:null,optional:!0,choices:["hour","day","week"]}],scopes:["billing:read"],idempotent:!1,isQuery:!0,summary:"Usage history over the customer edge."},{key:"primus.usage.getSummary",commandPath:["primus","usage","getSummary"],opId:"GET /v1/primus/usage/summary",method:"GET",pattern:"/v1/primus/usage/summary",pathParams:[],flags:[{name:"tenantId",coerce:null,optional:!0}],scopes:["billing:read"],idempotent:!1,isQuery:!0,summary:"Usage summary over the customer edge."},{key:"primus.webhooks.create",commandPath:["primus","webhooks","create"],opId:"POST /v1/primus/webhooks",method:"POST",pattern:"/v1/primus/webhooks",pathParams:[],flags:[{name:"url",coerce:null,optional:!1},{name:"events",coerce:"json",optional:!0}],scopes:["agent_webhooks:write"],idempotent:!1,isQuery:!1,summary:"Register an agent-event webhook endpoint for the caller's app + environment; the signing secret is answered exactly once."},{key:"primus.webhooks.list",commandPath:["primus","webhooks","list"],opId:"GET /v1/primus/webhooks",method:"GET",pattern:"/v1/primus/webhooks",pathParams:[],flags:[],scopes:["agent_webhooks:read"],idempotent:!1,isQuery:!0,summary:"List the caller's agent-event webhook endpoints (never the signing secret)."},{key:"primus.webhooks.remove",commandPath:["primus","webhooks","remove"],opId:"DELETE /v1/primus/webhooks/:webhookId",method:"DELETE",pattern:"/v1/primus/webhooks/:webhookId",pathParams:[{name:"webhookId",key:"webhookId"}],flags:[],scopes:["agent_webhooks:write"],idempotent:!0,isQuery:!1,summary:"Remove an agent-event webhook endpoint by gid (idempotent)."}]}});var i={contentHash:"d6f97f724c494689c7307f26fa9081b55303f9d0c6f4b7b9523b2f4a26172cb3",generatedAt:"contract-d6f97f724c494689c7307f26fa9081b55303f9d0c6f4b7b9523b2f4a26172cb3",commands:[{key:"account.environments.clone",commandPath:["account","environments","clone"],opId:"POST /v1/account/environments/:slug/clone",method:"POST",pattern:"/v1/account/environments/:slug/clone",pathParams:[{name:"slug",key:"slug"}],flags:[{name:"targetSlug",coerce:null,optional:!1},{name:"targetName",coerce:null,optional:!0},{name:"mode",coerce:null,optional:!0,choices:["config","config_and_data"]},{name:"confirmation",coerce:null,optional:!0}],scopes:["account:write"],idempotent:!1,isQuery:!1,summary:"Clone an environment into a new development environment (background job)."},{key:"account.environments.create",commandPath:["account","environments","create"],opId:"POST /v1/account/environments",method:"POST",pattern:"/v1/account/environments",pathParams:[],flags:[{name:"appId",coerce:null,optional:!0},{name:"name",coerce:null,optional:!1},{name:"slug",coerce:null,optional:!1},{name:"kind",coerce:null,optional:!1,choices:["development","production"]}],scopes:["account:write"],idempotent:!1,isQuery:!1,summary:"Create a logical environment (N development; production is a singleton)."},{key:"account.environments.list",commandPath:["account","environments","list"],opId:"GET /v1/account/environments",method:"GET",pattern:"/v1/account/environments",pathParams:[],flags:[],scopes:["account:read"],idempotent:!0,isQuery:!0,summary:"List the bound app's logical environments."},{key:"account.environments.show",commandPath:["account","environments","show"],opId:"GET /v1/account/environments/:slug",method:"GET",pattern:"/v1/account/environments/:slug",pathParams:[{name:"slug",key:"slug"}],flags:[],scopes:["account:read"],idempotent:!0,isQuery:!0,summary:"Show one of the bound app's environments by slug."},{key:"analytics.events.tail",commandPath:["analytics","events","tail"],opId:"GET /v1/analytics/events/tail",method:"GET",pattern:"/v1/analytics/events/tail",pathParams:[],flags:[{name:"appId",coerce:null,optional:!1},{name:"eventName",coerce:null,optional:!1},{name:"fromTs",coerce:"number",optional:!0},{name:"toTs",coerce:"number",optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["analytics:read"],idempotent:!0,isQuery:!1,summary:"Tail recent raw analytics events for the calling org (RLS-scoped)."},{key:"analytics.rollups.list",commandPath:["analytics","rollups","list"],opId:"GET /v1/analytics/rollups",method:"GET",pattern:"/v1/analytics/rollups",pathParams:[],flags:[{name:"appId",coerce:null,optional:!1},{name:"eventName",coerce:null,optional:!0},{name:"envId",coerce:null,optional:!0},{name:"granularity",coerce:null,optional:!0,choices:["minute","hour","day"]},{name:"start",coerce:"number",optional:!1},{name:"end",coerce:"number",optional:!1},{name:"pageSize",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0}],scopes:["analytics:read"],idempotent:!0,isQuery:!1,summary:"List the calling org's analytics rollups (paginated, RLS-scoped)."},{key:"analytics.sketches.percentile",commandPath:["analytics","sketches","percentile"],opId:"GET /v1/analytics/sketches/percentile",method:"GET",pattern:"/v1/analytics/sketches/percentile",pathParams:[],flags:[{name:"appId",coerce:null,optional:!1},{name:"envId",coerce:null,optional:!1},{name:"eventName",coerce:null,optional:!1},{name:"granularity",coerce:null,optional:!1,choices:["minute","hour","day"]},{name:"bucketStart",coerce:"number",optional:!1},{name:"dimensionName",coerce:null,optional:!1},{name:"quantile",coerce:"number",optional:!1}],scopes:["analytics:read"],idempotent:!0,isQuery:!1,summary:"Compute a t-digest percentile over a sketch bucket (RLS-scoped)."},{key:"analytics.sketches.topK",commandPath:["analytics","sketches","topK"],opId:"GET /v1/analytics/sketches/topk",method:"GET",pattern:"/v1/analytics/sketches/topk",pathParams:[],flags:[{name:"appId",coerce:null,optional:!1},{name:"envId",coerce:null,optional:!1},{name:"eventName",coerce:null,optional:!1},{name:"granularity",coerce:null,optional:!1,choices:["minute","hour","day"]},{name:"bucketStart",coerce:"number",optional:!1},{name:"dimensionName",coerce:null,optional:!1},{name:"n",coerce:"number",optional:!1}],scopes:["analytics:read"],idempotent:!0,isQuery:!1,summary:"Top-K dimension values over a sketch bucket (RLS-scoped)."},{key:"analytics.summary.snapshot",commandPath:["analytics","summary","snapshot"],opId:"GET /v1/analytics/summary",method:"GET",pattern:"/v1/analytics/summary",pathParams:[],flags:[{name:"appId",coerce:null,optional:!1},{name:"eventName",coerce:null,optional:!0},{name:"envId",coerce:null,optional:!0},{name:"start",coerce:"number",optional:!1},{name:"end",coerce:"number",optional:!1},{name:"granularity",coerce:null,optional:!0,choices:["minute","hour","day"]}],scopes:["analytics:read"],idempotent:!0,isQuery:!1,summary:"App overview over a window (server-summed series + per-event totals)."},{key:"audit.chain.verifyStatus",commandPath:["audit","chain","verifyStatus"],opId:"GET /v1/audit/chain/status",method:"GET",pattern:"/v1/audit/chain/status",pathParams:[],flags:[],scopes:["audit:read"],idempotent:!0,isQuery:!1,summary:"Hash-chain verification posture: newest signed chain-head anchor per source deployment."},{key:"audit.events.get",commandPath:["audit","events","get"],opId:"GET /v1/audit/events/get",method:"GET",pattern:"/v1/audit/events/get",pathParams:[],flags:[{name:"gid",coerce:null,optional:!1}],scopes:["audit:read"],idempotent:!0,isQuery:!1,summary:"Retrieve one of the calling org's federated hash-chained audit events by gid."},{key:"audit.events.list",commandPath:["audit","events","list"],opId:"GET /v1/audit/events/list",method:"GET",pattern:"/v1/audit/events/list",pathParams:[],flags:[{name:"appId",coerce:null,optional:!0},{name:"envId",coerce:null,optional:!0},{name:"action",coerce:null,optional:!0},{name:"rowActor",coerce:null,optional:!0},{name:"tenantId",coerce:null,optional:!0},{name:"cursor",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0},{name:"start",coerce:"number",optional:!0},{name:"end",coerce:"number",optional:!0}],scopes:["audit:read"],idempotent:!0,isQuery:!1,summary:"List the calling org's federated hash-chained audit events (paged, RLS-scoped)."},{key:"audit.events.stats",commandPath:["audit","events","stats"],opId:"GET /v1/audit/events/stats",method:"GET",pattern:"/v1/audit/events/stats",pathParams:[],flags:[{name:"appId",coerce:null,optional:!0},{name:"envId",coerce:null,optional:!0},{name:"start",coerce:"number",optional:!0},{name:"end",coerce:"number",optional:!0}],scopes:["audit:read"],idempotent:!0,isQuery:!1,summary:"Aggregate audit stat tiles for the calling org's window."},{key:"billing.connectAccounts.createAccountSession",commandPath:["billing","connectAccounts","createAccountSession"],opId:"POST /v1/billing/connect-accounts/session",method:"POST",pattern:"/v1/billing/connect-accounts/session",pathParams:[],flags:[{name:"components",coerce:"json",optional:!1}],scopes:["billing:write"],idempotent:!1,isQuery:!1,summary:"Create a Stripe Connect account session client secret for embedded components."},{key:"billing.connectAccounts.ensureConnectAccount",commandPath:["billing","connectAccounts","ensureConnectAccount"],opId:"POST /v1/billing/connect-accounts/ensure",method:"POST",pattern:"/v1/billing/connect-accounts/ensure",pathParams:[],flags:[{name:"country",coerce:null,optional:!0},{name:"email",coerce:null,optional:!0},{name:"name",coerce:null,optional:!0},{name:"businessType",coerce:null,optional:!0,choices:["individual","company","non_profit","government_entity"]}],scopes:["billing:write"],idempotent:!1,isQuery:!1,summary:"Ensure the calling org has a Stripe Connect account (create if missing)."},{key:"billing.credits.listCredits",commandPath:["billing","credits","listCredits"],opId:"GET /v1/billing/credits",method:"GET",pattern:"/v1/billing/credits",pathParams:[],flags:[{name:"sinceMs",coerce:"number",optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"List credit memos for the authenticated org."},{key:"billing.disputes.listDisputes",commandPath:["billing","disputes","listDisputes"],opId:"GET /v1/billing/disputes",method:"GET",pattern:"/v1/billing/disputes",pathParams:[],flags:[{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0},{name:"status",coerce:null,optional:!0}],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"List the calling org's payment disputes (RLS-scoped)."},{key:"billing.disputes.retrieveDispute",commandPath:["billing","disputes","retrieveDispute"],opId:"GET /v1/billing/disputes/:disputeId",method:"GET",pattern:"/v1/billing/disputes/:disputeId",pathParams:[{name:"disputeId",key:"disputeId"}],flags:[],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"Retrieve one dispute by id (RLS-scoped to the calling org)."},{key:"billing.dunning.getRecoveryStatus",commandPath:["billing","dunning","getRecoveryStatus"],opId:"GET /v1/billing/dunning/recovery-status",method:"GET",pattern:"/v1/billing/dunning/recovery-status",pathParams:[],flags:[],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"Get the calling org's dunning recovery status."},{key:"billing.dunning.listDelinquencies",commandPath:["billing","dunning","listDelinquencies"],opId:"GET /v1/billing/dunning",method:"GET",pattern:"/v1/billing/dunning",pathParams:[],flags:[{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0},{name:"state",coerce:null,optional:!0}],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"List the calling org's delinquency (dunning) records."},{key:"billing.feedListings.canSubscribeToListing",commandPath:["billing","feedListings","canSubscribeToListing"],opId:"GET /v1/billing/feed-listings/can-subscribe",method:"GET",pattern:"/v1/billing/feed-listings/can-subscribe",pathParams:[],flags:[{name:"listingGid",coerce:null,optional:!0}],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"Feed listing checkout."},{key:"billing.feedListings.getDefaultPaymentMethodPreview",commandPath:["billing","feedListings","getDefaultPaymentMethodPreview"],opId:"GET /v1/billing/feed-listings/default-payment-method-preview",method:"GET",pattern:"/v1/billing/feed-listings/default-payment-method-preview",pathParams:[],flags:[],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"Feed listing checkout."},{key:"billing.feedListings.subscribeToListing",commandPath:["billing","feedListings","subscribeToListing"],opId:"POST /v1/billing/feed-listings/subscribe",method:"POST",pattern:"/v1/billing/feed-listings/subscribe",pathParams:[],flags:[{name:"listingGid",coerce:null,optional:!1},{name:"listingName",coerce:null,optional:!1},{name:"publisherName",coerce:null,optional:!1},{name:"pricingModel",coerce:null,optional:!1},{name:"priceInCents",coerce:"number",optional:!1},{name:"trialDays",coerce:"number",optional:!0},{name:"tierName",coerce:null,optional:!0},{name:"billingCycle",coerce:null,optional:!0,choices:["monthly","yearly"]},{name:"revenueSplitBps",coerce:"number",optional:!0},{name:"buyerCountry",coerce:null,optional:!0},{name:"attemptKey",coerce:null,optional:!0},{name:"acceptedSubscriberAgreementVersion",coerce:null,optional:!0},{name:"acceptedListingLicenceVersion",coerce:null,optional:!0}],scopes:["billing:write"],idempotent:!1,isQuery:!1,summary:"Feed listing checkout."},{key:"billing.feedListings.subscribeToListingWithSavedCard",commandPath:["billing","feedListings","subscribeToListingWithSavedCard"],opId:"POST /v1/billing/feed-listings/subscribe-with-saved-card",method:"POST",pattern:"/v1/billing/feed-listings/subscribe-with-saved-card",pathParams:[],flags:[{name:"listingGid",coerce:null,optional:!1},{name:"listingName",coerce:null,optional:!1},{name:"publisherName",coerce:null,optional:!1},{name:"priceInCents",coerce:"number",optional:!1},{name:"billingCycle",coerce:null,optional:!0,choices:["monthly","yearly"]},{name:"tierName",coerce:null,optional:!0},{name:"revenueSplitBps",coerce:"number",optional:!0},{name:"trialDays",coerce:"number",optional:!0},{name:"buyerCountry",coerce:null,optional:!0},{name:"acceptedSubscriberAgreementVersion",coerce:null,optional:!0},{name:"acceptedListingLicenceVersion",coerce:null,optional:!0}],scopes:["billing:write"],idempotent:!1,isQuery:!1,summary:"Feed listing checkout."},{key:"billing.functions.listPlanCatalogue",commandPath:["billing","functions","listPlanCatalogue"],opId:"GET /v1/billing/plans/catalogue",method:"GET",pattern:"/v1/billing/plans/catalogue",pathParams:[],flags:[],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"List the plan catalogue (all tiers + pricing)."},{key:"billing.functions.listTierChangesForOrg",commandPath:["billing","functions","listTierChangesForOrg"],opId:"GET /v1/billing/plans/tier-changes",method:"GET",pattern:"/v1/billing/plans/tier-changes",pathParams:[],flags:[{name:"limit",coerce:"number",optional:!0}],scopes:["billing:read"],idempotent:!0,isQuery:!0,summary:"Recent tier changes for the calling org, newest first (limit \u2264 200, default 50)."},{key:"billing.functions.setBillingAddress",commandPath:["billing","functions","setBillingAddress"],opId:"PATCH /v1/billing/account/address",method:"PATCH",pattern:"/v1/billing/account/address",pathParams:[],flags:[{name:"line1",coerce:null,optional:!1},{name:"line2",coerce:null,optional:!0},{name:"city",coerce:null,optional:!1},{name:"region",coerce:null,optional:!1},{name:"postalCode",coerce:null,optional:!1},{name:"country",coerce:null,optional:!1}],scopes:["billing:write"],idempotent:!0,isQuery:!1,summary:"Set the calling org's billing address (Stripe Tax jurisdiction)."},{key:"billing.functions.updateBillingEmail",commandPath:["billing","functions","updateBillingEmail"],opId:"PATCH /v1/billing/account/email",method:"PATCH",pattern:"/v1/billing/account/email",pathParams:[],flags:[{name:"billingEmail",coerce:null,optional:!1}],scopes:["billing:write"],idempotent:!0,isQuery:!1,summary:"Update the calling org's billing email."},{key:"billing.invoices.getInvoicePdfUrl",commandPath:["billing","invoices","getInvoicePdfUrl"],opId:"GET /v1/billing/invoices/:invoiceId/pdf",method:"GET",pattern:"/v1/billing/invoices/:invoiceId/pdf",pathParams:[{name:"invoiceId",key:"invoiceId"}],flags:[],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"Get a short-lived PDF download URL for one invoice."},{key:"billing.invoices.listInvoices",commandPath:["billing","invoices","listInvoices"],opId:"GET /v1/billing/invoices",method:"GET",pattern:"/v1/billing/invoices",pathParams:[],flags:[{name:"limit",coerce:"number",optional:!0},{name:"startingAfter",coerce:null,optional:!0},{name:"createdAfter",coerce:"number",optional:!0},{name:"createdBefore",coerce:"number",optional:!0},{name:"status",coerce:null,optional:!0,choices:["paid","open","past_due","uncollectible","void","draft"]}],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"List the calling org's invoices (RLS-scoped)."},{key:"billing.invoices.retrieveInvoice",commandPath:["billing","invoices","retrieveInvoice"],opId:"GET /v1/billing/invoices/:invoiceId",method:"GET",pattern:"/v1/billing/invoices/:invoiceId",pathParams:[{name:"invoiceId",key:"invoiceId"}],flags:[],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"Retrieve one invoice by id (RLS-scoped to the calling org)."},{key:"billing.paymentMethods.attachPaymentMethod",commandPath:["billing","paymentMethods","attachPaymentMethod"],opId:"POST /v1/billing/payment-methods/attach",method:"POST",pattern:"/v1/billing/payment-methods/attach",pathParams:[],flags:[{name:"paymentMethodId",coerce:null,optional:!1},{name:"setAsDefault",coerce:"boolean",optional:!0}],scopes:["billing:write"],idempotent:!1,isQuery:!1,summary:"Attach a payment method to the calling org's customer."},{key:"billing.paymentMethods.detachPaymentMethod",commandPath:["billing","paymentMethods","detachPaymentMethod"],opId:"POST /v1/billing/payment-methods/detach",method:"POST",pattern:"/v1/billing/payment-methods/detach",pathParams:[],flags:[{name:"paymentMethodId",coerce:null,optional:!1},{name:"moveDefaultTo",coerce:null,optional:!0}],scopes:["billing:write"],idempotent:!1,isQuery:!1,summary:"Detach a payment method from the calling org's customer."},{key:"billing.paymentMethods.listPaymentMethods",commandPath:["billing","paymentMethods","listPaymentMethods"],opId:"GET /v1/billing/payment-methods",method:"GET",pattern:"/v1/billing/payment-methods",pathParams:[],flags:[],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"List the calling org's saved payment methods."},{key:"billing.paymentMethods.setDefaultPaymentMethod",commandPath:["billing","paymentMethods","setDefaultPaymentMethod"],opId:"POST /v1/billing/payment-methods/set-default",method:"POST",pattern:"/v1/billing/payment-methods/set-default",pathParams:[],flags:[{name:"paymentMethodId",coerce:null,optional:!1}],scopes:["billing:write"],idempotent:!1,isQuery:!1,summary:"Set the calling org's default payment method."},{key:"billing.payouts.getEarningsSummary",commandPath:["billing","payouts","getEarningsSummary"],opId:"GET /v1/billing/earnings/summary",method:"GET",pattern:"/v1/billing/earnings/summary",pathParams:[],flags:[{name:"sinceMs",coerce:"number",optional:!0}],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"Rollup over the publisher's payouts (sums + per-period breakdown)."},{key:"billing.payouts.getRevenueSummary",commandPath:["billing","payouts","getRevenueSummary"],opId:"GET /v1/billing/revenue/summary",method:"GET",pattern:"/v1/billing/revenue/summary",pathParams:[],flags:[{name:"sinceMs",coerce:"number",optional:!0}],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"Publisher revenue from the destination charges of its paid listings."},{key:"billing.payouts.list",commandPath:["billing","payouts","list"],opId:"GET /v1/feeds/payouts",method:"GET",pattern:"/v1/feeds/payouts",pathParams:[],flags:[{name:"cursor",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"Your released payouts, newest first, and your balance as the billing service reads it: available, held back by the 14-day hold, and open debts beside them."},{key:"billing.payouts.listPayouts",commandPath:["billing","payouts","listPayouts"],opId:"GET /v1/billing/payouts",method:"GET",pattern:"/v1/billing/payouts",pathParams:[],flags:[{name:"sinceMs",coerce:"number",optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"List the calling publisher org's payout history (RLS-scoped)."},{key:"billing.revenue.customer",commandPath:["billing","revenue","customer"],opId:"GET /v1/feeds/revenue/customers/:subscriptionId",method:"GET",pattern:"/v1/feeds/revenue/customers/:subscriptionId",pathParams:[{name:"subscriptionGid",key:"subscriptionId"}],flags:[{name:"sinceMs",coerce:"number",optional:!0}],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"Revenue from one of your customers on its listing, summed from the payment ledger; failed and pending payments are never counted."},{key:"billing.revenue.listings",commandPath:["billing","revenue","listings"],opId:"GET /v1/feeds/revenue/listings",method:"GET",pattern:"/v1/feeds/revenue/listings",pathParams:[],flags:[{name:"sinceMs",coerce:"number",optional:!0}],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"Revenue per listing you publish, summed from the payment ledger; failed and pending payments are never counted."},{key:"billing.subscriptions.accountStatus",commandPath:["billing","subscriptions","accountStatus"],opId:"GET /v1/billing/account-status",method:"GET",pattern:"/v1/billing/account-status",pathParams:[],flags:[],scopes:["billing:read"],idempotent:!0,isQuery:!0,summary:"The calling org's plan/trial standing: tier, days left, and the upgrade pointer."},{key:"billing.subscriptions.applyTierChange",commandPath:["billing","subscriptions","applyTierChange"],opId:"POST /v1/billing/subscriptions/tier-change",method:"POST",pattern:"/v1/billing/subscriptions/tier-change",pathParams:[],flags:[{name:"newTier",coerce:null,optional:!1,choices:["signal","relay","mesh"]},{name:"newInterval",coerce:null,optional:!0,choices:["monthly","annual"]}],scopes:["billing:write"],idempotent:!1,isQuery:!1,summary:"Apply a tier/interval change to the calling org's subscription."},{key:"billing.subscriptions.cancelSubscription",commandPath:["billing","subscriptions","cancelSubscription"],opId:"POST /v1/billing/subscriptions/cancel",method:"POST",pattern:"/v1/billing/subscriptions/cancel",pathParams:[],flags:[{name:"immediate",coerce:"boolean",optional:!0}],scopes:["billing:write"],idempotent:!1,isQuery:!1,summary:"Cancel the calling org's subscription (at period end)."},{key:"billing.subscriptions.confirmSubscriptionPayment",commandPath:["billing","subscriptions","confirmSubscriptionPayment"],opId:"POST /v1/billing/subscriptions/confirm-payment",method:"POST",pattern:"/v1/billing/subscriptions/confirm-payment",pathParams:[],flags:[{name:"subscriptionId",coerce:null,optional:!1}],scopes:["billing:write"],idempotent:!0,isQuery:!1,summary:"Confirm the latest invoice payment after SCA / 3DS."},{key:"billing.subscriptions.createSetupIntent",commandPath:["billing","subscriptions","createSetupIntent"],opId:"POST /v1/billing/payment-methods/setup-intent",method:"POST",pattern:"/v1/billing/payment-methods/setup-intent",pathParams:[],flags:[],scopes:["billing:write"],idempotent:!1,isQuery:!1,summary:"Create a Stripe SetupIntent to collect a payment method."},{key:"billing.subscriptions.createSubscription",commandPath:["billing","subscriptions","createSubscription"],opId:"POST /v1/billing/subscriptions",method:"POST",pattern:"/v1/billing/subscriptions",pathParams:[],flags:[{name:"tier",coerce:null,optional:!1,choices:["signal","relay","mesh"]},{name:"interval",coerce:null,optional:!1,choices:["monthly","annual"]},{name:"paymentMethodId",coerce:null,optional:!0},{name:"trialDays",coerce:"number",optional:!0}],scopes:["billing:write"],idempotent:!1,isQuery:!1,summary:"Subscribe the calling org to a tier (default_incomplete)."},{key:"billing.subscriptions.listSubscriptions",commandPath:["billing","subscriptions","listSubscriptions"],opId:"GET /v1/billing/subscriptions",method:"GET",pattern:"/v1/billing/subscriptions",pathParams:[],flags:[{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0},{name:"status",coerce:null,optional:!0}],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"List the calling org's subscriptions (RLS-scoped)."},{key:"billing.subscriptions.previewTierChange",commandPath:["billing","subscriptions","previewTierChange"],opId:"POST /v1/billing/subscriptions/preview",method:"POST",pattern:"/v1/billing/subscriptions/preview",pathParams:[],flags:[{name:"newTier",coerce:null,optional:!1,choices:["signal","relay","mesh"]},{name:"newInterval",coerce:null,optional:!0,choices:["monthly","annual"]}],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"Preview proration for a tier/interval change."},{key:"billing.subscriptions.reactivateSubscription",commandPath:["billing","subscriptions","reactivateSubscription"],opId:"POST /v1/billing/subscriptions/reactivate",method:"POST",pattern:"/v1/billing/subscriptions/reactivate",pathParams:[],flags:[],scopes:["billing:write"],idempotent:!1,isQuery:!1,summary:"Reactivate a subscription scheduled to cancel at period end."},{key:"billing.subscriptions.retrieveSubscription",commandPath:["billing","subscriptions","retrieveSubscription"],opId:"GET /v1/billing/subscriptions/:subscriptionId",method:"GET",pattern:"/v1/billing/subscriptions/:subscriptionId",pathParams:[{name:"subscriptionId",key:"subscriptionId"}],flags:[],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"Retrieve one subscription by id (RLS-scoped to the calling org)."},{key:"billing.tax.previewTax",commandPath:["billing","tax","previewTax"],opId:"POST /v1/billing/tax/preview",method:"POST",pattern:"/v1/billing/tax/preview",pathParams:[],flags:[{name:"amountCents",coerce:"number",optional:!1},{name:"customer",coerce:"json",optional:!1},{name:"customerTaxIds",coerce:"json",optional:!0},{name:"tierReference",coerce:null,optional:!0}],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"Preview the tax Stripe Tax computes on an amount for a customer's location and tax ids."},{key:"billing.taxIds.addTaxId",commandPath:["billing","taxIds","addTaxId"],opId:"POST /v1/billing/tax-ids",method:"POST",pattern:"/v1/billing/tax-ids",pathParams:[],flags:[{name:"type",coerce:null,optional:!1},{name:"value",coerce:null,optional:!1}],scopes:["billing:write"],idempotent:!1,isQuery:!1,summary:"Add a tax ID to the calling org."},{key:"billing.taxIds.listTaxIds",commandPath:["billing","taxIds","listTaxIds"],opId:"GET /v1/billing/tax-ids",method:"GET",pattern:"/v1/billing/tax-ids",pathParams:[],flags:[],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"List the calling org's tax IDs (RLS-scoped)."},{key:"billing.taxIds.removeTaxId",commandPath:["billing","taxIds","removeTaxId"],opId:"DELETE /v1/billing/tax-ids/:taxIdId",method:"DELETE",pattern:"/v1/billing/tax-ids/:taxIdId",pathParams:[{name:"taxIdId",key:"taxIdId"}],flags:[],scopes:["billing:write"],idempotent:!1,isQuery:!1,summary:"Remove a tax ID from the calling org by id."},{key:"billing.testClocks.advanceTestClock",commandPath:["billing","testClocks","advanceTestClock"],opId:"POST /v1/billing/test-clock/advance",method:"POST",pattern:"/v1/billing/test-clock/advance",pathParams:[],flags:[{name:"frozenTime",coerce:"number",optional:!1}],scopes:["billing:write"],idempotent:!1,isQuery:!1,summary:"Advance the calling org's Stripe TEST clock to frozenTime (test environments only; refused in production)."},{key:"billing.usage.getQuotas",commandPath:["billing","usage","getQuotas"],opId:"GET /v1/billing/usage/quotas",method:"GET",pattern:"/v1/billing/usage/quotas",pathParams:[],flags:[],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"Per-tier snapshot quotas (limit / current / remaining) for the calling org."},{key:"billing.usage.getUsageSummary",commandPath:["billing","usage","getUsageSummary"],opId:"GET /v1/billing/usage/summary",method:"GET",pattern:"/v1/billing/usage/summary",pathParams:[],flags:[{name:"periodStart",coerce:"number",optional:!0},{name:"periodEnd",coerce:"number",optional:!0}],scopes:["billing:read"],idempotent:!0,isQuery:!1,summary:"Current-cycle usage summary for the calling org."},{key:"connect.connect.approveAccess",commandPath:["connect","connect","approveAccess"],opId:"POST /v1/connect/grants/:grantId/approve",method:"POST",pattern:"/v1/connect/grants/:grantId/approve",pathParams:[{name:"grantId",key:"grantId"}],flags:[{name:"rateLimit",coerce:"json",optional:!0},{name:"expiresAt",coerce:"number",optional:!0}],scopes:["grants:write"],idempotent:!1,isQuery:!1,summary:"Approve a pending access grant (publisher only)."},{key:"connect.connect.confirmBridge",commandPath:["connect","connect","confirmBridge"],opId:"POST /v1/connect/bridges/:bridgeGid/confirm",method:"POST",pattern:"/v1/connect/bridges/:bridgeGid/confirm",pathParams:[{name:"gid",key:"bridgeGid"}],flags:[],scopes:["bridges:write"],idempotent:!1,isQuery:!1,summary:"Confirm a pending identity bridge (target party)."},{key:"connect.connect.createBridge",commandPath:["connect","connect","createBridge"],opId:"POST /v1/connect/bridges",method:"POST",pattern:"/v1/connect/bridges",pathParams:[],flags:[{name:"targetOrgGID",coerce:null,optional:!1},{name:"entityTypeSlug",coerce:null,optional:!1}],scopes:["bridges:write"],idempotent:!1,isQuery:!1,summary:"Create an identity bridge (admin-first; caller org becomes source)."},{key:"connect.connect.initiateTenantApproval",commandPath:["connect","connect","initiateTenantApproval"],opId:"POST /v1/connect/tenant-approvals",method:"POST",pattern:"/v1/connect/tenant-approvals",pathParams:[],flags:[{name:"grantId",coerce:null,optional:!1},{name:"tenantId",coerce:null,optional:!1},{name:"tenantDisplayName",coerce:null,optional:!0},{name:"redirectUri",coerce:null,optional:!0},{name:"originFingerprint",coerce:null,optional:!0}],scopes:["tenant_approvals:write"],idempotent:!1,isQuery:!1,summary:"Initiate a tenant consent challenge (admin-first; PUBLISHER org, platform app only)."},{key:"connect.connect.listPartnerAppTenantApprovals",commandPath:["connect","connect","listPartnerAppTenantApprovals"],opId:"GET /v1/connect/partner/apps/:appId/tenant-approvals",method:"GET",pattern:"/v1/connect/partner/apps/:appId/tenant-approvals",pathParams:[{name:"targetAppId",key:"appId"}],flags:[{name:"status",coerce:null,optional:!0,choices:["active","revoked","frozen","delisted","expired"]},{name:"cursor",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["partner:read"],idempotent:!0,isQuery:!0,summary:"List a partner-governed app's tenant approvals (read side)."},{key:"connect.connect.listPartnerGovernedApps",commandPath:["connect","connect","listPartnerGovernedApps"],opId:"GET /v1/connect/partner/apps",method:"GET",pattern:"/v1/connect/partner/apps",pathParams:[],flags:[{name:"cursor",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["partner:read"],idempotent:!0,isQuery:!0,summary:"List the apps a Connect partner governs (read side of partner governance)."},{key:"connect.connect.listRevocationAudit",commandPath:["connect","connect","listRevocationAudit"],opId:"GET /v1/connect/grants/:grantId/audit",method:"GET",pattern:"/v1/connect/grants/:grantId/audit",pathParams:[{name:"grantId",key:"grantId"}],flags:[],scopes:["grants:read"],idempotent:!0,isQuery:!0,summary:"A grant's revocation audit entries \u2014 its own and its tenant approvals' \u2014 for either party (audit right, transparency right)."},{key:"connect.connect.partnerDelistApp",commandPath:["connect","connect","partnerDelistApp"],opId:"POST /v1/connect/partner/apps/:appId/delist",method:"POST",pattern:"/v1/connect/partner/apps/:appId/delist",pathParams:[{name:"targetAppId",key:"appId"}],flags:[{name:"reason",coerce:null,optional:!0}],scopes:["partner:admin"],idempotent:!1,isQuery:!1,summary:"Delist a partner-governed app from the marketplace (platform operator)."},{key:"connect.connect.partnerFreezeApp",commandPath:["connect","connect","partnerFreezeApp"],opId:"POST /v1/connect/partner/apps/:appId/freeze",method:"POST",pattern:"/v1/connect/partner/apps/:appId/freeze",pathParams:[{name:"targetAppId",key:"appId"}],flags:[{name:"reason",coerce:null,optional:!1}],scopes:["partner:admin"],idempotent:!1,isQuery:!1,summary:"Freeze a partner-governed app (platform operator)."},{key:"connect.connect.partnerOverrideTenantApproval",commandPath:["connect","connect","partnerOverrideTenantApproval"],opId:"POST /v1/connect/partner/tenant-approvals/:approvalGid/override",method:"POST",pattern:"/v1/connect/partner/tenant-approvals/:approvalGid/override",pathParams:[{name:"targetTenantApprovalGid",key:"approvalGid"}],flags:[{name:"action",coerce:null,optional:!1,choices:["approve","revoke"]},{name:"reason",coerce:null,optional:!1}],scopes:["partner:admin"],idempotent:!1,isQuery:!1,summary:"Override a tenant approval decision (platform operator)."},{key:"connect.connect.partnerReinstateApp",commandPath:["connect","connect","partnerReinstateApp"],opId:"POST /v1/connect/partner/apps/:appId/reinstate",method:"POST",pattern:"/v1/connect/partner/apps/:appId/reinstate",pathParams:[{name:"targetAppId",key:"appId"}],flags:[{name:"reason",coerce:null,optional:!0}],scopes:["partner:admin"],idempotent:!0,isQuery:!1,summary:"Reinstate a frozen partner-governed app (platform operator)."},{key:"connect.connect.rejectAccess",commandPath:["connect","connect","rejectAccess"],opId:"POST /v1/connect/grants/:grantId/reject",method:"POST",pattern:"/v1/connect/grants/:grantId/reject",pathParams:[{name:"grantId",key:"grantId"}],flags:[{name:"reason",coerce:null,optional:!1}],scopes:["grants:write"],idempotent:!1,isQuery:!1,summary:"Reject a pending access grant (publisher only)."},{key:"connect.connect.requestAccess",commandPath:["connect","connect","requestAccess"],opId:"POST /v1/connect/grants",method:"POST",pattern:"/v1/connect/grants",pathParams:[],flags:[{name:"publisherAppId",coerce:null,optional:!1},{name:"publisherOrgId",coerce:null,optional:!0},{name:"eventTypes",coerce:"json",optional:!1},{name:"purpose",coerce:null,optional:!0},{name:"estimatedVolume",coerce:null,optional:!0},{name:"subscriberAppId",coerce:null,optional:!1},{name:"rateLimit",coerce:"json",optional:!0},{name:"scope",coerce:"json",optional:!0}],scopes:["grants:write"],idempotent:!1,isQuery:!1,summary:"Request access to a publisher app's events (creates a pending grant)."},{key:"connect.connect.revokeGrant",commandPath:["connect","connect","revokeGrant"],opId:"POST /v1/connect/grants/:grantId/revoke",method:"POST",pattern:"/v1/connect/grants/:grantId/revoke",pathParams:[{name:"grantId",key:"grantId"}],flags:[{name:"reasonText",coerce:null,optional:!0},{name:"source",coerce:null,optional:!0,choices:["dashboard","api","webhook"]},{name:"requestContext",coerce:"json",optional:!0}],scopes:["grants:write"],idempotent:!1,isQuery:!1,summary:"Revoke an active or pending access grant (either party)."},{key:"connect.connect.revokeTenantApproval",commandPath:["connect","connect","revokeTenantApproval"],opId:"POST /v1/connect/tenant-approvals/:approvalGid/revoke",method:"POST",pattern:"/v1/connect/tenant-approvals/:approvalGid/revoke",pathParams:[{name:"approvalId",key:"approvalGid"}],flags:[{name:"reasonText",coerce:null,optional:!0},{name:"source",coerce:null,optional:!0,choices:["dashboard","api","webhook"]},{name:"requestContext",coerce:"json",optional:!0}],scopes:["tenant_approvals:write"],idempotent:!1,isQuery:!1,summary:"Revoke an active tenant approval (admin-first)."},{key:"connect.connect.updateAppProfile",commandPath:["connect","connect","updateAppProfile"],opId:"PATCH /v1/connect/profile/:appId",method:"PATCH",pattern:"/v1/connect/profile/:appId",pathParams:[{name:"appId",key:"appId"}],flags:[{name:"connectVisibility",coerce:null,optional:!0,choices:["public","listed","unlisted","private"]},{name:"connectDescription",coerce:null,optional:!0},{name:"publishedEventTypes",coerce:"json",optional:!0},{name:"platformSlug",coerce:null,optional:!0},{name:"complianceBadges",coerce:"json",optional:!0},{name:"supportContact",coerce:"json",optional:!0}],scopes:["profile:write"],idempotent:!1,isQuery:!1,summary:"Update the caller org's own app connect profile (admin-first)."},{key:"connect.identityBridges.archiveBridge",commandPath:["connect","identityBridges","archiveBridge"],opId:"POST /v1/connect/bridges/:bridgeGid/archive",method:"POST",pattern:"/v1/connect/bridges/:bridgeGid/archive",pathParams:[{name:"gid",key:"bridgeGid"}],flags:[],scopes:["connect:write"],idempotent:!1,isQuery:!1,summary:"Archive an identity bridge (irreversible; revokes derived consent + grant)."},{key:"connect.identityBridges.suspendBridge",commandPath:["connect","identityBridges","suspendBridge"],opId:"POST /v1/connect/bridges/:bridgeGid/suspend",method:"POST",pattern:"/v1/connect/bridges/:bridgeGid/suspend",pathParams:[{name:"gid",key:"bridgeGid"}],flags:[],scopes:["bridges:write"],idempotent:!1,isQuery:!1,summary:"Suspend an active identity bridge (temporary pause)."},{key:"connect.publishGrants.create",commandPath:["connect","publishGrants","create"],opId:"POST /v1/connect/publish-grants",method:"POST",pattern:"/v1/connect/publish-grants",pathParams:[],flags:[{name:"channelId",coerce:null,optional:!1},{name:"producerAppId",coerce:null,optional:!1},{name:"expiresAt",coerce:"number",optional:!0}],scopes:["connect:write"],idempotent:!0,isQuery:!1,summary:"Grant one producer app of another organization the right to publish to one of your channels."},{key:"connect.publishGrants.list",commandPath:["connect","publishGrants","list"],opId:"GET /v1/connect/publish-grants",method:"GET",pattern:"/v1/connect/publish-grants",pathParams:[],flags:[{name:"direction",coerce:null,optional:!1,choices:["granted","held"]},{name:"status",coerce:null,optional:!0},{name:"cursor",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["connect:read"],idempotent:!0,isQuery:!0,summary:"List the publish grants your organization granted or holds."},{key:"connect.publishGrants.pause",commandPath:["connect","publishGrants","pause"],opId:"POST /v1/connect/publish-grants/:id/pause",method:"POST",pattern:"/v1/connect/publish-grants/:id/pause",pathParams:[{name:"id",key:"id"}],flags:[],scopes:["connect:write"],idempotent:!1,isQuery:!1,summary:"Pause a publish grant you issued (reversible)."},{key:"connect.publishGrants.resume",commandPath:["connect","publishGrants","resume"],opId:"POST /v1/connect/publish-grants/:id/resume",method:"POST",pattern:"/v1/connect/publish-grants/:id/resume",pathParams:[{name:"id",key:"id"}],flags:[],scopes:["connect:write"],idempotent:!1,isQuery:!1,summary:"Resume a paused publish grant you issued."},{key:"connect.publishGrants.retrieve",commandPath:["connect","publishGrants","retrieve"],opId:"GET /v1/connect/publish-grants/:id",method:"GET",pattern:"/v1/connect/publish-grants/:id",pathParams:[{name:"id",key:"id"}],flags:[],scopes:["connect:read"],idempotent:!0,isQuery:!0,summary:"Retrieve one publish grant you are a party of."},{key:"connect.publishGrants.revoke",commandPath:["connect","publishGrants","revoke"],opId:"POST /v1/connect/publish-grants/:id/revoke",method:"POST",pattern:"/v1/connect/publish-grants/:id/revoke",pathParams:[{name:"id",key:"id"}],flags:[],scopes:["connect:write"],idempotent:!1,isQuery:!1,summary:"Revoke a publish grant (terminal) \u2014 the channel owner revokes, the producer renounces."},{key:"embed.origins.list",commandPath:["embed","origins","list"],opId:"GET /v1/embed/origins",method:"GET",pattern:"/v1/embed/origins",pathParams:[],flags:[{name:"appGID",coerce:null,optional:!1},{name:"envId",coerce:null,optional:!1}],scopes:["embed:read"],idempotent:!0,isQuery:!0,summary:"List an app/env's registered embed origins."},{key:"embed.origins.set",commandPath:["embed","origins","set"],opId:"PUT /v1/embed/origins",method:"PUT",pattern:"/v1/embed/origins",pathParams:[],flags:[{name:"appGID",coerce:null,optional:!1},{name:"envId",coerce:null,optional:!1},{name:"allowedOrigins",coerce:"json",optional:!1}],scopes:["embed:write"],idempotent:!0,isQuery:!1,summary:"Replace an app/env's embed origin allowlist (owner-scoped)."},{key:"embed.sessions.create",commandPath:["embed","sessions","create"],opId:"POST /v1/embed/sessions",method:"POST",pattern:"/v1/embed/sessions",pathParams:[],flags:[{name:"appId",coerce:null,optional:!1},{name:"envId",coerce:null,optional:!0},{name:"tenantId",coerce:null,optional:!1},{name:"features",coerce:"json",optional:!0},{name:"components",coerce:"json",optional:!0},{name:"mode",coerce:null,optional:!0,choices:["custom","isolated"]},{name:"permissions",coerce:"json",optional:!0},{name:"expiresInSeconds",coerce:"number",optional:!0},{name:"returnUrl",coerce:null,optional:!0},{name:"attestedSubject",coerce:null,optional:!0}],scopes:["embed:write"],idempotent:!1,isQuery:!1,summary:"Mint an embed session for a browser component (tenant-attenuated)."},{key:"embed.sessions.revoke",commandPath:["embed","sessions","revoke"],opId:"POST /v1/embed/sessions/:sessionGid/revoke",method:"POST",pattern:"/v1/embed/sessions/:sessionGid/revoke",pathParams:[{name:"sessionGid",key:"sessionGid"}],flags:[],scopes:["embed:write"],idempotent:!0,isQuery:!1,summary:"Revoke an embed session \u2014 a subsequent edge exchange fails closed."},{key:"feed.listings.archive",commandPath:["feed","listings","archive"],opId:"DELETE /v1/feeds/listings/:listingId",method:"DELETE",pattern:"/v1/feeds/listings/:listingId",pathParams:[{name:"listingGid",key:"listingId"}],flags:[],scopes:["listings:write"],idempotent:!0,isQuery:!1,summary:"Archive a listing and cancel its subscriptions at once."},{key:"feed.listings.canCreateListing",commandPath:["feed","listings","canCreateListing"],opId:"GET /v1/feeds/publisher-eligibility",method:"GET",pattern:"/v1/feeds/publisher-eligibility",pathParams:[],flags:[],scopes:["listings:read"],idempotent:!0,isQuery:!0,summary:"Check whether the calling org may create listings (production-app gate)."},{key:"feed.listings.create",commandPath:["feed","listings","create"],opId:"POST /v1/feeds/listings",method:"POST",pattern:"/v1/feeds/listings",pathParams:[],flags:[{name:"publisherGid",coerce:null,optional:!1},{name:"channelGid",coerce:null,optional:!1},{name:"cellId",coerce:null,optional:!1},{name:"name",coerce:null,optional:!1},{name:"slug",coerce:null,optional:!1},{name:"description",coerce:null,optional:!1},{name:"shortDescription",coerce:null,optional:!0},{name:"iconStorageId",coerce:null,optional:!0},{name:"bannerStorageId",coerce:null,optional:!0},{name:"documentationUrl",coerce:null,optional:!0},{name:"samplePayload",coerce:null,optional:!0},{name:"category",coerce:null,optional:!1},{name:"tags",coerce:"json",optional:!1},{name:"pricing",coerce:"json",optional:!1},{name:"visibility",coerce:null,optional:!0,choices:["public","unlisted","private"]},{name:"environment",coerce:null,optional:!0,choices:["sandbox","production"]},{name:"licence",coerce:"json",optional:!0}],scopes:["listings:write"],idempotent:!1,isQuery:!1,summary:"Create a draft listing in the canonical catalog."},{key:"feed.listings.generateUploadUrl",commandPath:["feed","listings","generateUploadUrl"],opId:"POST /v1/feeds/listings/upload-url",method:"POST",pattern:"/v1/feeds/listings/upload-url",pathParams:[],flags:[],scopes:["listings:write"],idempotent:!1,isQuery:!1,summary:"Mint a single-use upload URL for a listing icon or banner."},{key:"feed.listings.getByGid",commandPath:["feed","listings","getByGid"],opId:"GET /v1/feeds/listings/:listingId",method:"GET",pattern:"/v1/feeds/listings/:listingId",pathParams:[{name:"gid",key:"listingId"}],flags:[],scopes:["listings:read"],idempotent:!0,isQuery:!0,summary:"Get a single listing by its global id."},{key:"feed.listings.getBySlug",commandPath:["feed","listings","getBySlug"],opId:"GET /v1/feeds/publishers/:publisherSlug/listings/:listingSlug",method:"GET",pattern:"/v1/feeds/publishers/:publisherSlug/listings/:listingSlug",pathParams:[{name:"publisherSlug",key:"publisherSlug"},{name:"listingSlug",key:"listingSlug"}],flags:[],scopes:["listings:read"],idempotent:!0,isQuery:!0,summary:"Get a single listing by its publisher-namespaced slug."},{key:"feed.listings.listByPublisherWire",commandPath:["feed","listings","listByPublisherWire"],opId:"GET /v1/feeds/publishers/:publisherId/listings",method:"GET",pattern:"/v1/feeds/publishers/:publisherId/listings",pathParams:[{name:"publisherGid",key:"publisherId"}],flags:[{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0}],scopes:["listings:read"],idempotent:!0,isQuery:!0,summary:"List a publisher's own listings (any status) as a bounded page \u2014 { page, isDone, continueCursor }; limit (default 50, cap 200) + cursor. RLS-scoped to the caller org."},{key:"feed.listings.listEligibleListingChannelApps",commandPath:["feed","listings","listEligibleListingChannelApps"],opId:"GET /v1/feeds/listing-eligible-apps",method:"GET",pattern:"/v1/feeds/listing-eligible-apps",pathParams:[],flags:[],scopes:["listings:read"],idempotent:!0,isQuery:!0,summary:"App GIDs eligible to back a feed listing (have both sandbox + production envs)."},{key:"feed.listings.listPublished",commandPath:["feed","listings","listPublished"],opId:"GET /v1/feeds/listings",method:"GET",pattern:"/v1/feeds/listings",pathParams:[],flags:[{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0},{name:"domain",coerce:null,optional:!0},{name:"category",coerce:null,optional:!0},{name:"priceTier",coerce:null,optional:!0,choices:["free","flat_rate","usage_based","tiered"]},{name:"query",coerce:null,optional:!0},{name:"environment",coerce:null,optional:!0,choices:["sandbox","production"]}],scopes:["listings:read"],idempotent:!0,isQuery:!0,summary:"List published, public listings in the global catalog."},{key:"feed.listings.publish",commandPath:["feed","listings","publish"],opId:"POST /v1/feeds/listings/:listingId/publish",method:"POST",pattern:"/v1/feeds/listings/:listingId/publish",pathParams:[{name:"listingGid",key:"listingId"}],flags:[],scopes:["listings:write"],idempotent:!0,isQuery:!1,summary:"Publish an approved listing to the marketplace."},{key:"feed.listings.resolveByRef",commandPath:["feed","listings","resolveByRef"],opId:"GET /v1/feeds/resolve/:publisherSlug/:listingSlug",method:"GET",pattern:"/v1/feeds/resolve/:publisherSlug/:listingSlug",pathParams:[{name:"publisherSlug",key:"publisherSlug"},{name:"listingSlug",key:"listingSlug"}],flags:[],scopes:["listings:read"],idempotent:!0,isQuery:!0,summary:"Resolve a feed listing by its reference <publisherSlug>/<listingSlug> \u2014 gid, store facts, pricing and the two acceptance versions in one read."},{key:"feed.listings.submitForReview",commandPath:["feed","listings","submitForReview"],opId:"POST /v1/feeds/listings/:listingId/submit",method:"POST",pattern:"/v1/feeds/listings/:listingId/submit",pathParams:[{name:"listingGid",key:"listingId"}],flags:[{name:"acceptedOwnershipDeclarationVersion",coerce:null,optional:!0}],scopes:["listings:write"],idempotent:!0,isQuery:!1,summary:"Submit a draft listing for marketplace review."},{key:"feed.listings.unpublish",commandPath:["feed","listings","unpublish"],opId:"POST /v1/feeds/listings/:listingId/unpublish",method:"POST",pattern:"/v1/feeds/listings/:listingId/unpublish",pathParams:[{name:"listingGid",key:"listingId"}],flags:[],scopes:["listings:write"],idempotent:!0,isQuery:!1,summary:"Take a live listing off the marketplace back to draft."},{key:"feed.listings.update",commandPath:["feed","listings","update"],opId:"POST /v1/feeds/listings/:listingId",method:"POST",pattern:"/v1/feeds/listings/:listingId",pathParams:[{name:"listingGid",key:"listingId"}],flags:[{name:"name",coerce:null,optional:!0},{name:"description",coerce:null,optional:!0},{name:"shortDescription",coerce:null,optional:!0},{name:"iconStorageId",coerce:null,optional:!0},{name:"bannerStorageId",coerce:null,optional:!0},{name:"documentationUrl",coerce:null,optional:!0},{name:"samplePayload",coerce:null,optional:!0},{name:"sla",coerce:"json",optional:!0},{name:"category",coerce:null,optional:!0},{name:"tags",coerce:"json",optional:!0},{name:"visibility",coerce:null,optional:!0,choices:["public","unlisted","private"]},{name:"licence",coerce:"json",optional:!0}],scopes:["listings:write"],idempotent:!1,isQuery:!1,summary:"Update mutable fields of a draft or published listing."},{key:"feed.listings.updatePricing",commandPath:["feed","listings","updatePricing"],opId:"POST /v1/feeds/listings/:listingId/pricing",method:"POST",pattern:"/v1/feeds/listings/:listingId/pricing",pathParams:[{name:"listingGid",key:"listingId"}],flags:[{name:"pricing",coerce:"json",optional:!1}],scopes:["listings:write"],idempotent:!1,isQuery:!1,summary:"Update the pricing of a draft listing."},{key:"feed.listings.withdrawSubmission",commandPath:["feed","listings","withdrawSubmission"],opId:"POST /v1/feeds/listings/:listingId/withdraw",method:"POST",pattern:"/v1/feeds/listings/:listingId/withdraw",pathParams:[{name:"listingGid",key:"listingId"}],flags:[],scopes:["listings:write"],idempotent:!0,isQuery:!1,summary:"Withdraw a listing from review back to draft."},{key:"feed.publishers.getByGid",commandPath:["feed","publishers","getByGid"],opId:"GET /v1/feeds/publishers/:publisherId",method:"GET",pattern:"/v1/feeds/publishers/:publisherId",pathParams:[{name:"gid",key:"publisherId"}],flags:[],scopes:["publishers:read"],idempotent:!0,isQuery:!0,summary:"Get a publisher by its global id."},{key:"feed.publishers.getBySlug",commandPath:["feed","publishers","getBySlug"],opId:"GET /v1/feeds/publishers/by-slug/:slug",method:"GET",pattern:"/v1/feeds/publishers/by-slug/:slug",pathParams:[{name:"slug",key:"slug"}],flags:[],scopes:["publishers:read"],idempotent:!0,isQuery:!0,summary:"Get a publisher by its slug."},{key:"feed.publishers.getMine",commandPath:["feed","publishers","getMine"],opId:"GET /v1/feeds/publishers/me",method:"GET",pattern:"/v1/feeds/publishers/me",pathParams:[],flags:[],scopes:["publishers:read"],idempotent:!0,isQuery:!0,summary:"Resolve the publisher row for the calling org."},{key:"feed.publishers.listVerified",commandPath:["feed","publishers","listVerified"],opId:"GET /v1/feeds/publishers",method:"GET",pattern:"/v1/feeds/publishers",pathParams:[],flags:[{name:"limit",coerce:"number",optional:!0}],scopes:["publishers:read"],idempotent:!0,isQuery:!0,summary:"List all verified publishers in the catalog."},{key:"feed.publishers.register",commandPath:["feed","publishers","register"],opId:"POST /v1/feeds/publishers",method:"POST",pattern:"/v1/feeds/publishers",pathParams:[],flags:[{name:"name",coerce:null,optional:!1},{name:"slug",coerce:null,optional:!1},{name:"description",coerce:null,optional:!0},{name:"websiteUrl",coerce:null,optional:!0},{name:"supportEmail",coerce:null,optional:!0},{name:"supportUrl",coerce:null,optional:!0},{name:"logoUrl",coerce:null,optional:!0},{name:"acceptedAgreementVersion",coerce:null,optional:!0}],scopes:["publishers:write"],idempotent:!1,isQuery:!1,summary:"Register a publisher for the calling org."},{key:"feed.publishers.revokePublisher",commandPath:["feed","publishers","revokePublisher"],opId:"POST /v1/feeds/publishers/:publisherId/revoke",method:"POST",pattern:"/v1/feeds/publishers/:publisherId/revoke",pathParams:[{name:"publisherGid",key:"publisherId"}],flags:[{name:"reason",coerce:null,optional:!0}],scopes:["publishers:write"],idempotent:!0,isQuery:!1,summary:"Owner-initiated revoke of a publisher and its listings."},{key:"feed.publishers.update",commandPath:["feed","publishers","update"],opId:"POST /v1/feeds/publishers/:publisherId",method:"POST",pattern:"/v1/feeds/publishers/:publisherId",pathParams:[{name:"publisherGid",key:"publisherId"}],flags:[{name:"name",coerce:null,optional:!0},{name:"description",coerce:null,optional:!0},{name:"websiteUrl",coerce:null,optional:!0},{name:"supportEmail",coerce:null,optional:!0},{name:"supportUrl",coerce:null,optional:!0},{name:"logoUrl",coerce:null,optional:!0},{name:"defaultRevenueSplit",coerce:"number",optional:!0},{name:"payoutDestination",coerce:null,optional:!0},{name:"taxProfile",coerce:"json",optional:!0},{name:"notificationPreferences",coerce:"json",optional:!0}],scopes:["publishers:write"],idempotent:!1,isQuery:!1,summary:"Update a publisher's mutable identity fields (owner-only)."},{key:"feed.subscriptions.cancel",commandPath:["feed","subscriptions","cancel"],opId:"DELETE /v1/feeds/subscriptions/:subscriptionId",method:"DELETE",pattern:"/v1/feeds/subscriptions/:subscriptionId",pathParams:[{name:"gid",key:"subscriptionId"}],flags:[{name:"reason",coerce:null,optional:!0}],scopes:["feed:write"],idempotent:!0,isQuery:!1,summary:"Cancel a feed subscription."},{key:"feed.subscriptions.convertTrialToPaid",commandPath:["feed","subscriptions","convertTrialToPaid"],opId:"POST /v1/feeds/subscriptions/:subscriptionId/convert-to-paid",method:"POST",pattern:"/v1/feeds/subscriptions/:subscriptionId/convert-to-paid",pathParams:[{name:"gid",key:"subscriptionId"}],flags:[{name:"productionEnvGid",coerce:null,optional:!0}],scopes:["feed:write"],idempotent:!0,isQuery:!1,summary:"Convert a $0 trial subscription to a paid production subscription."},{key:"feed.subscriptions.countByPublisher",commandPath:["feed","subscriptions","countByPublisher"],opId:"GET /v1/feeds/publishers/:publisherId/subscriber-count",method:"GET",pattern:"/v1/feeds/publishers/:publisherId/subscriber-count",pathParams:[{name:"publisherGid",key:"publisherId"}],flags:[],scopes:["feed:read"],idempotent:!0,isQuery:!0,summary:"Count active/total subscribers for a publisher (RLS-scoped)."},{key:"feed.subscriptions.getByGid",commandPath:["feed","subscriptions","getByGid"],opId:"GET /v1/feeds/subscriptions/:subscriptionId",method:"GET",pattern:"/v1/feeds/subscriptions/:subscriptionId",pathParams:[{name:"gid",key:"subscriptionId"}],flags:[],scopes:["feed:read"],idempotent:!0,isQuery:!0,summary:"Fetch one feed subscription by id (RLS-scoped to the caller org)."},{key:"feed.subscriptions.listBySubscriber",commandPath:["feed","subscriptions","listBySubscriber"],opId:"GET /v1/feeds/subscriptions",method:"GET",pattern:"/v1/feeds/subscriptions",pathParams:[],flags:[{name:"status",coerce:null,optional:!0}],scopes:["feed:read"],idempotent:!0,isQuery:!0,summary:"List the calling org's feed subscriptions."},{key:"feed.subscriptions.listBySubscriberEnriched",commandPath:["feed","subscriptions","listBySubscriberEnriched"],opId:"GET /v1/feeds/subscriptions/enriched",method:"GET",pattern:"/v1/feeds/subscriptions/enriched",pathParams:[],flags:[],scopes:["feed:read"],idempotent:!0,isQuery:!0,summary:"List the calling org's feed subscriptions with listing + publisher enrichment joined (single aggregate)."},{key:"feed.subscriptions.pause",commandPath:["feed","subscriptions","pause"],opId:"POST /v1/feeds/subscriptions/:subscriptionId/pause",method:"POST",pattern:"/v1/feeds/subscriptions/:subscriptionId/pause",pathParams:[{name:"gid",key:"subscriptionId"}],flags:[],scopes:["feed:write"],idempotent:!0,isQuery:!1,summary:"Pause an active feed subscription."},{key:"feed.subscriptions.resume",commandPath:["feed","subscriptions","resume"],opId:"POST /v1/feeds/subscriptions/:subscriptionId/resume",method:"POST",pattern:"/v1/feeds/subscriptions/:subscriptionId/resume",pathParams:[{name:"gid",key:"subscriptionId"}],flags:[],scopes:["feed:write"],idempotent:!0,isQuery:!1,summary:"Resume a paused feed subscription."},{key:"feed.subscriptions.subscribe",commandPath:["feed","subscriptions","subscribe"],opId:"POST /v1/feeds/listings/:listingId/subscribe",method:"POST",pattern:"/v1/feeds/listings/:listingId/subscribe",pathParams:[{name:"listingGid",key:"listingId"}],flags:[{name:"targetAppGids",coerce:"json",optional:!1},{name:"billingCycle",coerce:null,optional:!0,choices:["monthly","yearly"]},{name:"tierName",coerce:null,optional:!0},{name:"acceptedSubscriberAgreementVersion",coerce:null,optional:!0},{name:"acceptedListingLicenceVersion",coerce:null,optional:!0}],scopes:["feed:write"],idempotent:!1,isQuery:!1,summary:"Subscribe the calling org to a published listing."},{key:"notify.dispatches.list",commandPath:["notify","dispatches","list"],opId:"GET /v1/notifications/dispatches",method:"GET",pattern:"/v1/notifications/dispatches",pathParams:[],flags:[{name:"appId",coerce:null,optional:!1},{name:"status",coerce:null,optional:!0,choices:["queued","sending","sent","failed","dlq"]},{name:"cursor",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["notify:read"],idempotent:!0,isQuery:!1,summary:"List the calling org's notification dispatch history (RLS-scoped)."},{key:"notify.inbox.archive",commandPath:["notify","inbox","archive"],opId:"POST /v1/notifications/inbox/:gid/archive",method:"POST",pattern:"/v1/notifications/inbox/:gid/archive",pathParams:[{name:"gid",key:"gid"}],flags:[{name:"appId",coerce:null,optional:!1},{name:"user",coerce:null,optional:!1}],scopes:["notify:write"],idempotent:!0,isQuery:!1,summary:"Archive one inbox notification (dashboard parity write)."},{key:"notify.inbox.list",commandPath:["notify","inbox","list"],opId:"GET /v1/notifications/inbox",method:"GET",pattern:"/v1/notifications/inbox",pathParams:[],flags:[{name:"appId",coerce:null,optional:!1},{name:"user",coerce:null,optional:!1},{name:"status",coerce:null,optional:!0,choices:["unread","read","archived"]},{name:"cursor",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["notify:read"],idempotent:!0,isQuery:!1,summary:"List the calling org's notification inbox (paginated, RLS-scoped)."},{key:"notify.inbox.markAllRead",commandPath:["notify","inbox","markAllRead"],opId:"POST /v1/notifications/inbox/mark-all-read",method:"POST",pattern:"/v1/notifications/inbox/mark-all-read",pathParams:[],flags:[{name:"appId",coerce:null,optional:!1},{name:"user",coerce:null,optional:!1}],scopes:["notify:write"],idempotent:!0,isQuery:!1,summary:"Mark ALL unread inbox notifications read for one recipient (dashboard parity write)."},{key:"notify.inbox.markRead",commandPath:["notify","inbox","markRead"],opId:"POST /v1/notifications/inbox/:gid/mark-read",method:"POST",pattern:"/v1/notifications/inbox/:gid/mark-read",pathParams:[{name:"gid",key:"gid"}],flags:[{name:"appId",coerce:null,optional:!1},{name:"user",coerce:null,optional:!1}],scopes:["notify:write"],idempotent:!0,isQuery:!1,summary:"Mark one inbox notification read (dashboard bell/inbox parity write)."},{key:"notify.preferences.clear",commandPath:["notify","preferences","clear"],opId:"DELETE /v1/notifications/preferences",method:"DELETE",pattern:"/v1/notifications/preferences",pathParams:[],flags:[{name:"appId",coerce:null,optional:!1},{name:"user",coerce:null,optional:!1},{name:"typeSlug",coerce:null,optional:!0},{name:"channel",coerce:null,optional:!0,choices:["email","sms","push","inapp","slack"]}],scopes:["notify:write"],idempotent:!0,isQuery:!1,summary:"Clear one notification preference row back to defaults."},{key:"notify.preferences.list",commandPath:["notify","preferences","list"],opId:"GET /v1/notifications/preferences",method:"GET",pattern:"/v1/notifications/preferences",pathParams:[],flags:[{name:"appId",coerce:null,optional:!1},{name:"user",coerce:null,optional:!1}],scopes:["notify:read"],idempotent:!0,isQuery:!1,summary:"List the calling org's notification preferences (RLS-scoped)."},{key:"notify.preferences.setDigestCadence",commandPath:["notify","preferences","setDigestCadence"],opId:"PUT /v1/notifications/preferences/digest",method:"PUT",pattern:"/v1/notifications/preferences/digest",pathParams:[],flags:[{name:"appId",coerce:null,optional:!1},{name:"user",coerce:null,optional:!1},{name:"channel",coerce:null,optional:!1,choices:["email","sms","push","inapp","slack"]},{name:"cadence",coerce:null,optional:!0,choices:["hourly","daily"]}],scopes:["notify:write"],idempotent:!0,isQuery:!1,summary:"Set (or clear, by omitting cadence) the per-channel digest cadence."},{key:"notify.preferences.setGlobalMute",commandPath:["notify","preferences","setGlobalMute"],opId:"PUT /v1/notifications/preferences/global-mute",method:"PUT",pattern:"/v1/notifications/preferences/global-mute",pathParams:[],flags:[{name:"appId",coerce:null,optional:!1},{name:"user",coerce:null,optional:!1},{name:"globalMute",coerce:"boolean",optional:!1}],scopes:["notify:write"],idempotent:!0,isQuery:!1,summary:"Set the recipient's global mute (the dashboard's master enable/disable + unsubscribe-all)."},{key:"notify.preferences.setQuietHours",commandPath:["notify","preferences","setQuietHours"],opId:"PUT /v1/notifications/preferences/quiet-hours",method:"PUT",pattern:"/v1/notifications/preferences/quiet-hours",pathParams:[],flags:[{name:"appId",coerce:null,optional:!1},{name:"user",coerce:null,optional:!1},{name:"startHour",coerce:"number",optional:!0},{name:"endHour",coerce:"number",optional:!0}],scopes:["notify:write"],idempotent:!0,isQuery:!1,summary:"Set (or clear, by omitting both hours) the recipient's quiet-hours window."},{key:"notify.preferences.upsert",commandPath:["notify","preferences","upsert"],opId:"PUT /v1/notifications/preferences",method:"PUT",pattern:"/v1/notifications/preferences",pathParams:[],flags:[{name:"appId",coerce:null,optional:!1},{name:"user",coerce:null,optional:!1},{name:"typeSlug",coerce:null,optional:!0},{name:"channel",coerce:null,optional:!0,choices:["email","sms","push","inapp","slack"]},{name:"optIn",coerce:"boolean",optional:!1}],scopes:["notify:write"],idempotent:!0,isQuery:!1,summary:"Upsert one notification preference row (per-type / per-channel opt-in)."},{key:"notify.summary.get",commandPath:["notify","summary","get"],opId:"GET /v1/notifications/summary",method:"GET",pattern:"/v1/notifications/summary",pathParams:[],flags:[{name:"appId",coerce:null,optional:!1},{name:"user",coerce:null,optional:!1}],scopes:["notify:read"],idempotent:!0,isQuery:!1,summary:"Get the calling org's unread notification count (RLS-scoped)."},{key:"notify.templates.create",commandPath:["notify","templates","create"],opId:"POST /v1/notifications/templates",method:"POST",pattern:"/v1/notifications/templates",pathParams:[],flags:[{name:"appId",coerce:null,optional:!1},{name:"typeSlug",coerce:null,optional:!1},{name:"locale",coerce:null,optional:!1},{name:"channel",coerce:null,optional:!1,choices:["email","sms","push","inapp","slack"]},{name:"version",coerce:"number",optional:!1},{name:"subject",coerce:null,optional:!0},{name:"previewText",coerce:null,optional:!0},{name:"bodyMarkdown",coerce:null,optional:!1}],scopes:["notify:write"],idempotent:!0,isQuery:!1,summary:"Create a notification template for the org/app (wording only: subject, preview text, markdown body)."},{key:"notify.templates.get",commandPath:["notify","templates","get"],opId:"GET /v1/notifications/templates/:gid",method:"GET",pattern:"/v1/notifications/templates/:gid",pathParams:[{name:"gid",key:"gid"}],flags:[{name:"appId",coerce:null,optional:!1}],scopes:["notify:read"],idempotent:!0,isQuery:!1,summary:"Get one notification template by gid (RLS-scoped)."},{key:"notify.templates.list",commandPath:["notify","templates","list"],opId:"GET /v1/notifications/templates",method:"GET",pattern:"/v1/notifications/templates",pathParams:[],flags:[{name:"appId",coerce:null,optional:!1},{name:"typeSlug",coerce:null,optional:!0},{name:"includeRetired",coerce:"boolean",optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["notify:read"],idempotent:!0,isQuery:!1,summary:"List the calling org/app's notification templates (RLS-scoped)."},{key:"notify.templates.preview",commandPath:["notify","templates","preview"],opId:"POST /v1/notifications/templates/preview",method:"POST",pattern:"/v1/notifications/templates/preview",pathParams:[],flags:[{name:"appId",coerce:null,optional:!1},{name:"typeSlug",coerce:null,optional:!1},{name:"channel",coerce:null,optional:!1,choices:["email","sms","push","inapp","slack"]},{name:"locale",coerce:null,optional:!0},{name:"vars",coerce:"json",optional:!1},{name:"catalogDefaultLocale",coerce:null,optional:!0}],scopes:["notify:read"],idempotent:!0,isQuery:!1,summary:"Render the template the dispatcher would pick for a type/channel/locale, without sending."},{key:"notify.templates.retire",commandPath:["notify","templates","retire"],opId:"POST /v1/notifications/templates/:gid/retire",method:"POST",pattern:"/v1/notifications/templates/:gid/retire",pathParams:[{name:"gid",key:"gid"}],flags:[{name:"appId",coerce:null,optional:!1}],scopes:["notify:write"],idempotent:!0,isQuery:!1,summary:"Retire (archive) one notification template."},{key:"notify.templates.sendTest",commandPath:["notify","templates","sendTest"],opId:"POST /v1/notifications/templates/:gid/test-send",method:"POST",pattern:"/v1/notifications/templates/:gid/test-send",pathParams:[{name:"gid",key:"gid"}],flags:[{name:"appId",coerce:null,optional:!1},{name:"channel",coerce:null,optional:!0}],scopes:["notify:read","notify:write"],idempotent:!0,isQuery:!1,summary:"Send a test of one notification template to the calling principal: one in-app inbox row and one dispatch record, both tagged test (real render, never the resolver)."},{key:"notify.templates.update",commandPath:["notify","templates","update"],opId:"PATCH /v1/notifications/templates/:gid",method:"PATCH",pattern:"/v1/notifications/templates/:gid",pathParams:[{name:"gid",key:"gid"}],flags:[{name:"appId",coerce:null,optional:!1},{name:"subject",coerce:null,optional:!0},{name:"previewText",coerce:null,optional:!0},{name:"bodyMarkdown",coerce:null,optional:!0}],scopes:["notify:write"],idempotent:!0,isQuery:!1,summary:"Update one notification template's wording (subject, preview text, markdown body)."},{key:"notify.types.get",commandPath:["notify","types","get"],opId:"GET /v1/notifications/types/:typeSlug",method:"GET",pattern:"/v1/notifications/types/:typeSlug",pathParams:[{name:"typeSlug",key:"typeSlug"}],flags:[{name:"appId",coerce:null,optional:!1},{name:"version",coerce:"number",optional:!0}],scopes:["notify:read"],idempotent:!0,isQuery:!1,summary:"Get one notification type by slug (latest active, or an exact version)."},{key:"notify.types.list",commandPath:["notify","types","list"],opId:"GET /v1/notifications/types",method:"GET",pattern:"/v1/notifications/types",pathParams:[],flags:[{name:"appId",coerce:null,optional:!1},{name:"limit",coerce:"number",optional:!0}],scopes:["notify:read"],idempotent:!0,isQuery:!1,summary:"List the calling org's notification type catalog (RLS-scoped)."},{key:"tenants.actAs.actAs",commandPath:["tenants","actAs","actAs"],opId:"POST /v1/tenants/act-as",method:"POST",pattern:"/v1/tenants/act-as",pathParams:[],flags:[{name:"externalId",coerce:null,optional:!1},{name:"scopes",coerce:"json",optional:!0}],scopes:["tenants:write"],idempotent:!1,isQuery:!1,summary:"Exchange the caller's credential for a short-lived, DPoP-bound, tenant-pinned token."},{key:"tenants.tenants.activate",commandPath:["tenants","tenants","activate"],opId:"POST /v1/tenants/:tenantId/activate",method:"POST",pattern:"/v1/tenants/:tenantId/activate",pathParams:[{name:"tenantId",key:"tenantId"}],flags:[],scopes:["tenants:write"],idempotent:!0,isQuery:!1,summary:"Activate a tenant \u2014 promotes pending/suspended to active (mint-eligible)."},{key:"tenants.tenants.close",commandPath:["tenants","tenants","close"],opId:"POST /v1/tenants/:tenantId/close",method:"POST",pattern:"/v1/tenants/:tenantId/close",pathParams:[{name:"tenantId",key:"tenantId"}],flags:[],scopes:["tenants:admin"],idempotent:!0,isQuery:!1,summary:"Close a tenant (terminal), revoke every live embed session, and answer only once every Primus engine that may serve its tokens holds the close."},{key:"tenants.tenants.list",commandPath:["tenants","tenants","list"],opId:"GET /v1/tenants",method:"GET",pattern:"/v1/tenants",pathParams:[],flags:[{name:"platformId",coerce:null,optional:!0},{name:"status",coerce:null,optional:!0,choices:["pending","active","suspended","closed","inactive"]}],scopes:["tenants:read"],idempotent:!0,isQuery:!0,summary:"List the calling org's platform tenants (optionally by platform/status)."},{key:"tenants.tenants.suspend",commandPath:["tenants","tenants","suspend"],opId:"POST /v1/tenants/:tenantId/suspend",method:"POST",pattern:"/v1/tenants/:tenantId/suspend",pathParams:[{name:"tenantId",key:"tenantId"}],flags:[],scopes:["tenants:write"],idempotent:!0,isQuery:!1,summary:"Suspend a tenant \u2014 revokes its Primus/embed minting and every live embed session."},{key:"tenants.tenants.upsert",commandPath:["tenants","tenants","upsert"],opId:"POST /v1/tenants",method:"POST",pattern:"/v1/tenants",pathParams:[],flags:[{name:"externalId",coerce:null,optional:!1},{name:"displayName",coerce:null,optional:!0},{name:"metadata",coerce:"json",optional:!0}],scopes:["tenants:write"],idempotent:!0,isQuery:!1,summary:"Create or update (idempotent) a platform tenant on the natural key; the platform is the caller's own (derived from the app binding), never an input."}]};var m={contentHash:"fbaf3ad00789df04df118c237e8d8971a9f50d494649bd96b87bbe2c957f5611",generatedAt:"contract-fbaf3ad00789df04df118c237e8d8971a9f50d494649bd96b87bbe2c957f5611",commands:[{key:"pipes.agentExecutions.getAgentExecution",commandPath:["pipes","agentExecutions","getAgentExecution"],opId:"GET /v1/pipes/agent-executions/:agentExecutionGid",method:"GET",pattern:"/v1/pipes/agent-executions/:agentExecutionGid",pathParams:[{name:"agentExecutionGid",key:"agentExecutionGid"}],flags:[],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a single agent-driven workflow execution by GID."},{key:"pipes.agentExecutions.listAgentExecutions",commandPath:["pipes","agentExecutions","listAgentExecutions"],opId:"GET /v1/pipes/agent-executions",method:"GET",pattern:"/v1/pipes/agent-executions",pathParams:[],flags:[{name:"workflowGid",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0}],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"List agent-driven workflow executions (optional workflow filter)."},{key:"pipes.analyses.getAnalysis",commandPath:["pipes","analyses","getAnalysis"],opId:"GET /v1/pipes/analyses/:analysisGid",method:"GET",pattern:"/v1/pipes/analyses/:analysisGid",pathParams:[{name:"analysisGid",key:"analysisGid"}],flags:[],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a single Analyze-stage analysis by GID."},{key:"pipes.analyses.listAnalyses",commandPath:["pipes","analyses","listAnalyses"],opId:"GET /v1/pipes/analyses",method:"GET",pattern:"/v1/pipes/analyses",pathParams:[],flags:[{name:"workflowGid",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0}],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"List Analyze-stage analyses (optional workflow filter)."},{key:"pipes.connectors.deleteCredential",commandPath:["pipes","connectors","deleteCredential"],opId:"DELETE /v1/pipes/credentials/:credentialId",method:"DELETE",pattern:"/v1/pipes/credentials/:credentialId",pathParams:[{name:"credentialGid",key:"credentialId"}],flags:[],scopes:["credentials:admin"],idempotent:!0,isQuery:!1,summary:"Delete a connector credential. DESTRUCTIVE: requires the admin verb."},{key:"pipes.connectors.listCredentials",commandPath:["pipes","connectors","listCredentials"],opId:"GET /v1/pipes/credentials",method:"GET",pattern:"/v1/pipes/credentials",pathParams:[],flags:[{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0}],scopes:["credentials:read"],idempotent:!1,isQuery:!0,summary:"List stored credentials (metadata only \u2014 never the secret)."},{key:"pipes.connectors.revokeCredential",commandPath:["pipes","connectors","revokeCredential"],opId:"POST /v1/pipes/credentials/:credentialId/revoke",method:"POST",pattern:"/v1/pipes/credentials/:credentialId/revoke",pathParams:[{name:"credentialGid",key:"credentialId"}],flags:[],scopes:["credentials:admin"],idempotent:!0,isQuery:!1,summary:"Revoke a credential (Zapier-style: unusable, secret unretrievable). DESTRUCTIVE: requires the admin verb."},{key:"pipes.connectors.rotateCredential",commandPath:["pipes","connectors","rotateCredential"],opId:"POST /v1/pipes/credentials/:credentialId/rotate",method:"POST",pattern:"/v1/pipes/credentials/:credentialId/rotate",pathParams:[{name:"credentialGid",key:"credentialId"}],flags:[{name:"newSecret",coerce:null,optional:!1}],scopes:["credentials:write"],idempotent:!0,isQuery:!1,summary:"Rotate a credential's secret (vault re-encrypt)."},{key:"pipes.connectors.storeCredential",commandPath:["pipes","connectors","storeCredential"],opId:"POST /v1/pipes/credentials",method:"POST",pattern:"/v1/pipes/credentials",pathParams:[],flags:[{name:"connectorId",coerce:null,optional:!1},{name:"name",coerce:null,optional:!1},{name:"auth",coerce:"json",optional:!1},{name:"secret",coerce:null,optional:!0}],scopes:["credentials:write"],idempotent:!0,isQuery:!1,summary:"Store a connector credential (vault-encrypted secret)."},{key:"pipes.connectors.testCredentialPublic",commandPath:["pipes","connectors","testCredentialPublic"],opId:"POST /v1/pipes/credentials/test",method:"POST",pattern:"/v1/pipes/credentials/test",pathParams:[],flags:[{name:"connectorId",coerce:null,optional:!1},{name:"apiKey",coerce:null,optional:!1}],scopes:["credentials:write"],idempotent:!1,isQuery:!1,summary:"Test a connector credential (connectorId + apiKey in body)."},{key:"pipes.connectors.updateCredential",commandPath:["pipes","connectors","updateCredential"],opId:"PATCH /v1/pipes/credentials/:credentialId",method:"PATCH",pattern:"/v1/pipes/credentials/:credentialId",pathParams:[{name:"credentialGid",key:"credentialId"}],flags:[{name:"name",coerce:null,optional:!0},{name:"auth",coerce:"json",optional:!0}],scopes:["credentials:write"],idempotent:!1,isQuery:!1,summary:"Update credential metadata/auth (no secret rotation here)."},{key:"pipes.decisions.approveDecision",commandPath:["pipes","decisions","approveDecision"],opId:"POST /v1/pipes/decisions/:decisionGid/approve",method:"POST",pattern:"/v1/pipes/decisions/:decisionGid/approve",pathParams:[{name:"decisionGid",key:"decisionGid"}],flags:[{name:"rationale",coerce:null,optional:!0}],scopes:["pipes:write"],idempotent:!0,isQuery:!1,summary:"Approve a pending AI decision (idempotent \u2014 first actor preserved)."},{key:"pipes.decisions.getDecision",commandPath:["pipes","decisions","getDecision"],opId:"GET /v1/pipes/decisions/:decisionGid",method:"GET",pattern:"/v1/pipes/decisions/:decisionGid",pathParams:[{name:"decisionGid",key:"decisionGid"}],flags:[],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a single AI decision checkpoint by GID."},{key:"pipes.decisions.listDecisions",commandPath:["pipes","decisions","listDecisions"],opId:"GET /v1/pipes/decisions",method:"GET",pattern:"/v1/pipes/decisions",pathParams:[],flags:[{name:"gateState",coerce:null,optional:!0,choices:["auto-approved","pending-human-approval","approved","rejected","expired"]},{name:"workflowGid",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0}],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"List AI decision checkpoints (optional gateState/workflow filter)."},{key:"pipes.decisions.rejectDecision",commandPath:["pipes","decisions","rejectDecision"],opId:"POST /v1/pipes/decisions/:decisionGid/reject",method:"POST",pattern:"/v1/pipes/decisions/:decisionGid/reject",pathParams:[{name:"decisionGid",key:"decisionGid"}],flags:[{name:"rationale",coerce:null,optional:!0}],scopes:["pipes:write"],idempotent:!0,isQuery:!1,summary:"Reject a pending AI decision (idempotent)."},{key:"pipes.dlq.discardDlqEntry",commandPath:["pipes","dlq","discardDlqEntry"],opId:"POST /v1/pipes/dlq/:dlqEntryId/discard",method:"POST",pattern:"/v1/pipes/dlq/:dlqEntryId/discard",pathParams:[{name:"dlqEntryId",key:"dlqEntryId"}],flags:[],scopes:["pipes:write"],idempotent:!0,isQuery:!1,summary:"Discard an execution DLQ entry (idempotent \u2014 already-discarded is a no-op)."},{key:"pipes.dlq.getDlqEntry",commandPath:["pipes","dlq","getDlqEntry"],opId:"GET /v1/pipes/dlq/:dlqEntryId",method:"GET",pattern:"/v1/pipes/dlq/:dlqEntryId",pathParams:[{name:"dlqEntryId",key:"dlqEntryId"}],flags:[],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a single execution DLQ entry by id (RLS-scoped), or 404."},{key:"pipes.dlq.getDlqStats",commandPath:["pipes","dlq","getDlqStats"],opId:"GET /v1/pipes/dlq/stats",method:"GET",pattern:"/v1/pipes/dlq/stats",pathParams:[],flags:[],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"Aggregate execution DLQ stats (counts by status) for the caller's app."},{key:"pipes.dlq.listDlqEntries",commandPath:["pipes","dlq","listDlqEntries"],opId:"GET /v1/pipes/dlq",method:"GET",pattern:"/v1/pipes/dlq",pathParams:[],flags:[{name:"status",coerce:null,optional:!0,choices:["pending","retrying","resolved","discarded","exhausted"]},{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0}],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"List execution DLQ entries for the caller's app (optional status filter)."},{key:"pipes.executions.backfillWorkflow",commandPath:["pipes","executions","backfillWorkflow"],opId:"POST /v1/pipes/workflows/:workflowId/backfill",method:"POST",pattern:"/v1/pipes/workflows/:workflowId/backfill",pathParams:[{name:"workflowGid",key:"workflowId"}],flags:[{name:"from",coerce:null,optional:!1},{name:"to",coerce:null,optional:!1},{name:"chunkDays",coerce:"number",optional:!0}],scopes:["pipes:execute"],idempotent:!0,isQuery:!1,summary:"Backfill a pipe over a date range: one run per chunk, each handed its window, at most once per window."},{key:"pipes.executions.cancelExecution",commandPath:["pipes","executions","cancelExecution"],opId:"POST /v1/pipes/executions/:executionId/cancel",method:"POST",pattern:"/v1/pipes/executions/:executionId/cancel",pathParams:[{name:"executionGid",key:"executionId"}],flags:[],scopes:["pipes:execute"],idempotent:!0,isQuery:!1,summary:"Cancel a running execution."},{key:"pipes.executions.executeNode",commandPath:["pipes","executions","executeNode"],opId:"POST /v1/pipes/workflows/:workflowId/nodes/:nodeId/execute",method:"POST",pattern:"/v1/pipes/workflows/:workflowId/nodes/:nodeId/execute",pathParams:[{name:"workflowGid",key:"workflowId"},{name:"nodeId",key:"nodeId"}],flags:[{name:"triggerData",coerce:"json",optional:!0},{name:"upstreamOutputs",coerce:"json",optional:!0},{name:"variables",coerce:"json",optional:!0},{name:"idempotencyKey",coerce:null,optional:!0}],scopes:["pipes:execute"],idempotent:!1,isQuery:!1,summary:"Execute a single workflow node in isolation (editor test-node)."},{key:"pipes.executions.getExecution",commandPath:["pipes","executions","getExecution"],opId:"GET /v1/pipes/executions/:executionId",method:"GET",pattern:"/v1/pipes/executions/:executionId",pathParams:[{name:"executionGid",key:"executionId"}],flags:[],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a single execution by GID (RLS-scoped), or 404."},{key:"pipes.executions.getExecutionRate",commandPath:["pipes","executions","getExecutionRate"],opId:"GET /v1/pipes/executions/rate",method:"GET",pattern:"/v1/pipes/executions/rate",pathParams:[],flags:[],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"Runs per second over the last 24 hours for the caller's app and environment, with one point per hour."},{key:"pipes.executions.getExecutionStatus",commandPath:["pipes","executions","getExecutionStatus"],opId:"GET /v1/pipes/executions/:executionId/status",method:"GET",pattern:"/v1/pipes/executions/:executionId/status",pathParams:[{name:"executionGid",key:"executionId"}],flags:[],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"Retrieve an execution's status + per-node progress."},{key:"pipes.executions.listExecutions",commandPath:["pipes","executions","listExecutions"],opId:"GET /v1/pipes/workflows/:workflowId/executions",method:"GET",pattern:"/v1/pipes/workflows/:workflowId/executions",pathParams:[{name:"workflowGid",key:"workflowId"}],flags:[{name:"status",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0}],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"List executions for a workflow (RLS-scoped run history)."},{key:"pipes.executions.triggerExecution",commandPath:["pipes","executions","triggerExecution"],opId:"POST /v1/pipes/workflows/:workflowId/trigger",method:"POST",pattern:"/v1/pipes/workflows/:workflowId/trigger",pathParams:[{name:"workflowGid",key:"workflowId"}],flags:[{name:"triggeredBy",coerce:null,optional:!0},{name:"triggerData",coerce:"json",optional:!0},{name:"idempotencyKey",coerce:null,optional:!0}],scopes:["pipes:execute"],idempotent:!0,isQuery:!1,summary:"Trigger a workflow execution (manual run)."},{key:"pipes.governance.addToAllowlist",commandPath:["pipes","governance","addToAllowlist"],opId:"POST /v1/pipes/governance/allowlist",method:"POST",pattern:"/v1/pipes/governance/allowlist",pathParams:[],flags:[{name:"connectorIds",coerce:"json",optional:!1}],scopes:["pipes:write"],idempotent:!0,isQuery:!1,summary:"Add connector ids to the governance allowlist."},{key:"pipes.governance.addToBlocklist",commandPath:["pipes","governance","addToBlocklist"],opId:"POST /v1/pipes/governance/blocklist",method:"POST",pattern:"/v1/pipes/governance/blocklist",pathParams:[],flags:[{name:"connectorIds",coerce:"json",optional:!1}],scopes:["pipes:write"],idempotent:!0,isQuery:!1,summary:"Add connector ids to the governance blocklist."},{key:"pipes.governance.approveConnectorRequest",commandPath:["pipes","governance","approveConnectorRequest"],opId:"POST /v1/pipes/governance/approvals/:requestId/approve",method:"POST",pattern:"/v1/pipes/governance/approvals/:requestId/approve",pathParams:[{name:"requestId",key:"requestId"}],flags:[{name:"notes",coerce:null,optional:!0}],scopes:["pipes:admin"],idempotent:!1,isQuery:!1,summary:"Approve a connector approval request."},{key:"pipes.governance.getAgentReviewRules",commandPath:["pipes","governance","getAgentReviewRules"],opId:"GET /v1/pipes/governance/agent-review",method:"GET",pattern:"/v1/pipes/governance/agent-review",pathParams:[],flags:[],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"Get the scopes in which a person must review the pipes agents make (none by default)."},{key:"pipes.governance.getGovernanceSettings",commandPath:["pipes","governance","getGovernanceSettings"],opId:"GET /v1/pipes/governance",method:"GET",pattern:"/v1/pipes/governance",pathParams:[],flags:[],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"Get connector governance settings (mode, allow/block lists, restrictions)."},{key:"pipes.governance.listApprovalRequests",commandPath:["pipes","governance","listApprovalRequests"],opId:"GET /v1/pipes/governance/approvals",method:"GET",pattern:"/v1/pipes/governance/approvals",pathParams:[],flags:[{name:"status",coerce:null,optional:!0,choices:["pending","approved","rejected","revoked"]},{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0}],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"List connector approval requests (optional status filter)."},{key:"pipes.governance.listGovernanceAuditLogs",commandPath:["pipes","governance","listGovernanceAuditLogs"],opId:"GET /v1/pipes/governance/audit",method:"GET",pattern:"/v1/pipes/governance/audit",pathParams:[],flags:[{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0},{name:"eventType",coerce:null,optional:!0},{name:"targetType",coerce:null,optional:!0},{name:"targetId",coerce:null,optional:!0},{name:"actorId",coerce:null,optional:!0}],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"List governance audit logs (optional filters)."},{key:"pipes.governance.listPendingApprovals",commandPath:["pipes","governance","listPendingApprovals"],opId:"GET /v1/pipes/governance/approvals/pending",method:"GET",pattern:"/v1/pipes/governance/approvals/pending",pathParams:[],flags:[{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0}],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"List pending connector approval requests."},{key:"pipes.governance.rejectConnectorRequest",commandPath:["pipes","governance","rejectConnectorRequest"],opId:"POST /v1/pipes/governance/approvals/:requestId/reject",method:"POST",pattern:"/v1/pipes/governance/approvals/:requestId/reject",pathParams:[{name:"requestId",key:"requestId"}],flags:[{name:"notes",coerce:null,optional:!0}],scopes:["pipes:admin"],idempotent:!1,isQuery:!1,summary:"Reject a connector approval request."},{key:"pipes.governance.removeFromAllowlist",commandPath:["pipes","governance","removeFromAllowlist"],opId:"DELETE /v1/pipes/governance/allowlist",method:"DELETE",pattern:"/v1/pipes/governance/allowlist",pathParams:[],flags:[{name:"connectorIds",coerce:"json",optional:!1}],scopes:["pipes:write"],idempotent:!0,isQuery:!1,summary:"Remove connector ids from the governance allowlist."},{key:"pipes.governance.removeFromBlocklist",commandPath:["pipes","governance","removeFromBlocklist"],opId:"DELETE /v1/pipes/governance/blocklist",method:"DELETE",pattern:"/v1/pipes/governance/blocklist",pathParams:[],flags:[{name:"connectorIds",coerce:"json",optional:!1}],scopes:["pipes:write"],idempotent:!0,isQuery:!1,summary:"Remove connector ids from the governance blocklist."},{key:"pipes.governance.requestConnectorApproval",commandPath:["pipes","governance","requestConnectorApproval"],opId:"POST /v1/pipes/governance/approvals",method:"POST",pattern:"/v1/pipes/governance/approvals",pathParams:[],flags:[{name:"connectorGid",coerce:null,optional:!1},{name:"reason",coerce:null,optional:!0}],scopes:["pipes:write"],idempotent:!1,isQuery:!1,summary:"Request approval to use a connector."},{key:"pipes.governance.revokeConnectorApproval",commandPath:["pipes","governance","revokeConnectorApproval"],opId:"POST /v1/pipes/governance/connectors/:connectorGid/revoke",method:"POST",pattern:"/v1/pipes/governance/connectors/:connectorGid/revoke",pathParams:[{name:"connectorGid",key:"connectorGid"}],flags:[{name:"reason",coerce:null,optional:!0}],scopes:["pipes:admin"],idempotent:!0,isQuery:!1,summary:"Revoke a previously approved connector."},{key:"pipes.governance.setAgentReviewRules",commandPath:["pipes","governance","setAgentReviewRules"],opId:"PUT /v1/pipes/governance/agent-review",method:"PUT",pattern:"/v1/pipes/governance/agent-review",pathParams:[],flags:[{name:"rules",coerce:"json",optional:!1}],scopes:["pipes:admin"],idempotent:!0,isQuery:!1,summary:"Set the scopes in which a person must review the pipes agents make (organization admin)."},{key:"pipes.governance.updateGovernanceSettings",commandPath:["pipes","governance","updateGovernanceSettings"],opId:"PATCH /v1/pipes/governance",method:"PATCH",pattern:"/v1/pipes/governance",pathParams:[],flags:[{name:"mode",coerce:null,optional:!0,choices:["open","allowlist","approval_required"]},{name:"allowedConnectors",coerce:"json",optional:!0},{name:"blockedConnectors",coerce:"json",optional:!0},{name:"allowedTiers",coerce:"json",optional:!0},{name:"allowedCategories",coerce:"json",optional:!0},{name:"requireFirstUseApproval",coerce:"boolean",optional:!0},{name:"autoApproveInternalConnectors",coerce:"boolean",optional:!0},{name:"maxCredentialsPerConnector",coerce:"number",optional:!0},{name:"auditConfig",coerce:"json",optional:!0}],scopes:["pipes:write"],idempotent:!1,isQuery:!1,summary:"Update connector governance settings (mode, restrictions, audit config)."},{key:"pipes.pipeBeliefs.getBelief",commandPath:["pipes","pipeBeliefs","getBelief"],opId:"GET /v1/pipes/beliefs/:seriesName",method:"GET",pattern:"/v1/pipes/beliefs/:seriesName",pathParams:[{name:"seriesName",key:"seriesName"}],flags:[{name:"subject",coerce:null,optional:!0}],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"Read the latest version of an envelope series (optionally of one subject)."},{key:"pipes.pipeBeliefs.listBeliefVersions",commandPath:["pipes","pipeBeliefs","listBeliefVersions"],opId:"GET /v1/pipes/beliefs/:seriesName/versions",method:"GET",pattern:"/v1/pipes/beliefs/:seriesName/versions",pathParams:[{name:"seriesName",key:"seriesName"}],flags:[{name:"subject",coerce:null,optional:!0},{name:"beforeVersion",coerce:"number",optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"List the versions of an envelope series, newest first, in pages from a version back."},{key:"pipes.pipeCharts.getChartPoints",commandPath:["pipes","pipeCharts","getChartPoints"],opId:"GET /v1/pipes/workflows/:workflowId/charts/:chartId/points",method:"GET",pattern:"/v1/pipes/workflows/:workflowId/charts/:chartId/points",pathParams:[{name:"workflowGid",key:"workflowId"},{name:"chartId",key:"chartId"}],flags:[],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"Read a chart's points: one per series version (the latest, or the newest `window`), oldest first."},{key:"pipes.pipeStudies.getStudy",commandPath:["pipes","pipeStudies","getStudy"],opId:"GET /v1/pipes/studies/:studyGid",method:"GET",pattern:"/v1/pipes/studies/:studyGid",pathParams:[{name:"studyGid",key:"studyGid"}],flags:[],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"Retrieve one study (the record of a Study step's run) by its id."},{key:"pipes.pipeStudies.listStudies",commandPath:["pipes","pipeStudies","listStudies"],opId:"GET /v1/pipes/studies",method:"GET",pattern:"/v1/pipes/studies",pathParams:[],flags:[{name:"workflowGid",coerce:null,optional:!0},{name:"executionGid",coerce:null,optional:!0},{name:"status",coerce:null,optional:!0,choices:["running","succeeded","failed"]},{name:"limit",coerce:"number",optional:!0}],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"List studies, newest first: the studies of a pipe (its run view) or of the organization (its ledger)."},{key:"pipes.recordDlq.discardRecordDlqEntry",commandPath:["pipes","recordDlq","discardRecordDlqEntry"],opId:"POST /v1/pipes/record-dlq/:entryGid/discard",method:"POST",pattern:"/v1/pipes/record-dlq/:entryGid/discard",pathParams:[{name:"entryGid",key:"entryGid"}],flags:[{name:"reason",coerce:null,optional:!0}],scopes:["pipes:write"],idempotent:!0,isQuery:!1,summary:"Discard a record-DLQ entry (idempotent \u2014 preserves first discardedBy/discardedAt)."},{key:"pipes.recordDlq.getRecordDlqEntry",commandPath:["pipes","recordDlq","getRecordDlqEntry"],opId:"GET /v1/pipes/record-dlq/:entryGid",method:"GET",pattern:"/v1/pipes/record-dlq/:entryGid",pathParams:[{name:"entryGid",key:"entryGid"}],flags:[],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a single record-DLQ entry by GID (RLS-scoped), or 404."},{key:"pipes.recordDlq.getRecordDlqStats",commandPath:["pipes","recordDlq","getRecordDlqStats"],opId:"GET /v1/pipes/record-dlq/stats",method:"GET",pattern:"/v1/pipes/record-dlq/stats",pathParams:[],flags:[{name:"workflowGid",coerce:null,optional:!0}],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"Aggregate record-DLQ stats (counts by status) for the caller's app."},{key:"pipes.recordDlq.listRecordDlq",commandPath:["pipes","recordDlq","listRecordDlq"],opId:"GET /v1/pipes/record-dlq",method:"GET",pattern:"/v1/pipes/record-dlq",pathParams:[],flags:[{name:"workflowGid",coerce:null,optional:!0},{name:"status",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0}],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"List record-level DLQ entries for the caller's app (optional workflow/status filter)."},{key:"pipes.recordDlq.replayRecordDlqEntry",commandPath:["pipes","recordDlq","replayRecordDlqEntry"],opId:"POST /v1/pipes/record-dlq/:entryGid/replay",method:"POST",pattern:"/v1/pipes/record-dlq/:entryGid/replay",pathParams:[{name:"entryGid",key:"entryGid"}],flags:[],scopes:["pipes:write"],idempotent:!1,isQuery:!1,summary:"Replay a record-DLQ entry (re-run the failed record)."},{key:"pipes.tools.getTool",commandPath:["pipes","tools","getTool"],opId:"GET /v1/pipes/tools/:toolName",method:"GET",pattern:"/v1/pipes/tools/:toolName",pathParams:[{name:"toolName",key:"toolName"}],flags:[],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a single Tool Registry entry by tool name."},{key:"pipes.tools.listTools",commandPath:["pipes","tools","listTools"],opId:"GET /v1/pipes/tools",method:"GET",pattern:"/v1/pipes/tools",pathParams:[],flags:[{name:"stage",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0}],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"List Tool Registry entries (optional stage filter)."},{key:"pipes.watermarks.getWatermark",commandPath:["pipes","watermarks","getWatermark"],opId:"GET /v1/pipes/watermarks/:sourceId",method:"GET",pattern:"/v1/pipes/watermarks/:sourceId",pathParams:[{name:"sourceId",key:"sourceId"}],flags:[{name:"workflowGid",coerce:null,optional:!1}],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"Retrieve the incremental-extract watermark cursor for a source."},{key:"pipes.watermarks.listWatermarks",commandPath:["pipes","watermarks","listWatermarks"],opId:"GET /v1/pipes/watermarks",method:"GET",pattern:"/v1/pipes/watermarks",pathParams:[],flags:[{name:"workflowGid",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0}],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"List watermark cursors (optional workflow filter)."},{key:"pipes.watermarks.resetWatermark",commandPath:["pipes","watermarks","resetWatermark"],opId:"POST /v1/pipes/watermarks/:watermarkGid/reset",method:"POST",pattern:"/v1/pipes/watermarks/:watermarkGid/reset",pathParams:[{name:"watermarkGid",key:"watermarkGid"}],flags:[{name:"newValue",coerce:null,optional:!0},{name:"reason",coerce:null,optional:!0}],scopes:["pipes:write"],idempotent:!0,isQuery:!1,summary:"Reset a watermark cursor (idempotent \u2014 prior audit chain preserved)."},{key:"pipes.webhooks.getTriggerUrl",commandPath:["pipes","webhooks","getTriggerUrl"],opId:"GET /v1/pipes/webhook-triggers/:workflowId",method:"GET",pattern:"/v1/pipes/webhook-triggers/:workflowId",pathParams:[{name:"workflowGid",key:"workflowId"}],flags:[],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"Get the trigger URL, HMAC secret, and config for a webhook workflow."},{key:"pipes.webhooks.listWebhookWorkflows",commandPath:["pipes","webhooks","listWebhookWorkflows"],opId:"GET /v1/pipes/webhook-triggers",method:"GET",pattern:"/v1/pipes/webhook-triggers",pathParams:[],flags:[{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0}],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"List webhook-triggered workflows for the caller's app."},{key:"pipes.webhooks.rotateWebhookSecret",commandPath:["pipes","webhooks","rotateWebhookSecret"],opId:"POST /v1/pipes/webhook-triggers/:workflowId/rotate-secret",method:"POST",pattern:"/v1/pipes/webhook-triggers/:workflowId/rotate-secret",pathParams:[{name:"workflowGid",key:"workflowId"}],flags:[],scopes:["pipes:write"],idempotent:!1,isQuery:!1,summary:"Rotate a webhook workflow's HMAC secret (returns the new secret)."},{key:"pipes.workflows.activateWorkflow",commandPath:["pipes","workflows","activateWorkflow"],opId:"POST /v1/pipes/workflows/:workflowId/activate",method:"POST",pattern:"/v1/pipes/workflows/:workflowId/activate",pathParams:[{name:"workflowGid",key:"workflowId"}],flags:[],scopes:["pipes:write"],idempotent:!1,isQuery:!1,summary:"Activate a paused or draft workflow."},{key:"pipes.workflows.archiveWorkflow",commandPath:["pipes","workflows","archiveWorkflow"],opId:"POST /v1/pipes/workflows/:workflowId/archive",method:"POST",pattern:"/v1/pipes/workflows/:workflowId/archive",pathParams:[{name:"workflowGid",key:"workflowId"}],flags:[],scopes:["pipes:write"],idempotent:!0,isQuery:!1,summary:"Archive a workflow (pause-then-archive if active)."},{key:"pipes.workflows.createWorkflow",commandPath:["pipes","workflows","createWorkflow"],opId:"POST /v1/pipes/workflows",method:"POST",pattern:"/v1/pipes/workflows",pathParams:[],flags:[{name:"name",coerce:null,optional:!1},{name:"description",coerce:null,optional:!0},{name:"definition",coerce:null,optional:!1},{name:"triggerConfig",coerce:null,optional:!1},{name:"requestReview",coerce:"boolean",optional:!0}],scopes:["pipes:write"],idempotent:!0,isQuery:!1,summary:"Create a Pipes workflow in an app."},{key:"pipes.workflows.deleteWorkflow",commandPath:["pipes","workflows","deleteWorkflow"],opId:"DELETE /v1/pipes/workflows/:workflowId",method:"DELETE",pattern:"/v1/pipes/workflows/:workflowId",pathParams:[{name:"workflowGid",key:"workflowId"}],flags:[],scopes:["pipes:admin"],idempotent:!0,isQuery:!1,summary:"Delete a workflow (RLS-scoped). DESTRUCTIVE: requires the admin verb."},{key:"pipes.workflows.getWorkflow",commandPath:["pipes","workflows","getWorkflow"],opId:"GET /v1/pipes/workflows/:workflowId",method:"GET",pattern:"/v1/pipes/workflows/:workflowId",pathParams:[{name:"workflowGid",key:"workflowId"}],flags:[],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a single workflow by GID (RLS-scoped), or 404."},{key:"pipes.workflows.getWorkflowDefinitionSchema",commandPath:["pipes","workflows","getWorkflowDefinitionSchema"],opId:"GET /v1/pipes/workflow-definitions/schema",method:"GET",pattern:"/v1/pipes/workflow-definitions/schema",pathParams:[],flags:[],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"Get the pipe-definition JSON Schema every create and update is validated against."},{key:"pipes.workflows.getWorkflowTriggerConfig",commandPath:["pipes","workflows","getWorkflowTriggerConfig"],opId:"GET /v1/pipes/workflows/:workflowId/trigger-config",method:"GET",pattern:"/v1/pipes/workflows/:workflowId/trigger-config",pathParams:[{name:"workflowGid",key:"workflowId"}],flags:[],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a workflow's trigger configuration ({ type, config }) as the workflow's read answers it (RLS-scoped), or 404."},{key:"pipes.workflows.listConnectors",commandPath:["pipes","workflows","listConnectors"],opId:"GET /v1/pipes/connectors",method:"GET",pattern:"/v1/pipes/connectors",pathParams:[],flags:[{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0}],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"List the connectors available to the caller's app (v1 allowlist)."},{key:"pipes.workflows.listWorkflows",commandPath:["pipes","workflows","listWorkflows"],opId:"GET /v1/pipes/workflows",method:"GET",pattern:"/v1/pipes/workflows",pathParams:[],flags:[{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0}],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"List workflows for the caller's app (RLS-scoped)."},{key:"pipes.workflows.pauseWorkflow",commandPath:["pipes","workflows","pauseWorkflow"],opId:"POST /v1/pipes/workflows/:workflowId/pause",method:"POST",pattern:"/v1/pipes/workflows/:workflowId/pause",pathParams:[{name:"workflowGid",key:"workflowId"}],flags:[],scopes:["pipes:write"],idempotent:!1,isQuery:!1,summary:"Pause an active workflow."},{key:"pipes.workflows.updateWorkflow",commandPath:["pipes","workflows","updateWorkflow"],opId:"PATCH /v1/pipes/workflows/:workflowId",method:"PATCH",pattern:"/v1/pipes/workflows/:workflowId",pathParams:[{name:"workflowGid",key:"workflowId"}],flags:[{name:"definition",coerce:null,optional:!1}],scopes:["pipes:write"],idempotent:!1,isQuery:!1,summary:"Update a workflow definition (nodes/edges); bumps the version."},{key:"pipes.workflows.updateWorkflowMeta",commandPath:["pipes","workflows","updateWorkflowMeta"],opId:"PATCH /v1/pipes/workflows/:workflowId/meta",method:"PATCH",pattern:"/v1/pipes/workflows/:workflowId/meta",pathParams:[{name:"workflowGid",key:"workflowId"}],flags:[{name:"name",coerce:null,optional:!0},{name:"description",coerce:null,optional:!0}],scopes:["pipes:write"],idempotent:!1,isQuery:!1,summary:"Update workflow metadata only (name, description)."},{key:"pipes.workflows.updateWorkflowTriggerConfig",commandPath:["pipes","workflows","updateWorkflowTriggerConfig"],opId:"PATCH /v1/pipes/workflows/:workflowId/trigger-config",method:"PATCH",pattern:"/v1/pipes/workflows/:workflowId/trigger-config",pathParams:[{name:"workflowGid",key:"workflowId"}],flags:[{name:"triggerConfig",coerce:null,optional:!1}],scopes:["pipes:write"],idempotent:!1,isQuery:!1,summary:"Update a workflow's trigger configuration."},{key:"pipes.workflows.validateWorkflowDefinition",commandPath:["pipes","workflows","validateWorkflowDefinition"],opId:"POST /v1/pipes/workflows/validate",method:"POST",pattern:"/v1/pipes/workflows/validate",pathParams:[],flags:[{name:"definition",coerce:null,optional:!1},{name:"triggerConfig",coerce:null,optional:!0}],scopes:["pipes:read"],idempotent:!1,isQuery:!0,summary:"Validate a pipe definition and trigger config without saving anything; an invalid one answers 400 PIPE_DEFINITION_INVALID with every reason."}]};var c=d(l());function p(e,t){return!1}s(p,"isOperatorDoor");function n(e){return!p(e.method,e.pattern)}s(n,"customerRow");async function g(){let e=c.CLI_COMMANDS;return{...e,commands:e.commands.filter(n)}}s(g,"loadPrimusCliCommands");function h(){let e=new Set(o.commands.map(t=>t.key));return i.commands.filter(t=>!e.has(t.key)&&n(t))}s(h,"adminExtraCommands");function y(){let e=new Set(o.commands.map(a=>a.key));return m.commands.filter(a=>!e.has(a.key)&&n(a))}s(y,"pipesExtraCommands");async function S(){let e=await g(),t=new Set(o.commands.map(a=>a.key));return[...e.commands,...h(),...y()].filter(a=>!t.has(a.key))}s(S,"loadExtraCommandRows");export{g as a,h as b,y as c,S as d};
|