1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | // tslint:disable
|
4 | exports.schema = {
|
5 | "$schema": "http://json-schema.org/draft-07/schema#",
|
6 | "definitions": {
|
7 | "FunctionRunnerSize": {
|
8 | "enum": [
|
9 | "m128MiB",
|
10 | "m1GiB",
|
11 | "m256MiB",
|
12 | "m2GiB",
|
13 | "m512MiB"
|
14 | ],
|
15 | "type": "string"
|
16 | },
|
17 | "Session": {
|
18 | "type": "object",
|
19 | "properties": {
|
20 | "accountId": {
|
21 | "minLength": 1,
|
22 | "type": "string"
|
23 | },
|
24 | "principal": {
|
25 | "minLength": 1,
|
26 | "type": "string"
|
27 | }
|
28 | },
|
29 | "propertyOrder": [
|
30 | "accountId",
|
31 | "principal"
|
32 | ],
|
33 | "required": [
|
34 | "accountId",
|
35 | "principal"
|
36 | ]
|
37 | },
|
38 | "ServerOnlyContext": {
|
39 | "type": "object",
|
40 | "properties": {
|
41 | "tags": {
|
42 | "type": "object",
|
43 | "additionalProperties": {
|
44 | "type": "string"
|
45 | },
|
46 | "propertyOrder": []
|
47 | },
|
48 | "logLevel": {
|
49 | "type": "string"
|
50 | },
|
51 | "logExtra": {
|
52 | "type": "object",
|
53 | "additionalProperties": {},
|
54 | "propertyOrder": []
|
55 | },
|
56 | "sampleRate": {
|
57 | "type": "number"
|
58 | },
|
59 | "debugId": {
|
60 | "type": "string"
|
61 | },
|
62 | "session": {
|
63 | "$ref": "#/definitions/Session"
|
64 | }
|
65 | },
|
66 | "propertyOrder": [
|
67 | "tags",
|
68 | "logLevel",
|
69 | "logExtra",
|
70 | "sampleRate",
|
71 | "debugId",
|
72 | "session"
|
73 | ],
|
74 | "required": [
|
75 | "debugId"
|
76 | ]
|
77 | },
|
78 | "UnauthorizedError": {
|
79 | "type": "object",
|
80 | "properties": {
|
81 | "name": {
|
82 | "type": "string"
|
83 | },
|
84 | "message": {
|
85 | "type": "string"
|
86 | },
|
87 | "stack": {
|
88 | "type": "string"
|
89 | }
|
90 | },
|
91 | "propertyOrder": [
|
92 | "name",
|
93 | "message",
|
94 | "stack"
|
95 | ],
|
96 | "required": [
|
97 | "message",
|
98 | "name"
|
99 | ]
|
100 | },
|
101 | "NotFoundError": {
|
102 | "type": "object",
|
103 | "properties": {
|
104 | "name": {
|
105 | "type": "string"
|
106 | },
|
107 | "message": {
|
108 | "type": "string"
|
109 | },
|
110 | "stack": {
|
111 | "type": "string"
|
112 | }
|
113 | },
|
114 | "propertyOrder": [
|
115 | "name",
|
116 | "message",
|
117 | "stack"
|
118 | ],
|
119 | "required": [
|
120 | "message",
|
121 | "name"
|
122 | ]
|
123 | },
|
124 | "ExistsError": {
|
125 | "type": "object",
|
126 | "properties": {
|
127 | "name": {
|
128 | "type": "string"
|
129 | },
|
130 | "message": {
|
131 | "type": "string"
|
132 | },
|
133 | "stack": {
|
134 | "type": "string"
|
135 | }
|
136 | },
|
137 | "propertyOrder": [
|
138 | "name",
|
139 | "message",
|
140 | "stack"
|
141 | ],
|
142 | "required": [
|
143 | "message",
|
144 | "name"
|
145 | ]
|
146 | },
|
147 | "SubDomain": {
|
148 | "type": "object",
|
149 | "properties": {
|
150 | "type": {
|
151 | "type": "string",
|
152 | "enum": [
|
153 | "subdomain"
|
154 | ]
|
155 | },
|
156 | "name": {
|
157 | "type": "string"
|
158 | }
|
159 | },
|
160 | "propertyOrder": [
|
161 | "type",
|
162 | "name"
|
163 | ],
|
164 | "required": [
|
165 | "name",
|
166 | "type"
|
167 | ]
|
168 | },
|
169 | "CNameDomain": {
|
170 | "type": "object",
|
171 | "properties": {
|
172 | "type": {
|
173 | "type": "string",
|
174 | "enum": [
|
175 | "cname"
|
176 | ]
|
177 | },
|
178 | "name": {
|
179 | "format": "hostname",
|
180 | "type": "string"
|
181 | },
|
182 | "certificate": {
|
183 | "minLength": 1,
|
184 | "type": "string"
|
185 | }
|
186 | },
|
187 | "propertyOrder": [
|
188 | "type",
|
189 | "name",
|
190 | "certificate"
|
191 | ],
|
192 | "required": [
|
193 | "certificate",
|
194 | "name",
|
195 | "type"
|
196 | ]
|
197 | },
|
198 | "Domain": {
|
199 | "anyOf": [
|
200 | {
|
201 | "$ref": "#/definitions/SubDomain"
|
202 | },
|
203 | {
|
204 | "$ref": "#/definitions/CNameDomain"
|
205 | }
|
206 | ]
|
207 | },
|
208 | "Environment": {
|
209 | "type": "object",
|
210 | "properties": {
|
211 | "name": {
|
212 | "pattern": "^[A-Za-z][A-Za-z_\\d]{0,49}$",
|
213 | "type": "string"
|
214 | },
|
215 | "domains": {
|
216 | "type": "array",
|
217 | "items": {
|
218 | "anyOf": [
|
219 | {
|
220 | "$ref": "#/definitions/SubDomain"
|
221 | },
|
222 | {
|
223 | "$ref": "#/definitions/CNameDomain"
|
224 | }
|
225 | ]
|
226 | }
|
227 | }
|
228 | },
|
229 | "propertyOrder": [
|
230 | "name",
|
231 | "domains"
|
232 | ],
|
233 | "required": [
|
234 | "domains",
|
235 | "name"
|
236 | ]
|
237 | },
|
238 | "Application": {
|
239 | "type": "object",
|
240 | "properties": {
|
241 | "accountId": {
|
242 | "minLength": 1,
|
243 | "type": "string"
|
244 | },
|
245 | "id": {
|
246 | "minLength": 1,
|
247 | "type": "string"
|
248 | },
|
249 | "name": {
|
250 | "description": "Non-unique user friendly name to identify this app",
|
251 | "minLength": 1,
|
252 | "type": "string"
|
253 | },
|
254 | "createdAt": {
|
255 | "description": "Enables basic storage and retrieval of dates and times.",
|
256 | "type": "string",
|
257 | "format": "date-time",
|
258 | "coerce-date": true
|
259 | },
|
260 | "updatedAt": {
|
261 | "description": "Enables basic storage and retrieval of dates and times.",
|
262 | "type": "string",
|
263 | "format": "date-time",
|
264 | "coerce-date": true
|
265 | },
|
266 | "sourceUrl": {
|
267 | "description": "If cloned from template, will hold the template github URL (including the git tag | digest).\nCould be used in the future to track a github repo.",
|
268 | "format": "uri",
|
269 | "type": "string"
|
270 | },
|
271 | "environments": {
|
272 | "type": "array",
|
273 | "items": {
|
274 | "$ref": "#/definitions/Environment"
|
275 | }
|
276 | }
|
277 | },
|
278 | "propertyOrder": [
|
279 | "accountId",
|
280 | "id",
|
281 | "name",
|
282 | "createdAt",
|
283 | "updatedAt",
|
284 | "sourceUrl",
|
285 | "environments"
|
286 | ],
|
287 | "required": [
|
288 | "accountId",
|
289 | "createdAt",
|
290 | "environments",
|
291 | "id",
|
292 | "name",
|
293 | "updatedAt"
|
294 | ]
|
295 | },
|
296 | "Template": {
|
297 | "type": "object",
|
298 | "properties": {
|
299 | "id": {
|
300 | "minLength": 1,
|
301 | "type": "string"
|
302 | },
|
303 | "name": {
|
304 | "minLength": 1,
|
305 | "type": "string"
|
306 | },
|
307 | "previewImageUrl": {
|
308 | "format": "uri",
|
309 | "type": "string"
|
310 | },
|
311 | "githubUrl": {
|
312 | "format": "uri",
|
313 | "type": "string"
|
314 | },
|
315 | "codeDigest": {
|
316 | "minLength": 1,
|
317 | "type": "string"
|
318 | }
|
319 | },
|
320 | "propertyOrder": [
|
321 | "id",
|
322 | "name",
|
323 | "previewImageUrl",
|
324 | "githubUrl",
|
325 | "codeDigest"
|
326 | ],
|
327 | "required": [
|
328 | "codeDigest",
|
329 | "githubUrl",
|
330 | "id",
|
331 | "name",
|
332 | "previewImageUrl"
|
333 | ]
|
334 | },
|
335 | "ExternalAccount": {
|
336 | "type": "object",
|
337 | "properties": {
|
338 | "source": {
|
339 | "description": "e.g. github",
|
340 | "minLength": 1,
|
341 | "type": "string"
|
342 | },
|
343 | "id": {
|
344 | "minLength": 1,
|
345 | "type": "string"
|
346 | }
|
347 | },
|
348 | "propertyOrder": [
|
349 | "source",
|
350 | "id"
|
351 | ],
|
352 | "required": [
|
353 | "id",
|
354 | "source"
|
355 | ]
|
356 | },
|
357 | "User": {
|
358 | "type": "object",
|
359 | "properties": {
|
360 | "id": {
|
361 | "minLength": 1,
|
362 | "type": "string"
|
363 | },
|
364 | "fullName": {
|
365 | "minLength": 1,
|
366 | "type": "string"
|
367 | },
|
368 | "email": {
|
369 | "format": "email",
|
370 | "type": "string"
|
371 | },
|
372 | "avatarUrl": {
|
373 | "format": "uri",
|
374 | "type": "string"
|
375 | },
|
376 | "externalAccounts": {
|
377 | "type": "array",
|
378 | "items": {
|
379 | "$ref": "#/definitions/ExternalAccount"
|
380 | }
|
381 | }
|
382 | },
|
383 | "propertyOrder": [
|
384 | "id",
|
385 | "fullName",
|
386 | "email",
|
387 | "avatarUrl",
|
388 | "externalAccounts"
|
389 | ],
|
390 | "required": [
|
391 | "email",
|
392 | "externalAccounts",
|
393 | "fullName",
|
394 | "id"
|
395 | ]
|
396 | },
|
397 | "TimePeriod": {
|
398 | "description": "Pattern as supported by the ms package",
|
399 | "minLength": 1,
|
400 | "type": "string"
|
401 | },
|
402 | "InvocationDetails": {
|
403 | "type": "object",
|
404 | "properties": {
|
405 | "durUs": {
|
406 | "type": "number"
|
407 | },
|
408 | "reqid": {
|
409 | "type": "string"
|
410 | }
|
411 | },
|
412 | "propertyOrder": [
|
413 | "durUs",
|
414 | "reqid"
|
415 | ],
|
416 | "required": [
|
417 | "durUs",
|
418 | "reqid"
|
419 | ]
|
420 | },
|
421 | "LogRecord": {
|
422 | "type": "object",
|
423 | "properties": {
|
424 | "source": {
|
425 | "type": "string"
|
426 | },
|
427 | "msg": {
|
428 | "type": "string"
|
429 | },
|
430 | "isErr": {
|
431 | "type": "boolean"
|
432 | },
|
433 | "time": {
|
434 | "description": "Enables basic storage and retrieval of dates and times.",
|
435 | "type": "string",
|
436 | "format": "date-time",
|
437 | "coerce-date": true
|
438 | },
|
439 | "invocation": {
|
440 | "$ref": "#/definitions/InvocationDetails"
|
441 | }
|
442 | },
|
443 | "propertyOrder": [
|
444 | "source",
|
445 | "msg",
|
446 | "isErr",
|
447 | "time",
|
448 | "invocation"
|
449 | ],
|
450 | "required": [
|
451 | "isErr",
|
452 | "msg",
|
453 | "source",
|
454 | "time"
|
455 | ]
|
456 | },
|
457 | "LogReadOpts": {
|
458 | "type": "object",
|
459 | "properties": {
|
460 | "since": {
|
461 | "description": "Enables basic storage and retrieval of dates and times.",
|
462 | "type": "string",
|
463 | "format": "date-time",
|
464 | "coerce-date": true
|
465 | },
|
466 | "limit": {
|
467 | "minimum": 1,
|
468 | "maximum": 10000,
|
469 | "type": "number"
|
470 | },
|
471 | "follow": {
|
472 | "type": "boolean"
|
473 | },
|
474 | "nextToken": {
|
475 | "description": "Continuation token (received in response)",
|
476 | "minLength": 1,
|
477 | "type": "string"
|
478 | }
|
479 | },
|
480 | "propertyOrder": [
|
481 | "since",
|
482 | "limit",
|
483 | "follow",
|
484 | "nextToken"
|
485 | ],
|
486 | "required": [
|
487 | "follow",
|
488 | "limit",
|
489 | "since"
|
490 | ]
|
491 | },
|
492 | "LogsResponse": {
|
493 | "type": "object",
|
494 | "properties": {
|
495 | "records": {
|
496 | "type": "array",
|
497 | "items": {
|
498 | "$ref": "#/definitions/LogRecord"
|
499 | }
|
500 | },
|
501 | "nextToken": {
|
502 | "minLength": 1,
|
503 | "type": "string"
|
504 | }
|
505 | },
|
506 | "propertyOrder": [
|
507 | "records",
|
508 | "nextToken"
|
509 | ],
|
510 | "required": [
|
511 | "records"
|
512 | ]
|
513 | },
|
514 | "CreateTicketResponse": {
|
515 | "type": "object",
|
516 | "properties": {
|
517 | "ticket": {
|
518 | "minLength": 1,
|
519 | "type": "string"
|
520 | },
|
521 | "expires": {
|
522 | "description": "Pattern as supported by the ms package",
|
523 | "minLength": 1,
|
524 | "type": "string"
|
525 | }
|
526 | },
|
527 | "propertyOrder": [
|
528 | "ticket",
|
529 | "expires"
|
530 | ],
|
531 | "required": [
|
532 | "expires",
|
533 | "ticket"
|
534 | ]
|
535 | },
|
536 | "TryTemplateResponse": {
|
537 | "type": "object",
|
538 | "properties": {
|
539 | "token": {
|
540 | "minLength": 1,
|
541 | "type": "string"
|
542 | },
|
543 | "expiresIn": {
|
544 | "description": "Pattern as supported by the ms package",
|
545 | "minLength": 1,
|
546 | "type": "string"
|
547 | },
|
548 | "domain": {
|
549 | "minLength": 1,
|
550 | "type": "string"
|
551 | }
|
552 | },
|
553 | "propertyOrder": [
|
554 | "token",
|
555 | "expiresIn",
|
556 | "domain"
|
557 | ],
|
558 | "required": [
|
559 | "domain",
|
560 | "expiresIn",
|
561 | "token"
|
562 | ]
|
563 | },
|
564 | "Lycan": {
|
565 | "type": "object",
|
566 | "properties": {
|
567 | "createTicket": {
|
568 | "description": "Create a ticket for claiming an API key",
|
569 | "type": "object",
|
570 | "properties": {
|
571 | "params": {
|
572 | "type": "object",
|
573 | "properties": {}
|
574 | },
|
575 | "returns": {
|
576 | "$ref": "#/definitions/CreateTicketResponse"
|
577 | }
|
578 | },
|
579 | "propertyOrder": [
|
580 | "params",
|
581 | "returns"
|
582 | ],
|
583 | "required": [
|
584 | "params",
|
585 | "returns"
|
586 | ]
|
587 | },
|
588 | "claimTicket": {
|
589 | "description": "Returns an API key in exchange for a valid ticket",
|
590 | "type": "object",
|
591 | "properties": {
|
592 | "params": {
|
593 | "type": "object",
|
594 | "properties": {
|
595 | "ticket": {
|
596 | "type": "string"
|
597 | }
|
598 | },
|
599 | "propertyOrder": [
|
600 | "ticket"
|
601 | ],
|
602 | "required": [
|
603 | "ticket"
|
604 | ]
|
605 | },
|
606 | "throws": {
|
607 | "$ref": "#/definitions/NotFoundError"
|
608 | },
|
609 | "returns": {
|
610 | "type": "string"
|
611 | }
|
612 | },
|
613 | "propertyOrder": [
|
614 | "params",
|
615 | "throws",
|
616 | "returns"
|
617 | ],
|
618 | "required": [
|
619 | "params",
|
620 | "returns",
|
621 | "throws"
|
622 | ]
|
623 | },
|
624 | "listTemplates": {
|
625 | "type": "object",
|
626 | "properties": {
|
627 | "params": {
|
628 | "type": "object",
|
629 | "properties": {}
|
630 | },
|
631 | "returns": {
|
632 | "type": "array",
|
633 | "items": {
|
634 | "$ref": "#/definitions/Template"
|
635 | }
|
636 | }
|
637 | },
|
638 | "propertyOrder": [
|
639 | "params",
|
640 | "returns"
|
641 | ],
|
642 | "required": [
|
643 | "params",
|
644 | "returns"
|
645 | ]
|
646 | },
|
647 | "tryTemplate": {
|
648 | "description": "Returns a JWT token for claiming the live template\nwith claimApp",
|
649 | "type": "object",
|
650 | "properties": {
|
651 | "params": {
|
652 | "type": "object",
|
653 | "properties": {
|
654 | "id": {
|
655 | "minLength": 1,
|
656 | "type": "string"
|
657 | }
|
658 | },
|
659 | "propertyOrder": [
|
660 | "id"
|
661 | ],
|
662 | "required": [
|
663 | "id"
|
664 | ]
|
665 | },
|
666 | "throws": {
|
667 | "$ref": "#/definitions/NotFoundError"
|
668 | },
|
669 | "returns": {
|
670 | "$ref": "#/definitions/TryTemplateResponse"
|
671 | }
|
672 | },
|
673 | "propertyOrder": [
|
674 | "params",
|
675 | "throws",
|
676 | "returns"
|
677 | ],
|
678 | "required": [
|
679 | "params",
|
680 | "returns",
|
681 | "throws"
|
682 | ]
|
683 | },
|
684 | "whoami": {
|
685 | "type": "object",
|
686 | "properties": {
|
687 | "params": {
|
688 | "type": "object",
|
689 | "properties": {}
|
690 | },
|
691 | "returns": {
|
692 | "$ref": "#/definitions/User"
|
693 | },
|
694 | "throws": {
|
695 | "$ref": "#/definitions/UnauthorizedError"
|
696 | }
|
697 | },
|
698 | "propertyOrder": [
|
699 | "params",
|
700 | "returns",
|
701 | "throws"
|
702 | ],
|
703 | "required": [
|
704 | "params",
|
705 | "returns",
|
706 | "throws"
|
707 | ]
|
708 | },
|
709 | "listApps": {
|
710 | "type": "object",
|
711 | "properties": {
|
712 | "params": {
|
713 | "type": "object",
|
714 | "properties": {}
|
715 | },
|
716 | "throws": {
|
717 | "$ref": "#/definitions/UnauthorizedError"
|
718 | },
|
719 | "returns": {
|
720 | "type": "array",
|
721 | "items": {
|
722 | "$ref": "#/definitions/Application"
|
723 | }
|
724 | }
|
725 | },
|
726 | "propertyOrder": [
|
727 | "params",
|
728 | "throws",
|
729 | "returns"
|
730 | ],
|
731 | "required": [
|
732 | "params",
|
733 | "returns",
|
734 | "throws"
|
735 | ]
|
736 | },
|
737 | "deployInitial": {
|
738 | "type": "object",
|
739 | "properties": {
|
740 | "params": {
|
741 | "type": "object",
|
742 | "properties": {
|
743 | "env": {
|
744 | "pattern": "^[A-Za-z][A-Za-z_\\d]{0,49}$",
|
745 | "type": "string"
|
746 | },
|
747 | "name": {
|
748 | "minLength": 1,
|
749 | "type": "string"
|
750 | },
|
751 | "digest": {
|
752 | "minLength": 1,
|
753 | "type": "string"
|
754 | },
|
755 | "envVars": {
|
756 | "type": "array",
|
757 | "items": {
|
758 | "type": "array",
|
759 | "items": [
|
760 | {
|
761 | "type": "string"
|
762 | },
|
763 | {
|
764 | "type": "string"
|
765 | }
|
766 | ],
|
767 | "minItems": 2,
|
768 | "additionalItems": {
|
769 | "anyOf": [
|
770 | {
|
771 | "type": "string"
|
772 | },
|
773 | {
|
774 | "type": "string"
|
775 | }
|
776 | ]
|
777 | }
|
778 | }
|
779 | }
|
780 | },
|
781 | "propertyOrder": [
|
782 | "env",
|
783 | "name",
|
784 | "digest",
|
785 | "envVars"
|
786 | ],
|
787 | "required": [
|
788 | "digest",
|
789 | "env",
|
790 | "envVars",
|
791 | "name"
|
792 | ]
|
793 | },
|
794 | "throws": {
|
795 | "anyOf": [
|
796 | {
|
797 | "$ref": "#/definitions/UnauthorizedError"
|
798 | },
|
799 | {
|
800 | "$ref": "#/definitions/ExistsError"
|
801 | }
|
802 | ]
|
803 | },
|
804 | "returns": {
|
805 | "$ref": "#/definitions/Application"
|
806 | }
|
807 | },
|
808 | "propertyOrder": [
|
809 | "params",
|
810 | "throws",
|
811 | "returns"
|
812 | ],
|
813 | "required": [
|
814 | "params",
|
815 | "returns",
|
816 | "throws"
|
817 | ]
|
818 | },
|
819 | "deploy": {
|
820 | "type": "object",
|
821 | "properties": {
|
822 | "params": {
|
823 | "type": "object",
|
824 | "properties": {
|
825 | "appId": {
|
826 | "minLength": 1,
|
827 | "type": "string"
|
828 | },
|
829 | "env": {
|
830 | "pattern": "^[A-Za-z][A-Za-z_\\d]{0,49}$",
|
831 | "type": "string"
|
832 | },
|
833 | "digest": {
|
834 | "minLength": 1,
|
835 | "type": "string"
|
836 | },
|
837 | "envVars": {
|
838 | "type": "array",
|
839 | "items": {
|
840 | "type": "array",
|
841 | "items": [
|
842 | {
|
843 | "type": "string"
|
844 | },
|
845 | {
|
846 | "type": "string"
|
847 | }
|
848 | ],
|
849 | "minItems": 2,
|
850 | "additionalItems": {
|
851 | "anyOf": [
|
852 | {
|
853 | "type": "string"
|
854 | },
|
855 | {
|
856 | "type": "string"
|
857 | }
|
858 | ]
|
859 | }
|
860 | }
|
861 | }
|
862 | },
|
863 | "propertyOrder": [
|
864 | "appId",
|
865 | "env",
|
866 | "digest",
|
867 | "envVars"
|
868 | ],
|
869 | "required": [
|
870 | "appId",
|
871 | "digest",
|
872 | "env",
|
873 | "envVars"
|
874 | ]
|
875 | },
|
876 | "throws": {
|
877 | "anyOf": [
|
878 | {
|
879 | "$ref": "#/definitions/UnauthorizedError"
|
880 | },
|
881 | {
|
882 | "$ref": "#/definitions/NotFoundError"
|
883 | }
|
884 | ]
|
885 | },
|
886 | "returns": {
|
887 | "$ref": "#/definitions/Application"
|
888 | }
|
889 | },
|
890 | "propertyOrder": [
|
891 | "params",
|
892 | "throws",
|
893 | "returns"
|
894 | ],
|
895 | "required": [
|
896 | "params",
|
897 | "returns",
|
898 | "throws"
|
899 | ]
|
900 | },
|
901 | "claimApp": {
|
902 | "description": "Claim an anonymously deployed app into the user account\nusing the token received from tryTemplate",
|
903 | "type": "object",
|
904 | "properties": {
|
905 | "params": {
|
906 | "type": "object",
|
907 | "properties": {
|
908 | "token": {
|
909 | "minLength": 1,
|
910 | "type": "string"
|
911 | }
|
912 | },
|
913 | "propertyOrder": [
|
914 | "token"
|
915 | ],
|
916 | "required": [
|
917 | "token"
|
918 | ]
|
919 | },
|
920 | "throws": {
|
921 | "anyOf": [
|
922 | {
|
923 | "$ref": "#/definitions/UnauthorizedError"
|
924 | },
|
925 | {
|
926 | "$ref": "#/definitions/NotFoundError"
|
927 | }
|
928 | ]
|
929 | },
|
930 | "returns": {
|
931 | "$ref": "#/definitions/Application"
|
932 | }
|
933 | },
|
934 | "propertyOrder": [
|
935 | "params",
|
936 | "throws",
|
937 | "returns"
|
938 | ],
|
939 | "required": [
|
940 | "params",
|
941 | "returns",
|
942 | "throws"
|
943 | ]
|
944 | },
|
945 | "getLogs": {
|
946 | "type": "object",
|
947 | "properties": {
|
948 | "params": {
|
949 | "type": "object",
|
950 | "properties": {
|
951 | "appId": {
|
952 | "minLength": 1,
|
953 | "type": "string"
|
954 | },
|
955 | "env": {
|
956 | "pattern": "^[A-Za-z][A-Za-z_\\d]{0,49}$",
|
957 | "type": "string"
|
958 | },
|
959 | "opts": {
|
960 | "$ref": "#/definitions/LogReadOpts"
|
961 | }
|
962 | },
|
963 | "propertyOrder": [
|
964 | "appId",
|
965 | "env",
|
966 | "opts"
|
967 | ],
|
968 | "required": [
|
969 | "appId",
|
970 | "env",
|
971 | "opts"
|
972 | ]
|
973 | },
|
974 | "throws": {
|
975 | "anyOf": [
|
976 | {
|
977 | "$ref": "#/definitions/UnauthorizedError"
|
978 | },
|
979 | {
|
980 | "$ref": "#/definitions/NotFoundError"
|
981 | }
|
982 | ]
|
983 | },
|
984 | "returns": {
|
985 | "$ref": "#/definitions/LogsResponse"
|
986 | }
|
987 | },
|
988 | "propertyOrder": [
|
989 | "params",
|
990 | "throws",
|
991 | "returns"
|
992 | ],
|
993 | "required": [
|
994 | "params",
|
995 | "returns",
|
996 | "throws"
|
997 | ]
|
998 | }
|
999 | },
|
1000 | "propertyOrder": [
|
1001 | "createTicket",
|
1002 | "claimTicket",
|
1003 | "listTemplates",
|
1004 | "tryTemplate",
|
1005 | "whoami",
|
1006 | "listApps",
|
1007 | "deployInitial",
|
1008 | "deploy",
|
1009 | "claimApp",
|
1010 | "getLogs"
|
1011 | ],
|
1012 | "required": [
|
1013 | "claimApp",
|
1014 | "claimTicket",
|
1015 | "createTicket",
|
1016 | "deploy",
|
1017 | "deployInitial",
|
1018 | "getLogs",
|
1019 | "listApps",
|
1020 | "listTemplates",
|
1021 | "tryTemplate",
|
1022 | "whoami"
|
1023 | ]
|
1024 | }
|
1025 | }
|
1026 | };
|
1027 | class InternalServerError extends Error {
|
1028 | constructor() {
|
1029 | super(...arguments);
|
1030 | this.name = 'InternalServerError';
|
1031 | }
|
1032 | }
|
1033 | exports.InternalServerError = InternalServerError;
|
1034 | class UnauthorizedError extends Error {
|
1035 | constructor() {
|
1036 | super(...arguments);
|
1037 | this.name = 'UnauthorizedError';
|
1038 | }
|
1039 | }
|
1040 | exports.UnauthorizedError = UnauthorizedError;
|
1041 | class NotFoundError extends Error {
|
1042 | constructor() {
|
1043 | super(...arguments);
|
1044 | this.name = 'NotFoundError';
|
1045 | }
|
1046 | }
|
1047 | exports.NotFoundError = NotFoundError;
|
1048 | class ExistsError extends Error {
|
1049 | constructor() {
|
1050 | super(...arguments);
|
1051 | this.name = 'ExistsError';
|
1052 | }
|
1053 | }
|
1054 | exports.ExistsError = ExistsError;
|
1055 | var FunctionRunnerSize;
|
1056 | (function (FunctionRunnerSize) {
|
1057 | FunctionRunnerSize["M128MIB"] = "m128MiB";
|
1058 | FunctionRunnerSize["M1GIB"] = "m1GiB";
|
1059 | FunctionRunnerSize["M256MIB"] = "m256MiB";
|
1060 | FunctionRunnerSize["M2GIB"] = "m2GiB";
|
1061 | FunctionRunnerSize["M512MIB"] = "m512MiB";
|
1062 | })(FunctionRunnerSize = exports.FunctionRunnerSize || (exports.FunctionRunnerSize = {}));
|
1063 | //# sourceMappingURL=interfaces.js.map |
\ | No newline at end of file |