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 | "reportAnalytics": {
|
66 | "type": "boolean"
|
67 | },
|
68 | "analyticsLabel": {
|
69 | "type": "string"
|
70 | }
|
71 | },
|
72 | "propertyOrder": [
|
73 | "tags",
|
74 | "logLevel",
|
75 | "logExtra",
|
76 | "sampleRate",
|
77 | "debugId",
|
78 | "session",
|
79 | "reportAnalytics",
|
80 | "analyticsLabel"
|
81 | ],
|
82 | "required": [
|
83 | "debugId"
|
84 | ]
|
85 | },
|
86 | "UnauthorizedError": {
|
87 | "type": "object",
|
88 | "properties": {
|
89 | "name": {
|
90 | "type": "string"
|
91 | },
|
92 | "message": {
|
93 | "type": "string"
|
94 | },
|
95 | "stack": {
|
96 | "type": "string"
|
97 | }
|
98 | },
|
99 | "propertyOrder": [
|
100 | "name",
|
101 | "message",
|
102 | "stack"
|
103 | ],
|
104 | "required": [
|
105 | "message",
|
106 | "name"
|
107 | ]
|
108 | },
|
109 | "NotFoundError": {
|
110 | "type": "object",
|
111 | "properties": {
|
112 | "name": {
|
113 | "type": "string"
|
114 | },
|
115 | "message": {
|
116 | "type": "string"
|
117 | },
|
118 | "stack": {
|
119 | "type": "string"
|
120 | }
|
121 | },
|
122 | "propertyOrder": [
|
123 | "name",
|
124 | "message",
|
125 | "stack"
|
126 | ],
|
127 | "required": [
|
128 | "message",
|
129 | "name"
|
130 | ]
|
131 | },
|
132 | "ExistsError": {
|
133 | "type": "object",
|
134 | "properties": {
|
135 | "name": {
|
136 | "type": "string"
|
137 | },
|
138 | "message": {
|
139 | "type": "string"
|
140 | },
|
141 | "stack": {
|
142 | "type": "string"
|
143 | }
|
144 | },
|
145 | "propertyOrder": [
|
146 | "name",
|
147 | "message",
|
148 | "stack"
|
149 | ],
|
150 | "required": [
|
151 | "message",
|
152 | "name"
|
153 | ]
|
154 | },
|
155 | "SubDomain": {
|
156 | "type": "object",
|
157 | "properties": {
|
158 | "type": {
|
159 | "type": "string",
|
160 | "enum": [
|
161 | "subdomain"
|
162 | ]
|
163 | },
|
164 | "name": {
|
165 | "type": "string"
|
166 | }
|
167 | },
|
168 | "propertyOrder": [
|
169 | "type",
|
170 | "name"
|
171 | ],
|
172 | "required": [
|
173 | "name",
|
174 | "type"
|
175 | ]
|
176 | },
|
177 | "CNameDomain": {
|
178 | "type": "object",
|
179 | "properties": {
|
180 | "type": {
|
181 | "type": "string",
|
182 | "enum": [
|
183 | "cname"
|
184 | ]
|
185 | },
|
186 | "name": {
|
187 | "format": "hostname",
|
188 | "type": "string"
|
189 | },
|
190 | "certificate": {
|
191 | "minLength": 1,
|
192 | "type": "string"
|
193 | }
|
194 | },
|
195 | "propertyOrder": [
|
196 | "type",
|
197 | "name",
|
198 | "certificate"
|
199 | ],
|
200 | "required": [
|
201 | "certificate",
|
202 | "name",
|
203 | "type"
|
204 | ]
|
205 | },
|
206 | "Domain": {
|
207 | "anyOf": [
|
208 | {
|
209 | "$ref": "#/definitions/SubDomain"
|
210 | },
|
211 | {
|
212 | "$ref": "#/definitions/CNameDomain"
|
213 | }
|
214 | ]
|
215 | },
|
216 | "TemplateSource": {
|
217 | "type": "object",
|
218 | "properties": {
|
219 | "name": {
|
220 | "description": "User friendly name",
|
221 | "type": "string"
|
222 | },
|
223 | "downloadDir": {
|
224 | "description": "Directory name with the source inside the uncompressed bundle",
|
225 | "type": "string"
|
226 | },
|
227 | "downloadUrl": {
|
228 | "description": "URL of the template source compressed tar bundle",
|
229 | "type": "string"
|
230 | },
|
231 | "githubUrl": {
|
232 | "description": "URL of the template git repository",
|
233 | "type": "string"
|
234 | },
|
235 | "targetDir": {
|
236 | "description": "Desired directory name for the ready application",
|
237 | "type": "string"
|
238 | },
|
239 | "zipUrl": {
|
240 | "description": "URL of the template source zip file",
|
241 | "type": "string"
|
242 | }
|
243 | },
|
244 | "propertyOrder": [
|
245 | "name",
|
246 | "downloadDir",
|
247 | "downloadUrl",
|
248 | "githubUrl",
|
249 | "targetDir",
|
250 | "zipUrl"
|
251 | ],
|
252 | "required": [
|
253 | "downloadDir",
|
254 | "downloadUrl",
|
255 | "githubUrl",
|
256 | "name",
|
257 | "targetDir",
|
258 | "zipUrl"
|
259 | ]
|
260 | },
|
261 | "Environment": {
|
262 | "type": "object",
|
263 | "properties": {
|
264 | "name": {
|
265 | "pattern": "^[A-Za-z][A-Za-z_\\d]{0,49}$",
|
266 | "type": "string"
|
267 | },
|
268 | "domains": {
|
269 | "type": "array",
|
270 | "items": {
|
271 | "anyOf": [
|
272 | {
|
273 | "$ref": "#/definitions/SubDomain"
|
274 | },
|
275 | {
|
276 | "$ref": "#/definitions/CNameDomain"
|
277 | }
|
278 | ]
|
279 | }
|
280 | }
|
281 | },
|
282 | "propertyOrder": [
|
283 | "name",
|
284 | "domains"
|
285 | ],
|
286 | "required": [
|
287 | "domains",
|
288 | "name"
|
289 | ]
|
290 | },
|
291 | "Application": {
|
292 | "type": "object",
|
293 | "properties": {
|
294 | "accountId": {
|
295 | "minLength": 1,
|
296 | "type": "string"
|
297 | },
|
298 | "id": {
|
299 | "minLength": 1,
|
300 | "type": "string"
|
301 | },
|
302 | "name": {
|
303 | "description": "Non-unique user friendly name to identify this app",
|
304 | "minLength": 1,
|
305 | "type": "string"
|
306 | },
|
307 | "createdAt": {
|
308 | "description": "Enables basic storage and retrieval of dates and times.",
|
309 | "type": "string",
|
310 | "format": "date-time",
|
311 | "coerce-date": true
|
312 | },
|
313 | "updatedAt": {
|
314 | "description": "Enables basic storage and retrieval of dates and times.",
|
315 | "type": "string",
|
316 | "format": "date-time",
|
317 | "coerce-date": true
|
318 | },
|
319 | "source": {
|
320 | "description": "If cloned from template, will hold the template source information,\nsuch as github URL (including the git tag | digest).\nCould be used in the future to track a github repo.",
|
321 | "$ref": "#/definitions/TemplateSource"
|
322 | },
|
323 | "environments": {
|
324 | "type": "array",
|
325 | "items": {
|
326 | "$ref": "#/definitions/Environment"
|
327 | }
|
328 | }
|
329 | },
|
330 | "propertyOrder": [
|
331 | "accountId",
|
332 | "id",
|
333 | "name",
|
334 | "createdAt",
|
335 | "updatedAt",
|
336 | "source",
|
337 | "environments"
|
338 | ],
|
339 | "required": [
|
340 | "accountId",
|
341 | "createdAt",
|
342 | "environments",
|
343 | "id",
|
344 | "name",
|
345 | "updatedAt"
|
346 | ]
|
347 | },
|
348 | "Template": {
|
349 | "type": "object",
|
350 | "properties": {
|
351 | "id": {
|
352 | "minLength": 1,
|
353 | "type": "string"
|
354 | },
|
355 | "name": {
|
356 | "minLength": 1,
|
357 | "type": "string"
|
358 | },
|
359 | "previewImageUrl": {
|
360 | "format": "uri",
|
361 | "type": "string"
|
362 | },
|
363 | "githubUrl": {
|
364 | "format": "uri",
|
365 | "type": "string"
|
366 | },
|
367 | "license": {
|
368 | "minLength": 1,
|
369 | "type": "string"
|
370 | },
|
371 | "author": {
|
372 | "minLength": 1,
|
373 | "type": "string"
|
374 | },
|
375 | "description": {
|
376 | "minLength": 1,
|
377 | "type": "string"
|
378 | },
|
379 | "similarTemplatesIds": {
|
380 | "type": "array",
|
381 | "items": {
|
382 | "type": "string"
|
383 | }
|
384 | }
|
385 | },
|
386 | "propertyOrder": [
|
387 | "id",
|
388 | "name",
|
389 | "previewImageUrl",
|
390 | "githubUrl",
|
391 | "license",
|
392 | "author",
|
393 | "description",
|
394 | "similarTemplatesIds"
|
395 | ],
|
396 | "required": [
|
397 | "author",
|
398 | "description",
|
399 | "githubUrl",
|
400 | "id",
|
401 | "license",
|
402 | "name",
|
403 | "previewImageUrl",
|
404 | "similarTemplatesIds"
|
405 | ]
|
406 | },
|
407 | "ExternalAccount": {
|
408 | "type": "object",
|
409 | "properties": {
|
410 | "source": {
|
411 | "description": "e.g. github",
|
412 | "minLength": 1,
|
413 | "type": "string"
|
414 | },
|
415 | "id": {
|
416 | "minLength": 1,
|
417 | "type": "string"
|
418 | }
|
419 | },
|
420 | "propertyOrder": [
|
421 | "source",
|
422 | "id"
|
423 | ],
|
424 | "required": [
|
425 | "id",
|
426 | "source"
|
427 | ]
|
428 | },
|
429 | "User": {
|
430 | "type": "object",
|
431 | "properties": {
|
432 | "id": {
|
433 | "minLength": 1,
|
434 | "type": "string"
|
435 | },
|
436 | "fullName": {
|
437 | "minLength": 1,
|
438 | "type": "string"
|
439 | },
|
440 | "email": {
|
441 | "format": "email",
|
442 | "type": "string"
|
443 | },
|
444 | "avatarUrl": {
|
445 | "format": "uri",
|
446 | "type": "string"
|
447 | },
|
448 | "externalAccounts": {
|
449 | "type": "array",
|
450 | "items": {
|
451 | "$ref": "#/definitions/ExternalAccount"
|
452 | }
|
453 | }
|
454 | },
|
455 | "propertyOrder": [
|
456 | "id",
|
457 | "fullName",
|
458 | "email",
|
459 | "avatarUrl",
|
460 | "externalAccounts"
|
461 | ],
|
462 | "required": [
|
463 | "email",
|
464 | "externalAccounts",
|
465 | "fullName",
|
466 | "id"
|
467 | ]
|
468 | },
|
469 | "TimePeriod": {
|
470 | "description": "Pattern as supported by the ms package",
|
471 | "minLength": 1,
|
472 | "type": "string"
|
473 | },
|
474 | "InvocationDetails": {
|
475 | "type": "object",
|
476 | "properties": {
|
477 | "durUs": {
|
478 | "type": "number"
|
479 | },
|
480 | "reqid": {
|
481 | "type": "string"
|
482 | }
|
483 | },
|
484 | "propertyOrder": [
|
485 | "durUs",
|
486 | "reqid"
|
487 | ],
|
488 | "required": [
|
489 | "durUs",
|
490 | "reqid"
|
491 | ]
|
492 | },
|
493 | "LogRecord": {
|
494 | "type": "object",
|
495 | "properties": {
|
496 | "source": {
|
497 | "type": "string"
|
498 | },
|
499 | "msg": {
|
500 | "type": "string"
|
501 | },
|
502 | "isErr": {
|
503 | "type": "boolean"
|
504 | },
|
505 | "time": {
|
506 | "description": "Enables basic storage and retrieval of dates and times.",
|
507 | "type": "string",
|
508 | "format": "date-time",
|
509 | "coerce-date": true
|
510 | },
|
511 | "invocation": {
|
512 | "$ref": "#/definitions/InvocationDetails"
|
513 | }
|
514 | },
|
515 | "propertyOrder": [
|
516 | "source",
|
517 | "msg",
|
518 | "isErr",
|
519 | "time",
|
520 | "invocation"
|
521 | ],
|
522 | "required": [
|
523 | "isErr",
|
524 | "msg",
|
525 | "source",
|
526 | "time"
|
527 | ]
|
528 | },
|
529 | "LogReadOpts": {
|
530 | "type": "object",
|
531 | "properties": {
|
532 | "since": {
|
533 | "description": "Enables basic storage and retrieval of dates and times.",
|
534 | "type": "string",
|
535 | "format": "date-time",
|
536 | "coerce-date": true
|
537 | },
|
538 | "limit": {
|
539 | "minimum": 1,
|
540 | "maximum": 10000,
|
541 | "type": "number"
|
542 | },
|
543 | "follow": {
|
544 | "type": "boolean"
|
545 | },
|
546 | "nextToken": {
|
547 | "description": "Continuation token (received in response)",
|
548 | "minLength": 1,
|
549 | "type": "string"
|
550 | }
|
551 | },
|
552 | "propertyOrder": [
|
553 | "since",
|
554 | "limit",
|
555 | "follow",
|
556 | "nextToken"
|
557 | ],
|
558 | "required": [
|
559 | "follow",
|
560 | "limit",
|
561 | "since"
|
562 | ]
|
563 | },
|
564 | "LogsResponse": {
|
565 | "type": "object",
|
566 | "properties": {
|
567 | "records": {
|
568 | "type": "array",
|
569 | "items": {
|
570 | "$ref": "#/definitions/LogRecord"
|
571 | }
|
572 | },
|
573 | "nextToken": {
|
574 | "minLength": 1,
|
575 | "type": "string"
|
576 | }
|
577 | },
|
578 | "propertyOrder": [
|
579 | "records",
|
580 | "nextToken"
|
581 | ],
|
582 | "required": [
|
583 | "records"
|
584 | ]
|
585 | },
|
586 | "CreateTicketResponse": {
|
587 | "type": "object",
|
588 | "properties": {
|
589 | "ticket": {
|
590 | "minLength": 1,
|
591 | "type": "string"
|
592 | },
|
593 | "expires": {
|
594 | "description": "Pattern as supported by the ms package",
|
595 | "minLength": 1,
|
596 | "type": "string"
|
597 | }
|
598 | },
|
599 | "propertyOrder": [
|
600 | "ticket",
|
601 | "expires"
|
602 | ],
|
603 | "required": [
|
604 | "expires",
|
605 | "ticket"
|
606 | ]
|
607 | },
|
608 | "TryTemplateResponse": {
|
609 | "type": "object",
|
610 | "properties": {
|
611 | "token": {
|
612 | "minLength": 1,
|
613 | "type": "string"
|
614 | },
|
615 | "expiresAt": {
|
616 | "description": "Enables basic storage and retrieval of dates and times.",
|
617 | "type": "string",
|
618 | "format": "date-time",
|
619 | "coerce-date": true
|
620 | },
|
621 | "domain": {
|
622 | "minLength": 1,
|
623 | "type": "string"
|
624 | }
|
625 | },
|
626 | "propertyOrder": [
|
627 | "token",
|
628 | "expiresAt",
|
629 | "domain"
|
630 | ],
|
631 | "required": [
|
632 | "domain",
|
633 | "expiresAt",
|
634 | "token"
|
635 | ]
|
636 | },
|
637 | "Serializable": {
|
638 | "anyOf": [
|
639 | {
|
640 | "type": "object",
|
641 | "properties": {}
|
642 | },
|
643 | {
|
644 | "type": "array",
|
645 | "items": {}
|
646 | },
|
647 | {
|
648 | "type": [
|
649 | "null",
|
650 | "string",
|
651 | "number",
|
652 | "boolean"
|
653 | ]
|
654 | }
|
655 | ]
|
656 | },
|
657 | "TemplateData": {
|
658 | "type": "object",
|
659 | "properties": {
|
660 | "key": {
|
661 | "type": "string"
|
662 | },
|
663 | "data": {
|
664 | "anyOf": [
|
665 | {
|
666 | "type": "object",
|
667 | "properties": {}
|
668 | },
|
669 | {
|
670 | "type": "array",
|
671 | "items": {}
|
672 | },
|
673 | {
|
674 | "type": [
|
675 | "null",
|
676 | "string",
|
677 | "number",
|
678 | "boolean"
|
679 | ]
|
680 | }
|
681 | ]
|
682 | }
|
683 | },
|
684 | "propertyOrder": [
|
685 | "key",
|
686 | "data"
|
687 | ],
|
688 | "required": [
|
689 | "data",
|
690 | "key"
|
691 | ]
|
692 | },
|
693 | "InitialData": {
|
694 | "type": "object",
|
695 | "properties": {
|
696 | "items": {
|
697 | "type": "array",
|
698 | "items": {
|
699 | "$ref": "#/definitions/TemplateData"
|
700 | }
|
701 | }
|
702 | },
|
703 | "propertyOrder": [
|
704 | "items"
|
705 | ],
|
706 | "required": [
|
707 | "items"
|
708 | ]
|
709 | },
|
710 | "Lycan": {
|
711 | "type": "object",
|
712 | "properties": {
|
713 | "createTicket": {
|
714 | "description": "Create a ticket for claiming an API key",
|
715 | "type": "object",
|
716 | "properties": {
|
717 | "params": {
|
718 | "type": "object",
|
719 | "properties": {}
|
720 | },
|
721 | "returns": {
|
722 | "$ref": "#/definitions/CreateTicketResponse"
|
723 | }
|
724 | },
|
725 | "propertyOrder": [
|
726 | "params",
|
727 | "returns"
|
728 | ],
|
729 | "required": [
|
730 | "params",
|
731 | "returns"
|
732 | ]
|
733 | },
|
734 | "claimTicket": {
|
735 | "description": "Returns an API key in exchange for a valid ticket",
|
736 | "type": "object",
|
737 | "properties": {
|
738 | "params": {
|
739 | "type": "object",
|
740 | "properties": {
|
741 | "ticket": {
|
742 | "type": "string"
|
743 | }
|
744 | },
|
745 | "propertyOrder": [
|
746 | "ticket"
|
747 | ],
|
748 | "required": [
|
749 | "ticket"
|
750 | ]
|
751 | },
|
752 | "throws": {
|
753 | "$ref": "#/definitions/NotFoundError"
|
754 | },
|
755 | "returns": {
|
756 | "type": "string"
|
757 | }
|
758 | },
|
759 | "propertyOrder": [
|
760 | "params",
|
761 | "throws",
|
762 | "returns"
|
763 | ],
|
764 | "required": [
|
765 | "params",
|
766 | "returns",
|
767 | "throws"
|
768 | ]
|
769 | },
|
770 | "listTemplates": {
|
771 | "type": "object",
|
772 | "properties": {
|
773 | "params": {
|
774 | "type": "object",
|
775 | "properties": {}
|
776 | },
|
777 | "returns": {
|
778 | "type": "array",
|
779 | "items": {
|
780 | "$ref": "#/definitions/Template"
|
781 | }
|
782 | }
|
783 | },
|
784 | "propertyOrder": [
|
785 | "params",
|
786 | "returns"
|
787 | ],
|
788 | "required": [
|
789 | "params",
|
790 | "returns"
|
791 | ]
|
792 | },
|
793 | "reportAnalytics": {
|
794 | "type": "object",
|
795 | "properties": {
|
796 | "params": {
|
797 | "type": "object",
|
798 | "properties": {
|
799 | "events": {
|
800 | "type": "array",
|
801 | "items": {
|
802 | "anyOf": [
|
803 | {
|
804 | "$ref": "#/definitions/InteractionEvent"
|
805 | },
|
806 | {
|
807 | "$ref": "#/definitions/ViewEvent"
|
808 | }
|
809 | ]
|
810 | }
|
811 | }
|
812 | },
|
813 | "propertyOrder": [
|
814 | "events"
|
815 | ],
|
816 | "required": [
|
817 | "events"
|
818 | ]
|
819 | },
|
820 | "returns": {
|
821 | "type": "null"
|
822 | }
|
823 | },
|
824 | "propertyOrder": [
|
825 | "params",
|
826 | "returns"
|
827 | ],
|
828 | "required": [
|
829 | "params",
|
830 | "returns"
|
831 | ]
|
832 | },
|
833 | "tryTemplate": {
|
834 | "description": "Returns a JWT token for claiming the live template\nwith claimApp",
|
835 | "type": "object",
|
836 | "properties": {
|
837 | "params": {
|
838 | "type": "object",
|
839 | "properties": {
|
840 | "id": {
|
841 | "minLength": 1,
|
842 | "type": "string"
|
843 | }
|
844 | },
|
845 | "propertyOrder": [
|
846 | "id"
|
847 | ],
|
848 | "required": [
|
849 | "id"
|
850 | ]
|
851 | },
|
852 | "throws": {
|
853 | "$ref": "#/definitions/NotFoundError"
|
854 | },
|
855 | "returns": {
|
856 | "$ref": "#/definitions/TryTemplateResponse"
|
857 | }
|
858 | },
|
859 | "propertyOrder": [
|
860 | "params",
|
861 | "throws",
|
862 | "returns"
|
863 | ],
|
864 | "required": [
|
865 | "params",
|
866 | "returns",
|
867 | "throws"
|
868 | ]
|
869 | },
|
870 | "whoami": {
|
871 | "type": "object",
|
872 | "properties": {
|
873 | "params": {
|
874 | "type": "object",
|
875 | "properties": {}
|
876 | },
|
877 | "returns": {
|
878 | "$ref": "#/definitions/User"
|
879 | },
|
880 | "throws": {
|
881 | "$ref": "#/definitions/UnauthorizedError"
|
882 | }
|
883 | },
|
884 | "propertyOrder": [
|
885 | "params",
|
886 | "returns",
|
887 | "throws"
|
888 | ],
|
889 | "required": [
|
890 | "params",
|
891 | "returns",
|
892 | "throws"
|
893 | ]
|
894 | },
|
895 | "listApps": {
|
896 | "type": "object",
|
897 | "properties": {
|
898 | "params": {
|
899 | "type": "object",
|
900 | "properties": {}
|
901 | },
|
902 | "throws": {
|
903 | "$ref": "#/definitions/UnauthorizedError"
|
904 | },
|
905 | "returns": {
|
906 | "type": "array",
|
907 | "items": {
|
908 | "$ref": "#/definitions/Application"
|
909 | }
|
910 | }
|
911 | },
|
912 | "propertyOrder": [
|
913 | "params",
|
914 | "throws",
|
915 | "returns"
|
916 | ],
|
917 | "required": [
|
918 | "params",
|
919 | "returns",
|
920 | "throws"
|
921 | ]
|
922 | },
|
923 | "getApp": {
|
924 | "type": "object",
|
925 | "properties": {
|
926 | "params": {
|
927 | "type": "object",
|
928 | "properties": {
|
929 | "idOrName": {
|
930 | "minLength": 1,
|
931 | "type": "string"
|
932 | }
|
933 | },
|
934 | "propertyOrder": [
|
935 | "idOrName"
|
936 | ],
|
937 | "required": [
|
938 | "idOrName"
|
939 | ]
|
940 | },
|
941 | "throws": {
|
942 | "$ref": "#/definitions/UnauthorizedError"
|
943 | },
|
944 | "returns": {
|
945 | "$ref": "#/definitions/Application"
|
946 | }
|
947 | },
|
948 | "propertyOrder": [
|
949 | "params",
|
950 | "throws",
|
951 | "returns"
|
952 | ],
|
953 | "required": [
|
954 | "params",
|
955 | "returns",
|
956 | "throws"
|
957 | ]
|
958 | },
|
959 | "deployInitial": {
|
960 | "type": "object",
|
961 | "properties": {
|
962 | "params": {
|
963 | "type": "object",
|
964 | "properties": {
|
965 | "env": {
|
966 | "pattern": "^[A-Za-z][A-Za-z_\\d]{0,49}$",
|
967 | "type": "string"
|
968 | },
|
969 | "digest": {
|
970 | "minLength": 1,
|
971 | "type": "string"
|
972 | },
|
973 | "envVars": {
|
974 | "type": "array",
|
975 | "items": {
|
976 | "type": "array",
|
977 | "items": [
|
978 | {
|
979 | "type": "string"
|
980 | },
|
981 | {
|
982 | "type": "string"
|
983 | }
|
984 | ],
|
985 | "minItems": 2,
|
986 | "additionalItems": {
|
987 | "anyOf": [
|
988 | {
|
989 | "type": "string"
|
990 | },
|
991 | {
|
992 | "type": "string"
|
993 | }
|
994 | ]
|
995 | }
|
996 | }
|
997 | }
|
998 | },
|
999 | "propertyOrder": [
|
1000 | "env",
|
1001 | "digest",
|
1002 | "envVars"
|
1003 | ],
|
1004 | "required": [
|
1005 | "digest",
|
1006 | "env",
|
1007 | "envVars"
|
1008 | ]
|
1009 | },
|
1010 | "throws": {
|
1011 | "anyOf": [
|
1012 | {
|
1013 | "$ref": "#/definitions/UnauthorizedError"
|
1014 | },
|
1015 | {
|
1016 | "$ref": "#/definitions/ExistsError"
|
1017 | }
|
1018 | ]
|
1019 | },
|
1020 | "returns": {
|
1021 | "$ref": "#/definitions/Application"
|
1022 | }
|
1023 | },
|
1024 | "propertyOrder": [
|
1025 | "params",
|
1026 | "throws",
|
1027 | "returns"
|
1028 | ],
|
1029 | "required": [
|
1030 | "params",
|
1031 | "returns",
|
1032 | "throws"
|
1033 | ]
|
1034 | },
|
1035 | "deploy": {
|
1036 | "type": "object",
|
1037 | "properties": {
|
1038 | "params": {
|
1039 | "type": "object",
|
1040 | "properties": {
|
1041 | "appId": {
|
1042 | "minLength": 1,
|
1043 | "type": "string"
|
1044 | },
|
1045 | "env": {
|
1046 | "pattern": "^[A-Za-z][A-Za-z_\\d]{0,49}$",
|
1047 | "type": "string"
|
1048 | },
|
1049 | "digest": {
|
1050 | "minLength": 1,
|
1051 | "type": "string"
|
1052 | },
|
1053 | "envVars": {
|
1054 | "type": "array",
|
1055 | "items": {
|
1056 | "type": "array",
|
1057 | "items": [
|
1058 | {
|
1059 | "type": "string"
|
1060 | },
|
1061 | {
|
1062 | "type": "string"
|
1063 | }
|
1064 | ],
|
1065 | "minItems": 2,
|
1066 | "additionalItems": {
|
1067 | "anyOf": [
|
1068 | {
|
1069 | "type": "string"
|
1070 | },
|
1071 | {
|
1072 | "type": "string"
|
1073 | }
|
1074 | ]
|
1075 | }
|
1076 | }
|
1077 | }
|
1078 | },
|
1079 | "propertyOrder": [
|
1080 | "appId",
|
1081 | "env",
|
1082 | "digest",
|
1083 | "envVars"
|
1084 | ],
|
1085 | "required": [
|
1086 | "appId",
|
1087 | "digest",
|
1088 | "env",
|
1089 | "envVars"
|
1090 | ]
|
1091 | },
|
1092 | "throws": {
|
1093 | "anyOf": [
|
1094 | {
|
1095 | "$ref": "#/definitions/UnauthorizedError"
|
1096 | },
|
1097 | {
|
1098 | "$ref": "#/definitions/NotFoundError"
|
1099 | }
|
1100 | ]
|
1101 | },
|
1102 | "returns": {
|
1103 | "$ref": "#/definitions/Application"
|
1104 | }
|
1105 | },
|
1106 | "propertyOrder": [
|
1107 | "params",
|
1108 | "throws",
|
1109 | "returns"
|
1110 | ],
|
1111 | "required": [
|
1112 | "params",
|
1113 | "returns",
|
1114 | "throws"
|
1115 | ]
|
1116 | },
|
1117 | "claimApp": {
|
1118 | "description": "Claim an anonymously deployed app into the user account\nusing the token received from tryTemplate",
|
1119 | "type": "object",
|
1120 | "properties": {
|
1121 | "params": {
|
1122 | "type": "object",
|
1123 | "properties": {
|
1124 | "token": {
|
1125 | "minLength": 1,
|
1126 | "type": "string"
|
1127 | }
|
1128 | },
|
1129 | "propertyOrder": [
|
1130 | "token"
|
1131 | ],
|
1132 | "required": [
|
1133 | "token"
|
1134 | ]
|
1135 | },
|
1136 | "throws": {
|
1137 | "anyOf": [
|
1138 | {
|
1139 | "$ref": "#/definitions/UnauthorizedError"
|
1140 | },
|
1141 | {
|
1142 | "$ref": "#/definitions/NotFoundError"
|
1143 | }
|
1144 | ]
|
1145 | },
|
1146 | "returns": {
|
1147 | "$ref": "#/definitions/Application"
|
1148 | }
|
1149 | },
|
1150 | "propertyOrder": [
|
1151 | "params",
|
1152 | "throws",
|
1153 | "returns"
|
1154 | ],
|
1155 | "required": [
|
1156 | "params",
|
1157 | "returns",
|
1158 | "throws"
|
1159 | ]
|
1160 | },
|
1161 | "getLogs": {
|
1162 | "type": "object",
|
1163 | "properties": {
|
1164 | "params": {
|
1165 | "type": "object",
|
1166 | "properties": {
|
1167 | "appIdOrName": {
|
1168 | "minLength": 1,
|
1169 | "type": "string"
|
1170 | },
|
1171 | "env": {
|
1172 | "pattern": "^[A-Za-z][A-Za-z_\\d]{0,49}$",
|
1173 | "type": "string"
|
1174 | },
|
1175 | "opts": {
|
1176 | "$ref": "#/definitions/LogReadOpts"
|
1177 | }
|
1178 | },
|
1179 | "propertyOrder": [
|
1180 | "appIdOrName",
|
1181 | "env",
|
1182 | "opts"
|
1183 | ],
|
1184 | "required": [
|
1185 | "appIdOrName",
|
1186 | "env",
|
1187 | "opts"
|
1188 | ]
|
1189 | },
|
1190 | "throws": {
|
1191 | "anyOf": [
|
1192 | {
|
1193 | "$ref": "#/definitions/UnauthorizedError"
|
1194 | },
|
1195 | {
|
1196 | "$ref": "#/definitions/NotFoundError"
|
1197 | }
|
1198 | ]
|
1199 | },
|
1200 | "returns": {
|
1201 | "$ref": "#/definitions/LogsResponse"
|
1202 | }
|
1203 | },
|
1204 | "propertyOrder": [
|
1205 | "params",
|
1206 | "throws",
|
1207 | "returns"
|
1208 | ],
|
1209 | "required": [
|
1210 | "params",
|
1211 | "returns",
|
1212 | "throws"
|
1213 | ]
|
1214 | },
|
1215 | "destroyApp": {
|
1216 | "type": "object",
|
1217 | "properties": {
|
1218 | "params": {
|
1219 | "type": "object",
|
1220 | "properties": {
|
1221 | "appIdOrName": {
|
1222 | "minLength": 1,
|
1223 | "type": "string"
|
1224 | }
|
1225 | },
|
1226 | "propertyOrder": [
|
1227 | "appIdOrName"
|
1228 | ],
|
1229 | "required": [
|
1230 | "appIdOrName"
|
1231 | ]
|
1232 | },
|
1233 | "throws": {
|
1234 | "anyOf": [
|
1235 | {
|
1236 | "$ref": "#/definitions/UnauthorizedError"
|
1237 | },
|
1238 | {
|
1239 | "$ref": "#/definitions/NotFoundError"
|
1240 | }
|
1241 | ]
|
1242 | },
|
1243 | "returns": {
|
1244 | "type": "null"
|
1245 | }
|
1246 | },
|
1247 | "propertyOrder": [
|
1248 | "params",
|
1249 | "throws",
|
1250 | "returns"
|
1251 | ],
|
1252 | "required": [
|
1253 | "params",
|
1254 | "returns",
|
1255 | "throws"
|
1256 | ]
|
1257 | }
|
1258 | },
|
1259 | "propertyOrder": [
|
1260 | "createTicket",
|
1261 | "claimTicket",
|
1262 | "listTemplates",
|
1263 | "reportAnalytics",
|
1264 | "tryTemplate",
|
1265 | "whoami",
|
1266 | "listApps",
|
1267 | "getApp",
|
1268 | "deployInitial",
|
1269 | "deploy",
|
1270 | "claimApp",
|
1271 | "getLogs",
|
1272 | "destroyApp"
|
1273 | ],
|
1274 | "required": [
|
1275 | "claimApp",
|
1276 | "claimTicket",
|
1277 | "createTicket",
|
1278 | "deploy",
|
1279 | "deployInitial",
|
1280 | "destroyApp",
|
1281 | "getApp",
|
1282 | "getLogs",
|
1283 | "listApps",
|
1284 | "listTemplates",
|
1285 | "reportAnalytics",
|
1286 | "tryTemplate",
|
1287 | "whoami"
|
1288 | ]
|
1289 | },
|
1290 | "InteractionEvent": {
|
1291 | "type": "object",
|
1292 | "properties": {
|
1293 | "type": {
|
1294 | "type": "string",
|
1295 | "enum": [
|
1296 | "event"
|
1297 | ]
|
1298 | },
|
1299 | "category": {
|
1300 | "type": "string"
|
1301 | },
|
1302 | "action": {
|
1303 | "type": "string"
|
1304 | },
|
1305 | "label": {
|
1306 | "type": "string"
|
1307 | },
|
1308 | "value": {
|
1309 | "type": "number"
|
1310 | }
|
1311 | },
|
1312 | "propertyOrder": [
|
1313 | "type",
|
1314 | "category",
|
1315 | "action",
|
1316 | "label",
|
1317 | "value"
|
1318 | ],
|
1319 | "required": [
|
1320 | "action",
|
1321 | "category",
|
1322 | "type"
|
1323 | ]
|
1324 | },
|
1325 | "ViewEvent": {
|
1326 | "type": "object",
|
1327 | "properties": {
|
1328 | "type": {
|
1329 | "enum": [
|
1330 | "modalview",
|
1331 | "pageview"
|
1332 | ],
|
1333 | "type": "string"
|
1334 | },
|
1335 | "page": {
|
1336 | "type": "string"
|
1337 | }
|
1338 | },
|
1339 | "propertyOrder": [
|
1340 | "type",
|
1341 | "page"
|
1342 | ],
|
1343 | "required": [
|
1344 | "page",
|
1345 | "type"
|
1346 | ]
|
1347 | }
|
1348 | }
|
1349 | };
|
1350 | class InternalServerError extends Error {
|
1351 | constructor() {
|
1352 | super(...arguments);
|
1353 | this.name = 'InternalServerError';
|
1354 | }
|
1355 | }
|
1356 | exports.InternalServerError = InternalServerError;
|
1357 | class UnauthorizedError extends Error {
|
1358 | constructor() {
|
1359 | super(...arguments);
|
1360 | this.name = 'UnauthorizedError';
|
1361 | }
|
1362 | }
|
1363 | exports.UnauthorizedError = UnauthorizedError;
|
1364 | class NotFoundError extends Error {
|
1365 | constructor() {
|
1366 | super(...arguments);
|
1367 | this.name = 'NotFoundError';
|
1368 | }
|
1369 | }
|
1370 | exports.NotFoundError = NotFoundError;
|
1371 | class ExistsError extends Error {
|
1372 | constructor() {
|
1373 | super(...arguments);
|
1374 | this.name = 'ExistsError';
|
1375 | }
|
1376 | }
|
1377 | exports.ExistsError = ExistsError;
|
1378 | var FunctionRunnerSize;
|
1379 | (function (FunctionRunnerSize) {
|
1380 | FunctionRunnerSize["M128MIB"] = "m128MiB";
|
1381 | FunctionRunnerSize["M1GIB"] = "m1GiB";
|
1382 | FunctionRunnerSize["M256MIB"] = "m256MiB";
|
1383 | FunctionRunnerSize["M2GIB"] = "m2GiB";
|
1384 | FunctionRunnerSize["M512MIB"] = "m512MiB";
|
1385 | })(FunctionRunnerSize = exports.FunctionRunnerSize || (exports.FunctionRunnerSize = {}));
|
1386 | //# sourceMappingURL=interfaces.js.map |
\ | No newline at end of file |