@agentproto/corpus-cli 0.11.2 → 0.11.3
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/specs/resources/aip-11/draft/LESSON.schema.json +2 -2
- package/dist/specs/resources/aip-12/draft/PLAYBOOK.schema.json +2 -1
- package/dist/specs/resources/aip-3/draft/SKILL.schema.json +2 -2
- package/dist/specs/resources/aip-34/draft/EXPORT.schema.json +2 -2
- package/dist/specs/resources/aip-34/draft/LOCK.schema.json +3 -3
- package/dist/specs/resources/aip-34/draft/PRESENCE.schema.json +3 -3
- package/dist/specs/resources/aip-34/draft/TYPES.schema.json +2 -2
- package/dist/specs/resources/aip-34/draft/WORKSPACE.schema.json +1 -1
- package/dist/specs/resources/aip-38/draft/POLICY.schema.json +14 -3
- package/dist/specs/resources/aip-4/draft/DESIGN.schema.json +2 -2
- package/dist/specs/resources/aip-43/draft/Selector.schema.json +245 -0
- package/dist/specs/resources/aip-45/draft/{AGENT-CLI.schema.json → HARNESS.schema.json} +77 -8
- package/dist/specs/resources/aip-46/draft/SessionConfig.schema.json +293 -0
- package/dist/specs/resources/aip-48/draft/MultiAgentRuntime.schema.json +3 -3
- package/dist/specs/resources/aip-53/draft/APP.schema.json +35 -6
- package/dist/specs/resources/aip-6/draft/COMPANY.schema.json +4 -4
- package/dist/specs/resources/aip-62/draft/ATTESTATION.schema.json +11 -4
- package/dist/specs/resources/aip-63/draft/RECORDING.schema.json +2 -2
- package/dist/specs/resources/aip-69/draft/AuthProfile.schema.json +127 -0
- package/dist/specs/resources/aip-7/draft/GOVERNANCE.schema.json +436 -105
- package/dist/specs/resources/aip-9/draft/OPERATOR.schema.json +2 -2
- package/dist/specs/resources/pending/memory/draft/MEMORY.schema.json +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agentproto.sh/schemas/aip-46/SessionConfig.schema.json",
|
|
4
|
+
"title": "AIP-46 SessionConfig, ConfigOverlay and SessionPreset",
|
|
5
|
+
"description": "Normalized per-session configuration (2026-10-23 session-config amendment). Hosts MAY accept additional host-specific keys only under an x- prefix.",
|
|
6
|
+
"$defs": {
|
|
7
|
+
"ConfigOverlay": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"additionalProperties": false,
|
|
10
|
+
"patternProperties": {
|
|
11
|
+
"^x-": {}
|
|
12
|
+
},
|
|
13
|
+
"properties": {
|
|
14
|
+
"harness": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"minLength": 1,
|
|
17
|
+
"description": "AIP-45 harness slug."
|
|
18
|
+
},
|
|
19
|
+
"adapter": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"minLength": 1,
|
|
22
|
+
"deprecated": true,
|
|
23
|
+
"description": "Legacy alias of `harness` (AIP-70). A config MUST NOT carry both."
|
|
24
|
+
},
|
|
25
|
+
"model": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"minLength": 1,
|
|
28
|
+
"description": "Model id, or selector:<id> naming a saved AIP-43 selector."
|
|
29
|
+
},
|
|
30
|
+
"effort": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"minLength": 1
|
|
33
|
+
},
|
|
34
|
+
"posture": {
|
|
35
|
+
"oneOf": [
|
|
36
|
+
{
|
|
37
|
+
"enum": [
|
|
38
|
+
"default",
|
|
39
|
+
"plan",
|
|
40
|
+
"accept-edits",
|
|
41
|
+
"bypass",
|
|
42
|
+
"read-only"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"type": "object",
|
|
47
|
+
"required": [
|
|
48
|
+
"harnessModeId"
|
|
49
|
+
],
|
|
50
|
+
"additionalProperties": false,
|
|
51
|
+
"properties": {
|
|
52
|
+
"harnessModeId": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"minLength": 1
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"contextProfile": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"minLength": 1
|
|
63
|
+
},
|
|
64
|
+
"route": {
|
|
65
|
+
"type": "object",
|
|
66
|
+
"required": [
|
|
67
|
+
"gateway"
|
|
68
|
+
],
|
|
69
|
+
"additionalProperties": false,
|
|
70
|
+
"properties": {
|
|
71
|
+
"gateway": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"minLength": 1
|
|
74
|
+
},
|
|
75
|
+
"baseUrl": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"format": "uri"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"access": {
|
|
82
|
+
"type": "object",
|
|
83
|
+
"required": [
|
|
84
|
+
"profileRef"
|
|
85
|
+
],
|
|
86
|
+
"additionalProperties": false,
|
|
87
|
+
"properties": {
|
|
88
|
+
"profileRef": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"minLength": 1,
|
|
91
|
+
"description": "AIP-69 auth profile id."
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"options": {
|
|
96
|
+
"type": "object",
|
|
97
|
+
"description": "Harness-native AIP-45 options, validated against the harness manifest."
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"not": {
|
|
101
|
+
"required": [
|
|
102
|
+
"harness",
|
|
103
|
+
"adapter"
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"FailureClass": {
|
|
108
|
+
"enum": [
|
|
109
|
+
"rate-limit",
|
|
110
|
+
"quota-exhausted",
|
|
111
|
+
"upstream-5xx",
|
|
112
|
+
"model-unavailable",
|
|
113
|
+
"auth-failed",
|
|
114
|
+
"no-output-stall",
|
|
115
|
+
"harness-crashed"
|
|
116
|
+
]
|
|
117
|
+
},
|
|
118
|
+
"SessionConfig": {
|
|
119
|
+
"type": "object",
|
|
120
|
+
"additionalProperties": false,
|
|
121
|
+
"patternProperties": {
|
|
122
|
+
"^x-": {}
|
|
123
|
+
},
|
|
124
|
+
"properties": {
|
|
125
|
+
"harness": {
|
|
126
|
+
"type": "string",
|
|
127
|
+
"minLength": 1,
|
|
128
|
+
"description": "AIP-45 harness slug."
|
|
129
|
+
},
|
|
130
|
+
"adapter": {
|
|
131
|
+
"type": "string",
|
|
132
|
+
"minLength": 1,
|
|
133
|
+
"deprecated": true,
|
|
134
|
+
"description": "Legacy alias of `harness` (AIP-70). A config MUST NOT carry both."
|
|
135
|
+
},
|
|
136
|
+
"model": {
|
|
137
|
+
"type": "string",
|
|
138
|
+
"minLength": 1,
|
|
139
|
+
"description": "Model id, or selector:<id> naming a saved AIP-43 selector."
|
|
140
|
+
},
|
|
141
|
+
"effort": {
|
|
142
|
+
"type": "string",
|
|
143
|
+
"minLength": 1
|
|
144
|
+
},
|
|
145
|
+
"posture": {
|
|
146
|
+
"oneOf": [
|
|
147
|
+
{
|
|
148
|
+
"enum": [
|
|
149
|
+
"default",
|
|
150
|
+
"plan",
|
|
151
|
+
"accept-edits",
|
|
152
|
+
"bypass",
|
|
153
|
+
"read-only"
|
|
154
|
+
]
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"type": "object",
|
|
158
|
+
"required": [
|
|
159
|
+
"harnessModeId"
|
|
160
|
+
],
|
|
161
|
+
"additionalProperties": false,
|
|
162
|
+
"properties": {
|
|
163
|
+
"harnessModeId": {
|
|
164
|
+
"type": "string",
|
|
165
|
+
"minLength": 1
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
]
|
|
170
|
+
},
|
|
171
|
+
"contextProfile": {
|
|
172
|
+
"type": "string",
|
|
173
|
+
"minLength": 1
|
|
174
|
+
},
|
|
175
|
+
"route": {
|
|
176
|
+
"type": "object",
|
|
177
|
+
"required": [
|
|
178
|
+
"gateway"
|
|
179
|
+
],
|
|
180
|
+
"additionalProperties": false,
|
|
181
|
+
"properties": {
|
|
182
|
+
"gateway": {
|
|
183
|
+
"type": "string",
|
|
184
|
+
"minLength": 1
|
|
185
|
+
},
|
|
186
|
+
"baseUrl": {
|
|
187
|
+
"type": "string",
|
|
188
|
+
"format": "uri"
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
"access": {
|
|
193
|
+
"type": "object",
|
|
194
|
+
"required": [
|
|
195
|
+
"profileRef"
|
|
196
|
+
],
|
|
197
|
+
"additionalProperties": false,
|
|
198
|
+
"properties": {
|
|
199
|
+
"profileRef": {
|
|
200
|
+
"type": "string",
|
|
201
|
+
"minLength": 1,
|
|
202
|
+
"description": "AIP-69 auth profile id."
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
"options": {
|
|
207
|
+
"type": "object",
|
|
208
|
+
"description": "Harness-native AIP-45 options, validated against the harness manifest."
|
|
209
|
+
},
|
|
210
|
+
"retry": {
|
|
211
|
+
"type": "object",
|
|
212
|
+
"required": [
|
|
213
|
+
"on"
|
|
214
|
+
],
|
|
215
|
+
"additionalProperties": false,
|
|
216
|
+
"properties": {
|
|
217
|
+
"on": {
|
|
218
|
+
"type": "array",
|
|
219
|
+
"items": {
|
|
220
|
+
"$ref": "#/$defs/FailureClass"
|
|
221
|
+
},
|
|
222
|
+
"uniqueItems": true
|
|
223
|
+
},
|
|
224
|
+
"maxRetries": {
|
|
225
|
+
"type": "integer",
|
|
226
|
+
"minimum": 0
|
|
227
|
+
},
|
|
228
|
+
"retryAfterToolCalls": {
|
|
229
|
+
"type": "boolean",
|
|
230
|
+
"default": false
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
"fallback": {
|
|
235
|
+
"type": "array",
|
|
236
|
+
"items": {
|
|
237
|
+
"$ref": "#/$defs/ConfigOverlay"
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
"not": {
|
|
242
|
+
"required": [
|
|
243
|
+
"harness",
|
|
244
|
+
"adapter"
|
|
245
|
+
]
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
"SessionPreset": {
|
|
249
|
+
"type": "object",
|
|
250
|
+
"required": [
|
|
251
|
+
"id",
|
|
252
|
+
"config"
|
|
253
|
+
],
|
|
254
|
+
"additionalProperties": false,
|
|
255
|
+
"properties": {
|
|
256
|
+
"id": {
|
|
257
|
+
"type": "string",
|
|
258
|
+
"pattern": "^[a-z0-9][a-z0-9-]{0,62}$"
|
|
259
|
+
},
|
|
260
|
+
"label": {
|
|
261
|
+
"type": "string"
|
|
262
|
+
},
|
|
263
|
+
"tags": {
|
|
264
|
+
"type": "array",
|
|
265
|
+
"items": {
|
|
266
|
+
"type": "string"
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
"extends": {
|
|
270
|
+
"type": "array",
|
|
271
|
+
"items": {
|
|
272
|
+
"type": "string"
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
"defaultFor": {
|
|
276
|
+
"type": "string",
|
|
277
|
+
"minLength": 1
|
|
278
|
+
},
|
|
279
|
+
"agent": {
|
|
280
|
+
"type": "string",
|
|
281
|
+
"minLength": 1
|
|
282
|
+
},
|
|
283
|
+
"config": {
|
|
284
|
+
"$ref": "#/$defs/SessionConfig"
|
|
285
|
+
},
|
|
286
|
+
"policy": {
|
|
287
|
+
"description": "AIP-38 PolicyRef (inline, ref or file)."
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
"$ref": "#/$defs/SessionConfig"
|
|
293
|
+
}
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://agentproto.sh/schemas/aip-48/MultiAgentRuntime.schema.json",
|
|
4
4
|
"title": "MultiAgentRuntime",
|
|
5
|
-
"description": "Manifest format for
|
|
5
|
+
"description": "Manifest format for runtime/v1 — a composable multi-agent execution kernel. See AIP-48.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"required": ["schema", "kind", "id", "participants", "substrate", "dispatcher"],
|
|
8
8
|
"additionalProperties": true,
|
|
9
9
|
"properties": {
|
|
10
10
|
"schema": {
|
|
11
|
-
"
|
|
12
|
-
"description": "Schema discriminator. MUST be '
|
|
11
|
+
"enum": ["runtime/v1", "agentruntimes/v1"],
|
|
12
|
+
"description": "Schema discriminator. MUST be 'runtime/v1'. `agentruntimes/v1` is accepted as a legacy alias (AIP-70)."
|
|
13
13
|
},
|
|
14
14
|
"kind": {
|
|
15
15
|
"const": "MultiAgentRuntime",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://agentproto.sh/docs/aip-53/APP.schema.json",
|
|
4
4
|
"title": "APP.md frontmatter — app/v1 (agent app bundle + UI surface)",
|
|
5
|
-
"description": "Validates the YAML frontmatter portion of an AIP-53 APP.md manifest
|
|
5
|
+
"description": "Validates the YAML frontmatter portion of an AIP-53 APP.md manifest, the on-disk form of an AppDefinition. Codifies shipped behaviour: `agents` may be empty for a UI-only app when `ui` is present (packages/app/src/define-app.ts:60-64), and `data` / `category` are carried verbatim (packages/app/src/types.ts).",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"required": [
|
|
8
8
|
"schema",
|
|
@@ -328,7 +328,7 @@
|
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
330
|
},
|
|
331
|
-
"description": "Dev-only launch recipes. Carried verbatim; NEVER executed by app
|
|
331
|
+
"description": "Dev-only launch recipes. Carried verbatim; NEVER executed by `@agentproto/app`; `defineApp` validates the shape only (packages/app/src/define-app.ts:65-67) and no loader/emit path runs it. The production hosting surface is `services` (below), not this."
|
|
332
332
|
}
|
|
333
333
|
},
|
|
334
334
|
"description": "Dev-launch configuration, carried verbatim in frontmatter."
|
|
@@ -344,8 +344,35 @@
|
|
|
344
344
|
],
|
|
345
345
|
"additionalProperties": false,
|
|
346
346
|
"oneOf": [
|
|
347
|
-
{
|
|
348
|
-
|
|
347
|
+
{
|
|
348
|
+
"required": [
|
|
349
|
+
"entry"
|
|
350
|
+
],
|
|
351
|
+
"not": {
|
|
352
|
+
"anyOf": [
|
|
353
|
+
{
|
|
354
|
+
"required": [
|
|
355
|
+
"command"
|
|
356
|
+
]
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"required": [
|
|
360
|
+
"args"
|
|
361
|
+
]
|
|
362
|
+
}
|
|
363
|
+
]
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"required": [
|
|
368
|
+
"command"
|
|
369
|
+
],
|
|
370
|
+
"not": {
|
|
371
|
+
"required": [
|
|
372
|
+
"entry"
|
|
373
|
+
]
|
|
374
|
+
}
|
|
375
|
+
}
|
|
349
376
|
],
|
|
350
377
|
"properties": {
|
|
351
378
|
"name": {
|
|
@@ -366,7 +393,9 @@
|
|
|
366
393
|
"args": {
|
|
367
394
|
"type": "array",
|
|
368
395
|
"minItems": 1,
|
|
369
|
-
"items": {
|
|
396
|
+
"items": {
|
|
397
|
+
"type": "string"
|
|
398
|
+
},
|
|
370
399
|
"description": "Structured command form: argv after `command`, passed verbatim. Requires `command`."
|
|
371
400
|
},
|
|
372
401
|
"cwd": {
|
|
@@ -991,7 +1020,7 @@
|
|
|
991
1020
|
"allOf": [
|
|
992
1021
|
{
|
|
993
1022
|
"title": "UI-only carve-out",
|
|
994
|
-
"description": "An app with an empty or absent `agents` array is conforming ONLY when `ui` is present (codifies packages/app
|
|
1023
|
+
"description": "An app with an empty or absent `agents` array is conforming ONLY when `ui` is present (codifies packages/app/src/define-app.ts:60-64 and the five builtin panels in packages/apps/src/index.ts that ship as agents: []).",
|
|
995
1024
|
"if": {
|
|
996
1025
|
"anyOf": [
|
|
997
1026
|
{
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://agentproto.sh/schemas/aip-6/COMPANY.schema.json",
|
|
4
|
-
"title": "
|
|
5
|
-
"description": "Validates the YAML frontmatter portion of any
|
|
4
|
+
"title": "company/v1 doctype frontmatter (AIP-6)",
|
|
5
|
+
"description": "Validates the YAML frontmatter portion of any company/v1 doctype file. The `doctype` field discriminates between company / role / objective; each branch enforces the doctype-specific shape. Operator doctype is sketched here but the normative definition lives in AIP-8 — only company / role / objective are normative under AIP-6.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"required": ["schema", "doctype", "id"],
|
|
8
8
|
"properties": {
|
|
9
9
|
"schema": {
|
|
10
|
-
"
|
|
11
|
-
"description": "Format identifier. MUST be the
|
|
10
|
+
"enum": ["company/v1", "agentcompanies/v1"],
|
|
11
|
+
"description": "Format identifier. MUST be the canonical string `company/v1`. `agentcompanies/v1` is accepted as a legacy alias (AIP-70)."
|
|
12
12
|
},
|
|
13
13
|
"doctype": {
|
|
14
14
|
"enum": ["company", "role", "objective"],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://agentproto.sh/schemas/aip-62/ATTESTATION.schema.json",
|
|
4
|
-
"title": "
|
|
4
|
+
"title": "review.attestation/v1",
|
|
5
5
|
"description": "A review verdict bound to a manifest and a frozen git range. The `verdict` MUST equal the fold of `lanes` (AIP-62 verdict fold); a verifier recomputes it. `attestor.signature`, when present, covers the canonical JSON of the attestation with `attestor.signature` removed. Mutable annotations (PR status) live outside this document and are never signed.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"required": [
|
|
@@ -20,7 +20,11 @@
|
|
|
20
20
|
],
|
|
21
21
|
"properties": {
|
|
22
22
|
"schema": {
|
|
23
|
-
"
|
|
23
|
+
"enum": [
|
|
24
|
+
"review.attestation/v1",
|
|
25
|
+
"agentproto.review.attestation/v1"
|
|
26
|
+
],
|
|
27
|
+
"description": "`agentproto.review.attestation/v1` is accepted as a legacy alias (AIP-70)."
|
|
24
28
|
},
|
|
25
29
|
"runId": {
|
|
26
30
|
"type": "string",
|
|
@@ -150,8 +154,11 @@
|
|
|
150
154
|
"type": "string"
|
|
151
155
|
},
|
|
152
156
|
"alg": {
|
|
153
|
-
"
|
|
154
|
-
|
|
157
|
+
"enum": [
|
|
158
|
+
"review.pack-digest/v1",
|
|
159
|
+
"agentproto-pack-digest/v1"
|
|
160
|
+
],
|
|
161
|
+
"description": "The digest recipe tag. A verifier that does not recognize it MUST refuse to compare. `agentproto-pack-digest/v1` is accepted as a legacy alias (AIP-70)."
|
|
155
162
|
},
|
|
156
163
|
"sha256": {
|
|
157
164
|
"$ref": "#/$defs/sha256"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://agentproto.sh/docs/aip-63/RECORDING.schema.json",
|
|
4
|
-
"title": "browser
|
|
4
|
+
"title": "browser.recording/v1",
|
|
5
5
|
"description": "Schemas for the files of a browser recording directory (AIP-63 section 6). manifest.json validates against $defs/manifest. Each line of frames.jsonl validates against $defs/frame and each line of actions.jsonl against $defs/action. The property sets are closed on purpose: there is no field in which a typed value of a masked input could be placed (R8, R9).",
|
|
6
6
|
"$ref": "#/$defs/manifest",
|
|
7
7
|
"$defs": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"retentionDays"
|
|
48
48
|
],
|
|
49
49
|
"properties": {
|
|
50
|
-
"schema": { "
|
|
50
|
+
"schema": { "enum": ["browser.recording/v1", "browser-recording/v1"], "description": "`browser-recording/v1` is accepted as a legacy alias (AIP-70)." },
|
|
51
51
|
"id": { "$ref": "#/$defs/recordingId" },
|
|
52
52
|
"sessionId": {
|
|
53
53
|
"type": "string",
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://agentproto.sh/schemas/aip-69/AuthProfile.schema.json",
|
|
4
|
+
"title": "AIP-69 AuthProfile, auth-profile/v1",
|
|
5
|
+
"description": "A named reference to the credential a session bills or authenticates through. Never contains credential material. Host-specific keys MUST be prefixed x-.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"id",
|
|
9
|
+
"endpoint",
|
|
10
|
+
"method"
|
|
11
|
+
],
|
|
12
|
+
"additionalProperties": false,
|
|
13
|
+
"patternProperties": {
|
|
14
|
+
"^x-": {}
|
|
15
|
+
},
|
|
16
|
+
"not": {
|
|
17
|
+
"required": [
|
|
18
|
+
"credentialRef",
|
|
19
|
+
"source"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"properties": {
|
|
23
|
+
"id": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"minLength": 1
|
|
26
|
+
},
|
|
27
|
+
"label": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"endpoint": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"minLength": 1,
|
|
33
|
+
"description": "The billing endpoint (who bills), not the model builder."
|
|
34
|
+
},
|
|
35
|
+
"routes": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"items": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"minLength": 1
|
|
40
|
+
},
|
|
41
|
+
"uniqueItems": true
|
|
42
|
+
},
|
|
43
|
+
"method": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"minLength": 1,
|
|
46
|
+
"description": "api-key | oauth-bearer | host-extensible."
|
|
47
|
+
},
|
|
48
|
+
"credentialRef": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"minLength": 1,
|
|
51
|
+
"description": "Opaque handle into the host credential store (an AIP-19 slug when available)."
|
|
52
|
+
},
|
|
53
|
+
"source": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"minLength": 1,
|
|
56
|
+
"description": "A credential source the host resolves at spawn and does not store."
|
|
57
|
+
},
|
|
58
|
+
"subaccount": {
|
|
59
|
+
"type": "object",
|
|
60
|
+
"required": [
|
|
61
|
+
"kind",
|
|
62
|
+
"id"
|
|
63
|
+
],
|
|
64
|
+
"additionalProperties": false,
|
|
65
|
+
"properties": {
|
|
66
|
+
"kind": {
|
|
67
|
+
"type": "string"
|
|
68
|
+
},
|
|
69
|
+
"id": {
|
|
70
|
+
"type": "string"
|
|
71
|
+
},
|
|
72
|
+
"name": {
|
|
73
|
+
"type": "string"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"subscription": {
|
|
78
|
+
"$ref": "#/$defs/Subscription"
|
|
79
|
+
},
|
|
80
|
+
"policy": {
|
|
81
|
+
"description": "AIP-38 PolicyRef: the profile as a resource."
|
|
82
|
+
},
|
|
83
|
+
"disabled": {
|
|
84
|
+
"type": "boolean",
|
|
85
|
+
"default": false
|
|
86
|
+
},
|
|
87
|
+
"origin": {
|
|
88
|
+
"type": "string"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"$defs": {
|
|
92
|
+
"Subscription": {
|
|
93
|
+
"type": "object",
|
|
94
|
+
"required": [
|
|
95
|
+
"monthlyUsd"
|
|
96
|
+
],
|
|
97
|
+
"additionalProperties": false,
|
|
98
|
+
"properties": {
|
|
99
|
+
"monthlyUsd": {
|
|
100
|
+
"type": "number",
|
|
101
|
+
"minimum": 0
|
|
102
|
+
},
|
|
103
|
+
"windows": {
|
|
104
|
+
"type": "array",
|
|
105
|
+
"items": {
|
|
106
|
+
"type": "object",
|
|
107
|
+
"required": [
|
|
108
|
+
"kind"
|
|
109
|
+
],
|
|
110
|
+
"additionalProperties": false,
|
|
111
|
+
"properties": {
|
|
112
|
+
"kind": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"minLength": 1,
|
|
115
|
+
"description": "Provider-defined window name (5h, weekly), not a duration."
|
|
116
|
+
},
|
|
117
|
+
"limit": {
|
|
118
|
+
"type": "number",
|
|
119
|
+
"minimum": 0
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|