@nosana/types 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.
Files changed (101) hide show
  1. package/README.md +45 -0
  2. package/dist/Accounts/index.d.ts +3 -0
  3. package/dist/Accounts/index.js +4 -0
  4. package/dist/Accounts/index.js.map +1 -0
  5. package/dist/Accounts/job.d.ts +17 -0
  6. package/dist/Accounts/job.js +2 -0
  7. package/dist/Accounts/job.js.map +1 -0
  8. package/dist/Accounts/market.d.ts +24 -0
  9. package/dist/Accounts/market.js +6 -0
  10. package/dist/Accounts/market.js.map +1 -0
  11. package/dist/Accounts/run.d.ts +14 -0
  12. package/dist/Accounts/run.js +2 -0
  13. package/dist/Accounts/run.js.map +1 -0
  14. package/dist/Deployments/index.d.ts +15 -0
  15. package/dist/Deployments/index.js +17 -0
  16. package/dist/Deployments/index.js.map +1 -0
  17. package/dist/Jobs/Flows/index.d.ts +43 -0
  18. package/dist/Jobs/Flows/index.js +2 -0
  19. package/dist/Jobs/Flows/index.js.map +1 -0
  20. package/dist/Jobs/JobDefinition/args/aliases.d.ts +2 -0
  21. package/dist/Jobs/JobDefinition/args/aliases.js +2 -0
  22. package/dist/Jobs/JobDefinition/args/aliases.js.map +1 -0
  23. package/dist/Jobs/JobDefinition/args/authentication.d.ts +9 -0
  24. package/dist/Jobs/JobDefinition/args/authentication.js +2 -0
  25. package/dist/Jobs/JobDefinition/args/authentication.js.map +1 -0
  26. package/dist/Jobs/JobDefinition/args/cmd.d.ts +3 -0
  27. package/dist/Jobs/JobDefinition/args/cmd.js +2 -0
  28. package/dist/Jobs/JobDefinition/args/cmd.js.map +1 -0
  29. package/dist/Jobs/JobDefinition/args/env.d.ts +1 -0
  30. package/dist/Jobs/JobDefinition/args/env.js +2 -0
  31. package/dist/Jobs/JobDefinition/args/env.js.map +1 -0
  32. package/dist/Jobs/JobDefinition/args/expose.d.ts +44 -0
  33. package/dist/Jobs/JobDefinition/args/expose.js +2 -0
  34. package/dist/Jobs/JobDefinition/args/expose.js.map +1 -0
  35. package/dist/Jobs/JobDefinition/args/gpu.d.ts +1 -0
  36. package/dist/Jobs/JobDefinition/args/gpu.js +2 -0
  37. package/dist/Jobs/JobDefinition/args/gpu.js.map +1 -0
  38. package/dist/Jobs/JobDefinition/args/image.d.ts +1 -0
  39. package/dist/Jobs/JobDefinition/args/image.js +2 -0
  40. package/dist/Jobs/JobDefinition/args/image.js.map +1 -0
  41. package/dist/Jobs/JobDefinition/args/index.d.ts +38 -0
  42. package/dist/Jobs/JobDefinition/args/index.js +13 -0
  43. package/dist/Jobs/JobDefinition/args/index.js.map +1 -0
  44. package/dist/Jobs/JobDefinition/args/literals.d.ts +28 -0
  45. package/dist/Jobs/JobDefinition/args/literals.js +2 -0
  46. package/dist/Jobs/JobDefinition/args/literals.js.map +1 -0
  47. package/dist/Jobs/JobDefinition/args/resources.d.ts +70 -0
  48. package/dist/Jobs/JobDefinition/args/resources.js +6 -0
  49. package/dist/Jobs/JobDefinition/args/resources.js.map +1 -0
  50. package/dist/Jobs/JobDefinition/args/variables.d.ts +1 -0
  51. package/dist/Jobs/JobDefinition/args/variables.js +2 -0
  52. package/dist/Jobs/JobDefinition/args/variables.js.map +1 -0
  53. package/dist/Jobs/JobDefinition/args/volumes.d.ts +4 -0
  54. package/dist/Jobs/JobDefinition/args/volumes.js +2 -0
  55. package/dist/Jobs/JobDefinition/args/volumes.js.map +1 -0
  56. package/dist/Jobs/JobDefinition/args/work_dir.d.ts +1 -0
  57. package/dist/Jobs/JobDefinition/args/work_dir.js +2 -0
  58. package/dist/Jobs/JobDefinition/args/work_dir.js.map +1 -0
  59. package/dist/Jobs/JobDefinition/execution/index.d.ts +11 -0
  60. package/dist/Jobs/JobDefinition/execution/index.js +2 -0
  61. package/dist/Jobs/JobDefinition/execution/index.js.map +1 -0
  62. package/dist/Jobs/JobDefinition/global/index.d.ts +9 -0
  63. package/dist/Jobs/JobDefinition/global/index.js +2 -0
  64. package/dist/Jobs/JobDefinition/global/index.js.map +1 -0
  65. package/dist/Jobs/JobDefinition/index.d.ts +23 -0
  66. package/dist/Jobs/JobDefinition/index.js +8 -0
  67. package/dist/Jobs/JobDefinition/index.js.map +1 -0
  68. package/dist/Jobs/JobDefinition/logistics/index.d.ts +17 -0
  69. package/dist/Jobs/JobDefinition/logistics/index.js +9 -0
  70. package/dist/Jobs/JobDefinition/logistics/index.js.map +1 -0
  71. package/dist/Jobs/JobDefinition/meta/index.d.ts +4 -0
  72. package/dist/Jobs/JobDefinition/meta/index.js +2 -0
  73. package/dist/Jobs/JobDefinition/meta/index.js.map +1 -0
  74. package/dist/Jobs/JobDefinition/operations/index.d.ts +16 -0
  75. package/dist/Jobs/JobDefinition/operations/index.js +2 -0
  76. package/dist/Jobs/JobDefinition/operations/index.js.map +1 -0
  77. package/dist/Jobs/JobDefinition/results/index.d.ts +6 -0
  78. package/dist/Jobs/JobDefinition/results/index.js +2 -0
  79. package/dist/Jobs/JobDefinition/results/index.js.map +1 -0
  80. package/dist/Jobs/Logs/index.d.ts +32 -0
  81. package/dist/Jobs/Logs/index.js +7 -0
  82. package/dist/Jobs/Logs/index.js.map +1 -0
  83. package/dist/Jobs/index.d.ts +26 -0
  84. package/dist/Jobs/index.js +1361 -0
  85. package/dist/Jobs/index.js.map +1 -0
  86. package/dist/Schemas/api.d.ts +3551 -0
  87. package/dist/Schemas/api.js +2 -0
  88. package/dist/Schemas/api.js.map +1 -0
  89. package/dist/Schemas/index.d.ts +2 -0
  90. package/dist/Schemas/index.js +3 -0
  91. package/dist/Schemas/index.js.map +1 -0
  92. package/dist/Schemas/job.d.ts +3 -0
  93. package/dist/Schemas/job.js +889 -0
  94. package/dist/Schemas/job.js.map +1 -0
  95. package/dist/index.d.ts +8 -0
  96. package/dist/index.js +5 -0
  97. package/dist/index.js.map +1 -0
  98. package/dist/utils.d.ts +7 -0
  99. package/dist/utils.js +2 -0
  100. package/dist/utils.js.map +1 -0
  101. package/package.json +46 -0
@@ -0,0 +1,889 @@
1
+ import typia from "typia";
2
+ export const jobSchemas = {
3
+ version: "3.0",
4
+ components: {
5
+ schemas: {
6
+ JobDefinition: {
7
+ type: "object",
8
+ properties: {
9
+ version: {
10
+ type: "string",
11
+ "enum": [
12
+ "0.1"
13
+ ]
14
+ },
15
+ type: {
16
+ type: "string",
17
+ "enum": [
18
+ "container"
19
+ ]
20
+ },
21
+ logistics: {
22
+ $ref: "#/components/schemas/Logistics"
23
+ },
24
+ deployment_id: {
25
+ type: "string"
26
+ },
27
+ meta: {
28
+ $ref: "#/components/schemas/Meta"
29
+ },
30
+ global: {
31
+ $ref: "#/components/schemas/Global"
32
+ },
33
+ ops: {
34
+ $ref: "#/components/schemas/Ops"
35
+ }
36
+ },
37
+ required: [
38
+ "version",
39
+ "type",
40
+ "ops"
41
+ ]
42
+ },
43
+ Logistics: {
44
+ type: "object",
45
+ properties: {
46
+ type: {
47
+ $ref: "#/components/schemas/LogisticsType"
48
+ },
49
+ args: {
50
+ $ref: "#/components/schemas/Partial__type"
51
+ }
52
+ },
53
+ required: [
54
+ "type",
55
+ "args"
56
+ ]
57
+ },
58
+ LogisticsType: {
59
+ type: "string",
60
+ "enum": [
61
+ "api",
62
+ "api-listen"
63
+ ],
64
+ description: "api - we receive and send via an endpoint endpoint\napi-listen - we create an endpoint to listen for incoming requests"
65
+ },
66
+ Partial__type: {
67
+ type: "object",
68
+ properties: {
69
+ endpoint: {
70
+ type: "string"
71
+ }
72
+ },
73
+ required: [],
74
+ description: "Make all properties in T optional"
75
+ },
76
+ Meta: {
77
+ type: "object",
78
+ properties: {
79
+ trigger: {
80
+ type: "string"
81
+ },
82
+ system_resources: {
83
+ $ref: "#/components/schemas/Recordstringstringnumber"
84
+ }
85
+ },
86
+ required: [],
87
+ additionalProperties: {
88
+ oneOf: [
89
+ {
90
+ type: "string"
91
+ },
92
+ {
93
+ type: "number"
94
+ }
95
+ ]
96
+ }
97
+ },
98
+ Recordstringstringnumber: {
99
+ type: "object",
100
+ properties: {},
101
+ required: [],
102
+ description: "Construct a type with a set of properties K of type T",
103
+ additionalProperties: {
104
+ oneOf: [
105
+ {
106
+ type: "string"
107
+ },
108
+ {
109
+ type: "number"
110
+ }
111
+ ]
112
+ }
113
+ },
114
+ Global: {
115
+ type: "object",
116
+ properties: {
117
+ image: {
118
+ type: "string"
119
+ },
120
+ gpu: {
121
+ type: "boolean"
122
+ },
123
+ entrypoint: {
124
+ oneOf: [
125
+ {
126
+ type: "string"
127
+ },
128
+ {
129
+ $ref: "#/components/schemas/CMDArray"
130
+ }
131
+ ]
132
+ },
133
+ env: {
134
+ $ref: "#/components/schemas/Env"
135
+ },
136
+ work_dir: {
137
+ type: "string"
138
+ },
139
+ variables: {
140
+ $ref: "#/components/schemas/Variables"
141
+ }
142
+ },
143
+ required: []
144
+ },
145
+ CMDArray: {
146
+ type: "array",
147
+ items: {
148
+ type: "string"
149
+ }
150
+ },
151
+ Env: {
152
+ type: "object",
153
+ properties: {},
154
+ required: [],
155
+ additionalProperties: {
156
+ type: "string"
157
+ }
158
+ },
159
+ Variables: {
160
+ type: "object",
161
+ properties: {},
162
+ required: [],
163
+ additionalProperties: {
164
+ type: "string"
165
+ }
166
+ },
167
+ Ops: {
168
+ type: "array",
169
+ items: {
170
+ $ref: "#/components/schemas/OperationkeyofOperationArgsMap"
171
+ }
172
+ },
173
+ OperationkeyofOperationArgsMap: {
174
+ type: "object",
175
+ properties: {
176
+ type: {
177
+ type: "string",
178
+ "enum": [
179
+ "container/run",
180
+ "container/create-volume"
181
+ ]
182
+ },
183
+ id: {
184
+ type: "string"
185
+ },
186
+ args: {
187
+ oneOf: [
188
+ {
189
+ $ref: "#/components/schemas/ContainerRun"
190
+ },
191
+ {
192
+ $ref: "#/components/schemas/ContainerCreateVolume"
193
+ }
194
+ ]
195
+ },
196
+ results: {
197
+ $ref: "#/components/schemas/OperationResults"
198
+ },
199
+ execution: {
200
+ oneOf: [
201
+ {
202
+ $ref: "#/components/schemas/groupstringundefineddepends_onstringstop_if_dependent_stopsbooleanundefined"
203
+ },
204
+ {
205
+ $ref: "#/components/schemas/groupstringundefineddepends_onundefinedstop_if_dependent_stopsundefined"
206
+ }
207
+ ]
208
+ }
209
+ },
210
+ required: [
211
+ "type",
212
+ "id",
213
+ "args"
214
+ ]
215
+ },
216
+ ContainerRun: {
217
+ type: "object",
218
+ properties: {
219
+ image: {
220
+ type: "string"
221
+ },
222
+ aliases: {
223
+ oneOf: [
224
+ {
225
+ type: "string"
226
+ },
227
+ {
228
+ $ref: "#/components/schemas/Aliases"
229
+ }
230
+ ]
231
+ },
232
+ cmd: {
233
+ oneOf: [
234
+ {
235
+ type: "string"
236
+ },
237
+ {
238
+ $ref: "#/components/schemas/CMDArray"
239
+ }
240
+ ]
241
+ },
242
+ volumes: {
243
+ type: "array",
244
+ items: {
245
+ $ref: "#/components/schemas/Volume"
246
+ }
247
+ },
248
+ expose: {
249
+ oneOf: [
250
+ {
251
+ type: "number"
252
+ },
253
+ {
254
+ $ref: "#/components/schemas/LiteralString"
255
+ },
256
+ {
257
+ type: "object",
258
+ properties: {
259
+ __spread__: {
260
+ $ref: "#/components/schemas/LiteralString"
261
+ }
262
+ },
263
+ required: [
264
+ "__spread__"
265
+ ]
266
+ },
267
+ {
268
+ $ref: "#/components/schemas/UniqueExposedPorts"
269
+ }
270
+ ]
271
+ },
272
+ gpu: {
273
+ type: "boolean"
274
+ },
275
+ work_dir: {
276
+ type: "string"
277
+ },
278
+ entrypoint: {
279
+ oneOf: [
280
+ {
281
+ type: "string"
282
+ },
283
+ {
284
+ $ref: "#/components/schemas/CMDArray"
285
+ }
286
+ ]
287
+ },
288
+ env: {
289
+ $ref: "#/components/schemas/Env"
290
+ },
291
+ resources: {
292
+ $ref: "#/components/schemas/Resources"
293
+ },
294
+ authentication: {
295
+ $ref: "#/components/schemas/Authentication"
296
+ }
297
+ },
298
+ required: [
299
+ "image"
300
+ ]
301
+ },
302
+ Aliases: {
303
+ type: "array",
304
+ items: {
305
+ type: "string"
306
+ }
307
+ },
308
+ Volume: {
309
+ type: "object",
310
+ properties: {
311
+ name: {
312
+ type: "string"
313
+ },
314
+ dest: {
315
+ type: "string"
316
+ }
317
+ },
318
+ required: [
319
+ "name",
320
+ "dest"
321
+ ]
322
+ },
323
+ LiteralString: {
324
+ type: "string"
325
+ },
326
+ UniqueExposedPorts: {
327
+ type: "array",
328
+ items: {
329
+ $ref: "#/components/schemas/ExposeBase"
330
+ }
331
+ },
332
+ ExposeBase: {
333
+ oneOf: [
334
+ {
335
+ type: "number"
336
+ },
337
+ {
338
+ $ref: "#/components/schemas/LiteralString"
339
+ },
340
+ {
341
+ type: "object",
342
+ properties: {
343
+ __spread__: {
344
+ $ref: "#/components/schemas/LiteralString"
345
+ }
346
+ },
347
+ required: [
348
+ "__spread__"
349
+ ]
350
+ }
351
+ ]
352
+ },
353
+ Resources: {
354
+ type: "array",
355
+ items: {
356
+ oneOf: [
357
+ {
358
+ type: "object",
359
+ properties: {
360
+ __spread__: {
361
+ $ref: "#/components/schemas/LiteralString"
362
+ }
363
+ },
364
+ required: [
365
+ "__spread__"
366
+ ]
367
+ },
368
+ {
369
+ $ref: "#/components/schemas/S3Base"
370
+ },
371
+ {
372
+ $ref: "#/components/schemas/S3WithBucket"
373
+ },
374
+ {
375
+ $ref: "#/components/schemas/S3WithBuckets"
376
+ },
377
+ {
378
+ $ref: "#/components/schemas/HFResource"
379
+ },
380
+ {
381
+ $ref: "#/components/schemas/OllamaResource"
382
+ },
383
+ {
384
+ type: "string",
385
+ "enum": [
386
+ "__remove-if-empty__"
387
+ ]
388
+ }
389
+ ]
390
+ }
391
+ },
392
+ S3Base: {
393
+ type: "object",
394
+ properties: {
395
+ type: {
396
+ type: "string",
397
+ "enum": [
398
+ "S3"
399
+ ]
400
+ },
401
+ target: {
402
+ type: "string"
403
+ },
404
+ url: {
405
+ type: "string"
406
+ },
407
+ allowWrite: {
408
+ type: "boolean"
409
+ },
410
+ files: {
411
+ type: "array",
412
+ items: {
413
+ type: "string"
414
+ }
415
+ },
416
+ IAM: {
417
+ $ref: "#/components/schemas/S3Auth"
418
+ }
419
+ },
420
+ required: [
421
+ "type",
422
+ "target"
423
+ ]
424
+ },
425
+ S3Auth: {
426
+ type: "object",
427
+ properties: {
428
+ REGION: {
429
+ type: "string"
430
+ },
431
+ ACCESS_KEY_ID: {
432
+ type: "string"
433
+ },
434
+ SECRET_ACCESS_KEY: {
435
+ type: "string"
436
+ }
437
+ },
438
+ required: [
439
+ "REGION",
440
+ "ACCESS_KEY_ID",
441
+ "SECRET_ACCESS_KEY"
442
+ ]
443
+ },
444
+ S3WithBucket: {
445
+ type: "object",
446
+ properties: {
447
+ type: {
448
+ type: "string",
449
+ "enum": [
450
+ "S3"
451
+ ]
452
+ },
453
+ target: {
454
+ type: "string"
455
+ },
456
+ bucket: {
457
+ type: "string"
458
+ },
459
+ url: {
460
+ type: "string"
461
+ },
462
+ allowWrite: {
463
+ type: "boolean"
464
+ },
465
+ IAM: {
466
+ $ref: "#/components/schemas/S3Auth"
467
+ }
468
+ },
469
+ required: [
470
+ "type",
471
+ "target",
472
+ "bucket"
473
+ ]
474
+ },
475
+ S3WithBuckets: {
476
+ type: "object",
477
+ properties: {
478
+ type: {
479
+ type: "string",
480
+ "enum": [
481
+ "S3"
482
+ ]
483
+ },
484
+ target: {
485
+ type: "string"
486
+ },
487
+ buckets: {
488
+ type: "array",
489
+ items: {
490
+ type: "object",
491
+ properties: {
492
+ url: {
493
+ type: "string"
494
+ },
495
+ files: {
496
+ type: "array",
497
+ items: {
498
+ type: "string"
499
+ }
500
+ }
501
+ },
502
+ required: [
503
+ "url"
504
+ ]
505
+ }
506
+ },
507
+ url: {
508
+ type: "string"
509
+ },
510
+ allowWrite: {
511
+ type: "boolean"
512
+ },
513
+ IAM: {
514
+ $ref: "#/components/schemas/S3Auth"
515
+ }
516
+ },
517
+ required: [
518
+ "type",
519
+ "target",
520
+ "buckets"
521
+ ]
522
+ },
523
+ HFResource: {
524
+ type: "object",
525
+ properties: {
526
+ type: {
527
+ type: "string",
528
+ "enum": [
529
+ "HF"
530
+ ]
531
+ },
532
+ target: {
533
+ type: "string"
534
+ },
535
+ repo: {
536
+ type: "string"
537
+ },
538
+ revision: {
539
+ type: "string"
540
+ },
541
+ files: {
542
+ type: "array",
543
+ items: {
544
+ type: "string"
545
+ }
546
+ },
547
+ accessToken: {
548
+ type: "string"
549
+ }
550
+ },
551
+ required: [
552
+ "type",
553
+ "target",
554
+ "repo"
555
+ ]
556
+ },
557
+ OllamaResource: {
558
+ type: "object",
559
+ properties: {
560
+ type: {
561
+ type: "string",
562
+ "enum": [
563
+ "Ollama"
564
+ ]
565
+ },
566
+ model: {
567
+ type: "string"
568
+ },
569
+ target: {
570
+ type: "string"
571
+ }
572
+ },
573
+ required: [
574
+ "type",
575
+ "model"
576
+ ]
577
+ },
578
+ Authentication: {
579
+ type: "object",
580
+ properties: {
581
+ docker: {
582
+ $ref: "#/components/schemas/DockerAuth"
583
+ }
584
+ },
585
+ required: []
586
+ },
587
+ DockerAuth: {
588
+ type: "object",
589
+ properties: {
590
+ username: {
591
+ type: "string"
592
+ },
593
+ password: {
594
+ type: "string"
595
+ },
596
+ email: {
597
+ type: "string"
598
+ },
599
+ server: {
600
+ type: "string"
601
+ }
602
+ },
603
+ required: []
604
+ },
605
+ ContainerCreateVolume: {
606
+ type: "object",
607
+ properties: {
608
+ name: {
609
+ type: "string"
610
+ }
611
+ },
612
+ required: [
613
+ "name"
614
+ ]
615
+ },
616
+ OperationResults: {
617
+ type: "object",
618
+ properties: {},
619
+ required: [],
620
+ additionalProperties: {
621
+ oneOf: [
622
+ {
623
+ type: "string"
624
+ },
625
+ {
626
+ $ref: "#/components/schemas/OperationResult"
627
+ }
628
+ ]
629
+ }
630
+ },
631
+ OperationResult: {
632
+ type: "object",
633
+ properties: {
634
+ regex: {
635
+ type: "string"
636
+ },
637
+ logType: {
638
+ $ref: "#/components/schemas/LogTypeTuple"
639
+ }
640
+ },
641
+ required: [
642
+ "regex",
643
+ "logType"
644
+ ]
645
+ },
646
+ LogTypeTuple: {
647
+ type: "array",
648
+ items: {
649
+ $ref: "#/components/schemas/StdOption"
650
+ }
651
+ },
652
+ StdOption: {
653
+ type: "string",
654
+ "enum": [
655
+ "stdin",
656
+ "stdout",
657
+ "stderr",
658
+ "nodeerr"
659
+ ]
660
+ },
661
+ groupstringundefineddepends_onstringstop_if_dependent_stopsbooleanundefined: {
662
+ type: "object",
663
+ properties: {
664
+ group: {
665
+ type: "string"
666
+ },
667
+ depends_on: {
668
+ type: "array",
669
+ items: {
670
+ type: "string"
671
+ }
672
+ },
673
+ stop_if_dependent_stops: {
674
+ type: "boolean"
675
+ }
676
+ },
677
+ required: [
678
+ "depends_on"
679
+ ]
680
+ },
681
+ groupstringundefineddepends_onundefinedstop_if_dependent_stopsundefined: {
682
+ type: "object",
683
+ properties: {
684
+ group: {
685
+ type: "string"
686
+ }
687
+ },
688
+ required: []
689
+ },
690
+ FlowState: {
691
+ type: "object",
692
+ properties: {
693
+ status: {
694
+ type: "string"
695
+ },
696
+ startTime: {
697
+ type: "number"
698
+ },
699
+ endTime: {
700
+ type: "number",
701
+ nullable: true
702
+ },
703
+ errors: {
704
+ type: "array",
705
+ items: {}
706
+ },
707
+ opStates: {
708
+ type: "array",
709
+ items: {
710
+ $ref: "#/components/schemas/OpState"
711
+ }
712
+ },
713
+ secrets: {
714
+ $ref: "#/components/schemas/FlowSecrets"
715
+ }
716
+ },
717
+ required: [
718
+ "status",
719
+ "startTime",
720
+ "endTime",
721
+ "opStates"
722
+ ]
723
+ },
724
+ OpState: {
725
+ type: "object",
726
+ properties: {
727
+ providerId: {
728
+ type: "string",
729
+ nullable: true
730
+ },
731
+ operationId: {
732
+ type: "string",
733
+ nullable: true
734
+ },
735
+ group: {
736
+ type: "string",
737
+ nullable: true
738
+ },
739
+ status: {
740
+ type: "string",
741
+ nullable: true
742
+ },
743
+ startTime: {
744
+ type: "number",
745
+ nullable: true
746
+ },
747
+ endTime: {
748
+ type: "number",
749
+ nullable: true
750
+ },
751
+ exitCode: {
752
+ type: "number",
753
+ nullable: true
754
+ },
755
+ logs: {
756
+ type: "array",
757
+ items: {
758
+ $ref: "#/components/schemas/Log"
759
+ }
760
+ },
761
+ results: {
762
+ type: "object",
763
+ properties: {},
764
+ required: [],
765
+ additionalProperties: {
766
+ oneOf: [
767
+ {
768
+ type: "string"
769
+ },
770
+ {
771
+ type: "array",
772
+ items: {
773
+ type: "string"
774
+ }
775
+ }
776
+ ]
777
+ }
778
+ }
779
+ },
780
+ required: [
781
+ "providerId",
782
+ "operationId",
783
+ "group",
784
+ "status",
785
+ "startTime",
786
+ "endTime",
787
+ "exitCode",
788
+ "logs"
789
+ ]
790
+ },
791
+ Log: {
792
+ type: "object",
793
+ properties: {
794
+ type: {
795
+ $ref: "#/components/schemas/StdOption"
796
+ },
797
+ log: {
798
+ type: "string"
799
+ }
800
+ },
801
+ required: [
802
+ "type"
803
+ ]
804
+ },
805
+ FlowSecrets: {
806
+ type: "object",
807
+ properties: {
808
+ urlmode: {
809
+ type: "string",
810
+ "enum": [
811
+ "private",
812
+ "public"
813
+ ]
814
+ }
815
+ },
816
+ required: [],
817
+ additionalProperties: {
818
+ oneOf: [
819
+ {
820
+ $ref: "#/components/schemas/JobExposeSecrets"
821
+ },
822
+ {
823
+ type: "string",
824
+ "enum": [
825
+ "private",
826
+ "public"
827
+ ]
828
+ }
829
+ ]
830
+ }
831
+ },
832
+ JobExposeSecrets: {
833
+ type: "object",
834
+ properties: {},
835
+ required: [],
836
+ additionalProperties: {
837
+ $ref: "#/components/schemas/EndpointSecret"
838
+ }
839
+ },
840
+ EndpointSecret: {
841
+ type: "object",
842
+ properties: {
843
+ opID: {
844
+ type: "string"
845
+ },
846
+ port: {
847
+ oneOf: [
848
+ {
849
+ type: "string"
850
+ },
851
+ {
852
+ type: "number"
853
+ }
854
+ ]
855
+ },
856
+ url: {
857
+ type: "string"
858
+ },
859
+ status: {
860
+ $ref: "#/components/schemas/EndpointStatus"
861
+ }
862
+ },
863
+ required: [
864
+ "opID",
865
+ "port",
866
+ "url",
867
+ "status"
868
+ ]
869
+ },
870
+ EndpointStatus: {
871
+ type: "string",
872
+ "enum": [
873
+ "ONLINE",
874
+ "OFFLINE",
875
+ "UNKNOWN"
876
+ ]
877
+ }
878
+ }
879
+ },
880
+ schemas: [
881
+ {
882
+ $ref: "#/components/schemas/JobDefinition"
883
+ },
884
+ {
885
+ $ref: "#/components/schemas/FlowState"
886
+ }
887
+ ]
888
+ };
889
+ //# sourceMappingURL=job.js.map