@drisp/protocol 0.6.0 → 0.6.2
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/chunk-HMYWICNI.js +202 -0
- package/dist/domain-B-kg2pa_.d.ts +376 -0
- package/dist/index.d.ts +2 -377
- package/dist/index.js +153 -319
- package/dist/v2.d.ts +1283 -0
- package/dist/v2.js +613 -0
- package/package.json +56 -51
- package/schema/v2/checkpoint.json +566 -0
- package/schema/v2/client.json +479 -0
- package/schema/v2/command.json +388 -0
- package/schema/v2/connectAlreadyConnected.json +30 -0
- package/schema/v2/connectApproveRequest.json +26 -0
- package/schema/v2/connectCode.json +20 -0
- package/schema/v2/connectCodeRequest.json +13 -0
- package/schema/v2/connectDenyRequest.json +15 -0
- package/schema/v2/connectPending.json +33 -0
- package/schema/v2/connectPollRequest.json +15 -0
- package/schema/v2/connectRedeem.json +52 -0
- package/schema/v2/connectRedeemRequest.json +39 -0
- package/schema/v2/connectStart.json +37 -0
- package/schema/v2/connectStartRequest.json +33 -0
- package/schema/v2/grant.json +337 -0
- package/schema/v2/permissionAnswer.json +26 -0
- package/schema/v2/run.json +620 -0
- package/schema/v2/runner.json +1090 -0
- package/schema/v2/runnerAdoptRequest.json +13 -0
- package/schema/v2/runnerDisconnect.json +20 -0
- package/schema/v2/runnerDisconnectPreview.json +58 -0
- package/schema/v2/runnerDisconnectRequest.json +13 -0
- package/schema/v2/runnerList.json +459 -0
- package/schema/v2/runnerUpdateRequest.json +29 -0
- package/schema/v2/teamDefaultRequest.json +63 -0
|
@@ -0,0 +1,388 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"commandId": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"minLength": 1,
|
|
8
|
+
"maxLength": 160
|
|
9
|
+
},
|
|
10
|
+
"hubEpoch": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"minLength": 1,
|
|
13
|
+
"maxLength": 160
|
|
14
|
+
},
|
|
15
|
+
"runId": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"minLength": 1,
|
|
18
|
+
"maxLength": 160
|
|
19
|
+
},
|
|
20
|
+
"expectedRecordRevision": {
|
|
21
|
+
"type": "integer",
|
|
22
|
+
"minimum": 0,
|
|
23
|
+
"maximum": 9007199254740991
|
|
24
|
+
},
|
|
25
|
+
"intent": {
|
|
26
|
+
"oneOf": [
|
|
27
|
+
{
|
|
28
|
+
"type": "object",
|
|
29
|
+
"properties": {
|
|
30
|
+
"kind": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"const": "start"
|
|
33
|
+
},
|
|
34
|
+
"sessionId": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"minLength": 1,
|
|
37
|
+
"maxLength": 160
|
|
38
|
+
},
|
|
39
|
+
"runnerId": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"minLength": 1,
|
|
42
|
+
"maxLength": 160
|
|
43
|
+
},
|
|
44
|
+
"computeProfileId": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"minLength": 1,
|
|
47
|
+
"maxLength": 160
|
|
48
|
+
},
|
|
49
|
+
"scope": {
|
|
50
|
+
"oneOf": [
|
|
51
|
+
{
|
|
52
|
+
"type": "object",
|
|
53
|
+
"properties": {
|
|
54
|
+
"visibility": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"const": "organization"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"required": [
|
|
60
|
+
"visibility"
|
|
61
|
+
],
|
|
62
|
+
"additionalProperties": false
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"type": "object",
|
|
66
|
+
"properties": {
|
|
67
|
+
"visibility": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"const": "private"
|
|
70
|
+
},
|
|
71
|
+
"ownerUserId": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"minLength": 1,
|
|
74
|
+
"maxLength": 160
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"required": [
|
|
78
|
+
"visibility",
|
|
79
|
+
"ownerUserId"
|
|
80
|
+
],
|
|
81
|
+
"additionalProperties": false
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
"spec": {
|
|
86
|
+
"type": "object",
|
|
87
|
+
"properties": {
|
|
88
|
+
"prompt": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"minLength": 1,
|
|
91
|
+
"maxLength": 131072
|
|
92
|
+
},
|
|
93
|
+
"projectDir": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"minLength": 1,
|
|
96
|
+
"maxLength": 4096
|
|
97
|
+
},
|
|
98
|
+
"harness": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"enum": [
|
|
101
|
+
"claude-code",
|
|
102
|
+
"codex"
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
"workflow": {
|
|
106
|
+
"anyOf": [
|
|
107
|
+
{
|
|
108
|
+
"type": "string",
|
|
109
|
+
"maxLength": 512
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"type": "object",
|
|
113
|
+
"properties": {
|
|
114
|
+
"name": {
|
|
115
|
+
"type": "string",
|
|
116
|
+
"minLength": 1,
|
|
117
|
+
"maxLength": 128,
|
|
118
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$"
|
|
119
|
+
},
|
|
120
|
+
"source": {
|
|
121
|
+
"type": "string",
|
|
122
|
+
"maxLength": 201,
|
|
123
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]*\\/[A-Za-z0-9][A-Za-z0-9_.-]*$"
|
|
124
|
+
},
|
|
125
|
+
"ref": {
|
|
126
|
+
"type": "string",
|
|
127
|
+
"minLength": 1,
|
|
128
|
+
"maxLength": 512
|
|
129
|
+
},
|
|
130
|
+
"version": {
|
|
131
|
+
"type": "string",
|
|
132
|
+
"minLength": 1,
|
|
133
|
+
"maxLength": 128,
|
|
134
|
+
"pattern": "^\\d[A-Za-z0-9_.+-]*$"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"required": [
|
|
138
|
+
"name"
|
|
139
|
+
],
|
|
140
|
+
"additionalProperties": false
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
},
|
|
144
|
+
"repository": {
|
|
145
|
+
"type": "object",
|
|
146
|
+
"properties": {
|
|
147
|
+
"bindingId": {
|
|
148
|
+
"type": "string",
|
|
149
|
+
"minLength": 1,
|
|
150
|
+
"maxLength": 160
|
|
151
|
+
},
|
|
152
|
+
"repositoryId": {
|
|
153
|
+
"type": "integer",
|
|
154
|
+
"exclusiveMinimum": 0,
|
|
155
|
+
"maximum": 9007199254740991
|
|
156
|
+
},
|
|
157
|
+
"installationId": {
|
|
158
|
+
"type": "integer",
|
|
159
|
+
"exclusiveMinimum": 0,
|
|
160
|
+
"maximum": 9007199254740991
|
|
161
|
+
},
|
|
162
|
+
"owner": {
|
|
163
|
+
"type": "string",
|
|
164
|
+
"minLength": 1,
|
|
165
|
+
"maxLength": 100,
|
|
166
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]*$"
|
|
167
|
+
},
|
|
168
|
+
"name": {
|
|
169
|
+
"type": "string",
|
|
170
|
+
"minLength": 1,
|
|
171
|
+
"maxLength": 100,
|
|
172
|
+
"pattern": "^(?!\\.{1,2}$)[a-zA-Z0-9_.-]+$"
|
|
173
|
+
},
|
|
174
|
+
"ref": {
|
|
175
|
+
"type": "string",
|
|
176
|
+
"minLength": 1,
|
|
177
|
+
"maxLength": 512,
|
|
178
|
+
"pattern": "^(?![-/])(?!.*\\.\\.)(?!.*@\\{)(?!.*(?:^|\\/)\\.)(?!.*\\.lock(?:\\/|$))(?!.*\\/\\/)[^\\x00-\\x20\\x7f~^:?*\\[\\\\]+(?<![/.])$"
|
|
179
|
+
},
|
|
180
|
+
"commitSha": {
|
|
181
|
+
"type": "string",
|
|
182
|
+
"pattern": "^[0-9a-f]{40}$"
|
|
183
|
+
},
|
|
184
|
+
"branch": {
|
|
185
|
+
"type": "string",
|
|
186
|
+
"minLength": 1,
|
|
187
|
+
"maxLength": 512,
|
|
188
|
+
"pattern": "^(?![-/])(?!.*\\.\\.)(?!.*@\\{)(?!.*(?:^|\\/)\\.)(?!.*\\.lock(?:\\/|$))(?!.*\\/\\/)[^\\x00-\\x20\\x7f~^:?*\\[\\\\]+(?<![/.])$"
|
|
189
|
+
},
|
|
190
|
+
"workingDirectory": {
|
|
191
|
+
"type": "string",
|
|
192
|
+
"minLength": 1,
|
|
193
|
+
"maxLength": 1024,
|
|
194
|
+
"pattern": "^(?:\\.|(?!\\/)(?!.*(?:^|\\/)\\.\\.?(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))[^\\x00-\\x1f\\x7f\\\\:]+(?<!\\/))$"
|
|
195
|
+
},
|
|
196
|
+
"setupCommands": {
|
|
197
|
+
"maxItems": 16,
|
|
198
|
+
"type": "array",
|
|
199
|
+
"items": {
|
|
200
|
+
"type": "string",
|
|
201
|
+
"minLength": 1,
|
|
202
|
+
"maxLength": 8192
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
"configRevision": {
|
|
206
|
+
"type": "integer",
|
|
207
|
+
"minimum": 0,
|
|
208
|
+
"maximum": 9007199254740991
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"required": [
|
|
212
|
+
"bindingId",
|
|
213
|
+
"repositoryId",
|
|
214
|
+
"installationId",
|
|
215
|
+
"owner",
|
|
216
|
+
"name",
|
|
217
|
+
"ref",
|
|
218
|
+
"commitSha",
|
|
219
|
+
"branch",
|
|
220
|
+
"workingDirectory",
|
|
221
|
+
"setupCommands",
|
|
222
|
+
"configRevision"
|
|
223
|
+
],
|
|
224
|
+
"additionalProperties": false
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
"required": [
|
|
228
|
+
"prompt",
|
|
229
|
+
"projectDir",
|
|
230
|
+
"harness"
|
|
231
|
+
],
|
|
232
|
+
"additionalProperties": false
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
"required": [
|
|
236
|
+
"kind",
|
|
237
|
+
"sessionId",
|
|
238
|
+
"scope",
|
|
239
|
+
"spec"
|
|
240
|
+
],
|
|
241
|
+
"additionalProperties": false
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"type": "object",
|
|
245
|
+
"properties": {
|
|
246
|
+
"kind": {
|
|
247
|
+
"type": "string",
|
|
248
|
+
"const": "cancel"
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
"required": [
|
|
252
|
+
"kind"
|
|
253
|
+
],
|
|
254
|
+
"additionalProperties": false
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"type": "object",
|
|
258
|
+
"properties": {
|
|
259
|
+
"kind": {
|
|
260
|
+
"type": "string",
|
|
261
|
+
"const": "abandon"
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
"required": [
|
|
265
|
+
"kind"
|
|
266
|
+
],
|
|
267
|
+
"additionalProperties": false
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"type": "object",
|
|
271
|
+
"properties": {
|
|
272
|
+
"kind": {
|
|
273
|
+
"type": "string",
|
|
274
|
+
"const": "steer"
|
|
275
|
+
},
|
|
276
|
+
"text": {
|
|
277
|
+
"type": "string",
|
|
278
|
+
"minLength": 1,
|
|
279
|
+
"maxLength": 131072
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
"required": [
|
|
283
|
+
"kind",
|
|
284
|
+
"text"
|
|
285
|
+
],
|
|
286
|
+
"additionalProperties": false
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"type": "object",
|
|
290
|
+
"properties": {
|
|
291
|
+
"kind": {
|
|
292
|
+
"type": "string",
|
|
293
|
+
"const": "answer"
|
|
294
|
+
},
|
|
295
|
+
"interruptionId": {
|
|
296
|
+
"type": "string",
|
|
297
|
+
"minLength": 1,
|
|
298
|
+
"maxLength": 160
|
|
299
|
+
},
|
|
300
|
+
"expectedInterruptionRevision": {
|
|
301
|
+
"type": "integer",
|
|
302
|
+
"minimum": 0,
|
|
303
|
+
"maximum": 9007199254740991
|
|
304
|
+
},
|
|
305
|
+
"requestId": {
|
|
306
|
+
"type": "string",
|
|
307
|
+
"minLength": 1,
|
|
308
|
+
"maxLength": 160
|
|
309
|
+
},
|
|
310
|
+
"answer": {
|
|
311
|
+
"$ref": "#/$defs/__schema0"
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
"required": [
|
|
315
|
+
"kind",
|
|
316
|
+
"interruptionId",
|
|
317
|
+
"expectedInterruptionRevision",
|
|
318
|
+
"answer"
|
|
319
|
+
],
|
|
320
|
+
"additionalProperties": false
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"type": "object",
|
|
324
|
+
"properties": {
|
|
325
|
+
"kind": {
|
|
326
|
+
"type": "string",
|
|
327
|
+
"const": "resume"
|
|
328
|
+
},
|
|
329
|
+
"interruptionId": {
|
|
330
|
+
"type": "string",
|
|
331
|
+
"minLength": 1,
|
|
332
|
+
"maxLength": 160
|
|
333
|
+
},
|
|
334
|
+
"guidance": {
|
|
335
|
+
"type": "string",
|
|
336
|
+
"maxLength": 131072
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
"required": [
|
|
340
|
+
"kind",
|
|
341
|
+
"interruptionId"
|
|
342
|
+
],
|
|
343
|
+
"additionalProperties": false
|
|
344
|
+
}
|
|
345
|
+
]
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
"required": [
|
|
349
|
+
"commandId",
|
|
350
|
+
"hubEpoch",
|
|
351
|
+
"runId",
|
|
352
|
+
"intent"
|
|
353
|
+
],
|
|
354
|
+
"additionalProperties": false,
|
|
355
|
+
"$defs": {
|
|
356
|
+
"__schema0": {
|
|
357
|
+
"anyOf": [
|
|
358
|
+
{
|
|
359
|
+
"type": "string"
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"type": "number"
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"type": "boolean"
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"type": "null"
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"type": "array",
|
|
372
|
+
"items": {
|
|
373
|
+
"$ref": "#/$defs/__schema0"
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"type": "object",
|
|
378
|
+
"propertyNames": {
|
|
379
|
+
"type": "string"
|
|
380
|
+
},
|
|
381
|
+
"additionalProperties": {
|
|
382
|
+
"$ref": "#/$defs/__schema0"
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
]
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"error": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"const": "runner_already_connected"
|
|
8
|
+
},
|
|
9
|
+
"orgId": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"minLength": 1,
|
|
12
|
+
"maxLength": 160
|
|
13
|
+
},
|
|
14
|
+
"runnerId": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"minLength": 1,
|
|
17
|
+
"maxLength": 160
|
|
18
|
+
},
|
|
19
|
+
"name": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"required": [
|
|
24
|
+
"error",
|
|
25
|
+
"orgId",
|
|
26
|
+
"runnerId",
|
|
27
|
+
"name"
|
|
28
|
+
],
|
|
29
|
+
"additionalProperties": false
|
|
30
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"code": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"minLength": 8,
|
|
8
|
+
"maxLength": 16
|
|
9
|
+
},
|
|
10
|
+
"audience": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"enum": [
|
|
13
|
+
"personal",
|
|
14
|
+
"team"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"hubEpoch": {
|
|
18
|
+
"type": "string"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"required": [
|
|
22
|
+
"code",
|
|
23
|
+
"audience"
|
|
24
|
+
],
|
|
25
|
+
"additionalProperties": false
|
|
26
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"code": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"pattern": "^[A-HJKMNP-Z2-9]{8}$"
|
|
8
|
+
},
|
|
9
|
+
"expiresAt": {
|
|
10
|
+
"type": "integer",
|
|
11
|
+
"minimum": 0,
|
|
12
|
+
"maximum": 9007199254740991
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"required": [
|
|
16
|
+
"code",
|
|
17
|
+
"expiresAt"
|
|
18
|
+
],
|
|
19
|
+
"additionalProperties": false
|
|
20
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"hostname": {
|
|
6
|
+
"type": "string"
|
|
7
|
+
},
|
|
8
|
+
"os": {
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"softwareVersion": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"requestedAt": {
|
|
15
|
+
"type": "integer",
|
|
16
|
+
"minimum": 0,
|
|
17
|
+
"maximum": 9007199254740991
|
|
18
|
+
},
|
|
19
|
+
"expiresAt": {
|
|
20
|
+
"type": "integer",
|
|
21
|
+
"minimum": 0,
|
|
22
|
+
"maximum": 9007199254740991
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"required": [
|
|
26
|
+
"hostname",
|
|
27
|
+
"os",
|
|
28
|
+
"softwareVersion",
|
|
29
|
+
"requestedAt",
|
|
30
|
+
"expiresAt"
|
|
31
|
+
],
|
|
32
|
+
"additionalProperties": false
|
|
33
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"deviceCode": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"minLength": 32,
|
|
8
|
+
"maxLength": 160
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"required": [
|
|
12
|
+
"deviceCode"
|
|
13
|
+
],
|
|
14
|
+
"additionalProperties": false
|
|
15
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"orgId": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"minLength": 1,
|
|
8
|
+
"maxLength": 160
|
|
9
|
+
},
|
|
10
|
+
"hubEpoch": {
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"runnerId": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"minLength": 1,
|
|
16
|
+
"maxLength": 160
|
|
17
|
+
},
|
|
18
|
+
"installationId": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"minLength": 1,
|
|
21
|
+
"maxLength": 160
|
|
22
|
+
},
|
|
23
|
+
"name": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
"token": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"minLength": 32
|
|
29
|
+
},
|
|
30
|
+
"credentialId": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"minLength": 1,
|
|
33
|
+
"maxLength": 160
|
|
34
|
+
},
|
|
35
|
+
"expiresAt": {
|
|
36
|
+
"type": "integer",
|
|
37
|
+
"minimum": 0,
|
|
38
|
+
"maximum": 9007199254740991
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"required": [
|
|
42
|
+
"orgId",
|
|
43
|
+
"hubEpoch",
|
|
44
|
+
"runnerId",
|
|
45
|
+
"installationId",
|
|
46
|
+
"name",
|
|
47
|
+
"token",
|
|
48
|
+
"credentialId",
|
|
49
|
+
"expiresAt"
|
|
50
|
+
],
|
|
51
|
+
"additionalProperties": false
|
|
52
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"code": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"minLength": 8,
|
|
8
|
+
"maxLength": 16
|
|
9
|
+
},
|
|
10
|
+
"installationId": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"minLength": 1,
|
|
13
|
+
"maxLength": 160
|
|
14
|
+
},
|
|
15
|
+
"hostname": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"minLength": 1,
|
|
18
|
+
"maxLength": 255
|
|
19
|
+
},
|
|
20
|
+
"os": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"minLength": 1,
|
|
23
|
+
"maxLength": 64
|
|
24
|
+
},
|
|
25
|
+
"softwareVersion": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"minLength": 1,
|
|
28
|
+
"maxLength": 128
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"required": [
|
|
32
|
+
"code",
|
|
33
|
+
"installationId",
|
|
34
|
+
"hostname",
|
|
35
|
+
"os",
|
|
36
|
+
"softwareVersion"
|
|
37
|
+
],
|
|
38
|
+
"additionalProperties": false
|
|
39
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"deviceCode": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"minLength": 32,
|
|
8
|
+
"maxLength": 160
|
|
9
|
+
},
|
|
10
|
+
"code": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"pattern": "^[A-HJKMNP-Z2-9]{8}$"
|
|
13
|
+
},
|
|
14
|
+
"expiresAt": {
|
|
15
|
+
"type": "integer",
|
|
16
|
+
"minimum": 0,
|
|
17
|
+
"maximum": 9007199254740991
|
|
18
|
+
},
|
|
19
|
+
"intervalSec": {
|
|
20
|
+
"type": "integer",
|
|
21
|
+
"exclusiveMinimum": 0,
|
|
22
|
+
"maximum": 9007199254740991
|
|
23
|
+
},
|
|
24
|
+
"verificationUrl": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"format": "uri"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"required": [
|
|
30
|
+
"deviceCode",
|
|
31
|
+
"code",
|
|
32
|
+
"expiresAt",
|
|
33
|
+
"intervalSec",
|
|
34
|
+
"verificationUrl"
|
|
35
|
+
],
|
|
36
|
+
"additionalProperties": false
|
|
37
|
+
}
|