@nikcli-ai/sdk 1.276.0 → 1.277.0
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/httpapi/client.d.ts +73 -0
- package/dist/httpapi/client.js +27 -0
- package/dist/httpapi/compat.d.ts +484 -0
- package/dist/httpapi/compat.js +507 -0
- package/dist/httpapi/generated/client.d.ts +142 -140
- package/dist/httpapi/generated/client.js +833 -817
- package/dist/httpapi/generated/types.d.ts +7014 -3518
- package/dist/httpapi/index.d.ts +1063 -1
- package/dist/httpapi/index.js +13 -1
- package/dist/index.d.ts +1 -10
- package/dist/index.js +1 -16
- package/dist/server.d.ts +1 -1
- package/package.json +4 -20
- package/dist/client.d.ts +0 -7
- package/dist/client.js +0 -25
- package/dist/gen/client/client.gen.d.ts +0 -2
- package/dist/gen/client/client.gen.js +0 -165
- package/dist/gen/client/index.d.ts +0 -7
- package/dist/gen/client/index.js +0 -5
- package/dist/gen/client/types.gen.d.ts +0 -127
- package/dist/gen/client/types.gen.js +0 -2
- package/dist/gen/client/utils.gen.d.ts +0 -38
- package/dist/gen/client/utils.gen.js +0 -226
- package/dist/gen/client.gen.d.ts +0 -12
- package/dist/gen/client.gen.js +0 -5
- package/dist/gen/core/auth.gen.d.ts +0 -18
- package/dist/gen/core/auth.gen.js +0 -14
- package/dist/gen/core/bodySerializer.gen.d.ts +0 -17
- package/dist/gen/core/bodySerializer.gen.js +0 -57
- package/dist/gen/core/params.gen.d.ts +0 -33
- package/dist/gen/core/params.gen.js +0 -89
- package/dist/gen/core/pathSerializer.gen.d.ts +0 -33
- package/dist/gen/core/pathSerializer.gen.js +0 -106
- package/dist/gen/core/serverSentEvents.gen.d.ts +0 -59
- package/dist/gen/core/serverSentEvents.gen.js +0 -117
- package/dist/gen/core/types.gen.d.ts +0 -78
- package/dist/gen/core/types.gen.js +0 -2
- package/dist/gen/core/utils.gen.d.ts +0 -14
- package/dist/gen/core/utils.gen.js +0 -69
- package/dist/gen/sdk.gen.d.ts +0 -403
- package/dist/gen/sdk.gen.js +0 -881
- package/dist/gen/types.gen.d.ts +0 -3380
- package/dist/gen/types.gen.js +0 -2
- package/dist/v2/client.d.ts +0 -8
- package/dist/v2/client.js +0 -33
- package/dist/v2/gen/client/client.gen.d.ts +0 -2
- package/dist/v2/gen/client/client.gen.js +0 -214
- package/dist/v2/gen/client/index.d.ts +0 -10
- package/dist/v2/gen/client/index.js +0 -6
- package/dist/v2/gen/client/types.gen.d.ts +0 -120
- package/dist/v2/gen/client/types.gen.js +0 -2
- package/dist/v2/gen/client/utils.gen.d.ts +0 -37
- package/dist/v2/gen/client/utils.gen.js +0 -226
- package/dist/v2/gen/client.gen.d.ts +0 -12
- package/dist/v2/gen/client.gen.js +0 -3
- package/dist/v2/gen/core/auth.gen.d.ts +0 -25
- package/dist/v2/gen/core/auth.gen.js +0 -14
- package/dist/v2/gen/core/bodySerializer.gen.d.ts +0 -25
- package/dist/v2/gen/core/bodySerializer.gen.js +0 -57
- package/dist/v2/gen/core/params.gen.d.ts +0 -43
- package/dist/v2/gen/core/params.gen.js +0 -109
- package/dist/v2/gen/core/pathSerializer.gen.d.ts +0 -33
- package/dist/v2/gen/core/pathSerializer.gen.js +0 -106
- package/dist/v2/gen/core/queryKeySerializer.gen.d.ts +0 -18
- package/dist/v2/gen/core/queryKeySerializer.gen.js +0 -93
- package/dist/v2/gen/core/serverSentEvents.gen.d.ts +0 -71
- package/dist/v2/gen/core/serverSentEvents.gen.js +0 -132
- package/dist/v2/gen/core/types.gen.d.ts +0 -83
- package/dist/v2/gen/core/types.gen.js +0 -2
- package/dist/v2/gen/core/utils.gen.d.ts +0 -19
- package/dist/v2/gen/core/utils.gen.js +0 -87
- package/dist/v2/gen/sdk.gen.d.ts +0 -3367
- package/dist/v2/gen/sdk.gen.js +0 -6914
- package/dist/v2/gen/types.gen.d.ts +0 -11330
- package/dist/v2/gen/types.gen.js +0 -2
- package/dist/v2/index.d.ts +0 -10
- package/dist/v2/index.js +0 -16
- package/dist/v2/server.d.ts +0 -23
- package/dist/v2/server.js +0 -94
|
@@ -559,1459 +559,1475 @@ export function make(options) {
|
|
|
559
559
|
empty: false,
|
|
560
560
|
}, requestOptions),
|
|
561
561
|
},
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
body: { name: input["name"], icon: input["icon"] },
|
|
562
|
+
mobile: {
|
|
563
|
+
authTokenList: (requestOptions) => request({ method: "GET", path: `/mobile/auth/token`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
564
|
+
authTokenCreate: (input, requestOptions) => request({
|
|
565
|
+
method: "POST",
|
|
566
|
+
path: `/mobile/auth/token`,
|
|
567
|
+
body: { name: input?.["name"], expiresInDays: input?.["expiresInDays"] },
|
|
569
568
|
successStatus: 200,
|
|
570
569
|
declaredStatuses: [],
|
|
571
570
|
empty: false,
|
|
572
571
|
}, requestOptions),
|
|
573
|
-
|
|
574
|
-
method: "
|
|
575
|
-
path: `/
|
|
572
|
+
authTokenRevoke: (input, requestOptions) => request({
|
|
573
|
+
method: "DELETE",
|
|
574
|
+
path: `/mobile/auth/token/${encodeURIComponent(input.id)}`,
|
|
576
575
|
successStatus: 200,
|
|
577
576
|
declaredStatuses: [],
|
|
578
577
|
empty: false,
|
|
579
578
|
}, requestOptions),
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
579
|
+
bootstrap: (requestOptions) => request({ method: "GET", path: `/mobile/bootstrap`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
580
|
+
commandList: (requestOptions) => request({ method: "GET", path: `/mobile/command`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
581
|
+
projectList: (requestOptions) => request({ method: "GET", path: `/mobile/project`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
582
|
+
memoryHistory: (requestOptions) => request({ method: "GET", path: `/mobile/memory/history`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
583
|
+
memorySearch: (input, requestOptions) => request({
|
|
584
|
+
method: "GET",
|
|
585
|
+
path: `/mobile/memory/search`,
|
|
586
|
+
query: { query: input["query"] },
|
|
584
587
|
successStatus: 200,
|
|
585
588
|
declaredStatuses: [],
|
|
586
589
|
empty: false,
|
|
587
590
|
}, requestOptions),
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
path: `/project/${encodeURIComponent(input.projectID)}/copy`,
|
|
591
|
-
body: { directory: input["directory"], force: input["force"] },
|
|
592
|
-
successStatus: 204,
|
|
593
|
-
declaredStatuses: [],
|
|
594
|
-
empty: true,
|
|
595
|
-
}, requestOptions),
|
|
596
|
-
copyRefresh: (input, requestOptions) => request({
|
|
591
|
+
memoryStashList: (requestOptions) => request({ method: "GET", path: `/mobile/memory/stash`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
592
|
+
memoryStashCreate: (input, requestOptions) => request({
|
|
597
593
|
method: "POST",
|
|
598
|
-
path: `/
|
|
594
|
+
path: `/mobile/memory/stash`,
|
|
595
|
+
body: { input: input["input"] },
|
|
599
596
|
successStatus: 200,
|
|
600
597
|
declaredStatuses: [],
|
|
601
598
|
empty: false,
|
|
602
599
|
}, requestOptions),
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
auth: (requestOptions) => request({ method: "GET", path: `/provider/auth`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
607
|
-
api: (input, requestOptions) => request({
|
|
608
|
-
method: "POST",
|
|
609
|
-
path: `/provider/${encodeURIComponent(input.providerID)}/api`,
|
|
610
|
-
body: { key: input["key"] },
|
|
600
|
+
memoryStashDelete: (input, requestOptions) => request({
|
|
601
|
+
method: "DELETE",
|
|
602
|
+
path: `/mobile/memory/stash/${encodeURIComponent(input.id)}`,
|
|
611
603
|
successStatus: 200,
|
|
612
604
|
declaredStatuses: [],
|
|
613
605
|
empty: false,
|
|
614
606
|
}, requestOptions),
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
607
|
+
githubRepos: (requestOptions) => request({ method: "GET", path: `/mobile/github/repos`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
608
|
+
githubBranches: (input, requestOptions) => request({
|
|
609
|
+
method: "GET",
|
|
610
|
+
path: `/mobile/github/repos/${encodeURIComponent(input.owner)}/${encodeURIComponent(input.repo)}/branches`,
|
|
618
611
|
successStatus: 200,
|
|
619
612
|
declaredStatuses: [],
|
|
620
613
|
empty: false,
|
|
621
614
|
}, requestOptions),
|
|
622
|
-
|
|
615
|
+
githubImports: (requestOptions) => request({ method: "GET", path: `/mobile/github/imports`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
616
|
+
githubOauthClient: (input, requestOptions) => request({
|
|
623
617
|
method: "POST",
|
|
624
|
-
path: `/
|
|
625
|
-
body: {
|
|
618
|
+
path: `/mobile/github/oauth/client`,
|
|
619
|
+
body: { clientId: input["clientId"] },
|
|
626
620
|
successStatus: 200,
|
|
627
621
|
declaredStatuses: [],
|
|
628
622
|
empty: false,
|
|
629
623
|
}, requestOptions),
|
|
630
|
-
|
|
624
|
+
githubOauthDeviceStart: (requestOptions) => request({
|
|
631
625
|
method: "POST",
|
|
632
|
-
path: `/
|
|
633
|
-
body: { method: input["method"], code: input["code"] },
|
|
626
|
+
path: `/mobile/github/oauth/device`,
|
|
634
627
|
successStatus: 200,
|
|
635
628
|
declaredStatuses: [],
|
|
636
629
|
empty: false,
|
|
637
630
|
}, requestOptions),
|
|
638
|
-
|
|
639
|
-
question: {
|
|
640
|
-
list: (requestOptions) => request({ method: "GET", path: `/question`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
641
|
-
reply: (input, requestOptions) => request({
|
|
631
|
+
githubOauthDevicePoll: (input, requestOptions) => request({
|
|
642
632
|
method: "POST",
|
|
643
|
-
path: `/
|
|
644
|
-
body: {
|
|
633
|
+
path: `/mobile/github/oauth/device/poll`,
|
|
634
|
+
body: { deviceCode: input["deviceCode"] },
|
|
645
635
|
successStatus: 200,
|
|
646
636
|
declaredStatuses: [],
|
|
647
637
|
empty: false,
|
|
648
638
|
}, requestOptions),
|
|
649
|
-
|
|
639
|
+
githubAuthSet: (input, requestOptions) => request({
|
|
650
640
|
method: "POST",
|
|
651
|
-
path: `/
|
|
641
|
+
path: `/mobile/github/auth`,
|
|
642
|
+
body: { token: input["token"] },
|
|
652
643
|
successStatus: 200,
|
|
653
644
|
declaredStatuses: [],
|
|
654
645
|
empty: false,
|
|
655
646
|
}, requestOptions),
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
list: (requestOptions) => request({ method: "GET", path: `/permission`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
659
|
-
reply: (input, requestOptions) => request({
|
|
647
|
+
githubAuthRemove: (requestOptions) => request({ method: "DELETE", path: `/mobile/github/auth`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
648
|
+
githubImport: (input, requestOptions) => request({
|
|
660
649
|
method: "POST",
|
|
661
|
-
path: `/
|
|
662
|
-
body:
|
|
650
|
+
path: `/mobile/github/import`,
|
|
651
|
+
body: input["payload"],
|
|
663
652
|
successStatus: 200,
|
|
664
653
|
declaredStatuses: [],
|
|
665
654
|
empty: false,
|
|
666
655
|
}, requestOptions),
|
|
667
|
-
|
|
668
|
-
pty: {
|
|
669
|
-
list: (requestOptions) => request({ method: "GET", path: `/pty`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
670
|
-
create: (input, requestOptions) => request({
|
|
656
|
+
githubSessionCreate: (input, requestOptions) => request({
|
|
671
657
|
method: "POST",
|
|
672
|
-
path: `/
|
|
658
|
+
path: `/mobile/github/session`,
|
|
673
659
|
body: {
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
660
|
+
owner: input["owner"],
|
|
661
|
+
repo: input["repo"],
|
|
662
|
+
cloneUrl: input["cloneUrl"],
|
|
663
|
+
htmlUrl: input["htmlUrl"],
|
|
664
|
+
defaultBranch: input["defaultBranch"],
|
|
665
|
+
baseBranch: input["baseBranch"],
|
|
666
|
+
private: input["private"],
|
|
667
|
+
title: input["title"],
|
|
668
|
+
executionTarget: input["executionTarget"],
|
|
679
669
|
},
|
|
680
670
|
successStatus: 200,
|
|
681
|
-
declaredStatuses: [
|
|
671
|
+
declaredStatuses: [],
|
|
682
672
|
empty: false,
|
|
683
673
|
}, requestOptions),
|
|
684
|
-
|
|
674
|
+
sessionList: (input, requestOptions) => request({
|
|
685
675
|
method: "GET",
|
|
686
|
-
path: `/
|
|
676
|
+
path: `/mobile/session`,
|
|
677
|
+
query: { limit: input?.["limit"], search: input?.["search"] },
|
|
687
678
|
successStatus: 200,
|
|
688
|
-
declaredStatuses: [
|
|
679
|
+
declaredStatuses: [],
|
|
689
680
|
empty: false,
|
|
690
681
|
}, requestOptions),
|
|
691
|
-
|
|
692
|
-
method: "
|
|
693
|
-
path: `/
|
|
694
|
-
body: {
|
|
682
|
+
sessionCreate: (input, requestOptions) => request({
|
|
683
|
+
method: "POST",
|
|
684
|
+
path: `/mobile/session`,
|
|
685
|
+
body: {
|
|
686
|
+
parentID: input?.["parentID"],
|
|
687
|
+
title: input?.["title"],
|
|
688
|
+
permission: input?.["permission"],
|
|
689
|
+
github: input?.["github"],
|
|
690
|
+
executionTarget: input?.["executionTarget"],
|
|
691
|
+
},
|
|
695
692
|
successStatus: 200,
|
|
696
|
-
declaredStatuses: [
|
|
693
|
+
declaredStatuses: [],
|
|
697
694
|
empty: false,
|
|
698
695
|
}, requestOptions),
|
|
699
|
-
|
|
700
|
-
method: "
|
|
701
|
-
path: `/
|
|
696
|
+
sessionDetail: (input, requestOptions) => request({
|
|
697
|
+
method: "GET",
|
|
698
|
+
path: `/mobile/session/${encodeURIComponent(input.sessionID)}`,
|
|
702
699
|
successStatus: 200,
|
|
703
700
|
declaredStatuses: [],
|
|
704
701
|
empty: false,
|
|
705
702
|
}, requestOptions),
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
templates: (requestOptions) => request({ method: "GET", path: `/loop/templates`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
710
|
-
generate: (input, requestOptions) => request({
|
|
711
|
-
method: "POST",
|
|
712
|
-
path: `/loop/generate`,
|
|
713
|
-
body: { description: input["description"], model: input["model"], agent: input["agent"] },
|
|
703
|
+
sessionDelete: (input, requestOptions) => request({
|
|
704
|
+
method: "DELETE",
|
|
705
|
+
path: `/mobile/session/${encodeURIComponent(input.sessionID)}`,
|
|
714
706
|
successStatus: 200,
|
|
715
|
-
declaredStatuses: [
|
|
707
|
+
declaredStatuses: [],
|
|
716
708
|
empty: false,
|
|
717
709
|
}, requestOptions),
|
|
718
|
-
|
|
710
|
+
sessionDiff: (input, requestOptions) => request({
|
|
719
711
|
method: "GET",
|
|
720
|
-
path: `/
|
|
721
|
-
query: { limit: input?.["limit"] },
|
|
712
|
+
path: `/mobile/session/${encodeURIComponent(input.sessionID)}/diff/${encodeURIComponent(input.messageID)}`,
|
|
722
713
|
successStatus: 200,
|
|
723
714
|
declaredStatuses: [],
|
|
724
715
|
empty: false,
|
|
725
716
|
}, requestOptions),
|
|
726
|
-
|
|
717
|
+
sessionCommandList: (input, requestOptions) => request({
|
|
727
718
|
method: "GET",
|
|
728
|
-
path: `/
|
|
719
|
+
path: `/mobile/session/${encodeURIComponent(input.sessionID)}/command`,
|
|
729
720
|
successStatus: 200,
|
|
730
|
-
declaredStatuses: [
|
|
721
|
+
declaredStatuses: [],
|
|
731
722
|
empty: false,
|
|
732
723
|
}, requestOptions),
|
|
733
|
-
|
|
734
|
-
method: "
|
|
735
|
-
path: `/
|
|
736
|
-
body:
|
|
724
|
+
sessionCommand: (input, requestOptions) => request({
|
|
725
|
+
method: "POST",
|
|
726
|
+
path: `/mobile/session/${encodeURIComponent(input.sessionID)}/command`,
|
|
727
|
+
body: {
|
|
728
|
+
command: input["command"],
|
|
729
|
+
arguments: input["arguments"],
|
|
730
|
+
agent: input["agent"],
|
|
731
|
+
model: input["model"],
|
|
732
|
+
variant: input["variant"],
|
|
733
|
+
},
|
|
737
734
|
successStatus: 200,
|
|
738
|
-
declaredStatuses: [
|
|
735
|
+
declaredStatuses: [],
|
|
739
736
|
empty: false,
|
|
740
737
|
}, requestOptions),
|
|
741
|
-
|
|
738
|
+
sessionMessage: (input, requestOptions) => request({
|
|
742
739
|
method: "POST",
|
|
743
|
-
path: `/
|
|
744
|
-
body:
|
|
740
|
+
path: `/mobile/session/${encodeURIComponent(input.sessionID)}/message`,
|
|
741
|
+
body: {
|
|
742
|
+
messageID: input["messageID"],
|
|
743
|
+
model: input["model"],
|
|
744
|
+
agent: input["agent"],
|
|
745
|
+
noReply: input["noReply"],
|
|
746
|
+
tools: input["tools"],
|
|
747
|
+
format: input["format"],
|
|
748
|
+
system: input["system"],
|
|
749
|
+
variant: input["variant"],
|
|
750
|
+
parts: input["parts"],
|
|
751
|
+
},
|
|
745
752
|
successStatus: 200,
|
|
746
|
-
declaredStatuses: [
|
|
753
|
+
declaredStatuses: [],
|
|
747
754
|
empty: false,
|
|
748
755
|
}, requestOptions),
|
|
749
|
-
|
|
750
|
-
method: "
|
|
751
|
-
path: `/
|
|
756
|
+
sessionAbort: (input, requestOptions) => request({
|
|
757
|
+
method: "POST",
|
|
758
|
+
path: `/mobile/session/${encodeURIComponent(input.sessionID)}/abort`,
|
|
752
759
|
successStatus: 200,
|
|
753
|
-
declaredStatuses: [
|
|
760
|
+
declaredStatuses: [],
|
|
754
761
|
empty: false,
|
|
755
762
|
}, requestOptions),
|
|
756
|
-
|
|
763
|
+
permissionRespond: (input, requestOptions) => request({
|
|
757
764
|
method: "POST",
|
|
758
|
-
path: `/
|
|
759
|
-
body: {
|
|
765
|
+
path: `/mobile/session/${encodeURIComponent(input.sessionID)}/permissions/${encodeURIComponent(input.permissionID)}`,
|
|
766
|
+
body: { response: input["response"] },
|
|
760
767
|
successStatus: 200,
|
|
761
|
-
declaredStatuses: [
|
|
768
|
+
declaredStatuses: [],
|
|
762
769
|
empty: false,
|
|
763
770
|
}, requestOptions),
|
|
764
|
-
|
|
771
|
+
questionRespond: (input, requestOptions) => request({
|
|
765
772
|
method: "POST",
|
|
766
|
-
path: `/
|
|
773
|
+
path: `/mobile/session/${encodeURIComponent(input.sessionID)}/question/${encodeURIComponent(input.requestID)}`,
|
|
774
|
+
body: { answers: input["answers"] },
|
|
767
775
|
successStatus: 200,
|
|
768
|
-
declaredStatuses: [
|
|
776
|
+
declaredStatuses: [],
|
|
769
777
|
empty: false,
|
|
770
778
|
}, requestOptions),
|
|
771
|
-
|
|
772
|
-
method: "
|
|
773
|
-
path: `/
|
|
779
|
+
questionReject: (input, requestOptions) => request({
|
|
780
|
+
method: "DELETE",
|
|
781
|
+
path: `/mobile/session/${encodeURIComponent(input.sessionID)}/question/${encodeURIComponent(input.requestID)}`,
|
|
774
782
|
successStatus: 200,
|
|
775
|
-
declaredStatuses: [
|
|
783
|
+
declaredStatuses: [],
|
|
776
784
|
empty: false,
|
|
777
785
|
}, requestOptions),
|
|
778
|
-
|
|
786
|
+
sessionPublish: (input, requestOptions) => request({
|
|
779
787
|
method: "POST",
|
|
780
|
-
path: `/
|
|
788
|
+
path: `/mobile/session/${encodeURIComponent(input.sessionID)}/publish`,
|
|
789
|
+
body: { title: input["title"], body: input["body"], commitMessage: input["commitMessage"] },
|
|
781
790
|
successStatus: 200,
|
|
782
|
-
declaredStatuses: [
|
|
791
|
+
declaredStatuses: [],
|
|
783
792
|
empty: false,
|
|
784
793
|
}, requestOptions),
|
|
785
|
-
|
|
794
|
+
sessionCleanup: (input, requestOptions) => request({
|
|
786
795
|
method: "POST",
|
|
787
|
-
path: `/
|
|
796
|
+
path: `/mobile/session/${encodeURIComponent(input.sessionID)}/cleanup`,
|
|
788
797
|
successStatus: 200,
|
|
789
|
-
declaredStatuses: [
|
|
798
|
+
declaredStatuses: [],
|
|
790
799
|
empty: false,
|
|
791
800
|
}, requestOptions),
|
|
792
|
-
|
|
801
|
+
sessionStream: (input, requestOptions) => sse({
|
|
793
802
|
method: "GET",
|
|
794
|
-
path: `/
|
|
795
|
-
query: { limit: input["limit"] },
|
|
803
|
+
path: `/mobile/session/${encodeURIComponent(input.sessionID)}/stream`,
|
|
796
804
|
successStatus: 200,
|
|
797
805
|
declaredStatuses: [],
|
|
798
806
|
empty: false,
|
|
799
807
|
}, requestOptions),
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
808
|
+
sessionRename: (input, requestOptions) => request({
|
|
809
|
+
method: "POST",
|
|
810
|
+
path: `/mobile/session/${encodeURIComponent(input.sessionID)}/rename`,
|
|
811
|
+
body: { title: input["title"] },
|
|
812
|
+
successStatus: 200,
|
|
813
|
+
declaredStatuses: [],
|
|
814
|
+
empty: false,
|
|
815
|
+
}, requestOptions),
|
|
816
|
+
teleportUploadBegin: (requestOptions) => request({ method: "POST", path: `/mobile/teleport/upload`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
817
|
+
teleportUploadChunk: (input, requestOptions) => request({
|
|
818
|
+
method: "POST",
|
|
819
|
+
path: `/mobile/teleport/upload/${encodeURIComponent(input.uploadID)}`,
|
|
820
|
+
successStatus: 200,
|
|
821
|
+
declaredStatuses: [],
|
|
822
|
+
empty: false,
|
|
823
|
+
}, requestOptions),
|
|
824
|
+
teleportIn: (input, requestOptions) => request({
|
|
825
|
+
method: "POST",
|
|
826
|
+
path: `/mobile/teleport`,
|
|
827
|
+
body: {
|
|
828
|
+
title: input["title"],
|
|
829
|
+
name: input["name"],
|
|
830
|
+
origin: input["origin"],
|
|
831
|
+
permission: input["permission"],
|
|
832
|
+
messages: input["messages"],
|
|
833
|
+
uploadID: input["uploadID"],
|
|
811
834
|
},
|
|
812
835
|
successStatus: 200,
|
|
813
836
|
declaredStatuses: [],
|
|
814
837
|
empty: false,
|
|
815
838
|
}, requestOptions),
|
|
816
|
-
|
|
839
|
+
teleportOut: (input, requestOptions) => request({
|
|
817
840
|
method: "POST",
|
|
818
|
-
path: `/session`,
|
|
841
|
+
path: `/mobile/session/${encodeURIComponent(input.sessionID)}/teleport`,
|
|
819
842
|
body: {
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
github: input?.["github"],
|
|
825
|
-
workspaceID: input?.["workspaceID"],
|
|
843
|
+
url: input["url"],
|
|
844
|
+
token: input["token"],
|
|
845
|
+
content: input["content"],
|
|
846
|
+
includeGit: input["includeGit"],
|
|
826
847
|
},
|
|
827
848
|
successStatus: 200,
|
|
828
849
|
declaredStatuses: [],
|
|
829
850
|
empty: false,
|
|
830
851
|
}, requestOptions),
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
852
|
+
worktreeCreate: (input, requestOptions) => request({
|
|
853
|
+
method: "POST",
|
|
854
|
+
path: `/mobile/worktree`,
|
|
855
|
+
body: input["payload"],
|
|
835
856
|
successStatus: 200,
|
|
836
|
-
declaredStatuses: [
|
|
857
|
+
declaredStatuses: [],
|
|
837
858
|
empty: false,
|
|
838
859
|
}, requestOptions),
|
|
839
|
-
|
|
860
|
+
worktreeRemove: (input, requestOptions) => request({
|
|
840
861
|
method: "DELETE",
|
|
841
|
-
path: `/
|
|
862
|
+
path: `/mobile/worktree`,
|
|
863
|
+
body: input["payload"],
|
|
842
864
|
successStatus: 200,
|
|
843
|
-
declaredStatuses: [
|
|
865
|
+
declaredStatuses: [],
|
|
844
866
|
empty: false,
|
|
845
867
|
}, requestOptions),
|
|
846
|
-
|
|
847
|
-
method: "
|
|
848
|
-
path: `/
|
|
849
|
-
body:
|
|
868
|
+
worktreeReset: (input, requestOptions) => request({
|
|
869
|
+
method: "POST",
|
|
870
|
+
path: `/mobile/worktree/reset`,
|
|
871
|
+
body: input["payload"],
|
|
850
872
|
successStatus: 200,
|
|
851
|
-
declaredStatuses: [
|
|
873
|
+
declaredStatuses: [],
|
|
852
874
|
empty: false,
|
|
853
875
|
}, requestOptions),
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
876
|
+
gitStatus: (requestOptions) => request({ method: "GET", path: `/mobile/git/status`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
877
|
+
gitDiff: (input, requestOptions) => request({
|
|
878
|
+
method: "GET",
|
|
879
|
+
path: `/mobile/git/diff`,
|
|
880
|
+
query: { file: input?.["file"], staged: input?.["staged"] },
|
|
858
881
|
successStatus: 200,
|
|
859
|
-
declaredStatuses: [
|
|
882
|
+
declaredStatuses: [],
|
|
860
883
|
empty: false,
|
|
861
884
|
}, requestOptions),
|
|
862
|
-
|
|
863
|
-
method: "
|
|
864
|
-
path: `/
|
|
885
|
+
gitCommits: (input, requestOptions) => request({
|
|
886
|
+
method: "GET",
|
|
887
|
+
path: `/mobile/git/commits`,
|
|
888
|
+
query: { limit: input?.["limit"] },
|
|
865
889
|
successStatus: 200,
|
|
866
890
|
declaredStatuses: [],
|
|
867
891
|
empty: false,
|
|
868
892
|
}, requestOptions),
|
|
869
|
-
|
|
893
|
+
gitBranches: (requestOptions) => request({ method: "GET", path: `/mobile/git/branches`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
894
|
+
gitCommit: (input, requestOptions) => request({
|
|
870
895
|
method: "POST",
|
|
871
|
-
path: `/
|
|
872
|
-
body: {
|
|
896
|
+
path: `/mobile/git/commit`,
|
|
897
|
+
body: {
|
|
898
|
+
message: input["message"],
|
|
899
|
+
files: input["files"],
|
|
900
|
+
amend: input["amend"],
|
|
901
|
+
stagedOnly: input["stagedOnly"],
|
|
902
|
+
},
|
|
873
903
|
successStatus: 200,
|
|
874
|
-
declaredStatuses: [
|
|
904
|
+
declaredStatuses: [],
|
|
875
905
|
empty: false,
|
|
876
906
|
}, requestOptions),
|
|
877
|
-
|
|
907
|
+
gitCheckout: (input, requestOptions) => request({
|
|
878
908
|
method: "POST",
|
|
879
|
-
path: `/
|
|
909
|
+
path: `/mobile/git/checkout`,
|
|
910
|
+
body: { branch: input["branch"], create: input["create"] },
|
|
880
911
|
successStatus: 200,
|
|
881
|
-
declaredStatuses: [
|
|
912
|
+
declaredStatuses: [],
|
|
882
913
|
empty: false,
|
|
883
914
|
}, requestOptions),
|
|
884
|
-
|
|
915
|
+
gitStage: (input, requestOptions) => request({
|
|
885
916
|
method: "POST",
|
|
886
|
-
path: `/
|
|
917
|
+
path: `/mobile/git/stage`,
|
|
918
|
+
body: { files: input["files"] },
|
|
887
919
|
successStatus: 200,
|
|
888
|
-
declaredStatuses: [
|
|
920
|
+
declaredStatuses: [],
|
|
889
921
|
empty: false,
|
|
890
922
|
}, requestOptions),
|
|
891
|
-
|
|
892
|
-
method: "
|
|
893
|
-
path: `/
|
|
923
|
+
gitUnstage: (input, requestOptions) => request({
|
|
924
|
+
method: "POST",
|
|
925
|
+
path: `/mobile/git/unstage`,
|
|
926
|
+
body: { files: input["files"] },
|
|
894
927
|
successStatus: 200,
|
|
895
|
-
declaredStatuses: [
|
|
928
|
+
declaredStatuses: [],
|
|
896
929
|
empty: false,
|
|
897
930
|
}, requestOptions),
|
|
898
|
-
|
|
931
|
+
gitDiscard: (input, requestOptions) => request({
|
|
899
932
|
method: "POST",
|
|
900
|
-
path: `/
|
|
901
|
-
body: {
|
|
933
|
+
path: `/mobile/git/discard`,
|
|
934
|
+
body: { files: input["files"] },
|
|
902
935
|
successStatus: 200,
|
|
903
|
-
declaredStatuses: [
|
|
936
|
+
declaredStatuses: [],
|
|
904
937
|
empty: false,
|
|
905
938
|
}, requestOptions),
|
|
906
|
-
|
|
939
|
+
gitPush: (input, requestOptions) => request({
|
|
907
940
|
method: "POST",
|
|
908
|
-
path: `/
|
|
909
|
-
|
|
910
|
-
messageID: input["messageID"],
|
|
911
|
-
agent: input["agent"],
|
|
912
|
-
model: input["model"],
|
|
913
|
-
arguments: input["arguments"],
|
|
914
|
-
command: input["command"],
|
|
915
|
-
variant: input["variant"],
|
|
916
|
-
parts: input["parts"],
|
|
917
|
-
},
|
|
941
|
+
path: `/mobile/git/push`,
|
|
942
|
+
query: { upstream: input?.["upstream"] },
|
|
918
943
|
successStatus: 200,
|
|
919
|
-
declaredStatuses: [
|
|
944
|
+
declaredStatuses: [],
|
|
920
945
|
empty: false,
|
|
921
946
|
}, requestOptions),
|
|
922
|
-
|
|
947
|
+
gitPull: (requestOptions) => request({ method: "POST", path: `/mobile/git/pull`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
948
|
+
loopList: (requestOptions) => request({ method: "GET", path: `/mobile/loops`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
949
|
+
loopCreate: (input, requestOptions) => request({
|
|
923
950
|
method: "POST",
|
|
924
|
-
path: `/
|
|
925
|
-
body:
|
|
951
|
+
path: `/mobile/loops`,
|
|
952
|
+
body: input["payload"],
|
|
926
953
|
successStatus: 200,
|
|
927
|
-
declaredStatuses: [
|
|
954
|
+
declaredStatuses: [],
|
|
928
955
|
empty: false,
|
|
929
956
|
}, requestOptions),
|
|
930
|
-
|
|
957
|
+
loopTemplates: (requestOptions) => request({ method: "GET", path: `/mobile/loops/templates`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
958
|
+
loopGenerate: (input, requestOptions) => request({
|
|
931
959
|
method: "POST",
|
|
932
|
-
path: `/
|
|
933
|
-
body: {
|
|
960
|
+
path: `/mobile/loops/generate`,
|
|
961
|
+
body: { description: input["description"], model: input["model"] },
|
|
934
962
|
successStatus: 200,
|
|
935
|
-
declaredStatuses: [
|
|
963
|
+
declaredStatuses: [],
|
|
936
964
|
empty: false,
|
|
937
965
|
}, requestOptions),
|
|
938
|
-
|
|
966
|
+
loopRunsRecent: (input, requestOptions) => request({
|
|
939
967
|
method: "GET",
|
|
940
|
-
path: `/
|
|
968
|
+
path: `/mobile/loops/runs/recent`,
|
|
969
|
+
query: { limit: input?.["limit"] },
|
|
941
970
|
successStatus: 200,
|
|
942
|
-
declaredStatuses: [
|
|
971
|
+
declaredStatuses: [],
|
|
943
972
|
empty: false,
|
|
944
973
|
}, requestOptions),
|
|
945
|
-
|
|
974
|
+
loopGet: (input, requestOptions) => request({
|
|
946
975
|
method: "GET",
|
|
947
|
-
path: `/
|
|
976
|
+
path: `/mobile/loops/${encodeURIComponent(input.id)}`,
|
|
948
977
|
successStatus: 200,
|
|
949
|
-
declaredStatuses: [
|
|
978
|
+
declaredStatuses: [],
|
|
950
979
|
empty: false,
|
|
951
980
|
}, requestOptions),
|
|
952
|
-
|
|
953
|
-
method: "
|
|
954
|
-
path: `/
|
|
955
|
-
query: { messageID: input["messageID"] },
|
|
981
|
+
loopDelete: (input, requestOptions) => request({
|
|
982
|
+
method: "DELETE",
|
|
983
|
+
path: `/mobile/loops/${encodeURIComponent(input.id)}`,
|
|
956
984
|
successStatus: 200,
|
|
957
|
-
declaredStatuses: [
|
|
985
|
+
declaredStatuses: [],
|
|
958
986
|
empty: false,
|
|
959
987
|
}, requestOptions),
|
|
960
|
-
|
|
961
|
-
method: "
|
|
962
|
-
path: `/
|
|
963
|
-
|
|
988
|
+
loopUpdate: (input, requestOptions) => request({
|
|
989
|
+
method: "PATCH",
|
|
990
|
+
path: `/mobile/loops/${encodeURIComponent(input.id)}`,
|
|
991
|
+
body: input["payload"],
|
|
964
992
|
successStatus: 200,
|
|
965
|
-
declaredStatuses: [
|
|
993
|
+
declaredStatuses: [],
|
|
966
994
|
empty: false,
|
|
967
995
|
}, requestOptions),
|
|
968
|
-
|
|
996
|
+
loopRuns: (input, requestOptions) => request({
|
|
969
997
|
method: "GET",
|
|
970
|
-
path: `/
|
|
998
|
+
path: `/mobile/loops/${encodeURIComponent(input.id)}/runs`,
|
|
999
|
+
query: { limit: input["limit"] },
|
|
971
1000
|
successStatus: 200,
|
|
972
|
-
declaredStatuses: [
|
|
1001
|
+
declaredStatuses: [],
|
|
973
1002
|
empty: false,
|
|
974
1003
|
}, requestOptions),
|
|
975
|
-
|
|
976
|
-
method: "
|
|
977
|
-
path: `/
|
|
1004
|
+
loopRun: (input, requestOptions) => request({
|
|
1005
|
+
method: "POST",
|
|
1006
|
+
path: `/mobile/loops/${encodeURIComponent(input.id)}/run`,
|
|
978
1007
|
successStatus: 200,
|
|
979
|
-
declaredStatuses: [
|
|
1008
|
+
declaredStatuses: [],
|
|
980
1009
|
empty: false,
|
|
981
1010
|
}, requestOptions),
|
|
982
|
-
|
|
983
|
-
method: "
|
|
984
|
-
path: `/
|
|
1011
|
+
loopAbort: (input, requestOptions) => request({
|
|
1012
|
+
method: "POST",
|
|
1013
|
+
path: `/mobile/loops/${encodeURIComponent(input.id)}/abort`,
|
|
985
1014
|
successStatus: 200,
|
|
986
|
-
declaredStatuses: [
|
|
1015
|
+
declaredStatuses: [],
|
|
987
1016
|
empty: false,
|
|
988
1017
|
}, requestOptions),
|
|
989
|
-
|
|
990
|
-
method: "
|
|
991
|
-
path: `/
|
|
1018
|
+
loopToggle: (input, requestOptions) => request({
|
|
1019
|
+
method: "POST",
|
|
1020
|
+
path: `/mobile/loops/${encodeURIComponent(input.id)}/toggle`,
|
|
1021
|
+
body: { enabled: input["enabled"] },
|
|
992
1022
|
successStatus: 200,
|
|
993
|
-
declaredStatuses: [
|
|
1023
|
+
declaredStatuses: [],
|
|
994
1024
|
empty: false,
|
|
995
1025
|
}, requestOptions),
|
|
996
|
-
|
|
997
|
-
method: "
|
|
998
|
-
path: `/
|
|
1026
|
+
loopPause: (input, requestOptions) => request({
|
|
1027
|
+
method: "POST",
|
|
1028
|
+
path: `/mobile/loops/${encodeURIComponent(input.id)}/pause`,
|
|
999
1029
|
successStatus: 200,
|
|
1000
|
-
declaredStatuses: [
|
|
1030
|
+
declaredStatuses: [],
|
|
1001
1031
|
empty: false,
|
|
1002
1032
|
}, requestOptions),
|
|
1003
|
-
|
|
1004
|
-
method: "
|
|
1005
|
-
path: `/
|
|
1033
|
+
loopResume: (input, requestOptions) => request({
|
|
1034
|
+
method: "POST",
|
|
1035
|
+
path: `/mobile/loops/${encodeURIComponent(input.id)}/resume`,
|
|
1006
1036
|
successStatus: 200,
|
|
1007
|
-
declaredStatuses: [
|
|
1008
|
-
empty: false,
|
|
1009
|
-
}, requestOptions),
|
|
1010
|
-
instructions: (input, requestOptions) => request({
|
|
1011
|
-
method: "GET",
|
|
1012
|
-
path: `/session/${encodeURIComponent(input.sessionID)}/instructions`,
|
|
1013
|
-
successStatus: 200,
|
|
1014
|
-
declaredStatuses: [404, 409],
|
|
1015
|
-
empty: false,
|
|
1016
|
-
}, requestOptions),
|
|
1017
|
-
contextBreakdown: (input, requestOptions) => request({
|
|
1018
|
-
method: "GET",
|
|
1019
|
-
path: `/session/${encodeURIComponent(input.sessionID)}/context`,
|
|
1020
|
-
successStatus: 200,
|
|
1021
|
-
declaredStatuses: [404, 409],
|
|
1037
|
+
declaredStatuses: [],
|
|
1022
1038
|
empty: false,
|
|
1023
1039
|
}, requestOptions),
|
|
1024
|
-
|
|
1040
|
+
routineList: (requestOptions) => request({ method: "GET", path: `/mobile/routines`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
1041
|
+
routineCreate: (input, requestOptions) => request({
|
|
1025
1042
|
method: "POST",
|
|
1026
|
-
path: `/
|
|
1027
|
-
body:
|
|
1028
|
-
successStatus: 200,
|
|
1029
|
-
declaredStatuses: [404, 409],
|
|
1030
|
-
empty: false,
|
|
1031
|
-
}, requestOptions),
|
|
1032
|
-
goal: (input, requestOptions) => request({
|
|
1033
|
-
method: "GET",
|
|
1034
|
-
path: `/session/${encodeURIComponent(input.sessionID)}/goal`,
|
|
1043
|
+
path: `/mobile/routines`,
|
|
1044
|
+
body: input["payload"],
|
|
1035
1045
|
successStatus: 200,
|
|
1036
1046
|
declaredStatuses: [],
|
|
1037
1047
|
empty: false,
|
|
1038
1048
|
}, requestOptions),
|
|
1039
|
-
|
|
1049
|
+
routineGet: (input, requestOptions) => request({
|
|
1040
1050
|
method: "GET",
|
|
1041
|
-
path: `/
|
|
1051
|
+
path: `/mobile/routines/${encodeURIComponent(input.id)}`,
|
|
1042
1052
|
successStatus: 200,
|
|
1043
|
-
declaredStatuses: [
|
|
1053
|
+
declaredStatuses: [],
|
|
1044
1054
|
empty: false,
|
|
1045
1055
|
}, requestOptions),
|
|
1046
|
-
|
|
1047
|
-
method: "
|
|
1048
|
-
path: `/
|
|
1056
|
+
routineDelete: (input, requestOptions) => request({
|
|
1057
|
+
method: "DELETE",
|
|
1058
|
+
path: `/mobile/routines/${encodeURIComponent(input.id)}`,
|
|
1049
1059
|
successStatus: 200,
|
|
1050
1060
|
declaredStatuses: [],
|
|
1051
1061
|
empty: false,
|
|
1052
1062
|
}, requestOptions),
|
|
1053
|
-
|
|
1054
|
-
method: "
|
|
1055
|
-
path: `/
|
|
1063
|
+
routineUpdate: (input, requestOptions) => request({
|
|
1064
|
+
method: "PATCH",
|
|
1065
|
+
path: `/mobile/routines/${encodeURIComponent(input.id)}`,
|
|
1066
|
+
body: input["payload"],
|
|
1056
1067
|
successStatus: 200,
|
|
1057
1068
|
declaredStatuses: [],
|
|
1058
1069
|
empty: false,
|
|
1059
1070
|
}, requestOptions),
|
|
1060
|
-
|
|
1071
|
+
routineRun: (input, requestOptions) => request({
|
|
1061
1072
|
method: "POST",
|
|
1062
|
-
path: `/
|
|
1073
|
+
path: `/mobile/routines/${encodeURIComponent(input.id)}/run`,
|
|
1074
|
+
body: { text: input["text"] },
|
|
1063
1075
|
successStatus: 200,
|
|
1064
1076
|
declaredStatuses: [],
|
|
1065
1077
|
empty: false,
|
|
1066
1078
|
}, requestOptions),
|
|
1067
|
-
|
|
1068
|
-
method: "
|
|
1069
|
-
path: `/
|
|
1070
|
-
successStatus: 200,
|
|
1071
|
-
declaredStatuses: [404, 409],
|
|
1072
|
-
empty: false,
|
|
1073
|
-
}, requestOptions),
|
|
1074
|
-
monitorLog: (input, requestOptions) => request({
|
|
1075
|
-
method: "GET",
|
|
1076
|
-
path: `/session/${encodeURIComponent(input.sessionID)}/monitor/${encodeURIComponent(input.monitorID)}/log`,
|
|
1077
|
-
query: { lines: input["lines"] },
|
|
1079
|
+
routinePause: (input, requestOptions) => request({
|
|
1080
|
+
method: "POST",
|
|
1081
|
+
path: `/mobile/routines/${encodeURIComponent(input.id)}/pause`,
|
|
1078
1082
|
successStatus: 200,
|
|
1079
|
-
declaredStatuses: [
|
|
1083
|
+
declaredStatuses: [],
|
|
1080
1084
|
empty: false,
|
|
1081
1085
|
}, requestOptions),
|
|
1082
|
-
|
|
1086
|
+
routineResume: (input, requestOptions) => request({
|
|
1083
1087
|
method: "POST",
|
|
1084
|
-
path: `/
|
|
1088
|
+
path: `/mobile/routines/${encodeURIComponent(input.id)}/resume`,
|
|
1085
1089
|
successStatus: 200,
|
|
1086
|
-
declaredStatuses: [
|
|
1090
|
+
declaredStatuses: [],
|
|
1087
1091
|
empty: false,
|
|
1088
1092
|
}, requestOptions),
|
|
1089
|
-
|
|
1090
|
-
tui: {
|
|
1091
|
-
appendPrompt: (input, requestOptions) => request({
|
|
1093
|
+
routineTrigger: (input, requestOptions) => request({
|
|
1092
1094
|
method: "POST",
|
|
1093
|
-
path: `/
|
|
1094
|
-
body: input["
|
|
1095
|
+
path: `/mobile/routines/trigger/${encodeURIComponent(input.token)}`,
|
|
1096
|
+
body: { text: input["text"] },
|
|
1095
1097
|
successStatus: 200,
|
|
1096
|
-
declaredStatuses: [
|
|
1098
|
+
declaredStatuses: [],
|
|
1097
1099
|
empty: false,
|
|
1098
1100
|
}, requestOptions),
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
openThemes: (requestOptions) => request({ method: "POST", path: `/tui/open-themes`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
1102
|
-
openModels: (requestOptions) => request({ method: "POST", path: `/tui/open-models`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
1103
|
-
submitPrompt: (requestOptions) => request({ method: "POST", path: `/tui/submit-prompt`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
1104
|
-
clearPrompt: (requestOptions) => request({ method: "POST", path: `/tui/clear-prompt`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
1105
|
-
executeCommand: (input, requestOptions) => request({
|
|
1101
|
+
ptyList: (requestOptions) => request({ method: "GET", path: `/mobile/pty`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
1102
|
+
ptyCreate: (input, requestOptions) => request({
|
|
1106
1103
|
method: "POST",
|
|
1107
|
-
path: `/
|
|
1108
|
-
body:
|
|
1104
|
+
path: `/mobile/pty`,
|
|
1105
|
+
body: {
|
|
1106
|
+
command: input?.["command"],
|
|
1107
|
+
args: input?.["args"],
|
|
1108
|
+
cwd: input?.["cwd"],
|
|
1109
|
+
title: input?.["title"],
|
|
1110
|
+
env: input?.["env"],
|
|
1111
|
+
},
|
|
1109
1112
|
successStatus: 200,
|
|
1110
|
-
declaredStatuses: [
|
|
1113
|
+
declaredStatuses: [],
|
|
1111
1114
|
empty: false,
|
|
1112
1115
|
}, requestOptions),
|
|
1113
|
-
|
|
1114
|
-
method: "
|
|
1115
|
-
path: `/
|
|
1116
|
-
body: input["payload"],
|
|
1116
|
+
ptyGet: (input, requestOptions) => request({
|
|
1117
|
+
method: "GET",
|
|
1118
|
+
path: `/mobile/pty/${encodeURIComponent(input.ptyID)}`,
|
|
1117
1119
|
successStatus: 200,
|
|
1118
|
-
declaredStatuses: [
|
|
1120
|
+
declaredStatuses: [],
|
|
1119
1121
|
empty: false,
|
|
1120
1122
|
}, requestOptions),
|
|
1121
|
-
|
|
1122
|
-
method: "
|
|
1123
|
-
path: `/
|
|
1124
|
-
body: input["
|
|
1123
|
+
ptyUpdate: (input, requestOptions) => request({
|
|
1124
|
+
method: "PUT",
|
|
1125
|
+
path: `/mobile/pty/${encodeURIComponent(input.ptyID)}`,
|
|
1126
|
+
body: { title: input["title"], size: input["size"] },
|
|
1125
1127
|
successStatus: 200,
|
|
1126
|
-
declaredStatuses: [
|
|
1128
|
+
declaredStatuses: [],
|
|
1127
1129
|
empty: false,
|
|
1128
1130
|
}, requestOptions),
|
|
1129
|
-
|
|
1130
|
-
method: "
|
|
1131
|
-
path: `/
|
|
1132
|
-
body: input["payload"],
|
|
1131
|
+
ptyRemove: (input, requestOptions) => request({
|
|
1132
|
+
method: "DELETE",
|
|
1133
|
+
path: `/mobile/pty/${encodeURIComponent(input.ptyID)}`,
|
|
1133
1134
|
successStatus: 200,
|
|
1134
|
-
declaredStatuses: [
|
|
1135
|
+
declaredStatuses: [],
|
|
1135
1136
|
empty: false,
|
|
1136
1137
|
}, requestOptions),
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1138
|
+
},
|
|
1139
|
+
project: {
|
|
1140
|
+
list: (requestOptions) => request({ method: "GET", path: `/project`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
1141
|
+
current: (requestOptions) => request({ method: "GET", path: `/project/current`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
1142
|
+
update: (input, requestOptions) => request({
|
|
1143
|
+
method: "PATCH",
|
|
1144
|
+
path: `/project/${encodeURIComponent(input.projectID)}`,
|
|
1145
|
+
body: { name: input["name"], icon: input["icon"] },
|
|
1142
1146
|
successStatus: 200,
|
|
1143
1147
|
declaredStatuses: [],
|
|
1144
1148
|
empty: false,
|
|
1145
1149
|
}, requestOptions),
|
|
1146
|
-
|
|
1147
|
-
workspace: {
|
|
1148
|
-
adaptors: (requestOptions) => request({
|
|
1150
|
+
directoryList: (input, requestOptions) => request({
|
|
1149
1151
|
method: "GET",
|
|
1150
|
-
path: `/
|
|
1152
|
+
path: `/project/${encodeURIComponent(input.projectID)}/directory`,
|
|
1151
1153
|
successStatus: 200,
|
|
1152
1154
|
declaredStatuses: [],
|
|
1153
1155
|
empty: false,
|
|
1154
1156
|
}, requestOptions),
|
|
1155
|
-
|
|
1157
|
+
copyCreate: (input, requestOptions) => request({
|
|
1156
1158
|
method: "POST",
|
|
1157
|
-
path: `/
|
|
1159
|
+
path: `/project/${encodeURIComponent(input.projectID)}/copy`,
|
|
1160
|
+
body: { strategy: input["strategy"], directory: input["directory"], name: input["name"] },
|
|
1161
|
+
successStatus: 200,
|
|
1162
|
+
declaredStatuses: [],
|
|
1163
|
+
empty: false,
|
|
1164
|
+
}, requestOptions),
|
|
1165
|
+
copyRemove: (input, requestOptions) => request({
|
|
1166
|
+
method: "DELETE",
|
|
1167
|
+
path: `/project/${encodeURIComponent(input.projectID)}/copy`,
|
|
1168
|
+
body: { directory: input["directory"], force: input["force"] },
|
|
1158
1169
|
successStatus: 204,
|
|
1159
1170
|
declaredStatuses: [],
|
|
1160
1171
|
empty: true,
|
|
1161
1172
|
}, requestOptions),
|
|
1162
|
-
|
|
1163
|
-
method: "
|
|
1164
|
-
path: `/
|
|
1173
|
+
copyRefresh: (input, requestOptions) => request({
|
|
1174
|
+
method: "POST",
|
|
1175
|
+
path: `/project/${encodeURIComponent(input.projectID)}/copy/refresh`,
|
|
1165
1176
|
successStatus: 200,
|
|
1166
1177
|
declaredStatuses: [],
|
|
1167
1178
|
empty: false,
|
|
1168
1179
|
}, requestOptions),
|
|
1169
|
-
|
|
1180
|
+
},
|
|
1181
|
+
provider: {
|
|
1182
|
+
list: (requestOptions) => request({ method: "GET", path: `/provider`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
1183
|
+
auth: (requestOptions) => request({ method: "GET", path: `/provider/auth`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
1184
|
+
api: (input, requestOptions) => request({
|
|
1170
1185
|
method: "POST",
|
|
1171
|
-
path: `/
|
|
1172
|
-
body: {
|
|
1186
|
+
path: `/provider/${encodeURIComponent(input.providerID)}/api`,
|
|
1187
|
+
body: { key: input["key"] },
|
|
1173
1188
|
successStatus: 200,
|
|
1174
1189
|
declaredStatuses: [],
|
|
1175
1190
|
empty: false,
|
|
1176
1191
|
}, requestOptions),
|
|
1177
|
-
|
|
1178
|
-
remove: (input, requestOptions) => request({
|
|
1192
|
+
removeAuth: (input, requestOptions) => request({
|
|
1179
1193
|
method: "DELETE",
|
|
1180
|
-
path: `/
|
|
1194
|
+
path: `/provider/${encodeURIComponent(input.providerID)}/auth`,
|
|
1181
1195
|
successStatus: 200,
|
|
1182
1196
|
declaredStatuses: [],
|
|
1183
1197
|
empty: false,
|
|
1184
1198
|
}, requestOptions),
|
|
1185
|
-
|
|
1199
|
+
oauthAuthorize: (input, requestOptions) => request({
|
|
1186
1200
|
method: "POST",
|
|
1187
|
-
path: `/
|
|
1188
|
-
|
|
1201
|
+
path: `/provider/${encodeURIComponent(input.providerID)}/oauth/authorize`,
|
|
1202
|
+
body: { method: input["method"] },
|
|
1189
1203
|
successStatus: 200,
|
|
1190
1204
|
declaredStatuses: [],
|
|
1191
1205
|
empty: false,
|
|
1192
1206
|
}, requestOptions),
|
|
1193
|
-
|
|
1207
|
+
oauthCallback: (input, requestOptions) => request({
|
|
1194
1208
|
method: "POST",
|
|
1195
|
-
path: `/
|
|
1196
|
-
|
|
1209
|
+
path: `/provider/${encodeURIComponent(input.providerID)}/oauth/callback`,
|
|
1210
|
+
body: { method: input["method"], code: input["code"] },
|
|
1197
1211
|
successStatus: 200,
|
|
1198
1212
|
declaredStatuses: [],
|
|
1199
1213
|
empty: false,
|
|
1200
1214
|
}, requestOptions),
|
|
1201
|
-
warp: (input, requestOptions) => request({
|
|
1202
|
-
method: "POST",
|
|
1203
|
-
path: `/experimental/workspace/warp`,
|
|
1204
|
-
body: {
|
|
1205
|
-
id: input["id"],
|
|
1206
|
-
sessionID: input["sessionID"],
|
|
1207
|
-
copyChanges: input["copyChanges"],
|
|
1208
|
-
timeoutMs: input["timeoutMs"],
|
|
1209
|
-
},
|
|
1210
|
-
successStatus: 204,
|
|
1211
|
-
declaredStatuses: [],
|
|
1212
|
-
empty: true,
|
|
1213
|
-
}, requestOptions),
|
|
1214
1215
|
},
|
|
1215
|
-
|
|
1216
|
-
|
|
1216
|
+
question: {
|
|
1217
|
+
list: (requestOptions) => request({ method: "GET", path: `/question`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
1218
|
+
reply: (input, requestOptions) => request({
|
|
1217
1219
|
method: "POST",
|
|
1218
|
-
path: `/
|
|
1219
|
-
body: {
|
|
1220
|
-
successStatus: 204,
|
|
1221
|
-
declaredStatuses: [],
|
|
1222
|
-
empty: true,
|
|
1223
|
-
}, requestOptions),
|
|
1224
|
-
outbox: (input, requestOptions) => request({
|
|
1225
|
-
method: "GET",
|
|
1226
|
-
path: `/sync/outbox`,
|
|
1227
|
-
query: { projectID: input["projectID"], since: input["since"] },
|
|
1228
|
-
successStatus: 200,
|
|
1229
|
-
declaredStatuses: [],
|
|
1230
|
-
empty: false,
|
|
1231
|
-
}, requestOptions),
|
|
1232
|
-
snapshot: (input, requestOptions) => request({
|
|
1233
|
-
method: "GET",
|
|
1234
|
-
path: `/sync/snapshot/${encodeURIComponent(input.aggregateID)}`,
|
|
1235
|
-
query: { projectID: input["projectID"] },
|
|
1220
|
+
path: `/question/${encodeURIComponent(input.requestID)}/reply`,
|
|
1221
|
+
body: { answers: input["answers"] },
|
|
1236
1222
|
successStatus: 200,
|
|
1237
1223
|
declaredStatuses: [],
|
|
1238
1224
|
empty: false,
|
|
1239
1225
|
}, requestOptions),
|
|
1240
|
-
|
|
1241
|
-
method: "
|
|
1242
|
-
path: `/
|
|
1243
|
-
query: { projectID: input["projectID"], token: input["token"] },
|
|
1226
|
+
reject: (input, requestOptions) => request({
|
|
1227
|
+
method: "POST",
|
|
1228
|
+
path: `/question/${encodeURIComponent(input.requestID)}/reject`,
|
|
1244
1229
|
successStatus: 200,
|
|
1245
1230
|
declaredStatuses: [],
|
|
1246
1231
|
empty: false,
|
|
1247
1232
|
}, requestOptions),
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1233
|
+
},
|
|
1234
|
+
permission: {
|
|
1235
|
+
list: (requestOptions) => request({ method: "GET", path: `/permission`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
1236
|
+
reply: (input, requestOptions) => request({
|
|
1237
|
+
method: "POST",
|
|
1238
|
+
path: `/permission/${encodeURIComponent(input.requestID)}/reply`,
|
|
1239
|
+
body: { reply: input["reply"], message: input["message"] },
|
|
1252
1240
|
successStatus: 200,
|
|
1253
1241
|
declaredStatuses: [],
|
|
1254
1242
|
empty: false,
|
|
1255
1243
|
}, requestOptions),
|
|
1256
|
-
|
|
1244
|
+
},
|
|
1245
|
+
pty: {
|
|
1246
|
+
list: (requestOptions) => request({ method: "GET", path: `/pty`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
1247
|
+
create: (input, requestOptions) => request({
|
|
1257
1248
|
method: "POST",
|
|
1258
|
-
path: `/
|
|
1259
|
-
body: {
|
|
1249
|
+
path: `/pty`,
|
|
1250
|
+
body: {
|
|
1251
|
+
command: input?.["command"],
|
|
1252
|
+
args: input?.["args"],
|
|
1253
|
+
cwd: input?.["cwd"],
|
|
1254
|
+
title: input?.["title"],
|
|
1255
|
+
env: input?.["env"],
|
|
1256
|
+
},
|
|
1260
1257
|
successStatus: 200,
|
|
1261
|
-
declaredStatuses: [],
|
|
1258
|
+
declaredStatuses: [400],
|
|
1259
|
+
empty: false,
|
|
1260
|
+
}, requestOptions),
|
|
1261
|
+
get: (input, requestOptions) => request({
|
|
1262
|
+
method: "GET",
|
|
1263
|
+
path: `/pty/${encodeURIComponent(input.ptyID)}`,
|
|
1264
|
+
successStatus: 200,
|
|
1265
|
+
declaredStatuses: [404],
|
|
1266
|
+
empty: false,
|
|
1267
|
+
}, requestOptions),
|
|
1268
|
+
update: (input, requestOptions) => request({
|
|
1269
|
+
method: "PUT",
|
|
1270
|
+
path: `/pty/${encodeURIComponent(input.ptyID)}`,
|
|
1271
|
+
body: { title: input["title"], size: input["size"] },
|
|
1272
|
+
successStatus: 200,
|
|
1273
|
+
declaredStatuses: [404],
|
|
1262
1274
|
empty: false,
|
|
1263
1275
|
}, requestOptions),
|
|
1264
|
-
connect: (requestOptions) => request({ method: "POST", path: `/sync/connect`, successStatus: 204, declaredStatuses: [], empty: true }, requestOptions),
|
|
1265
|
-
disconnect: (requestOptions) => request({ method: "POST", path: `/sync/disconnect`, successStatus: 204, declaredStatuses: [], empty: true }, requestOptions),
|
|
1266
|
-
drain: (requestOptions) => request({ method: "POST", path: `/sync/drain`, successStatus: 204, declaredStatuses: [], empty: true }, requestOptions),
|
|
1267
|
-
},
|
|
1268
|
-
auth: {
|
|
1269
1276
|
remove: (input, requestOptions) => request({
|
|
1270
1277
|
method: "DELETE",
|
|
1271
|
-
path: `/
|
|
1278
|
+
path: `/pty/${encodeURIComponent(input.ptyID)}`,
|
|
1272
1279
|
successStatus: 200,
|
|
1273
1280
|
declaredStatuses: [],
|
|
1274
1281
|
empty: false,
|
|
1275
1282
|
}, requestOptions),
|
|
1276
1283
|
},
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1284
|
+
loop: {
|
|
1285
|
+
list: (requestOptions) => request({ method: "GET", path: `/loop`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
1286
|
+
templates: (requestOptions) => request({ method: "GET", path: `/loop/templates`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
1287
|
+
generate: (input, requestOptions) => request({
|
|
1280
1288
|
method: "POST",
|
|
1281
|
-
path: `/
|
|
1282
|
-
body: {
|
|
1289
|
+
path: `/loop/generate`,
|
|
1290
|
+
body: { description: input["description"], model: input["model"], agent: input["agent"] },
|
|
1283
1291
|
successStatus: 200,
|
|
1284
|
-
declaredStatuses: [],
|
|
1292
|
+
declaredStatuses: [400],
|
|
1285
1293
|
empty: false,
|
|
1286
1294
|
}, requestOptions),
|
|
1287
|
-
|
|
1288
|
-
method: "
|
|
1289
|
-
path: `/
|
|
1290
|
-
|
|
1295
|
+
recentRuns: (input, requestOptions) => request({
|
|
1296
|
+
method: "GET",
|
|
1297
|
+
path: `/loop/runs/recent`,
|
|
1298
|
+
query: { limit: input?.["limit"] },
|
|
1291
1299
|
successStatus: 200,
|
|
1292
1300
|
declaredStatuses: [],
|
|
1293
1301
|
empty: false,
|
|
1294
1302
|
}, requestOptions),
|
|
1295
|
-
|
|
1296
|
-
method: "
|
|
1297
|
-
path: `/
|
|
1303
|
+
get: (input, requestOptions) => request({
|
|
1304
|
+
method: "GET",
|
|
1305
|
+
path: `/loop/${encodeURIComponent(input.id)}`,
|
|
1298
1306
|
successStatus: 200,
|
|
1299
|
-
declaredStatuses: [],
|
|
1307
|
+
declaredStatuses: [404],
|
|
1300
1308
|
empty: false,
|
|
1301
1309
|
}, requestOptions),
|
|
1302
|
-
|
|
1303
|
-
method: "
|
|
1304
|
-
path: `/
|
|
1305
|
-
body:
|
|
1310
|
+
upsert: (input, requestOptions) => request({
|
|
1311
|
+
method: "PUT",
|
|
1312
|
+
path: `/loop`,
|
|
1313
|
+
body: input["payload"],
|
|
1306
1314
|
successStatus: 200,
|
|
1307
|
-
declaredStatuses: [],
|
|
1315
|
+
declaredStatuses: [400],
|
|
1308
1316
|
empty: false,
|
|
1309
1317
|
}, requestOptions),
|
|
1310
|
-
|
|
1318
|
+
update: (input, requestOptions) => request({
|
|
1311
1319
|
method: "POST",
|
|
1312
|
-
path: `/
|
|
1320
|
+
path: `/loop/${encodeURIComponent(input.id)}`,
|
|
1321
|
+
body: input["payload"],
|
|
1313
1322
|
successStatus: 200,
|
|
1314
|
-
declaredStatuses: [],
|
|
1323
|
+
declaredStatuses: [404, 400],
|
|
1315
1324
|
empty: false,
|
|
1316
1325
|
}, requestOptions),
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1326
|
+
remove: (input, requestOptions) => request({
|
|
1327
|
+
method: "DELETE",
|
|
1328
|
+
path: `/loop/${encodeURIComponent(input.id)}`,
|
|
1329
|
+
successStatus: 200,
|
|
1330
|
+
declaredStatuses: [404],
|
|
1331
|
+
empty: false,
|
|
1332
|
+
}, requestOptions),
|
|
1333
|
+
toggle: (input, requestOptions) => request({
|
|
1320
1334
|
method: "POST",
|
|
1321
|
-
path: `/
|
|
1322
|
-
body: {
|
|
1323
|
-
messageID: input["messageID"],
|
|
1324
|
-
model: input["model"],
|
|
1325
|
-
agent: input["agent"],
|
|
1326
|
-
noReply: input["noReply"],
|
|
1327
|
-
tools: input["tools"],
|
|
1328
|
-
format: input["format"],
|
|
1329
|
-
system: input["system"],
|
|
1330
|
-
variant: input["variant"],
|
|
1331
|
-
parts: input["parts"],
|
|
1332
|
-
},
|
|
1335
|
+
path: `/loop/${encodeURIComponent(input.id)}/toggle`,
|
|
1336
|
+
body: { enabled: input["enabled"] },
|
|
1333
1337
|
successStatus: 200,
|
|
1334
|
-
declaredStatuses: [],
|
|
1338
|
+
declaredStatuses: [404],
|
|
1335
1339
|
empty: false,
|
|
1336
1340
|
}, requestOptions),
|
|
1337
|
-
|
|
1341
|
+
run: (input, requestOptions) => request({
|
|
1338
1342
|
method: "POST",
|
|
1339
|
-
path: `/
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
agent: input["agent"],
|
|
1344
|
-
noReply: input["noReply"],
|
|
1345
|
-
tools: input["tools"],
|
|
1346
|
-
format: input["format"],
|
|
1347
|
-
system: input["system"],
|
|
1348
|
-
variant: input["variant"],
|
|
1349
|
-
parts: input["parts"],
|
|
1350
|
-
},
|
|
1351
|
-
successStatus: 204,
|
|
1352
|
-
declaredStatuses: [],
|
|
1353
|
-
empty: true,
|
|
1343
|
+
path: `/loop/${encodeURIComponent(input.id)}/run`,
|
|
1344
|
+
successStatus: 200,
|
|
1345
|
+
declaredStatuses: [404],
|
|
1346
|
+
empty: false,
|
|
1354
1347
|
}, requestOptions),
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
method: "GET",
|
|
1359
|
-
path: `/s/${encodeURIComponent(input.shareID)}`,
|
|
1348
|
+
abort: (input, requestOptions) => request({
|
|
1349
|
+
method: "POST",
|
|
1350
|
+
path: `/loop/${encodeURIComponent(input.id)}/abort`,
|
|
1360
1351
|
successStatus: 200,
|
|
1361
|
-
declaredStatuses: [],
|
|
1352
|
+
declaredStatuses: [404],
|
|
1362
1353
|
empty: false,
|
|
1363
1354
|
}, requestOptions),
|
|
1364
|
-
|
|
1365
|
-
method: "
|
|
1366
|
-
path: `/
|
|
1355
|
+
pause: (input, requestOptions) => request({
|
|
1356
|
+
method: "POST",
|
|
1357
|
+
path: `/loop/${encodeURIComponent(input.id)}/pause`,
|
|
1367
1358
|
successStatus: 200,
|
|
1368
|
-
declaredStatuses: [],
|
|
1359
|
+
declaredStatuses: [404],
|
|
1369
1360
|
empty: false,
|
|
1370
1361
|
}, requestOptions),
|
|
1371
|
-
|
|
1372
|
-
method: "
|
|
1373
|
-
path: `/
|
|
1362
|
+
resume: (input, requestOptions) => request({
|
|
1363
|
+
method: "POST",
|
|
1364
|
+
path: `/loop/${encodeURIComponent(input.id)}/resume`,
|
|
1374
1365
|
successStatus: 200,
|
|
1375
|
-
declaredStatuses: [],
|
|
1366
|
+
declaredStatuses: [404],
|
|
1376
1367
|
empty: false,
|
|
1377
1368
|
}, requestOptions),
|
|
1378
|
-
|
|
1369
|
+
runs: (input, requestOptions) => request({
|
|
1379
1370
|
method: "GET",
|
|
1380
|
-
path: `/
|
|
1371
|
+
path: `/loop/${encodeURIComponent(input.id)}/runs`,
|
|
1372
|
+
query: { limit: input["limit"] },
|
|
1381
1373
|
successStatus: 200,
|
|
1382
1374
|
declaredStatuses: [],
|
|
1383
1375
|
empty: false,
|
|
1384
1376
|
}, requestOptions),
|
|
1385
1377
|
},
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
global: (requestOptions) => sse({ method: "GET", path: `/global/event`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
1389
|
-
},
|
|
1390
|
-
"workspace-extra": {
|
|
1391
|
-
events: (input, requestOptions) => request({
|
|
1378
|
+
session: {
|
|
1379
|
+
list: (input, requestOptions) => request({
|
|
1392
1380
|
method: "GET",
|
|
1393
|
-
path: `/
|
|
1394
|
-
query: {
|
|
1381
|
+
path: `/session`,
|
|
1382
|
+
query: {
|
|
1383
|
+
directory: input?.["directory"],
|
|
1384
|
+
roots: input?.["roots"],
|
|
1385
|
+
start: input?.["start"],
|
|
1386
|
+
search: input?.["search"],
|
|
1387
|
+
limit: input?.["limit"],
|
|
1388
|
+
},
|
|
1395
1389
|
successStatus: 200,
|
|
1396
1390
|
declaredStatuses: [],
|
|
1397
1391
|
empty: false,
|
|
1398
1392
|
}, requestOptions),
|
|
1399
|
-
|
|
1393
|
+
create: (input, requestOptions) => request({
|
|
1400
1394
|
method: "POST",
|
|
1401
|
-
path: `/
|
|
1395
|
+
path: `/session`,
|
|
1402
1396
|
body: {
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1397
|
+
parentID: input?.["parentID"],
|
|
1398
|
+
title: input?.["title"],
|
|
1399
|
+
permission: input?.["permission"],
|
|
1400
|
+
skills: input?.["skills"],
|
|
1401
|
+
github: input?.["github"],
|
|
1402
|
+
workspaceID: input?.["workspaceID"],
|
|
1406
1403
|
},
|
|
1407
1404
|
successStatus: 200,
|
|
1408
1405
|
declaredStatuses: [],
|
|
1409
1406
|
empty: false,
|
|
1410
1407
|
}, requestOptions),
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
path: `/user/register`,
|
|
1416
|
-
body: {
|
|
1417
|
-
username: input["username"],
|
|
1418
|
-
email: input["email"],
|
|
1419
|
-
password: input["password"],
|
|
1420
|
-
displayName: input["displayName"],
|
|
1421
|
-
},
|
|
1408
|
+
status: (requestOptions) => request({ method: "GET", path: `/session/status`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
1409
|
+
get: (input, requestOptions) => request({
|
|
1410
|
+
method: "GET",
|
|
1411
|
+
path: `/session/${encodeURIComponent(input.sessionID)}`,
|
|
1422
1412
|
successStatus: 200,
|
|
1423
|
-
declaredStatuses: [],
|
|
1413
|
+
declaredStatuses: [404, 409],
|
|
1424
1414
|
empty: false,
|
|
1425
1415
|
}, requestOptions),
|
|
1426
|
-
|
|
1427
|
-
method: "
|
|
1428
|
-
path: `/
|
|
1429
|
-
body: { email: input["email"], password: input["password"] },
|
|
1416
|
+
remove: (input, requestOptions) => request({
|
|
1417
|
+
method: "DELETE",
|
|
1418
|
+
path: `/session/${encodeURIComponent(input.sessionID)}`,
|
|
1430
1419
|
successStatus: 200,
|
|
1431
|
-
declaredStatuses: [],
|
|
1420
|
+
declaredStatuses: [404, 409],
|
|
1432
1421
|
empty: false,
|
|
1433
1422
|
}, requestOptions),
|
|
1434
1423
|
update: (input, requestOptions) => request({
|
|
1435
1424
|
method: "PATCH",
|
|
1436
|
-
path: `/
|
|
1437
|
-
body: {
|
|
1425
|
+
path: `/session/${encodeURIComponent(input.sessionID)}`,
|
|
1426
|
+
body: { title: input["title"], time: input["time"] },
|
|
1438
1427
|
successStatus: 200,
|
|
1439
|
-
declaredStatuses: [],
|
|
1428
|
+
declaredStatuses: [404, 409],
|
|
1440
1429
|
empty: false,
|
|
1441
1430
|
}, requestOptions),
|
|
1442
|
-
|
|
1443
|
-
mobile: {
|
|
1444
|
-
authTokenList: (requestOptions) => request({ method: "GET", path: `/mobile/auth/token`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
1445
|
-
authTokenCreate: (input, requestOptions) => request({
|
|
1431
|
+
fork: (input, requestOptions) => request({
|
|
1446
1432
|
method: "POST",
|
|
1447
|
-
path: `/
|
|
1448
|
-
body: {
|
|
1433
|
+
path: `/session/${encodeURIComponent(input.sessionID)}/fork`,
|
|
1434
|
+
body: { messageID: input["messageID"] },
|
|
1449
1435
|
successStatus: 200,
|
|
1450
|
-
declaredStatuses: [],
|
|
1436
|
+
declaredStatuses: [404, 409],
|
|
1451
1437
|
empty: false,
|
|
1452
1438
|
}, requestOptions),
|
|
1453
|
-
|
|
1454
|
-
method: "
|
|
1455
|
-
path: `/
|
|
1439
|
+
abort: (input, requestOptions) => request({
|
|
1440
|
+
method: "POST",
|
|
1441
|
+
path: `/session/${encodeURIComponent(input.sessionID)}/abort`,
|
|
1456
1442
|
successStatus: 200,
|
|
1457
1443
|
declaredStatuses: [],
|
|
1458
1444
|
empty: false,
|
|
1459
1445
|
}, requestOptions),
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
memorySearch: (input, requestOptions) => request({
|
|
1465
|
-
method: "GET",
|
|
1466
|
-
path: `/mobile/memory/search`,
|
|
1467
|
-
query: { query: input["query"] },
|
|
1446
|
+
revert: (input, requestOptions) => request({
|
|
1447
|
+
method: "POST",
|
|
1448
|
+
path: `/session/${encodeURIComponent(input.sessionID)}/revert`,
|
|
1449
|
+
body: { messageID: input["messageID"], partID: input["partID"] },
|
|
1468
1450
|
successStatus: 200,
|
|
1469
|
-
declaredStatuses: [],
|
|
1451
|
+
declaredStatuses: [404, 409],
|
|
1470
1452
|
empty: false,
|
|
1471
1453
|
}, requestOptions),
|
|
1472
|
-
|
|
1473
|
-
memoryStashCreate: (input, requestOptions) => request({
|
|
1454
|
+
unrevert: (input, requestOptions) => request({
|
|
1474
1455
|
method: "POST",
|
|
1475
|
-
path: `/
|
|
1476
|
-
body: { input: input["input"] },
|
|
1456
|
+
path: `/session/${encodeURIComponent(input.sessionID)}/unrevert`,
|
|
1477
1457
|
successStatus: 200,
|
|
1478
|
-
declaredStatuses: [],
|
|
1458
|
+
declaredStatuses: [404, 409],
|
|
1479
1459
|
empty: false,
|
|
1480
1460
|
}, requestOptions),
|
|
1481
|
-
|
|
1482
|
-
method: "
|
|
1483
|
-
path: `/
|
|
1461
|
+
share: (input, requestOptions) => request({
|
|
1462
|
+
method: "POST",
|
|
1463
|
+
path: `/session/${encodeURIComponent(input.sessionID)}/share`,
|
|
1484
1464
|
successStatus: 200,
|
|
1485
|
-
declaredStatuses: [],
|
|
1465
|
+
declaredStatuses: [404, 409],
|
|
1486
1466
|
empty: false,
|
|
1487
1467
|
}, requestOptions),
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
path: `/mobile/github/repos/${encodeURIComponent(input.owner)}/${encodeURIComponent(input.repo)}/branches`,
|
|
1468
|
+
unshare: (input, requestOptions) => request({
|
|
1469
|
+
method: "DELETE",
|
|
1470
|
+
path: `/session/${encodeURIComponent(input.sessionID)}/share`,
|
|
1492
1471
|
successStatus: 200,
|
|
1493
|
-
declaredStatuses: [],
|
|
1472
|
+
declaredStatuses: [404, 409],
|
|
1494
1473
|
empty: false,
|
|
1495
1474
|
}, requestOptions),
|
|
1496
|
-
|
|
1497
|
-
githubOauthClient: (input, requestOptions) => request({
|
|
1475
|
+
summarize: (input, requestOptions) => request({
|
|
1498
1476
|
method: "POST",
|
|
1499
|
-
path: `/
|
|
1500
|
-
body: {
|
|
1477
|
+
path: `/session/${encodeURIComponent(input.sessionID)}/summarize`,
|
|
1478
|
+
body: { providerID: input["providerID"], modelID: input["modelID"], auto: input["auto"] },
|
|
1501
1479
|
successStatus: 200,
|
|
1502
|
-
declaredStatuses: [],
|
|
1480
|
+
declaredStatuses: [404, 409],
|
|
1503
1481
|
empty: false,
|
|
1504
1482
|
}, requestOptions),
|
|
1505
|
-
|
|
1483
|
+
command: (input, requestOptions) => request({
|
|
1506
1484
|
method: "POST",
|
|
1507
|
-
path: `/
|
|
1485
|
+
path: `/session/${encodeURIComponent(input.sessionID)}/command`,
|
|
1486
|
+
body: {
|
|
1487
|
+
messageID: input["messageID"],
|
|
1488
|
+
agent: input["agent"],
|
|
1489
|
+
model: input["model"],
|
|
1490
|
+
arguments: input["arguments"],
|
|
1491
|
+
command: input["command"],
|
|
1492
|
+
variant: input["variant"],
|
|
1493
|
+
parts: input["parts"],
|
|
1494
|
+
},
|
|
1508
1495
|
successStatus: 200,
|
|
1509
|
-
declaredStatuses: [],
|
|
1496
|
+
declaredStatuses: [404, 409],
|
|
1510
1497
|
empty: false,
|
|
1511
1498
|
}, requestOptions),
|
|
1512
|
-
|
|
1499
|
+
shell: (input, requestOptions) => request({
|
|
1513
1500
|
method: "POST",
|
|
1514
|
-
path: `/
|
|
1515
|
-
body: {
|
|
1501
|
+
path: `/session/${encodeURIComponent(input.sessionID)}/shell`,
|
|
1502
|
+
body: { agent: input["agent"], model: input["model"], command: input["command"] },
|
|
1516
1503
|
successStatus: 200,
|
|
1517
|
-
declaredStatuses: [],
|
|
1504
|
+
declaredStatuses: [404, 409],
|
|
1518
1505
|
empty: false,
|
|
1519
1506
|
}, requestOptions),
|
|
1520
|
-
|
|
1507
|
+
permissionRespond: (input, requestOptions) => request({
|
|
1521
1508
|
method: "POST",
|
|
1522
|
-
path: `/
|
|
1523
|
-
body: {
|
|
1509
|
+
path: `/session/${encodeURIComponent(input.sessionID)}/permissions/${encodeURIComponent(input.permissionID)}`,
|
|
1510
|
+
body: { response: input["response"] },
|
|
1524
1511
|
successStatus: 200,
|
|
1525
|
-
declaredStatuses: [],
|
|
1512
|
+
declaredStatuses: [404, 409],
|
|
1526
1513
|
empty: false,
|
|
1527
1514
|
}, requestOptions),
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
path: `/mobile/github/import`,
|
|
1532
|
-
body: input["payload"],
|
|
1515
|
+
children: (input, requestOptions) => request({
|
|
1516
|
+
method: "GET",
|
|
1517
|
+
path: `/session/${encodeURIComponent(input.sessionID)}/children`,
|
|
1533
1518
|
successStatus: 200,
|
|
1534
|
-
declaredStatuses: [],
|
|
1519
|
+
declaredStatuses: [404, 409],
|
|
1535
1520
|
empty: false,
|
|
1536
1521
|
}, requestOptions),
|
|
1537
|
-
|
|
1538
|
-
method: "
|
|
1539
|
-
path: `/
|
|
1540
|
-
body: {
|
|
1541
|
-
owner: input["owner"],
|
|
1542
|
-
repo: input["repo"],
|
|
1543
|
-
cloneUrl: input["cloneUrl"],
|
|
1544
|
-
htmlUrl: input["htmlUrl"],
|
|
1545
|
-
defaultBranch: input["defaultBranch"],
|
|
1546
|
-
baseBranch: input["baseBranch"],
|
|
1547
|
-
private: input["private"],
|
|
1548
|
-
title: input["title"],
|
|
1549
|
-
executionTarget: input["executionTarget"],
|
|
1550
|
-
},
|
|
1522
|
+
todo: (input, requestOptions) => request({
|
|
1523
|
+
method: "GET",
|
|
1524
|
+
path: `/session/${encodeURIComponent(input.sessionID)}/todo`,
|
|
1551
1525
|
successStatus: 200,
|
|
1552
|
-
declaredStatuses: [],
|
|
1526
|
+
declaredStatuses: [404, 409],
|
|
1553
1527
|
empty: false,
|
|
1554
1528
|
}, requestOptions),
|
|
1555
|
-
|
|
1529
|
+
diff: (input, requestOptions) => request({
|
|
1556
1530
|
method: "GET",
|
|
1557
|
-
path: `/
|
|
1558
|
-
query: {
|
|
1531
|
+
path: `/session/${encodeURIComponent(input.sessionID)}/diff`,
|
|
1532
|
+
query: { messageID: input["messageID"] },
|
|
1559
1533
|
successStatus: 200,
|
|
1560
|
-
declaredStatuses: [],
|
|
1534
|
+
declaredStatuses: [404, 409],
|
|
1535
|
+
empty: false,
|
|
1536
|
+
}, requestOptions),
|
|
1537
|
+
messages: (input, requestOptions) => request({
|
|
1538
|
+
method: "GET",
|
|
1539
|
+
path: `/session/${encodeURIComponent(input.sessionID)}/message`,
|
|
1540
|
+
query: { limit: input["limit"] },
|
|
1541
|
+
successStatus: 200,
|
|
1542
|
+
declaredStatuses: [404, 409],
|
|
1561
1543
|
empty: false,
|
|
1562
1544
|
}, requestOptions),
|
|
1563
|
-
|
|
1564
|
-
method: "
|
|
1565
|
-
path: `/
|
|
1566
|
-
body: {
|
|
1567
|
-
parentID: input?.["parentID"],
|
|
1568
|
-
title: input?.["title"],
|
|
1569
|
-
permission: input?.["permission"],
|
|
1570
|
-
github: input?.["github"],
|
|
1571
|
-
executionTarget: input?.["executionTarget"],
|
|
1572
|
-
},
|
|
1545
|
+
message: (input, requestOptions) => request({
|
|
1546
|
+
method: "GET",
|
|
1547
|
+
path: `/session/${encodeURIComponent(input.sessionID)}/message/${encodeURIComponent(input.messageID)}`,
|
|
1573
1548
|
successStatus: 200,
|
|
1574
|
-
declaredStatuses: [],
|
|
1549
|
+
declaredStatuses: [404, 409],
|
|
1575
1550
|
empty: false,
|
|
1576
1551
|
}, requestOptions),
|
|
1577
|
-
|
|
1578
|
-
method: "
|
|
1579
|
-
path: `/
|
|
1552
|
+
messageRemove: (input, requestOptions) => request({
|
|
1553
|
+
method: "DELETE",
|
|
1554
|
+
path: `/session/${encodeURIComponent(input.sessionID)}/message/${encodeURIComponent(input.messageID)}`,
|
|
1580
1555
|
successStatus: 200,
|
|
1581
|
-
declaredStatuses: [],
|
|
1556
|
+
declaredStatuses: [404, 409],
|
|
1582
1557
|
empty: false,
|
|
1583
1558
|
}, requestOptions),
|
|
1584
|
-
|
|
1559
|
+
partRemove: (input, requestOptions) => request({
|
|
1585
1560
|
method: "DELETE",
|
|
1586
|
-
path: `/
|
|
1561
|
+
path: `/session/${encodeURIComponent(input.sessionID)}/message/${encodeURIComponent(input.messageID)}/part/${encodeURIComponent(input.partID)}`,
|
|
1587
1562
|
successStatus: 200,
|
|
1588
|
-
declaredStatuses: [],
|
|
1563
|
+
declaredStatuses: [404, 409],
|
|
1589
1564
|
empty: false,
|
|
1590
1565
|
}, requestOptions),
|
|
1591
|
-
|
|
1592
|
-
method: "
|
|
1593
|
-
path: `/
|
|
1566
|
+
partUpdate: (input, requestOptions) => request({
|
|
1567
|
+
method: "PATCH",
|
|
1568
|
+
path: `/session/${encodeURIComponent(input.sessionID)}/message/${encodeURIComponent(input.messageID)}/part/${encodeURIComponent(input.partID)}`,
|
|
1569
|
+
body: input["payload"],
|
|
1594
1570
|
successStatus: 200,
|
|
1595
|
-
declaredStatuses: [],
|
|
1571
|
+
declaredStatuses: [404, 409],
|
|
1596
1572
|
empty: false,
|
|
1597
1573
|
}, requestOptions),
|
|
1598
|
-
|
|
1574
|
+
v2Entries: (input, requestOptions) => request({
|
|
1599
1575
|
method: "GET",
|
|
1600
|
-
path: `/
|
|
1576
|
+
path: `/session/${encodeURIComponent(input.sessionID)}/v2/entries`,
|
|
1601
1577
|
successStatus: 200,
|
|
1602
|
-
declaredStatuses: [],
|
|
1578
|
+
declaredStatuses: [404, 409],
|
|
1603
1579
|
empty: false,
|
|
1604
1580
|
}, requestOptions),
|
|
1605
|
-
|
|
1606
|
-
method: "
|
|
1607
|
-
path: `/
|
|
1608
|
-
body: {
|
|
1609
|
-
command: input["command"],
|
|
1610
|
-
arguments: input["arguments"],
|
|
1611
|
-
agent: input["agent"],
|
|
1612
|
-
model: input["model"],
|
|
1613
|
-
variant: input["variant"],
|
|
1614
|
-
},
|
|
1581
|
+
v2State: (input, requestOptions) => request({
|
|
1582
|
+
method: "GET",
|
|
1583
|
+
path: `/session/${encodeURIComponent(input.sessionID)}/v2/state`,
|
|
1615
1584
|
successStatus: 200,
|
|
1616
|
-
declaredStatuses: [],
|
|
1585
|
+
declaredStatuses: [404, 409],
|
|
1617
1586
|
empty: false,
|
|
1618
1587
|
}, requestOptions),
|
|
1619
|
-
|
|
1620
|
-
method: "
|
|
1621
|
-
path: `/
|
|
1622
|
-
body: {
|
|
1623
|
-
messageID: input["messageID"],
|
|
1624
|
-
model: input["model"],
|
|
1625
|
-
agent: input["agent"],
|
|
1626
|
-
noReply: input["noReply"],
|
|
1627
|
-
tools: input["tools"],
|
|
1628
|
-
format: input["format"],
|
|
1629
|
-
system: input["system"],
|
|
1630
|
-
variant: input["variant"],
|
|
1631
|
-
parts: input["parts"],
|
|
1632
|
-
},
|
|
1588
|
+
v2Events: (input, requestOptions) => request({
|
|
1589
|
+
method: "GET",
|
|
1590
|
+
path: `/session/${encodeURIComponent(input.sessionID)}/v2/events`,
|
|
1633
1591
|
successStatus: 200,
|
|
1634
|
-
declaredStatuses: [],
|
|
1592
|
+
declaredStatuses: [404, 409],
|
|
1635
1593
|
empty: false,
|
|
1636
1594
|
}, requestOptions),
|
|
1637
|
-
|
|
1638
|
-
method: "
|
|
1639
|
-
path: `/
|
|
1595
|
+
instructions: (input, requestOptions) => request({
|
|
1596
|
+
method: "GET",
|
|
1597
|
+
path: `/session/${encodeURIComponent(input.sessionID)}/instructions`,
|
|
1640
1598
|
successStatus: 200,
|
|
1641
|
-
declaredStatuses: [],
|
|
1599
|
+
declaredStatuses: [404, 409],
|
|
1642
1600
|
empty: false,
|
|
1643
1601
|
}, requestOptions),
|
|
1644
|
-
|
|
1645
|
-
method: "
|
|
1646
|
-
path: `/
|
|
1647
|
-
body: { response: input["response"] },
|
|
1602
|
+
contextBreakdown: (input, requestOptions) => request({
|
|
1603
|
+
method: "GET",
|
|
1604
|
+
path: `/session/${encodeURIComponent(input.sessionID)}/context`,
|
|
1648
1605
|
successStatus: 200,
|
|
1649
|
-
declaredStatuses: [],
|
|
1606
|
+
declaredStatuses: [404, 409],
|
|
1650
1607
|
empty: false,
|
|
1651
1608
|
}, requestOptions),
|
|
1652
|
-
|
|
1609
|
+
contextToggle: (input, requestOptions) => request({
|
|
1653
1610
|
method: "POST",
|
|
1654
|
-
path: `/
|
|
1655
|
-
body: {
|
|
1611
|
+
path: `/session/${encodeURIComponent(input.sessionID)}/context/toggle`,
|
|
1612
|
+
body: { kind: input["kind"], key: input["key"], enabled: input["enabled"] },
|
|
1656
1613
|
successStatus: 200,
|
|
1657
|
-
declaredStatuses: [],
|
|
1614
|
+
declaredStatuses: [404, 409],
|
|
1658
1615
|
empty: false,
|
|
1659
1616
|
}, requestOptions),
|
|
1660
|
-
|
|
1661
|
-
method: "
|
|
1662
|
-
path: `/
|
|
1617
|
+
goal: (input, requestOptions) => request({
|
|
1618
|
+
method: "GET",
|
|
1619
|
+
path: `/session/${encodeURIComponent(input.sessionID)}/goal`,
|
|
1663
1620
|
successStatus: 200,
|
|
1664
1621
|
declaredStatuses: [],
|
|
1665
1622
|
empty: false,
|
|
1666
1623
|
}, requestOptions),
|
|
1667
|
-
|
|
1668
|
-
method: "
|
|
1669
|
-
path: `/
|
|
1670
|
-
body: { title: input["title"], body: input["body"], commitMessage: input["commitMessage"] },
|
|
1624
|
+
background: (input, requestOptions) => request({
|
|
1625
|
+
method: "GET",
|
|
1626
|
+
path: `/session/${encodeURIComponent(input.sessionID)}/background`,
|
|
1671
1627
|
successStatus: 200,
|
|
1672
|
-
declaredStatuses: [],
|
|
1628
|
+
declaredStatuses: [404],
|
|
1673
1629
|
empty: false,
|
|
1674
1630
|
}, requestOptions),
|
|
1675
|
-
|
|
1676
|
-
method: "
|
|
1677
|
-
path: `/
|
|
1631
|
+
backgroundInspect: (input, requestOptions) => request({
|
|
1632
|
+
method: "GET",
|
|
1633
|
+
path: `/session/${encodeURIComponent(input.sessionID)}/background/${encodeURIComponent(input.delegationID)}`,
|
|
1678
1634
|
successStatus: 200,
|
|
1679
1635
|
declaredStatuses: [],
|
|
1680
1636
|
empty: false,
|
|
1681
1637
|
}, requestOptions),
|
|
1682
|
-
|
|
1638
|
+
backgroundRead: (input, requestOptions) => request({
|
|
1683
1639
|
method: "GET",
|
|
1684
|
-
path: `/
|
|
1640
|
+
path: `/session/${encodeURIComponent(input.sessionID)}/background/${encodeURIComponent(input.delegationID)}/read`,
|
|
1685
1641
|
successStatus: 200,
|
|
1686
1642
|
declaredStatuses: [],
|
|
1687
1643
|
empty: false,
|
|
1688
1644
|
}, requestOptions),
|
|
1689
|
-
|
|
1645
|
+
backgroundCancel: (input, requestOptions) => request({
|
|
1690
1646
|
method: "POST",
|
|
1691
|
-
path: `/
|
|
1692
|
-
body: { title: input["title"] },
|
|
1647
|
+
path: `/session/${encodeURIComponent(input.sessionID)}/background/${encodeURIComponent(input.delegationID)}/cancel`,
|
|
1693
1648
|
successStatus: 200,
|
|
1694
1649
|
declaredStatuses: [],
|
|
1695
1650
|
empty: false,
|
|
1696
1651
|
}, requestOptions),
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
path: `/mobile/teleport/upload/${encodeURIComponent(input.uploadID)}`,
|
|
1652
|
+
monitor: (input, requestOptions) => request({
|
|
1653
|
+
method: "GET",
|
|
1654
|
+
path: `/session/${encodeURIComponent(input.sessionID)}/monitor/${encodeURIComponent(input.monitorID)}`,
|
|
1701
1655
|
successStatus: 200,
|
|
1702
|
-
declaredStatuses: [],
|
|
1656
|
+
declaredStatuses: [404, 409],
|
|
1703
1657
|
empty: false,
|
|
1704
1658
|
}, requestOptions),
|
|
1705
|
-
|
|
1706
|
-
method: "
|
|
1707
|
-
path: `/
|
|
1708
|
-
|
|
1709
|
-
title: input["title"],
|
|
1710
|
-
name: input["name"],
|
|
1711
|
-
origin: input["origin"],
|
|
1712
|
-
permission: input["permission"],
|
|
1713
|
-
messages: input["messages"],
|
|
1714
|
-
uploadID: input["uploadID"],
|
|
1715
|
-
},
|
|
1659
|
+
monitorLog: (input, requestOptions) => request({
|
|
1660
|
+
method: "GET",
|
|
1661
|
+
path: `/session/${encodeURIComponent(input.sessionID)}/monitor/${encodeURIComponent(input.monitorID)}/log`,
|
|
1662
|
+
query: { lines: input["lines"] },
|
|
1716
1663
|
successStatus: 200,
|
|
1717
|
-
declaredStatuses: [],
|
|
1664
|
+
declaredStatuses: [404, 409],
|
|
1718
1665
|
empty: false,
|
|
1719
1666
|
}, requestOptions),
|
|
1720
|
-
|
|
1667
|
+
monitorCancel: (input, requestOptions) => request({
|
|
1721
1668
|
method: "POST",
|
|
1722
|
-
path: `/
|
|
1723
|
-
body: {
|
|
1724
|
-
url: input["url"],
|
|
1725
|
-
token: input["token"],
|
|
1726
|
-
content: input["content"],
|
|
1727
|
-
includeGit: input["includeGit"],
|
|
1728
|
-
},
|
|
1669
|
+
path: `/session/${encodeURIComponent(input.sessionID)}/monitor/${encodeURIComponent(input.monitorID)}/cancel`,
|
|
1729
1670
|
successStatus: 200,
|
|
1730
|
-
declaredStatuses: [],
|
|
1671
|
+
declaredStatuses: [404, 409],
|
|
1731
1672
|
empty: false,
|
|
1732
1673
|
}, requestOptions),
|
|
1733
|
-
|
|
1674
|
+
},
|
|
1675
|
+
sync: {
|
|
1676
|
+
event: (input, requestOptions) => request({
|
|
1734
1677
|
method: "POST",
|
|
1735
|
-
path: `/
|
|
1736
|
-
body: input["
|
|
1737
|
-
successStatus:
|
|
1678
|
+
path: `/sync/event`,
|
|
1679
|
+
body: { event: input["event"], projectID: input["projectID"] },
|
|
1680
|
+
successStatus: 204,
|
|
1738
1681
|
declaredStatuses: [],
|
|
1739
|
-
empty:
|
|
1682
|
+
empty: true,
|
|
1740
1683
|
}, requestOptions),
|
|
1741
|
-
|
|
1742
|
-
method: "
|
|
1743
|
-
path: `/
|
|
1744
|
-
|
|
1684
|
+
outbox: (input, requestOptions) => request({
|
|
1685
|
+
method: "GET",
|
|
1686
|
+
path: `/sync/outbox`,
|
|
1687
|
+
query: { projectID: input["projectID"], since: input["since"] },
|
|
1745
1688
|
successStatus: 200,
|
|
1746
1689
|
declaredStatuses: [],
|
|
1747
1690
|
empty: false,
|
|
1748
1691
|
}, requestOptions),
|
|
1749
|
-
|
|
1750
|
-
method: "
|
|
1751
|
-
path: `/
|
|
1752
|
-
|
|
1692
|
+
snapshot: (input, requestOptions) => request({
|
|
1693
|
+
method: "GET",
|
|
1694
|
+
path: `/sync/snapshot/${encodeURIComponent(input.aggregateID)}`,
|
|
1695
|
+
query: { projectID: input["projectID"] },
|
|
1753
1696
|
successStatus: 200,
|
|
1754
1697
|
declaredStatuses: [],
|
|
1755
1698
|
empty: false,
|
|
1756
1699
|
}, requestOptions),
|
|
1757
|
-
|
|
1758
|
-
gitDiff: (input, requestOptions) => request({
|
|
1700
|
+
stream: (input, requestOptions) => sse({
|
|
1759
1701
|
method: "GET",
|
|
1760
|
-
path: `/
|
|
1761
|
-
query: {
|
|
1702
|
+
path: `/sync/stream`,
|
|
1703
|
+
query: { projectID: input["projectID"], token: input["token"] },
|
|
1762
1704
|
successStatus: 200,
|
|
1763
1705
|
declaredStatuses: [],
|
|
1764
1706
|
empty: false,
|
|
1765
1707
|
}, requestOptions),
|
|
1766
|
-
|
|
1708
|
+
stats: (input, requestOptions) => request({
|
|
1767
1709
|
method: "GET",
|
|
1768
|
-
path: `/
|
|
1769
|
-
query: {
|
|
1710
|
+
path: `/sync/stats`,
|
|
1711
|
+
query: { projectID: input?.["projectID"] },
|
|
1770
1712
|
successStatus: 200,
|
|
1771
1713
|
declaredStatuses: [],
|
|
1772
1714
|
empty: false,
|
|
1773
1715
|
}, requestOptions),
|
|
1774
|
-
|
|
1775
|
-
gitCommit: (input, requestOptions) => request({
|
|
1716
|
+
config: (input, requestOptions) => request({
|
|
1776
1717
|
method: "POST",
|
|
1777
|
-
path: `/
|
|
1778
|
-
body: {
|
|
1779
|
-
message: input["message"],
|
|
1780
|
-
files: input["files"],
|
|
1781
|
-
amend: input["amend"],
|
|
1782
|
-
stagedOnly: input["stagedOnly"],
|
|
1783
|
-
},
|
|
1718
|
+
path: `/sync/config`,
|
|
1719
|
+
body: { url: input["url"], token: input["token"], autostart: input["autostart"] },
|
|
1784
1720
|
successStatus: 200,
|
|
1785
1721
|
declaredStatuses: [],
|
|
1786
1722
|
empty: false,
|
|
1787
1723
|
}, requestOptions),
|
|
1788
|
-
|
|
1724
|
+
connect: (requestOptions) => request({ method: "POST", path: `/sync/connect`, successStatus: 204, declaredStatuses: [], empty: true }, requestOptions),
|
|
1725
|
+
disconnect: (requestOptions) => request({ method: "POST", path: `/sync/disconnect`, successStatus: 204, declaredStatuses: [], empty: true }, requestOptions),
|
|
1726
|
+
drain: (requestOptions) => request({ method: "POST", path: `/sync/drain`, successStatus: 204, declaredStatuses: [], empty: true }, requestOptions),
|
|
1727
|
+
},
|
|
1728
|
+
tui: {
|
|
1729
|
+
appendPrompt: (input, requestOptions) => request({
|
|
1789
1730
|
method: "POST",
|
|
1790
|
-
path: `/
|
|
1791
|
-
body:
|
|
1731
|
+
path: `/tui/append-prompt`,
|
|
1732
|
+
body: input["payload"],
|
|
1792
1733
|
successStatus: 200,
|
|
1793
|
-
declaredStatuses: [],
|
|
1734
|
+
declaredStatuses: [400],
|
|
1794
1735
|
empty: false,
|
|
1795
1736
|
}, requestOptions),
|
|
1796
|
-
|
|
1737
|
+
openHelp: (requestOptions) => request({ method: "POST", path: `/tui/open-help`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
1738
|
+
openSessions: (requestOptions) => request({ method: "POST", path: `/tui/open-sessions`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
1739
|
+
openThemes: (requestOptions) => request({ method: "POST", path: `/tui/open-themes`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
1740
|
+
openModels: (requestOptions) => request({ method: "POST", path: `/tui/open-models`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
1741
|
+
submitPrompt: (requestOptions) => request({ method: "POST", path: `/tui/submit-prompt`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
1742
|
+
clearPrompt: (requestOptions) => request({ method: "POST", path: `/tui/clear-prompt`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
1743
|
+
executeCommand: (input, requestOptions) => request({
|
|
1797
1744
|
method: "POST",
|
|
1798
|
-
path: `/
|
|
1799
|
-
body:
|
|
1745
|
+
path: `/tui/execute-command`,
|
|
1746
|
+
body: input["payload"],
|
|
1800
1747
|
successStatus: 200,
|
|
1801
|
-
declaredStatuses: [],
|
|
1748
|
+
declaredStatuses: [400],
|
|
1802
1749
|
empty: false,
|
|
1803
1750
|
}, requestOptions),
|
|
1804
|
-
|
|
1751
|
+
showToast: (input, requestOptions) => request({
|
|
1805
1752
|
method: "POST",
|
|
1806
|
-
path: `/
|
|
1807
|
-
body:
|
|
1753
|
+
path: `/tui/show-toast`,
|
|
1754
|
+
body: input["payload"],
|
|
1808
1755
|
successStatus: 200,
|
|
1809
|
-
declaredStatuses: [],
|
|
1756
|
+
declaredStatuses: [400],
|
|
1810
1757
|
empty: false,
|
|
1811
1758
|
}, requestOptions),
|
|
1812
|
-
|
|
1759
|
+
publish: (input, requestOptions) => request({
|
|
1813
1760
|
method: "POST",
|
|
1814
|
-
path: `/
|
|
1815
|
-
body:
|
|
1761
|
+
path: `/tui/publish`,
|
|
1762
|
+
body: input["payload"],
|
|
1816
1763
|
successStatus: 200,
|
|
1817
|
-
declaredStatuses: [],
|
|
1764
|
+
declaredStatuses: [400],
|
|
1818
1765
|
empty: false,
|
|
1819
1766
|
}, requestOptions),
|
|
1820
|
-
|
|
1767
|
+
selectSession: (input, requestOptions) => request({
|
|
1821
1768
|
method: "POST",
|
|
1822
|
-
path: `/
|
|
1823
|
-
|
|
1769
|
+
path: `/tui/select-session`,
|
|
1770
|
+
body: input["payload"],
|
|
1824
1771
|
successStatus: 200,
|
|
1825
|
-
declaredStatuses: [],
|
|
1772
|
+
declaredStatuses: [400, 404],
|
|
1826
1773
|
empty: false,
|
|
1827
1774
|
}, requestOptions),
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
loopCreate: (input, requestOptions) => request({
|
|
1775
|
+
controlNext: (requestOptions) => request({ method: "GET", path: `/tui/control/next`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
1776
|
+
controlResponse: (input, requestOptions) => request({
|
|
1831
1777
|
method: "POST",
|
|
1832
|
-
path: `/
|
|
1778
|
+
path: `/tui/control/response`,
|
|
1833
1779
|
body: input["payload"],
|
|
1834
1780
|
successStatus: 200,
|
|
1835
1781
|
declaredStatuses: [],
|
|
1836
1782
|
empty: false,
|
|
1837
1783
|
}, requestOptions),
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1784
|
+
},
|
|
1785
|
+
workspace: {
|
|
1786
|
+
adaptors: (requestOptions) => request({
|
|
1787
|
+
method: "GET",
|
|
1788
|
+
path: `/experimental/workspace/adaptor`,
|
|
1843
1789
|
successStatus: 200,
|
|
1844
1790
|
declaredStatuses: [],
|
|
1845
1791
|
empty: false,
|
|
1846
1792
|
}, requestOptions),
|
|
1847
|
-
|
|
1793
|
+
syncList: (requestOptions) => request({
|
|
1794
|
+
method: "POST",
|
|
1795
|
+
path: `/experimental/workspace/sync-list`,
|
|
1796
|
+
successStatus: 204,
|
|
1797
|
+
declaredStatuses: [],
|
|
1798
|
+
empty: true,
|
|
1799
|
+
}, requestOptions),
|
|
1800
|
+
status: (requestOptions) => request({
|
|
1848
1801
|
method: "GET",
|
|
1849
|
-
path: `/
|
|
1850
|
-
query: { limit: input?.["limit"] },
|
|
1802
|
+
path: `/experimental/workspace/status`,
|
|
1851
1803
|
successStatus: 200,
|
|
1852
1804
|
declaredStatuses: [],
|
|
1853
1805
|
empty: false,
|
|
1854
1806
|
}, requestOptions),
|
|
1855
|
-
|
|
1856
|
-
method: "
|
|
1857
|
-
path: `/
|
|
1807
|
+
create: (input, requestOptions) => request({
|
|
1808
|
+
method: "POST",
|
|
1809
|
+
path: `/experimental/workspace/${encodeURIComponent(input.id)}`,
|
|
1810
|
+
body: { branch: input["branch"], config: input["config"] },
|
|
1858
1811
|
successStatus: 200,
|
|
1859
1812
|
declaredStatuses: [],
|
|
1860
1813
|
empty: false,
|
|
1861
1814
|
}, requestOptions),
|
|
1862
|
-
|
|
1815
|
+
list: (requestOptions) => request({ method: "GET", path: `/experimental/workspace`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
1816
|
+
remove: (input, requestOptions) => request({
|
|
1863
1817
|
method: "DELETE",
|
|
1864
|
-
path: `/
|
|
1818
|
+
path: `/experimental/workspace/${encodeURIComponent(input.id)}`,
|
|
1865
1819
|
successStatus: 200,
|
|
1866
1820
|
declaredStatuses: [],
|
|
1867
1821
|
empty: false,
|
|
1868
1822
|
}, requestOptions),
|
|
1869
|
-
|
|
1870
|
-
method: "
|
|
1871
|
-
path: `/
|
|
1872
|
-
|
|
1823
|
+
restore: (input, requestOptions) => request({
|
|
1824
|
+
method: "POST",
|
|
1825
|
+
path: `/experimental/workspace/${encodeURIComponent(input.id)}/restore`,
|
|
1826
|
+
query: { timeoutMs: input["timeoutMs"] },
|
|
1873
1827
|
successStatus: 200,
|
|
1874
1828
|
declaredStatuses: [],
|
|
1875
1829
|
empty: false,
|
|
1876
1830
|
}, requestOptions),
|
|
1877
|
-
|
|
1878
|
-
method: "
|
|
1879
|
-
path: `/
|
|
1880
|
-
query: {
|
|
1831
|
+
sessionRestore: (input, requestOptions) => request({
|
|
1832
|
+
method: "POST",
|
|
1833
|
+
path: `/experimental/workspace/${encodeURIComponent(input.id)}/session/${encodeURIComponent(input.sessionID)}/restore`,
|
|
1834
|
+
query: { timeoutMs: input["timeoutMs"] },
|
|
1881
1835
|
successStatus: 200,
|
|
1882
1836
|
declaredStatuses: [],
|
|
1883
1837
|
empty: false,
|
|
1884
1838
|
}, requestOptions),
|
|
1885
|
-
|
|
1839
|
+
warp: (input, requestOptions) => request({
|
|
1886
1840
|
method: "POST",
|
|
1887
|
-
path: `/
|
|
1841
|
+
path: `/experimental/workspace/warp`,
|
|
1842
|
+
body: {
|
|
1843
|
+
id: input["id"],
|
|
1844
|
+
sessionID: input["sessionID"],
|
|
1845
|
+
copyChanges: input["copyChanges"],
|
|
1846
|
+
timeoutMs: input["timeoutMs"],
|
|
1847
|
+
},
|
|
1848
|
+
successStatus: 204,
|
|
1849
|
+
declaredStatuses: [],
|
|
1850
|
+
empty: true,
|
|
1851
|
+
}, requestOptions),
|
|
1852
|
+
},
|
|
1853
|
+
auth: {
|
|
1854
|
+
set: (input, requestOptions) => request({
|
|
1855
|
+
method: "PUT",
|
|
1856
|
+
path: `/auth/${encodeURIComponent(input.providerID)}`,
|
|
1857
|
+
body: input["payload"],
|
|
1888
1858
|
successStatus: 200,
|
|
1889
1859
|
declaredStatuses: [],
|
|
1890
1860
|
empty: false,
|
|
1891
1861
|
}, requestOptions),
|
|
1892
|
-
|
|
1893
|
-
method: "
|
|
1894
|
-
path: `/
|
|
1862
|
+
remove: (input, requestOptions) => request({
|
|
1863
|
+
method: "DELETE",
|
|
1864
|
+
path: `/auth/${encodeURIComponent(input.providerID)}`,
|
|
1895
1865
|
successStatus: 200,
|
|
1896
1866
|
declaredStatuses: [],
|
|
1897
1867
|
empty: false,
|
|
1898
1868
|
}, requestOptions),
|
|
1899
|
-
|
|
1869
|
+
},
|
|
1870
|
+
"config-management": {
|
|
1871
|
+
reload: (requestOptions) => request({ method: "POST", path: `/config/reload`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
1872
|
+
mcpAdd: (input, requestOptions) => request({
|
|
1900
1873
|
method: "POST",
|
|
1901
|
-
path: `/
|
|
1902
|
-
body: {
|
|
1874
|
+
path: `/config/mcp`,
|
|
1875
|
+
body: { name: input["name"], config: input["config"] },
|
|
1903
1876
|
successStatus: 200,
|
|
1904
1877
|
declaredStatuses: [],
|
|
1905
1878
|
empty: false,
|
|
1906
1879
|
}, requestOptions),
|
|
1907
|
-
|
|
1908
|
-
method: "
|
|
1909
|
-
path: `/
|
|
1880
|
+
mcpUpdate: (input, requestOptions) => request({
|
|
1881
|
+
method: "PATCH",
|
|
1882
|
+
path: `/config/mcp/${encodeURIComponent(input.name)}`,
|
|
1883
|
+
body: input["payload"],
|
|
1910
1884
|
successStatus: 200,
|
|
1911
1885
|
declaredStatuses: [],
|
|
1912
1886
|
empty: false,
|
|
1913
1887
|
}, requestOptions),
|
|
1914
|
-
|
|
1915
|
-
method: "
|
|
1916
|
-
path: `/
|
|
1888
|
+
mcpRemove: (input, requestOptions) => request({
|
|
1889
|
+
method: "DELETE",
|
|
1890
|
+
path: `/config/mcp/${encodeURIComponent(input.name)}`,
|
|
1917
1891
|
successStatus: 200,
|
|
1918
1892
|
declaredStatuses: [],
|
|
1919
1893
|
empty: false,
|
|
1920
1894
|
}, requestOptions),
|
|
1921
|
-
|
|
1922
|
-
routineCreate: (input, requestOptions) => request({
|
|
1895
|
+
profileCreate: (input, requestOptions) => request({
|
|
1923
1896
|
method: "POST",
|
|
1924
|
-
path: `/
|
|
1925
|
-
body: input["
|
|
1897
|
+
path: `/config/profiles`,
|
|
1898
|
+
body: { name: input["name"] },
|
|
1926
1899
|
successStatus: 200,
|
|
1927
1900
|
declaredStatuses: [],
|
|
1928
1901
|
empty: false,
|
|
1929
1902
|
}, requestOptions),
|
|
1930
|
-
|
|
1931
|
-
method: "
|
|
1932
|
-
path: `/
|
|
1903
|
+
profileActivate: (input, requestOptions) => request({
|
|
1904
|
+
method: "POST",
|
|
1905
|
+
path: `/config/profiles/activate/${encodeURIComponent(input.name)}`,
|
|
1933
1906
|
successStatus: 200,
|
|
1934
1907
|
declaredStatuses: [],
|
|
1935
1908
|
empty: false,
|
|
1936
1909
|
}, requestOptions),
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1910
|
+
},
|
|
1911
|
+
"session-prompt": {
|
|
1912
|
+
prompt: (input, requestOptions) => request({
|
|
1913
|
+
method: "POST",
|
|
1914
|
+
path: `/session/${encodeURIComponent(input.sessionID)}/message`,
|
|
1915
|
+
body: {
|
|
1916
|
+
messageID: input["messageID"],
|
|
1917
|
+
model: input["model"],
|
|
1918
|
+
agent: input["agent"],
|
|
1919
|
+
noReply: input["noReply"],
|
|
1920
|
+
tools: input["tools"],
|
|
1921
|
+
format: input["format"],
|
|
1922
|
+
system: input["system"],
|
|
1923
|
+
variant: input["variant"],
|
|
1924
|
+
parts: input["parts"],
|
|
1925
|
+
},
|
|
1940
1926
|
successStatus: 200,
|
|
1941
1927
|
declaredStatuses: [],
|
|
1942
1928
|
empty: false,
|
|
1943
1929
|
}, requestOptions),
|
|
1944
|
-
|
|
1945
|
-
method: "
|
|
1946
|
-
path: `/
|
|
1947
|
-
body:
|
|
1930
|
+
promptAsync: (input, requestOptions) => request({
|
|
1931
|
+
method: "POST",
|
|
1932
|
+
path: `/session/${encodeURIComponent(input.sessionID)}/prompt_async`,
|
|
1933
|
+
body: {
|
|
1934
|
+
messageID: input["messageID"],
|
|
1935
|
+
model: input["model"],
|
|
1936
|
+
agent: input["agent"],
|
|
1937
|
+
noReply: input["noReply"],
|
|
1938
|
+
tools: input["tools"],
|
|
1939
|
+
format: input["format"],
|
|
1940
|
+
system: input["system"],
|
|
1941
|
+
variant: input["variant"],
|
|
1942
|
+
parts: input["parts"],
|
|
1943
|
+
},
|
|
1944
|
+
successStatus: 204,
|
|
1945
|
+
declaredStatuses: [],
|
|
1946
|
+
empty: true,
|
|
1947
|
+
}, requestOptions),
|
|
1948
|
+
},
|
|
1949
|
+
share: {
|
|
1950
|
+
short: (input, requestOptions) => request({
|
|
1951
|
+
method: "GET",
|
|
1952
|
+
path: `/s/${encodeURIComponent(input.shareID)}`,
|
|
1948
1953
|
successStatus: 200,
|
|
1949
1954
|
declaredStatuses: [],
|
|
1950
1955
|
empty: false,
|
|
1951
1956
|
}, requestOptions),
|
|
1952
|
-
|
|
1953
|
-
method: "
|
|
1954
|
-
path: `/
|
|
1955
|
-
body: { text: input["text"] },
|
|
1957
|
+
page: (input, requestOptions) => request({
|
|
1958
|
+
method: "GET",
|
|
1959
|
+
path: `/share/${encodeURIComponent(input.shareID)}`,
|
|
1956
1960
|
successStatus: 200,
|
|
1957
1961
|
declaredStatuses: [],
|
|
1958
1962
|
empty: false,
|
|
1959
1963
|
}, requestOptions),
|
|
1960
|
-
|
|
1961
|
-
method: "
|
|
1962
|
-
path: `/
|
|
1964
|
+
api: (input, requestOptions) => request({
|
|
1965
|
+
method: "GET",
|
|
1966
|
+
path: `/api/share/${encodeURIComponent(input.shareID)}`,
|
|
1963
1967
|
successStatus: 200,
|
|
1964
1968
|
declaredStatuses: [],
|
|
1965
1969
|
empty: false,
|
|
1966
1970
|
}, requestOptions),
|
|
1967
|
-
|
|
1968
|
-
method: "
|
|
1969
|
-
path: `/
|
|
1971
|
+
data: (input, requestOptions) => request({
|
|
1972
|
+
method: "GET",
|
|
1973
|
+
path: `/api/share/${encodeURIComponent(input.shareID)}/data`,
|
|
1970
1974
|
successStatus: 200,
|
|
1971
1975
|
declaredStatuses: [],
|
|
1972
1976
|
empty: false,
|
|
1973
1977
|
}, requestOptions),
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
+
},
|
|
1979
|
+
events: {
|
|
1980
|
+
subscribe: (requestOptions) => sse({ method: "GET", path: `/event`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
1981
|
+
global: (requestOptions) => sse({ method: "GET", path: `/global/event`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
1982
|
+
},
|
|
1983
|
+
"workspace-extra": {
|
|
1984
|
+
events: (input, requestOptions) => request({
|
|
1985
|
+
method: "GET",
|
|
1986
|
+
path: `/experimental/workspace/${encodeURIComponent(input.id)}/events`,
|
|
1987
|
+
query: { from: input["from"] },
|
|
1978
1988
|
successStatus: 200,
|
|
1979
1989
|
declaredStatuses: [],
|
|
1980
1990
|
empty: false,
|
|
1981
1991
|
}, requestOptions),
|
|
1982
|
-
|
|
1983
|
-
ptyCreate: (input, requestOptions) => request({
|
|
1992
|
+
sessionWarp: (input, requestOptions) => request({
|
|
1984
1993
|
method: "POST",
|
|
1985
|
-
path: `/
|
|
1994
|
+
path: `/experimental/workspace/session/${encodeURIComponent(input.sessionID)}/warp`,
|
|
1986
1995
|
body: {
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
title: input?.["title"],
|
|
1991
|
-
env: input?.["env"],
|
|
1996
|
+
workspaceID: input["workspaceID"],
|
|
1997
|
+
copyChanges: input["copyChanges"],
|
|
1998
|
+
timeoutMs: input["timeoutMs"],
|
|
1992
1999
|
},
|
|
1993
2000
|
successStatus: 200,
|
|
1994
2001
|
declaredStatuses: [],
|
|
1995
2002
|
empty: false,
|
|
1996
2003
|
}, requestOptions),
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2004
|
+
},
|
|
2005
|
+
users: {
|
|
2006
|
+
register: (input, requestOptions) => request({
|
|
2007
|
+
method: "POST",
|
|
2008
|
+
path: `/user/register`,
|
|
2009
|
+
body: {
|
|
2010
|
+
username: input["username"],
|
|
2011
|
+
email: input["email"],
|
|
2012
|
+
password: input["password"],
|
|
2013
|
+
displayName: input["displayName"],
|
|
2014
|
+
},
|
|
2000
2015
|
successStatus: 200,
|
|
2001
2016
|
declaredStatuses: [],
|
|
2002
2017
|
empty: false,
|
|
2003
2018
|
}, requestOptions),
|
|
2004
|
-
|
|
2005
|
-
method: "
|
|
2006
|
-
path: `/
|
|
2007
|
-
body: {
|
|
2019
|
+
login: (input, requestOptions) => request({
|
|
2020
|
+
method: "POST",
|
|
2021
|
+
path: `/user/login`,
|
|
2022
|
+
body: { email: input["email"], password: input["password"] },
|
|
2008
2023
|
successStatus: 200,
|
|
2009
2024
|
declaredStatuses: [],
|
|
2010
2025
|
empty: false,
|
|
2011
2026
|
}, requestOptions),
|
|
2012
|
-
|
|
2013
|
-
method: "
|
|
2014
|
-
path: `/
|
|
2027
|
+
update: (input, requestOptions) => request({
|
|
2028
|
+
method: "PATCH",
|
|
2029
|
+
path: `/user/${encodeURIComponent(input.id)}`,
|
|
2030
|
+
body: { displayName: input["displayName"], password: input["password"], role: input["role"] },
|
|
2015
2031
|
successStatus: 200,
|
|
2016
2032
|
declaredStatuses: [],
|
|
2017
2033
|
empty: false,
|