@maycombhq/sdk 2.0.0-beta.13 → 2.0.0-beta.15
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/npm/core/api.d.ts +6 -1
- package/npm/core/contract-check.d.ts +10 -0
- package/npm/index.js +3 -1
- package/package.json +1 -1
package/npm/core/api.d.ts
CHANGED
|
@@ -128,8 +128,10 @@ import { z } from "zod";
|
|
|
128
128
|
* calls share a path prefix or host with other open targets questions of its repo: the rule
|
|
129
129
|
* (`/accounts/**`) one answer could take to cover them all, the questions it covers and their
|
|
130
130
|
* calls. Additive only.
|
|
131
|
+
* 2.50.0 (ADR 0172): the contract check's counts give `unlinked`, the calls no link starts at.
|
|
132
|
+
* Additive only.
|
|
131
133
|
*/
|
|
132
|
-
export declare const API_VERSION = "2.
|
|
134
|
+
export declare const API_VERSION = "2.50.0";
|
|
133
135
|
export declare const DEFAULT_PORT = 4321;
|
|
134
136
|
/** RFC 9457 problem details, used for every error. */
|
|
135
137
|
export declare const Problem: z.ZodObject<{
|
|
@@ -2316,6 +2318,7 @@ export declare const ContractCounts: z.ZodObject<{
|
|
|
2316
2318
|
compared: z.ZodNumber;
|
|
2317
2319
|
mismatches: z.ZodNumber;
|
|
2318
2320
|
unconfirmed: z.ZodNumber;
|
|
2321
|
+
unlinked: z.ZodOptional<z.ZodNumber>;
|
|
2319
2322
|
}, z.core.$strip>;
|
|
2320
2323
|
export declare const TrustView: z.ZodObject<{
|
|
2321
2324
|
factsDir: z.ZodString;
|
|
@@ -2457,6 +2460,7 @@ export declare const TrustView: z.ZodObject<{
|
|
|
2457
2460
|
compared: z.ZodNumber;
|
|
2458
2461
|
mismatches: z.ZodNumber;
|
|
2459
2462
|
unconfirmed: z.ZodNumber;
|
|
2463
|
+
unlinked: z.ZodOptional<z.ZodNumber>;
|
|
2460
2464
|
}, z.core.$strip>>;
|
|
2461
2465
|
problems: z.ZodArray<z.ZodObject<{
|
|
2462
2466
|
file: z.ZodString;
|
|
@@ -3527,6 +3531,7 @@ export declare const ContractsView: z.ZodObject<{
|
|
|
3527
3531
|
compared: z.ZodNumber;
|
|
3528
3532
|
mismatches: z.ZodNumber;
|
|
3529
3533
|
unconfirmed: z.ZodNumber;
|
|
3534
|
+
unlinked: z.ZodOptional<z.ZodNumber>;
|
|
3530
3535
|
}, z.core.$strip>;
|
|
3531
3536
|
notes: z.ZodArray<z.ZodString>;
|
|
3532
3537
|
}, z.core.$strip>;
|
|
@@ -197,6 +197,11 @@ export interface ContractCheckResult {
|
|
|
197
197
|
compared: number;
|
|
198
198
|
mismatches: number;
|
|
199
199
|
unconfirmed: number;
|
|
200
|
+
/**
|
|
201
|
+
* ADR 0172: the calls no link starts at (not joined, not to an outside system), so nothing on
|
|
202
|
+
* their other side can be compared until they join.
|
|
203
|
+
*/
|
|
204
|
+
unlinked: number;
|
|
200
205
|
};
|
|
201
206
|
}
|
|
202
207
|
export interface ContractCheckInput {
|
|
@@ -243,6 +248,11 @@ export declare const isMessageType: (f: {
|
|
|
243
248
|
export declare const ENVELOPE_TRANSFORM: RegExp;
|
|
244
249
|
/** Compare the payload on both sides of every link the join made, and of every call to an outside system with a spec. */
|
|
245
250
|
export declare function checkContracts(input: ContractCheckInput): ContractCheckResult;
|
|
251
|
+
/**
|
|
252
|
+
* ADR 0172: the calls of the estate no link starts at: a REST, SOAP or gRPC call, or a publish,
|
|
253
|
+
* the join neither joined nor left to an outside system. Their payload is checked once they join.
|
|
254
|
+
*/
|
|
255
|
+
export declare function unlinkedCalls(input: Pick<ContractCheckInput, "repos" | "join">): FactEnd[];
|
|
246
256
|
/**
|
|
247
257
|
* The findings a newer spec of an outside system brings (ADR 0164): those against `next` that
|
|
248
258
|
* the same calls didn't have against `prev`, by kind, side and field. What the Outside systems
|
package/npm/index.js
CHANGED
|
@@ -5646,7 +5646,9 @@ var ContractCounts = z29.object({
|
|
|
5646
5646
|
links: z29.number().int(),
|
|
5647
5647
|
compared: z29.number().int(),
|
|
5648
5648
|
mismatches: z29.number().int(),
|
|
5649
|
-
unconfirmed: z29.number().int()
|
|
5649
|
+
unconfirmed: z29.number().int(),
|
|
5650
|
+
/** 2.50.0 (ADR 0172): the calls no link starts at, whose payload can't be checked yet. */
|
|
5651
|
+
unlinked: z29.number().int().optional()
|
|
5650
5652
|
});
|
|
5651
5653
|
var TrustView = z29.object({
|
|
5652
5654
|
/** Where the facts files are, relative to the metarepo. */
|
package/package.json
CHANGED