@peasant-labs/schema 0.1.0-rc9 → 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/internal/generated/contract/zod.gen.d.ts +1180 -66
- package/dist/internal/generated/contract/zod.gen.js +351 -4
- package/dist/internal/generated/enums.gen.d.ts +42 -6
- package/dist/internal/generated/enums.gen.js +41 -1
- package/dist/internal/generated/local-api.d.ts +3 -1
- package/dist/internal/generated/public-contract.gen.d.ts +2 -2
- package/dist/internal/generated/public-contract.gen.js +1 -1
- package/dist/internal/generated/versions.gen.d.ts +3 -3
- package/dist/internal/generated/versions.gen.js +3 -3
- package/dist/internal/generated/village-api.d.ts +176 -31
- package/package.json +2 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Code generated from the canonical Go/OpenAPI contract. DO NOT EDIT.
|
|
2
|
-
export { zActivityEdge, zAnnotationAxis, zAnnotationDatatype, zAnnotationEntryTarget, zAnnotationManifestResponse, zAnnotationPushStatus, zAnnotationPushResult, zAnnotationPushResponse, zAnnotationStatus, zAnnotatorKind, zAnnotatorSummary, zAssociationConclusion, zAssociationEvidenceKind, zAssociationEvidenceObservation, zAssociationID, zBatchCreateAnnotationsErrorResponse, zBatchCreateAnnotationsResponse, zBuiltinCommand, zCLILoginQuery, zChangeBinding, zChangeSummary, zChannelTopic, zChannelSubscription, zChildSessionRef, zCommitInfo, zConfidence, zContentKind, zContractVersion, zCreateAnnotationRequest, zBatchCreateAnnotationsRequest, zCreateAnnotationResponse, zDashboardPayload, zDayStats, zDecayLevel, zDiagnosticEntry, zDiagnosticsInfo, zDiffLineKind, zDiffLine, zDiffHunk, zEdgeViolationKind, zEdgeViolation, zEntryType, zExchangeCodeRequest, zExchangeCodeResponse, zFileChangeStatus, zChangeDiffPayload, zFileChange, zFileFamiliarity, zFrictionCluster, zHarness, zHealthResponse, zHostSlug, zInsightClassification, zInsightKind, zInsightProvenance, zInteractionType, zLicense, zMapEdge, zMapNodeKind, zMessageType, zClientMessage, zMockConfigResponse, zModelID, zModelInfo, zProjectHash, zProjectContext, zProjectResolutionPayload, zProjectSummary, zProjectSummariesPayload, zProvenance, zPublishResponse, zPublishedAssociation, zGitContext, zReadAttributionState, zReadStateGrade, zMapNode, zMapGraphPayload, zMapSlice, zRedactionInfo, zReviewSuggestion, zRewriteMethod, zRewriteResolution, zRole, zScaleKind, zSchemaVersionResponse, zSearchResult, zSearchPayload, zServerMessage, zSessionID, zInsightEvidence, zSessionAssociation, zCommitRef, zRewrittenCommit, zSessionIdentity, zSessionInsight, zSessionOutcome, zQualityMetrics, zSessionScorecard, zSessionStats, zSessionSummary, zSessionsPayload, zShutdownResponse, zSourceFormat, zSourceInfo, zStopReason, zSubagentRef, zTargetKind, zAnnotationPushItem, zAnnotationPushRequest, zAnnotationSummary, zAnnotationsPayload, zPullAnnotation, zQualitySession, zQualityPayload, zTaskSummary, zChangeSession, zMapNodeDetailPayload, zProjectTasksPayload, zTimelineSessionRef, zReviewListPayload, zTimestampInfo, zToolCallKind, zSessionEntry, zPublishRequest, zToolCallDetail, zTranscriptID, zPullSkipGateItem, zPullSkipGateRequest, zPullSkipGateResult, zPullSkipGateResponse, zTrendsPayload, zTurnDetail, zSessionDetailPayload, zTranscriptContent, zTypeOrigin, zUnifiedMetadata, zUnusualSignal, zChangeDetailPayload, zValueDomainKind, zValueDomain, zAnnotationTypeSummary, zTaxonomyFamilyNode, zTaxonomyNode, zVisibility, zPullTranscriptInfo, zPullListResponse, zWalkthroughStep, zWalkthroughTrail, zFamiliarityPayload } from "./contract/zod.gen.js";
|
|
2
|
+
export { zActivityEdge, zAnnotationAxis, zAnnotationDatatype, zAnnotationEntryTarget, zAnnotationManifestResponse, zAnnotationPushStatus, zAnnotationPushResult, zAnnotationPushResponse, zAnnotationStatus, zAnnotatorKind, zAnnotatorSummary, zAssociationConclusion, zAssociationEvidenceKind, zAssociationEvidenceObservation, zAssociationID, zAuthoritativeCommitInfo, zAuthoritativeDiagnosticEntry, zAuthoritativeDiagnosticsInfo, zAuthoritativeSessionStats, zAuthoritativeTimestampInfo, zBatchCreateAnnotationsErrorResponse, zBatchCreateAnnotationsResponse, zBuiltinCommand, zCLILoginQuery, zCanonicalPublishGitContext, zChangeBinding, zChangeSummary, zChannelTopic, zChannelSubscription, zChildSessionRef, zCommitInfo, zConfidence, zContentKind, zContractVersion, zCreateAnnotationRequest, zBatchCreateAnnotationsRequest, zCreateAnnotationResponse, zDashboardPayload, zDayStats, zDecayLevel, zDiagnosticEntry, zDiagnosticsInfo, zDiffLineKind, zDiffLine, zDiffHunk, zEdgeViolationKind, zEdgeViolation, zEntryType, zExchangeCodeRequest, zExchangeCodeResponse, zFileChangeStatus, zChangeDiffPayload, zFileChange, zFileFamiliarity, zFrictionCluster, zHarness, zHealthResponse, zHostSlug, zInsightClassification, zInsightKind, zInsightProvenance, zInteractionType, zLicense, zMapEdge, zMapNodeKind, zMessageType, zClientMessage, zMockConfigResponse, zModelID, zAuthoritativeModelInfo, zModelInfo, zOwnerUpdateLicenseIntent, zProjectHash, zAuthoritativeProjectContext, zProjectContext, zProjectResolutionPayload, zProjectSummary, zProjectSummariesPayload, zProvenance, zPublishOperationKind, zPublishLicenseOperation, zPublishRequestFingerprint, zPublishResponse, zPublishedAssociation, zAuthoritativeGitContext, zGitContext, zPublishAssociationOperation, zReadAttributionState, zReadStateGrade, zMapNode, zMapGraphPayload, zMapSlice, zRedactionInfo, zReviewSuggestion, zRewriteMethod, zRewriteResolution, zRole, zScaleKind, zSchemaVersionResponse, zSearchResult, zSearchPayload, zServerMessage, zSessionID, zAuthoritativeSessionIdentity, zAuthoritativeSubagentRef, zInsightEvidence, zSessionAssociation, zCommitRef, zRewrittenCommit, zSessionIdentity, zSessionInsight, zSessionOutcome, zAuthoritativeQualityMetrics, zQualityMetrics, zSessionScorecard, zSessionStats, zSessionSummary, zSessionsPayload, zShutdownResponse, zSourceFormat, zAuthoritativeSourceInfo, zSourceInfo, zStopReason, zSubagentRef, zTargetKind, zAnnotationPushItem, zAnnotationPushRequest, zAnnotationSummary, zAnnotationsPayload, zPullAnnotation, zQualitySession, zQualityPayload, zTaskSummary, zChangeSession, zMapNodeDetailPayload, zProjectTasksPayload, zTimelineSessionRef, zReviewListPayload, zTimestampInfo, zToolCallKind, zAuthoritativeSessionEntry, zCanonicalPublishReplacement, zSessionEntry, zPublishRequest, zToolCallDetail, zTranscriptContentHash, zCanonicalPublishOperation, zTranscriptID, zPullSkipGateItem, zPullSkipGateRequest, zPullSkipGateResult, zPullSkipGateResponse, zTranscriptUpdateLicense, zTranscriptUpdateVisibility, zOwnerTranscriptUpdateRequest, zOwnerTranscriptUpdateResponse, zTranscriptUpdateRequest, zTrendsPayload, zTurnDetail, zSessionDetailPayload, zTranscriptContent, zTypeOrigin, zUnifiedMetadata, zUnusualSignal, zChangeDetailPayload, zValueDomainKind, zValueDomain, zAnnotationTypeSummary, zTaxonomyFamilyNode, zTaxonomyNode, zVisibility, zPublishNormalizedValues, zPublishAppliedState, zAuthoritativePublishResponse, zPullTranscriptInfo, zPullListResponse, zVisibilityIntent, zAuthoritativePublishRequest, zWalkthroughStep, zWalkthroughTrail, zFamiliarityPayload } from "./contract/zod.gen.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VillageAPIVersion: "0.
|
|
2
|
-
export declare const PeasantLocalAPIVersion: "0.
|
|
3
|
-
export declare const TypesVersion: "0.
|
|
1
|
+
export declare const VillageAPIVersion: "0.12.0";
|
|
2
|
+
export declare const PeasantLocalAPIVersion: "0.6.0";
|
|
3
|
+
export declare const TypesVersion: "0.9.0";
|
|
4
4
|
export declare const MetadataSchemaVersion: 9;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Code generated from the canonical Go/OpenAPI contract. DO NOT EDIT.
|
|
2
|
-
export const VillageAPIVersion = "0.
|
|
3
|
-
export const PeasantLocalAPIVersion = "0.
|
|
4
|
-
export const TypesVersion = "0.
|
|
2
|
+
export const VillageAPIVersion = "0.12.0";
|
|
3
|
+
export const PeasantLocalAPIVersion = "0.6.0";
|
|
4
|
+
export const TypesVersion = "0.9.0";
|
|
5
5
|
export const MetadataSchemaVersion = 9;
|
|
@@ -179,7 +179,7 @@ export interface paths {
|
|
|
179
179
|
};
|
|
180
180
|
get?: never;
|
|
181
181
|
put?: never;
|
|
182
|
-
/** @description Publish
|
|
182
|
+
/** @description Publish exact transcript bytes with typed JSON metadata. Creation returns 201 and replacement returns 200; both carry the complete authoritative receipt. */
|
|
183
183
|
post: operations["publishTranscript"];
|
|
184
184
|
delete?: never;
|
|
185
185
|
options?: never;
|
|
@@ -187,6 +187,23 @@ export interface paths {
|
|
|
187
187
|
patch?: never;
|
|
188
188
|
trace?: never;
|
|
189
189
|
};
|
|
190
|
+
"/api/v1/transcripts/{id}": {
|
|
191
|
+
parameters: {
|
|
192
|
+
query?: never;
|
|
193
|
+
header?: never;
|
|
194
|
+
path?: never;
|
|
195
|
+
cookie?: never;
|
|
196
|
+
};
|
|
197
|
+
get?: never;
|
|
198
|
+
put?: never;
|
|
199
|
+
post?: never;
|
|
200
|
+
delete?: never;
|
|
201
|
+
options?: never;
|
|
202
|
+
head?: never;
|
|
203
|
+
/** @description Update an owned transcript's metadata and governance axes. Every field is optional: omission preserves stored state; empty title, description, or tags clear those fields; license null requests clear; and a canonical license replaces. Explicit null for title, description, tags, or visibility is rejected, as are unknown fields and invalid or duplicate tags. Clearing an already granted Creative Commons license remains subject to the server's irrevocability rule. Only the owner may call this operation. A successful update returns the complete typed authoritative editable state, including the canonical transcript URL and positive update timestamp. Visibility accepts private and public; organization-scoped visibility remains deferred. */
|
|
204
|
+
patch: operations["updateTranscript"];
|
|
205
|
+
trace?: never;
|
|
206
|
+
};
|
|
190
207
|
}
|
|
191
208
|
export type webhooks = Record<string, never>;
|
|
192
209
|
export interface components {
|
|
@@ -199,19 +216,32 @@ export interface components {
|
|
|
199
216
|
* @enum {string}
|
|
200
217
|
*/
|
|
201
218
|
BestiaryHarness: Schema.Harness;
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
219
|
+
FormDataOpenapiTranscriptPublishMultipartRequest: {
|
|
220
|
+
/** @description PublishRequest JSON encoded with Content-Type application/json. */
|
|
221
|
+
metadata: components["schemas"]["OpenapiAuthoritativeTranscriptPublishRequest"];
|
|
222
|
+
/** @description Exact transcript bytes whose SHA3-256 digest equals metadata.contentHash. */
|
|
223
|
+
transcript_file: components["schemas"]["MultipartFileHeader"];
|
|
224
|
+
};
|
|
225
|
+
/** Format: binary */
|
|
226
|
+
MultipartFileHeader: string;
|
|
227
|
+
OpenapiAuthoritativeTranscriptPublishRequest: {
|
|
228
|
+
contentHash: components["schemas"]["SchemaTranscriptContentHash"];
|
|
229
|
+
diagnostics?: components["schemas"]["SchemaAuthoritativeDiagnosticsInfo"];
|
|
230
|
+
entries?: components["schemas"]["SchemaAuthoritativeSessionEntry"][];
|
|
231
|
+
git?: components["schemas"]["SchemaAuthoritativeGitContext"];
|
|
232
|
+
identity?: components["schemas"]["SchemaAuthoritativeSessionIdentity"];
|
|
207
233
|
license?: components["schemas"]["SchemaLicense"];
|
|
208
|
-
model: components["schemas"]["
|
|
209
|
-
project?: components["schemas"]["
|
|
210
|
-
quality?: components["schemas"]["
|
|
211
|
-
source?: components["schemas"]["
|
|
212
|
-
stats?: components["schemas"]["
|
|
213
|
-
subagents?: components["schemas"]["
|
|
214
|
-
timestamp?: components["schemas"]["
|
|
234
|
+
model: components["schemas"]["SchemaAuthoritativeModelInfo"];
|
|
235
|
+
project?: components["schemas"]["SchemaAuthoritativeProjectContext"];
|
|
236
|
+
quality?: components["schemas"]["SchemaAuthoritativeQualityMetrics"];
|
|
237
|
+
source?: components["schemas"]["SchemaAuthoritativeSourceInfo"];
|
|
238
|
+
stats?: components["schemas"]["SchemaAuthoritativeSessionStats"];
|
|
239
|
+
subagents?: components["schemas"]["SchemaAuthoritativeSubagentRef"][];
|
|
240
|
+
timestamp?: components["schemas"]["SchemaAuthoritativeTimestampInfo"];
|
|
241
|
+
visibilityIntent?: components["schemas"]["SchemaVisibilityIntent"];
|
|
242
|
+
};
|
|
243
|
+
OpenapiTranscriptUpdateErrorResponse: {
|
|
244
|
+
error: string;
|
|
215
245
|
};
|
|
216
246
|
SchemaAnnotationEntryTarget: Schema.AnnotationEntryTarget;
|
|
217
247
|
SchemaAnnotationManifestResponse: Schema.AnnotationManifestResponse;
|
|
@@ -244,9 +274,20 @@ export interface components {
|
|
|
244
274
|
* @example assoc-20260726:session-a:commit-1
|
|
245
275
|
*/
|
|
246
276
|
SchemaAssociationID: Schema.AssociationID;
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
277
|
+
SchemaAuthoritativeCommitInfo: Schema.AuthoritativeCommitInfo;
|
|
278
|
+
SchemaAuthoritativeDiagnosticEntry: Schema.AuthoritativeDiagnosticEntry;
|
|
279
|
+
SchemaAuthoritativeDiagnosticsInfo: Schema.AuthoritativeDiagnosticsInfo;
|
|
280
|
+
SchemaAuthoritativeGitContext: Schema.AuthoritativeGitContext;
|
|
281
|
+
SchemaAuthoritativeModelInfo: Schema.AuthoritativeModelInfo;
|
|
282
|
+
SchemaAuthoritativeProjectContext: Schema.AuthoritativeProjectContext;
|
|
283
|
+
SchemaAuthoritativePublishResponse: Schema.AuthoritativePublishResponse;
|
|
284
|
+
SchemaAuthoritativeQualityMetrics: Schema.AuthoritativeQualityMetrics;
|
|
285
|
+
SchemaAuthoritativeSessionEntry: Schema.AuthoritativeSessionEntry;
|
|
286
|
+
SchemaAuthoritativeSessionIdentity: Schema.AuthoritativeSessionIdentity;
|
|
287
|
+
SchemaAuthoritativeSessionStats: Schema.AuthoritativeSessionStats;
|
|
288
|
+
SchemaAuthoritativeSourceInfo: Schema.AuthoritativeSourceInfo;
|
|
289
|
+
SchemaAuthoritativeSubagentRef: Schema.AuthoritativeSubagentRef;
|
|
290
|
+
SchemaAuthoritativeTimestampInfo: Schema.AuthoritativeTimestampInfo;
|
|
250
291
|
/**
|
|
251
292
|
* Entry Type
|
|
252
293
|
* @description Classification of a single entry within an agent session transcript
|
|
@@ -258,7 +299,6 @@ export interface components {
|
|
|
258
299
|
SchemaEntryType: Schema.EntryType;
|
|
259
300
|
SchemaExchangeCodeRequest: Schema.ExchangeCodeRequest;
|
|
260
301
|
SchemaExchangeCodeResponse: Schema.ExchangeCodeResponse;
|
|
261
|
-
SchemaGitContext: Schema.GitContext;
|
|
262
302
|
/**
|
|
263
303
|
* Host Slug
|
|
264
304
|
* @description Sanitized, filesystem-safe identifier derived from git remote; contains only [a-zA-Z0-9._<>-]
|
|
@@ -281,8 +321,10 @@ export interface components {
|
|
|
281
321
|
* @example codex-mini-latest
|
|
282
322
|
*/
|
|
283
323
|
SchemaModelID: Schema.ModelID;
|
|
284
|
-
|
|
285
|
-
|
|
324
|
+
SchemaOwnerTranscriptUpdateRequest: Schema.OwnerTranscriptUpdateRequest;
|
|
325
|
+
SchemaOwnerTranscriptUpdateResponse: Schema.OwnerTranscriptUpdateResponse;
|
|
326
|
+
/** @description Omitted preserves, null requests clear, and a canonical license replaces */
|
|
327
|
+
SchemaOwnerUpdateLicenseIntent: Schema.OwnerUpdateLicenseIntent;
|
|
286
328
|
/**
|
|
287
329
|
* Project Hash
|
|
288
330
|
* @description SHA-256 hex digest of the project's origin URL or local path
|
|
@@ -290,7 +332,13 @@ export interface components {
|
|
|
290
332
|
*/
|
|
291
333
|
SchemaProjectHash: Schema.ProjectHash;
|
|
292
334
|
SchemaProvenance: Schema.Provenance;
|
|
293
|
-
|
|
335
|
+
SchemaPublishAppliedState: Schema.PublishAppliedState;
|
|
336
|
+
SchemaPublishNormalizedValues: Schema.PublishNormalizedValues;
|
|
337
|
+
/**
|
|
338
|
+
* Publish Request Fingerprint
|
|
339
|
+
* @description SHA3-256 digest of the canonical domain-separated publish operation
|
|
340
|
+
*/
|
|
341
|
+
SchemaPublishRequestFingerprint: Schema.PublishRequestFingerprint;
|
|
294
342
|
SchemaPublishedAssociation: Schema.PublishedAssociation;
|
|
295
343
|
SchemaPullAnnotation: Schema.PullAnnotation;
|
|
296
344
|
SchemaPullListResponse: Schema.PullListResponse;
|
|
@@ -299,7 +347,6 @@ export interface components {
|
|
|
299
347
|
SchemaPullSkipGateResponse: Schema.PullSkipGateResponse;
|
|
300
348
|
SchemaPullSkipGateResult: Schema.PullSkipGateResult;
|
|
301
349
|
SchemaPullTranscriptInfo: Schema.PullTranscriptInfo;
|
|
302
|
-
SchemaQualityMetrics: Schema.QualityMetrics;
|
|
303
350
|
/**
|
|
304
351
|
* Role
|
|
305
352
|
* @description Sender role of a message turn
|
|
@@ -309,18 +356,18 @@ export interface components {
|
|
|
309
356
|
*/
|
|
310
357
|
SchemaRole: Schema.Role;
|
|
311
358
|
SchemaSchemaVersionResponse: Schema.SchemaVersionResponse;
|
|
312
|
-
SchemaSessionEntry: Schema.SessionEntry;
|
|
313
359
|
/**
|
|
314
360
|
* Session ID
|
|
315
361
|
* Format: session-id
|
|
316
|
-
* @description Unique session identifier (UUID, agent-{hex}, ses_{id}, sess_{id} (ACP),
|
|
362
|
+
* @description Unique session identifier (UUID, agent-{hex}, ses_{id}, sess_{id} (ACP), msg_{id}, or a Strike session ID)
|
|
317
363
|
* @example 99d59925-36bc-424c-a789-8be54d9702ba
|
|
318
364
|
* @example agent-a3aee4f
|
|
319
365
|
* @example ses_3cd91f52effeXd3QAJ54jOyzv5
|
|
320
366
|
* @example sess_3cd91f52effeXd3QAJ54jOyzv5
|
|
367
|
+
* @example 20260728T123456.123456789Z-ABCDEFGHIJKLMNOPQRST234567
|
|
368
|
+
* @example ABCDEFGHIJKLMNOPQRST234567
|
|
321
369
|
*/
|
|
322
370
|
SchemaSessionID: Schema.SessionID;
|
|
323
|
-
SchemaSessionIdentity: Schema.SessionIdentity;
|
|
324
371
|
/**
|
|
325
372
|
* Session Outcome
|
|
326
373
|
* @description Resolution status of the session
|
|
@@ -330,7 +377,6 @@ export interface components {
|
|
|
330
377
|
* @enum {string}
|
|
331
378
|
*/
|
|
332
379
|
SchemaSessionOutcome: Schema.SessionOutcome;
|
|
333
|
-
SchemaSessionStats: Schema.SessionStats;
|
|
334
380
|
/**
|
|
335
381
|
* Source Format
|
|
336
382
|
* @description Transcript file format
|
|
@@ -339,7 +385,6 @@ export interface components {
|
|
|
339
385
|
* @enum {string}
|
|
340
386
|
*/
|
|
341
387
|
SchemaSourceFormat: Schema.SourceFormat;
|
|
342
|
-
SchemaSourceInfo: Schema.SourceInfo;
|
|
343
388
|
/**
|
|
344
389
|
* Stop Reason
|
|
345
390
|
* @description Reason why a session or turn ended (ACP-aligned)
|
|
@@ -348,7 +393,6 @@ export interface components {
|
|
|
348
393
|
* @enum {string}
|
|
349
394
|
*/
|
|
350
395
|
SchemaStopReason: Schema.StopReason;
|
|
351
|
-
SchemaSubagentRef: Schema.SubagentRef;
|
|
352
396
|
/**
|
|
353
397
|
* Target Kind
|
|
354
398
|
* @description What is being annotated: session-level, entry-level (turn/tool call), meta-annotation, project-level, a specific file version (content-hash keyed read-state receipt), or a durable session-to-commit association
|
|
@@ -359,7 +403,6 @@ export interface components {
|
|
|
359
403
|
* @enum {string}
|
|
360
404
|
*/
|
|
361
405
|
SchemaTargetKind: Schema.TargetKind;
|
|
362
|
-
SchemaTimestampInfo: Schema.TimestampInfo;
|
|
363
406
|
/**
|
|
364
407
|
* Tool Call Kind
|
|
365
408
|
* @description Classification of a tool call, aligned with ACP ToolCallUpdate.kind
|
|
@@ -369,6 +412,11 @@ export interface components {
|
|
|
369
412
|
* @enum {string}
|
|
370
413
|
*/
|
|
371
414
|
SchemaToolCallKind: Schema.ToolCallKind;
|
|
415
|
+
/**
|
|
416
|
+
* Transcript Content Hash
|
|
417
|
+
* @description SHA3-256 digest of the exact transcript file bytes
|
|
418
|
+
*/
|
|
419
|
+
SchemaTranscriptContentHash: Schema.TranscriptContentHash;
|
|
372
420
|
/**
|
|
373
421
|
* Transcript ID
|
|
374
422
|
* Format: uuid
|
|
@@ -376,6 +424,14 @@ export interface components {
|
|
|
376
424
|
* @example 99d59925-36bc-424c-a789-8be54d9702ba
|
|
377
425
|
*/
|
|
378
426
|
SchemaTranscriptID: Schema.TranscriptID;
|
|
427
|
+
/**
|
|
428
|
+
* TranscriptUpdateVisibility
|
|
429
|
+
* @description Visibility values accepted by the owner transcript update operation. Organization-scoped visibility is deferred and is deliberately not offered here.
|
|
430
|
+
* @example public
|
|
431
|
+
* @example private
|
|
432
|
+
* @enum {string}
|
|
433
|
+
*/
|
|
434
|
+
SchemaTranscriptUpdateVisibility: Schema.TranscriptUpdateVisibility;
|
|
379
435
|
/**
|
|
380
436
|
* Visibility
|
|
381
437
|
* @description Access control level for a published transcript
|
|
@@ -384,6 +440,14 @@ export interface components {
|
|
|
384
440
|
* @enum {string}
|
|
385
441
|
*/
|
|
386
442
|
SchemaVisibility: Schema.Visibility;
|
|
443
|
+
/**
|
|
444
|
+
* Visibility Intent
|
|
445
|
+
* @description Optional desired final access for legacy compatibility; content replacement remains private and widening occurs separately
|
|
446
|
+
* @example private
|
|
447
|
+
* @example public
|
|
448
|
+
* @enum {string}
|
|
449
|
+
*/
|
|
450
|
+
SchemaVisibilityIntent: Schema.VisibilityIntent;
|
|
387
451
|
/**
|
|
388
452
|
* Visibility
|
|
389
453
|
* @description Access control level for a published transcript
|
|
@@ -630,9 +694,45 @@ export interface operations {
|
|
|
630
694
|
path?: never;
|
|
631
695
|
cookie?: never;
|
|
632
696
|
};
|
|
633
|
-
requestBody
|
|
697
|
+
requestBody: {
|
|
698
|
+
content: {
|
|
699
|
+
"multipart/form-data": components["schemas"]["FormDataOpenapiTranscriptPublishMultipartRequest"];
|
|
700
|
+
};
|
|
701
|
+
};
|
|
702
|
+
responses: {
|
|
703
|
+
/** @description OK */
|
|
704
|
+
200: {
|
|
705
|
+
headers: {
|
|
706
|
+
[name: string]: unknown;
|
|
707
|
+
};
|
|
708
|
+
content: {
|
|
709
|
+
"application/json": components["schemas"]["SchemaAuthoritativePublishResponse"];
|
|
710
|
+
};
|
|
711
|
+
};
|
|
712
|
+
/** @description Created */
|
|
713
|
+
201: {
|
|
714
|
+
headers: {
|
|
715
|
+
[name: string]: unknown;
|
|
716
|
+
};
|
|
717
|
+
content: {
|
|
718
|
+
"application/json": components["schemas"]["SchemaAuthoritativePublishResponse"];
|
|
719
|
+
};
|
|
720
|
+
};
|
|
721
|
+
};
|
|
722
|
+
};
|
|
723
|
+
updateTranscript: {
|
|
724
|
+
parameters: {
|
|
725
|
+
query?: never;
|
|
726
|
+
header?: never;
|
|
727
|
+
path: {
|
|
728
|
+
/** @description Transcript identifier */
|
|
729
|
+
id: components["schemas"]["SchemaTranscriptID"];
|
|
730
|
+
};
|
|
731
|
+
cookie?: never;
|
|
732
|
+
};
|
|
733
|
+
requestBody: {
|
|
634
734
|
content: {
|
|
635
|
-
"application/json": components["schemas"]["
|
|
735
|
+
"application/json": components["schemas"]["SchemaOwnerTranscriptUpdateRequest"];
|
|
636
736
|
};
|
|
637
737
|
};
|
|
638
738
|
responses: {
|
|
@@ -642,7 +742,52 @@ export interface operations {
|
|
|
642
742
|
[name: string]: unknown;
|
|
643
743
|
};
|
|
644
744
|
content: {
|
|
645
|
-
"application/json": components["schemas"]["
|
|
745
|
+
"application/json": components["schemas"]["SchemaOwnerTranscriptUpdateResponse"];
|
|
746
|
+
};
|
|
747
|
+
};
|
|
748
|
+
/** @description Bad Request */
|
|
749
|
+
400: {
|
|
750
|
+
headers: {
|
|
751
|
+
[name: string]: unknown;
|
|
752
|
+
};
|
|
753
|
+
content: {
|
|
754
|
+
"application/json": components["schemas"]["OpenapiTranscriptUpdateErrorResponse"];
|
|
755
|
+
};
|
|
756
|
+
};
|
|
757
|
+
/** @description Unauthorized */
|
|
758
|
+
401: {
|
|
759
|
+
headers: {
|
|
760
|
+
[name: string]: unknown;
|
|
761
|
+
};
|
|
762
|
+
content: {
|
|
763
|
+
"application/json": components["schemas"]["OpenapiTranscriptUpdateErrorResponse"];
|
|
764
|
+
};
|
|
765
|
+
};
|
|
766
|
+
/** @description Forbidden */
|
|
767
|
+
403: {
|
|
768
|
+
headers: {
|
|
769
|
+
[name: string]: unknown;
|
|
770
|
+
};
|
|
771
|
+
content: {
|
|
772
|
+
"application/json": components["schemas"]["OpenapiTranscriptUpdateErrorResponse"];
|
|
773
|
+
};
|
|
774
|
+
};
|
|
775
|
+
/** @description Not Found */
|
|
776
|
+
404: {
|
|
777
|
+
headers: {
|
|
778
|
+
[name: string]: unknown;
|
|
779
|
+
};
|
|
780
|
+
content: {
|
|
781
|
+
"application/json": components["schemas"]["OpenapiTranscriptUpdateErrorResponse"];
|
|
782
|
+
};
|
|
783
|
+
};
|
|
784
|
+
/** @description Internal Server Error */
|
|
785
|
+
500: {
|
|
786
|
+
headers: {
|
|
787
|
+
[name: string]: unknown;
|
|
788
|
+
};
|
|
789
|
+
content: {
|
|
790
|
+
"application/json": components["schemas"]["OpenapiTranscriptUpdateErrorResponse"];
|
|
646
791
|
};
|
|
647
792
|
};
|
|
648
793
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@peasant-labs/schema",
|
|
3
|
-
"version": "0.1.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "Generated TypeScript contract bindings for the peasant-labs schema module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"generate": "openapi-ts -f openapi-ts.config.mjs && node scripts/generate-contract-support.mjs",
|
|
69
69
|
"build": "node scripts/build.mjs",
|
|
70
70
|
"typecheck": "pnpm run build && tsc --noEmit -p tsconfig.test.json",
|
|
71
|
-
"test": "pnpm run build && node --test tests/*.test.mjs",
|
|
71
|
+
"test": "pnpm run build && node --test --test-concurrency=1 tests/*.test.mjs",
|
|
72
72
|
"package:audit": "pnpm run build && node scripts/package-audit.mjs",
|
|
73
73
|
"package:smoke": "pnpm run build && node scripts/package-smoke.mjs"
|
|
74
74
|
}
|