@adea-ai/contracts 1.17.0 → 1.18.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/dist/index.d.ts CHANGED
@@ -16,4 +16,5 @@ export * from './versioning.js';
16
16
  export * from './workspace-catalog.js';
17
17
  export declare const packageName = "contracts";
18
18
  export * from './model-connections.js';
19
+ export * from './pi-lead-publication.js';
19
20
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA;AAChC,cAAc,wBAAwB,CAAA;AACtC,cAAc,0BAA0B,CAAA;AACxC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,sBAAsB,CAAA;AACpC,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA;AAChC,cAAc,uBAAuB,CAAA;AACrC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AACtC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AAEtC,eAAO,MAAM,WAAW,cAAc,CAAA;AAEtC,cAAc,wBAAwB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA;AAChC,cAAc,wBAAwB,CAAA;AACtC,cAAc,0BAA0B,CAAA;AACxC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,sBAAsB,CAAA;AACpC,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA;AAChC,cAAc,uBAAuB,CAAA;AACrC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AACtC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AAEtC,eAAO,MAAM,WAAW,cAAc,CAAA;AAEtC,cAAc,wBAAwB,CAAA;AACtC,cAAc,0BAA0B,CAAA"}
package/dist/index.js CHANGED
@@ -16,4 +16,5 @@ export * from './versioning.js';
16
16
  export * from './workspace-catalog.js';
17
17
  export const packageName = 'contracts';
18
18
  export * from './model-connections.js';
19
+ export * from './pi-lead-publication.js';
19
20
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA;AAChC,cAAc,wBAAwB,CAAA;AACtC,cAAc,0BAA0B,CAAA;AACxC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,sBAAsB,CAAA;AACpC,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA;AAChC,cAAc,uBAAuB,CAAA;AACrC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AACtC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AAEtC,MAAM,CAAC,MAAM,WAAW,GAAG,WAAW,CAAA;AAEtC,cAAc,wBAAwB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA;AAChC,cAAc,wBAAwB,CAAA;AACtC,cAAc,0BAA0B,CAAA;AACxC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,sBAAsB,CAAA;AACpC,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA;AAChC,cAAc,uBAAuB,CAAA;AACrC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AACtC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AAEtC,MAAM,CAAC,MAAM,WAAW,GAAG,WAAW,CAAA;AAEtC,cAAc,wBAAwB,CAAA;AACtC,cAAc,0BAA0B,CAAA"}
@@ -0,0 +1,74 @@
1
+ import { z } from 'zod';
2
+ /** A lock-safe current delivery check. It grants no admission, spending or credential authority. */
3
+ export declare const PiLeadPublicationSchema: z.ZodObject<{
4
+ schemaVersion: z.ZodLiteral<"pi-lead-publication/v1">;
5
+ workspaceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"workspace ID">, string>>;
6
+ intentId: z.ZodUUID;
7
+ dispatchId: z.ZodString;
8
+ preparationRef: z.ZodString;
9
+ executionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"execution ID">, string>>;
10
+ attemptId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"attempt ID">, string>>;
11
+ runtimeSessionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"external-session ID">, string>>;
12
+ selectionRef: z.ZodString;
13
+ selectionRevision: z.ZodNumber;
14
+ canonicalActorPrincipalId: z.ZodString;
15
+ authorityRevision: z.ZodNumber;
16
+ resultContentDigest: z.ZodString;
17
+ expiresAt: z.ZodISODateTime;
18
+ }, z.core.$strict>;
19
+ export declare const PiLeadPublicationRequestSchema: z.ZodObject<{
20
+ contractVersion: z.ZodObject<{
21
+ major: z.ZodNumber;
22
+ minor: z.ZodNumber;
23
+ }, z.core.$strict>;
24
+ requestId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"request ID">, string>>;
25
+ workspaceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"workspace ID">, string>>;
26
+ correlation: z.ZodObject<{
27
+ traceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"trace ID">, string>>;
28
+ causationCommandId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"command ID">, string>>>;
29
+ parentEventId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"event ID">, string>>>;
30
+ }, z.core.$strip>;
31
+ requestedAt: z.ZodISODateTime;
32
+ caller: z.ZodObject<{
33
+ servicePrincipalId: z.ZodString;
34
+ }, z.core.$strict>;
35
+ operation: z.ZodLiteral<"pi-durable.lead.publication.current">;
36
+ parameters: z.ZodObject<{
37
+ dispatchId: z.ZodString;
38
+ preparationRef: z.ZodString;
39
+ }, z.core.$strict>;
40
+ }, z.core.$strict>;
41
+ export declare const PiLeadPublicationResponseSchema: z.ZodObject<{
42
+ contractVersion: z.ZodObject<{
43
+ major: z.ZodNumber;
44
+ minor: z.ZodNumber;
45
+ }, z.core.$strict>;
46
+ requestId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"request ID">, string>>;
47
+ correlation: z.ZodObject<{
48
+ traceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"trace ID">, string>>;
49
+ causationCommandId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"command ID">, string>>>;
50
+ parentEventId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"event ID">, string>>>;
51
+ }, z.core.$strip>;
52
+ data: z.ZodObject<{
53
+ publication: z.ZodObject<{
54
+ schemaVersion: z.ZodLiteral<"pi-lead-publication/v1">;
55
+ workspaceId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"workspace ID">, string>>;
56
+ intentId: z.ZodUUID;
57
+ dispatchId: z.ZodString;
58
+ preparationRef: z.ZodString;
59
+ executionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"execution ID">, string>>;
60
+ attemptId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"attempt ID">, string>>;
61
+ runtimeSessionId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identifiers.js").OpaqueIdentifier<"external-session ID">, string>>;
62
+ selectionRef: z.ZodString;
63
+ selectionRevision: z.ZodNumber;
64
+ canonicalActorPrincipalId: z.ZodString;
65
+ authorityRevision: z.ZodNumber;
66
+ resultContentDigest: z.ZodString;
67
+ expiresAt: z.ZodISODateTime;
68
+ }, z.core.$strict>;
69
+ }, z.core.$strict>;
70
+ }, z.core.$strict>;
71
+ export type PiLeadPublication = z.output<typeof PiLeadPublicationSchema>;
72
+ export type PiLeadPublicationRequest = z.output<typeof PiLeadPublicationRequestSchema>;
73
+ export type PiLeadPublicationResponse = z.output<typeof PiLeadPublicationResponseSchema>;
74
+ //# sourceMappingURL=pi-lead-publication.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pi-lead-publication.d.ts","sourceRoot":"","sources":["../src/pi-lead-publication.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAMvB,oGAAoG;AACpG,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;kBAiBlC,CAAA;AACF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;kBAMhC,CAAA;AACX,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAEjC,CAAA;AACX,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAA;AACxE,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,8BAA8B,CAAC,CAAA;AACtF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,+BAA+B,CAAC,CAAA"}
@@ -0,0 +1,35 @@
1
+ import { z } from 'zod';
2
+ import { IdentifierSchemas } from './identifiers.js';
3
+ import { ReadRequestEnvelopeSchema, SuccessResponseEnvelopeSchema } from './envelopes.js';
4
+ import { ServiceCallerAssertionSchema } from './authentication.js';
5
+ import { ModelSelectionRefSchema } from './model-connections.js';
6
+ /** A lock-safe current delivery check. It grants no admission, spending or credential authority. */
7
+ export const PiLeadPublicationSchema = z.strictObject({
8
+ schemaVersion: z.literal('pi-lead-publication/v1'),
9
+ workspaceId: IdentifierSchemas.workspaceId,
10
+ intentId: z.uuid(),
11
+ dispatchId: z.string().regex(/^dispatch_[a-f0-9]{32}$/),
12
+ preparationRef: z.string().regex(/^prep_[a-f0-9]{32}$/),
13
+ executionId: IdentifierSchemas.executionId,
14
+ attemptId: IdentifierSchemas.attemptId,
15
+ runtimeSessionId: IdentifierSchemas.externalSessionId,
16
+ selectionRef: ModelSelectionRefSchema,
17
+ selectionRevision: z.number().int().positive(),
18
+ canonicalActorPrincipalId: z
19
+ .string()
20
+ .regex(/^user:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i),
21
+ authorityRevision: z.number().int().positive(),
22
+ resultContentDigest: z.string().regex(/^sha256:[a-f0-9]{64}$/),
23
+ expiresAt: z.iso.datetime(),
24
+ });
25
+ export const PiLeadPublicationRequestSchema = ReadRequestEnvelopeSchema.omit({ projectId: true })
26
+ .extend({
27
+ caller: ServiceCallerAssertionSchema.strict(),
28
+ operation: z.literal('pi-durable.lead.publication.current'),
29
+ parameters: PiLeadPublicationSchema.pick({ dispatchId: true, preparationRef: true }),
30
+ })
31
+ .strict();
32
+ export const PiLeadPublicationResponseSchema = SuccessResponseEnvelopeSchema.extend({
33
+ data: z.strictObject({ publication: PiLeadPublicationSchema }),
34
+ }).strict();
35
+ //# sourceMappingURL=pi-lead-publication.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pi-lead-publication.js","sourceRoot":"","sources":["../src/pi-lead-publication.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AACpD,OAAO,EAAE,yBAAyB,EAAE,6BAA6B,EAAE,MAAM,gBAAgB,CAAA;AACzF,OAAO,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAA;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAA;AAEhE,oGAAoG;AACpG,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,YAAY,CAAC;IACpD,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,wBAAwB,CAAC;IAClD,WAAW,EAAE,iBAAiB,CAAC,WAAW;IAC1C,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE;IAClB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,yBAAyB,CAAC;IACvD,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,qBAAqB,CAAC;IACvD,WAAW,EAAE,iBAAiB,CAAC,WAAW;IAC1C,SAAS,EAAE,iBAAiB,CAAC,SAAS;IACtC,gBAAgB,EAAE,iBAAiB,CAAC,iBAAiB;IACrD,YAAY,EAAE,uBAAuB;IACrC,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC9C,yBAAyB,EAAE,CAAC;SACzB,MAAM,EAAE;SACR,KAAK,CAAC,iFAAiF,CAAC;IAC3F,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC9C,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,uBAAuB,CAAC;IAC9D,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE;CAC5B,CAAC,CAAA;AACF,MAAM,CAAC,MAAM,8BAA8B,GAAG,yBAAyB,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;KAC9F,MAAM,CAAC;IACN,MAAM,EAAE,4BAA4B,CAAC,MAAM,EAAE;IAC7C,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,qCAAqC,CAAC;IAC3D,UAAU,EAAE,uBAAuB,CAAC,IAAI,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC;CACrF,CAAC;KACD,MAAM,EAAE,CAAA;AACX,MAAM,CAAC,MAAM,+BAA+B,GAAG,6BAA6B,CAAC,MAAM,CAAC;IAClF,IAAI,EAAE,CAAC,CAAC,YAAY,CAAC,EAAE,WAAW,EAAE,uBAAuB,EAAE,CAAC;CAC/D,CAAC,CAAC,MAAM,EAAE,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adea-ai/contracts",
3
- "version": "1.17.0",
3
+ "version": "1.18.0",
4
4
  "description": "Runtime-independent service boundary between Adea and the Control Plane: canonical identifiers, envelopes, Control API schemas, pagination, and versioning.",
5
5
  "keywords": [
6
6
  "agents",