@jentra/contracts 0.0.0-stage → 0.1.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 +450 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +273 -0
- package/dist/index.js.map +1 -0
- package/package.json +16 -4
- package/README.md +0 -3
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,450 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ActorReferenceSchema: z.ZodObject<{
|
|
3
|
+
participantId: z.ZodString;
|
|
4
|
+
clientSessionId: z.ZodOptional<z.ZodString>;
|
|
5
|
+
runtimeId: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export declare const AuthorityReferenceSchema: z.ZodObject<{
|
|
8
|
+
roleBindingId: z.ZodString;
|
|
9
|
+
capabilityGrantIds: z.ZodArray<z.ZodString>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export declare const CommandEnvelopeSchema: z.ZodObject<{
|
|
12
|
+
commandId: z.ZodString;
|
|
13
|
+
commandType: z.ZodString;
|
|
14
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
15
|
+
journeyId: z.ZodString;
|
|
16
|
+
aggregateVersionExpected: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"ANY_ALLOWED">]>;
|
|
17
|
+
actor: z.ZodObject<{
|
|
18
|
+
participantId: z.ZodString;
|
|
19
|
+
clientSessionId: z.ZodOptional<z.ZodString>;
|
|
20
|
+
runtimeId: z.ZodOptional<z.ZodString>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
authority: z.ZodObject<{
|
|
23
|
+
roleBindingId: z.ZodString;
|
|
24
|
+
capabilityGrantIds: z.ZodArray<z.ZodString>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
policySnapshotId: z.ZodString;
|
|
27
|
+
correlationId: z.ZodString;
|
|
28
|
+
causationId: z.ZodOptional<z.ZodString>;
|
|
29
|
+
idempotencyKey: z.ZodString;
|
|
30
|
+
receivedAt: z.ZodISODateTime;
|
|
31
|
+
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
32
|
+
payloadHash: z.ZodString;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
export declare const DomainEventEnvelopeSchema: z.ZodObject<{
|
|
35
|
+
eventId: z.ZodString;
|
|
36
|
+
journeyId: z.ZodString;
|
|
37
|
+
journeySequence: z.ZodNumber;
|
|
38
|
+
aggregateVersion: z.ZodNumber;
|
|
39
|
+
eventType: z.ZodString;
|
|
40
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
41
|
+
occurredAt: z.ZodISODateTime;
|
|
42
|
+
recordedAt: z.ZodISODateTime;
|
|
43
|
+
actor: z.ZodObject<{
|
|
44
|
+
participantId: z.ZodString;
|
|
45
|
+
clientSessionId: z.ZodOptional<z.ZodString>;
|
|
46
|
+
runtimeId: z.ZodOptional<z.ZodString>;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
authority: z.ZodOptional<z.ZodObject<{
|
|
49
|
+
roleBindingId: z.ZodString;
|
|
50
|
+
capabilityGrantIds: z.ZodArray<z.ZodString>;
|
|
51
|
+
}, z.core.$strip>>;
|
|
52
|
+
correlationId: z.ZodString;
|
|
53
|
+
causationId: z.ZodOptional<z.ZodString>;
|
|
54
|
+
commandId: z.ZodString;
|
|
55
|
+
policySnapshotId: z.ZodString;
|
|
56
|
+
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
57
|
+
payloadHash: z.ZodString;
|
|
58
|
+
previousEventHash: z.ZodOptional<z.ZodString>;
|
|
59
|
+
eventHash: z.ZodString;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
export declare const ApiErrorSchema: z.ZodObject<{
|
|
62
|
+
code: z.ZodString;
|
|
63
|
+
messagePlain: z.ZodString;
|
|
64
|
+
targetRef: z.ZodOptional<z.ZodString>;
|
|
65
|
+
currentVersion: z.ZodOptional<z.ZodNumber>;
|
|
66
|
+
retryClass: z.ZodEnum<{
|
|
67
|
+
NEVER: "NEVER";
|
|
68
|
+
SAFE_SAME_KEY: "SAFE_SAME_KEY";
|
|
69
|
+
REREAD_REQUIRED: "REREAD_REQUIRED";
|
|
70
|
+
USER_ACTION: "USER_ACTION";
|
|
71
|
+
LATER: "LATER";
|
|
72
|
+
}>;
|
|
73
|
+
remediationActions: z.ZodArray<z.ZodString>;
|
|
74
|
+
correlationId: z.ZodString;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
export declare const OperationSchema: z.ZodObject<{
|
|
77
|
+
id: z.ZodString;
|
|
78
|
+
type: z.ZodString;
|
|
79
|
+
status: z.ZodEnum<{
|
|
80
|
+
PENDING: "PENDING";
|
|
81
|
+
RUNNING: "RUNNING";
|
|
82
|
+
WAITING: "WAITING";
|
|
83
|
+
SUCCEEDED: "SUCCEEDED";
|
|
84
|
+
FAILED: "FAILED";
|
|
85
|
+
CANCELLED: "CANCELLED";
|
|
86
|
+
UNKNOWN: "UNKNOWN";
|
|
87
|
+
}>;
|
|
88
|
+
inputHash: z.ZodString;
|
|
89
|
+
resultRef: z.ZodOptional<z.ZodString>;
|
|
90
|
+
attempt: z.ZodNumber;
|
|
91
|
+
createdAt: z.ZodISODateTime;
|
|
92
|
+
updatedAt: z.ZodISODateTime;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
export declare const CommandReceiptSchema: z.ZodObject<{
|
|
95
|
+
commandId: z.ZodString;
|
|
96
|
+
idempotencyKey: z.ZodString;
|
|
97
|
+
payloadHash: z.ZodString;
|
|
98
|
+
status: z.ZodEnum<{
|
|
99
|
+
ACCEPTED: "ACCEPTED";
|
|
100
|
+
REJECTED: "REJECTED";
|
|
101
|
+
}>;
|
|
102
|
+
aggregateVersion: z.ZodNumber;
|
|
103
|
+
lastSequence: z.ZodNumber;
|
|
104
|
+
result: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
105
|
+
}, z.core.$strip>;
|
|
106
|
+
export declare const CoordinationRequestPayloadSchema: z.ZodObject<{
|
|
107
|
+
requestId: z.ZodString;
|
|
108
|
+
sourceRoleBindingId: z.ZodString;
|
|
109
|
+
sourceAssignmentId: z.ZodString;
|
|
110
|
+
targetWorkstreamId: z.ZodString;
|
|
111
|
+
targetScope: z.ZodEnum<{
|
|
112
|
+
WORKSTREAM: "WORKSTREAM";
|
|
113
|
+
CROSS_WORKSTREAM: "CROSS_WORKSTREAM";
|
|
114
|
+
JOURNEY: "JOURNEY";
|
|
115
|
+
HUMAN_AUTHORITY: "HUMAN_AUTHORITY";
|
|
116
|
+
}>;
|
|
117
|
+
requestType: z.ZodEnum<{
|
|
118
|
+
DEPENDENCY_REPORT: "DEPENDENCY_REPORT";
|
|
119
|
+
OVERLAP_REPORT: "OVERLAP_REPORT";
|
|
120
|
+
CONTRACT_REQUEST: "CONTRACT_REQUEST";
|
|
121
|
+
BLOCKER_REPORT: "BLOCKER_REPORT";
|
|
122
|
+
PAIR_REQUEST: "PAIR_REQUEST";
|
|
123
|
+
ASSISTANCE_REQUEST: "ASSISTANCE_REQUEST";
|
|
124
|
+
}>;
|
|
125
|
+
subjectKey: z.ZodString;
|
|
126
|
+
subjectVersion: z.ZodNumber;
|
|
127
|
+
summary: z.ZodString;
|
|
128
|
+
requestedOutcome: z.ZodString;
|
|
129
|
+
urgency: z.ZodEnum<{
|
|
130
|
+
INFORMATIONAL: "INFORMATIONAL";
|
|
131
|
+
ACTION_REQUIRED: "ACTION_REQUIRED";
|
|
132
|
+
BLOCKING: "BLOCKING";
|
|
133
|
+
URGENT: "URGENT";
|
|
134
|
+
SECURITY_CRITICAL: "SECURITY_CRITICAL";
|
|
135
|
+
}>;
|
|
136
|
+
evidenceRefs: z.ZodArray<z.ZodString>;
|
|
137
|
+
dissentRefs: z.ZodArray<z.ZodString>;
|
|
138
|
+
}, z.core.$strip>;
|
|
139
|
+
export declare const ContextManifestSchema: z.ZodObject<{
|
|
140
|
+
id: z.ZodString;
|
|
141
|
+
assignmentId: z.ZodString;
|
|
142
|
+
worldId: z.ZodString;
|
|
143
|
+
baselineCommit: z.ZodString;
|
|
144
|
+
scopeRefs: z.ZodArray<z.ZodString>;
|
|
145
|
+
contractRefs: z.ZodArray<z.ZodString>;
|
|
146
|
+
dependencyRefs: z.ZodArray<z.ZodString>;
|
|
147
|
+
discoveryRefs: z.ZodArray<z.ZodString>;
|
|
148
|
+
policySnapshotId: z.ZodString;
|
|
149
|
+
generatedAt: z.ZodISODateTime;
|
|
150
|
+
contentHash: z.ZodString;
|
|
151
|
+
}, z.core.$strip>;
|
|
152
|
+
export declare const AttentionItemViewSchema: z.ZodObject<{
|
|
153
|
+
id: z.ZodString;
|
|
154
|
+
severity: z.ZodEnum<{
|
|
155
|
+
INFORMATIONAL: "INFORMATIONAL";
|
|
156
|
+
ACTION_REQUIRED: "ACTION_REQUIRED";
|
|
157
|
+
BLOCKING: "BLOCKING";
|
|
158
|
+
URGENT: "URGENT";
|
|
159
|
+
SECURITY_CRITICAL: "SECURITY_CRITICAL";
|
|
160
|
+
}>;
|
|
161
|
+
title: z.ZodString;
|
|
162
|
+
explanation: z.ZodString;
|
|
163
|
+
status: z.ZodEnum<{
|
|
164
|
+
OPEN: "OPEN";
|
|
165
|
+
ACKNOWLEDGED: "ACKNOWLEDGED";
|
|
166
|
+
RESOLVED: "RESOLVED";
|
|
167
|
+
SUPERSEDED: "SUPERSEDED";
|
|
168
|
+
}>;
|
|
169
|
+
version: z.ZodNumber;
|
|
170
|
+
}, z.core.$strip>;
|
|
171
|
+
export declare const VerificationSubjectManifestSchema: z.ZodObject<{
|
|
172
|
+
id: z.ZodString;
|
|
173
|
+
planId: z.ZodString;
|
|
174
|
+
subjectRef: z.ZodString;
|
|
175
|
+
subjectHash: z.ZodString;
|
|
176
|
+
candidateHash: z.ZodString;
|
|
177
|
+
claimRefs: z.ZodArray<z.ZodString>;
|
|
178
|
+
evidenceRefs: z.ZodArray<z.ZodString>;
|
|
179
|
+
counterevidenceRefs: z.ZodArray<z.ZodString>;
|
|
180
|
+
contextManifestHash: z.ZodString;
|
|
181
|
+
contractRefs: z.ZodArray<z.ZodString>;
|
|
182
|
+
dependencyRefs: z.ZodArray<z.ZodString>;
|
|
183
|
+
knownLimitations: z.ZodArray<z.ZodString>;
|
|
184
|
+
policySnapshotId: z.ZodString;
|
|
185
|
+
contentHash: z.ZodString;
|
|
186
|
+
}, z.core.$strip>;
|
|
187
|
+
export declare const AssuranceFindingSchema: z.ZodObject<{
|
|
188
|
+
id: z.ZodString;
|
|
189
|
+
runId: z.ZodString;
|
|
190
|
+
type: z.ZodEnum<{
|
|
191
|
+
CONFIRMING: "CONFIRMING";
|
|
192
|
+
COUNTEREXAMPLE: "COUNTEREXAMPLE";
|
|
193
|
+
GAP: "GAP";
|
|
194
|
+
RISK: "RISK";
|
|
195
|
+
ASSUMPTION: "ASSUMPTION";
|
|
196
|
+
REGRESSION: "REGRESSION";
|
|
197
|
+
SECURITY: "SECURITY";
|
|
198
|
+
}>;
|
|
199
|
+
severity: z.ZodEnum<{
|
|
200
|
+
INFO: "INFO";
|
|
201
|
+
LOW: "LOW";
|
|
202
|
+
MEDIUM: "MEDIUM";
|
|
203
|
+
HIGH: "HIGH";
|
|
204
|
+
CRITICAL: "CRITICAL";
|
|
205
|
+
}>;
|
|
206
|
+
statement: z.ZodString;
|
|
207
|
+
affectedClaimRefs: z.ZodArray<z.ZodString>;
|
|
208
|
+
evidenceRefs: z.ZodArray<z.ZodString>;
|
|
209
|
+
reproductionRef: z.ZodOptional<z.ZodString>;
|
|
210
|
+
status: z.ZodEnum<{
|
|
211
|
+
OPEN: "OPEN";
|
|
212
|
+
RESOLVED: "RESOLVED";
|
|
213
|
+
SUPERSEDED: "SUPERSEDED";
|
|
214
|
+
CONFIRMED: "CONFIRMED";
|
|
215
|
+
DISPUTED: "DISPUTED";
|
|
216
|
+
ACCEPTED_RISK: "ACCEPTED_RISK";
|
|
217
|
+
}>;
|
|
218
|
+
authoredBy: z.ZodString;
|
|
219
|
+
version: z.ZodNumber;
|
|
220
|
+
}, z.core.$strip>;
|
|
221
|
+
export declare const AssuranceOutcomeSchema: z.ZodObject<{
|
|
222
|
+
planId: z.ZodString;
|
|
223
|
+
subjectRef: z.ZodString;
|
|
224
|
+
runIds: z.ZodArray<z.ZodString>;
|
|
225
|
+
unresolvedFindingIds: z.ZodArray<z.ZodString>;
|
|
226
|
+
result: z.ZodEnum<{
|
|
227
|
+
FAILED: "FAILED";
|
|
228
|
+
PASSED: "PASSED";
|
|
229
|
+
INCONCLUSIVE: "INCONCLUSIVE";
|
|
230
|
+
BLOCKED: "BLOCKED";
|
|
231
|
+
STALE: "STALE";
|
|
232
|
+
}>;
|
|
233
|
+
contentHash: z.ZodString;
|
|
234
|
+
}, z.core.$strip>;
|
|
235
|
+
export declare const DecisionCaseViewSchema: z.ZodObject<{
|
|
236
|
+
id: z.ZodString;
|
|
237
|
+
questionPlain: z.ZodString;
|
|
238
|
+
consequencePlain: z.ZodString;
|
|
239
|
+
recommendedOptionId: z.ZodString;
|
|
240
|
+
selectedOptionId: z.ZodOptional<z.ZodString>;
|
|
241
|
+
status: z.ZodEnum<{
|
|
242
|
+
SUPERSEDED: "SUPERSEDED";
|
|
243
|
+
AWAITING_DECISION: "AWAITING_DECISION";
|
|
244
|
+
DECIDED: "DECIDED";
|
|
245
|
+
}>;
|
|
246
|
+
version: z.ZodNumber;
|
|
247
|
+
}, z.core.$strip>;
|
|
248
|
+
export declare const CandidateResolutionViewSchema: z.ZodObject<{
|
|
249
|
+
id: z.ZodString;
|
|
250
|
+
planId: z.ZodString;
|
|
251
|
+
headCommit: z.ZodString;
|
|
252
|
+
treeSha: z.ZodString;
|
|
253
|
+
contentHash: z.ZodString;
|
|
254
|
+
status: z.ZodEnum<{
|
|
255
|
+
FAILED: "FAILED";
|
|
256
|
+
RESOLVED: "RESOLVED";
|
|
257
|
+
SUPERSEDED: "SUPERSEDED";
|
|
258
|
+
CANDIDATE: "CANDIDATE";
|
|
259
|
+
VERIFYING: "VERIFYING";
|
|
260
|
+
VERIFIED: "VERIFIED";
|
|
261
|
+
}>;
|
|
262
|
+
}, z.core.$strip>;
|
|
263
|
+
export declare const QuickStartAnswersSchema: z.ZodObject<{
|
|
264
|
+
outcome: z.ZodString;
|
|
265
|
+
source: z.ZodEnum<{
|
|
266
|
+
NEW_PROJECT: "NEW_PROJECT";
|
|
267
|
+
EXISTING_REPOSITORY: "EXISTING_REPOSITORY";
|
|
268
|
+
FILES: "FILES";
|
|
269
|
+
}>;
|
|
270
|
+
autonomy: z.ZodEnum<{
|
|
271
|
+
GUIDED: "GUIDED";
|
|
272
|
+
BALANCED: "BALANCED";
|
|
273
|
+
BOUNDED_AUTONOMOUS: "BOUNDED_AUTONOMOUS";
|
|
274
|
+
HUMAN_IMPLEMENTATION: "HUMAN_IMPLEMENTATION";
|
|
275
|
+
}>;
|
|
276
|
+
constraints: z.ZodObject<{
|
|
277
|
+
sensitiveData: z.ZodBoolean;
|
|
278
|
+
deploymentRequiresHuman: z.ZodBoolean;
|
|
279
|
+
requiredHumanDecisions: z.ZodBoolean;
|
|
280
|
+
budgetLimit: z.ZodNumber;
|
|
281
|
+
timeLimitMinutes: z.ZodNumber;
|
|
282
|
+
}, z.core.$strip>;
|
|
283
|
+
}, z.core.$strip>;
|
|
284
|
+
export declare const HarnessDescriptorSchema: z.ZodObject<{
|
|
285
|
+
name: z.ZodString;
|
|
286
|
+
level: z.ZodEnum<{
|
|
287
|
+
GIT_ONLY: "GIT_ONLY";
|
|
288
|
+
GENERIC_CLI_SDK: "GENERIC_CLI_SDK";
|
|
289
|
+
NATIVE_ADAPTER: "NATIVE_ADAPTER";
|
|
290
|
+
}>;
|
|
291
|
+
supportsGit: z.ZodBoolean;
|
|
292
|
+
supportsManifest: z.ZodBoolean;
|
|
293
|
+
supportsStructuredResults: z.ZodBoolean;
|
|
294
|
+
claimsHumanApproval: z.ZodBoolean;
|
|
295
|
+
}, z.core.$strip>;
|
|
296
|
+
export declare const ProjectStartRequestSchema: z.ZodObject<{
|
|
297
|
+
projectId: z.ZodOptional<z.ZodUUID>;
|
|
298
|
+
answers: z.ZodObject<{
|
|
299
|
+
outcome: z.ZodString;
|
|
300
|
+
source: z.ZodEnum<{
|
|
301
|
+
NEW_PROJECT: "NEW_PROJECT";
|
|
302
|
+
EXISTING_REPOSITORY: "EXISTING_REPOSITORY";
|
|
303
|
+
FILES: "FILES";
|
|
304
|
+
}>;
|
|
305
|
+
autonomy: z.ZodEnum<{
|
|
306
|
+
GUIDED: "GUIDED";
|
|
307
|
+
BALANCED: "BALANCED";
|
|
308
|
+
BOUNDED_AUTONOMOUS: "BOUNDED_AUTONOMOUS";
|
|
309
|
+
HUMAN_IMPLEMENTATION: "HUMAN_IMPLEMENTATION";
|
|
310
|
+
}>;
|
|
311
|
+
constraints: z.ZodObject<{
|
|
312
|
+
sensitiveData: z.ZodBoolean;
|
|
313
|
+
deploymentRequiresHuman: z.ZodBoolean;
|
|
314
|
+
requiredHumanDecisions: z.ZodBoolean;
|
|
315
|
+
budgetLimit: z.ZodNumber;
|
|
316
|
+
timeLimitMinutes: z.ZodNumber;
|
|
317
|
+
}, z.core.$strip>;
|
|
318
|
+
}, z.core.$strip>;
|
|
319
|
+
}, z.core.$strip>;
|
|
320
|
+
export declare const AgentConnectionRequestSchema: z.ZodObject<{
|
|
321
|
+
connectionId: z.ZodUUID;
|
|
322
|
+
displayName: z.ZodString;
|
|
323
|
+
level: z.ZodEnum<{
|
|
324
|
+
GIT_ONLY: "GIT_ONLY";
|
|
325
|
+
GENERIC_CLI_SDK: "GENERIC_CLI_SDK";
|
|
326
|
+
NATIVE_ADAPTER: "NATIVE_ADAPTER";
|
|
327
|
+
}>;
|
|
328
|
+
}, z.core.$strip>;
|
|
329
|
+
export declare const ActivityLayerSchema: z.ZodEnum<{
|
|
330
|
+
DIRECT: "DIRECT";
|
|
331
|
+
QUICK_TASK: "QUICK_TASK";
|
|
332
|
+
MANAGED_JOURNEY: "MANAGED_JOURNEY";
|
|
333
|
+
}>;
|
|
334
|
+
export declare const AgentOperatingScopeSchema: z.ZodEnum<{
|
|
335
|
+
PROJECT_SERVICE: "PROJECT_SERVICE";
|
|
336
|
+
JOURNEY_PARTICIPANT: "JOURNEY_PARTICIPANT";
|
|
337
|
+
ASSIGNMENT_WORKER: "ASSIGNMENT_WORKER";
|
|
338
|
+
INDEPENDENT_VERIFIER: "INDEPENDENT_VERIFIER";
|
|
339
|
+
}>;
|
|
340
|
+
export declare const ProjectCreateRequestSchema: z.ZodObject<{
|
|
341
|
+
projectId: z.ZodOptional<z.ZodUUID>;
|
|
342
|
+
name: z.ZodString;
|
|
343
|
+
source: z.ZodEnum<{
|
|
344
|
+
NEW_PROJECT: "NEW_PROJECT";
|
|
345
|
+
EXISTING_REPOSITORY: "EXISTING_REPOSITORY";
|
|
346
|
+
FILES: "FILES";
|
|
347
|
+
}>;
|
|
348
|
+
}, z.core.$strip>;
|
|
349
|
+
export declare const ProjectActivityPreviewRequestSchema: z.ZodObject<{
|
|
350
|
+
requestedLayer: z.ZodOptional<z.ZodEnum<{
|
|
351
|
+
DIRECT: "DIRECT";
|
|
352
|
+
QUICK_TASK: "QUICK_TASK";
|
|
353
|
+
MANAGED_JOURNEY: "MANAGED_JOURNEY";
|
|
354
|
+
}>>;
|
|
355
|
+
mutatesCanonicalSource: z.ZodBoolean;
|
|
356
|
+
needsIsolatedWorkspace: z.ZodBoolean;
|
|
357
|
+
requiresIndependentVerification: z.ZodBoolean;
|
|
358
|
+
hasReservedHumanDecision: z.ZodBoolean;
|
|
359
|
+
participantCount: z.ZodNumber;
|
|
360
|
+
dependencyCount: z.ZodNumber;
|
|
361
|
+
risk: z.ZodEnum<{
|
|
362
|
+
LOW: "LOW";
|
|
363
|
+
MEDIUM: "MEDIUM";
|
|
364
|
+
HIGH: "HIGH";
|
|
365
|
+
CRITICAL: "CRITICAL";
|
|
366
|
+
}>;
|
|
367
|
+
disposableExploration: z.ZodBoolean;
|
|
368
|
+
}, z.core.$strip>;
|
|
369
|
+
export declare const ProjectJourneyStartRequestSchema: z.ZodObject<{
|
|
370
|
+
journeyId: z.ZodOptional<z.ZodUUID>;
|
|
371
|
+
layer: z.ZodEnum<{
|
|
372
|
+
QUICK_TASK: "QUICK_TASK";
|
|
373
|
+
MANAGED_JOURNEY: "MANAGED_JOURNEY";
|
|
374
|
+
}>;
|
|
375
|
+
answers: z.ZodObject<{
|
|
376
|
+
outcome: z.ZodString;
|
|
377
|
+
source: z.ZodEnum<{
|
|
378
|
+
NEW_PROJECT: "NEW_PROJECT";
|
|
379
|
+
EXISTING_REPOSITORY: "EXISTING_REPOSITORY";
|
|
380
|
+
FILES: "FILES";
|
|
381
|
+
}>;
|
|
382
|
+
autonomy: z.ZodEnum<{
|
|
383
|
+
GUIDED: "GUIDED";
|
|
384
|
+
BALANCED: "BALANCED";
|
|
385
|
+
BOUNDED_AUTONOMOUS: "BOUNDED_AUTONOMOUS";
|
|
386
|
+
HUMAN_IMPLEMENTATION: "HUMAN_IMPLEMENTATION";
|
|
387
|
+
}>;
|
|
388
|
+
constraints: z.ZodObject<{
|
|
389
|
+
sensitiveData: z.ZodBoolean;
|
|
390
|
+
deploymentRequiresHuman: z.ZodBoolean;
|
|
391
|
+
requiredHumanDecisions: z.ZodBoolean;
|
|
392
|
+
budgetLimit: z.ZodNumber;
|
|
393
|
+
timeLimitMinutes: z.ZodNumber;
|
|
394
|
+
}, z.core.$strip>;
|
|
395
|
+
}, z.core.$strip>;
|
|
396
|
+
}, z.core.$strip>;
|
|
397
|
+
export declare const ProjectAgentConnectionRequestSchema: z.ZodObject<{
|
|
398
|
+
connectionId: z.ZodUUID;
|
|
399
|
+
displayName: z.ZodString;
|
|
400
|
+
level: z.ZodEnum<{
|
|
401
|
+
GIT_ONLY: "GIT_ONLY";
|
|
402
|
+
GENERIC_CLI_SDK: "GENERIC_CLI_SDK";
|
|
403
|
+
NATIVE_ADAPTER: "NATIVE_ADAPTER";
|
|
404
|
+
}>;
|
|
405
|
+
operatingScope: z.ZodDefault<z.ZodEnum<{
|
|
406
|
+
PROJECT_SERVICE: "PROJECT_SERVICE";
|
|
407
|
+
JOURNEY_PARTICIPANT: "JOURNEY_PARTICIPANT";
|
|
408
|
+
ASSIGNMENT_WORKER: "ASSIGNMENT_WORKER";
|
|
409
|
+
INDEPENDENT_VERIFIER: "INDEPENDENT_VERIFIER";
|
|
410
|
+
}>>;
|
|
411
|
+
serviceCapabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
412
|
+
}, z.core.$strip>;
|
|
413
|
+
export type ActorReference = z.infer<typeof ActorReferenceSchema>;
|
|
414
|
+
export type AuthorityReference = z.infer<typeof AuthorityReferenceSchema>;
|
|
415
|
+
export type CommandEnvelope = z.infer<typeof CommandEnvelopeSchema>;
|
|
416
|
+
export type DomainEventEnvelope = z.infer<typeof DomainEventEnvelopeSchema>;
|
|
417
|
+
export type ApiError = z.infer<typeof ApiErrorSchema>;
|
|
418
|
+
export type Operation = z.infer<typeof OperationSchema>;
|
|
419
|
+
export type CommandReceipt = z.infer<typeof CommandReceiptSchema>;
|
|
420
|
+
export type CoordinationRequestPayload = z.infer<typeof CoordinationRequestPayloadSchema>;
|
|
421
|
+
export type ContextManifestContract = z.infer<typeof ContextManifestSchema>;
|
|
422
|
+
export type AttentionItemView = z.infer<typeof AttentionItemViewSchema>;
|
|
423
|
+
export type VerificationSubjectManifestContract = z.infer<typeof VerificationSubjectManifestSchema>;
|
|
424
|
+
export type AssuranceFindingContract = z.infer<typeof AssuranceFindingSchema>;
|
|
425
|
+
export type AssuranceOutcomeContract = z.infer<typeof AssuranceOutcomeSchema>;
|
|
426
|
+
export type DecisionCaseView = z.infer<typeof DecisionCaseViewSchema>;
|
|
427
|
+
export type CandidateResolutionView = z.infer<typeof CandidateResolutionViewSchema>;
|
|
428
|
+
export type QuickStartAnswersContract = z.infer<typeof QuickStartAnswersSchema>;
|
|
429
|
+
export type HarnessDescriptorContract = z.infer<typeof HarnessDescriptorSchema>;
|
|
430
|
+
export type ProjectStartRequestContract = z.infer<typeof ProjectStartRequestSchema>;
|
|
431
|
+
export type AgentConnectionRequestContract = z.infer<typeof AgentConnectionRequestSchema>;
|
|
432
|
+
export type ActivityLayer = z.infer<typeof ActivityLayerSchema>;
|
|
433
|
+
export type AgentOperatingScope = z.infer<typeof AgentOperatingScopeSchema>;
|
|
434
|
+
export type ProjectCreateRequestContract = z.infer<typeof ProjectCreateRequestSchema>;
|
|
435
|
+
export type ProjectActivityPreviewRequestContract = z.infer<typeof ProjectActivityPreviewRequestSchema>;
|
|
436
|
+
export type ProjectJourneyStartRequestContract = z.infer<typeof ProjectJourneyStartRequestSchema>;
|
|
437
|
+
export type ProjectAgentConnectionRequestContract = z.infer<typeof ProjectAgentConnectionRequestSchema>;
|
|
438
|
+
export interface Clock {
|
|
439
|
+
now(): string;
|
|
440
|
+
}
|
|
441
|
+
export interface IdGenerator {
|
|
442
|
+
next(prefix: string): string;
|
|
443
|
+
}
|
|
444
|
+
export declare function canonicalJson(value: unknown): string;
|
|
445
|
+
export declare function sha256(value: unknown): Promise<string>;
|
|
446
|
+
export declare class JentraError extends Error {
|
|
447
|
+
readonly detail: ApiError;
|
|
448
|
+
constructor(detail: ApiError);
|
|
449
|
+
}
|
|
450
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,oBAAoB;;;;iBAI/B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;iBAGnC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;iBAehC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;iBAmBpC,CAAC;AAEH,eAAO,M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@@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
const Id = z.string().min(1).max(160);
|
|
3
|
+
const Hash = z.string().regex(/^[a-f0-9]{64}$/u);
|
|
4
|
+
const Timestamp = z.iso.datetime({ offset: true });
|
|
5
|
+
export const ActorReferenceSchema = z.object({
|
|
6
|
+
participantId: Id,
|
|
7
|
+
clientSessionId: Id.optional(),
|
|
8
|
+
runtimeId: Id.optional(),
|
|
9
|
+
});
|
|
10
|
+
export const AuthorityReferenceSchema = z.object({
|
|
11
|
+
roleBindingId: Id,
|
|
12
|
+
capabilityGrantIds: z.array(Id).min(1),
|
|
13
|
+
});
|
|
14
|
+
export const CommandEnvelopeSchema = z.object({
|
|
15
|
+
commandId: Id,
|
|
16
|
+
commandType: z.string().min(1),
|
|
17
|
+
schemaVersion: z.literal(1),
|
|
18
|
+
journeyId: Id,
|
|
19
|
+
aggregateVersionExpected: z.union([z.number().int().nonnegative(), z.literal("ANY_ALLOWED")]),
|
|
20
|
+
actor: ActorReferenceSchema,
|
|
21
|
+
authority: AuthorityReferenceSchema,
|
|
22
|
+
policySnapshotId: Id,
|
|
23
|
+
correlationId: Id,
|
|
24
|
+
causationId: Id.optional(),
|
|
25
|
+
idempotencyKey: z.string().min(8).max(240),
|
|
26
|
+
receivedAt: Timestamp,
|
|
27
|
+
payload: z.record(z.string(), z.unknown()),
|
|
28
|
+
payloadHash: Hash,
|
|
29
|
+
});
|
|
30
|
+
export const DomainEventEnvelopeSchema = z.object({
|
|
31
|
+
eventId: Id,
|
|
32
|
+
journeyId: Id,
|
|
33
|
+
journeySequence: z.number().int().positive(),
|
|
34
|
+
aggregateVersion: z.number().int().positive(),
|
|
35
|
+
eventType: z.string().min(1),
|
|
36
|
+
schemaVersion: z.literal(1),
|
|
37
|
+
occurredAt: Timestamp,
|
|
38
|
+
recordedAt: Timestamp,
|
|
39
|
+
actor: ActorReferenceSchema,
|
|
40
|
+
authority: AuthorityReferenceSchema.optional(),
|
|
41
|
+
correlationId: Id,
|
|
42
|
+
causationId: Id.optional(),
|
|
43
|
+
commandId: Id,
|
|
44
|
+
policySnapshotId: Id,
|
|
45
|
+
payload: z.record(z.string(), z.unknown()),
|
|
46
|
+
payloadHash: Hash,
|
|
47
|
+
previousEventHash: Hash.optional(),
|
|
48
|
+
eventHash: Hash,
|
|
49
|
+
});
|
|
50
|
+
export const ApiErrorSchema = z.object({
|
|
51
|
+
code: z.string().min(1),
|
|
52
|
+
messagePlain: z.string().min(1),
|
|
53
|
+
targetRef: Id.optional(),
|
|
54
|
+
currentVersion: z.number().int().nonnegative().optional(),
|
|
55
|
+
retryClass: z.enum(["NEVER", "SAFE_SAME_KEY", "REREAD_REQUIRED", "USER_ACTION", "LATER"]),
|
|
56
|
+
remediationActions: z.array(z.string()),
|
|
57
|
+
correlationId: Id,
|
|
58
|
+
});
|
|
59
|
+
export const OperationSchema = z.object({
|
|
60
|
+
id: Id,
|
|
61
|
+
type: z.string().min(1),
|
|
62
|
+
status: z.enum(["PENDING", "RUNNING", "WAITING", "SUCCEEDED", "FAILED", "CANCELLED", "UNKNOWN"]),
|
|
63
|
+
inputHash: Hash,
|
|
64
|
+
resultRef: Id.optional(),
|
|
65
|
+
attempt: z.number().int().nonnegative(),
|
|
66
|
+
createdAt: Timestamp,
|
|
67
|
+
updatedAt: Timestamp,
|
|
68
|
+
});
|
|
69
|
+
export const CommandReceiptSchema = z.object({
|
|
70
|
+
commandId: Id,
|
|
71
|
+
idempotencyKey: z.string(),
|
|
72
|
+
payloadHash: Hash,
|
|
73
|
+
status: z.enum(["ACCEPTED", "REJECTED"]),
|
|
74
|
+
aggregateVersion: z.number().int().nonnegative(),
|
|
75
|
+
lastSequence: z.number().int().nonnegative(),
|
|
76
|
+
result: z.record(z.string(), z.unknown()),
|
|
77
|
+
});
|
|
78
|
+
export const CoordinationRequestPayloadSchema = z.object({
|
|
79
|
+
requestId: Id,
|
|
80
|
+
sourceRoleBindingId: Id,
|
|
81
|
+
sourceAssignmentId: Id,
|
|
82
|
+
targetWorkstreamId: Id,
|
|
83
|
+
targetScope: z.enum(["WORKSTREAM", "CROSS_WORKSTREAM", "JOURNEY", "HUMAN_AUTHORITY"]),
|
|
84
|
+
requestType: z.enum([
|
|
85
|
+
"DEPENDENCY_REPORT",
|
|
86
|
+
"OVERLAP_REPORT",
|
|
87
|
+
"CONTRACT_REQUEST",
|
|
88
|
+
"BLOCKER_REPORT",
|
|
89
|
+
"PAIR_REQUEST",
|
|
90
|
+
"ASSISTANCE_REQUEST",
|
|
91
|
+
]),
|
|
92
|
+
subjectKey: Id,
|
|
93
|
+
subjectVersion: z.number().int().nonnegative(),
|
|
94
|
+
summary: z.string().min(1),
|
|
95
|
+
requestedOutcome: z.string().min(1),
|
|
96
|
+
urgency: z.enum(["INFORMATIONAL", "ACTION_REQUIRED", "BLOCKING", "URGENT", "SECURITY_CRITICAL"]),
|
|
97
|
+
evidenceRefs: z.array(Id),
|
|
98
|
+
dissentRefs: z.array(Id),
|
|
99
|
+
});
|
|
100
|
+
export const ContextManifestSchema = z.object({
|
|
101
|
+
id: Id,
|
|
102
|
+
assignmentId: Id,
|
|
103
|
+
worldId: Id,
|
|
104
|
+
baselineCommit: Id,
|
|
105
|
+
scopeRefs: z.array(Id),
|
|
106
|
+
contractRefs: z.array(Id),
|
|
107
|
+
dependencyRefs: z.array(Id),
|
|
108
|
+
discoveryRefs: z.array(Id),
|
|
109
|
+
policySnapshotId: Id,
|
|
110
|
+
generatedAt: Timestamp,
|
|
111
|
+
contentHash: Hash,
|
|
112
|
+
});
|
|
113
|
+
export const AttentionItemViewSchema = z.object({
|
|
114
|
+
id: Id,
|
|
115
|
+
severity: z.enum(["INFORMATIONAL", "ACTION_REQUIRED", "BLOCKING", "URGENT", "SECURITY_CRITICAL"]),
|
|
116
|
+
title: z.string().min(1),
|
|
117
|
+
explanation: z.string().min(1),
|
|
118
|
+
status: z.enum(["OPEN", "ACKNOWLEDGED", "RESOLVED", "SUPERSEDED"]),
|
|
119
|
+
version: z.number().int().positive(),
|
|
120
|
+
});
|
|
121
|
+
export const VerificationSubjectManifestSchema = z.object({
|
|
122
|
+
id: Id,
|
|
123
|
+
planId: Id,
|
|
124
|
+
subjectRef: Id,
|
|
125
|
+
subjectHash: Hash,
|
|
126
|
+
candidateHash: Hash,
|
|
127
|
+
claimRefs: z.array(Id).min(1),
|
|
128
|
+
evidenceRefs: z.array(Id),
|
|
129
|
+
counterevidenceRefs: z.array(Id),
|
|
130
|
+
contextManifestHash: Hash,
|
|
131
|
+
contractRefs: z.array(Id),
|
|
132
|
+
dependencyRefs: z.array(Id),
|
|
133
|
+
knownLimitations: z.array(z.string()),
|
|
134
|
+
policySnapshotId: Id,
|
|
135
|
+
contentHash: Hash,
|
|
136
|
+
});
|
|
137
|
+
export const AssuranceFindingSchema = z.object({
|
|
138
|
+
id: Id,
|
|
139
|
+
runId: Id,
|
|
140
|
+
type: z.enum([
|
|
141
|
+
"CONFIRMING",
|
|
142
|
+
"COUNTEREXAMPLE",
|
|
143
|
+
"GAP",
|
|
144
|
+
"RISK",
|
|
145
|
+
"ASSUMPTION",
|
|
146
|
+
"REGRESSION",
|
|
147
|
+
"SECURITY",
|
|
148
|
+
]),
|
|
149
|
+
severity: z.enum(["INFO", "LOW", "MEDIUM", "HIGH", "CRITICAL"]),
|
|
150
|
+
statement: z.string().min(1),
|
|
151
|
+
affectedClaimRefs: z.array(Id),
|
|
152
|
+
evidenceRefs: z.array(Id).min(1),
|
|
153
|
+
reproductionRef: Id.optional(),
|
|
154
|
+
status: z.enum(["OPEN", "CONFIRMED", "DISPUTED", "RESOLVED", "ACCEPTED_RISK", "SUPERSEDED"]),
|
|
155
|
+
authoredBy: Id,
|
|
156
|
+
version: z.number().int().positive(),
|
|
157
|
+
});
|
|
158
|
+
export const AssuranceOutcomeSchema = z.object({
|
|
159
|
+
planId: Id,
|
|
160
|
+
subjectRef: Id,
|
|
161
|
+
runIds: z.array(Id).min(1),
|
|
162
|
+
unresolvedFindingIds: z.array(Id),
|
|
163
|
+
result: z.enum(["PASSED", "FAILED", "INCONCLUSIVE", "BLOCKED", "STALE"]),
|
|
164
|
+
contentHash: Hash,
|
|
165
|
+
});
|
|
166
|
+
export const DecisionCaseViewSchema = z.object({
|
|
167
|
+
id: Id,
|
|
168
|
+
questionPlain: z.string().min(1),
|
|
169
|
+
consequencePlain: z.string().min(1),
|
|
170
|
+
recommendedOptionId: Id,
|
|
171
|
+
selectedOptionId: Id.optional(),
|
|
172
|
+
status: z.enum(["AWAITING_DECISION", "DECIDED", "SUPERSEDED"]),
|
|
173
|
+
version: z.number().int().positive(),
|
|
174
|
+
});
|
|
175
|
+
export const CandidateResolutionViewSchema = z.object({
|
|
176
|
+
id: Id,
|
|
177
|
+
planId: Id,
|
|
178
|
+
headCommit: Id,
|
|
179
|
+
treeSha: Id,
|
|
180
|
+
contentHash: Hash,
|
|
181
|
+
status: z.enum(["CANDIDATE", "VERIFYING", "VERIFIED", "FAILED", "SUPERSEDED", "RESOLVED"]),
|
|
182
|
+
});
|
|
183
|
+
export const QuickStartAnswersSchema = z.object({
|
|
184
|
+
outcome: z.string().trim().min(1).max(4_000),
|
|
185
|
+
source: z.enum(["NEW_PROJECT", "EXISTING_REPOSITORY", "FILES"]),
|
|
186
|
+
autonomy: z.enum(["GUIDED", "BALANCED", "BOUNDED_AUTONOMOUS", "HUMAN_IMPLEMENTATION"]),
|
|
187
|
+
constraints: z.object({
|
|
188
|
+
sensitiveData: z.boolean(),
|
|
189
|
+
deploymentRequiresHuman: z.boolean(),
|
|
190
|
+
requiredHumanDecisions: z.boolean(),
|
|
191
|
+
budgetLimit: z.number().positive(),
|
|
192
|
+
timeLimitMinutes: z.number().int().positive().max(43_200),
|
|
193
|
+
}),
|
|
194
|
+
});
|
|
195
|
+
export const HarnessDescriptorSchema = z.object({
|
|
196
|
+
name: Id,
|
|
197
|
+
level: z.enum(["GIT_ONLY", "GENERIC_CLI_SDK", "NATIVE_ADAPTER"]),
|
|
198
|
+
supportsGit: z.boolean(),
|
|
199
|
+
supportsManifest: z.boolean(),
|
|
200
|
+
supportsStructuredResults: z.boolean(),
|
|
201
|
+
claimsHumanApproval: z.boolean(),
|
|
202
|
+
});
|
|
203
|
+
export const ProjectStartRequestSchema = z.object({
|
|
204
|
+
projectId: z.uuid().optional(),
|
|
205
|
+
answers: QuickStartAnswersSchema,
|
|
206
|
+
});
|
|
207
|
+
export const AgentConnectionRequestSchema = z.object({
|
|
208
|
+
connectionId: z.uuid(),
|
|
209
|
+
displayName: z.string().trim().min(1).max(120),
|
|
210
|
+
level: z.enum(["GIT_ONLY", "GENERIC_CLI_SDK", "NATIVE_ADAPTER"]),
|
|
211
|
+
});
|
|
212
|
+
export const ActivityLayerSchema = z.enum(["DIRECT", "QUICK_TASK", "MANAGED_JOURNEY"]);
|
|
213
|
+
export const AgentOperatingScopeSchema = z.enum([
|
|
214
|
+
"PROJECT_SERVICE",
|
|
215
|
+
"JOURNEY_PARTICIPANT",
|
|
216
|
+
"ASSIGNMENT_WORKER",
|
|
217
|
+
"INDEPENDENT_VERIFIER",
|
|
218
|
+
]);
|
|
219
|
+
export const ProjectCreateRequestSchema = z.object({
|
|
220
|
+
projectId: z.uuid().optional(),
|
|
221
|
+
name: z.string().trim().min(1).max(160),
|
|
222
|
+
source: z.enum(["NEW_PROJECT", "EXISTING_REPOSITORY", "FILES"]),
|
|
223
|
+
});
|
|
224
|
+
export const ProjectActivityPreviewRequestSchema = z.object({
|
|
225
|
+
requestedLayer: ActivityLayerSchema.optional(),
|
|
226
|
+
mutatesCanonicalSource: z.boolean(),
|
|
227
|
+
needsIsolatedWorkspace: z.boolean(),
|
|
228
|
+
requiresIndependentVerification: z.boolean(),
|
|
229
|
+
hasReservedHumanDecision: z.boolean(),
|
|
230
|
+
participantCount: z.number().int().nonnegative().max(10_000),
|
|
231
|
+
dependencyCount: z.number().int().nonnegative().max(10_000),
|
|
232
|
+
risk: z.enum(["LOW", "MEDIUM", "HIGH", "CRITICAL"]),
|
|
233
|
+
disposableExploration: z.boolean(),
|
|
234
|
+
});
|
|
235
|
+
export const ProjectJourneyStartRequestSchema = z.object({
|
|
236
|
+
journeyId: z.uuid().optional(),
|
|
237
|
+
layer: z.enum(["QUICK_TASK", "MANAGED_JOURNEY"]),
|
|
238
|
+
answers: QuickStartAnswersSchema,
|
|
239
|
+
});
|
|
240
|
+
export const ProjectAgentConnectionRequestSchema = AgentConnectionRequestSchema.extend({
|
|
241
|
+
operatingScope: AgentOperatingScopeSchema.default("PROJECT_SERVICE"),
|
|
242
|
+
serviceCapabilities: z.array(z.string().trim().min(1).max(120)).max(50).default([]),
|
|
243
|
+
});
|
|
244
|
+
export function canonicalJson(value) {
|
|
245
|
+
if (value === null || typeof value !== "object")
|
|
246
|
+
return JSON.stringify(value);
|
|
247
|
+
if (Array.isArray(value))
|
|
248
|
+
return `[${value.map(canonicalJson).join(",")}]`;
|
|
249
|
+
const entries = Object.entries(value)
|
|
250
|
+
.filter(([, item]) => item !== undefined)
|
|
251
|
+
.sort(([a], [b]) => a.localeCompare(b));
|
|
252
|
+
return `{${entries.map(([key, item]) => `${JSON.stringify(key)}:${canonicalJson(item)}`).join(",")}}`;
|
|
253
|
+
}
|
|
254
|
+
export async function sha256(value) {
|
|
255
|
+
const bytes = typeof value === "string"
|
|
256
|
+
? new TextEncoder().encode(value)
|
|
257
|
+
: value instanceof Uint8Array
|
|
258
|
+
? value
|
|
259
|
+
: value instanceof ArrayBuffer
|
|
260
|
+
? new Uint8Array(value)
|
|
261
|
+
: new TextEncoder().encode(canonicalJson(value));
|
|
262
|
+
const digest = await crypto.subtle.digest("SHA-256", Uint8Array.from(bytes).buffer);
|
|
263
|
+
return [...new Uint8Array(digest)].map((byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
264
|
+
}
|
|
265
|
+
export class JentraError extends Error {
|
|
266
|
+
detail;
|
|
267
|
+
constructor(detail) {
|
|
268
|
+
super(detail.messagePlain);
|
|
269
|
+
this.detail = detail;
|
|
270
|
+
this.name = "JentraError";
|
|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AAE,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;IACzD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC;IACpF,OAAO,CAAC,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAChG,CAAC;AAED,MAAM,OAAO,WAAY,SAAQ,KAAK;IACf;IAArB,YAAqB,MAAgB;QACnC,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QADR,WAAM,GAAN,MAAM,CAAU;QAEnC,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC;IAC5B,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jentra/contracts",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"exports": {
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"default": "./dist/index.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"dist/index.js",
|
|
11
|
+
"dist/index.js.map",
|
|
12
|
+
"dist/index.d.ts",
|
|
13
|
+
"dist/index.d.ts.map"
|
|
14
|
+
],
|
|
15
|
+
"publishConfig": {
|
|
16
|
+
"access": "public"
|
|
17
|
+
}
|
|
18
|
+
}
|
package/README.md
DELETED