sailfork 0.2.1 → 0.3.1

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.
package/dist/tools.cjs CHANGED
@@ -619,6 +619,110 @@ var ops = {
619
619
  long: false,
620
620
  paginated: false
621
621
  },
622
+ "env.chain": {
623
+ id: "env.chain",
624
+ method: "GET",
625
+ path: "/api/repos/{owner}/{repo}/env/chain",
626
+ pathParams: ["owner", "repo"],
627
+ queryParams: ["since"],
628
+ bodyParams: [],
629
+ effect: "read",
630
+ retry: "safe",
631
+ held: false,
632
+ long: false,
633
+ paginated: false
634
+ },
635
+ "env.chain.append": {
636
+ id: "env.chain.append",
637
+ method: "POST",
638
+ path: "/api/repos/{owner}/{repo}/env/chain",
639
+ pathParams: ["owner", "repo"],
640
+ queryParams: [],
641
+ bodyParams: ["entry", "files"],
642
+ effect: "write",
643
+ retry: "none",
644
+ held: false,
645
+ long: false,
646
+ paginated: false
647
+ },
648
+ "env.devices.cancel": {
649
+ id: "env.devices.cancel",
650
+ method: "DELETE",
651
+ path: "/api/repos/{owner}/{repo}/env/devices/{id}",
652
+ pathParams: ["owner", "repo", "id"],
653
+ queryParams: [],
654
+ bodyParams: [],
655
+ effect: "delete",
656
+ retry: "idempotent",
657
+ held: false,
658
+ long: false,
659
+ paginated: false
660
+ },
661
+ "env.devices.request": {
662
+ id: "env.devices.request",
663
+ method: "POST",
664
+ path: "/api/repos/{owner}/{repo}/env/devices",
665
+ pathParams: ["owner", "repo"],
666
+ queryParams: [],
667
+ bodyParams: ["name", "signKey", "ageRecipient"],
668
+ effect: "write",
669
+ retry: "none",
670
+ held: false,
671
+ long: false,
672
+ paginated: false
673
+ },
674
+ "env.list": {
675
+ id: "env.list",
676
+ method: "GET",
677
+ path: "/api/repos/{owner}/{repo}/env",
678
+ pathParams: ["owner", "repo"],
679
+ queryParams: ["content"],
680
+ bodyParams: [],
681
+ effect: "read",
682
+ retry: "safe",
683
+ held: false,
684
+ long: false,
685
+ paginated: false
686
+ },
687
+ "env.log": {
688
+ id: "env.log",
689
+ method: "GET",
690
+ path: "/api/repos/{owner}/{repo}/env/log",
691
+ pathParams: ["owner", "repo"],
692
+ queryParams: ["path"],
693
+ bodyParams: [],
694
+ effect: "read",
695
+ retry: "safe",
696
+ held: false,
697
+ long: false,
698
+ paginated: false
699
+ },
700
+ "env.version": {
701
+ id: "env.version",
702
+ method: "GET",
703
+ path: "/api/repos/{owner}/{repo}/env/version",
704
+ pathParams: ["owner", "repo"],
705
+ queryParams: ["path", "version"],
706
+ bodyParams: [],
707
+ effect: "read",
708
+ retry: "safe",
709
+ held: false,
710
+ long: false,
711
+ paginated: false
712
+ },
713
+ "env.write": {
714
+ id: "env.write",
715
+ method: "POST",
716
+ path: "/api/repos/{owner}/{repo}/env/files",
717
+ pathParams: ["owner", "repo"],
718
+ queryParams: [],
719
+ bodyParams: ["files", "message"],
720
+ effect: "write",
721
+ retry: "none",
722
+ held: false,
723
+ long: false,
724
+ paginated: false
725
+ },
622
726
  "event_subscriptions.advance": {
623
727
  id: "event_subscriptions.advance",
624
728
  method: "POST",
@@ -801,6 +905,32 @@ var ops = {
801
905
  long: false,
802
906
  paginated: false
803
907
  },
908
+ "issues.answer": {
909
+ id: "issues.answer",
910
+ method: "POST",
911
+ path: "/api/repos/{owner}/{repo}/issues/{number}/asks/{id}/answer",
912
+ pathParams: ["owner", "repo", "number", "id"],
913
+ queryParams: [],
914
+ bodyParams: ["choices", "text"],
915
+ effect: "write",
916
+ retry: "idempotent",
917
+ held: false,
918
+ long: false,
919
+ paginated: false
920
+ },
921
+ "issues.ask": {
922
+ id: "issues.ask",
923
+ method: "POST",
924
+ path: "/api/repos/{owner}/{repo}/issues/{number}/asks",
925
+ pathParams: ["owner", "repo", "number"],
926
+ queryParams: [],
927
+ bodyParams: ["kind", "text", "options", "recommended", "other"],
928
+ effect: "write",
929
+ retry: "none",
930
+ held: false,
931
+ long: false,
932
+ paginated: false
933
+ },
804
934
  "issues.claim": {
805
935
  id: "issues.claim",
806
936
  method: "POST",
@@ -1061,6 +1191,19 @@ var ops = {
1061
1191
  long: false,
1062
1192
  paginated: false
1063
1193
  },
1194
+ "issues.unask": {
1195
+ id: "issues.unask",
1196
+ method: "DELETE",
1197
+ path: "/api/repos/{owner}/{repo}/issues/{number}/asks/{id}",
1198
+ pathParams: ["owner", "repo", "number", "id"],
1199
+ queryParams: [],
1200
+ bodyParams: [],
1201
+ effect: "write",
1202
+ retry: "idempotent",
1203
+ held: false,
1204
+ long: false,
1205
+ paginated: false
1206
+ },
1064
1207
  "issues.unreact": {
1065
1208
  id: "issues.unreact",
1066
1209
  method: "DELETE",
@@ -4537,6 +4680,171 @@ cursor at or behind the stored one leaves it as it is, so two readers cannot rew
4537
4680
  tab: "tab"
4538
4681
  }
4539
4682
  },
4683
+ {
4684
+ name: "issue_answer",
4685
+ op: "issues.answer",
4686
+ description: "Answer a question on an issue, replacing an earlier answer: `choices` are option labels (one for `single`, any for `multi`), `text` the free-text answer of a `text` question or an `other` answer. You need write access or the issue's lease.",
4687
+ schema: {
4688
+ additionalProperties: false,
4689
+ description: "Answer a question on an issue, replacing an earlier answer: `choices` are option labels (one for `single`, any for\n`multi`), `text` the free-text answer of a `text` question or an `other` answer. You need write access or the\nissue's lease.",
4690
+ properties: {
4691
+ choices: {
4692
+ default: [],
4693
+ description: "The labels of the options picked.",
4694
+ items: {
4695
+ type: "string"
4696
+ },
4697
+ type: "array"
4698
+ },
4699
+ id: {
4700
+ description: "The question's id, from the issue's context.",
4701
+ type: "string"
4702
+ },
4703
+ number: {
4704
+ description: "Issue number.",
4705
+ format: "int64",
4706
+ type: "integer"
4707
+ },
4708
+ org: {
4709
+ description: "The repository's owner: a user or an org handle.",
4710
+ type: "string"
4711
+ },
4712
+ repo: {
4713
+ description: "The repository's name.",
4714
+ type: "string"
4715
+ },
4716
+ text: {
4717
+ default: "",
4718
+ description: "The answer in your own words.",
4719
+ type: "string"
4720
+ }
4721
+ },
4722
+ required: [
4723
+ "org",
4724
+ "repo",
4725
+ "number",
4726
+ "id"
4727
+ ],
4728
+ type: "object"
4729
+ },
4730
+ renames: {
4731
+ choices: "choices",
4732
+ id: "id",
4733
+ number: "number",
4734
+ org: "owner",
4735
+ repo: "repo",
4736
+ text: "text"
4737
+ }
4738
+ },
4739
+ {
4740
+ name: "issue_ask",
4741
+ op: "issues.ask",
4742
+ description: "Ask a person a question on an issue and read the answer back later from the issue's context (`asks`). `single` takes one of 2 to 10 options, `multi` any number of them, `text` free text; `other` lets a choice question also take free text. The issue reads as needing input, and its assignee is told, until it is answered. You need the issue's lease or write access.",
4743
+ schema: {
4744
+ $defs: {
4745
+ AskKind: {
4746
+ description: "How a person answers an [`IssueAsk`]: `single` (one option), `multi` (any number of options) or `text` (free text).",
4747
+ enum: [
4748
+ "single",
4749
+ "multi",
4750
+ "text"
4751
+ ],
4752
+ type: "string"
4753
+ },
4754
+ AskOptionInput: {
4755
+ anyOf: [
4756
+ {
4757
+ type: "string"
4758
+ },
4759
+ {
4760
+ $ref: "#/$defs/IssueAskOption"
4761
+ }
4762
+ ],
4763
+ description: "An option as an asker writes it: its label alone, or the label with a description."
4764
+ },
4765
+ IssueAskOption: {
4766
+ properties: {
4767
+ description: {
4768
+ type: [
4769
+ "string",
4770
+ "null"
4771
+ ]
4772
+ },
4773
+ label: {
4774
+ type: "string"
4775
+ }
4776
+ },
4777
+ required: [
4778
+ "label"
4779
+ ],
4780
+ type: "object"
4781
+ }
4782
+ },
4783
+ additionalProperties: false,
4784
+ description: "Ask a person a question on an issue and read the answer back later from the issue's context (`asks`). `single`\ntakes one of 2 to 10 options, `multi` any number of them, `text` free text; `other` lets a choice question also take\nfree text. The issue reads as needing input, and its assignee is told, until it is answered. You need the issue's\nlease or write access.",
4785
+ properties: {
4786
+ kind: {
4787
+ $ref: "#/$defs/AskKind",
4788
+ description: "`single` (pick one option), `multi` (pick any) or `text` (free text)."
4789
+ },
4790
+ number: {
4791
+ description: "Issue number.",
4792
+ format: "int64",
4793
+ type: "integer"
4794
+ },
4795
+ options: {
4796
+ default: [],
4797
+ description: "The choices of a `single` or `multi` question, 2 to 10, each a label or `{label, description}`; none for\n`text`.",
4798
+ items: {
4799
+ $ref: "#/$defs/AskOptionInput"
4800
+ },
4801
+ type: "array"
4802
+ },
4803
+ org: {
4804
+ description: "The repository's owner: a user or an org handle.",
4805
+ type: "string"
4806
+ },
4807
+ other: {
4808
+ default: false,
4809
+ description: "true lets a `single` or `multi` question also take an answer in the person's own words.",
4810
+ type: "boolean"
4811
+ },
4812
+ recommended: {
4813
+ description: "The label of the option you suggest.",
4814
+ type: [
4815
+ "string",
4816
+ "null"
4817
+ ]
4818
+ },
4819
+ repo: {
4820
+ description: "The repository's name.",
4821
+ type: "string"
4822
+ },
4823
+ text: {
4824
+ description: "The whole question, in Markdown, with what the person needs to answer it (up to 2000 characters).",
4825
+ type: "string"
4826
+ }
4827
+ },
4828
+ required: [
4829
+ "org",
4830
+ "repo",
4831
+ "number",
4832
+ "kind",
4833
+ "text"
4834
+ ],
4835
+ type: "object"
4836
+ },
4837
+ renames: {
4838
+ kind: "kind",
4839
+ number: "number",
4840
+ options: "options",
4841
+ org: "owner",
4842
+ other: "other",
4843
+ recommended: "recommended",
4844
+ repo: "repo",
4845
+ text: "text"
4846
+ }
4847
+ },
4540
4848
  {
4541
4849
  name: "issue_claim",
4542
4850
  op: "issues.claim",
@@ -5727,6 +6035,47 @@ repository.`,
5727
6035
  repo: "repo"
5728
6036
  }
5729
6037
  },
6038
+ {
6039
+ name: "issue_unask",
6040
+ op: "issues.unask",
6041
+ description: "Take a question back from an issue, answered or not, once its answer is used or it no longer matters. You need the issue's lease or write access.",
6042
+ schema: {
6043
+ description: `Take a question back from an issue, answered or not, once its answer is used or it no longer matters. You need
6044
+ the issue's lease or write access.`,
6045
+ properties: {
6046
+ id: {
6047
+ description: "The question's id, from the issue's context.",
6048
+ type: "string"
6049
+ },
6050
+ number: {
6051
+ description: "Issue number.",
6052
+ format: "int64",
6053
+ type: "integer"
6054
+ },
6055
+ org: {
6056
+ description: "The repository's owner: a user or an org handle.",
6057
+ type: "string"
6058
+ },
6059
+ repo: {
6060
+ description: "The repository's name.",
6061
+ type: "string"
6062
+ }
6063
+ },
6064
+ required: [
6065
+ "org",
6066
+ "repo",
6067
+ "number",
6068
+ "id"
6069
+ ],
6070
+ type: "object"
6071
+ },
6072
+ renames: {
6073
+ id: "id",
6074
+ number: "number",
6075
+ org: "owner",
6076
+ repo: "repo"
6077
+ }
6078
+ },
5730
6079
  {
5731
6080
  name: "issue_update",
5732
6081
  op: "issues.update",