@codespar/api-types
Advanced tools
| import { z } from "zod"; | ||
| export declare const ConsumerFundingSourceRowSchema: z.ZodObject<{ | ||
| id: z.ZodString; | ||
| consumer_id: z.ZodString; | ||
| rail: z.ZodString; | ||
| currency: z.ZodString; | ||
| provider: z.ZodString; | ||
| display_label: z.ZodNullable<z.ZodString>; | ||
| status: z.ZodString; | ||
| created_at: z.ZodString; | ||
| expires_at: z.ZodNullable<z.ZodString>; | ||
| revoked_at: z.ZodNullable<z.ZodString>; | ||
| metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| status: string; | ||
| id: string; | ||
| created_at: string; | ||
| revoked_at: string | null; | ||
| metadata: Record<string, unknown>; | ||
| expires_at: string | null; | ||
| consumer_id: string; | ||
| rail: string; | ||
| currency: string; | ||
| provider: string; | ||
| display_label: string | null; | ||
| }, { | ||
| status: string; | ||
| id: string; | ||
| created_at: string; | ||
| revoked_at: string | null; | ||
| metadata: Record<string, unknown>; | ||
| expires_at: string | null; | ||
| consumer_id: string; | ||
| rail: string; | ||
| currency: string; | ||
| provider: string; | ||
| display_label: string | null; | ||
| }>; | ||
| export type ConsumerFundingSourceRow = z.infer<typeof ConsumerFundingSourceRowSchema>; | ||
| export declare const ListConsumerFundingSourcesResponseSchema: z.ZodObject<{ | ||
| funding_sources: z.ZodArray<z.ZodObject<{ | ||
| id: z.ZodString; | ||
| consumer_id: z.ZodString; | ||
| rail: z.ZodString; | ||
| currency: z.ZodString; | ||
| provider: z.ZodString; | ||
| display_label: z.ZodNullable<z.ZodString>; | ||
| status: z.ZodString; | ||
| created_at: z.ZodString; | ||
| expires_at: z.ZodNullable<z.ZodString>; | ||
| revoked_at: z.ZodNullable<z.ZodString>; | ||
| metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| status: string; | ||
| id: string; | ||
| created_at: string; | ||
| revoked_at: string | null; | ||
| metadata: Record<string, unknown>; | ||
| expires_at: string | null; | ||
| consumer_id: string; | ||
| rail: string; | ||
| currency: string; | ||
| provider: string; | ||
| display_label: string | null; | ||
| }, { | ||
| status: string; | ||
| id: string; | ||
| created_at: string; | ||
| revoked_at: string | null; | ||
| metadata: Record<string, unknown>; | ||
| expires_at: string | null; | ||
| consumer_id: string; | ||
| rail: string; | ||
| currency: string; | ||
| provider: string; | ||
| display_label: string | null; | ||
| }>, "many">; | ||
| }, "strip", z.ZodTypeAny, { | ||
| funding_sources: { | ||
| status: string; | ||
| id: string; | ||
| created_at: string; | ||
| revoked_at: string | null; | ||
| metadata: Record<string, unknown>; | ||
| expires_at: string | null; | ||
| consumer_id: string; | ||
| rail: string; | ||
| currency: string; | ||
| provider: string; | ||
| display_label: string | null; | ||
| }[]; | ||
| }, { | ||
| funding_sources: { | ||
| status: string; | ||
| id: string; | ||
| created_at: string; | ||
| revoked_at: string | null; | ||
| metadata: Record<string, unknown>; | ||
| expires_at: string | null; | ||
| consumer_id: string; | ||
| rail: string; | ||
| currency: string; | ||
| provider: string; | ||
| display_label: string | null; | ||
| }[]; | ||
| }>; | ||
| export type ListConsumerFundingSourcesResponse = z.infer<typeof ListConsumerFundingSourcesResponseSchema>; | ||
| export declare const ConsumerConsentRowSchema: z.ZodObject<{ | ||
| id: z.ZodString; | ||
| consumer_id: z.ZodString; | ||
| funding_source_id: z.ZodNullable<z.ZodString>; | ||
| agent_id: z.ZodNullable<z.ZodString>; | ||
| kind: z.ZodString; | ||
| hmac_secret_version: z.ZodNumber; | ||
| cap_minor: z.ZodNullable<z.ZodString>; | ||
| per_tx_cap_minor: z.ZodNullable<z.ZodString>; | ||
| currency: z.ZodNullable<z.ZodString>; | ||
| purpose: z.ZodNullable<z.ZodString>; | ||
| ip_address: z.ZodNullable<z.ZodString>; | ||
| signed_at: z.ZodString; | ||
| expires_at: z.ZodNullable<z.ZodString>; | ||
| metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| id: string; | ||
| metadata: Record<string, unknown>; | ||
| expires_at: string | null; | ||
| consumer_id: string; | ||
| currency: string | null; | ||
| funding_source_id: string | null; | ||
| agent_id: string | null; | ||
| kind: string; | ||
| hmac_secret_version: number; | ||
| cap_minor: string | null; | ||
| per_tx_cap_minor: string | null; | ||
| purpose: string | null; | ||
| ip_address: string | null; | ||
| signed_at: string; | ||
| }, { | ||
| id: string; | ||
| metadata: Record<string, unknown>; | ||
| expires_at: string | null; | ||
| consumer_id: string; | ||
| currency: string | null; | ||
| funding_source_id: string | null; | ||
| agent_id: string | null; | ||
| kind: string; | ||
| hmac_secret_version: number; | ||
| cap_minor: string | null; | ||
| per_tx_cap_minor: string | null; | ||
| purpose: string | null; | ||
| ip_address: string | null; | ||
| signed_at: string; | ||
| }>; | ||
| export type ConsumerConsentRow = z.infer<typeof ConsumerConsentRowSchema>; | ||
| export declare const ListConsumerConsentsResponseSchema: z.ZodObject<{ | ||
| consents: z.ZodArray<z.ZodObject<{ | ||
| id: z.ZodString; | ||
| consumer_id: z.ZodString; | ||
| funding_source_id: z.ZodNullable<z.ZodString>; | ||
| agent_id: z.ZodNullable<z.ZodString>; | ||
| kind: z.ZodString; | ||
| hmac_secret_version: z.ZodNumber; | ||
| cap_minor: z.ZodNullable<z.ZodString>; | ||
| per_tx_cap_minor: z.ZodNullable<z.ZodString>; | ||
| currency: z.ZodNullable<z.ZodString>; | ||
| purpose: z.ZodNullable<z.ZodString>; | ||
| ip_address: z.ZodNullable<z.ZodString>; | ||
| signed_at: z.ZodString; | ||
| expires_at: z.ZodNullable<z.ZodString>; | ||
| metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| id: string; | ||
| metadata: Record<string, unknown>; | ||
| expires_at: string | null; | ||
| consumer_id: string; | ||
| currency: string | null; | ||
| funding_source_id: string | null; | ||
| agent_id: string | null; | ||
| kind: string; | ||
| hmac_secret_version: number; | ||
| cap_minor: string | null; | ||
| per_tx_cap_minor: string | null; | ||
| purpose: string | null; | ||
| ip_address: string | null; | ||
| signed_at: string; | ||
| }, { | ||
| id: string; | ||
| metadata: Record<string, unknown>; | ||
| expires_at: string | null; | ||
| consumer_id: string; | ||
| currency: string | null; | ||
| funding_source_id: string | null; | ||
| agent_id: string | null; | ||
| kind: string; | ||
| hmac_secret_version: number; | ||
| cap_minor: string | null; | ||
| per_tx_cap_minor: string | null; | ||
| purpose: string | null; | ||
| ip_address: string | null; | ||
| signed_at: string; | ||
| }>, "many">; | ||
| }, "strip", z.ZodTypeAny, { | ||
| consents: { | ||
| id: string; | ||
| metadata: Record<string, unknown>; | ||
| expires_at: string | null; | ||
| consumer_id: string; | ||
| currency: string | null; | ||
| funding_source_id: string | null; | ||
| agent_id: string | null; | ||
| kind: string; | ||
| hmac_secret_version: number; | ||
| cap_minor: string | null; | ||
| per_tx_cap_minor: string | null; | ||
| purpose: string | null; | ||
| ip_address: string | null; | ||
| signed_at: string; | ||
| }[]; | ||
| }, { | ||
| consents: { | ||
| id: string; | ||
| metadata: Record<string, unknown>; | ||
| expires_at: string | null; | ||
| consumer_id: string; | ||
| currency: string | null; | ||
| funding_source_id: string | null; | ||
| agent_id: string | null; | ||
| kind: string; | ||
| hmac_secret_version: number; | ||
| cap_minor: string | null; | ||
| per_tx_cap_minor: string | null; | ||
| purpose: string | null; | ||
| ip_address: string | null; | ||
| signed_at: string; | ||
| }[]; | ||
| }>; | ||
| export type ListConsumerConsentsResponse = z.infer<typeof ListConsumerConsentsResponseSchema>; | ||
| //# sourceMappingURL=consumers.d.ts.map |
| {"version":3,"file":"consumers.d.ts","sourceRoot":"","sources":["../src/consumers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,8BAA8B,CACtC,CAAC;AAEF,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEnD,CAAC;AACH,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,wCAAwC,CAChD,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAenC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE7C,CAAC;AACH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,kCAAkC,CAC1C,CAAC"} |
| import { z } from "zod"; | ||
| import { TimestampSchema } from "./common.js"; | ||
| /* Consumer-mandate / directed-pay surface — read-only list endpoints | ||
| * GET /v1/consumers/funding-sources and GET /v1/consumers/consents. | ||
| * Schema lives here so backend (codespar-enterprise) and dashboard | ||
| * (codespar-web) parse the same wire shape. Migrations: 0040 | ||
| * (consumer_funding_sources), 0041 (consumer_consents). | ||
| */ | ||
| export const ConsumerFundingSourceRowSchema = z.object({ | ||
| id: z.string(), | ||
| consumer_id: z.string(), | ||
| rail: z.string(), | ||
| currency: z.string(), | ||
| provider: z.string(), | ||
| display_label: z.string().nullable(), | ||
| status: z.string(), | ||
| created_at: TimestampSchema, | ||
| expires_at: TimestampSchema.nullable(), | ||
| revoked_at: TimestampSchema.nullable(), | ||
| metadata: z.record(z.string(), z.unknown()), | ||
| }); | ||
| export const ListConsumerFundingSourcesResponseSchema = z.object({ | ||
| funding_sources: z.array(ConsumerFundingSourceRowSchema), | ||
| }); | ||
| export const ConsumerConsentRowSchema = z.object({ | ||
| id: z.string(), | ||
| consumer_id: z.string(), | ||
| funding_source_id: z.string().nullable(), | ||
| agent_id: z.string().nullable(), | ||
| kind: z.string(), | ||
| hmac_secret_version: z.number().int().nonnegative(), | ||
| cap_minor: z.string().nullable(), | ||
| per_tx_cap_minor: z.string().nullable(), | ||
| currency: z.string().nullable(), | ||
| purpose: z.string().nullable(), | ||
| ip_address: z.string().nullable(), | ||
| signed_at: TimestampSchema, | ||
| expires_at: TimestampSchema.nullable(), | ||
| metadata: z.record(z.string(), z.unknown()), | ||
| }); | ||
| export const ListConsumerConsentsResponseSchema = z.object({ | ||
| consents: z.array(ConsumerConsentRowSchema), | ||
| }); | ||
| //# sourceMappingURL=consumers.js.map |
| {"version":3,"file":"consumers.js","sourceRoot":"","sources":["../src/consumers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IACrD,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,UAAU,EAAE,eAAe;IAC3B,UAAU,EAAE,eAAe,CAAC,QAAQ,EAAE;IACtC,UAAU,EAAE,eAAe,CAAC,QAAQ,EAAE;IACtC,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC;CAC5C,CAAC,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| export * from "./sessions.js"; | ||
| export * from "./consumers.js"; | ||
| //# sourceMappingURL=index.d.ts.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"} | ||
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC"} |
+1
-0
@@ -7,2 +7,3 @@ export * from "./common.js"; | ||
| export * from "./sessions.js"; | ||
| export * from "./consumers.js"; | ||
| //# sourceMappingURL=index.js.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"} | ||
| {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC"} |
+48
-0
@@ -12,2 +12,8 @@ import { z } from "zod"; | ||
| status: z.ZodString; | ||
| provider_homepage: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
| provider_logo_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
| provider_logo_fallback_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
| provider_docs_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
| sandbox_available: z.ZodOptional<z.ZodBoolean>; | ||
| sandbox_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
| }, "strip", z.ZodTypeAny, { | ||
@@ -23,2 +29,8 @@ status: string; | ||
| description: string | null; | ||
| provider_homepage?: string | null | undefined; | ||
| provider_logo_url?: string | null | undefined; | ||
| provider_logo_fallback_url?: string | null | undefined; | ||
| provider_docs_url?: string | null | undefined; | ||
| sandbox_available?: boolean | undefined; | ||
| sandbox_url?: string | null | undefined; | ||
| }, { | ||
@@ -34,2 +46,8 @@ status: string; | ||
| description: string | null; | ||
| provider_homepage?: string | null | undefined; | ||
| provider_logo_url?: string | null | undefined; | ||
| provider_logo_fallback_url?: string | null | undefined; | ||
| provider_docs_url?: string | null | undefined; | ||
| sandbox_available?: boolean | undefined; | ||
| sandbox_url?: string | null | undefined; | ||
| }>; | ||
@@ -50,2 +68,8 @@ export type ServerRow = z.infer<typeof ServerRowSchema>; | ||
| status: z.ZodString; | ||
| provider_homepage: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
| provider_logo_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
| provider_logo_fallback_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
| provider_docs_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
| sandbox_available: z.ZodOptional<z.ZodBoolean>; | ||
| sandbox_url: z.ZodOptional<z.ZodNullable<z.ZodString>>; | ||
| }, "strip", z.ZodTypeAny, { | ||
@@ -61,2 +85,8 @@ status: string; | ||
| description: string | null; | ||
| provider_homepage?: string | null | undefined; | ||
| provider_logo_url?: string | null | undefined; | ||
| provider_logo_fallback_url?: string | null | undefined; | ||
| provider_docs_url?: string | null | undefined; | ||
| sandbox_available?: boolean | undefined; | ||
| sandbox_url?: string | null | undefined; | ||
| }, { | ||
@@ -72,2 +102,8 @@ status: string; | ||
| description: string | null; | ||
| provider_homepage?: string | null | undefined; | ||
| provider_logo_url?: string | null | undefined; | ||
| provider_logo_fallback_url?: string | null | undefined; | ||
| provider_docs_url?: string | null | undefined; | ||
| sandbox_available?: boolean | undefined; | ||
| sandbox_url?: string | null | undefined; | ||
| }>, "many">; | ||
@@ -87,2 +123,8 @@ }, "strip", z.ZodTypeAny, { | ||
| description: string | null; | ||
| provider_homepage?: string | null | undefined; | ||
| provider_logo_url?: string | null | undefined; | ||
| provider_logo_fallback_url?: string | null | undefined; | ||
| provider_docs_url?: string | null | undefined; | ||
| sandbox_available?: boolean | undefined; | ||
| sandbox_url?: string | null | undefined; | ||
| }[]; | ||
@@ -102,2 +144,8 @@ }, { | ||
| description: string | null; | ||
| provider_homepage?: string | null | undefined; | ||
| provider_logo_url?: string | null | undefined; | ||
| provider_logo_fallback_url?: string | null | undefined; | ||
| provider_docs_url?: string | null | undefined; | ||
| sandbox_available?: boolean | undefined; | ||
| sandbox_url?: string | null | undefined; | ||
| }[]; | ||
@@ -104,0 +152,0 @@ }>; |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"servers.d.ts","sourceRoot":"","sources":["../src/servers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU1B,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE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MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,8BAA8B,CACtC,CAAC"} |
+11
-0
@@ -14,2 +14,13 @@ import { z } from "zod"; | ||
| status: z.string(), | ||
| /* Provider metadata sourced from each mcp-brasil package's server.json. | ||
| * Optional + nullable — packages predating the 0030 migration return | ||
| * undefined; rows where the seed never ran return null. UI falls back | ||
| * to a Google-favicon URL constructed from `pkg` when both are absent. | ||
| * Migration: 0030_servers_provider_metadata. */ | ||
| provider_homepage: z.string().nullable().optional(), | ||
| provider_logo_url: z.string().nullable().optional(), | ||
| provider_logo_fallback_url: z.string().nullable().optional(), | ||
| provider_docs_url: z.string().nullable().optional(), | ||
| sandbox_available: z.boolean().optional(), | ||
| sandbox_url: z.string().nullable().optional(), | ||
| }); | ||
@@ -16,0 +27,0 @@ export const ListServersResponseSchema = z.object({ |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"servers.js","sourceRoot":"","sources":["../src/servers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,SAAS,EAAE,cAAc;IACzB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;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C,CAAC,MAAM,CAAC;IAChD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACrC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACxC,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC;CAClC,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC9C,SAAS;IACT,aAAa;IACb,QAAQ;CACT,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,yBAAyB;IAC/B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IACrD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACtE,WAAW,EAAE,iBAAiB;IAC9B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1C,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,qBAAqB,CAAC;CACvC,CAAC,CAAC"} |
+1
-1
| { | ||
| "name": "@codespar/api-types", | ||
| "version": "0.1.0", | ||
| "version": "0.2.0", | ||
| "description": "Shared REST wire contract for the CodeSpar managed-tier API (api.codespar.dev) — Zod schemas + inferred TypeScript types", | ||
@@ -5,0 +5,0 @@ "type": "module", |
+8
-0
@@ -47,1 +47,9 @@ # @codespar/api-types | ||
| Keep TS + Python + backend aligned — drift is the loudest way to break trust. | ||
| ## Need more? | ||
| 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. | ||
| ## License | ||
| MIT — [codespar.dev](https://codespar.dev) |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
79903
25.21%39
11.43%1563
27.91%55
17.02%0
-100%