@ouraihub/aether-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/LICENSE +789 -0
- package/package.json +32 -3
- package/src/generated/Ack.ts +10 -0
- package/src/generated/Approval.ts +6 -0
- package/src/generated/ContextRef.ts +14 -0
- package/src/generated/ContextSource.ts +6 -0
- package/src/generated/ContextUsage.ts +27 -0
- package/src/generated/Conversation.ts +16 -0
- package/src/generated/ConversationSummary.ts +30 -0
- package/src/generated/Cost.ts +15 -0
- package/src/generated/Currency.ts +6 -0
- package/src/generated/Details.ts +6 -0
- package/src/generated/EndStatus.ts +6 -0
- package/src/generated/Endpoint.ts +54 -0
- package/src/generated/EndpointKey.ts +34 -0
- package/src/generated/EndpointKeySave.ts +30 -0
- package/src/generated/EndpointSave.ts +45 -0
- package/src/generated/ImagePart.ts +14 -0
- package/src/generated/ImageRef.ts +14 -0
- package/src/generated/IngestBatch.ts +15 -0
- package/src/generated/IngestEntry.ts +19 -0
- package/src/generated/IngestLevel.ts +6 -0
- package/src/generated/IngestReceipt.ts +14 -0
- package/src/generated/IssuedToken.ts +34 -0
- package/src/generated/KeyStrategy.ts +6 -0
- package/src/generated/KitError.ts +21 -0
- package/src/generated/KitErrorCode.ts +6 -0
- package/src/generated/LogEntry.ts +26 -0
- package/src/generated/LogLevel.ts +6 -0
- package/src/generated/LogStatus.ts +15 -0
- package/src/generated/ManualSave.ts +30 -0
- package/src/generated/McpTransport.ts +22 -0
- package/src/generated/Model.ts +58 -0
- package/src/generated/ModelFilter.ts +15 -0
- package/src/generated/ModelOption.ts +44 -0
- package/src/generated/ModelPricing.ts +16 -0
- package/src/generated/ModelRef.ts +14 -0
- package/src/generated/ModelSave.ts +60 -0
- package/src/generated/ModelType.ts +6 -0
- package/src/generated/PermissionMode.ts +7 -0
- package/src/generated/Preview.ts +50 -0
- package/src/generated/PreviewAction.ts +6 -0
- package/src/generated/PreviewCurrent.ts +14 -0
- package/src/generated/PricingTier.ts +26 -0
- package/src/generated/ProbeError.ts +23 -0
- package/src/generated/ProbeErrorKind.ts +6 -0
- package/src/generated/ProbeResult.ts +26 -0
- package/src/generated/ProbeTarget.ts +27 -0
- package/src/generated/ProbedModel.ts +62 -0
- package/src/generated/Protocol.ts +6 -0
- package/src/generated/Provider.ts +31 -0
- package/src/generated/ProviderSave.ts +32 -0
- package/src/generated/ReasoningConfig.ts +20 -0
- package/src/generated/ReasoningDialect.ts +6 -0
- package/src/generated/ReasoningEffort.ts +6 -0
- package/src/generated/RunAccepted.ts +18 -0
- package/src/generated/RunEvent.ts +121 -0
- package/src/generated/RunRequest.ts +84 -0
- package/src/generated/RunSnapshot.ts +36 -0
- package/src/generated/RunStatus.ts +6 -0
- package/src/generated/ScopeState.ts +22 -0
- package/src/generated/SearchHit.ts +18 -0
- package/src/generated/ServerDto.ts +44 -0
- package/src/generated/ServerSave.ts +40 -0
- package/src/generated/ServerSecret.ts +19 -0
- package/src/generated/SkillDto.ts +64 -0
- package/src/generated/SkillFileKind.ts +6 -0
- package/src/generated/SkillFileMeta.ts +19 -0
- package/src/generated/SkillMeta.ts +47 -0
- package/src/generated/SkillOrigin.ts +6 -0
- package/src/generated/SkillRef.ts +14 -0
- package/src/generated/Source.ts +15 -0
- package/src/generated/Status.ts +22 -0
- package/src/generated/TokenRecord.ts +30 -0
- package/src/generated/TokenUsage.ts +26 -0
- package/src/generated/ToolDto.ts +23 -0
- package/src/generated/ToolEffect.ts +6 -0
- package/src/generated/ToolOutcome.ts +6 -0
- package/src/generated/ToolSourceKind.ts +6 -0
- package/src/generated/Turn.ts +84 -0
- package/src/generated/TurnStatus.ts +6 -0
- package/src/generated/TypeSource.ts +6 -0
- package/src/index.ts +82 -0
- package/src/search.ts +50 -0
- package/src/validation.ts +368 -0
- package/src/validators.d.ts +177 -0
- package/src/validators.js +18 -0
- package/README.md +0 -3
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import type { ValidateFunction } from 'ajv'
|
|
2
|
+
import type { Ack } from './generated/Ack'
|
|
3
|
+
import type { Approval } from './generated/Approval'
|
|
4
|
+
import type { ContextRef } from './generated/ContextRef'
|
|
5
|
+
import type { ContextSource } from './generated/ContextSource'
|
|
6
|
+
import type { ContextUsage } from './generated/ContextUsage'
|
|
7
|
+
import type { Conversation } from './generated/Conversation'
|
|
8
|
+
import type { ConversationSummary } from './generated/ConversationSummary'
|
|
9
|
+
import type { Cost } from './generated/Cost'
|
|
10
|
+
import type { Currency } from './generated/Currency'
|
|
11
|
+
import type { Details } from './generated/Details'
|
|
12
|
+
import type { EndStatus } from './generated/EndStatus'
|
|
13
|
+
import type { Endpoint } from './generated/Endpoint'
|
|
14
|
+
import type { EndpointKey } from './generated/EndpointKey'
|
|
15
|
+
import type { EndpointKeySave } from './generated/EndpointKeySave'
|
|
16
|
+
import type { EndpointSave } from './generated/EndpointSave'
|
|
17
|
+
import type { ImagePart } from './generated/ImagePart'
|
|
18
|
+
import type { ImageRef } from './generated/ImageRef'
|
|
19
|
+
import type { IngestBatch } from './generated/IngestBatch'
|
|
20
|
+
import type { IngestEntry } from './generated/IngestEntry'
|
|
21
|
+
import type { IngestLevel } from './generated/IngestLevel'
|
|
22
|
+
import type { IngestReceipt } from './generated/IngestReceipt'
|
|
23
|
+
import type { IssuedToken } from './generated/IssuedToken'
|
|
24
|
+
import type { KeyStrategy } from './generated/KeyStrategy'
|
|
25
|
+
import type { KitError } from './generated/KitError'
|
|
26
|
+
import type { KitErrorCode } from './generated/KitErrorCode'
|
|
27
|
+
import type { LogEntry } from './generated/LogEntry'
|
|
28
|
+
import type { LogLevel } from './generated/LogLevel'
|
|
29
|
+
import type { LogStatus } from './generated/LogStatus'
|
|
30
|
+
import type { ManualSave } from './generated/ManualSave'
|
|
31
|
+
import type { McpTransport } from './generated/McpTransport'
|
|
32
|
+
import type { Model } from './generated/Model'
|
|
33
|
+
import type { ModelFilter } from './generated/ModelFilter'
|
|
34
|
+
import type { ModelOption } from './generated/ModelOption'
|
|
35
|
+
import type { ModelPricing } from './generated/ModelPricing'
|
|
36
|
+
import type { ModelRef } from './generated/ModelRef'
|
|
37
|
+
import type { ModelSave } from './generated/ModelSave'
|
|
38
|
+
import type { ModelType } from './generated/ModelType'
|
|
39
|
+
import type { PermissionMode } from './generated/PermissionMode'
|
|
40
|
+
import type { Preview } from './generated/Preview'
|
|
41
|
+
import type { PreviewAction } from './generated/PreviewAction'
|
|
42
|
+
import type { PreviewCurrent } from './generated/PreviewCurrent'
|
|
43
|
+
import type { PricingTier } from './generated/PricingTier'
|
|
44
|
+
import type { ProbeError } from './generated/ProbeError'
|
|
45
|
+
import type { ProbeErrorKind } from './generated/ProbeErrorKind'
|
|
46
|
+
import type { ProbeResult } from './generated/ProbeResult'
|
|
47
|
+
import type { ProbeTarget } from './generated/ProbeTarget'
|
|
48
|
+
import type { ProbedModel } from './generated/ProbedModel'
|
|
49
|
+
import type { Protocol } from './generated/Protocol'
|
|
50
|
+
import type { Provider } from './generated/Provider'
|
|
51
|
+
import type { ProviderSave } from './generated/ProviderSave'
|
|
52
|
+
import type { ReasoningConfig } from './generated/ReasoningConfig'
|
|
53
|
+
import type { ReasoningDialect } from './generated/ReasoningDialect'
|
|
54
|
+
import type { ReasoningEffort } from './generated/ReasoningEffort'
|
|
55
|
+
import type { RunAccepted } from './generated/RunAccepted'
|
|
56
|
+
import type { RunEvent } from './generated/RunEvent'
|
|
57
|
+
import type { RunRequest } from './generated/RunRequest'
|
|
58
|
+
import type { RunSnapshot } from './generated/RunSnapshot'
|
|
59
|
+
import type { RunStatus } from './generated/RunStatus'
|
|
60
|
+
import type { ScopeState } from './generated/ScopeState'
|
|
61
|
+
import type { SearchCap } from './search'
|
|
62
|
+
import type { SearchHit } from './generated/SearchHit'
|
|
63
|
+
import type { SearchKey } from './search'
|
|
64
|
+
import type { SearchPage } from './search'
|
|
65
|
+
import type { SearchPreferences } from './search'
|
|
66
|
+
import type { SearchProvider } from './search'
|
|
67
|
+
import type { SearchResult } from './search'
|
|
68
|
+
import type { SearchSave } from './search'
|
|
69
|
+
import type { SearchSettingsDto } from './search'
|
|
70
|
+
import type { ServerDto } from './generated/ServerDto'
|
|
71
|
+
import type { ServerSave } from './generated/ServerSave'
|
|
72
|
+
import type { ServerSecret } from './generated/ServerSecret'
|
|
73
|
+
import type { SkillDto } from './generated/SkillDto'
|
|
74
|
+
import type { SkillFileKind } from './generated/SkillFileKind'
|
|
75
|
+
import type { SkillFileMeta } from './generated/SkillFileMeta'
|
|
76
|
+
import type { SkillMeta } from './generated/SkillMeta'
|
|
77
|
+
import type { SkillOrigin } from './generated/SkillOrigin'
|
|
78
|
+
import type { SkillRef } from './generated/SkillRef'
|
|
79
|
+
import type { Source } from './generated/Source'
|
|
80
|
+
import type { Status } from './generated/Status'
|
|
81
|
+
import type { TokenRecord } from './generated/TokenRecord'
|
|
82
|
+
import type { TokenUsage } from './generated/TokenUsage'
|
|
83
|
+
import type { ToolDto } from './generated/ToolDto'
|
|
84
|
+
import type { ToolEffect } from './generated/ToolEffect'
|
|
85
|
+
import type { ToolOutcome } from './generated/ToolOutcome'
|
|
86
|
+
import type { ToolSourceKind } from './generated/ToolSourceKind'
|
|
87
|
+
import type { Turn } from './generated/Turn'
|
|
88
|
+
import type { TurnStatus } from './generated/TurnStatus'
|
|
89
|
+
import type { TypeSource } from './generated/TypeSource'
|
|
90
|
+
export const validateAck: ValidateFunction<Ack>
|
|
91
|
+
export const validateApproval: ValidateFunction<Approval>
|
|
92
|
+
export const validateContextRef: ValidateFunction<ContextRef>
|
|
93
|
+
export const validateContextSource: ValidateFunction<ContextSource>
|
|
94
|
+
export const validateContextUsage: ValidateFunction<ContextUsage>
|
|
95
|
+
export const validateConversation: ValidateFunction<Conversation>
|
|
96
|
+
export const validateConversationSummary: ValidateFunction<ConversationSummary>
|
|
97
|
+
export const validateCost: ValidateFunction<Cost>
|
|
98
|
+
export const validateCurrency: ValidateFunction<Currency>
|
|
99
|
+
export const validateDetails: ValidateFunction<Details>
|
|
100
|
+
export const validateEndStatus: ValidateFunction<EndStatus>
|
|
101
|
+
export const validateEndpoint: ValidateFunction<Endpoint>
|
|
102
|
+
export const validateEndpointKey: ValidateFunction<EndpointKey>
|
|
103
|
+
export const validateEndpointKeySave: ValidateFunction<EndpointKeySave>
|
|
104
|
+
export const validateEndpointSave: ValidateFunction<EndpointSave>
|
|
105
|
+
export const validateImagePart: ValidateFunction<ImagePart>
|
|
106
|
+
export const validateImageRef: ValidateFunction<ImageRef>
|
|
107
|
+
export const validateIngestBatch: ValidateFunction<IngestBatch>
|
|
108
|
+
export const validateIngestEntry: ValidateFunction<IngestEntry>
|
|
109
|
+
export const validateIngestLevel: ValidateFunction<IngestLevel>
|
|
110
|
+
export const validateIngestReceipt: ValidateFunction<IngestReceipt>
|
|
111
|
+
export const validateIssuedToken: ValidateFunction<IssuedToken>
|
|
112
|
+
export const validateKeyStrategy: ValidateFunction<KeyStrategy>
|
|
113
|
+
export const validateKitError: ValidateFunction<KitError>
|
|
114
|
+
export const validateKitErrorCode: ValidateFunction<KitErrorCode>
|
|
115
|
+
export const validateLogEntry: ValidateFunction<LogEntry>
|
|
116
|
+
export const validateLogLevel: ValidateFunction<LogLevel>
|
|
117
|
+
export const validateLogStatus: ValidateFunction<LogStatus>
|
|
118
|
+
export const validateManualSave: ValidateFunction<ManualSave>
|
|
119
|
+
export const validateMcpTransport: ValidateFunction<McpTransport>
|
|
120
|
+
export const validateModel: ValidateFunction<Model>
|
|
121
|
+
export const validateModelFilter: ValidateFunction<ModelFilter>
|
|
122
|
+
export const validateModelOption: ValidateFunction<ModelOption>
|
|
123
|
+
export const validateModelPricing: ValidateFunction<ModelPricing>
|
|
124
|
+
export const validateModelRef: ValidateFunction<ModelRef>
|
|
125
|
+
export const validateModelSave: ValidateFunction<ModelSave>
|
|
126
|
+
export const validateModelType: ValidateFunction<ModelType>
|
|
127
|
+
export const validatePermissionMode: ValidateFunction<PermissionMode>
|
|
128
|
+
export const validatePreview: ValidateFunction<Preview>
|
|
129
|
+
export const validatePreviewAction: ValidateFunction<PreviewAction>
|
|
130
|
+
export const validatePreviewCurrent: ValidateFunction<PreviewCurrent>
|
|
131
|
+
export const validatePricingTier: ValidateFunction<PricingTier>
|
|
132
|
+
export const validateProbeError: ValidateFunction<ProbeError>
|
|
133
|
+
export const validateProbeErrorKind: ValidateFunction<ProbeErrorKind>
|
|
134
|
+
export const validateProbeResult: ValidateFunction<ProbeResult>
|
|
135
|
+
export const validateProbeTarget: ValidateFunction<ProbeTarget>
|
|
136
|
+
export const validateProbedModel: ValidateFunction<ProbedModel>
|
|
137
|
+
export const validateProtocol: ValidateFunction<Protocol>
|
|
138
|
+
export const validateProvider: ValidateFunction<Provider>
|
|
139
|
+
export const validateProviderSave: ValidateFunction<ProviderSave>
|
|
140
|
+
export const validateReasoningConfig: ValidateFunction<ReasoningConfig>
|
|
141
|
+
export const validateReasoningDialect: ValidateFunction<ReasoningDialect>
|
|
142
|
+
export const validateReasoningEffort: ValidateFunction<ReasoningEffort>
|
|
143
|
+
export const validateRunAccepted: ValidateFunction<RunAccepted>
|
|
144
|
+
export const validateRunEvent: ValidateFunction<RunEvent>
|
|
145
|
+
export const validateRunRequest: ValidateFunction<RunRequest>
|
|
146
|
+
export const validateRunSnapshot: ValidateFunction<RunSnapshot>
|
|
147
|
+
export const validateRunStatus: ValidateFunction<RunStatus>
|
|
148
|
+
export const validateScopeState: ValidateFunction<ScopeState>
|
|
149
|
+
export const validateSearchCap: ValidateFunction<SearchCap>
|
|
150
|
+
export const validateSearchHit: ValidateFunction<SearchHit>
|
|
151
|
+
export const validateSearchKey: ValidateFunction<SearchKey>
|
|
152
|
+
export const validateSearchPage: ValidateFunction<SearchPage>
|
|
153
|
+
export const validateSearchPreferences: ValidateFunction<SearchPreferences>
|
|
154
|
+
export const validateSearchProvider: ValidateFunction<SearchProvider>
|
|
155
|
+
export const validateSearchResult: ValidateFunction<SearchResult>
|
|
156
|
+
export const validateSearchSave: ValidateFunction<SearchSave>
|
|
157
|
+
export const validateSearchSettingsDto: ValidateFunction<SearchSettingsDto>
|
|
158
|
+
export const validateServerDto: ValidateFunction<ServerDto>
|
|
159
|
+
export const validateServerSave: ValidateFunction<ServerSave>
|
|
160
|
+
export const validateServerSecret: ValidateFunction<ServerSecret>
|
|
161
|
+
export const validateSkillDto: ValidateFunction<SkillDto>
|
|
162
|
+
export const validateSkillFileKind: ValidateFunction<SkillFileKind>
|
|
163
|
+
export const validateSkillFileMeta: ValidateFunction<SkillFileMeta>
|
|
164
|
+
export const validateSkillMeta: ValidateFunction<SkillMeta>
|
|
165
|
+
export const validateSkillOrigin: ValidateFunction<SkillOrigin>
|
|
166
|
+
export const validateSkillRef: ValidateFunction<SkillRef>
|
|
167
|
+
export const validateSource: ValidateFunction<Source>
|
|
168
|
+
export const validateStatus: ValidateFunction<Status>
|
|
169
|
+
export const validateTokenRecord: ValidateFunction<TokenRecord>
|
|
170
|
+
export const validateTokenUsage: ValidateFunction<TokenUsage>
|
|
171
|
+
export const validateToolDto: ValidateFunction<ToolDto>
|
|
172
|
+
export const validateToolEffect: ValidateFunction<ToolEffect>
|
|
173
|
+
export const validateToolOutcome: ValidateFunction<ToolOutcome>
|
|
174
|
+
export const validateToolSourceKind: ValidateFunction<ToolSourceKind>
|
|
175
|
+
export const validateTurn: ValidateFunction<Turn>
|
|
176
|
+
export const validateTurnStatus: ValidateFunction<TurnStatus>
|
|
177
|
+
export const validateTypeSource: ValidateFunction<TypeSource>
|