|
519 | 519 | } |
520 | 520 | } |
521 | 521 | }, |
522 | | - "/safari/skill/download": { |
523 | | - "post": { |
524 | | - "operationId": "skill-read-download", |
525 | | - "summary": "Download skill", |
526 | | - "description": "Download a skill's zip archive by ID.", |
527 | | - "tags": [ |
528 | | - "AI SRE/Skills" |
529 | | - ], |
530 | | - "security": [ |
531 | | - { |
532 | | - "AppKeyAuth": [] |
533 | | - } |
534 | | - ], |
535 | | - "x-mint": { |
536 | | - "content": "## Restrictions\n\n| Aspect | Value |\n| ------ | ----- |\n| Rate limits | **60 requests/minute**; **5 requests/second** per account |\n| Permissions | None — any valid `app_key` can call this operation |\n\n## Usage\n\n- Returns the raw zip bytes (`application/zip`), not the JSON envelope. The filename is the skill name.\n", |
537 | | - "href": "/en/api-reference/ai-sre/skills/skill-read-download", |
538 | | - "metadata": { |
539 | | - "sidebarTitle": "Download skill" |
540 | | - } |
541 | | - }, |
542 | | - "responses": { |
543 | | - "200": { |
544 | | - "description": "Skill archive (zip).", |
545 | | - "headers": { |
546 | | - "Content-Disposition": { |
547 | | - "description": "attachment; filename=<skill_name>.zip", |
548 | | - "schema": { |
549 | | - "type": "string" |
550 | | - } |
551 | | - } |
552 | | - }, |
553 | | - "content": { |
554 | | - "application/zip": { |
555 | | - "schema": { |
556 | | - "type": "string", |
557 | | - "format": "binary" |
558 | | - } |
559 | | - } |
560 | | - } |
561 | | - }, |
562 | | - "400": { |
563 | | - "$ref": "#/components/responses/BadRequest" |
564 | | - }, |
565 | | - "401": { |
566 | | - "$ref": "#/components/responses/Unauthorized" |
567 | | - }, |
568 | | - "429": { |
569 | | - "$ref": "#/components/responses/TooManyRequests" |
570 | | - }, |
571 | | - "500": { |
572 | | - "$ref": "#/components/responses/ServerError" |
573 | | - } |
574 | | - }, |
575 | | - "requestBody": { |
576 | | - "required": true, |
577 | | - "content": { |
578 | | - "application/json": { |
579 | | - "schema": { |
580 | | - "$ref": "#/components/schemas/SkillDownloadRequest" |
581 | | - }, |
582 | | - "example": { |
583 | | - "skill_id": "skill_8s7Hn2kLpQ3xYbVc4Wd2m" |
584 | | - } |
585 | | - } |
586 | | - } |
587 | | - } |
588 | | - } |
589 | | - }, |
590 | 522 | "/safari/skill/enable": { |
591 | 523 | "post": { |
592 | 524 | "operationId": "skill-read-enable", |
|
2785 | 2717 | "skill_id" |
2786 | 2718 | ] |
2787 | 2719 | }, |
2788 | | - "SkillDownloadRequest": { |
2789 | | - "type": "object", |
2790 | | - "description": "Skill zip download by ID.", |
2791 | | - "properties": { |
2792 | | - "skill_id": { |
2793 | | - "type": "string", |
2794 | | - "description": "Target skill ID." |
2795 | | - } |
2796 | | - }, |
2797 | | - "required": [ |
2798 | | - "skill_id" |
2799 | | - ] |
2800 | | - }, |
2801 | 2720 | "SkillUpdateRequest": { |
2802 | 2721 | "type": "object", |
2803 | 2722 | "description": "Editable skill metadata.", |
|
0 commit comments