@mochabug/adapt-sdk 0.3.9 → 0.3.11
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/browser/index.d.ts.map +1 -1
- package/dist/cjs/api.cjs +1 -1
- package/dist/cjs/api.cjs.map +3 -3
- package/dist/cjs/browser.cjs +2 -2
- package/dist/cjs/browser.cjs.map +3 -3
- package/dist/cjs/router.cjs +1 -1
- package/dist/cjs/router.cjs.map +2 -2
- package/dist/esm/api.mjs +1 -1
- package/dist/esm/api.mjs.map +3 -3
- package/dist/esm/browser.mjs +2 -2
- package/dist/esm/browser.mjs.map +3 -3
- package/dist/esm/router.mjs +1 -1
- package/dist/esm/router.mjs.map +2 -2
- package/dist/genproto/mochabugapis/adapt/automations/v1/automations_pb.d.ts +841 -87
- package/dist/genproto/mochabugapis/adapt/automations/v1/automations_pb.d.ts.map +1 -1
- package/dist/genproto/mochabugapis/adapt/plugins/v1/http_proxy_service_pb.d.ts +64 -4
- package/dist/genproto/mochabugapis/adapt/plugins/v1/http_proxy_service_pb.d.ts.map +1 -1
- package/dist/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.d.ts +2 -4
- package/dist/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.d.ts.map +1 -1
- package/dist/genproto/mochabugapis/adapt/runtime/v1/fileforge_service_pb.d.ts +22 -22
- package/dist/genproto/mochabugapis/adapt/runtime/v1/fileforge_service_pb.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -889,6 +889,83 @@ export type OutputJson = {
|
|
|
889
889
|
export declare const OutputSchema: GenMessage<Output, {
|
|
890
890
|
jsonType: OutputJson;
|
|
891
891
|
}>;
|
|
892
|
+
/**
|
|
893
|
+
* The window is kept open after execution completes.
|
|
894
|
+
* The user must explicitly close it.
|
|
895
|
+
*
|
|
896
|
+
* @generated from message mochabugapis.adapt.automations.v1.UrlRetain
|
|
897
|
+
*/
|
|
898
|
+
export type UrlRetain = Message<"mochabugapis.adapt.automations.v1.UrlRetain"> & {};
|
|
899
|
+
/**
|
|
900
|
+
* The window is kept open after execution completes.
|
|
901
|
+
* The user must explicitly close it.
|
|
902
|
+
*
|
|
903
|
+
* @generated from message mochabugapis.adapt.automations.v1.UrlRetain
|
|
904
|
+
*/
|
|
905
|
+
export type UrlRetainJson = {};
|
|
906
|
+
/**
|
|
907
|
+
* Describes the message mochabugapis.adapt.automations.v1.UrlRetain.
|
|
908
|
+
* Use `create(UrlRetainSchema)` to create a new message.
|
|
909
|
+
*/
|
|
910
|
+
export declare const UrlRetainSchema: GenMessage<UrlRetain, {
|
|
911
|
+
jsonType: UrlRetainJson;
|
|
912
|
+
}>;
|
|
913
|
+
/**
|
|
914
|
+
* The window is closed after execution completes.
|
|
915
|
+
*
|
|
916
|
+
* @generated from message mochabugapis.adapt.automations.v1.UrlClose
|
|
917
|
+
*/
|
|
918
|
+
export type UrlClose = Message<"mochabugapis.adapt.automations.v1.UrlClose"> & {
|
|
919
|
+
/**
|
|
920
|
+
* Optional timeout in seconds before the client should close the window
|
|
921
|
+
*
|
|
922
|
+
* @generated from field: optional int32 timeout_seconds = 1;
|
|
923
|
+
*/
|
|
924
|
+
timeoutSeconds?: number;
|
|
925
|
+
};
|
|
926
|
+
/**
|
|
927
|
+
* The window is closed after execution completes.
|
|
928
|
+
*
|
|
929
|
+
* @generated from message mochabugapis.adapt.automations.v1.UrlClose
|
|
930
|
+
*/
|
|
931
|
+
export type UrlCloseJson = {
|
|
932
|
+
/**
|
|
933
|
+
* Optional timeout in seconds before the client should close the window
|
|
934
|
+
*
|
|
935
|
+
* @generated from field: optional int32 timeout_seconds = 1;
|
|
936
|
+
*/
|
|
937
|
+
timeoutSeconds?: number;
|
|
938
|
+
};
|
|
939
|
+
/**
|
|
940
|
+
* Describes the message mochabugapis.adapt.automations.v1.UrlClose.
|
|
941
|
+
* Use `create(UrlCloseSchema)` to create a new message.
|
|
942
|
+
*/
|
|
943
|
+
export declare const UrlCloseSchema: GenMessage<UrlClose, {
|
|
944
|
+
jsonType: UrlCloseJson;
|
|
945
|
+
}>;
|
|
946
|
+
/**
|
|
947
|
+
* The window is kept open after execution completes but marked for recycling.
|
|
948
|
+
* If a new URL message arrives with the same source, the client should reuse
|
|
949
|
+
* this window instead of opening a new one.
|
|
950
|
+
*
|
|
951
|
+
* @generated from message mochabugapis.adapt.automations.v1.UrlRecycle
|
|
952
|
+
*/
|
|
953
|
+
export type UrlRecycle = Message<"mochabugapis.adapt.automations.v1.UrlRecycle"> & {};
|
|
954
|
+
/**
|
|
955
|
+
* The window is kept open after execution completes but marked for recycling.
|
|
956
|
+
* If a new URL message arrives with the same source, the client should reuse
|
|
957
|
+
* this window instead of opening a new one.
|
|
958
|
+
*
|
|
959
|
+
* @generated from message mochabugapis.adapt.automations.v1.UrlRecycle
|
|
960
|
+
*/
|
|
961
|
+
export type UrlRecycleJson = {};
|
|
962
|
+
/**
|
|
963
|
+
* Describes the message mochabugapis.adapt.automations.v1.UrlRecycle.
|
|
964
|
+
* Use `create(UrlRecycleSchema)` to create a new message.
|
|
965
|
+
*/
|
|
966
|
+
export declare const UrlRecycleSchema: GenMessage<UrlRecycle, {
|
|
967
|
+
jsonType: UrlRecycleJson;
|
|
968
|
+
}>;
|
|
892
969
|
/**
|
|
893
970
|
* A representation of a URL
|
|
894
971
|
*
|
|
@@ -940,6 +1017,46 @@ export type Url = Message<"mochabugapis.adapt.automations.v1.Url"> & {
|
|
|
940
1017
|
* @generated from field: bool stopped = 7;
|
|
941
1018
|
*/
|
|
942
1019
|
stopped: boolean;
|
|
1020
|
+
/**
|
|
1021
|
+
* A hashed source identifier derived from the fork source and exchange id
|
|
1022
|
+
*
|
|
1023
|
+
* @generated from field: string source = 8;
|
|
1024
|
+
*/
|
|
1025
|
+
source: string;
|
|
1026
|
+
/**
|
|
1027
|
+
* Determines what happens to the window after execution completes
|
|
1028
|
+
*
|
|
1029
|
+
* @generated from oneof mochabugapis.adapt.automations.v1.Url.retention_policy
|
|
1030
|
+
*/
|
|
1031
|
+
retentionPolicy: {
|
|
1032
|
+
/**
|
|
1033
|
+
* Keep the window open; the user must explicitly close it
|
|
1034
|
+
*
|
|
1035
|
+
* @generated from field: mochabugapis.adapt.automations.v1.UrlRetain retain = 9;
|
|
1036
|
+
*/
|
|
1037
|
+
value: UrlRetain;
|
|
1038
|
+
case: "retain";
|
|
1039
|
+
} | {
|
|
1040
|
+
/**
|
|
1041
|
+
* Close the window after execution completes
|
|
1042
|
+
*
|
|
1043
|
+
* @generated from field: mochabugapis.adapt.automations.v1.UrlClose close = 10;
|
|
1044
|
+
*/
|
|
1045
|
+
value: UrlClose;
|
|
1046
|
+
case: "close";
|
|
1047
|
+
} | {
|
|
1048
|
+
/**
|
|
1049
|
+
* Keep the window open but mark it for recycling;
|
|
1050
|
+
* if a new URL with the same source arrives, reuse this window
|
|
1051
|
+
*
|
|
1052
|
+
* @generated from field: mochabugapis.adapt.automations.v1.UrlRecycle recycle = 11;
|
|
1053
|
+
*/
|
|
1054
|
+
value: UrlRecycle;
|
|
1055
|
+
case: "recycle";
|
|
1056
|
+
} | {
|
|
1057
|
+
case: undefined;
|
|
1058
|
+
value?: undefined;
|
|
1059
|
+
};
|
|
943
1060
|
};
|
|
944
1061
|
/**
|
|
945
1062
|
* A representation of a URL
|
|
@@ -992,6 +1109,31 @@ export type UrlJson = {
|
|
|
992
1109
|
* @generated from field: bool stopped = 7;
|
|
993
1110
|
*/
|
|
994
1111
|
stopped?: boolean;
|
|
1112
|
+
/**
|
|
1113
|
+
* A hashed source identifier derived from the fork source and exchange id
|
|
1114
|
+
*
|
|
1115
|
+
* @generated from field: string source = 8;
|
|
1116
|
+
*/
|
|
1117
|
+
source?: string;
|
|
1118
|
+
/**
|
|
1119
|
+
* Keep the window open; the user must explicitly close it
|
|
1120
|
+
*
|
|
1121
|
+
* @generated from field: mochabugapis.adapt.automations.v1.UrlRetain retain = 9;
|
|
1122
|
+
*/
|
|
1123
|
+
retain?: UrlRetainJson;
|
|
1124
|
+
/**
|
|
1125
|
+
* Close the window after execution completes
|
|
1126
|
+
*
|
|
1127
|
+
* @generated from field: mochabugapis.adapt.automations.v1.UrlClose close = 10;
|
|
1128
|
+
*/
|
|
1129
|
+
close?: UrlCloseJson;
|
|
1130
|
+
/**
|
|
1131
|
+
* Keep the window open but mark it for recycling;
|
|
1132
|
+
* if a new URL with the same source arrives, reuse this window
|
|
1133
|
+
*
|
|
1134
|
+
* @generated from field: mochabugapis.adapt.automations.v1.UrlRecycle recycle = 11;
|
|
1135
|
+
*/
|
|
1136
|
+
recycle?: UrlRecycleJson;
|
|
995
1137
|
};
|
|
996
1138
|
/**
|
|
997
1139
|
* Describes the message mochabugapis.adapt.automations.v1.Url.
|
|
@@ -1142,6 +1284,27 @@ export type AckMessageResponseJson = {};
|
|
|
1142
1284
|
export declare const AckMessageResponseSchema: GenMessage<AckMessageResponse, {
|
|
1143
1285
|
jsonType: AckMessageResponseJson;
|
|
1144
1286
|
}>;
|
|
1287
|
+
/**
|
|
1288
|
+
* ReconnectMessage signals the client to reconnect.
|
|
1289
|
+
* Sent before stream close to allow clean reconnection.
|
|
1290
|
+
*
|
|
1291
|
+
* @generated from message mochabugapis.adapt.automations.v1.ReconnectMessage
|
|
1292
|
+
*/
|
|
1293
|
+
export type ReconnectMessage = Message<"mochabugapis.adapt.automations.v1.ReconnectMessage"> & {};
|
|
1294
|
+
/**
|
|
1295
|
+
* ReconnectMessage signals the client to reconnect.
|
|
1296
|
+
* Sent before stream close to allow clean reconnection.
|
|
1297
|
+
*
|
|
1298
|
+
* @generated from message mochabugapis.adapt.automations.v1.ReconnectMessage
|
|
1299
|
+
*/
|
|
1300
|
+
export type ReconnectMessageJson = {};
|
|
1301
|
+
/**
|
|
1302
|
+
* Describes the message mochabugapis.adapt.automations.v1.ReconnectMessage.
|
|
1303
|
+
* Use `create(ReconnectMessageSchema)` to create a new message.
|
|
1304
|
+
*/
|
|
1305
|
+
export declare const ReconnectMessageSchema: GenMessage<ReconnectMessage, {
|
|
1306
|
+
jsonType: ReconnectMessageJson;
|
|
1307
|
+
}>;
|
|
1145
1308
|
/**
|
|
1146
1309
|
* StreamSessionResponse wraps all possible message types sent via streaming
|
|
1147
1310
|
*
|
|
@@ -1625,146 +1788,701 @@ export declare const RunInheritStartedSchema: GenMessage<RunInheritStarted, {
|
|
|
1625
1788
|
jsonType: RunInheritStartedJson;
|
|
1626
1789
|
}>;
|
|
1627
1790
|
/**
|
|
1628
|
-
*
|
|
1791
|
+
* WatchSessionRequest to start watching session messages with reconnect support
|
|
1629
1792
|
*
|
|
1630
|
-
* @generated from
|
|
1793
|
+
* @generated from message mochabugapis.adapt.automations.v1.WatchSessionRequest
|
|
1631
1794
|
*/
|
|
1632
|
-
export
|
|
1795
|
+
export type WatchSessionRequest = Message<"mochabugapis.adapt.automations.v1.WatchSessionRequest"> & {
|
|
1633
1796
|
/**
|
|
1634
|
-
*
|
|
1797
|
+
* The automation id to watch
|
|
1635
1798
|
*
|
|
1636
|
-
* @generated from
|
|
1799
|
+
* @generated from field: string id = 1;
|
|
1637
1800
|
*/
|
|
1638
|
-
|
|
1801
|
+
id: string;
|
|
1802
|
+
};
|
|
1803
|
+
/**
|
|
1804
|
+
* WatchSessionRequest to start watching session messages with reconnect support
|
|
1805
|
+
*
|
|
1806
|
+
* @generated from message mochabugapis.adapt.automations.v1.WatchSessionRequest
|
|
1807
|
+
*/
|
|
1808
|
+
export type WatchSessionRequestJson = {
|
|
1639
1809
|
/**
|
|
1640
|
-
* The
|
|
1810
|
+
* The automation id to watch
|
|
1641
1811
|
*
|
|
1642
|
-
* @generated from
|
|
1812
|
+
* @generated from field: string id = 1;
|
|
1643
1813
|
*/
|
|
1644
|
-
|
|
1814
|
+
id?: string;
|
|
1815
|
+
};
|
|
1816
|
+
/**
|
|
1817
|
+
* Describes the message mochabugapis.adapt.automations.v1.WatchSessionRequest.
|
|
1818
|
+
* Use `create(WatchSessionRequestSchema)` to create a new message.
|
|
1819
|
+
*/
|
|
1820
|
+
export declare const WatchSessionRequestSchema: GenMessage<WatchSessionRequest, {
|
|
1821
|
+
jsonType: WatchSessionRequestJson;
|
|
1822
|
+
}>;
|
|
1823
|
+
/**
|
|
1824
|
+
* WatchSessionResponse wraps all possible message types sent via watch streaming
|
|
1825
|
+
*
|
|
1826
|
+
* @generated from message mochabugapis.adapt.automations.v1.WatchSessionResponse
|
|
1827
|
+
*/
|
|
1828
|
+
export type WatchSessionResponse = Message<"mochabugapis.adapt.automations.v1.WatchSessionResponse"> & {
|
|
1645
1829
|
/**
|
|
1646
|
-
*
|
|
1830
|
+
* A timesortable uuid for the message
|
|
1647
1831
|
*
|
|
1648
|
-
* @generated from
|
|
1832
|
+
* @generated from field: string id = 1;
|
|
1649
1833
|
*/
|
|
1650
|
-
|
|
1834
|
+
id: string;
|
|
1651
1835
|
/**
|
|
1652
|
-
* The
|
|
1836
|
+
* The actual message, one of the following types
|
|
1653
1837
|
*
|
|
1654
|
-
* @generated from
|
|
1838
|
+
* @generated from oneof mochabugapis.adapt.automations.v1.WatchSessionResponse.message
|
|
1655
1839
|
*/
|
|
1656
|
-
|
|
1840
|
+
message: {
|
|
1841
|
+
/**
|
|
1842
|
+
* Output message from a vertex
|
|
1843
|
+
*
|
|
1844
|
+
* @generated from field: mochabugapis.adapt.automations.v1.Output output = 2;
|
|
1845
|
+
*/
|
|
1846
|
+
value: Output;
|
|
1847
|
+
case: "output";
|
|
1848
|
+
} | {
|
|
1849
|
+
/**
|
|
1850
|
+
* URL message for browser interaction
|
|
1851
|
+
*
|
|
1852
|
+
* @generated from field: mochabugapis.adapt.automations.v1.Url url = 3;
|
|
1853
|
+
*/
|
|
1854
|
+
value: Url;
|
|
1855
|
+
case: "url";
|
|
1856
|
+
} | {
|
|
1857
|
+
/**
|
|
1858
|
+
* Session status update
|
|
1859
|
+
*
|
|
1860
|
+
* @generated from field: mochabugapis.adapt.automations.v1.Session session = 4;
|
|
1861
|
+
*/
|
|
1862
|
+
value: Session;
|
|
1863
|
+
case: "session";
|
|
1864
|
+
} | {
|
|
1865
|
+
/**
|
|
1866
|
+
* Reconnect message — client should reconnect after stream closes
|
|
1867
|
+
*
|
|
1868
|
+
* @generated from field: mochabugapis.adapt.automations.v1.ReconnectMessage reconnect = 5;
|
|
1869
|
+
*/
|
|
1870
|
+
value: ReconnectMessage;
|
|
1871
|
+
case: "reconnect";
|
|
1872
|
+
} | {
|
|
1873
|
+
case: undefined;
|
|
1874
|
+
value?: undefined;
|
|
1875
|
+
};
|
|
1876
|
+
};
|
|
1877
|
+
/**
|
|
1878
|
+
* WatchSessionResponse wraps all possible message types sent via watch streaming
|
|
1879
|
+
*
|
|
1880
|
+
* @generated from message mochabugapis.adapt.automations.v1.WatchSessionResponse
|
|
1881
|
+
*/
|
|
1882
|
+
export type WatchSessionResponseJson = {
|
|
1657
1883
|
/**
|
|
1658
|
-
*
|
|
1884
|
+
* A timesortable uuid for the message
|
|
1659
1885
|
*
|
|
1660
|
-
* @generated from
|
|
1886
|
+
* @generated from field: string id = 1;
|
|
1661
1887
|
*/
|
|
1662
|
-
|
|
1888
|
+
id?: string;
|
|
1663
1889
|
/**
|
|
1664
|
-
*
|
|
1890
|
+
* Output message from a vertex
|
|
1665
1891
|
*
|
|
1666
|
-
* @generated from
|
|
1892
|
+
* @generated from field: mochabugapis.adapt.automations.v1.Output output = 2;
|
|
1667
1893
|
*/
|
|
1668
|
-
|
|
1894
|
+
output?: OutputJson;
|
|
1669
1895
|
/**
|
|
1670
|
-
*
|
|
1896
|
+
* URL message for browser interaction
|
|
1671
1897
|
*
|
|
1672
|
-
* @generated from
|
|
1898
|
+
* @generated from field: mochabugapis.adapt.automations.v1.Url url = 3;
|
|
1673
1899
|
*/
|
|
1674
|
-
|
|
1900
|
+
url?: UrlJson;
|
|
1675
1901
|
/**
|
|
1676
|
-
*
|
|
1902
|
+
* Session status update
|
|
1677
1903
|
*
|
|
1678
|
-
* @generated from
|
|
1904
|
+
* @generated from field: mochabugapis.adapt.automations.v1.Session session = 4;
|
|
1679
1905
|
*/
|
|
1680
|
-
|
|
1906
|
+
session?: SessionJson;
|
|
1681
1907
|
/**
|
|
1682
|
-
*
|
|
1908
|
+
* Reconnect message — client should reconnect after stream closes
|
|
1683
1909
|
*
|
|
1684
|
-
* @generated from
|
|
1910
|
+
* @generated from field: mochabugapis.adapt.automations.v1.ReconnectMessage reconnect = 5;
|
|
1685
1911
|
*/
|
|
1686
|
-
|
|
1687
|
-
}
|
|
1688
|
-
/**
|
|
1689
|
-
* The session enum status
|
|
1690
|
-
*
|
|
1691
|
-
* @generated from enum mochabugapis.adapt.automations.v1.Status
|
|
1692
|
-
*/
|
|
1693
|
-
export type StatusJson = "STATUS_UNSPECIFIED" | "STATUS_RUNNING" | "STATUS_STOPPED" | "STATUS_STOPPING" | "STATUS_COMPLETED" | "STATUS_EXPIRED" | "STATUS_ERRORED" | "STATUS_DELEGATING" | "STATUS_DELEGATED";
|
|
1912
|
+
reconnect?: ReconnectMessageJson;
|
|
1913
|
+
};
|
|
1694
1914
|
/**
|
|
1695
|
-
* Describes the
|
|
1915
|
+
* Describes the message mochabugapis.adapt.automations.v1.WatchSessionResponse.
|
|
1916
|
+
* Use `create(WatchSessionResponseSchema)` to create a new message.
|
|
1696
1917
|
*/
|
|
1697
|
-
export declare const
|
|
1918
|
+
export declare const WatchSessionResponseSchema: GenMessage<WatchSessionResponse, {
|
|
1919
|
+
jsonType: WatchSessionResponseJson;
|
|
1920
|
+
}>;
|
|
1698
1921
|
/**
|
|
1699
|
-
*
|
|
1922
|
+
* WatchRunRequest to start and watch a session in one request
|
|
1700
1923
|
*
|
|
1701
|
-
* @generated from
|
|
1924
|
+
* @generated from message mochabugapis.adapt.automations.v1.WatchRunRequest
|
|
1702
1925
|
*/
|
|
1703
|
-
export
|
|
1926
|
+
export type WatchRunRequest = Message<"mochabugapis.adapt.automations.v1.WatchRunRequest"> & {
|
|
1704
1927
|
/**
|
|
1705
|
-
* The
|
|
1928
|
+
* The automation id to run
|
|
1706
1929
|
*
|
|
1707
|
-
* @generated from
|
|
1930
|
+
* @generated from field: string id = 1;
|
|
1708
1931
|
*/
|
|
1709
|
-
|
|
1710
|
-
methodKind: "unary";
|
|
1711
|
-
input: typeof CreateChallengeRequestSchema;
|
|
1712
|
-
output: typeof CreateChallengeResponseSchema;
|
|
1713
|
-
};
|
|
1932
|
+
id: string;
|
|
1714
1933
|
/**
|
|
1715
|
-
* The
|
|
1934
|
+
* The transmitter to start from (optional, it defaults to the first one, always)
|
|
1716
1935
|
*
|
|
1717
|
-
* @generated from
|
|
1936
|
+
* @generated from field: optional string transmitter = 2;
|
|
1718
1937
|
*/
|
|
1719
|
-
|
|
1720
|
-
methodKind: "unary";
|
|
1721
|
-
input: typeof RedeemChallengeRequestSchema;
|
|
1722
|
-
output: typeof RedeemChallengeResponseSchema;
|
|
1723
|
-
};
|
|
1938
|
+
transmitter?: string;
|
|
1724
1939
|
/**
|
|
1725
|
-
*
|
|
1726
|
-
* Idempotency: OPTIONAL (will become REQUIRED in a future release). Callers should
|
|
1727
|
-
* provide a UUID v4 idempotency key via the `x-idempotency-key` gRPC metadata header
|
|
1728
|
-
* (or `X-Idempotency-Key` HTTP header). When provided, duplicate requests with the
|
|
1729
|
-
* same key and automation return the cached response. Keys expire after 10 minutes.
|
|
1940
|
+
* The signals on the transmitter you wish to start with
|
|
1730
1941
|
*
|
|
1731
|
-
* @generated from
|
|
1942
|
+
* @generated from field: map<string, mochabugapis.adapt.graph.SignalData> signals = 3;
|
|
1732
1943
|
*/
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
input: typeof StartSessionRequestSchema;
|
|
1736
|
-
output: typeof StartSessionResponseSchema;
|
|
1944
|
+
signals: {
|
|
1945
|
+
[key: string]: SignalData;
|
|
1737
1946
|
};
|
|
1738
1947
|
/**
|
|
1739
|
-
*
|
|
1948
|
+
* An optional token to redeem a challenge before starting, if the automation requires it
|
|
1740
1949
|
*
|
|
1741
|
-
* @generated from
|
|
1950
|
+
* @generated from field: optional string challenge_token = 4;
|
|
1742
1951
|
*/
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1952
|
+
challengeToken?: string;
|
|
1953
|
+
};
|
|
1954
|
+
/**
|
|
1955
|
+
* WatchRunRequest to start and watch a session in one request
|
|
1956
|
+
*
|
|
1957
|
+
* @generated from message mochabugapis.adapt.automations.v1.WatchRunRequest
|
|
1958
|
+
*/
|
|
1959
|
+
export type WatchRunRequestJson = {
|
|
1748
1960
|
/**
|
|
1749
|
-
*
|
|
1961
|
+
* The automation id to run
|
|
1750
1962
|
*
|
|
1751
|
-
* @generated from
|
|
1963
|
+
* @generated from field: string id = 1;
|
|
1752
1964
|
*/
|
|
1753
|
-
|
|
1754
|
-
methodKind: "unary";
|
|
1755
|
-
input: typeof InheritSessionRequestSchema;
|
|
1756
|
-
output: typeof InheritSessionResponseSchema;
|
|
1757
|
-
};
|
|
1965
|
+
id?: string;
|
|
1758
1966
|
/**
|
|
1759
|
-
*
|
|
1967
|
+
* The transmitter to start from (optional, it defaults to the first one, always)
|
|
1760
1968
|
*
|
|
1761
|
-
* @generated from
|
|
1969
|
+
* @generated from field: optional string transmitter = 2;
|
|
1762
1970
|
*/
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1971
|
+
transmitter?: string;
|
|
1972
|
+
/**
|
|
1973
|
+
* The signals on the transmitter you wish to start with
|
|
1974
|
+
*
|
|
1975
|
+
* @generated from field: map<string, mochabugapis.adapt.graph.SignalData> signals = 3;
|
|
1976
|
+
*/
|
|
1977
|
+
signals?: {
|
|
1978
|
+
[key: string]: SignalDataJson;
|
|
1979
|
+
};
|
|
1980
|
+
/**
|
|
1981
|
+
* An optional token to redeem a challenge before starting, if the automation requires it
|
|
1982
|
+
*
|
|
1983
|
+
* @generated from field: optional string challenge_token = 4;
|
|
1984
|
+
*/
|
|
1985
|
+
challengeToken?: string;
|
|
1986
|
+
};
|
|
1987
|
+
/**
|
|
1988
|
+
* Describes the message mochabugapis.adapt.automations.v1.WatchRunRequest.
|
|
1989
|
+
* Use `create(WatchRunRequestSchema)` to create a new message.
|
|
1990
|
+
*/
|
|
1991
|
+
export declare const WatchRunRequestSchema: GenMessage<WatchRunRequest, {
|
|
1992
|
+
jsonType: WatchRunRequestJson;
|
|
1993
|
+
}>;
|
|
1994
|
+
/**
|
|
1995
|
+
* WatchRunResponse wraps all possible message types sent via watch streaming
|
|
1996
|
+
* The first message will always be a started message containing the session token
|
|
1997
|
+
*
|
|
1998
|
+
* @generated from message mochabugapis.adapt.automations.v1.WatchRunResponse
|
|
1999
|
+
*/
|
|
2000
|
+
export type WatchRunResponse = Message<"mochabugapis.adapt.automations.v1.WatchRunResponse"> & {
|
|
2001
|
+
/**
|
|
2002
|
+
* A timesortable uuid for the message
|
|
2003
|
+
*
|
|
2004
|
+
* @generated from field: string id = 1;
|
|
2005
|
+
*/
|
|
2006
|
+
id: string;
|
|
2007
|
+
/**
|
|
2008
|
+
* The actual message, one of the following types
|
|
2009
|
+
*
|
|
2010
|
+
* @generated from oneof mochabugapis.adapt.automations.v1.WatchRunResponse.message
|
|
2011
|
+
*/
|
|
2012
|
+
message: {
|
|
2013
|
+
/**
|
|
2014
|
+
* Session started message (always first)
|
|
2015
|
+
*
|
|
2016
|
+
* @generated from field: mochabugapis.adapt.automations.v1.WatchRunStarted started = 2;
|
|
2017
|
+
*/
|
|
2018
|
+
value: WatchRunStarted;
|
|
2019
|
+
case: "started";
|
|
2020
|
+
} | {
|
|
2021
|
+
/**
|
|
2022
|
+
* Output message from a vertex
|
|
2023
|
+
*
|
|
2024
|
+
* @generated from field: mochabugapis.adapt.automations.v1.Output output = 3;
|
|
2025
|
+
*/
|
|
2026
|
+
value: Output;
|
|
2027
|
+
case: "output";
|
|
2028
|
+
} | {
|
|
2029
|
+
/**
|
|
2030
|
+
* URL message for browser interaction
|
|
2031
|
+
*
|
|
2032
|
+
* @generated from field: mochabugapis.adapt.automations.v1.Url url = 4;
|
|
2033
|
+
*/
|
|
2034
|
+
value: Url;
|
|
2035
|
+
case: "url";
|
|
2036
|
+
} | {
|
|
2037
|
+
/**
|
|
2038
|
+
* Session status update
|
|
2039
|
+
*
|
|
2040
|
+
* @generated from field: mochabugapis.adapt.automations.v1.Session session = 5;
|
|
2041
|
+
*/
|
|
2042
|
+
value: Session;
|
|
2043
|
+
case: "session";
|
|
2044
|
+
} | {
|
|
2045
|
+
/**
|
|
2046
|
+
* Reconnect message — client should reconnect after stream closes
|
|
2047
|
+
*
|
|
2048
|
+
* @generated from field: mochabugapis.adapt.automations.v1.ReconnectMessage reconnect = 6;
|
|
2049
|
+
*/
|
|
2050
|
+
value: ReconnectMessage;
|
|
2051
|
+
case: "reconnect";
|
|
2052
|
+
} | {
|
|
2053
|
+
case: undefined;
|
|
2054
|
+
value?: undefined;
|
|
2055
|
+
};
|
|
2056
|
+
};
|
|
2057
|
+
/**
|
|
2058
|
+
* WatchRunResponse wraps all possible message types sent via watch streaming
|
|
2059
|
+
* The first message will always be a started message containing the session token
|
|
2060
|
+
*
|
|
2061
|
+
* @generated from message mochabugapis.adapt.automations.v1.WatchRunResponse
|
|
2062
|
+
*/
|
|
2063
|
+
export type WatchRunResponseJson = {
|
|
2064
|
+
/**
|
|
2065
|
+
* A timesortable uuid for the message
|
|
2066
|
+
*
|
|
2067
|
+
* @generated from field: string id = 1;
|
|
2068
|
+
*/
|
|
2069
|
+
id?: string;
|
|
2070
|
+
/**
|
|
2071
|
+
* Session started message (always first)
|
|
2072
|
+
*
|
|
2073
|
+
* @generated from field: mochabugapis.adapt.automations.v1.WatchRunStarted started = 2;
|
|
2074
|
+
*/
|
|
2075
|
+
started?: WatchRunStartedJson;
|
|
2076
|
+
/**
|
|
2077
|
+
* Output message from a vertex
|
|
2078
|
+
*
|
|
2079
|
+
* @generated from field: mochabugapis.adapt.automations.v1.Output output = 3;
|
|
2080
|
+
*/
|
|
2081
|
+
output?: OutputJson;
|
|
2082
|
+
/**
|
|
2083
|
+
* URL message for browser interaction
|
|
2084
|
+
*
|
|
2085
|
+
* @generated from field: mochabugapis.adapt.automations.v1.Url url = 4;
|
|
2086
|
+
*/
|
|
2087
|
+
url?: UrlJson;
|
|
2088
|
+
/**
|
|
2089
|
+
* Session status update
|
|
2090
|
+
*
|
|
2091
|
+
* @generated from field: mochabugapis.adapt.automations.v1.Session session = 5;
|
|
2092
|
+
*/
|
|
2093
|
+
session?: SessionJson;
|
|
2094
|
+
/**
|
|
2095
|
+
* Reconnect message — client should reconnect after stream closes
|
|
2096
|
+
*
|
|
2097
|
+
* @generated from field: mochabugapis.adapt.automations.v1.ReconnectMessage reconnect = 6;
|
|
2098
|
+
*/
|
|
2099
|
+
reconnect?: ReconnectMessageJson;
|
|
2100
|
+
};
|
|
2101
|
+
/**
|
|
2102
|
+
* Describes the message mochabugapis.adapt.automations.v1.WatchRunResponse.
|
|
2103
|
+
* Use `create(WatchRunResponseSchema)` to create a new message.
|
|
2104
|
+
*/
|
|
2105
|
+
export declare const WatchRunResponseSchema: GenMessage<WatchRunResponse, {
|
|
2106
|
+
jsonType: WatchRunResponseJson;
|
|
2107
|
+
}>;
|
|
2108
|
+
/**
|
|
2109
|
+
* WatchRunStarted is sent as the first message when a watch-run session starts
|
|
2110
|
+
*
|
|
2111
|
+
* @generated from message mochabugapis.adapt.automations.v1.WatchRunStarted
|
|
2112
|
+
*/
|
|
2113
|
+
export type WatchRunStarted = Message<"mochabugapis.adapt.automations.v1.WatchRunStarted"> & {
|
|
2114
|
+
/**
|
|
2115
|
+
* The access token for the session
|
|
2116
|
+
*
|
|
2117
|
+
* @generated from field: string token = 1;
|
|
2118
|
+
*/
|
|
2119
|
+
token: string;
|
|
2120
|
+
/**
|
|
2121
|
+
* The timestamp when the session expires, if not set, the session never expires
|
|
2122
|
+
*
|
|
2123
|
+
* @generated from field: optional google.protobuf.Timestamp expires = 2;
|
|
2124
|
+
*/
|
|
2125
|
+
expires?: Timestamp;
|
|
2126
|
+
};
|
|
2127
|
+
/**
|
|
2128
|
+
* WatchRunStarted is sent as the first message when a watch-run session starts
|
|
2129
|
+
*
|
|
2130
|
+
* @generated from message mochabugapis.adapt.automations.v1.WatchRunStarted
|
|
2131
|
+
*/
|
|
2132
|
+
export type WatchRunStartedJson = {
|
|
2133
|
+
/**
|
|
2134
|
+
* The access token for the session
|
|
2135
|
+
*
|
|
2136
|
+
* @generated from field: string token = 1;
|
|
2137
|
+
*/
|
|
2138
|
+
token?: string;
|
|
2139
|
+
/**
|
|
2140
|
+
* The timestamp when the session expires, if not set, the session never expires
|
|
2141
|
+
*
|
|
2142
|
+
* @generated from field: optional google.protobuf.Timestamp expires = 2;
|
|
2143
|
+
*/
|
|
2144
|
+
expires?: TimestampJson;
|
|
2145
|
+
};
|
|
2146
|
+
/**
|
|
2147
|
+
* Describes the message mochabugapis.adapt.automations.v1.WatchRunStarted.
|
|
2148
|
+
* Use `create(WatchRunStartedSchema)` to create a new message.
|
|
2149
|
+
*/
|
|
2150
|
+
export declare const WatchRunStartedSchema: GenMessage<WatchRunStarted, {
|
|
2151
|
+
jsonType: WatchRunStartedJson;
|
|
2152
|
+
}>;
|
|
2153
|
+
/**
|
|
2154
|
+
* WatchInheritRequest to inherit and watch a session in one request
|
|
2155
|
+
*
|
|
2156
|
+
* @generated from message mochabugapis.adapt.automations.v1.WatchInheritRequest
|
|
2157
|
+
*/
|
|
2158
|
+
export type WatchInheritRequest = Message<"mochabugapis.adapt.automations.v1.WatchInheritRequest"> & {
|
|
2159
|
+
/**
|
|
2160
|
+
* The automation id to inherit
|
|
2161
|
+
*
|
|
2162
|
+
* @generated from field: string id = 1;
|
|
2163
|
+
*/
|
|
2164
|
+
id: string;
|
|
2165
|
+
};
|
|
2166
|
+
/**
|
|
2167
|
+
* WatchInheritRequest to inherit and watch a session in one request
|
|
2168
|
+
*
|
|
2169
|
+
* @generated from message mochabugapis.adapt.automations.v1.WatchInheritRequest
|
|
2170
|
+
*/
|
|
2171
|
+
export type WatchInheritRequestJson = {
|
|
2172
|
+
/**
|
|
2173
|
+
* The automation id to inherit
|
|
2174
|
+
*
|
|
2175
|
+
* @generated from field: string id = 1;
|
|
2176
|
+
*/
|
|
2177
|
+
id?: string;
|
|
2178
|
+
};
|
|
2179
|
+
/**
|
|
2180
|
+
* Describes the message mochabugapis.adapt.automations.v1.WatchInheritRequest.
|
|
2181
|
+
* Use `create(WatchInheritRequestSchema)` to create a new message.
|
|
2182
|
+
*/
|
|
2183
|
+
export declare const WatchInheritRequestSchema: GenMessage<WatchInheritRequest, {
|
|
2184
|
+
jsonType: WatchInheritRequestJson;
|
|
2185
|
+
}>;
|
|
2186
|
+
/**
|
|
2187
|
+
* WatchInheritResponse wraps all possible message types sent via watch streaming
|
|
2188
|
+
* The first message will always be an inherited message containing the session token
|
|
2189
|
+
*
|
|
2190
|
+
* @generated from message mochabugapis.adapt.automations.v1.WatchInheritResponse
|
|
2191
|
+
*/
|
|
2192
|
+
export type WatchInheritResponse = Message<"mochabugapis.adapt.automations.v1.WatchInheritResponse"> & {
|
|
2193
|
+
/**
|
|
2194
|
+
* A timesortable uuid for the message
|
|
2195
|
+
*
|
|
2196
|
+
* @generated from field: string id = 1;
|
|
2197
|
+
*/
|
|
2198
|
+
id: string;
|
|
2199
|
+
/**
|
|
2200
|
+
* The actual message, one of the following types
|
|
2201
|
+
*
|
|
2202
|
+
* @generated from oneof mochabugapis.adapt.automations.v1.WatchInheritResponse.message
|
|
2203
|
+
*/
|
|
2204
|
+
message: {
|
|
2205
|
+
/**
|
|
2206
|
+
* Session inherited message (always first)
|
|
2207
|
+
*
|
|
2208
|
+
* @generated from field: mochabugapis.adapt.automations.v1.WatchInheritStarted inherited = 2;
|
|
2209
|
+
*/
|
|
2210
|
+
value: WatchInheritStarted;
|
|
2211
|
+
case: "inherited";
|
|
2212
|
+
} | {
|
|
2213
|
+
/**
|
|
2214
|
+
* Output message from a vertex
|
|
2215
|
+
*
|
|
2216
|
+
* @generated from field: mochabugapis.adapt.automations.v1.Output output = 3;
|
|
2217
|
+
*/
|
|
2218
|
+
value: Output;
|
|
2219
|
+
case: "output";
|
|
2220
|
+
} | {
|
|
2221
|
+
/**
|
|
2222
|
+
* URL message for browser interaction
|
|
2223
|
+
*
|
|
2224
|
+
* @generated from field: mochabugapis.adapt.automations.v1.Url url = 4;
|
|
2225
|
+
*/
|
|
2226
|
+
value: Url;
|
|
2227
|
+
case: "url";
|
|
2228
|
+
} | {
|
|
2229
|
+
/**
|
|
2230
|
+
* Session status update
|
|
2231
|
+
*
|
|
2232
|
+
* @generated from field: mochabugapis.adapt.automations.v1.Session session = 5;
|
|
2233
|
+
*/
|
|
2234
|
+
value: Session;
|
|
2235
|
+
case: "session";
|
|
2236
|
+
} | {
|
|
2237
|
+
/**
|
|
2238
|
+
* Reconnect message — client should reconnect after stream closes
|
|
2239
|
+
*
|
|
2240
|
+
* @generated from field: mochabugapis.adapt.automations.v1.ReconnectMessage reconnect = 6;
|
|
2241
|
+
*/
|
|
2242
|
+
value: ReconnectMessage;
|
|
2243
|
+
case: "reconnect";
|
|
2244
|
+
} | {
|
|
2245
|
+
case: undefined;
|
|
2246
|
+
value?: undefined;
|
|
2247
|
+
};
|
|
2248
|
+
};
|
|
2249
|
+
/**
|
|
2250
|
+
* WatchInheritResponse wraps all possible message types sent via watch streaming
|
|
2251
|
+
* The first message will always be an inherited message containing the session token
|
|
2252
|
+
*
|
|
2253
|
+
* @generated from message mochabugapis.adapt.automations.v1.WatchInheritResponse
|
|
2254
|
+
*/
|
|
2255
|
+
export type WatchInheritResponseJson = {
|
|
2256
|
+
/**
|
|
2257
|
+
* A timesortable uuid for the message
|
|
2258
|
+
*
|
|
2259
|
+
* @generated from field: string id = 1;
|
|
2260
|
+
*/
|
|
2261
|
+
id?: string;
|
|
2262
|
+
/**
|
|
2263
|
+
* Session inherited message (always first)
|
|
2264
|
+
*
|
|
2265
|
+
* @generated from field: mochabugapis.adapt.automations.v1.WatchInheritStarted inherited = 2;
|
|
2266
|
+
*/
|
|
2267
|
+
inherited?: WatchInheritStartedJson;
|
|
2268
|
+
/**
|
|
2269
|
+
* Output message from a vertex
|
|
2270
|
+
*
|
|
2271
|
+
* @generated from field: mochabugapis.adapt.automations.v1.Output output = 3;
|
|
2272
|
+
*/
|
|
2273
|
+
output?: OutputJson;
|
|
2274
|
+
/**
|
|
2275
|
+
* URL message for browser interaction
|
|
2276
|
+
*
|
|
2277
|
+
* @generated from field: mochabugapis.adapt.automations.v1.Url url = 4;
|
|
2278
|
+
*/
|
|
2279
|
+
url?: UrlJson;
|
|
2280
|
+
/**
|
|
2281
|
+
* Session status update
|
|
2282
|
+
*
|
|
2283
|
+
* @generated from field: mochabugapis.adapt.automations.v1.Session session = 5;
|
|
2284
|
+
*/
|
|
2285
|
+
session?: SessionJson;
|
|
2286
|
+
/**
|
|
2287
|
+
* Reconnect message — client should reconnect after stream closes
|
|
2288
|
+
*
|
|
2289
|
+
* @generated from field: mochabugapis.adapt.automations.v1.ReconnectMessage reconnect = 6;
|
|
2290
|
+
*/
|
|
2291
|
+
reconnect?: ReconnectMessageJson;
|
|
2292
|
+
};
|
|
2293
|
+
/**
|
|
2294
|
+
* Describes the message mochabugapis.adapt.automations.v1.WatchInheritResponse.
|
|
2295
|
+
* Use `create(WatchInheritResponseSchema)` to create a new message.
|
|
2296
|
+
*/
|
|
2297
|
+
export declare const WatchInheritResponseSchema: GenMessage<WatchInheritResponse, {
|
|
2298
|
+
jsonType: WatchInheritResponseJson;
|
|
2299
|
+
}>;
|
|
2300
|
+
/**
|
|
2301
|
+
* WatchInheritStarted is sent as the first message when a watch-inherit session is inherited
|
|
2302
|
+
*
|
|
2303
|
+
* @generated from message mochabugapis.adapt.automations.v1.WatchInheritStarted
|
|
2304
|
+
*/
|
|
2305
|
+
export type WatchInheritStarted = Message<"mochabugapis.adapt.automations.v1.WatchInheritStarted"> & {
|
|
2306
|
+
/**
|
|
2307
|
+
* The access token for the session
|
|
2308
|
+
*
|
|
2309
|
+
* @generated from field: string token = 1;
|
|
2310
|
+
*/
|
|
2311
|
+
token: string;
|
|
2312
|
+
/**
|
|
2313
|
+
* The timestamp when the session expires, if not set, the session never expires
|
|
2314
|
+
*
|
|
2315
|
+
* @generated from field: optional google.protobuf.Timestamp expires = 2;
|
|
2316
|
+
*/
|
|
2317
|
+
expires?: Timestamp;
|
|
2318
|
+
};
|
|
2319
|
+
/**
|
|
2320
|
+
* WatchInheritStarted is sent as the first message when a watch-inherit session is inherited
|
|
2321
|
+
*
|
|
2322
|
+
* @generated from message mochabugapis.adapt.automations.v1.WatchInheritStarted
|
|
2323
|
+
*/
|
|
2324
|
+
export type WatchInheritStartedJson = {
|
|
2325
|
+
/**
|
|
2326
|
+
* The access token for the session
|
|
2327
|
+
*
|
|
2328
|
+
* @generated from field: string token = 1;
|
|
2329
|
+
*/
|
|
2330
|
+
token?: string;
|
|
2331
|
+
/**
|
|
2332
|
+
* The timestamp when the session expires, if not set, the session never expires
|
|
2333
|
+
*
|
|
2334
|
+
* @generated from field: optional google.protobuf.Timestamp expires = 2;
|
|
2335
|
+
*/
|
|
2336
|
+
expires?: TimestampJson;
|
|
2337
|
+
};
|
|
2338
|
+
/**
|
|
2339
|
+
* Describes the message mochabugapis.adapt.automations.v1.WatchInheritStarted.
|
|
2340
|
+
* Use `create(WatchInheritStartedSchema)` to create a new message.
|
|
2341
|
+
*/
|
|
2342
|
+
export declare const WatchInheritStartedSchema: GenMessage<WatchInheritStarted, {
|
|
2343
|
+
jsonType: WatchInheritStartedJson;
|
|
2344
|
+
}>;
|
|
2345
|
+
/**
|
|
2346
|
+
* The session enum status
|
|
2347
|
+
*
|
|
2348
|
+
* @generated from enum mochabugapis.adapt.automations.v1.Status
|
|
2349
|
+
*/
|
|
2350
|
+
export declare enum Status {
|
|
2351
|
+
/**
|
|
2352
|
+
* Unspecified
|
|
2353
|
+
*
|
|
2354
|
+
* @generated from enum value: STATUS_UNSPECIFIED = 0;
|
|
2355
|
+
*/
|
|
2356
|
+
UNSPECIFIED = 0,
|
|
2357
|
+
/**
|
|
2358
|
+
* The session is running
|
|
2359
|
+
*
|
|
2360
|
+
* @generated from enum value: STATUS_RUNNING = 1;
|
|
2361
|
+
*/
|
|
2362
|
+
RUNNING = 1,
|
|
2363
|
+
/**
|
|
2364
|
+
* The session has been stopped
|
|
2365
|
+
*
|
|
2366
|
+
* @generated from enum value: STATUS_STOPPED = 2;
|
|
2367
|
+
*/
|
|
2368
|
+
STOPPED = 2,
|
|
2369
|
+
/**
|
|
2370
|
+
* The session is being stopped
|
|
2371
|
+
*
|
|
2372
|
+
* @generated from enum value: STATUS_STOPPING = 3;
|
|
2373
|
+
*/
|
|
2374
|
+
STOPPING = 3,
|
|
2375
|
+
/**
|
|
2376
|
+
* The session has been completed
|
|
2377
|
+
*
|
|
2378
|
+
* @generated from enum value: STATUS_COMPLETED = 4;
|
|
2379
|
+
*/
|
|
2380
|
+
COMPLETED = 4,
|
|
2381
|
+
/**
|
|
2382
|
+
* The session has expired
|
|
2383
|
+
*
|
|
2384
|
+
* @generated from enum value: STATUS_EXPIRED = 5;
|
|
2385
|
+
*/
|
|
2386
|
+
EXPIRED = 5,
|
|
2387
|
+
/**
|
|
2388
|
+
* The session has been errored (errors during the runtime)
|
|
2389
|
+
*
|
|
2390
|
+
* @generated from enum value: STATUS_ERRORED = 6;
|
|
2391
|
+
*/
|
|
2392
|
+
ERRORED = 6,
|
|
2393
|
+
/**
|
|
2394
|
+
* The owner is getting delegated to another owner
|
|
2395
|
+
*
|
|
2396
|
+
* @generated from enum value: STATUS_DELEGATING = 7;
|
|
2397
|
+
*/
|
|
2398
|
+
DELEGATING = 7,
|
|
2399
|
+
/**
|
|
2400
|
+
* The delegation is complete, the owner of this session cannot access it anymore
|
|
2401
|
+
*
|
|
2402
|
+
* @generated from enum value: STATUS_DELEGATED = 8;
|
|
2403
|
+
*/
|
|
2404
|
+
DELEGATED = 8
|
|
2405
|
+
}
|
|
2406
|
+
/**
|
|
2407
|
+
* The session enum status
|
|
2408
|
+
*
|
|
2409
|
+
* @generated from enum mochabugapis.adapt.automations.v1.Status
|
|
2410
|
+
*/
|
|
2411
|
+
export type StatusJson = "STATUS_UNSPECIFIED" | "STATUS_RUNNING" | "STATUS_STOPPED" | "STATUS_STOPPING" | "STATUS_COMPLETED" | "STATUS_EXPIRED" | "STATUS_ERRORED" | "STATUS_DELEGATING" | "STATUS_DELEGATED";
|
|
2412
|
+
/**
|
|
2413
|
+
* Describes the enum mochabugapis.adapt.automations.v1.Status.
|
|
2414
|
+
*/
|
|
2415
|
+
export declare const StatusSchema: GenEnum<Status, StatusJson>;
|
|
2416
|
+
/**
|
|
2417
|
+
* A service that provides automation functionality.
|
|
2418
|
+
*
|
|
2419
|
+
* @generated from service mochabugapis.adapt.automations.v1.AutomationService
|
|
2420
|
+
*/
|
|
2421
|
+
export declare const AutomationService: GenService<{
|
|
2422
|
+
/**
|
|
2423
|
+
* The create challenge endpoint for workloads that require PoW before starting
|
|
2424
|
+
*
|
|
2425
|
+
* @generated from rpc mochabugapis.adapt.automations.v1.AutomationService.CreateChallenge
|
|
2426
|
+
*/
|
|
2427
|
+
createChallenge: {
|
|
2428
|
+
methodKind: "unary";
|
|
2429
|
+
input: typeof CreateChallengeRequestSchema;
|
|
2430
|
+
output: typeof CreateChallengeResponseSchema;
|
|
2431
|
+
};
|
|
2432
|
+
/**
|
|
2433
|
+
* The redeem challenge endpoint for workloads that require PoW before starting
|
|
2434
|
+
*
|
|
2435
|
+
* @generated from rpc mochabugapis.adapt.automations.v1.AutomationService.RedeemChallenge
|
|
2436
|
+
*/
|
|
2437
|
+
redeemChallenge: {
|
|
2438
|
+
methodKind: "unary";
|
|
2439
|
+
input: typeof RedeemChallengeRequestSchema;
|
|
2440
|
+
output: typeof RedeemChallengeResponseSchema;
|
|
2441
|
+
};
|
|
2442
|
+
/**
|
|
2443
|
+
* Start a session of the specified automation.
|
|
2444
|
+
* Idempotency: OPTIONAL (will become REQUIRED in a future release). Callers should
|
|
2445
|
+
* provide a UUID v4 idempotency key via the `x-idempotency-key` gRPC metadata header
|
|
2446
|
+
* (or `X-Idempotency-Key` HTTP header). When provided, duplicate requests with the
|
|
2447
|
+
* same key and automation return the cached response. Keys expire after 10 minutes.
|
|
2448
|
+
*
|
|
2449
|
+
* @generated from rpc mochabugapis.adapt.automations.v1.AutomationService.StartSession
|
|
2450
|
+
*/
|
|
2451
|
+
startSession: {
|
|
2452
|
+
methodKind: "unary";
|
|
2453
|
+
input: typeof StartSessionRequestSchema;
|
|
2454
|
+
output: typeof StartSessionResponseSchema;
|
|
2455
|
+
};
|
|
2456
|
+
/**
|
|
2457
|
+
* Stop a specific session
|
|
2458
|
+
*
|
|
2459
|
+
* @generated from rpc mochabugapis.adapt.automations.v1.AutomationService.StopSession
|
|
2460
|
+
*/
|
|
2461
|
+
stopSession: {
|
|
2462
|
+
methodKind: "unary";
|
|
2463
|
+
input: typeof StopSessionRequestSchema;
|
|
2464
|
+
output: typeof StopSessionResponseSchema;
|
|
2465
|
+
};
|
|
2466
|
+
/**
|
|
2467
|
+
* Inherit a session
|
|
2468
|
+
*
|
|
2469
|
+
* @generated from rpc mochabugapis.adapt.automations.v1.AutomationService.InheritSession
|
|
2470
|
+
*/
|
|
2471
|
+
inheritSession: {
|
|
2472
|
+
methodKind: "unary";
|
|
2473
|
+
input: typeof InheritSessionRequestSchema;
|
|
2474
|
+
output: typeof InheritSessionResponseSchema;
|
|
2475
|
+
};
|
|
2476
|
+
/**
|
|
2477
|
+
* Get session information
|
|
2478
|
+
*
|
|
2479
|
+
* @generated from rpc mochabugapis.adapt.automations.v1.AutomationService.GetSession
|
|
2480
|
+
*/
|
|
2481
|
+
getSession: {
|
|
2482
|
+
methodKind: "unary";
|
|
2483
|
+
input: typeof GetSessionRequestSchema;
|
|
2484
|
+
output: typeof GetSessionResponseSchema;
|
|
2485
|
+
};
|
|
1768
2486
|
/**
|
|
1769
2487
|
* Read the output from the session
|
|
1770
2488
|
*
|
|
@@ -1786,6 +2504,7 @@ export declare const AutomationService: GenService<{
|
|
|
1786
2504
|
output: typeof ReadUrlsResponseSchema;
|
|
1787
2505
|
};
|
|
1788
2506
|
/**
|
|
2507
|
+
* DEPRECATED: Use WatchSession instead. Remove once all clients have migrated.
|
|
1789
2508
|
* Stream session messages in real-time (replaces WebSocket)
|
|
1790
2509
|
*
|
|
1791
2510
|
* @generated from rpc mochabugapis.adapt.automations.v1.AutomationService.StreamSession
|
|
@@ -1806,6 +2525,7 @@ export declare const AutomationService: GenService<{
|
|
|
1806
2525
|
output: typeof AckMessageResponseSchema;
|
|
1807
2526
|
};
|
|
1808
2527
|
/**
|
|
2528
|
+
* DEPRECATED: Use WatchRun instead. Remove once all clients have migrated.
|
|
1809
2529
|
* Run a session: starts the automation and streams messages until completion.
|
|
1810
2530
|
* This combines StartSession and StreamSession for lower latency.
|
|
1811
2531
|
* Idempotency: OPTIONAL (will become REQUIRED in a future release). Callers should
|
|
@@ -1822,6 +2542,7 @@ export declare const AutomationService: GenService<{
|
|
|
1822
2542
|
output: typeof RunSessionResponseSchema;
|
|
1823
2543
|
};
|
|
1824
2544
|
/**
|
|
2545
|
+
* DEPRECATED: Use WatchInherit instead. Remove once all clients have migrated.
|
|
1825
2546
|
* Run inherit: inherits ownership and streams messages until completion
|
|
1826
2547
|
* This combines InheritSession and StreamSession for lower latency
|
|
1827
2548
|
*
|
|
@@ -1832,5 +2553,38 @@ export declare const AutomationService: GenService<{
|
|
|
1832
2553
|
input: typeof RunInheritRequestSchema;
|
|
1833
2554
|
output: typeof RunInheritResponseSchema;
|
|
1834
2555
|
};
|
|
2556
|
+
/**
|
|
2557
|
+
* WatchSession streams session messages with reconnect support.
|
|
2558
|
+
* Replaces StreamSession — sends ReconnectMessage before closing.
|
|
2559
|
+
*
|
|
2560
|
+
* @generated from rpc mochabugapis.adapt.automations.v1.AutomationService.WatchSession
|
|
2561
|
+
*/
|
|
2562
|
+
watchSession: {
|
|
2563
|
+
methodKind: "server_streaming";
|
|
2564
|
+
input: typeof WatchSessionRequestSchema;
|
|
2565
|
+
output: typeof WatchSessionResponseSchema;
|
|
2566
|
+
};
|
|
2567
|
+
/**
|
|
2568
|
+
* WatchRun starts a session and streams with reconnect support.
|
|
2569
|
+
* Replaces RunSession — sends ReconnectMessage before closing.
|
|
2570
|
+
*
|
|
2571
|
+
* @generated from rpc mochabugapis.adapt.automations.v1.AutomationService.WatchRun
|
|
2572
|
+
*/
|
|
2573
|
+
watchRun: {
|
|
2574
|
+
methodKind: "server_streaming";
|
|
2575
|
+
input: typeof WatchRunRequestSchema;
|
|
2576
|
+
output: typeof WatchRunResponseSchema;
|
|
2577
|
+
};
|
|
2578
|
+
/**
|
|
2579
|
+
* WatchInherit inherits a session and streams with reconnect support.
|
|
2580
|
+
* Replaces RunInherit — sends ReconnectMessage before closing.
|
|
2581
|
+
*
|
|
2582
|
+
* @generated from rpc mochabugapis.adapt.automations.v1.AutomationService.WatchInherit
|
|
2583
|
+
*/
|
|
2584
|
+
watchInherit: {
|
|
2585
|
+
methodKind: "server_streaming";
|
|
2586
|
+
input: typeof WatchInheritRequestSchema;
|
|
2587
|
+
output: typeof WatchInheritResponseSchema;
|
|
2588
|
+
};
|
|
1835
2589
|
}>;
|
|
1836
2590
|
//# sourceMappingURL=automations_pb.d.ts.map
|