@npayload/sdk 0.0.0-stage → 5.0.4
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/LICENSE +21 -0
- package/README.md +156 -2
- package/dist/chunk-22PYMXSS.mjs +1 -0
- package/dist/chunk-26BFOUGE.mjs +1 -0
- package/dist/chunk-2N25V56J.mjs +20 -0
- package/dist/chunk-2OCUKD3K.mjs +1 -0
- package/dist/chunk-2PCG57PX.mjs +1 -0
- package/dist/chunk-2XQXDEXA.mjs +1 -0
- package/dist/chunk-455C67EN.mjs +1 -0
- package/dist/chunk-4HVQZC7R.mjs +1 -0
- package/dist/chunk-4NWQCPI4.mjs +1 -0
- package/dist/chunk-52ZB3ZAG.mjs +1 -0
- package/dist/chunk-5SMWYS7Z.mjs +1 -0
- package/dist/chunk-5YK2JKKH.mjs +17 -0
- package/dist/chunk-6NCRQ746.mjs +9 -0
- package/dist/chunk-6RMN6EHY.mjs +1 -0
- package/dist/chunk-6ZOPXG44.mjs +64 -0
- package/dist/chunk-76OM2ZBO.mjs +5 -0
- package/dist/chunk-A7HA64P6.mjs +1 -0
- package/dist/chunk-APBVAT7F.mjs +1 -0
- package/dist/chunk-BBHWYMQA.mjs +1 -0
- package/dist/chunk-BMMAZIUY.mjs +1 -0
- package/dist/chunk-CJDCY2NH.mjs +1 -0
- package/dist/chunk-EL7XOWA4.mjs +1 -0
- package/dist/chunk-EXNCOEHS.mjs +1 -0
- package/dist/chunk-FAO3QJC5.mjs +1 -0
- package/dist/chunk-FNAZW7X3.mjs +3 -0
- package/dist/chunk-GEJT7NMK.mjs +1 -0
- package/dist/chunk-GGXNXM73.mjs +1 -0
- package/dist/chunk-GKDZ7663.mjs +1 -0
- package/dist/chunk-HTQLUO4J.mjs +1 -0
- package/dist/chunk-II74EBLQ.mjs +1 -0
- package/dist/chunk-JBAV2AQK.mjs +1 -0
- package/dist/chunk-KUJJYP3K.mjs +22 -0
- package/dist/chunk-LJNU5QHZ.mjs +1 -0
- package/dist/chunk-LT2DQLXJ.mjs +1 -0
- package/dist/chunk-MDW42OG6.mjs +8 -0
- package/dist/chunk-MPYL6HQR.mjs +1 -0
- package/dist/chunk-OA73YMB6.mjs +6 -0
- package/dist/chunk-PKG2R6XN.mjs +1 -0
- package/dist/chunk-QUJ2IZXU.mjs +1 -0
- package/dist/chunk-RIBBVOCC.mjs +1 -0
- package/dist/chunk-TQFAYJEP.mjs +4 -0
- package/dist/chunk-UMQ2SWSM.mjs +5 -0
- package/dist/chunk-WE3NRBO6.mjs +1 -0
- package/dist/chunk-XLK55DEY.mjs +1 -0
- package/dist/chunk-YHY7Y4HD.mjs +4 -0
- package/dist/chunk-YQVQTVHK.mjs +2 -0
- package/dist/cli/index.d.mts +54 -0
- package/dist/cli/index.d.ts +54 -0
- package/dist/cli/index.js +852 -0
- package/dist/cli/index.mjs +696 -0
- package/dist/events/index.d.mts +10 -0
- package/dist/events/index.d.ts +10 -0
- package/dist/events/index.js +1 -0
- package/dist/events/index.mjs +1 -0
- package/dist/index.d.mts +49687 -0
- package/dist/index.d.ts +49687 -0
- package/dist/index.js +2 -0
- package/dist/index.mjs +2 -0
- package/package.json +120 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={contentHash:"f4d5410c733e4c4a28858907bb7addc6d1fd34280961bdfb74cf0ac7a0a8419b",generatedAt:"contract-f4d5410c733e4c4a28858907bb7addc6d1fd34280961bdfb74cf0ac7a0a8419b",commands:[{key:"connect.connectAccess.getGrant",commandPath:["connect","connectAccess","getGrant"],opId:"GET /v1/connect/grants/:grantId",method:"GET",pattern:"/v1/connect/grants/:grantId",pathParams:[{name:"grantGid",key:"grantId"}],flags:[],scopes:["grants:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a single access grant (caller must be a party)."},{key:"connect.connectAccess.getGrantRates",commandPath:["connect","connectAccess","getGrantRates"],opId:"GET /v1/connect/grants/:grantId/rates",method:"GET",pattern:"/v1/connect/grants/:grantId/rates",pathParams:[{name:"grantGid",key:"grantId"}],flags:[],scopes:["grants:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a grant's rates from the rollup: events per second now, the peak per 30 s over the last hour, today's count against the day limit, dropped today, the per-second limit and asOf (either party)."},{key:"connect.connectAccess.getGrantTrustScore",commandPath:["connect","connectAccess","getGrantTrustScore"],opId:"GET /v1/connect/grants/:grantId/trust-score",method:"GET",pattern:"/v1/connect/grants/:grantId/trust-score",pathParams:[{name:"grantGid",key:"grantId"}],flags:[],scopes:["grants:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a grant's trust score, cold-start, and red-flag status (caller must be a party)."},{key:"connect.connectAccess.getGrantUsage",commandPath:["connect","connectAccess","getGrantUsage"],opId:"GET /v1/connect/grants/:grantId/usage",method:"GET",pattern:"/v1/connect/grants/:grantId/usage",pathParams:[{name:"grantGid",key:"grantId"}],flags:[{name:"period",coerce:null,optional:!0,choices:["7d","30d","custom"]},{name:"windowStartMs",coerce:"number",optional:!0},{name:"windowEndMs",coerce:"number",optional:!0}],scopes:["grants:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a grant's usage over 7d / 30d / a custom window (publisher: full metrics + daily series; subscriber: aggregate only)."},{key:"connect.connectAccess.listMyGrants",commandPath:["connect","connectAccess","listMyGrants"],opId:"GET /v1/connect/grants",method:"GET",pattern:"/v1/connect/grants",pathParams:[],flags:[{name:"status",coerce:null,optional:!0,choices:["pending","active","rejected","revoked","expired","suspended"]},{name:"direction",coerce:null,optional:!0,choices:["sent","received"]},{name:"app",coerce:null,optional:!0},{name:"envKind",coerce:null,optional:!0,choices:["sandbox","production"]},{name:"cursor",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["grants:read"],idempotent:!1,isQuery:!0,summary:"List access grants for the caller's org (optionally filtered by direction and status)."},{key:"connect.connectAccess.pauseGrant",commandPath:["connect","connectAccess","pauseGrant"],opId:"POST /v1/connect/grants/:grantId/pause",method:"POST",pattern:"/v1/connect/grants/:grantId/pause",pathParams:[{name:"grantGid",key:"grantId"}],flags:[],scopes:["grants:write"],idempotent:!0,isQuery:!1,summary:"Pause one grant the caller's org shares through: it stops crossing until resumed (publisher only)."},{key:"connect.connectAccess.replayDroppedForGrant",commandPath:["connect","connectAccess","replayDroppedForGrant"],opId:"POST /v1/connect/grants/:grantId/replay-dropped",method:"POST",pattern:"/v1/connect/grants/:grantId/replay-dropped",pathParams:[{name:"grantGid",key:"grantId"}],flags:[{name:"dryRun",coerce:"boolean",optional:!0}],scopes:["grants:write"],idempotent:!0,isQuery:!1,summary:"Replay the events a grant dropped: re-run its curable dead letters (over the limit, paused) through the full gate chain of the hop, in bounded pages (publisher only)."},{key:"connect.connectAccess.resumeAllGrantsForOrg",commandPath:["connect","connectAccess","resumeAllGrantsForOrg"],opId:"POST /v1/connect/grants/resume-all",method:"POST",pattern:"/v1/connect/grants/resume-all",pathParams:[],flags:[],scopes:["grants:admin"],idempotent:!1,isQuery:!1,summary:"Resume all sharing: return to active exactly the grants the caller's org's last pause of all sharing moved that are still paused and unexpired."},{key:"connect.connectAccess.resumeGrant",commandPath:["connect","connectAccess","resumeGrant"],opId:"POST /v1/connect/grants/:grantId/resume",method:"POST",pattern:"/v1/connect/grants/:grantId/resume",pathParams:[{name:"grantGid",key:"grantId"}],flags:[],scopes:["grants:write"],idempotent:!0,isQuery:!1,summary:"Resume one paused grant the caller's org shares through (publisher only); the events refused while it was paused stay dead letters."},{key:"connect.connectAccess.suspendAllGrantsForOrg",commandPath:["connect","connectAccess","suspendAllGrantsForOrg"],opId:"POST /v1/connect/grants/suspend-all",method:"POST",pattern:"/v1/connect/grants/suspend-all",pathParams:[],flags:[{name:"reason",coerce:null,optional:!0}],scopes:["grants:admin"],idempotent:!1,isQuery:!1,summary:"Pause all sharing: suspend every active grant the caller's org has issued, in one call (the org kill switch; resume-all returns them)."},{key:"connect.connectBridges.listBridges",commandPath:["connect","connectBridges","listBridges"],opId:"GET /v1/connect/bridges",method:"GET",pattern:"/v1/connect/bridges",pathParams:[],flags:[{name:"status",coerce:null,optional:!0,choices:["pending","active","suspended","archived"]},{name:"sourceOrgId",coerce:null,optional:!0},{name:"targetOrgId",coerce:null,optional:!0},{name:"cursor",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["bridges:read"],idempotent:!1,isQuery:!0,summary:"List identity bridges for the caller's org."},{key:"connect.connectBridges.retrieveBridge",commandPath:["connect","connectBridges","retrieveBridge"],opId:"GET /v1/connect/bridges/:bridgeGid",method:"GET",pattern:"/v1/connect/bridges/:bridgeGid",pathParams:[{name:"bridgeGid",key:"bridgeGid"}],flags:[],scopes:["bridges:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a single identity bridge."},{key:"connect.connectExplore.getExploreApp",commandPath:["connect","connectExplore","getExploreApp"],opId:"GET /v1/connect/explore/:appId",method:"GET",pattern:"/v1/connect/explore/:appId",pathParams:[{name:"appId",key:"appId"}],flags:[],scopes:["explore:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a single discoverable Connect app."},{key:"connect.connectExplore.listExploreApps",commandPath:["connect","connectExplore","listExploreApps"],opId:"GET /v1/connect/explore",method:"GET",pattern:"/v1/connect/explore",pathParams:[],flags:[{name:"platformSlug",coerce:null,optional:!0},{name:"search",coerce:null,optional:!0},{name:"cursor",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["explore:read"],idempotent:!1,isQuery:!0,summary:"List discoverable Connect apps (marketplace catalogue)."},{key:"connect.connectExplore.searchExploreApps",commandPath:["connect","connectExplore","searchExploreApps"],opId:"GET /v1/connect/explore/search",method:"GET",pattern:"/v1/connect/explore/search",pathParams:[],flags:[{name:"query",coerce:null,optional:!1},{name:"cursor",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["explore:read"],idempotent:!1,isQuery:!0,summary:"Search discoverable Connect apps by query."},{key:"connect.connectInsights.getEcosystemGraph",commandPath:["connect","connectInsights","getEcosystemGraph"],opId:"GET /v1/connect/graph",method:"GET",pattern:"/v1/connect/graph",pathParams:[],flags:[{name:"partnerSlug",coerce:null,optional:!0},{name:"envKind",coerce:null,optional:!0,choices:["sandbox","production"]},{name:"direction",coerce:null,optional:!0,choices:["given","received"]},{name:"status",coerce:null,optional:!0,choices:["pending","active","rejected","revoked","expired","suspended"]},{name:"include",coerce:null,optional:!0}],scopes:["grants:read"],idempotent:!1,isQuery:!0,summary:"Retrieve the Connect graph of the caller's organization: org and app nodes, one edge per grant with its direction and its rates from the rollup, optionally the Feeds lens."},{key:"connect.connectInsights.getPublisherCompliance",commandPath:["connect","connectInsights","getPublisherCompliance"],opId:"GET /v1/connect/explore/:appId/compliance",method:"GET",pattern:"/v1/connect/explore/:appId/compliance",pathParams:[{name:"appId",key:"appId"}],flags:[{name:"publisherOrgId",coerce:null,optional:!0}],scopes:["explore:read"],idempotent:!1,isQuery:!0,summary:"Retrieve the compliance summary of the organization that owns a Connect-visible app (each figure measured or null)."},{key:"connect.connectPartner.getPartnerAuditFeed",commandPath:["connect","connectPartner","getPartnerAuditFeed"],opId:"GET /v1/connect/partner/audit",method:"GET",pattern:"/v1/connect/partner/audit",pathParams:[],flags:[{name:"cursor",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0},{name:"action",coerce:null,optional:!0}],scopes:["partner:read"],idempotent:!1,isQuery:!0,summary:"Read the partner governance audit feed (platform operator)."},{key:"connect.connectProfile.getAppProfile",commandPath:["connect","connectProfile","getAppProfile"],opId:"GET /v1/connect/profile",method:"GET",pattern:"/v1/connect/profile",pathParams:[],flags:[],scopes:["profile:read"],idempotent:!1,isQuery:!0,summary:"Retrieve the caller org's own app connect profile."},{key:"connect.connectTenantApproval.getTenantApproval",commandPath:["connect","connectTenantApproval","getTenantApproval"],opId:"GET /v1/connect/tenant-approvals/:approvalGid",method:"GET",pattern:"/v1/connect/tenant-approvals/:approvalGid",pathParams:[{name:"approvalGid",key:"approvalGid"}],flags:[],scopes:["tenant_approvals:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a single tenant approval."},{key:"connect.connectTenantApproval.listConsents",commandPath:["connect","connectTenantApproval","listConsents"],opId:"GET /v1/connect/consents",method:"GET",pattern:"/v1/connect/consents",pathParams:[],flags:[{name:"grantGid",coerce:null,optional:!0},{name:"status",coerce:null,optional:!0,choices:["active","revoked","frozen","delisted","expired"]},{name:"app",coerce:null,optional:!0},{name:"cursor",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["tenant_approvals:read"],idempotent:!1,isQuery:!0,summary:"List the store consents (tenant approvals) of every grant the caller's org is party to, each with the receipt that approved it."},{key:"connect.connectTenantApproval.listPartnerTenantApprovals",commandPath:["connect","connectTenantApproval","listPartnerTenantApprovals"],opId:"GET /v1/connect/partner/tenant-approvals",method:"GET",pattern:"/v1/connect/partner/tenant-approvals",pathParams:[],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:["tenant_approvals:read"],idempotent:!1,isQuery:!0,summary:"List the tenant approvals the calling platform partner manages \u2014 every approval under a grant it publishes."},{key:"connect.connectTenantApproval.listPlatformConnectApprovals",commandPath:["connect","connectTenantApproval","listPlatformConnectApprovals"],opId:"GET /v1/connect/platform-connects/:connectGid/approvals",method:"GET",pattern:"/v1/connect/platform-connects/:connectGid/approvals",pathParams:[{name:"connectGid",key:"connectGid"}],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:["tenant_approvals:read"],idempotent:!1,isQuery:!0,summary:"List the tenant approvals under one platform connect (the access grant named by connectGid); party-only."},{key:"connect.connectTenantApproval.listTenantApprovals",commandPath:["connect","connectTenantApproval","listTenantApprovals"],opId:"GET /v1/connect/tenant-approvals",method:"GET",pattern:"/v1/connect/tenant-approvals",pathParams:[],flags:[{name:"grantGid",coerce:null,optional:!1},{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:["tenant_approvals:read"],idempotent:!1,isQuery:!0,summary:"List tenant approvals for the caller's org."},{key:"connect.consentReceipts.listReceiptsByGrant",commandPath:["connect","consentReceipts","listReceiptsByGrant"],opId:"GET /v1/connect/grants/:grantId/consents",method:"GET",pattern:"/v1/connect/grants/:grantId/consents",pathParams:[{name:"grantGid",key:"grantId"}],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:["tenant_approvals:read"],idempotent:!1,isQuery:!0,summary:"List the store consents of one grant, each with the receipt that approved it (either party)."},{key:"connect.entityNat.resolveEntity",commandPath:["connect","entityNat","resolveEntity"],opId:"GET /v1/entity-nat/resolve",method:"GET",pattern:"/v1/entity-nat/resolve",pathParams:[],flags:[{name:"entityTypeSlug",coerce:null,optional:!1},{name:"localEntityId",coerce:null,optional:!1}],scopes:["bridges:read"],idempotent:!0,isQuery:!0,summary:"Resolve a local entity to its universal entity token (SNAT read) for the caller's org."},{key:"connect.entityNat.reverseResolve",commandPath:["connect","entityNat","reverseResolve"],opId:"GET /v1/entity-nat/reverse-resolve",method:"GET",pattern:"/v1/entity-nat/reverse-resolve",pathParams:[],flags:[{name:"universalEntityToken",coerce:null,optional:!1}],scopes:["bridges:read"],idempotent:!0,isQuery:!0,summary:"Reverse-resolve a universal entity token to the caller's own local identifier (DNAT read)."},{key:"events.adapters.createAdapter",commandPath:["events","adapters","createAdapter"],opId:"POST /v1/adapters",method:"POST",pattern:"/v1/adapters",pathParams:[],flags:[{name:"name",coerce:null,optional:!1},{name:"type",coerce:null,optional:!1},{name:"config",coerce:"json",optional:!1},{name:"credentialId",coerce:null,optional:!0},{name:"credentials",coerce:"json",optional:!0},{name:"orgAdapterRegistryId",coerce:null,optional:!0}],scopes:["adapters:write"],idempotent:!1,isQuery:!1,summary:"Create an adapter for the organization; the config is validated against the provider type's schema and any inline credential is stored encrypted."},{key:"events.adapters.deleteAdapter",commandPath:["events","adapters","deleteAdapter"],opId:"DELETE /v1/adapters/:adapterGid",method:"DELETE",pattern:"/v1/adapters/:adapterGid",pathParams:[{name:"adapterGid",key:"adapterGid"}],flags:[],scopes:["adapters:write"],idempotent:!1,isQuery:!1,summary:"Remove an adapter: the row leaves the organization's list, its health checks stop and the credential stored for it is deactivated; a gid the organization does not hold is 403."},{key:"events.adapters.getAdapter",commandPath:["events","adapters","getAdapter"],opId:"GET /v1/adapters/:adapterGid",method:"GET",pattern:"/v1/adapters/:adapterGid",pathParams:[{name:"adapterGid",key:"adapterGid"}],flags:[],scopes:["adapters:read"],idempotent:!1,isQuery:!0,summary:"Retrieve one adapter by GID with its health verdict and circuit-breaker state; a cross-org GID is 403, never 404."},{key:"events.adapters.listAdapters",commandPath:["events","adapters","listAdapters"],opId:"GET /v1/adapters",method:"GET",pattern:"/v1/adapters",pathParams:[],flags:[],scopes:["adapters:read"],idempotent:!1,isQuery:!0,summary:"List the organization's adapters with their health verdict and circuit-breaker state."},{key:"events.adapters.updateAdapter",commandPath:["events","adapters","updateAdapter"],opId:"PATCH /v1/adapters/:adapterGid",method:"PATCH",pattern:"/v1/adapters/:adapterGid",pathParams:[{name:"adapterGid",key:"adapterGid"}],flags:[{name:"config",coerce:"json",optional:!0},{name:"enabled",coerce:"boolean",optional:!0}],scopes:["adapters:write"],idempotent:!1,isQuery:!1,summary:"Update an adapter's config or enabled state; a config change re-validates against the provider type's schema and increments the immutable version."},{key:"events.appDpopKeys.listKeys",commandPath:["events","appDpopKeys","listKeys"],opId:"GET /v1/apps/dpop-keys",method:"GET",pattern:"/v1/apps/dpop-keys",pathParams:[],flags:[{name:"status",coerce:null,optional:!0,choices:["active","revoked"]},{name:"cursor",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["keys:write"],idempotent:!1,isQuery:!0,summary:"List the app's own NPP DPoP signing keys (active and revoked) as a page of wire rows \u2014 the inventory the release door works from."},{key:"events.appDpopKeys.register",commandPath:["events","appDpopKeys","register"],opId:"POST /v1/apps/dpop-keys",method:"POST",pattern:"/v1/apps/dpop-keys",pathParams:[],flags:[{name:"publicKeyJwk",coerce:"json",optional:!1},{name:"algorithm",coerce:null,optional:!1,choices:["ES256","ES384","ES512","RS256","RS384","RS512","EdDSA"]},{name:"expiresAt",coerce:"number",optional:!0}],scopes:["keys:write"],idempotent:!0,isQuery:!1,summary:"Register an app's public DPoP/Ed25519 signing key for the NPP wire protocol."},{key:"events.appDpopKeys.revokeByThumbprint",commandPath:["events","appDpopKeys","revokeByThumbprint"],opId:"DELETE /v1/apps/dpop-keys/:thumbprint",method:"DELETE",pattern:"/v1/apps/dpop-keys/:thumbprint",pathParams:[{name:"jwkThumbprint",key:"thumbprint"}],flags:[{name:"reason",coerce:null,optional:!0}],scopes:["keys:write"],idempotent:!0,isQuery:!1,summary:"Release (revoke) the app's own NPP DPoP signing key by its RFC 7638 thumbprint \u2014 the key leaves the JWKS anchor within one cache TTL; idempotent on a released key."},{key:"events.archiveReplay.archiveChannel",commandPath:["events","archiveReplay","archiveChannel"],opId:"POST /v1/channels/:channelId/messages/archive",method:"POST",pattern:"/v1/channels/:channelId/messages/archive",pathParams:[{name:"channelGid",key:"channelId"}],flags:[],scopes:["archive:write"],idempotent:!0,isQuery:!1,summary:"Archive a channel (prevents new publishes; idempotent)."},{key:"events.archiveReplay.getArchiveStatus",commandPath:["events","archiveReplay","getArchiveStatus"],opId:"GET /v1/channels/:channelId/archive-status",method:"GET",pattern:"/v1/channels/:channelId/archive-status",pathParams:[{name:"channelGid",key:"channelId"}],flags:[],scopes:["archive:read"],idempotent:!1,isQuery:!0,summary:"Get archive status + history stats for a channel."},{key:"events.archiveReplay.replayMessages",commandPath:["events","archiveReplay","replayMessages"],opId:"POST /v1/channels/:targetChannelGid/replay",method:"POST",pattern:"/v1/channels/:targetChannelGid/replay",pathParams:[{name:"targetChannelGid",key:"targetChannelGid"}],flags:[{name:"channelGid",coerce:null,optional:!1},{name:"fromTimestamp",coerce:"number",optional:!0},{name:"toTimestamp",coerce:"number",optional:!0}],scopes:["archive:replay"],idempotent:!1,isQuery:!1,summary:"Replay historical messages from a source channel to a target channel in publish-time order."},{key:"events.archiveReplay.replayMessagesWithGrant",commandPath:["events","archiveReplay","replayMessagesWithGrant"],opId:"POST /v1/channels/:targetChannelGid/replay-with-grant",method:"POST",pattern:"/v1/channels/:targetChannelGid/replay-with-grant",pathParams:[{name:"targetChannelGid",key:"targetChannelGid"}],flags:[{name:"channelGid",coerce:null,optional:!1},{name:"publisherAppId",coerce:null,optional:!1},{name:"subscriberOrgId",coerce:null,optional:!1},{name:"historicalEventTypes",coerce:"json",optional:!1},{name:"fromTimestamp",coerce:"number",optional:!0},{name:"toTimestamp",coerce:"number",optional:!0}],scopes:["archive:replay"],idempotent:!1,isQuery:!1,summary:"Replay archived messages with Connect grant re-evaluation at replay time."},{key:"events.archiveReplay.restoreChannel",commandPath:["events","archiveReplay","restoreChannel"],opId:"POST /v1/channels/:channelId/restore",method:"POST",pattern:"/v1/channels/:channelId/restore",pathParams:[{name:"channelGid",key:"channelId"}],flags:[],scopes:["archive:write"],idempotent:!1,isQuery:!1,summary:"Restore (un-archive) a channel back to active status."},{key:"events.catalogue.activateEventType",commandPath:["events","catalogue","activateEventType"],opId:"POST /v1/events/types/:eventTypeGid/activate",method:"POST",pattern:"/v1/events/types/:eventTypeGid/activate",pathParams:[{name:"eventTypeGid",key:"eventTypeGid"}],flags:[],scopes:["catalogue:write"],idempotent:!1,isQuery:!1,summary:"Activate an event type (draft \u2192 active lifecycle transition)."},{key:"events.catalogue.checkCompatibility",commandPath:["events","catalogue","checkCompatibility"],opId:"POST /v1/events/types/:eventTypeGid/compatibility",method:"POST",pattern:"/v1/events/types/:eventTypeGid/compatibility",pathParams:[{name:"eventTypeGid",key:"eventTypeGid"}],flags:[{name:"schemaDefinition",coerce:null,optional:!1},{name:"mode",coerce:null,optional:!1,choices:["backward","forward","full","none"]}],scopes:["catalogue:read"],idempotent:!1,isQuery:!0,summary:"Check a candidate schema definition against an event type's versions."},{key:"events.catalogue.deprecateEventType",commandPath:["events","catalogue","deprecateEventType"],opId:"POST /v1/events/types/:eventTypeGid/deprecate",method:"POST",pattern:"/v1/events/types/:eventTypeGid/deprecate",pathParams:[{name:"eventTypeGid",key:"eventTypeGid"}],flags:[{name:"message",coerce:null,optional:!1},{name:"sunsetDate",coerce:"number",optional:!0}],scopes:["catalogue:admin"],idempotent:!1,isQuery:!1,summary:"Deprecate an event type with a message and optional sunset date."},{key:"events.catalogue.getConsumers",commandPath:["events","catalogue","getConsumers"],opId:"GET /v1/events/types/:eventTypeGid/consumers",method:"GET",pattern:"/v1/events/types/:eventTypeGid/consumers",pathParams:[{name:"eventTypeGid",key:"eventTypeGid"}],flags:[],scopes:["catalogue:read"],idempotent:!1,isQuery:!0,summary:"List registered consumers for an event type."},{key:"events.catalogue.getEventTypeByGid",commandPath:["events","catalogue","getEventTypeByGid"],opId:"GET /v1/events/types/:eventTypeGid",method:"GET",pattern:"/v1/events/types/:eventTypeGid",pathParams:[{name:"eventTypeGid",key:"eventTypeGid"}],flags:[],scopes:["catalogue:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a single event type by GID; a gid the caller cannot resolve answers 404 EVENTTYPE_NOT_FOUND."},{key:"events.catalogue.getEventTypeByName",commandPath:["events","catalogue","getEventTypeByName"],opId:"GET /v1/events/types/by-name/:name",method:"GET",pattern:"/v1/events/types/by-name/:name",pathParams:[{name:"name",key:"name"}],flags:[],scopes:["catalogue:read"],idempotent:!1,isQuery:!0,summary:"Look up an event type by name; an unresolvable name answers 404 NOT_FOUND."},{key:"events.catalogue.getImpactAnalysis",commandPath:["events","catalogue","getImpactAnalysis"],opId:"GET /v1/events/types/:eventTypeGid/impact",method:"GET",pattern:"/v1/events/types/:eventTypeGid/impact",pathParams:[{name:"eventTypeGid",key:"eventTypeGid"}],flags:[],scopes:["catalogue:read"],idempotent:!1,isQuery:!0,summary:"Get downstream impact analysis for an event type."},{key:"events.catalogue.getVersions",commandPath:["events","catalogue","getVersions"],opId:"GET /v1/events/types/:eventTypeGid/versions",method:"GET",pattern:"/v1/events/types/:eventTypeGid/versions",pathParams:[{name:"eventTypeGid",key:"eventTypeGid"}],flags:[],scopes:["catalogue:read"],idempotent:!1,isQuery:!0,summary:"List schema versions for an event type."},{key:"events.catalogue.listDeprecated",commandPath:["events","catalogue","listDeprecated"],opId:"GET /v1/apps/events/types/deprecated",method:"GET",pattern:"/v1/apps/events/types/deprecated",pathParams:[],flags:[],scopes:["catalogue:read"],idempotent:!1,isQuery:!0,summary:"List deprecated event types for an app."},{key:"events.catalogue.listEventTypes",commandPath:["events","catalogue","listEventTypes"],opId:"GET /v1/apps/events/types",method:"GET",pattern:"/v1/apps/events/types",pathParams:[],flags:[{name:"domain",coerce:null,optional:!0},{name:"status",coerce:null,optional:!0},{name:"tag",coerce:null,optional:!0}],scopes:["catalogue:read"],idempotent:!1,isQuery:!0,summary:"List event types for an app (filter by domain/status/tag)."},{key:"events.catalogue.registerEventType",commandPath:["events","catalogue","registerEventType"],opId:"POST /v1/apps/events/types",method:"POST",pattern:"/v1/apps/events/types",pathParams:[],flags:[{name:"name",coerce:null,optional:!1},{name:"displayName",coerce:null,optional:!1},{name:"description",coerce:null,optional:!1},{name:"domain",coerce:null,optional:!1},{name:"entity",coerce:null,optional:!1},{name:"action",coerce:null,optional:!1},{name:"ownership",coerce:"json",optional:!1},{name:"channels",coerce:"json",optional:!0},{name:"tags",coerce:"json",optional:!0},{name:"schema",coerce:"json",optional:!0}],scopes:["catalogue:write"],idempotent:!0,isQuery:!1,summary:"Register a new event type under an app."},{key:"events.catalogue.registerVersion",commandPath:["events","catalogue","registerVersion"],opId:"POST /v1/events/types/:eventTypeGid/versions",method:"POST",pattern:"/v1/events/types/:eventTypeGid/versions",pathParams:[{name:"eventTypeGid",key:"eventTypeGid"}],flags:[{name:"version",coerce:"number",optional:!1},{name:"schema",coerce:"json",optional:!1},{name:"compatibility",coerce:"json",optional:!0},{name:"changelog",coerce:null,optional:!1},{name:"publishedBy",coerce:null,optional:!1}],scopes:["catalogue:write"],idempotent:!0,isQuery:!1,summary:"Register a new schema version for an event type."},{key:"events.catalogue.updateEventType",commandPath:["events","catalogue","updateEventType"],opId:"PATCH /v1/events/types/:eventTypeGid",method:"PATCH",pattern:"/v1/events/types/:eventTypeGid",pathParams:[{name:"eventTypeGid",key:"eventTypeGid"}],flags:[{name:"displayName",coerce:null,optional:!0},{name:"description",coerce:null,optional:!0},{name:"ownership",coerce:"json",optional:!0},{name:"channels",coerce:"json",optional:!0},{name:"tags",coerce:"json",optional:!0},{name:"schema",coerce:"json",optional:!0}],scopes:["catalogue:write"],idempotent:!1,isQuery:!1,summary:"Update event type metadata (displayName, description, ownership, channels, tags) \u2014 schema changes go through versions."},{key:"events.channelDetail.getChannelDetail",commandPath:["events","channelDetail","getChannelDetail"],opId:"GET /v1/channels/:channelId/detail",method:"GET",pattern:"/v1/channels/:channelId/detail",pathParams:[{name:"channelGid",key:"channelId"}],flags:[],scopes:["channels:read"],idempotent:!1,isQuery:!0,summary:"Retrieve aggregated channel detail (channel, stats, subscribers, recent messages) by GID, or 404."},{key:"events.channels.archive",commandPath:["events","channels","archive"],opId:"POST /v1/channels/:channelId/archive",method:"POST",pattern:"/v1/channels/:channelId/archive",pathParams:[{name:"channelGid",key:"channelId"}],flags:[],scopes:["channels:admin"],idempotent:!1,isQuery:!1,summary:"Archive a channel (soft-delete + cascade)."},{key:"events.channels.create",commandPath:["events","channels","create"],opId:"POST /v1/apps/channels",method:"POST",pattern:"/v1/apps/channels",pathParams:[],flags:[{name:"name",coerce:null,optional:!1},{name:"slug",coerce:null,optional:!1},{name:"idempotencyKey",coerce:null,optional:!0},{name:"description",coerce:null,optional:!0},{name:"type",coerce:null,optional:!0,choices:["topic","queue","stream"]},{name:"schema",coerce:"json",optional:!0},{name:"settings",coerce:"json",optional:!0},{name:"metadata",coerce:"json",optional:!0},{name:"retentionMode",coerce:null,optional:!0,choices:["standard","compacted","compacted_with_log"]},{name:"compactionConfig",coerce:"json",optional:!0},{name:"nppMinQos",coerce:"number",optional:!0},{name:"rateLimit",coerce:"json",optional:!0},{name:"complianceClass",coerce:null,optional:!0,choices:["NONE","SOC2","GDPR","HIPAA","PCI","FEDRAMP_MOD","FEDRAMP_HIGH","IL5","ITAR"]},{name:"privacy",coerce:"json",optional:!0},{name:"privacyMode",coerce:null,optional:!0,choices:["standard","hybrid","e2e"]},{name:"pii",coerce:null,optional:!0,choices:["strip","allow","block"]}],scopes:["channels:write"],idempotent:!0,isQuery:!1,summary:"Create a channel under an app."},{key:"events.channels.get",commandPath:["events","channels","get"],opId:"GET /v1/channels/:channelId",method:"GET",pattern:"/v1/channels/:channelId",pathParams:[{name:"channelGid",key:"channelId"}],flags:[],scopes:["channels:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a single channel by GID, or 404."},{key:"events.channels.getBySlug",commandPath:["events","channels","getBySlug"],opId:"GET /v1/apps/channels/by-slug/:slug",method:"GET",pattern:"/v1/apps/channels/by-slug/:slug",pathParams:[{name:"slug",key:"slug"}],flags:[],scopes:["channels:read"],idempotent:!1,isQuery:!0,summary:"Get a single channel by app + slug."},{key:"events.channels.list",commandPath:["events","channels","list"],opId:"GET /v1/apps/channels",method:"GET",pattern:"/v1/apps/channels",pathParams:[],flags:[{name:"status",coerce:null,optional:!0,choices:["active","paused","archived"]},{name:"excludeFeedReceiving",coerce:"boolean",optional:!0},{name:"includeArchived",coerce:"boolean",optional:!0}],scopes:["channels:read"],idempotent:!1,isQuery:!0,summary:"List channels for an app."},{key:"events.channels.listAppIds",commandPath:["events","channels","listAppIds"],opId:"GET /v1/apps",method:"GET",pattern:"/v1/apps",pathParams:[],flags:[{name:"includeArchived",coerce:"boolean",optional:!0}],scopes:["channels:read"],idempotent:!1,isQuery:!0,summary:"List all distinct app ids that have channels for the caller's org."},{key:"events.channels.listPaginated",commandPath:["events","channels","listPaginated"],opId:"GET /v1/apps/channels/paginated",method:"GET",pattern:"/v1/apps/channels/paginated",pathParams:[],flags:[{name:"status",coerce:null,optional:!0,choices:["active","paused","archived"]},{name:"cursor",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0},{name:"includeArchived",coerce:"boolean",optional:!0},{name:"fields",coerce:null,optional:!0}],scopes:["channels:read"],idempotent:!1,isQuery:!0,summary:"List channels for an app with cursor-based pagination."},{key:"events.channels.listWithStats",commandPath:["events","channels","listWithStats"],opId:"GET /v1/apps/channels/stats",method:"GET",pattern:"/v1/apps/channels/stats",pathParams:[],flags:[{name:"status",coerce:null,optional:!0,choices:["active","paused","archived"]},{name:"includeArchived",coerce:"boolean",optional:!0}],scopes:["channels:read"],idempotent:!1,isQuery:!0,summary:"List channels for an app with joined sub/group/binding/message/dlq stats."},{key:"events.channels.pause",commandPath:["events","channels","pause"],opId:"POST /v1/channels/:channelId/pause",method:"POST",pattern:"/v1/channels/:channelId/pause",pathParams:[{name:"channelGid",key:"channelId"}],flags:[],scopes:["channels:write"],idempotent:!1,isQuery:!1,summary:"Pause a channel (suspend deliveries)."},{key:"events.channels.remove",commandPath:["events","channels","remove"],opId:"DELETE /v1/channels/:channelId",method:"DELETE",pattern:"/v1/channels/:channelId",pathParams:[{name:"channelGid",key:"channelId"}],flags:[],scopes:["channels:admin"],idempotent:!0,isQuery:!1,summary:"Delete a channel \u2014 soft-delete: archive it and cascade-suspend its subscriptions (admin scope)."},{key:"events.channels.resume",commandPath:["events","channels","resume"],opId:"POST /v1/channels/:channelId/resume",method:"POST",pattern:"/v1/channels/:channelId/resume",pathParams:[{name:"channelGid",key:"channelId"}],flags:[],scopes:["channels:write"],idempotent:!1,isQuery:!1,summary:"Resume a paused channel."},{key:"events.channels.update",commandPath:["events","channels","update"],opId:"PATCH /v1/channels/:channelId",method:"PATCH",pattern:"/v1/channels/:channelId",pathParams:[{name:"channelGid",key:"channelId"}],flags:[{name:"complianceClass",coerce:null,optional:!0,choices:["NONE","SOC2","GDPR","HIPAA","PCI","FEDRAMP_MOD","FEDRAMP_HIGH","IL5","ITAR"]},{name:"nppMinQos",coerce:"number",optional:!0},{name:"rateLimit",coerce:"json",optional:!0},{name:"name",coerce:null,optional:!0},{name:"slug",coerce:null,optional:!0},{name:"description",coerce:null,optional:!0},{name:"status",coerce:null,optional:!0,choices:["active","paused","archived"]},{name:"schema",coerce:"json",optional:!0},{name:"settings",coerce:"json",optional:!0},{name:"privacy",coerce:"json",optional:!0},{name:"replication",coerce:"json",optional:!0},{name:"compactionConfig",coerce:"json",optional:!0},{name:"schemaValidation",coerce:"json",optional:!0},{name:"platformConnectEnforcement",coerce:"json",optional:!0},{name:"metadata",coerce:"json",optional:!0},{name:"pii",coerce:null,optional:!0,choices:["strip","allow","block"]}],scopes:["channels:write"],idempotent:!1,isQuery:!1,summary:"Update channel metadata/settings (partial)."},{key:"events.consume.ack",commandPath:["events","consume","ack"],opId:"POST /v1/subscriptions/:subscriptionId/ack",method:"POST",pattern:"/v1/subscriptions/:subscriptionId/ack",pathParams:[{name:"subscriptionGid",key:"subscriptionId"}],flags:[{name:"records",coerce:"json",optional:!0},{name:"frameB64",coerce:null,optional:!0},{name:"visibilityExtensionSeconds",coerce:"number",optional:!0}],scopes:["subscriptions:read"],idempotent:!1,isQuery:!1,summary:"Acknowledge delivered records on a subscription (ack / reject / extend / dead-letter)."},{key:"events.consume.flowCredit",commandPath:["events","consume","flowCredit"],opId:"POST /v1/subscriptions/:subscriptionId/flow-credit",method:"POST",pattern:"/v1/subscriptions/:subscriptionId/flow-credit",pathParams:[{name:"subscriptionGid",key:"subscriptionId"}],flags:[{name:"credit",coerce:null,optional:!1},{name:"partitionFilter",coerce:"number",optional:!0}],scopes:["subscriptions:read"],idempotent:!1,isQuery:!1,summary:"Grant a subscription receive-window flow credit; in pull mode this drives a credit-bounded DELIVER_BATCH."},{key:"events.consume.seek",commandPath:["events","consume","seek"],opId:"POST /v1/channels/:channelId/seek",method:"POST",pattern:"/v1/channels/:channelId/seek",pathParams:[{name:"channelGid",key:"channelId"}],flags:[{name:"consumerId",coerce:null,optional:!1},{name:"mode",coerce:"number",optional:!1},{name:"target",coerce:null,optional:!1}],scopes:["subscriptions:read"],idempotent:!1,isQuery:!1,summary:"Move a consumer's read position in the channel (offset / timestamp / beginning / end)."},{key:"events.consumerGroups.createGroup",commandPath:["events","consumerGroups","createGroup"],opId:"POST /v1/channels/:channelGid/consumer-groups",method:"POST",pattern:"/v1/channels/:channelGid/consumer-groups",pathParams:[{name:"channelGid",key:"channelGid"}],flags:[{name:"name",coerce:null,optional:!1},{name:"strategy",coerce:null,optional:!1,choices:["competing","sticky","broadcast"]},{name:"maxConcurrency",coerce:"number",optional:!0}],scopes:["consumer_groups:write"],idempotent:!0,isQuery:!1,summary:"Create a consumer group on a channel with a start-from policy."},{key:"events.consumerGroups.deleteGroup",commandPath:["events","consumerGroups","deleteGroup"],opId:"DELETE /v1/consumer-groups/:consumerGroupGid",method:"DELETE",pattern:"/v1/consumer-groups/:consumerGroupGid",pathParams:[{name:"groupGid",key:"consumerGroupGid"}],flags:[],scopes:["consumer_groups:admin"],idempotent:!1,isQuery:!1,summary:"Delete a consumer group and release its members' shares of the channel (members and per-member offsets go; the member subscriptions survive)."},{key:"events.consumerGroups.getGroup",commandPath:["events","consumerGroups","getGroup"],opId:"GET /v1/consumer-groups/:consumerGroupGid",method:"GET",pattern:"/v1/consumer-groups/:consumerGroupGid",pathParams:[{name:"groupGid",key:"consumerGroupGid"}],flags:[],scopes:["consumer_groups:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a single consumer group with its members, or 404."},{key:"events.consumerGroups.joinGroup",commandPath:["events","consumerGroups","joinGroup"],opId:"POST /v1/consumer-groups/:consumerGroupGid/members",method:"POST",pattern:"/v1/consumer-groups/:consumerGroupGid/members",pathParams:[{name:"groupGid",key:"consumerGroupGid"}],flags:[{name:"subscriptionGid",coerce:null,optional:!1}],scopes:["consumer_groups:write"],idempotent:!1,isQuery:!1,summary:"Join a consumer group as a subscription member."},{key:"events.consumerGroups.leaveGroup",commandPath:["events","consumerGroups","leaveGroup"],opId:"DELETE /v1/consumer-groups/:consumerGroupGid/members/:subscriptionGid",method:"DELETE",pattern:"/v1/consumer-groups/:consumerGroupGid/members/:subscriptionGid",pathParams:[{name:"groupGid",key:"consumerGroupGid"},{name:"subscriptionGid",key:"subscriptionGid"}],flags:[],scopes:["consumer_groups:write"],idempotent:!1,isQuery:!1,summary:"Leave a consumer group (the member's share of the channel returns to the group)."},{key:"events.consumerGroups.listGroups",commandPath:["events","consumerGroups","listGroups"],opId:"GET /v1/channels/:channelGid/consumer-groups",method:"GET",pattern:"/v1/channels/:channelGid/consumer-groups",pathParams:[{name:"channelGid",key:"channelGid"}],flags:[],scopes:["consumer_groups:read"],idempotent:!1,isQuery:!0,summary:"List consumer groups for a channel."},{key:"events.consumerGroups.pauseGroup",commandPath:["events","consumerGroups","pauseGroup"],opId:"POST /v1/consumer-groups/:consumerGroupGid/pause",method:"POST",pattern:"/v1/consumer-groups/:consumerGroupGid/pause",pathParams:[{name:"groupGid",key:"consumerGroupGid"}],flags:[],scopes:["consumer_groups:write"],idempotent:!1,isQuery:!1,summary:"Pause a consumer group (suspend dispatch to members)."},{key:"events.consumerGroups.receive",commandPath:["events","consumerGroups","receive"],opId:"POST /v1/consumer-groups/:consumerGroupGid/members/:subscriptionGid/receive",method:"POST",pattern:"/v1/consumer-groups/:consumerGroupGid/members/:subscriptionGid/receive",pathParams:[{name:"groupGid",key:"consumerGroupGid"},{name:"subscriptionGid",key:"subscriptionGid"}],flags:[{name:"maxMessages",coerce:"number",optional:!0},{name:"waitTimeSeconds",coerce:"number",optional:!0}],scopes:["consumer_groups:read"],idempotent:!1,isQuery:!1,summary:"Pull a credit-bounded batch for a consumer-group member; each message goes to exactly one member."},{key:"events.consumerGroups.resumeGroup",commandPath:["events","consumerGroups","resumeGroup"],opId:"POST /v1/consumer-groups/:consumerGroupGid/resume",method:"POST",pattern:"/v1/consumer-groups/:consumerGroupGid/resume",pathParams:[{name:"groupGid",key:"consumerGroupGid"}],flags:[],scopes:["consumer_groups:write"],idempotent:!1,isQuery:!1,summary:"Resume a paused consumer group."},{key:"events.consumerGroups.updateGroup",commandPath:["events","consumerGroups","updateGroup"],opId:"PATCH /v1/consumer-groups/:consumerGroupGid",method:"PATCH",pattern:"/v1/consumer-groups/:consumerGroupGid",pathParams:[{name:"groupGid",key:"consumerGroupGid"}],flags:[{name:"strategy",coerce:null,optional:!0,choices:["competing","sticky","broadcast"]},{name:"maxConcurrency",coerce:"number",optional:!0}],scopes:["consumer_groups:write"],idempotent:!1,isQuery:!1,summary:"Update a consumer group's mutable fields (strategy, maxConcurrency)."},{key:"events.deliveries.cancel",commandPath:["events","deliveries","cancel"],opId:"POST /v1/deliveries/:deliveryGid/cancel",method:"POST",pattern:"/v1/deliveries/:deliveryGid/cancel",pathParams:[{name:"deliveryGid",key:"deliveryGid"}],flags:[],scopes:["deliveries:write"],idempotent:!1,isQuery:!1,summary:"Cancel a pending, inflight, or retrying delivery (halted as skipped; terminal deliveries refuse)."},{key:"events.deliveries.get",commandPath:["events","deliveries","get"],opId:"GET /v1/deliveries/:deliveryGid",method:"GET",pattern:"/v1/deliveries/:deliveryGid",pathParams:[{name:"deliveryGid",key:"deliveryGid"}],flags:[],scopes:["messages:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a single delivery by GID, or 404."},{key:"events.deliveries.listByApp",commandPath:["events","deliveries","listByApp"],opId:"GET /v1/apps/deliveries",method:"GET",pattern:"/v1/apps/deliveries",pathParams:[],flags:[{name:"status",coerce:null,optional:!0,choices:["pending","inflight","delivered","retrying","failed","dead_lettered","skipped"]},{name:"limit",coerce:"number",optional:!0}],scopes:["subscriptions:read"],idempotent:!1,isQuery:!0,summary:"List deliveries across every channel owned by an app."},{key:"events.deliveries.listByMessage",commandPath:["events","deliveries","listByMessage"],opId:"GET /v1/messages/:messageGid/deliveries",method:"GET",pattern:"/v1/messages/:messageGid/deliveries",pathParams:[{name:"messageGid",key:"messageGid"}],flags:[],scopes:["messages:read"],idempotent:!1,isQuery:!0,summary:"List delivery attempts for a message."},{key:"events.deliveries.listBySubscription",commandPath:["events","deliveries","listBySubscription"],opId:"GET /v1/subscriptions/:subscriptionGid/deliveries",method:"GET",pattern:"/v1/subscriptions/:subscriptionGid/deliveries",pathParams:[{name:"subscriptionGid",key:"subscriptionGid"}],flags:[{name:"status",coerce:null,optional:!0,choices:["pending","inflight","delivered","retrying","failed","dead_lettered","skipped"]},{name:"limit",coerce:"number",optional:!0}],scopes:["subscriptions:read"],idempotent:!1,isQuery:!0,summary:"List delivery history for a subscription with optional status filter."},{key:"events.deliveries.retry",commandPath:["events","deliveries","retry"],opId:"POST /v1/deliveries/:deliveryGid/retry",method:"POST",pattern:"/v1/deliveries/:deliveryGid/retry",pathParams:[{name:"deliveryGid",key:"deliveryGid"}],flags:[],scopes:["deliveries:write"],idempotent:!1,isQuery:!1,summary:"Retry a failed or dead-lettered delivery (one fresh attempt through the real delivery pipeline)."},{key:"events.deliveryReceipts.confirm",commandPath:["events","deliveryReceipts","confirm"],opId:"POST /v1/delivery-receipts/:deliveryId/confirm",method:"POST",pattern:"/v1/delivery-receipts/:deliveryId/confirm",pathParams:[{name:"deliveryGid",key:"deliveryId"}],flags:[{name:"status",coerce:null,optional:!1,choices:["acknowledged","processed","rejected","deferred"]},{name:"responseCode",coerce:null,optional:!0},{name:"reason",coerce:null,optional:!0},{name:"processingTimeMs",coerce:"number",optional:!0},{name:"deferUntil",coerce:"number",optional:!0}],scopes:["subscriptions:write"],idempotent:!0,isQuery:!1,summary:"Confirm a delivery receipt (acknowledged/processed/rejected/deferred)."},{key:"events.deliveryReceipts.getByDelivery",commandPath:["events","deliveryReceipts","getByDelivery"],opId:"GET /v1/delivery-receipts/:deliveryId",method:"GET",pattern:"/v1/delivery-receipts/:deliveryId",pathParams:[{name:"deliveryGid",key:"deliveryId"}],flags:[],scopes:["messages:read"],idempotent:!1,isQuery:!0,summary:"Retrieve the delivery receipt for a delivery GID, or null."},{key:"events.deliveryReceipts.getHealth",commandPath:["events","deliveryReceipts","getHealth"],opId:"GET /v1/subscriptions/:subscriptionId/webhook-health",method:"GET",pattern:"/v1/subscriptions/:subscriptionId/webhook-health",pathParams:[{name:"subscriptionGid",key:"subscriptionId"}],flags:[],scopes:["subscriptions:read"],idempotent:!1,isQuery:!0,summary:"Get webhook endpoint health state for a subscription (healthy/degraded/unhealthy)."},{key:"events.deliveryReceipts.listBySubscription",commandPath:["events","deliveryReceipts","listBySubscription"],opId:"GET /v1/subscriptions/:subscriptionId/delivery-receipts",method:"GET",pattern:"/v1/subscriptions/:subscriptionId/delivery-receipts",pathParams:[{name:"subscriptionGid",key:"subscriptionId"}],flags:[{name:"limit",coerce:"number",optional:!0}],scopes:["subscriptions:read"],idempotent:!1,isQuery:!0,summary:"List delivery receipts for a subscription."},{key:"events.deliveryReceipts.listDegraded",commandPath:["events","deliveryReceipts","listDegraded"],opId:"GET /v1/webhook-health/degraded",method:"GET",pattern:"/v1/webhook-health/degraded",pathParams:[],flags:[],scopes:["subscriptions:read"],idempotent:!1,isQuery:!0,summary:"List degraded/unhealthy webhook endpoints for the caller's org."},{key:"events.dlq.bulkDiscard",commandPath:["events","dlq","bulkDiscard"],opId:"POST /v1/dlq/discard",method:"POST",pattern:"/v1/dlq/discard",pathParams:[],flags:[{name:"dlqEntryGids",coerce:"json",optional:!1},{name:"reason",coerce:null,optional:!0}],scopes:["dlq:admin"],idempotent:!1,isQuery:!1,summary:"Discard multiple DLQ entries (bulk); answers the work it did."},{key:"events.dlq.bulkReprocess",commandPath:["events","dlq","bulkReprocess"],opId:"POST /v1/dlq/retry",method:"POST",pattern:"/v1/dlq/retry",pathParams:[],flags:[{name:"dlqEntryGids",coerce:"json",optional:!1}],scopes:["dlq:write"],idempotent:!1,isQuery:!1,summary:"Re-enqueue multiple DLQ entries with fresh attempt counts (bulk)."},{key:"events.dlq.discard",commandPath:["events","dlq","discard"],opId:"POST /v1/dlq/:dlqEntryId/discard",method:"POST",pattern:"/v1/dlq/:dlqEntryId/discard",pathParams:[{name:"dlqEntryGid",key:"dlqEntryId"}],flags:[{name:"reason",coerce:null,optional:!0}],scopes:["dlq:admin"],idempotent:!1,isQuery:!1,summary:"Discard a single DLQ entry so it is not reprocessed."},{key:"events.dlq.get",commandPath:["events","dlq","get"],opId:"GET /v1/dlq/:dlqEntryId",method:"GET",pattern:"/v1/dlq/:dlqEntryId",pathParams:[{name:"dlqEntryGid",key:"dlqEntryId"}],flags:[],scopes:["dlq:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a single DLQ entry by GID with its immutable audit trail."},{key:"events.dlq.getStats",commandPath:["events","dlq","getStats"],opId:"GET /v1/subscriptions/:subscriptionId/dlq/stats",method:"GET",pattern:"/v1/subscriptions/:subscriptionId/dlq/stats",pathParams:[{name:"subscriptionGid",key:"subscriptionId"}],flags:[],scopes:["dlq:read"],idempotent:!1,isQuery:!0,summary:"Return DLQ status counts and oldest/newest pending timestamps for a subscription."},{key:"events.dlq.getTrend",commandPath:["events","dlq","getTrend"],opId:"GET /v1/subscriptions/:subscriptionId/dlq/trend",method:"GET",pattern:"/v1/subscriptions/:subscriptionId/dlq/trend",pathParams:[{name:"subscriptionGid",key:"subscriptionId"}],flags:[{name:"hours",coerce:"number",optional:!0}],scopes:["dlq:read"],idempotent:!1,isQuery:!0,summary:"Return hourly-bucketed DLQ creation counts over a time window for a subscription."},{key:"events.dlq.listByApp",commandPath:["events","dlq","listByApp"],opId:"GET /v1/apps/dlq",method:"GET",pattern:"/v1/apps/dlq",pathParams:[],flags:[{name:"status",coerce:null,optional:!0,choices:["pending","reprocessing","reprocessed","discarded"]},{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:null,optional:!0}],scopes:["dlq:read"],idempotent:!1,isQuery:!0,summary:"List DLQ entries across every channel owned by an app."},{key:"events.dlq.listBySubscription",commandPath:["events","dlq","listBySubscription"],opId:"GET /v1/subscriptions/:subscriptionId/dlq",method:"GET",pattern:"/v1/subscriptions/:subscriptionId/dlq",pathParams:[{name:"subscriptionGid",key:"subscriptionId"}],flags:[{name:"status",coerce:null,optional:!0,choices:["pending","reprocessing","reprocessed","discarded"]},{name:"limit",coerce:"number",optional:!0}],scopes:["dlq:read"],idempotent:!1,isQuery:!0,summary:"List DLQ entries for a subscription."},{key:"events.dlq.reprocess",commandPath:["events","dlq","reprocess"],opId:"POST /v1/dlq/:dlqEntryId/reprocess",method:"POST",pattern:"/v1/dlq/:dlqEntryId/reprocess",pathParams:[{name:"dlqEntryGid",key:"dlqEntryId"}],flags:[],scopes:["dlq:write"],idempotent:!1,isQuery:!1,summary:"Re-enqueue a single DLQ entry with a fresh attempt count."},{key:"events.dlq.reprocessAllPending",commandPath:["events","dlq","reprocessAllPending"],opId:"POST /v1/subscriptions/:subscriptionId/dlq/reprocess",method:"POST",pattern:"/v1/subscriptions/:subscriptionId/dlq/reprocess",pathParams:[{name:"subscriptionGid",key:"subscriptionId"}],flags:[{name:"limit",coerce:"number",optional:!0}],scopes:["dlq:write"],idempotent:!1,isQuery:!1,summary:"Re-enqueue all pending DLQ entries for a subscription with fresh attempt counts."},{key:"events.dlq.reprocessWithFilter",commandPath:["events","dlq","reprocessWithFilter"],opId:"POST /v1/dlq/reprocess",method:"POST",pattern:"/v1/dlq/reprocess",pathParams:[],flags:[{name:"subscriptionGid",coerce:null,optional:!0},{name:"since",coerce:"number",optional:!0},{name:"until",coerce:"number",optional:!0},{name:"failureReason",coerce:null,optional:!0},{name:"routingKey",coerce:null,optional:!0},{name:"dryRun",coerce:"boolean",optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["dlq:write"],idempotent:!1,isQuery:!1,summary:"Time-bounded and filter-bounded DLQ replay with dryRun support."},{key:"events.exactlyOnce.confirmDelivery",commandPath:["events","exactlyOnce","confirmDelivery"],opId:"POST /v1/exactly-once/tokens/:token/confirm",method:"POST",pattern:"/v1/exactly-once/tokens/:token/confirm",pathParams:[{name:"token",key:"token"}],flags:[{name:"subscriptionGid",coerce:null,optional:!0},{name:"messageGid",coerce:null,optional:!0}],scopes:["messages:write"],idempotent:!1,isQuery:!1,summary:"Confirm delivery via its token so a retry MUST NOT redeliver the same message; presenting the (subscription, message) pair answers any token other than the pair's issued one REJECTED_DUPLICATE."},{key:"events.exactlyOnce.generateDeliveryToken",commandPath:["events","exactlyOnce","generateDeliveryToken"],opId:"POST /v1/exactly-once/tokens",method:"POST",pattern:"/v1/exactly-once/tokens",pathParams:[],flags:[{name:"subscriptionGid",coerce:null,optional:!1},{name:"messageGid",coerce:null,optional:!1},{name:"ttlMs",coerce:"number",optional:!0}],scopes:["messages:write"],idempotent:!0,isQuery:!1,summary:"Generate (or return existing) a unique delivery token bound to a (subscription, message) pair."},{key:"events.exactlyOnce.isDelivered",commandPath:["events","exactlyOnce","isDelivered"],opId:"GET /v1/exactly-once/delivered",method:"GET",pattern:"/v1/exactly-once/delivered",pathParams:[],flags:[{name:"subscriptionGid",coerce:null,optional:!1},{name:"messageGid",coerce:null,optional:!1}],scopes:["messages:read"],idempotent:!1,isQuery:!0,summary:"Check whether a message was already delivered to a subscription (exactly-once lookup)."},{key:"events.exchanges.create",commandPath:["events","exchanges","create"],opId:"POST /v1/exchanges",method:"POST",pattern:"/v1/exchanges",pathParams:[],flags:[{name:"name",coerce:null,optional:!1},{name:"type",coerce:null,optional:!1,choices:["direct","fanout","topic","headers"]},{name:"config",coerce:"json",optional:!0}],scopes:["exchanges:write"],idempotent:!0,isQuery:!1,summary:"Create an AMQP-style exchange (direct/fanout/topic/headers)."},{key:"events.exchanges.createBinding",commandPath:["events","exchanges","createBinding"],opId:"POST /v1/exchanges/:exchange_gid/bindings",method:"POST",pattern:"/v1/exchanges/:exchange_gid/bindings",pathParams:[{name:"exchangeGid",key:"exchange_gid"}],flags:[{name:"channelGid",coerce:null,optional:!1},{name:"routingKey",coerce:null,optional:!0},{name:"headerRules",coerce:"json",optional:!0}],scopes:["exchanges:write"],idempotent:!0,isQuery:!1,summary:"Bind a channel to an exchange with optional routing key/header rules."},{key:"events.exchanges.disable",commandPath:["events","exchanges","disable"],opId:"POST /v1/exchanges/:exchange_gid/disable",method:"POST",pattern:"/v1/exchanges/:exchange_gid/disable",pathParams:[{name:"exchangeGid",key:"exchange_gid"}],flags:[],scopes:["exchanges:write"],idempotent:!1,isQuery:!1,summary:"Disable an exchange (suspend routing)."},{key:"events.exchanges.dryRun",commandPath:["events","exchanges","dryRun"],opId:"POST /v1/exchanges/:exchange_gid/dry-run",method:"POST",pattern:"/v1/exchanges/:exchange_gid/dry-run",pathParams:[{name:"exchangeGid",key:"exchange_gid"}],flags:[{name:"routingKey",coerce:null,optional:!0},{name:"headers",coerce:"json",optional:!0}],scopes:["exchanges:read"],idempotent:!1,isQuery:!0,summary:"Resolve target channels for a routing key/headers without publishing."},{key:"events.exchanges.enable",commandPath:["events","exchanges","enable"],opId:"POST /v1/exchanges/:exchange_gid/enable",method:"POST",pattern:"/v1/exchanges/:exchange_gid/enable",pathParams:[{name:"exchangeGid",key:"exchange_gid"}],flags:[],scopes:["exchanges:write"],idempotent:!1,isQuery:!1,summary:"Re-enable a disabled exchange."},{key:"events.exchanges.get",commandPath:["events","exchanges","get"],opId:"GET /v1/exchanges/:exchange_gid",method:"GET",pattern:"/v1/exchanges/:exchange_gid",pathParams:[{name:"exchangeGid",key:"exchange_gid"}],flags:[],scopes:["exchanges:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a single exchange by GID, or 404."},{key:"events.exchanges.getByGid",commandPath:["events","exchanges","getByGid"],opId:"GET /v1/exchanges/:exchange_gid/raw",method:"GET",pattern:"/v1/exchanges/:exchange_gid/raw",pathParams:[{name:"gid",key:"exchange_gid"}],flags:[],scopes:["exchanges:read"],idempotent:!1,isQuery:!0,summary:"Fetch the raw exchange row by GID."},{key:"events.exchanges.list",commandPath:["events","exchanges","list"],opId:"GET /v1/exchanges",method:"GET",pattern:"/v1/exchanges",pathParams:[],flags:[],scopes:["exchanges:read"],idempotent:!1,isQuery:!0,summary:"List AMQP-style exchanges for an app."},{key:"events.exchanges.listBindings",commandPath:["events","exchanges","listBindings"],opId:"GET /v1/exchanges/:exchange_gid/bindings",method:"GET",pattern:"/v1/exchanges/:exchange_gid/bindings",pathParams:[{name:"exchangeGid",key:"exchange_gid"}],flags:[],scopes:["exchanges:read"],idempotent:!1,isQuery:!0,summary:"List bindings for an exchange."},{key:"events.exchanges.listWithStats",commandPath:["events","exchanges","listWithStats"],opId:"GET /v1/exchanges/stats",method:"GET",pattern:"/v1/exchanges/stats",pathParams:[],flags:[],scopes:["exchanges:read"],idempotent:!1,isQuery:!0,summary:"List exchanges for an app with a joined bindingsCount per exchange."},{key:"events.exchanges.publishToExchange",commandPath:["events","exchanges","publishToExchange"],opId:"POST /v1/exchanges/:exchange_gid/publish",method:"POST",pattern:"/v1/exchanges/:exchange_gid/publish",pathParams:[{name:"exchangeGid",key:"exchange_gid"}],flags:[{name:"payload",coerce:"json",optional:!1},{name:"routingKey",coerce:null,optional:!0},{name:"headers",coerce:"json",optional:!0},{name:"partitionKey",coerce:null,optional:!0},{name:"idempotencyKey",coerce:null,optional:!0},{name:"priority",coerce:"number",optional:!0},{name:"metadata",coerce:"json",optional:!0},{name:"federationEntityId",coerce:null,optional:!0},{name:"entityRef",coerce:"json",optional:!0}],scopes:["exchanges:write"],idempotent:!0,isQuery:!1,summary:"Publish a message through an exchange; routes to channels per exchange type."},{key:"events.exchanges.remove",commandPath:["events","exchanges","remove"],opId:"DELETE /v1/exchanges/:exchange_gid",method:"DELETE",pattern:"/v1/exchanges/:exchange_gid",pathParams:[{name:"exchangeGid",key:"exchange_gid"}],flags:[],scopes:["exchanges:admin"],idempotent:!1,isQuery:!1,summary:"Delete an exchange and its bindings atomically (admin scope)."},{key:"events.exchanges.removeBinding",commandPath:["events","exchanges","removeBinding"],opId:"DELETE /v1/exchange-bindings/:binding_gid",method:"DELETE",pattern:"/v1/exchange-bindings/:binding_gid",pathParams:[{name:"bindingGid",key:"binding_gid"}],flags:[],scopes:["exchanges:write"],idempotent:!1,isQuery:!1,summary:"Remove an exchange binding by GID."},{key:"events.exchanges.update",commandPath:["events","exchanges","update"],opId:"PATCH /v1/exchanges/:exchange_gid",method:"PATCH",pattern:"/v1/exchanges/:exchange_gid",pathParams:[{name:"exchangeGid",key:"exchange_gid"}],flags:[{name:"name",coerce:null,optional:!0},{name:"config",coerce:"json",optional:!0}],scopes:["exchanges:write"],idempotent:!1,isQuery:!1,summary:"Update exchange metadata/config (partial)."},{key:"events.kvStore.deleteEntry",commandPath:["events","kvStore","deleteEntry"],opId:"DELETE /v1/kv/:channelGid/:key",method:"DELETE",pattern:"/v1/kv/:channelGid/:key",pathParams:[{name:"channelGid",key:"channelGid"},{name:"key",key:"key"}],flags:[],scopes:["kv:write"],idempotent:!1,isQuery:!1,summary:"Delete (tombstone) a key on a compacted channel."},{key:"events.kvStore.getEntry",commandPath:["events","kvStore","getEntry"],opId:"GET /v1/kv/:channelGid/:key",method:"GET",pattern:"/v1/kv/:channelGid/:key",pathParams:[{name:"channelGid",key:"channelGid"},{name:"key",key:"key"}],flags:[],scopes:["kv:read"],idempotent:!1,isQuery:!0,summary:"Get the latest value for a key on a compacted channel."},{key:"events.kvStore.getHistory",commandPath:["events","kvStore","getHistory"],opId:"GET /v1/kv/:channelGid/:key/history",method:"GET",pattern:"/v1/kv/:channelGid/:key/history",pathParams:[{name:"channelGid",key:"channelGid"},{name:"key",key:"key"}],flags:[{name:"limit",coerce:"number",optional:!0}],scopes:["kv:read"],idempotent:!1,isQuery:!0,summary:"Get the recent message history for a key on a compacted channel."},{key:"events.kvStore.listKeys",commandPath:["events","kvStore","listKeys"],opId:"GET /v1/kv/:channelGid/keys",method:"GET",pattern:"/v1/kv/:channelGid/keys",pathParams:[{name:"channelGid",key:"channelGid"}],flags:[{name:"limit",coerce:"number",optional:!0}],scopes:["kv:read"],idempotent:!1,isQuery:!0,summary:"List all non-deleted keys for a compacted channel."},{key:"events.kvStore.setEntry",commandPath:["events","kvStore","setEntry"],opId:"PUT /v1/kv/:channelGid/:key",method:"PUT",pattern:"/v1/kv/:channelGid/:key",pathParams:[{name:"channelGid",key:"channelGid"},{name:"key",key:"key"}],flags:[{name:"value",coerce:"json",optional:!1},{name:"expectedRevision",coerce:"number",optional:!0}],scopes:["kv:write"],idempotent:!0,isQuery:!1,summary:"Set the latest value for a key on a compacted channel (latest-value-wins). Pass expectedRevision for optimistic concurrency control (stale revision -> 409 CONFLICT)."},{key:"events.messages.get",commandPath:["events","messages","get"],opId:"GET /v1/messages/:messageId",method:"GET",pattern:"/v1/messages/:messageId",pathParams:[{name:"messageGid",key:"messageId"}],flags:[],scopes:["messages:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a message by GID; 404 absent, 410 MESSAGE_EXPIRED."},{key:"events.messages.list",commandPath:["events","messages","list"],opId:"GET /v1/channels/:channelId/messages",method:"GET",pattern:"/v1/channels/:channelId/messages",pathParams:[{name:"channelGid",key:"channelId"}],flags:[{name:"limit",coerce:"number",optional:!0},{name:"afterTimestamp",coerce:"number",optional:!0}],scopes:["messages:read"],idempotent:!1,isQuery:!0,summary:"List messages for a channel (cursor-paginated)."},{key:"events.messages.listByApp",commandPath:["events","messages","listByApp"],opId:"GET /v1/apps/messages",method:"GET",pattern:"/v1/apps/messages",pathParams:[],flags:[{name:"limit",coerce:"number",optional:!0}],scopes:["messages:read"],idempotent:!1,isQuery:!0,summary:"List messages across every channel owned by an app, newest-first."},{key:"events.messages.listByPartition",commandPath:["events","messages","listByPartition"],opId:"GET /v1/channels/:channelId/messages/partition/:partitionKey",method:"GET",pattern:"/v1/channels/:channelId/messages/partition/:partitionKey",pathParams:[{name:"channelGid",key:"channelId"},{name:"partitionKey",key:"partitionKey"}],flags:[{name:"limit",coerce:"number",optional:!0}],scopes:["messages:read"],idempotent:!1,isQuery:!0,summary:"List messages for a channel by partition key (ordered)."},{key:"events.messages.publish",commandPath:["events","messages","publish"],opId:"POST /v1/channels/:channelId/messages",method:"POST",pattern:"/v1/channels/:channelId/messages",pathParams:[{name:"channelGid",key:"channelId"}],flags:[{name:"channelSlug",coerce:null,optional:!0},{name:"payload",coerce:"json",optional:!1},{name:"routingKey",coerce:null,optional:!0},{name:"partitionKey",coerce:null,optional:!0},{name:"idempotencyKey",coerce:null,optional:!0},{name:"metadata",coerce:"json",optional:!0},{name:"priority",coerce:"number",optional:!0},{name:"federationEntityId",coerce:null,optional:!0},{name:"entityRef",coerce:"json",optional:!0},{name:"npp",coerce:"json",optional:!0},{name:"attributes",coerce:"json",optional:!0},{name:"ttl",coerce:"number",optional:!0},{name:"zkProof",coerce:"json",optional:!0}],scopes:["messages:write"],idempotent:!0,isQuery:!1,summary:"Publish a single message to a channel."},{key:"events.messages.publishBatch",commandPath:["events","messages","publishBatch"],opId:"POST /v1/channels/:channelId/messages/batch",method:"POST",pattern:"/v1/channels/:channelId/messages/batch",pathParams:[{name:"channelGid",key:"channelId"}],flags:[{name:"messages",coerce:"json",optional:!1},{name:"idempotencyKey",coerce:null,optional:!0}],scopes:["messages:write"],idempotent:!0,isQuery:!1,summary:"Batch publish messages to a channel (all-or-nothing, up to 500)."},{key:"events.messages.publishBatchNpp",commandPath:["events","messages","publishBatchNpp"],opId:"POST /v1/channels/:channelId/messages/batch-npp",method:"POST",pattern:"/v1/channels/:channelId/messages/batch-npp",pathParams:[{name:"channelGid",key:"channelId"}],flags:[{name:"channelSlug",coerce:null,optional:!0},{name:"frameBytesB64",coerce:null,optional:!1},{name:"sessionId",coerce:"number",optional:!1},{name:"maxInFlight",coerce:"number",optional:!0},{name:"projectedLagMs",coerce:"number",optional:!0},{name:"records",coerce:"json",optional:!1}],scopes:["messages:write"],idempotent:!0,isQuery:!1,summary:"Publish a batch of NPP PUBLISH_BATCH records; returns a per-record BULK_ACK."},{key:"events.messages.publishGroup",commandPath:["events","messages","publishGroup"],opId:"POST /v1/channels/:channelId/messages/group",method:"POST",pattern:"/v1/channels/:channelId/messages/group",pathParams:[{name:"channelGid",key:"channelId"}],flags:[{name:"messages",coerce:"json",optional:!1},{name:"priority",coerce:"number",optional:!0}],scopes:["messages:write"],idempotent:!1,isQuery:!1,summary:"Publish a group of related messages atomically (ordered as a unit)."},{key:"events.observability.getChannelDeliveryOverview",commandPath:["events","observability","getChannelDeliveryOverview"],opId:"GET /v1/channels/:channelId/delivery-overview",method:"GET",pattern:"/v1/channels/:channelId/delivery-overview",pathParams:[{name:"channelGid",key:"channelId"}],flags:[],scopes:["channels:read"],idempotent:!1,isQuery:!0,summary:"Get a 24h delivery overview (publish + delivery stats, per-subscription health) for a channel."},{key:"events.observability.getChannelSubscriptionHealth",commandPath:["events","observability","getChannelSubscriptionHealth"],opId:"GET /v1/channels/:channelId/subscriptions/health",method:"GET",pattern:"/v1/channels/:channelId/subscriptions/health",pathParams:[{name:"channelGid",key:"channelId"}],flags:[],scopes:["channels:read"],idempotent:!1,isQuery:!0,summary:"Get health (success rate, latency, issues) for every subscription on a channel."},{key:"events.observability.getDeliveryTimeline",commandPath:["events","observability","getDeliveryTimeline"],opId:"GET /v1/deliveries/:deliveryId/timeline",method:"GET",pattern:"/v1/deliveries/:deliveryId/timeline",pathParams:[{name:"deliveryGid",key:"deliveryId"}],flags:[],scopes:["messages:read"],idempotent:!1,isQuery:!0,summary:"Get the attempt-by-attempt timeline for a single delivery."},{key:"events.observability.getMessageDeliveryStatus",commandPath:["events","observability","getMessageDeliveryStatus"],opId:"GET /v1/messages/:messageId/delivery-status",method:"GET",pattern:"/v1/messages/:messageId/delivery-status",pathParams:[{name:"messageGid",key:"messageId"}],flags:[],scopes:["messages:read"],idempotent:!1,isQuery:!0,summary:"Get aggregated delivery status for a message across all subscriptions."},{key:"events.observability.searchMessages",commandPath:["events","observability","searchMessages"],opId:"GET /v1/messages/search",method:"GET",pattern:"/v1/messages/search",pathParams:[],flags:[{name:"channelGid",coerce:null,optional:!0},{name:"routingKey",coerce:null,optional:!0},{name:"status",coerce:null,optional:!0,choices:["pending","processing","delivered","failed"]},{name:"fromDate",coerce:"number",optional:!0},{name:"toDate",coerce:"number",optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["messages:read"],idempotent:!1,isQuery:!0,summary:"Search messages with delivery stats by channel, routing key, status, and date range."},{key:"events.queueAdmin.purgeQueue",commandPath:["events","queueAdmin","purgeQueue"],opId:"POST /v1/subscriptions/:subscriptionId/queue/purge",method:"POST",pattern:"/v1/subscriptions/:subscriptionId/queue/purge",pathParams:[{name:"subscriptionGid",key:"subscriptionId"}],flags:[],scopes:["subscriptions:admin"],idempotent:!1,isQuery:!1,summary:"Purge all available and in-flight messages from a queue subscription's pull buffer."},{key:"events.queueAdmin.updateQueueConfig",commandPath:["events","queueAdmin","updateQueueConfig"],opId:"PATCH /v1/subscriptions/:subscriptionId/queue/config",method:"PATCH",pattern:"/v1/subscriptions/:subscriptionId/queue/config",pathParams:[{name:"subscriptionGid",key:"subscriptionId"}],flags:[{name:"config",coerce:"json",optional:!1}],scopes:["subscriptions:write"],idempotent:!1,isQuery:!1,summary:"Update queue subscription configuration (visibility timeout, retention, long-poll wait, DLQ redrive)."},{key:"events.queueBatch.changeMessageVisibilityBatch",commandPath:["events","queueBatch","changeMessageVisibilityBatch"],opId:"POST /v1/subscriptions/:subscriptionId/messages/batch-visibility",method:"POST",pattern:"/v1/subscriptions/:subscriptionId/messages/batch-visibility",pathParams:[{name:"subscriptionGid",key:"subscriptionId"}],flags:[{name:"entries",coerce:"json",optional:!1}],scopes:["subscriptions:write"],idempotent:!1,isQuery:!1,summary:"Change the visibility timeout of up to 10 received queue messages in one batch."},{key:"events.queueBatch.deleteMessageBatch",commandPath:["events","queueBatch","deleteMessageBatch"],opId:"POST /v1/subscriptions/:subscriptionId/messages/batch-delete",method:"POST",pattern:"/v1/subscriptions/:subscriptionId/messages/batch-delete",pathParams:[{name:"subscriptionGid",key:"subscriptionId"}],flags:[{name:"receiptHandles",coerce:"json",optional:!1}],scopes:["subscriptions:write"],idempotent:!1,isQuery:!1,summary:"Delete (acknowledge) up to 10 received queue messages by receipt handle in one batch."},{key:"events.queueQueries.getQueueInfo",commandPath:["events","queueQueries","getQueueInfo"],opId:"GET /v1/subscriptions/:subscriptionId/queue",method:"GET",pattern:"/v1/subscriptions/:subscriptionId/queue",pathParams:[{name:"subscriptionGid",key:"subscriptionId"}],flags:[],scopes:["subscriptions:read"],idempotent:!1,isQuery:!0,summary:"Get queue info and available/in-flight stats for a queue subscription."},{key:"events.queueQueries.listMessages",commandPath:["events","queueQueries","listMessages"],opId:"GET /v1/subscriptions/:subscriptionId/queue/messages",method:"GET",pattern:"/v1/subscriptions/:subscriptionId/queue/messages",pathParams:[{name:"subscriptionGid",key:"subscriptionId"}],flags:[{name:"limit",coerce:"number",optional:!0}],scopes:["subscriptions:read"],idempotent:!1,isQuery:!0,summary:"List messages accumulated in a queue subscription's pull buffer (browse, no claim)."},{key:"events.queues.changeMessageVisibility",commandPath:["events","queues","changeMessageVisibility"],opId:"POST /v1/subscriptions/:subscriptionId/messages/:receiptHandle/visibility",method:"POST",pattern:"/v1/subscriptions/:subscriptionId/messages/:receiptHandle/visibility",pathParams:[{name:"subscriptionGid",key:"subscriptionId"},{name:"receiptHandle",key:"receiptHandle"}],flags:[{name:"visibilityTimeoutSeconds",coerce:"number",optional:!1}],scopes:["subscriptions:write"],idempotent:!1,isQuery:!1,summary:"Change the visibility timeout of a received queue message."},{key:"events.queues.deleteMessage",commandPath:["events","queues","deleteMessage"],opId:"DELETE /v1/subscriptions/:subscriptionId/messages/:receiptHandle",method:"DELETE",pattern:"/v1/subscriptions/:subscriptionId/messages/:receiptHandle",pathParams:[{name:"subscriptionGid",key:"subscriptionId"},{name:"receiptHandle",key:"receiptHandle"}],flags:[],scopes:["subscriptions:write"],idempotent:!1,isQuery:!1,summary:"Delete (acknowledge) a received queue message by its receipt handle."},{key:"events.queues.receiveMessages",commandPath:["events","queues","receiveMessages"],opId:"POST /v1/subscriptions/:subscriptionId/messages/receive",method:"POST",pattern:"/v1/subscriptions/:subscriptionId/messages/receive",pathParams:[{name:"subscriptionGid",key:"subscriptionId"}],flags:[{name:"maxMessages",coerce:"number",optional:!0},{name:"visibilityTimeoutSeconds",coerce:"number",optional:!0},{name:"waitTimeSeconds",coerce:"number",optional:!0}],scopes:["subscriptions:read"],idempotent:!1,isQuery:!1,summary:"Receive up to N messages from a queue subscription, long-polling up to waitTimeSeconds (max 60) for the buffer to fill, with a visibility timeout."},{key:"events.receipts.acknowledge",commandPath:["events","receipts","acknowledge"],opId:"POST /v1/receipts/:receiptId/acknowledge",method:"POST",pattern:"/v1/receipts/:receiptId/acknowledge",pathParams:[{name:"receiptGid",key:"receiptId"}],flags:[{name:"acknowledgedAt",coerce:"number",optional:!0},{name:"metadata",coerce:"json",optional:!0}],scopes:["subscriptions:write"],idempotent:!1,isQuery:!1,summary:"Subscriber confirms receipt of a delivery, transitioning it from delivered to acknowledged."},{key:"events.receipts.get",commandPath:["events","receipts","get"],opId:"GET /v1/receipts/:receiptId",method:"GET",pattern:"/v1/receipts/:receiptId",pathParams:[{name:"gid",key:"receiptId"}],flags:[],scopes:["messages:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a single delivery receipt (report message) by GID, or null."},{key:"events.receipts.getByDelivery",commandPath:["events","receipts","getByDelivery"],opId:"GET /v1/deliveries/:deliveryId/receipt",method:"GET",pattern:"/v1/deliveries/:deliveryId/receipt",pathParams:[{name:"deliveryGid",key:"deliveryId"}],flags:[],scopes:["messages:read"],idempotent:!1,isQuery:!0,summary:"Retrieve the delivery receipt for a delivery by delivery GID."},{key:"events.receipts.getStats",commandPath:["events","receipts","getStats"],opId:"GET /v1/subscriptions/:subscriptionId/receipts/stats",method:"GET",pattern:"/v1/subscriptions/:subscriptionId/receipts/stats",pathParams:[{name:"subscriptionGid",key:"subscriptionId"}],flags:[{name:"startTime",coerce:"number",optional:!0},{name:"endTime",coerce:"number",optional:!0}],scopes:["messages:read"],idempotent:!1,isQuery:!0,summary:"Return receipt status counts and delivery-latency percentiles for a subscription over a window."},{key:"events.receipts.listByChannel",commandPath:["events","receipts","listByChannel"],opId:"GET /v1/channels/:channelId/receipts",method:"GET",pattern:"/v1/channels/:channelId/receipts",pathParams:[{name:"channelGid",key:"channelId"}],flags:[{name:"status",coerce:null,optional:!0,choices:["delivered","acknowledged","processed","rejected","expired"]},{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:"number",optional:!0}],scopes:["channels:read"],idempotent:!1,isQuery:!0,summary:"List delivery receipts for a channel filtered by status, cursor-paginated."},{key:"events.receipts.listByMessage",commandPath:["events","receipts","listByMessage"],opId:"GET /v1/messages/:messageId/receipts",method:"GET",pattern:"/v1/messages/:messageId/receipts",pathParams:[{name:"messageGid",key:"messageId"}],flags:[{name:"limit",coerce:"number",optional:!0}],scopes:["messages:read"],idempotent:!1,isQuery:!0,summary:"List delivery receipts (report messages) for a message."},{key:"events.receipts.listBySubscription",commandPath:["events","receipts","listBySubscription"],opId:"GET /v1/subscriptions/:subscriptionId/receipts",method:"GET",pattern:"/v1/subscriptions/:subscriptionId/receipts",pathParams:[{name:"subscriptionGid",key:"subscriptionId"}],flags:[{name:"limit",coerce:"number",optional:!0},{name:"cursor",coerce:"number",optional:!0}],scopes:["subscriptions:read"],idempotent:!1,isQuery:!0,summary:"List delivery receipts for a subscription, cursor-paginated."},{key:"events.scheduling.cancelScheduled",commandPath:["events","scheduling","cancelScheduled"],opId:"POST /v1/scheduled-messages/:scheduledMessageGid/cancel",method:"POST",pattern:"/v1/scheduled-messages/:scheduledMessageGid/cancel",pathParams:[{name:"scheduledMessageGid",key:"scheduledMessageGid"}],flags:[{name:"reason",coerce:null,optional:!0}],scopes:["scheduled:write"],idempotent:!1,isQuery:!1,summary:"Cancel a scheduled message before its deliver time."},{key:"events.scheduling.getScheduledStatus",commandPath:["events","scheduling","getScheduledStatus"],opId:"GET /v1/scheduled-messages/:scheduledMessageGid",method:"GET",pattern:"/v1/scheduled-messages/:scheduledMessageGid",pathParams:[{name:"scheduledMessageGid",key:"scheduledMessageGid"}],flags:[],scopes:["scheduled:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a scheduled message by GID, or 404."},{key:"events.scheduling.listScheduled",commandPath:["events","scheduling","listScheduled"],opId:"GET /v1/channels/:channelGid/scheduled-messages",method:"GET",pattern:"/v1/channels/:channelGid/scheduled-messages",pathParams:[{name:"channelGid",key:"channelGid"}],flags:[],scopes:["scheduled:read"],idempotent:!1,isQuery:!0,summary:"List scheduled messages for a channel."},{key:"events.scheduling.scheduleDelay",commandPath:["events","scheduling","scheduleDelay"],opId:"POST /v1/channels/:channelGid/schedule/delay",method:"POST",pattern:"/v1/channels/:channelGid/schedule/delay",pathParams:[{name:"channelGid",key:"channelGid"}],flags:[{name:"payload",coerce:"json",optional:!1},{name:"delayMs",coerce:"number",optional:!1},{name:"routingKey",coerce:null,optional:!0},{name:"partitionKey",coerce:null,optional:!0},{name:"idempotencyKey",coerce:null,optional:!0},{name:"priority",coerce:"number",optional:!0},{name:"metadata",coerce:"json",optional:!0}],scopes:["scheduled:write"],idempotent:!0,isQuery:!1,summary:"Schedule a message for delivery after a relative delay (ms)."},{key:"events.scheduling.scheduleMessage",commandPath:["events","scheduling","scheduleMessage"],opId:"POST /v1/channels/:channelGid/schedule",method:"POST",pattern:"/v1/channels/:channelGid/schedule",pathParams:[{name:"channelGid",key:"channelGid"}],flags:[{name:"payload",coerce:"json",optional:!1},{name:"deliverAt",coerce:"number",optional:!1},{name:"routingKey",coerce:null,optional:!0},{name:"partitionKey",coerce:null,optional:!0},{name:"idempotencyKey",coerce:null,optional:!0},{name:"priority",coerce:"number",optional:!0},{name:"metadata",coerce:"json",optional:!0}],scopes:["scheduled:write"],idempotent:!0,isQuery:!1,summary:"Schedule a message for delivery at an absolute timestamp."},{key:"events.scheduling.updateScheduled",commandPath:["events","scheduling","updateScheduled"],opId:"PATCH /v1/scheduled-messages/:scheduledMessageGid",method:"PATCH",pattern:"/v1/scheduled-messages/:scheduledMessageGid",pathParams:[{name:"scheduledMessageGid",key:"scheduledMessageGid"}],flags:[{name:"deliverAt",coerce:"number",optional:!0},{name:"payload",coerce:"json",optional:!0}],scopes:["scheduled:write"],idempotent:!1,isQuery:!1,summary:"Update a scheduled message's deliver time or payload."},{key:"events.security.scanChannelSample",commandPath:["events","security","scanChannelSample"],opId:"GET /v1/channels/:channelId/security/scan-sample",method:"GET",pattern:"/v1/channels/:channelId/security/scan-sample",pathParams:[{name:"channelGid",key:"channelId"}],flags:[{name:"limit",coerce:"number",optional:!0}],scopes:["messages:read"],idempotent:!0,isQuery:!0,summary:"Scan a channel's most recent messages (default 20, cap 50) with the threat scanner, the PII pattern library and event-catalogue conformance; answers per-check verdicts and per-message findings (category, severity, JSON path \u2014 never bytes)."},{key:"events.snapshots.createSnapshot",commandPath:["events","snapshots","createSnapshot"],opId:"POST /v1/subscriptions/:subscriptionGid/snapshots",method:"POST",pattern:"/v1/subscriptions/:subscriptionGid/snapshots",pathParams:[{name:"subscriptionGid",key:"subscriptionGid"}],flags:[{name:"name",coerce:null,optional:!0},{name:"metadata",coerce:"json",optional:!0}],scopes:["snapshots:write"],idempotent:!0,isQuery:!1,summary:"Create a snapshot capturing a subscription's read position."},{key:"events.snapshots.listSnapshots",commandPath:["events","snapshots","listSnapshots"],opId:"GET /v1/subscriptions/:subscriptionGid/snapshots",method:"GET",pattern:"/v1/subscriptions/:subscriptionGid/snapshots",pathParams:[{name:"subscriptionGid",key:"subscriptionGid"}],flags:[],scopes:["snapshots:read"],idempotent:!1,isQuery:!0,summary:"List snapshots for a subscription."},{key:"events.snapshots.seekToSnapshot",commandPath:["events","snapshots","seekToSnapshot"],opId:"POST /v1/snapshots/:snapshotGid/seek",method:"POST",pattern:"/v1/snapshots/:snapshotGid/seek",pathParams:[{name:"snapshotGid",key:"snapshotGid"}],flags:[],scopes:["snapshots:write"],idempotent:!1,isQuery:!1,summary:"Seek a subscription's read position to a committed snapshot offset."},{key:"events.snapshots.seekToTimestamp",commandPath:["events","snapshots","seekToTimestamp"],opId:"POST /v1/channels/:channelGid/seek-to-timestamp",method:"POST",pattern:"/v1/channels/:channelGid/seek-to-timestamp",pathParams:[{name:"channelGid",key:"channelGid"}],flags:[{name:"timestamp",coerce:"number",optional:!1}],scopes:["snapshots:write"],idempotent:!1,isQuery:!1,summary:"Seek a channel's read position to a point-in-time and redeliver."},{key:"events.sources.getSource",commandPath:["events","sources","getSource"],opId:"GET /v1/sources/:sourceGid",method:"GET",pattern:"/v1/sources/:sourceGid",pathParams:[{name:"sourceGid",key:"sourceGid"}],flags:[],scopes:["observability:read"],idempotent:!1,isQuery:!0,summary:"Retrieve one WebSocket source binding by GID with its current status; a cross-org GID is 403."},{key:"events.sources.listSources",commandPath:["events","sources","listSources"],opId:"GET /v1/sources",method:"GET",pattern:"/v1/sources",pathParams:[],flags:[],scopes:["observability:read"],idempotent:!1,isQuery:!0,summary:"List the organization's WebSocket source bindings with their current status."},{key:"events.sources.pauseSource",commandPath:["events","sources","pauseSource"],opId:"POST /v1/sources/:sourceGid/pause",method:"POST",pattern:"/v1/sources/:sourceGid/pause",pathParams:[{name:"sourceGid",key:"sourceGid"}],flags:[],scopes:["observability:write"],idempotent:!1,isQuery:!1,summary:"Pause a WebSocket source: ingestion stops and the binding is retained. Idempotent."},{key:"events.sources.removeSource",commandPath:["events","sources","removeSource"],opId:"DELETE /v1/sources/:sourceGid",method:"DELETE",pattern:"/v1/sources/:sourceGid",pathParams:[{name:"sourceGid",key:"sourceGid"}],flags:[],scopes:["observability:write"],idempotent:!1,isQuery:!1,summary:"Remove a WebSocket source binding: it leaves the organization's list and its read door; a cross-org GID is 403."},{key:"events.sources.resumeSource",commandPath:["events","sources","resumeSource"],opId:"POST /v1/sources/:sourceGid/resume",method:"POST",pattern:"/v1/sources/:sourceGid/resume",pathParams:[{name:"sourceGid",key:"sourceGid"}],flags:[],scopes:["observability:write"],idempotent:!1,isQuery:!1,summary:"Resume a paused WebSocket source: ingestion restarts on the SAME binding and config. Idempotent."},{key:"events.stats.retrieve",commandPath:["events","stats","retrieve"],opId:"GET /v1/events/stats",method:"GET",pattern:"/v1/events/stats",pathParams:[],flags:[],scopes:["channels:read"],idempotent:!1,isQuery:!0,summary:"Org stat tiles \u2014 operational channel and subscription totals and messages published, from bounded per-org counters."},{key:"events.streams.commitOffset",commandPath:["events","streams","commitOffset"],opId:"POST /v1/channels/:channelId/streams/offset",method:"POST",pattern:"/v1/channels/:channelId/streams/offset",pathParams:[{name:"channelGid",key:"channelId"}],flags:[{name:"consumerId",coerce:null,optional:!1},{name:"offset",coerce:"number",optional:!1}],scopes:["streams:write"],idempotent:!1,isQuery:!1,summary:"Commit a consumer's stream offset (advance read position)."},{key:"events.streams.getOffset",commandPath:["events","streams","getOffset"],opId:"GET /v1/channels/:channelId/streams/offset",method:"GET",pattern:"/v1/channels/:channelId/streams/offset",pathParams:[{name:"channelGid",key:"channelId"}],flags:[{name:"consumerId",coerce:null,optional:!1}],scopes:["streams:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a consumer's current committed stream offset."},{key:"events.streams.listOffsets",commandPath:["events","streams","listOffsets"],opId:"GET /v1/channels/:channelId/streams/offsets",method:"GET",pattern:"/v1/channels/:channelId/streams/offsets",pathParams:[{name:"channelGid",key:"channelId"}],flags:[],scopes:["streams:read"],idempotent:!1,isQuery:!0,summary:"List all committed consumer offsets for a stream channel."},{key:"events.streams.openCrossOrgStream",commandPath:["events","streams","openCrossOrgStream"],opId:"GET /v1/channels/:channelId/streams/cross-org",method:"GET",pattern:"/v1/channels/:channelId/streams/cross-org",pathParams:[{name:"channelGid",key:"channelId"}],flags:[{name:"publisherAppId",coerce:null,optional:!1},{name:"subscriberOrgId",coerce:null,optional:!1}],scopes:["streams:read"],idempotent:!1,isQuery:!0,summary:"Open a cross-org stream reader and capture the grant scope snapshot."},{key:"events.streams.readFromOffset",commandPath:["events","streams","readFromOffset"],opId:"GET /v1/channels/:channelId/streams/read",method:"GET",pattern:"/v1/channels/:channelId/streams/read",pathParams:[{name:"channelGid",key:"channelId"}],flags:[{name:"offset",coerce:"number",optional:!1},{name:"limit",coerce:"number",optional:!0},{name:"subscriptionGid",coerce:null,optional:!0}],scopes:["streams:read"],idempotent:!1,isQuery:!1,summary:"Read a bounded stream window anchored at an offset (replay)."},{key:"events.streams.readFromOffsetWithGrant",commandPath:["events","streams","readFromOffsetWithGrant"],opId:"POST /v1/channels/:channelId/streams/cross-org/read",method:"POST",pattern:"/v1/channels/:channelId/streams/cross-org/read",pathParams:[{name:"channelGid",key:"channelId"}],flags:[{name:"offset",coerce:"number",optional:!1},{name:"limit",coerce:"number",optional:!0},{name:"publisherAppId",coerce:null,optional:!1},{name:"subscriberOrgId",coerce:null,optional:!1},{name:"snapshot",coerce:"json",optional:!1}],scopes:["streams:read"],idempotent:!1,isQuery:!1,summary:"Read a cross-org stream window with grant-scope enforcement."},{key:"events.streams.seekToTimestamp",commandPath:["events","streams","seekToTimestamp"],opId:"POST /v1/channels/:channelId/streams/seek",method:"POST",pattern:"/v1/channels/:channelId/streams/seek",pathParams:[{name:"channelGid",key:"channelId"}],flags:[{name:"consumerId",coerce:null,optional:!1},{name:"timestamp",coerce:"number",optional:!1}],scopes:["streams:write"],idempotent:!1,isQuery:!1,summary:"Seek a consumer's stream position to a target timestamp (replay)."},{key:"events.subscriptions.archive",commandPath:["events","subscriptions","archive"],opId:"POST /v1/subscriptions/:subscriptionId/archive",method:"POST",pattern:"/v1/subscriptions/:subscriptionId/archive",pathParams:[{name:"subscriptionGid",key:"subscriptionId"}],flags:[],scopes:["subscriptions:write"],idempotent:!1,isQuery:!1,summary:"Archive a subscription (soft-delete; cancels pending deliveries)."},{key:"events.subscriptions.create",commandPath:["events","subscriptions","create"],opId:"POST /v1/channels/:channelId/subscriptions",method:"POST",pattern:"/v1/channels/:channelId/subscriptions",pathParams:[{name:"channelGid",key:"channelId"}],flags:[{name:"subscribesTo",coerce:null,optional:!0,choices:["messages","failures"]},{name:"idempotencyKey",coerce:null,optional:!0},{name:"consumerAppId",coerce:null,optional:!0},{name:"name",coerce:null,optional:!1},{name:"description",coerce:null,optional:!0},{name:"type",coerce:null,optional:!1,choices:["webhook","queue","adapter"]},{name:"filter",coerce:"json",optional:!0},{name:"subjectFilter",coerce:null,optional:!0},{name:"endpoint",coerce:"json",optional:!1},{name:"delivery",coerce:"json",optional:!0},{name:"dlq",coerce:"json",optional:!0},{name:"deliveryConfig",coerce:"json",optional:!0},{name:"metadata",coerce:"json",optional:!0},{name:"transformPipeId",coerce:null,optional:!0},{name:"transformTimeout",coerce:"number",optional:!0},{name:"transformOnFailure",coerce:null,optional:!0,choices:["deliver_raw","drop_to_dlq"]}],scopes:["subscriptions:write"],idempotent:!0,isQuery:!1,summary:"Create a subscription on a channel (respects Idempotency-Key)."},{key:"events.subscriptions.get",commandPath:["events","subscriptions","get"],opId:"GET /v1/subscriptions/:subscriptionId",method:"GET",pattern:"/v1/subscriptions/:subscriptionId",pathParams:[{name:"subscriptionGid",key:"subscriptionId"}],flags:[],scopes:["subscriptions:read"],idempotent:!1,isQuery:!0,summary:"Retrieve a single subscription by GID, or 404."},{key:"events.subscriptions.list",commandPath:["events","subscriptions","list"],opId:"GET /v1/channels/:channelId/subscriptions",method:"GET",pattern:"/v1/channels/:channelId/subscriptions",pathParams:[{name:"channelGid",key:"channelId"}],flags:[{name:"status",coerce:null,optional:!0,choices:["active","paused","disabled","archived"]}],scopes:["subscriptions:read"],idempotent:!1,isQuery:!0,summary:"List subscriptions for a channel (optional status filter)."},{key:"events.subscriptions.listByApp",commandPath:["events","subscriptions","listByApp"],opId:"GET /v1/apps/subscriptions",method:"GET",pattern:"/v1/apps/subscriptions",pathParams:[],flags:[{name:"status",coerce:null,optional:!0,choices:["active","paused","disabled","archived"]}],scopes:["subscriptions:read"],idempotent:!1,isQuery:!0,summary:"List subscriptions whose channel is owned by an app."},{key:"events.subscriptions.pause",commandPath:["events","subscriptions","pause"],opId:"POST /v1/subscriptions/:subscriptionId/pause",method:"POST",pattern:"/v1/subscriptions/:subscriptionId/pause",pathParams:[{name:"subscriptionGid",key:"subscriptionId"}],flags:[],scopes:["subscriptions:write"],idempotent:!1,isQuery:!1,summary:"Pause a subscription (skip fan-out to it; remains visible)."},{key:"events.subscriptions.remove",commandPath:["events","subscriptions","remove"],opId:"DELETE /v1/subscriptions/:subscriptionId",method:"DELETE",pattern:"/v1/subscriptions/:subscriptionId",pathParams:[{name:"subscriptionGid",key:"subscriptionId"}],flags:[],scopes:["subscriptions:admin"],idempotent:!0,isQuery:!1,summary:"Delete a subscription \u2014 soft-delete: archive it and cancel pending deliveries (admin scope)."},{key:"events.subscriptions.resume",commandPath:["events","subscriptions","resume"],opId:"POST /v1/subscriptions/:subscriptionId/resume",method:"POST",pattern:"/v1/subscriptions/:subscriptionId/resume",pathParams:[{name:"subscriptionGid",key:"subscriptionId"}],flags:[],scopes:["subscriptions:write"],idempotent:!1,isQuery:!1,summary:"Resume a paused subscription (no replay of skipped publishes)."},{key:"events.subscriptions.revealSecret",commandPath:["events","subscriptions","revealSecret"],opId:"POST /v1/subscriptions/:subscriptionId/secret/reveal",method:"POST",pattern:"/v1/subscriptions/:subscriptionId/secret/reveal",pathParams:[{name:"subscriptionGid",key:"subscriptionId"}],flags:[],scopes:["subscriptions:admin"],idempotent:!0,isQuery:!1,summary:"Reveal a webhook subscription's signing secret \u2014 dedicated, audited, admin-only."},{key:"events.subscriptions.rotateSecret",commandPath:["events","subscriptions","rotateSecret"],opId:"POST /v1/subscriptions/:subscriptionId/rotate",method:"POST",pattern:"/v1/subscriptions/:subscriptionId/rotate",pathParams:[{name:"subscriptionGid",key:"subscriptionId"}],flags:[{name:"rotationGraceMs",coerce:"number",optional:!0}],scopes:["subscriptions:write"],idempotent:!1,isQuery:!1,summary:"Rotate the webhook signing secret (rolling rotation grace window)."},{key:"events.subscriptions.subscribe",commandPath:["events","subscriptions","subscribe"],opId:"POST /v1/channels/:channelId/subscribe",method:"POST",pattern:"/v1/channels/:channelId/subscribe",pathParams:[{name:"channelGid",key:"channelId"}],flags:[{name:"channelSlug",coerce:null,optional:!0},{name:"mode",coerce:null,optional:!1,choices:["log","queue","tail"]},{name:"deliveryPreference",coerce:null,optional:!1,choices:["push","pull","hybrid"]},{name:"cursor",coerce:null,optional:!1},{name:"consumerId",coerce:null,optional:!1},{name:"consumerThumbprint",coerce:null,optional:!0},{name:"qosCapabilities",coerce:"number",optional:!0},{name:"filters",coerce:"json",optional:!0}],scopes:["subscriptions:read"],idempotent:!1,isQuery:!1,summary:"Open a subscription on a channel and set where it starts reading."},{key:"events.subscriptions.unsubscribe",commandPath:["events","subscriptions","unsubscribe"],opId:"POST /v1/subscriptions/:subscriptionId/unsubscribe",method:"POST",pattern:"/v1/subscriptions/:subscriptionId/unsubscribe",pathParams:[{name:"subscriptionGid",key:"subscriptionId"}],flags:[],scopes:["subscriptions:read"],idempotent:!1,isQuery:!1,summary:"Unsubscribe a pull consumer: release in-flight messages, move its read position to the newest message, keep the subscription."},{key:"events.subscriptions.update",commandPath:["events","subscriptions","update"],opId:"PATCH /v1/subscriptions/:subscriptionId",method:"PATCH",pattern:"/v1/subscriptions/:subscriptionId",pathParams:[{name:"subscriptionGid",key:"subscriptionId"}],flags:[{name:"name",coerce:null,optional:!0},{name:"description",coerce:null,optional:!0},{name:"status",coerce:null,optional:!0,choices:["active","paused","disabled","archived"]},{name:"filter",coerce:"json",optional:!0},{name:"endpoint",coerce:"json",optional:!0},{name:"delivery",coerce:"json",optional:!0},{name:"dlq",coerce:"json",optional:!0},{name:"metadata",coerce:"json",optional:!0},{name:"deliveryConfig",coerce:"json",optional:!0},{name:"transformPipeId",coerce:null,optional:!0},{name:"transformTimeout",coerce:"number",optional:!0},{name:"transformOnFailure",coerce:null,optional:!0,choices:["deliver_raw","drop_to_dlq"]}],scopes:["subscriptions:write"],idempotent:!1,isQuery:!1,summary:"Update subscription name/status/endpoint/filter (partial)."},{key:"events.systemEvents.listCatalog",commandPath:["events","systemEvents","listCatalog"],opId:"GET /v1/system-events/catalog",method:"GET",pattern:"/v1/system-events/catalog",pathParams:[],flags:[],scopes:["events:read"],idempotent:!1,isQuery:!0,summary:"List the subscribable SYSTEM-event catalog for the caller's org."},{key:"events.systemEvents.listDeliveries",commandPath:["events","systemEvents","listDeliveries"],opId:"GET /v1/system-events/subscriptions/:subscriptionId/deliveries",method:"GET",pattern:"/v1/system-events/subscriptions/:subscriptionId/deliveries",pathParams:[{name:"subscriptionGid",key:"subscriptionId"}],flags:[{name:"limit",coerce:"number",optional:!0}],scopes:["events:read"],idempotent:!1,isQuery:!0,summary:"List recent delivery attempts for an external SYSTEM-event subscription (metadata only)."},{key:"events.systemEvents.rotateSecret",commandPath:["events","systemEvents","rotateSecret"],opId:"POST /v1/system-events/subscriptions/:subscriptionId/rotate",method:"POST",pattern:"/v1/system-events/subscriptions/:subscriptionId/rotate",pathParams:[{name:"subscriptionGid",key:"subscriptionId"}],flags:[],scopes:["events:write"],idempotent:!1,isQuery:!1,summary:"Rotate an external SYSTEM-event subscription's HMAC secret (returned once)."},{key:"events.systemEvents.subscribe",commandPath:["events","systemEvents","subscribe"],opId:"POST /v1/system-events/subscriptions",method:"POST",pattern:"/v1/system-events/subscriptions",pathParams:[],flags:[{name:"slug",coerce:null,optional:!1},{name:"name",coerce:null,optional:!0},{name:"endpoint",coerce:"json",optional:!1},{name:"auth",coerce:null,optional:!0}],scopes:["events:write"],idempotent:!1,isQuery:!1,summary:"Subscribe an external endpoint to a reserved SYSTEM channel (sanitized delivery; one-time HMAC secret)."},{key:"events.systemEvents.unsubscribe",commandPath:["events","systemEvents","unsubscribe"],opId:"DELETE /v1/system-events/subscriptions/:subscriptionId",method:"DELETE",pattern:"/v1/system-events/subscriptions/:subscriptionId",pathParams:[{name:"subscriptionGid",key:"subscriptionId"}],flags:[],scopes:["events:write"],idempotent:!1,isQuery:!1,summary:"Unsubscribe an external SYSTEM-event subscription (archive + revoke credential)."},{key:"events.tieredStorage.getColdTierReplay",commandPath:["events","tieredStorage","getColdTierReplay"],opId:"POST /v1/channels/:channelGid/cold-tier/replay",method:"POST",pattern:"/v1/channels/:channelGid/cold-tier/replay",pathParams:[{name:"channelGid",key:"channelGid"}],flags:[{name:"fromTime",coerce:"number",optional:!1},{name:"toTime",coerce:"number",optional:!1},{name:"limit",coerce:"number",optional:!0}],scopes:["storage_policies:read"],idempotent:!1,isQuery:!0,summary:"Deprecated (the per-channel tier policy is retired): replay a channel's archived records published in a time range, within the plan's cold depth, as metadata only (timestamp, size, checksum)."},{key:"events.timeTravel.diffChannelBetween",commandPath:["events","timeTravel","diffChannelBetween"],opId:"POST /v1/channels/:channelGid/time-travel/diff",method:"POST",pattern:"/v1/channels/:channelGid/time-travel/diff",pathParams:[{name:"channelGid",key:"channelGid"}],flags:[{name:"fromTime",coerce:"number",optional:!1},{name:"toTime",coerce:"number",optional:!1},{name:"limit",coerce:"number",optional:!0}],scopes:["time_travel:read"],idempotent:!1,isQuery:!0,summary:"Return messages added to a channel between two timestamps (append-only diff)."},{key:"events.timeTravel.getChannelSnapshotAtTime",commandPath:["events","timeTravel","getChannelSnapshotAtTime"],opId:"POST /v1/channels/:channelGid/time-travel/snapshot",method:"POST",pattern:"/v1/channels/:channelGid/time-travel/snapshot",pathParams:[{name:"channelGid",key:"channelGid"}],flags:[{name:"asOf",coerce:"number",optional:!1},{name:"limit",coerce:"number",optional:!0}],scopes:["time_travel:read"],idempotent:!1,isQuery:!0,summary:"Return all messages in a channel as of a timestamp (point-in-time snapshot)."},{key:"events.timeTravel.getChannelSnapshotAtTimeWithGrantApi",commandPath:["events","timeTravel","getChannelSnapshotAtTimeWithGrantApi"],opId:"POST /v1/channels/:channelGid/time-travel/snapshot/grant",method:"POST",pattern:"/v1/channels/:channelGid/time-travel/snapshot/grant",pathParams:[{name:"channelGid",key:"channelGid"}],flags:[{name:"asOf",coerce:"number",optional:!1},{name:"publisherAppId",coerce:null,optional:!1},{name:"subscriberOrgId",coerce:null,optional:!1},{name:"historicalEventTypes",coerce:"json",optional:!1},{name:"limit",coerce:"number",optional:!0}],scopes:["time_travel:read"],idempotent:!1,isQuery:!1,summary:"Cross-org point-in-time channel snapshot; grant scope resolved at QUERY time, not at asOf."},{key:"events.timeTravel.getMessageAtTime",commandPath:["events","timeTravel","getMessageAtTime"],opId:"POST /v1/messages/:messageGid/time-travel",method:"POST",pattern:"/v1/messages/:messageGid/time-travel",pathParams:[{name:"messageGid",key:"messageGid"}],flags:[{name:"asOf",coerce:"number",optional:!1}],scopes:["time_travel:read"],idempotent:!1,isQuery:!0,summary:"Get a message as it existed at a point in time (append-only: the messages published at or before asOf)."},{key:"events.transactional.consumeAndPublish",commandPath:["events","transactional","consumeAndPublish"],opId:"POST /v1/messages/transactional",method:"POST",pattern:"/v1/messages/transactional",pathParams:[],flags:[{name:"sourceMessageGid",coerce:null,optional:!1},{name:"targetChannelGid",coerce:null,optional:!1},{name:"transformedPayload",coerce:"json",optional:!1},{name:"routingKey",coerce:null,optional:!0},{name:"partitionKey",coerce:null,optional:!0}],scopes:["messages:write"],idempotent:!0,isQuery:!1,summary:"Atomically consume a source message and publish a transformed message to a target channel."},{key:"events.transactional.consumeAndPublishMulti",commandPath:["events","transactional","consumeAndPublishMulti"],opId:"POST /v1/messages/transactional/multi",method:"POST",pattern:"/v1/messages/transactional/multi",pathParams:[],flags:[{name:"sourceMessageGid",coerce:null,optional:!1},{name:"targets",coerce:"json",optional:!1}],scopes:["messages:write"],idempotent:!0,isQuery:!1,summary:"Atomically consume a source message and publish transformed messages to multiple target channels (all-or-none)."},{key:"events.transactional.listDeliveriesByGroupGrantFifo",commandPath:["events","transactional","listDeliveriesByGroupGrantFifo"],opId:"GET /v1/groups/:groupId/grants/:grantId/deliveries",method:"GET",pattern:"/v1/groups/:groupId/grants/:grantId/deliveries",pathParams:[{name:"groupId",key:"groupId"},{name:"grantId",key:"grantId"}],flags:[],scopes:["messages:read"],idempotent:!1,isQuery:!0,summary:"List per-(group, grant) FIFO-ordered deliveries by publish order."},{key:"feed.customers.list",commandPath:["feed","customers","list"],opId:"GET /v1/feeds/customers",method:"GET",pattern:"/v1/feeds/customers",pathParams:[],flags:[{name:"listingGid",coerce:null,optional:!0},{name:"status",coerce:null,optional:!0,choices:["pending","active","paused","cancelled","expired"]},{name:"cursor",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["feed:read"],idempotent:!1,isQuery:!0,summary:"List your feed customers, newest first: each buyer's relationship, its binding count and the events per second arriving to it."},{key:"feed.customers.retrieve",commandPath:["feed","customers","retrieve"],opId:"GET /v1/feeds/customers/:subscriptionId",method:"GET",pattern:"/v1/feeds/customers/:subscriptionId",pathParams:[{name:"subscriptionGid",key:"subscriptionId"}],flags:[],scopes:["feed:read"],idempotent:!1,isQuery:!0,summary:"Retrieve one of your feed customers with its arrivals: each 30-second bucket of the last hour and today."},{key:"feed.feedDeliveryBindings.listBindings",commandPath:["feed","feedDeliveryBindings","listBindings"],opId:"GET /v1/feeds/subscriptions/:subscriptionId/bindings",method:"GET",pattern:"/v1/feeds/subscriptions/:subscriptionId/bindings",pathParams:[{name:"feedSubscriptionGid",key:"subscriptionId"}],flags:[],scopes:["feed:read"],idempotent:!1,isQuery:!0,summary:"List the delivery bindings of a feed subscription \u2014 one row per target app."},{key:"feed.listings.declarePromise",commandPath:["feed","listings","declarePromise"],opId:"PUT /v1/feeds/listings/:listingId/promise",method:"PUT",pattern:"/v1/feeds/listings/:listingId/promise",pathParams:[{name:"listingGid",key:"listingId"}],flags:[{name:"retentionDays",coerce:"number",optional:!1},{name:"region",coerce:null,optional:!1},{name:"resaleAllowed",coerce:"boolean",optional:!1},{name:"afterRevoke",coerce:null,optional:!1}],scopes:["listings:write"],idempotent:!1,isQuery:!1,summary:"Declare or change your listing's promise; each change is signed as a new declaration and the previous one stays readable by its date."},{key:"feed.listings.enrichment",commandPath:["feed","listings","enrichment"],opId:"GET /v1/feeds/enrichment/listings",method:"GET",pattern:"/v1/feeds/enrichment/listings",pathParams:[],flags:[],scopes:["listings:read"],idempotent:!1,isQuery:!0,summary:"Per-listing customer counts and arrivals per second for every listing you publish, counted by npayload."},{key:"feed.listings.get",commandPath:["feed","listings","get"],opId:"GET /v1/feeds/mirror/listings/:listingId",method:"GET",pattern:"/v1/feeds/mirror/listings/:listingId",pathParams:[{name:"listingGid",key:"listingId"}],flags:[],scopes:["listings:read"],idempotent:!1,isQuery:!0,summary:"Read the Cell's mirrored copy of a feed listing (Admin is canonical) with its sync bookkeeping."},{key:"feed.listings.promise",commandPath:["feed","listings","promise"],opId:"GET /v1/feeds/listings/:listingId/promise",method:"GET",pattern:"/v1/feeds/listings/:listingId/promise",pathParams:[{name:"listingGid",key:"listingId"}],flags:[{name:"at",coerce:"number",optional:!0}],scopes:["feed:read"],idempotent:!1,isQuery:!0,summary:"Read a listing's promise: how long records are kept, where they stay, whether they may be passed on and what happens after a revoke, as the publisher signed it."},{key:"feed.publisherReputation.getOwnReputation",commandPath:["feed","publisherReputation","getOwnReputation"],opId:"GET /v1/feeds/reputation/me",method:"GET",pattern:"/v1/feeds/reputation/me",pathParams:[],flags:[],scopes:["publishers:read"],idempotent:!1,isQuery:!0,summary:"Read your own publisher's reputation score and standing (owner-only; read-only)."},{key:"feed.publishers.get",commandPath:["feed","publishers","get"],opId:"GET /v1/feeds/mirror/publishers/:publisherId",method:"GET",pattern:"/v1/feeds/mirror/publishers/:publisherId",pathParams:[{name:"publisherGid",key:"publisherId"}],flags:[],scopes:["publishers:read"],idempotent:!1,isQuery:!0,summary:"Read the Cell's mirrored copy of a feed publisher (Admin is canonical): the Publisher Shape for every reader, plus sync bookkeeping and Connect state for the owning org."},{key:"feed.reviews.create",commandPath:["feed","reviews","create"],opId:"POST /v1/feeds/subscriptions/:subscriptionId/reviews",method:"POST",pattern:"/v1/feeds/subscriptions/:subscriptionId/reviews",pathParams:[{name:"feedSubscriptionGid",key:"subscriptionId"}],flags:[{name:"rating",coerce:"number",optional:!1},{name:"title",coerce:null,optional:!0},{name:"body",coerce:null,optional:!0}],scopes:["feed:write"],idempotent:!0,isQuery:!1,summary:"Leave a review (1\u20135 stars + text) on the listing of one of your active feed subscriptions."},{key:"feed.reviews.flagReview",commandPath:["feed","reviews","flagReview"],opId:"POST /v1/feeds/reviews/:reviewId/flag",method:"POST",pattern:"/v1/feeds/reviews/:reviewId/flag",pathParams:[{name:"reviewGid",key:"reviewId"}],flags:[{name:"reason",coerce:null,optional:!1}],scopes:["feed:write"],idempotent:!0,isQuery:!1,summary:"Flag a review for moderation (status \u2192 flagged) with a reason."},{key:"feed.reviews.get",commandPath:["feed","reviews","get"],opId:"GET /v1/feeds/reviews/:reviewId",method:"GET",pattern:"/v1/feeds/reviews/:reviewId",pathParams:[{name:"reviewGid",key:"reviewId"}],flags:[],scopes:["feed:read"],idempotent:!1,isQuery:!0,summary:"Read one feed review by gid (a hidden review is visible only to its author)."},{key:"feed.reviews.getListingStatsBatch",commandPath:["feed","reviews","getListingStatsBatch"],opId:"POST /v1/feeds/listings/review-stats",method:"POST",pattern:"/v1/feeds/listings/review-stats",pathParams:[],flags:[{name:"listingGids",coerce:"json",optional:!1}],scopes:["feed:read"],idempotent:!1,isQuery:!0,summary:"Review count and average rating for several feed listings in one read (hidden reviews never counted; unknown gids omitted)."},{key:"feed.reviews.listByListing",commandPath:["feed","reviews","listByListing"],opId:"GET /v1/feeds/listings/:listingId/reviews",method:"GET",pattern:"/v1/feeds/listings/:listingId/reviews",pathParams:[{name:"listingGid",key:"listingId"}],flags:[{name:"limit",coerce:"number",optional:!0}],scopes:["feed:read"],idempotent:!1,isQuery:!0,summary:"List the published reviews of a feed listing (hidden reviews excluded)."},{key:"feed.reviews.respondToReview",commandPath:["feed","reviews","respondToReview"],opId:"POST /v1/feeds/reviews/:reviewId/respond",method:"POST",pattern:"/v1/feeds/reviews/:reviewId/respond",pathParams:[{name:"reviewGid",key:"reviewId"}],flags:[{name:"response",coerce:null,optional:!1}],scopes:["feed:write"],idempotent:!0,isQuery:!1,summary:"Post the publisher's one response to a review of its listing (exactly one per review)."},{key:"feed.subscriptions.getEnrichmentForSubscriber",commandPath:["feed","subscriptions","getEnrichmentForSubscriber"],opId:"GET /v1/feeds/enrichment/subscriptions",method:"GET",pattern:"/v1/feeds/enrichment/subscriptions",pathParams:[],flags:[{name:"subscriberOrgId",coerce:null,optional:!0}],scopes:["feed:read"],idempotent:!1,isQuery:!0,summary:"One org-pinned read: current-period usage and active delivery-binding count for every feed subscription of the calling org."},{key:"feed.subscriptions.getTrialStatus",commandPath:["feed","subscriptions","getTrialStatus"],opId:"GET /v1/feeds/subscriptions/:subscriptionId/trial",method:"GET",pattern:"/v1/feeds/subscriptions/:subscriptionId/trial",pathParams:[{name:"subscriptionGid",key:"subscriptionId"}],flags:[],scopes:["feed:read"],idempotent:!1,isQuery:!0,summary:"Read a feed subscription's sandbox-trial state: isTrial, deliveryState, quota, quotaRemaining, trialDaysRemaining."},{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 (re-encrypted)."},{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 (stored encrypted)."},{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, 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, or 404."},{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 (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:write"],idempotent:!1,isQuery:!1,summary:"Approve a connector approval request."},{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:write"],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:write"],idempotent:!0,isQuery:!1,summary:"Revoke a previously approved connector."},{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, 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 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 watermarks (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 (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:"json",optional:!1},{name:"triggerConfig",coerce:"json",optional:!1},{name:"maxDurationMs",coerce:"number",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. 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, 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."},{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:"json",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:"json",optional:!1}],scopes:["pipes:write"],idempotent:!1,isQuery:!1,summary:"Update a workflow's trigger configuration."},{key:"webhooks.webhooks.create",commandPath:["webhooks","webhooks","create"],opId:"POST /v1/webhooks",method:"POST",pattern:"/v1/webhooks",pathParams:[],flags:[{name:"channelGid",coerce:null,optional:!1},{name:"name",coerce:null,optional:!1},{name:"description",coerce:null,optional:!0},{name:"responseMode",coerce:null,optional:!0,choices:["immediate","wait"]},{name:"allowedIps",coerce:"json",optional:!0},{name:"rateLimit",coerce:"json",optional:!0},{name:"payload",coerce:"json",optional:!0},{name:"metadata",coerce:"json",optional:!0},{name:"idempotencyKey",coerce:null,optional:!0}],scopes:["webhooks:write"],idempotent:!0,isQuery:!1,summary:"Create an inbound webhook config on a channel (requires channels:read on the target channel); returns the signing secret exactly once (honours Idempotency-Key)."},{key:"webhooks.webhooks.get",commandPath:["webhooks","webhooks","get"],opId:"GET /v1/webhooks/:webhookId",method:"GET",pattern:"/v1/webhooks/:webhookId",pathParams:[{name:"webhookGid",key:"webhookId"}],flags:[],scopes:["webhooks:read"],idempotent:!1,isQuery:!0,summary:"Retrieve one inbound webhook by GID (secret-free)."},{key:"webhooks.webhooks.list",commandPath:["webhooks","webhooks","list"],opId:"GET /v1/webhooks",method:"GET",pattern:"/v1/webhooks",pathParams:[],flags:[{name:"status",coerce:null,optional:!0,choices:["active","paused","revoked"]},{name:"cursor",coerce:null,optional:!0},{name:"limit",coerce:"number",optional:!0}],scopes:["webhooks:read"],idempotent:!1,isQuery:!0,summary:"List inbound webhooks for the caller's app (cursor-paginated; revoked excluded unless status filter asks)."},{key:"webhooks.webhooks.revealSecret",commandPath:["webhooks","webhooks","revealSecret"],opId:"POST /v1/webhooks/:webhookId/reveal-secret",method:"POST",pattern:"/v1/webhooks/:webhookId/reveal-secret",pathParams:[{name:"webhookGid",key:"webhookId"}],flags:[],scopes:["webhooks:admin"],idempotent:!0,isQuery:!1,summary:"Reveal the current inbound signing secret \u2014 dedicated, audited, admin-only."},{key:"webhooks.webhooks.revoke",commandPath:["webhooks","webhooks","revoke"],opId:"DELETE /v1/webhooks/:webhookId",method:"DELETE",pattern:"/v1/webhooks/:webhookId",pathParams:[{name:"webhookGid",key:"webhookId"}],flags:[{name:"reason",coerce:null,optional:!0}],scopes:["webhooks:admin"],idempotent:!0,isQuery:!1,summary:"Revoke an inbound webhook \u2014 terminal, idempotent; purges its signing keys."},{key:"webhooks.webhooks.rotateSecret",commandPath:["webhooks","webhooks","rotateSecret"],opId:"POST /v1/webhooks/:webhookId/rotate-secret",method:"POST",pattern:"/v1/webhooks/:webhookId/rotate-secret",pathParams:[{name:"webhookGid",key:"webhookId"}],flags:[{name:"rotationGraceMs",coerce:"number",optional:!0}],scopes:["webhooks:admin"],idempotent:!1,isQuery:!1,summary:"Rotate the inbound signing secret; the previous secret keeps verifying for the grace window (24 h default, 1 h..7 d)."},{key:"webhooks.webhooks.update",commandPath:["webhooks","webhooks","update"],opId:"PATCH /v1/webhooks/:webhookId",method:"PATCH",pattern:"/v1/webhooks/:webhookId",pathParams:[{name:"webhookGid",key:"webhookId"}],flags:[{name:"name",coerce:null,optional:!0},{name:"status",coerce:null,optional:!0,choices:["active","paused"]},{name:"description",coerce:null,optional:!0},{name:"responseMode",coerce:null,optional:!0,choices:["immediate","wait"]},{name:"allowedIps",coerce:"json",optional:!0},{name:"rateLimit",coerce:"json",optional:!0},{name:"payload",coerce:"json",optional:!0},{name:"metadata",coerce:"json",optional:!0}],scopes:["webhooks:write"],idempotent:!1,isQuery:!1,summary:"Update an inbound webhook's name, description, status (active|paused), IP allowlist, rate limit or payload limits \u2014 never its channel."}]};export{e as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as a,c as b,d as c,e as d,f as e,g as f,h as g,i as h}from"./chunk-UMQ2SWSM.mjs";import"./chunk-YHY7Y4HD.mjs";import"./chunk-GGXNXM73.mjs";import"./chunk-LJNU5QHZ.mjs";export{a as CliError,h as failWith,c as failureReceiptLines,e as failureText,f as isNetworkFailure,b as renderError,g as unreachableText,d as withFailureReceipt};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var n={credentials:{identity:"name",deps:[],refs:{},ops:{list:{convexFn:"",method:"GET",pattern:"/v1/pipes/credentials",scopes:["credentials:read"]},create:{convexFn:"",method:"POST",pattern:"/v1/pipes/credentials",scopes:["credentials:write"]}}},governance:{identity:"app",deps:[],refs:{},ops:{list:{convexFn:"",method:"GET",pattern:"/v1/pipes/governance",scopes:["pipes:read"]},create:{convexFn:"",method:"PATCH",pattern:"/v1/pipes/governance",scopes:["pipes:write"]}},singleton:!0},workflows:{identity:"name",deps:[],refs:{},ops:{create:{convexFn:"",method:"POST",pattern:"/v1/pipes/workflows",scopes:["pipes:write"]},remove:{convexFn:"",method:"DELETE",pattern:"/v1/pipes/workflows/:workflowId",scopes:["pipes:admin"],pathParams:{workflowId:"workflowGid"}},list:{convexFn:"",method:"GET",pattern:"/v1/pipes/workflows",scopes:["pipes:read"]},update:{convexFn:"",method:"PATCH",pattern:"/v1/pipes/workflows/:workflowId/meta",scopes:["pipes:write"],pathParams:{workflowId:"workflowGid"},updatable:["description"]}}}};export{n as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as a,m as b}from"./chunk-5YK2JKKH.mjs";import"./chunk-6ZOPXG44.mjs";import"./chunk-TQFAYJEP.mjs";import"./chunk-4NWQCPI4.mjs";import"./chunk-CJDCY2NH.mjs";import"./chunk-2XQXDEXA.mjs";import"./chunk-XLK55DEY.mjs";import"./chunk-UMQ2SWSM.mjs";import"./chunk-YQVQTVHK.mjs";import"./chunk-OA73YMB6.mjs";import"./chunk-BMMAZIUY.mjs";import"./chunk-WE3NRBO6.mjs";import"./chunk-YHY7Y4HD.mjs";import"./chunk-GGXNXM73.mjs";import"./chunk-LJNU5QHZ.mjs";export{a as buildReport,b as registerDoctor};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d}from"./chunk-TQFAYJEP.mjs";import"./chunk-OA73YMB6.mjs";import"./chunk-LJNU5QHZ.mjs";export{a as AuthError,b as findProjectCredentials,c as resolveCredentials,d as tryResolveCredentials};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import{Z as Y}from"./chunk-6ZOPXG44.mjs";import{b as U}from"./chunk-TQFAYJEP.mjs";import{f as T,i as v}from"./chunk-UMQ2SWSM.mjs";import{a as S,e as I}from"./chunk-YQVQTVHK.mjs";import{b as M,c as F}from"./chunk-OA73YMB6.mjs";import{b as D}from"./chunk-WE3NRBO6.mjs";import{da as E}from"./chunk-YHY7Y4HD.mjs";import{a as s}from"./chunk-LJNU5QHZ.mjs";import{existsSync as W,readFileSync as ae}from"fs";import{join as B}from"path";import p from"chalk";import u from"chalk";import ee from"ora";var b=class{static{s(this,"Spinner")}instance;constructor(t){this.instance=ee({text:t,isSilent:!process.stderr.isTTY})}start(t){return t&&(this.instance.text=t),this.instance.start(),this}succeed(t){this.instance.succeed(t)}fail(t){this.instance.fail(t)}warn(t){this.instance.warn(t)}info(t){this.instance.info(t)}stop(){this.instance.stop()}set text(t){this.instance.text=t}};function le(e){return new b(e).start()}s(le,"spin");var te=new Set(["human","table","json","yaml","ndjson"]);function q(e){if(e===void 0)return"human";let t=e.toLowerCase();if(!te.has(t))throw new Error(`Unknown --output "${e}". Use one of: human, table, json, yaml, ndjson.`);return t}s(q,"resolveOutputFormat");function y(e){return e===null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"}s(y,"isScalar");function j(e){return e===null?"":String(e)}s(j,"scalarToString");function O(e){if(e==null)return"null";if(typeof e=="number"||typeof e=="boolean")return String(e);let t=String(e);return t===""||/[:#\-?,[\]{}&*!|>'"%@`]/.test(t)||/^\s|\s$/.test(t)||/^(true|false|null|~|\d)/i.test(t)?`"${t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`:t}s(O,"yamlScalar");function k(e,t=0){let n=" ".repeat(t);if(y(e)||e===void 0)return`${n}${O(e)}`;if(Array.isArray(e))return e.length===0?`${n}[]`:e.map(r=>{if(y(r)||r===void 0)return`${n}- ${O(r)}`;let i=k(r,t+1).replace(/^ {2}/,"");return`${n}- ${i.replace(/^\s+/,"")}
|
|
2
|
+
${k(r,t+1).split(`
|
|
3
|
+
`).slice(1).join(`
|
|
4
|
+
`)}`.trimEnd()}).join(`
|
|
5
|
+
`);let a=Object.entries(e);return a.length===0?`${n}{}`:a.map(([r,i])=>y(i)||i===void 0?`${n}${r}: ${O(i)}`:Array.isArray(i)&&i.length===0?`${n}${r}: []`:!Array.isArray(i)&&Object.keys(i).length===0?`${n}${r}: {}`:`${n}${r}:
|
|
6
|
+
${k(i,t+1)}`).join(`
|
|
7
|
+
`)}s(k,"toYaml");function ne(e){if(e.length===0)return"(no rows)";let t=[];for(let o of e)for(let l of Object.keys(o))t.includes(l)||t.push(l);let n=s(o=>o==null?"":y(o)?j(o):JSON.stringify(o),"cell"),a=t.map(o=>Math.max(o.length,...e.map(l=>n(l[o]).length))),r=s(o=>o.map((l,f)=>l.padEnd(a[f])).join(" ").trimEnd(),"fmtRow"),i=r(t),c=a.map(o=>"-".repeat(o)).join(" "),h=e.map(o=>r(t.map(l=>n(o[l]))));return[i,c,...h].join(`
|
|
8
|
+
`)}s(ne,"toTable");function z(e,t){switch(t){case"json":return JSON.stringify(e,null,2);case"ndjson":return(Array.isArray(e)?e:[e]).map(n=>JSON.stringify(n)).join(`
|
|
9
|
+
`);case"yaml":return k(e);case"table":{let n=Array.isArray(e)?e:[e];return n.every(r=>r!==null&&typeof r=="object"&&!Array.isArray(r))?ne(n):k(e)}case"human":default:return w(e)}}s(z,"renderResult");function w(e,t=0){let n=" ".repeat(t);if(y(e)||e===void 0)return`${n}${e===void 0?"":j(e)}`;if(Array.isArray(e))return e.length===0?`${n}${u.dim("(none)")}`:e.map((i,c)=>`${n}${u.dim(`[${c}]`)}
|
|
10
|
+
${w(i,t+1)}`).join(`
|
|
11
|
+
`);let a=Object.entries(e);if(a.length===0)return`${n}${u.dim("(empty)")}`;let r=Math.max(...a.map(([i])=>i.length));return a.map(([i,c])=>{let h=u.cyan(i.padEnd(r));return y(c)||c===void 0?`${n}${h} ${c===void 0?"":j(c)}`:`${n}${h}
|
|
12
|
+
${w(c,t+1)}`}).join(`
|
|
13
|
+
`)}s(w,"renderHuman");var H=class{constructor(t){this.format=t;this.tty=t==="human"&&!!process.stderr.isTTY}static{s(this,"StepLog")}tty;spinner=null;lines=[];start(t){this.tty&&(this.spinner=new b(`\u25C9 ${t}`).start())}finish(t){if(this.lines.push(t),!this.tty)return;let n=t.message?u.dim(` (${t.message})`):"",a=`${t.label}${n}`;this.spinner?(t.status==="succeeded"?this.spinner.succeed(`\u2713 ${a}`):t.status==="failed"?this.spinner.fail(`\u2716 ${a}`):t.status==="skipped"?this.spinner.warn(`\u293F ${a}`):this.spinner.info(a),this.spinner=null):process.stderr.write(`${re(t.status)} ${a}
|
|
14
|
+
`)}all(){return this.lines}hasFailure(){return this.lines.some(t=>t.status==="failed")}};function re(e){switch(e){case"succeeded":return u.green("\u2713");case"failed":return u.red("\u2716");case"skipped":return u.yellow("\u293F");default:return u.cyan("\u25C9")}}s(re,"glyph");var ge="__set_by_npayload_login__",be="__set_by_npayload_login__",ke="__set_by_npayload_login__";function N(e){if(e==null)return!0;let t=e.trim();return t.length===0?!0:t.startsWith("__set_by_npayload_login__")}s(N,"isPlaceholderCredential");var K="f4d5410c733e4c4a28858907bb7addc6d1fd34280961bdfb74cf0ac7a0a8419b",Ae={$schema:"http://json-schema.org/draft-07/schema#",title:"EventsConfig",type:"object",additionalProperties:!1,properties:{channels:{type:"object",maxProperties:500,propertyNames:{pattern:"^[a-z0-9][a-z0-9._-]{0,126}$"},additionalProperties:{type:"object",additionalProperties:!1,properties:{name:{type:"string",maxLength:4096},idempotencyKey:{type:"string",maxLength:4096},description:{type:"string",maxLength:4096},type:{type:"string",enum:["topic","queue","stream"]},schema:{type:"object",properties:{type:{type:"string",enum:["json","avro","protobuf"]},definition:{type:"string",maxLength:4096},strict:{type:"boolean"}},required:["type"],additionalProperties:!1},settings:{type:"object",properties:{retentionMs:{type:"number"},maxMessageSize:{type:"number"},maxSubscriptions:{type:"number"},idempotencyWindowMs:{type:"number"}},additionalProperties:!1},metadata:{type:"object",additionalProperties:{oneOf:[{type:"string",maxLength:4096},{type:"number"},{type:"boolean"},{type:"null"}]},propertyNames:{maxLength:256,not:{enum:["__proto__","constructor","prototype"]}}},retentionMode:{type:"string",enum:["standard","compacted","compacted_with_log"]},compactionConfig:{type:"object",properties:{minAge:{type:"number"},deletePolicy:{type:"string",enum:["compact","delete","compact_and_delete"]}},additionalProperties:!1},nppMinQos:{type:"number"},rateLimit:{type:"object",properties:{ratePerSec:{type:"number"},burst:{type:"number"}},required:["ratePerSec","burst"],additionalProperties:!1},complianceClass:{type:"string",enum:["NONE","SOC2","GDPR","HIPAA","PCI","FEDRAMP_MOD","FEDRAMP_HIGH","IL5","ITAR"]},privacy:{type:"object",properties:{mode:{type:"string",enum:["standard","e2e","hybrid"]},encryptionProvider:{type:"string",enum:["none","publisher","platform"]}},required:["mode","encryptionProvider"],additionalProperties:!1},privacyMode:{type:"string",enum:["standard","hybrid","e2e"]},pii:{type:"string",enum:["strip","allow","block"]}},required:["name"]}},consumerGroups:{type:"object",maxProperties:500,propertyNames:{pattern:"^[a-z0-9][a-z0-9._-]{0,126}$"},additionalProperties:{type:"object",additionalProperties:!1,properties:{channelGid:{type:"string",maxLength:4096},strategy:{type:"string",enum:["competing","sticky","broadcast"]},maxConcurrency:{type:"number"}},required:["strategy"]}},eventTypes:{type:"object",maxProperties:500,propertyNames:{pattern:"^[a-z0-9][a-z0-9._-]{0,126}$"},additionalProperties:{type:"object",additionalProperties:!1,properties:{displayName:{type:"string",maxLength:4096},description:{type:"string",maxLength:4096},domain:{type:"string",maxLength:4096},entity:{type:"string",maxLength:4096},action:{type:"string",maxLength:4096},ownership:{type:"object",properties:{team:{type:"string",maxLength:4096},contact:{type:"string",maxLength:4096},slackChannel:{type:"string",maxLength:4096}},required:["team","contact"],additionalProperties:!1},channels:{type:"array",items:{type:"string",maxLength:4096}},tags:{type:"array",items:{type:"string",maxLength:4096}},schema:{type:"object",properties:{format:{type:"string",enum:["json_schema","avro","protobuf"]},definition:{type:"string",maxLength:4096}},required:["format","definition"],additionalProperties:!1}},required:["displayName","description","ownership"]}},exchanges:{type:"object",maxProperties:500,propertyNames:{pattern:"^[a-z0-9][a-z0-9._-]{0,126}$"},additionalProperties:{type:"object",additionalProperties:!1,properties:{type:{type:"string",enum:["direct","fanout","topic","headers"]},config:{type:"object",properties:{headersMatchMode:{}},additionalProperties:!1}}}},subscriptions:{type:"object",maxProperties:500,propertyNames:{pattern:"^[a-z0-9][a-z0-9._-]{0,126}$"},additionalProperties:{type:"object",additionalProperties:!1,properties:{channelGid:{type:"string",maxLength:4096},subscribesTo:{type:"string",enum:["messages","failures"]},idempotencyKey:{type:"string",maxLength:4096},consumerAppId:{type:"string",maxLength:4096},description:{type:"string",maxLength:4096},type:{type:"string",enum:["webhook","queue","adapter"]},filter:{type:"object",properties:{where:{type:"object",additionalProperties:{oneOf:[{type:"string",maxLength:4096},{type:"number"},{type:"boolean"}]},propertyNames:{maxLength:256,not:{enum:["__proto__","constructor","prototype"]}}},routingKey:{type:"string",maxLength:4096},subject:{type:"string",maxLength:4096}},additionalProperties:!1},subjectFilter:{type:"string",maxLength:4096},endpoint:{type:"object",properties:{url:{type:"string",format:"npayload-safe-url",maxLength:4096},method:{type:"string",enum:["POST","PUT"]},headers:{type:"object",additionalProperties:{type:"string",pattern:"^[^\\r\\n]*$",maxLength:4096},propertyNames:{pattern:"^[A-Za-z0-9!#$%&'*+.^_`|~-]{1,128}$"}},queueName:{type:"string",maxLength:4096}},additionalProperties:!1},delivery:{type:"object",properties:{timeoutMs:{type:"number"},retryPolicy:{type:"object",properties:{maxAttempts:{type:"number"},backoffStrategy:{type:"string",enum:["exponential","linear","constant"]},initialDelayMs:{type:"number"},maxDelayMs:{type:"number"},backoffMultiplier:{type:"number"}},additionalProperties:!1},batchSize:{type:"number"},batchWindowMs:{type:"number"}},additionalProperties:!1},dlq:{type:"object",properties:{enabled:{type:"boolean"},maxAge:{type:"number"}},required:["enabled"],additionalProperties:!1},deliveryConfig:{type:"object",properties:{maxPerMinute:{type:"number"}},additionalProperties:!1},metadata:{type:"object",additionalProperties:{oneOf:[{type:"string",maxLength:4096},{type:"number"},{type:"boolean"},{type:"null"}]},propertyNames:{maxLength:256,not:{enum:["__proto__","constructor","prototype"]}}},transformPipeId:{type:"string",maxLength:4096},transformTimeout:{type:"number"},transformOnFailure:{type:"string",enum:["deliver_raw","drop_to_dlq"]}},required:["endpoint"]}}}};async function G(e,t){try{let n=new URL("/health",e);return await D(I())(n,{signal:AbortSignal.timeout(2500)}),"reachable"}catch(n){return n instanceof E?(t.push(n),"refused"):"unreachable"}}s(G,"reachable");function se(){let e=process.env.npm_config_user_agent??"";return e.startsWith("bun")?"bun":e.startsWith("pnpm")?"pnpm":e.startsWith("yarn")?"yarn":e.startsWith("npm")?"npm":process.env.BUN_INSTALL?"bun":"unknown"}s(se,"detectPackageManager");function oe(){switch(process.platform){case"darwin":return"macOS Keychain";case"win32":return"Windows Credential Manager";case"linux":return"Linux Secret Service (libsecret)";default:return`${process.platform} (unsupported)`}}s(oe,"keychainBackend");async function ie(){let e=await M(),t=!1;if(e)try{let m=await F();t=!!(m?.clientId&&m?.hmacSecret)}catch{t=!1}let n=!!process.env.NPAYLOAD_TOKEN,a=!!(process.env.NPAYLOAD_CLIENT_ID&&(process.env.NPAYLOAD_CLIENT_SECRET||process.env.NPAYLOAD_HMAC_SECRET)),r=U(),i=!!(r?.clientId&&r?.hmacSecret&&!N(r.clientId)&&!N(r.hmacSecret)),c=t||n||a||i,h=[];(process.env.NPAYLOAD_CLIENT_SECRET||process.env.NPAYLOAD_HMAC_SECRET)&&h.push("A client secret is set in the environment. Prefer a short-lived NPAYLOAD_TOKEN, source it from a secret manager, and never commit it to a .env file.");let o=[];c||(e||o.push(process.platform==="linux"?"No OS keychain: install and start a Secret Service (e.g. `gnome-keyring` or KWallet).":"OS keychain is not reachable on this host."),o.push("In a project: run `npx @npayload/sdk init` (provisions machine credentials into .npayload.json).","Interactive: run `npayload login` (stores the session in the OS keychain).","Headless / CI: export NPAYLOAD_CLIENT_ID + NPAYLOAD_CLIENT_SECRET (or NPAYLOAD_TOKEN)."));let l=!1,f=S(process.env.NPAYLOAD_API_URL,"apiUrl")??"https://api.npayload.com",g=S(process.env.NPAYLOAD_AUTH_URL,"authUrl")??null,$=[],L=await G(f,$),_=g?await G(g,$):null,J=L==="reachable",Q=_===null?null:_==="reachable";for(let m of $)o.push(T(`Not probed: ${m.message}`,m));L==="unreachable"&&o.push(`API endpoint ${f} is unreachable \u2014 check your network / status page.`),g&&_==="unreachable"&&o.push(`Auth endpoint ${g} is unreachable \u2014 token minting will fail until it is back.`);let P="n/a",R=B(process.cwd(),"npayload","_generated","contract.lock");if(W(R)){try{P=JSON.parse(ae(R,"utf8")).hash===K?"ok":"stale"}catch{P="stale"}P==="stale"&&o.push("npayload/_generated/contract.lock disagrees with the installed npayload contract \u2014 this project was authored against a different version; re-run `npayload validate` after upgrading (or reinstall the pinned version).")}let x="n/a";try{let m=Y(),C=B(m,"..","permissions.generated.ts"),{projectAllPermissions:Z}=await import("./chunk-EL7XOWA4.mjs"),{checkScopesDrift:X}=await import("./chunk-A7HA64P6.mjs"),A=X(await Z(),C);x=A.ok?"ok":W(C)?"stale":"missing",!A.ok&&A.reason&&o.push(A.reason)}catch{x="n/a"}return{os:process.platform,arch:process.arch,node:process.version,packageManager:se(),keychain:{reachable:e,backend:oe()},credentials:{envToken:n,envClient:a,project:i,keychain:t},authReady:c,stack:{apiUrl:f,apiReachable:J,apiProbe:L,authUrl:g,authReachable:Q,authProbe:_,contractLock:P,permissions:x},warnings:h,remediation:o}}s(ie,"buildReport");function V(e){return e==="reachable"?p.green("reachable"):e==="refused"?p.yellow("refused by this run's estate (TRANSPORT_UNAVAILABLE)"):p.red("unreachable")}s(V,"probeWords");function d(e){return e?p.green("\u2713"):p.dim("\u25CB")}s(d,"mark");function pe(e){let t=["",p.bold(" npayload doctor"),""];t.push(` ${p.dim("platform")} ${e.os} ${e.arch} \xB7 node ${e.node} \xB7 pm ${e.packageManager}`),t.push(` ${d(e.keychain.reachable)} ${p.dim("keychain")} ${e.keychain.backend} \u2014 ${e.keychain.reachable?p.green("reachable"):p.yellow("not reachable")}`),t.push(""),t.push(` ${p.bold("credentials")}`),t.push(` ${d(e.credentials.project)} project credentials (.npayload.json)`),t.push(` ${d(e.credentials.keychain)} login session in OS keychain`),t.push(` ${d(e.credentials.envClient)} NPAYLOAD_CLIENT_ID + NPAYLOAD_CLIENT_SECRET (env)`),t.push(` ${d(e.credentials.envToken)} NPAYLOAD_TOKEN (env, short-lived)`),t.push(""),t.push(` ${p.bold("stack")}`),t.push(` ${d(e.stack.apiReachable)} API ${p.dim(e.stack.apiUrl)} \u2014 ${V(e.stack.apiProbe)}`),e.stack.authUrl&&e.stack.authProbe!==null&&t.push(` ${d(e.stack.authReachable===!0)} auth ${p.dim(e.stack.authUrl)} \u2014 ${V(e.stack.authProbe)}`),e.stack.contractLock!=="n/a"&&t.push(` ${d(e.stack.contractLock==="ok")} contract.lock \u2014 ${e.stack.contractLock}`),e.stack.permissions!=="n/a"&&t.push(` ${d(e.stack.permissions==="ok")} permissions.generated.ts \u2014 ${e.stack.permissions}`),t.push("");let n=!e.stack.apiReachable||e.stack.authReachable===!1,a=e.stack.apiProbe==="refused"||e.stack.authProbe==="refused";e.authReady?a?t.push(` ${p.yellow("! credentials present, but this run's estate refused a probe \u2014 see next")}`):n?t.push(` ${p.yellow("! credentials present, but the stack is unreachable \u2014 see next")}`):t.push(` ${p.green("\u2713 ready \u2014 credentials present and the stack is reachable")}`):t.push(` ${p.red("\u2716 no credential source available")}`);for(let r of e.warnings)t.push(p.yellow(` ! ${r}`));if(e.remediation.length){t.push(""),t.push(` ${p.bold("next")}`);for(let r of e.remediation)t.push(p.dim(` \u2022 ${r}`))}return t.push(""),t.join(`
|
|
15
|
+
`)}s(pe,"renderHuman");function Ue(e){e.command("doctor").description("diagnose OS / package manager / keychain reachability + which credential source is available").option("--output <fmt>","human | table | json | yaml | ndjson").action(async t=>{try{let n=q(t.output),a=await ie();n==="human"?process.stdout.write(pe(a)+`
|
|
16
|
+
`):process.stdout.write(`${z(a,n)}
|
|
17
|
+
`);let r=a.stack.authReachable===!1;(!a.authReady||!a.stack.apiReachable||r)&&(process.exitCode=1)}catch(n){v(n)}})}s(Ue,"registerDoctor");export{b as a,le as b,ge as c,be as d,ke as e,N as f,q as g,z as h,H as i,K as j,Ae as k,ie as l,Ue as m};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{a as p}from"./chunk-6RMN6EHY.mjs";import{a as l,b as m}from"./chunk-RIBBVOCC.mjs";import"./chunk-76OM2ZBO.mjs";import"./chunk-2OCUKD3K.mjs";import{l as i,o as c}from"./chunk-6ZOPXG44.mjs";import"./chunk-TQFAYJEP.mjs";import"./chunk-4NWQCPI4.mjs";import"./chunk-FAO3QJC5.mjs";import"./chunk-455C67EN.mjs";import"./chunk-CJDCY2NH.mjs";import"./chunk-2XQXDEXA.mjs";import"./chunk-XLK55DEY.mjs";import"./chunk-UMQ2SWSM.mjs";import"./chunk-YQVQTVHK.mjs";import"./chunk-OA73YMB6.mjs";import"./chunk-BMMAZIUY.mjs";import"./chunk-WE3NRBO6.mjs";import"./chunk-YHY7Y4HD.mjs";import"./chunk-GGXNXM73.mjs";import{a as n}from"./chunk-LJNU5QHZ.mjs";var r=class extends Error{static{n(this,"ScopeFloorError")}gap;constructor(t){super(`npayload.toml [access_scopes] does not cover the required scope floor \u2014 ${t.length} scope(s) missing:
|
|
2
|
+
${t.join(`
|
|
3
|
+
`)}
|
|
4
|
+
Run \`npayload scopes fix\` to append exactly these to the manifest.`),this.name="ScopeFloorError",this.gap=t}},s=class extends Error{static{n(this,"ScopeDriftError")}diff;constructor(t){super(`The remote grant has drifted from the manifest \u2014 refusing to overwrite it silently.
|
|
5
|
+
manifest declares : ${t.manifest.join(", ")||"(none)"}
|
|
6
|
+
remote grant now : ${t.remote.join(", ")||"(none)"}
|
|
7
|
+
`+(t.remoteAdded.length?` remote added : ${t.remoteAdded.join(", ")}
|
|
8
|
+
`:"")+(t.remoteRemoved.length?` remote removed : ${t.remoteRemoved.join(", ")}
|
|
9
|
+
`:"")+"Re-run with --accept-remote (pull the remote change into the manifest) or --overwrite-remote (replace the remote with the manifest)."),this.name="ScopeDriftError",this.diff=t}};async function h(e){let t=e.manifest!==void 0?e.manifest:c(e.cwd);if(!t)return null;if(i(t.accessScopes),!e.check){let o=e.floor??await l({...e.cwd!==void 0?{cwd:e.cwd}:{},components:t.embedComponents}),a=m(t.accessScopes,o);if(a.length>0)throw new r(a)}return t}n(h,"assertScopesGate");async function w(e){let t=await e.readRemoteGrant(e.appGid)??{scopes:[],configDrift:!1},o=p({declared:e.declared,floor:e.floor,remote:t,...e.resolution?{resolution:e.resolution}:{}});switch(o.kind){case"floor-gap":throw new r(o.gap);case"conflict":throw new s(o.diff);case"accept-remote":return e.writeManifestScopes?.(o.manifest),await e.syncGrant(e.appGid,o.grant),o;case"sync":return await e.syncGrant(e.appGid,o.grant),o}}n(w,"runDeclaredGrantSync");export{s as ScopeDriftError,r as ScopeFloorError,h as assertScopesGate,w as runDeclaredGrantSync};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as a}from"./chunk-RIBBVOCC.mjs";import{a as l}from"./chunk-LJNU5QHZ.mjs";function t(e){return[...new Set(e)].sort()}l(t,"normalizeScopes");function f(e,r){let o=t(e),n=t(r);return o.length===n.length&&o.every((i,c)=>i===n[c])}l(f,"scopesEqual");function d(e,r,o){let n=new Set(e),i=new Set(r),c=new Set(o);return{base:t(e),manifest:t(r),remote:t(o),localAdded:t(r.filter(s=>!n.has(s))),localRemoved:t(e.filter(s=>!i.has(s))),remoteAdded:t(o.filter(s=>!n.has(s))),remoteRemoved:t(e.filter(s=>!c.has(s)))}}l(d,"diffAgainstBase");function p(e){let r=t(e.declared),o=e.resolution??"none",n=a(r,e.floor);if(n.length>0)return{kind:"floor-gap",gap:n};let i=t(e.remote.scopes),c=t(e.pullBase??e.remote.scopes);return e.remote.configDrift&&!f(r,i)?o==="accept-remote"?{kind:"accept-remote",grant:i,manifest:i}:o==="overwrite-remote"?{kind:"sync",grant:r}:{kind:"conflict",diff:d(c,r,i)}:{kind:"sync",grant:r}}l(p,"reconcileScopes");export{p as a};
|