|
522 | 522 | }
|
523 | 523 | }
|
524 | 524 | },
|
525 |
| - "GetKeychainEntryRequest": { |
| 525 | + "GetKeychainEntryRequestV1": { |
526 | 526 | "type": "object",
|
527 | 527 | "required": [
|
528 | 528 | "key"
|
529 | 529 | ],
|
530 | 530 | "properties": {
|
531 | 531 | "key": {
|
532 | 532 | "type": "string",
|
533 |
| - "description": "The key for the entry to get from the keychain.", |
| 533 | + "description": "The key for the entry to delete from the keychain.", |
534 | 534 | "minLength": 1,
|
535 | 535 | "maxLength": 1024,
|
536 | 536 | "nullable": false
|
537 | 537 | }
|
538 | 538 | }
|
539 | 539 | },
|
540 |
| - "GetKeychainEntryResponse": { |
| 540 | + "DeleteKeychainEntryRequestV1": { |
541 | 541 | "type": "object",
|
542 | 542 | "required": [
|
543 |
| - "key", |
544 |
| - "value" |
| 543 | + "key" |
545 | 544 | ],
|
546 | 545 | "additionalProperties": false,
|
547 | 546 | "properties": {
|
548 | 547 | "key": {
|
549 | 548 | "type": "string",
|
550 |
| - "description": "The key that was used to retrieve the value from the keychain.", |
| 549 | + "description": "The key for the entry to get from the keychain.", |
551 | 550 | "minLength": 1,
|
552 | 551 | "maxLength": 1024,
|
553 | 552 | "nullable": false
|
554 |
| - }, |
555 |
| - "value": { |
556 |
| - "type": "string", |
557 |
| - "description": "The value associated with the requested key on the keychain.", |
558 |
| - "minLength": 0, |
559 |
| - "maxLength": 10485760, |
560 |
| - "nullable": false |
561 | 553 | }
|
562 | 554 | }
|
563 | 555 | },
|
564 |
| - "SetKeychainEntryRequest": { |
| 556 | + "GetKeychainEntryResponseV1": { |
565 | 557 | "type": "object",
|
566 | 558 | "required": [
|
567 | 559 | "key",
|
|
571 | 563 | "properties": {
|
572 | 564 | "key": {
|
573 | 565 | "type": "string",
|
574 |
| - "description": "The key for the entry to set on the keychain.", |
| 566 | + "description": "The key that was used to retrieve the value from the keychain.", |
575 | 567 | "minLength": 1,
|
576 | 568 | "maxLength": 1024,
|
577 | 569 | "nullable": false
|
578 | 570 | },
|
579 | 571 | "value": {
|
580 | 572 | "type": "string",
|
581 |
| - "description": "The value that will be associated with the key on the keychain.", |
| 573 | + "description": "The value associated with the requested key on the keychain.", |
582 | 574 | "minLength": 0,
|
583 | 575 | "maxLength": 10485760,
|
584 | 576 | "nullable": false
|
585 | 577 | }
|
586 | 578 | }
|
587 | 579 | },
|
588 |
| - "SetKeychainEntryResponse": { |
| 580 | + "SetKeychainEntryRequestV1": { |
589 | 581 | "type": "object",
|
590 | 582 | "required": [
|
591 |
| - "key" |
| 583 | + "key", |
| 584 | + "value" |
592 | 585 | ],
|
593 | 586 | "properties": {
|
594 | 587 | "key": {
|
595 | 588 | "type": "string",
|
596 |
| - "description": "The key that was used to set the value on the keychain.", |
| 589 | + "description": "The key for the entry to check on the keychain.", |
597 | 590 | "minLength": 1,
|
598 | 591 | "maxLength": 1024,
|
599 | 592 | "nullable": false
|
600 |
| - } |
601 |
| - } |
602 |
| - }, |
603 |
| - "DeleteKeychainEntryRequestV1": { |
604 |
| - "type": "object", |
605 |
| - "required": [ |
606 |
| - "key" |
607 |
| - ], |
608 |
| - "properties": { |
609 |
| - "key": { |
| 593 | + }, |
| 594 | + "value": { |
610 | 595 | "type": "string",
|
611 |
| - "description": "The key for the entry to check the presence of on the keychain.", |
612 |
| - "minLength": 1, |
613 |
| - "maxLength": 1024, |
| 596 | + "description": "The value that will be associated with the key on the keychain.", |
| 597 | + "minLength": 0, |
| 598 | + "maxLength": 10485760, |
614 | 599 | "nullable": false
|
615 | 600 | }
|
616 | 601 | }
|
617 | 602 | },
|
618 |
| - "DeleteKeychainEntryResponseV1": { |
| 603 | + "SetKeychainEntryResponseV1": { |
619 | 604 | "type": "object",
|
620 | 605 | "required": [
|
621 | 606 | "key"
|
|
624 | 609 | "properties": {
|
625 | 610 | "key": {
|
626 | 611 | "type": "string",
|
627 |
| - "description": "The key that was deleted from the keychain.", |
| 612 | + "description": "The key that was used to set the value on the keychain.", |
628 | 613 | "minLength": 1,
|
629 | 614 | "maxLength": 1024,
|
630 | 615 | "nullable": false
|
631 | 616 | }
|
632 | 617 | }
|
633 |
| - }, |
| 618 | + }, |
634 | 619 | "HasKeychainEntryRequestV1": {
|
635 | 620 | "type": "object",
|
636 | 621 | "required": [
|
|
640 | 625 | "properties": {
|
641 | 626 | "key": {
|
642 | 627 | "type": "string",
|
643 |
| - "description": "The key to check for presence in the keychain.", |
| 628 | + "description": "The key to check for presence in the keychain", |
644 | 629 | "minLength": 1,
|
645 | 630 | "maxLength": 1024,
|
646 | 631 | "nullable": false
|
|
669 | 654 | "nullable": false
|
670 | 655 | }
|
671 | 656 | }
|
| 657 | + }, |
| 658 | + "DeleteKeychainEntryResponseV1": { |
| 659 | + "type": "object", |
| 660 | + "required": [ |
| 661 | + "key" |
| 662 | + ], |
| 663 | + "properties": { |
| 664 | + "key": { |
| 665 | + "type": "string", |
| 666 | + "description": "The key that was deleted from the keychain.", |
| 667 | + "minLength": 1, |
| 668 | + "maxLength": 1024, |
| 669 | + "nullable": false |
| 670 | + } |
| 671 | + } |
672 | 672 | }
|
673 | 673 | },
|
674 | 674 | "requestBodies": {
|
|
711 | 711 | "content": {
|
712 | 712 | "application/json": {
|
713 | 713 | "schema": {
|
714 |
| - "$ref": "#/components/schemas/GetKeychainEntryRequest" |
| 714 | + "$ref": "#/components/schemas/GetKeychainEntryRequestV1" |
715 | 715 | }
|
716 | 716 | }
|
717 | 717 | }
|
|
722 | 722 | "content": {
|
723 | 723 | "application/json": {
|
724 | 724 | "schema": {
|
725 |
| - "$ref": "#/components/schemas/SetKeychainEntryRequest" |
| 725 | + "$ref": "#/components/schemas/SetKeychainEntryRequestV1" |
726 | 726 | }
|
727 | 727 | }
|
728 | 728 | }
|
729 |
| - }, |
730 |
| - "keychain_has_entry_request_body": { |
731 |
| - "description": "Request body for checking a keychain entry via its key", |
| 729 | + }, |
| 730 | + "keychain_delete_entry_request_body": { |
| 731 | + "description": "Request body to delete a keychain entry via its key", |
732 | 732 | "required": true,
|
733 | 733 | "content": {
|
734 | 734 | "application/json": {
|
735 | 735 | "schema": {
|
736 |
| - "$ref": "#/components/schemas/HasKeychainEntryRequestV1" |
| 736 | + "$ref": "#/components/schemas/DeleteKeychainEntryRequestV1" |
737 | 737 | }
|
738 | 738 | }
|
739 | 739 | }
|
740 |
| - }, |
741 |
| - "keychain_delete_entry_request_body": { |
742 |
| - "description": "Request body to delete a keychain entry via its key", |
| 740 | + }, |
| 741 | + "keychain_has_entry_request_body": { |
| 742 | + "description": "Request body for checking a keychain entry via its key", |
743 | 743 | "required": true,
|
744 | 744 | "content": {
|
745 | 745 | "application/json": {
|
746 | 746 | "schema": {
|
747 |
| - "$ref": "#/components/schemas/DeleteKeychainEntryRequestV1" |
| 747 | + "$ref": "#/components/schemas/HasKeychainEntryRequestV1" |
748 | 748 | }
|
749 | 749 | }
|
750 | 750 | }
|
|
784 | 784 | "keychain_get_entry_200": {
|
785 | 785 | "description": "OK",
|
786 | 786 | "content": {
|
787 |
| - "application/json": { |
788 |
| - "schema": { |
789 |
| - "$ref": "#/components/schemas/GetKeychainEntryResponse" |
790 |
| - } |
791 |
| - } |
| 787 | + "application/json": { |
| 788 | + "schema": { |
| 789 | + "$ref": "#/components/schemas/GetKeychainEntryResponseV1" |
| 790 | + } |
| 791 | + } |
792 | 792 | }
|
793 | 793 | },
|
794 | 794 | "keychain_get_entry_400": {
|
|
807 | 807 | "description": "OK",
|
808 | 808 | "content": {
|
809 | 809 | "application/json": {
|
810 |
| - "schema": { |
811 |
| - "$ref": "#/components/schemas/SetKeychainEntryResponse" |
812 |
| - } |
| 810 | + "schema": { |
| 811 | + "$ref": "#/components/schemas/SetKeychainEntryResponseV1" |
| 812 | + } |
813 | 813 | }
|
814 | 814 | }
|
815 | 815 | },
|
|
822 | 822 | "keychain_set_entry_500": {
|
823 | 823 | "description": "Unexpected error."
|
824 | 824 | },
|
825 |
| - "keychain_has_entry_200": { |
| 825 | + "keychain_delete_entry_200": { |
826 | 826 | "description": "OK",
|
827 | 827 | "content": {
|
828 | 828 | "application/json": {
|
829 |
| - "schema": { |
830 |
| - "$ref": "#/components/schemas/HasKeychainEntryResponseV1" |
831 |
| - } |
| 829 | + "schema": { |
| 830 | + "$ref": "#/components/schemas/DeleteKeychainEntryResponseV1" |
| 831 | + } |
832 | 832 | }
|
833 |
| - } |
| 833 | + } |
834 | 834 | },
|
835 |
| - "keychain_has_entry_400": { |
| 835 | + "keychain_delete_entry_400": { |
836 | 836 | "description": "Bad request. Key must be a string and longer than 0, shorter than 1024 characters."
|
837 | 837 | },
|
838 |
| - "keychain_has_entry_401": { |
| 838 | + "keychain_delete_entry_401": { |
839 | 839 | "description": "Authorization information is missing or invalid."
|
840 | 840 | },
|
841 |
| - "keychain_has_entry_500": { |
| 841 | + "keychain_delete_entry_500": { |
842 | 842 | "description": "Unexpected error."
|
843 |
| - }, |
844 |
| - "keychain_delete_entry_200": { |
| 843 | + }, |
| 844 | + "keychain_has_entry_200": { |
845 | 845 | "description": "OK",
|
846 | 846 | "content": {
|
847 | 847 | "application/json": {
|
848 |
| - "schema": { |
849 |
| - "$ref": "#/components/schemas/DeleteKeychainEntryResponseV1" |
850 |
| - } |
| 848 | + "schema": { |
| 849 | + "$ref": "#/components/schemas/HasKeychainEntryResponseV1" |
| 850 | + } |
851 | 851 | }
|
852 |
| - } |
| 852 | + } |
853 | 853 | },
|
854 |
| - "keychain_delete_entry_400": { |
| 854 | + "keychain_has_entry_400": { |
855 | 855 | "description": "Bad request. Key must be a string and longer than 0, shorter than 1024 characters."
|
856 | 856 | },
|
857 |
| - "keychain_delete_entry_401": { |
| 857 | + "keychain_has_entry_401": { |
858 | 858 | "description": "Authorization information is missing or invalid."
|
859 | 859 | },
|
860 |
| - "keychain_delete_entry_500": { |
| 860 | + "keychain_has_entry_500": { |
861 | 861 | "description": "Unexpected error."
|
862 | 862 | }
|
863 | 863 | }
|
|
0 commit comments