@rpcbase/api 0.139.0 → 0.140.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,29 @@
1
+ export type AgentApiRisk = "low" | "medium" | "high";
2
+ export type AgentApiMethod = "GET" | "POST" | "PUT" | "DELETE";
3
+ export type AgentApiCatalogMetadata = {
4
+ apiId: string;
5
+ title: string;
6
+ description: string;
7
+ category: string;
8
+ risk: AgentApiRisk;
9
+ method: AgentApiMethod;
10
+ route: string;
11
+ workspaceScoped: boolean;
12
+ examples?: {
13
+ input?: unknown;
14
+ output?: unknown;
15
+ };
16
+ };
17
+ export declare const AGENT_API_BLOCKED_REASONS: readonly ["authentication", "internal_only", "not_agent_useful", "public_unauthenticated", "secrets", "superseded", "unsafe_side_effect", "webhook", "other"];
18
+ export type AgentApiBlockedReason = (typeof AGENT_API_BLOCKED_REASONS)[number];
19
+ export type AgentApiEnabledDefinition = Omit<AgentApiCatalogMetadata, "method" | "route"> & {
20
+ exposure: "enabled";
21
+ handlerExport: string;
22
+ };
23
+ export type AgentApiBlockedDefinition = {
24
+ exposure: "blocked";
25
+ reason: AgentApiBlockedReason;
26
+ rationale: string;
27
+ };
28
+ export type AgentApiDefinition = AgentApiEnabledDefinition | AgentApiBlockedDefinition;
29
+ //# sourceMappingURL=agentApiCatalog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agentApiCatalog.d.ts","sourceRoot":"","sources":["../src/agentApiCatalog.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAA;AACpD,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAA;AAE9D,MAAM,MAAM,uBAAuB,GAAG;IACpC,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,YAAY,CAAA;IAClB,MAAM,EAAE,cAAc,CAAA;IACtB,KAAK,EAAE,MAAM,CAAA;IACb,eAAe,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,EAAE;QACT,KAAK,CAAC,EAAE,OAAO,CAAA;QACf,MAAM,CAAC,EAAE,OAAO,CAAA;KACjB,CAAA;CACF,CAAA;AAED,eAAO,MAAM,yBAAyB,+JAU5B,CAAA;AAEV,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAAC,CAAA;AAE9E,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAC1C,uBAAuB,EACvB,QAAQ,GAAG,OAAO,CACnB,GAAG;IACF,QAAQ,EAAE,SAAS,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG;IACtC,QAAQ,EAAE,SAAS,CAAA;IACnB,MAAM,EAAE,qBAAqB,CAAA;IAC7B,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,kBAAkB,GAC1B,yBAAyB,GACzB,yBAAyB,CAAA"}
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './types';
2
2
  export * from './initApi';
3
3
  export * from './pagination';
4
+ export * from './agentApiCatalog';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,mBAAmB,CAAA"}
package/dist/index.js CHANGED
@@ -22006,7 +22006,9 @@ const initApi = async ({
22006
22006
  next(err);
22007
22007
  });
22008
22008
  };
22009
+ const AGENT_API_BLOCKED_REASONS = ["authentication", "internal_only", "not_agent_useful", "public_unauthenticated", "secrets", "superseded", "unsafe_side_effect", "webhook", "other"];
22009
22010
  export {
22011
+ AGENT_API_BLOCKED_REASONS,
22010
22012
  MOCK_TYPE,
22011
22013
  initApi
22012
22014
  };