@codespar/types 0.1.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -76,6 +76,9 @@ function useSession(session: SessionBase) {
76
76
  | `ProxyResult` | Return value of `proxyExecute()` — `status`, `data`, `headers`, `duration`, `proxy_call_id` |
77
77
  | `AuthConfig` | Input to `authorize()` — `redirectUri`, `scopes?` |
78
78
  | `AuthResult` | Return value of `authorize()` — `linkToken`, `authorizeUrl`, `expiresAt` |
79
+ | `DiscoverOptions` / `DiscoverResult` / `DiscoverToolMatch` / `DiscoverPlanStep` | Wire shapes for `session.discover(...)` (F3.M2 `codespar_discover`) |
80
+ | `ConnectionWizardOptions` / `ConnectionWizardResult` / `ConnectionStatusRow` | Wire shapes for `session.connectionWizard(...)` (F3.M2 `codespar_manage_connections`) |
81
+ | `PaymentStatus` / `PaymentStatusResult` / `PaymentStatusEvent` | Wire shapes for `session.paymentStatus(toolCallId)` — async webhook correlation |
79
82
 
80
83
  ## Conformance testing
81
84
 
@@ -103,6 +106,10 @@ The suite opens a session via `POST /v1/sessions` with `Authorization: Bearer <a
103
106
 
104
107
  See [docs/custom-session-runtime.md](../../docs/custom-session-runtime.md) for a full implementation guide.
105
108
 
109
+ ## Need more?
110
+
111
+ Need governance, budget limits, and audit trails for agent payments? **[CodeSpar Enterprise](https://codespar.dev/enterprise)** adds policy engine, payment routing, and compliance templates on top of these MCP servers.
112
+
106
113
  ## License
107
114
 
108
115
  MIT — [codespar.dev](https://codespar.dev)
package/dist/types.d.ts CHANGED
@@ -10,11 +10,338 @@ export interface SessionBase {
10
10
  export interface Session extends SessionBase {
11
11
  proxyExecute(request: ProxyRequest): Promise<ProxyResult>;
12
12
  authorize(serverId: string, config: AuthConfig): Promise<AuthResult>;
13
+ /**
14
+ * Search the catalog for a tool that matches a free-form use case.
15
+ * Typed wrapper around `execute("codespar_discover", {...})` — same
16
+ * wire shape, returns `DiscoverResult` instead of generic ToolResult
17
+ * so the agent doesn't have to cast.
18
+ */
19
+ discover(useCase: string, options?: DiscoverOptions): Promise<DiscoverResult>;
20
+ /**
21
+ * Surface the connection wizard for a server (or list every server's
22
+ * status). Typed wrapper around
23
+ * `execute("codespar_manage_connections", {...})`. Returns the
24
+ * wizard payload directly — UI components like ConnectionWizardCard
25
+ * render this without further parsing.
26
+ */
27
+ connectionWizard(options: ConnectionWizardOptions): Promise<ConnectionWizardResult>;
28
+ /**
29
+ * Create an INBOUND charge — the buyer pays the merchant. Typed
30
+ * wrapper around `execute("codespar_charge", {...})`. Distinct from
31
+ * the legacy `codespar_pay` rail, which routes to outbound
32
+ * transfers / payouts. Routes to providers that issue charges
33
+ * (Asaas create_payment, MP create_payment, Stripe payment_intent).
34
+ *
35
+ * `amount` is in MAJOR currency units (R$ 125.00 → 125). The
36
+ * provider receives whatever shape it expects (Asaas + MP take
37
+ * decimal major units; Stripe takes minor units — the backend
38
+ * transform converts).
39
+ */
40
+ charge(args: ChargeArgs): Promise<ChargeResult>;
41
+ /**
42
+ * Async settlement check. After a meta-tool payment call returns,
43
+ * the upstream provider eventually fires a webhook that lands in
44
+ * `events`. This method correlates a tool_call back to the latest
45
+ * known status (pending → succeeded / failed / refunded). Generic
46
+ * across providers — relies on the `idempotency_key` propagated
47
+ * upstream + the `external_reference` field on the normalized event
48
+ * payload. Returns `unknown` when the tool_call has no
49
+ * idempotency_key (legacy / non-meta-tool calls).
50
+ */
51
+ paymentStatus(toolCallId: string): Promise<PaymentStatusResult>;
52
+ /**
53
+ * SSE-streamed sibling of `paymentStatus`. Opens a long-lived
54
+ * connection and invokes `onUpdate` whenever the backend pushes a
55
+ * new envelope (initial snapshot + every state change). Resolves
56
+ * when the backend closes the stream — typically 5s after a
57
+ * terminal state (succeeded / failed / refunded). The optional
58
+ * `signal` cancels the stream from the caller side; the backend
59
+ * sees it as a normal client disconnect and tears its loop down.
60
+ * Falls back to native `fetch` streaming; no extra deps. The
61
+ * polling sibling (`paymentStatus`) stays live for backward compat.
62
+ */
63
+ paymentStatusStream(toolCallId: string, options: PaymentStatusStreamOptions): Promise<PaymentStatusResult>;
64
+ /**
65
+ * Async KYC poll. After a `codespar_kyc` call returns, the buyer
66
+ * completes the hosted flow off-platform; provider webhooks (or
67
+ * operator polling) update the verification state asynchronously.
68
+ * This method correlates a tool_call back to the latest known
69
+ * disposition (pending → approved / rejected / review / expired).
70
+ * Generic across providers — same idempotency_key ↔
71
+ * external_reference correlation as `paymentStatus`. Returns
72
+ * `unknown` when the tool_call has no idempotency_key (legacy /
73
+ * non-meta-tool calls).
74
+ */
75
+ verificationStatus(toolCallId: string): Promise<VerificationStatusResult>;
76
+ /**
77
+ * SSE-streamed sibling of `verificationStatus`. Same lifecycle as
78
+ * `paymentStatusStream`: snapshot on open, an update per state
79
+ * change, auto-close 5s after a terminal disposition (approved /
80
+ * rejected / expired). `signal` aborts from the caller side.
81
+ * Polling sibling (`verificationStatus`) stays live.
82
+ */
83
+ verificationStatusStream(toolCallId: string, options: VerificationStatusStreamOptions): Promise<VerificationStatusResult>;
84
+ /**
85
+ * Generate a shipping label OR fetch tracking status. Typed wrapper
86
+ * around `execute("codespar_ship", {...})`. Routes to Melhor Envio
87
+ * (BR domestic — Correios + private carriers) by default; international
88
+ * carriers ship under a unified `{origin, destination, items}` envelope
89
+ * as additional rails come online. The agent passes a neutral shape and
90
+ * the router picks the cheapest carrier per request.
91
+ */
92
+ ship(args: ShipArgs): Promise<ShipResult>;
13
93
  mcp?: {
14
94
  url: string;
15
95
  headers: Record<string, string>;
16
96
  };
17
97
  }
98
+ /**
99
+ * Inbound charge — the buyer pays the merchant. Mirrors the backend's
100
+ * MetaChargeArgs (codespar-enterprise) so the wire payload matches
101
+ * byte-for-byte. The discriminator vs `codespar_pay` (outbound) is
102
+ * the `buyer` object: a charge always carries customer-facing buyer
103
+ * details because the charge is owned by the merchant and presented
104
+ * to the buyer.
105
+ */
106
+ export interface ChargeBuyer {
107
+ name: string;
108
+ email?: string;
109
+ document?: string;
110
+ phone?: string;
111
+ }
112
+ export interface ChargeArgs {
113
+ /** Amount in MAJOR currency units (R$ 125.00 → 125). */
114
+ amount: number;
115
+ /** ISO-4217 currency code (BRL, USD, EUR). */
116
+ currency: string;
117
+ /** Payment method: pix, boleto, card. */
118
+ method: "pix" | "boleto" | "card";
119
+ /** Charge description shown to the buyer. */
120
+ description: string;
121
+ /** Buyer details (always required — charges are merchant-issued). */
122
+ buyer: ChargeBuyer;
123
+ /** ISO 8601 due date (boleto / Pix expiration). */
124
+ due_date?: string;
125
+ }
126
+ export interface ChargeResult {
127
+ id: string;
128
+ status: string;
129
+ amount: number;
130
+ currency: string;
131
+ method: string;
132
+ /** Hosted payment URL when the provider issues one (Asaas
133
+ * invoiceUrl, MP ticket_url, Stripe redirect). */
134
+ charge_url?: string;
135
+ pix_qr_code?: string;
136
+ pix_copy_paste?: string;
137
+ raw?: unknown;
138
+ }
139
+ /**
140
+ * Shipping args. Three actions over a unified address+items envelope:
141
+ * - label Generate a shipping label (issues a tracking code)
142
+ * - quote Calculate carrier rates for a route + items
143
+ * - track Fetch current tracking status for a shipment
144
+ *
145
+ * Mirrors the backend's MetaShipArgs (codespar-enterprise) so the wire
146
+ * payload matches byte-for-byte. Operator overrides (Melhor Envio
147
+ * service ids, NFe access keys for declared-value shipments) flow
148
+ * through `metadata`.
149
+ */
150
+ export interface ShipAddress {
151
+ postal_code: string;
152
+ city?: string;
153
+ state?: string;
154
+ country?: string;
155
+ line_1?: string;
156
+ number?: string;
157
+ }
158
+ export interface ShipItem {
159
+ description?: string;
160
+ weight_g: number;
161
+ width_cm?: number;
162
+ height_cm?: number;
163
+ length_cm?: number;
164
+ quantity?: number;
165
+ declared_value?: number;
166
+ }
167
+ export interface ShipArgs {
168
+ /** label | track | quote. */
169
+ action: "label" | "track" | "quote";
170
+ /** Sender address (required for action=label|quote). */
171
+ origin?: ShipAddress;
172
+ /** Recipient address (required for action=label|quote). */
173
+ destination?: ShipAddress;
174
+ /** Items to ship — each with weight_g + dimensions. Required for
175
+ * action=label|quote. */
176
+ items?: ShipItem[];
177
+ /** fastest | cheapest | standard. Default: cheapest. */
178
+ service_level?: "fastest" | "cheapest" | "standard";
179
+ /** Required for action=track. */
180
+ tracking_code?: string;
181
+ /** Provider-specific overrides (Melhor Envio service_id, NFe key for
182
+ * declared-value shipments, etc). */
183
+ metadata?: Record<string, unknown>;
184
+ }
185
+ export interface ShipResult {
186
+ id: string;
187
+ status: string;
188
+ tracking_code?: string;
189
+ label_url?: string;
190
+ carrier?: string;
191
+ estimated_delivery?: string;
192
+ cost_minor?: number;
193
+ raw?: unknown;
194
+ }
195
+ export type PaymentStatus = "pending" | "succeeded" | "failed" | "refunded" | "updated" | "unknown";
196
+ export interface PaymentStatusEvent {
197
+ event_type: string;
198
+ received_at: string;
199
+ provider: string | null;
200
+ provider_action: string | null;
201
+ payment_id: string | null;
202
+ }
203
+ export interface PaymentStatusResult {
204
+ tool_call_id: string;
205
+ payment_status: PaymentStatus;
206
+ /** Null for legacy / non-meta-tool calls that didn't propagate a
207
+ * key upstream. */
208
+ idempotency_key: string | null;
209
+ /** The execute-time status (success/error). The asynchronous
210
+ * payment_status above is independent — a successful execute can
211
+ * still be pending settlement, and a settled payment can be later
212
+ * refunded. */
213
+ original_status: string;
214
+ events: PaymentStatusEvent[];
215
+ }
216
+ /** Options for `Session.paymentStatusStream`. The callback receives
217
+ * the SAME envelope shape as `paymentStatus()` returns — call sites
218
+ * can render incremental UI off the same parser they already wrote.
219
+ * The promise resolves with the LAST envelope seen, so callers that
220
+ * only care about the terminal disposition can `await` it without
221
+ * wiring `onUpdate`. */
222
+ export interface PaymentStatusStreamOptions {
223
+ onUpdate?: (envelope: PaymentStatusResult) => void;
224
+ signal?: AbortSignal;
225
+ }
226
+ /**
227
+ * KYC polling analog of PaymentStatus. After `codespar_kyc` returns,
228
+ * the buyer completes the hosted flow asynchronously (Persona inquiry,
229
+ * Sift scoring, Konduto / Truora review). Webhooks normalize into
230
+ * `commerce.kyc.*` events; this status is the latest known
231
+ * disposition.
232
+ *
233
+ * Priority: approved > rejected > review > expired > pending > unknown.
234
+ */
235
+ export type VerificationStatus = "pending" | "approved" | "rejected" | "expired" | "review" | "unknown";
236
+ export interface VerificationStatusEvent {
237
+ event_type: string;
238
+ received_at: string;
239
+ provider: string | null;
240
+ verification_id: string | null;
241
+ }
242
+ export interface VerificationStatusResult {
243
+ tool_call_id: string;
244
+ verification_status: VerificationStatus;
245
+ /** Null for legacy / non-meta-tool calls that didn't propagate a
246
+ * key upstream. */
247
+ idempotency_key: string | null;
248
+ /** The execute-time status (success/error). The asynchronous
249
+ * verification_status above is independent — a successful execute
250
+ * only means the verification was created with the provider; the
251
+ * buyer still has to complete the hosted flow. */
252
+ original_status: string;
253
+ /** Buyer-facing verification URL (Persona inquiry, Truora link).
254
+ * Null for server-side scoring rails (Sift, Konduto risk-score)
255
+ * that have no hosted flow, or when the originating tool_call's
256
+ * output didn't surface the field. Best-effort — pulled from the
257
+ * call's stored output JSON. */
258
+ hosted_url: string | null;
259
+ events: VerificationStatusEvent[];
260
+ }
261
+ /** Options for `Session.verificationStatusStream`. Same shape as
262
+ * `PaymentStatusStreamOptions` — `onUpdate` receives the typed
263
+ * envelope on every state change; `signal` cancels the stream;
264
+ * the promise resolves with the last envelope observed. */
265
+ export interface VerificationStatusStreamOptions {
266
+ onUpdate?: (envelope: VerificationStatusResult) => void;
267
+ signal?: AbortSignal;
268
+ }
269
+ export interface DiscoverOptions {
270
+ category?: string;
271
+ country?: string;
272
+ /** Max related results returned. Clamped 1..20 server-side. */
273
+ limit?: number;
274
+ }
275
+ export interface DiscoverToolMatch {
276
+ server_id: string;
277
+ tool_name: string;
278
+ description: string;
279
+ http_method: string;
280
+ endpoint_template: string;
281
+ cosine_distance: number | null;
282
+ trigram_similarity: number | null;
283
+ connection_status: "connected" | "disconnected" | "not_required";
284
+ known_pitfalls: string[];
285
+ recommended_plan: DiscoverPlanStep[];
286
+ }
287
+ export interface DiscoverPlanStep {
288
+ step: string;
289
+ description?: string;
290
+ prereq?: boolean;
291
+ action?: boolean;
292
+ }
293
+ export interface DiscoverResult {
294
+ use_case: string;
295
+ /** Which path served the result. embedding > trigram in quality. */
296
+ search_strategy: "embedding" | "trigram" | "empty";
297
+ recommended: DiscoverToolMatch | null;
298
+ related: DiscoverToolMatch[];
299
+ next_steps: string[];
300
+ }
301
+ export interface ConnectionWizardOptions {
302
+ /** Defaults to "status" when server_id is given, else "list". */
303
+ action?: "list" | "status" | "initiate";
304
+ server_id?: string;
305
+ country?: string;
306
+ environment?: "live" | "test";
307
+ /** Path inside the dashboard to redirect to after the user finishes
308
+ * connecting (initiate only). Validated to /dashboard/* on the
309
+ * dashboard side. */
310
+ return_to?: string;
311
+ }
312
+ export interface ConnectionStatusRow {
313
+ server_id: string;
314
+ display_name: string;
315
+ auth_type: string;
316
+ status: "connected" | "disconnected" | "not_required" | "expired";
317
+ difficulty: "easy" | "medium" | "hard";
318
+ connection_metadata: Record<string, unknown>;
319
+ connected_at: string | null;
320
+ }
321
+ export interface ConnectionWizardInstructions {
322
+ server_id: string;
323
+ display_name: string;
324
+ auth_type: string;
325
+ difficulty: "easy" | "medium" | "hard";
326
+ status: ConnectionStatusRow["status"];
327
+ connect_url: string;
328
+ instructions: string[];
329
+ required_secrets: Array<{
330
+ name: string;
331
+ hint?: string;
332
+ }>;
333
+ known_pitfalls: string[];
334
+ next_action: string;
335
+ }
336
+ export interface ConnectionWizardResult {
337
+ action: "list" | "status" | "initiate";
338
+ /** Populated for action=list. */
339
+ connections: ConnectionStatusRow[];
340
+ /** Populated for action=status. */
341
+ status: ConnectionStatusRow | null;
342
+ /** Populated for action=initiate. */
343
+ initiate: ConnectionWizardInstructions | null;
344
+ }
18
345
  export type BaseConnection = {
19
346
  id: string;
20
347
  connected: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,W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ClC;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAID,MAAM,WAAW,UAAU;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,UAAU;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;CACnB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codespar/types",
3
- "version": "0.1.0",
3
+ "version": "0.7.0",
4
4
  "description": "Shared session interface contract for codespar runtimes",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",