@maxischmaxi/maxforms-api-client 0.0.10 → 0.0.14

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.
@@ -141,6 +141,27 @@ proto3.util.setEnumType(BlockType, "forms.v1.BlockType", [
141
141
  { no: 4, name: "BLOCK_TYPE_DIVIDER" },
142
142
  { no: 5, name: "BLOCK_TYPE_ROW" },
143
143
  ]);
144
+ /**
145
+ * Webhook event types
146
+ *
147
+ * @generated from enum forms.v1.WebhookEvent
148
+ */
149
+ export var WebhookEvent;
150
+ (function (WebhookEvent) {
151
+ /**
152
+ * @generated from enum value: WEBHOOK_EVENT_UNSPECIFIED = 0;
153
+ */
154
+ WebhookEvent[WebhookEvent["UNSPECIFIED"] = 0] = "UNSPECIFIED";
155
+ /**
156
+ * @generated from enum value: WEBHOOK_EVENT_SUBMISSION_CREATED = 1;
157
+ */
158
+ WebhookEvent[WebhookEvent["SUBMISSION_CREATED"] = 1] = "SUBMISSION_CREATED";
159
+ })(WebhookEvent || (WebhookEvent = {}));
160
+ // Retrieve enum metadata with: proto3.getEnumType(WebhookEvent)
161
+ proto3.util.setEnumType(WebhookEvent, "forms.v1.WebhookEvent", [
162
+ { no: 0, name: "WEBHOOK_EVENT_UNSPECIFIED" },
163
+ { no: 1, name: "WEBHOOK_EVENT_SUBMISSION_CREATED" },
164
+ ]);
144
165
  /**
145
166
  * FormField represents a single field in a form
146
167
  *
@@ -1776,4 +1797,886 @@ export class GetDownloadUrlResponse extends Message {
1776
1797
  return proto3.util.equals(GetDownloadUrlResponse, a, b);
1777
1798
  }
1778
1799
  }
1800
+ /**
1801
+ * Webhook represents a webhook configuration for a form
1802
+ *
1803
+ * @generated from message forms.v1.Webhook
1804
+ */
1805
+ export class Webhook extends Message {
1806
+ /**
1807
+ * @generated from field: string id = 1;
1808
+ */
1809
+ id = "";
1810
+ /**
1811
+ * @generated from field: string form_id = 2;
1812
+ */
1813
+ formId = "";
1814
+ /**
1815
+ * @generated from field: string url = 3;
1816
+ */
1817
+ url = "";
1818
+ /**
1819
+ * @generated from field: bool enabled = 4;
1820
+ */
1821
+ enabled = false;
1822
+ /**
1823
+ * @generated from field: repeated forms.v1.WebhookEvent events = 5;
1824
+ */
1825
+ events = [];
1826
+ /**
1827
+ * Only indicates if secret is set (never expose actual secret)
1828
+ *
1829
+ * @generated from field: bool has_secret = 6;
1830
+ */
1831
+ hasSecret = false;
1832
+ /**
1833
+ * @generated from field: map<string, string> headers = 7;
1834
+ */
1835
+ headers = {};
1836
+ /**
1837
+ * Empty = all fields
1838
+ *
1839
+ * @generated from field: repeated string included_fields = 8;
1840
+ */
1841
+ includedFields = [];
1842
+ /**
1843
+ * @generated from field: google.protobuf.Timestamp created_at = 9;
1844
+ */
1845
+ createdAt;
1846
+ /**
1847
+ * @generated from field: google.protobuf.Timestamp updated_at = 10;
1848
+ */
1849
+ updatedAt;
1850
+ constructor(data) {
1851
+ super();
1852
+ proto3.util.initPartial(data, this);
1853
+ }
1854
+ static runtime = proto3;
1855
+ static typeName = "forms.v1.Webhook";
1856
+ static fields = proto3.util.newFieldList(() => [
1857
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1858
+ { no: 2, name: "form_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1859
+ { no: 3, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1860
+ { no: 4, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1861
+ { no: 5, name: "events", kind: "enum", T: proto3.getEnumType(WebhookEvent), repeated: true },
1862
+ { no: 6, name: "has_secret", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1863
+ { no: 7, name: "headers", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
1864
+ { no: 8, name: "included_fields", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1865
+ { no: 9, name: "created_at", kind: "message", T: Timestamp },
1866
+ { no: 10, name: "updated_at", kind: "message", T: Timestamp },
1867
+ ]);
1868
+ static fromBinary(bytes, options) {
1869
+ return new Webhook().fromBinary(bytes, options);
1870
+ }
1871
+ static fromJson(jsonValue, options) {
1872
+ return new Webhook().fromJson(jsonValue, options);
1873
+ }
1874
+ static fromJsonString(jsonString, options) {
1875
+ return new Webhook().fromJsonString(jsonString, options);
1876
+ }
1877
+ static equals(a, b) {
1878
+ return proto3.util.equals(Webhook, a, b);
1879
+ }
1880
+ }
1881
+ /**
1882
+ * WebhookDelivery represents a webhook delivery attempt
1883
+ *
1884
+ * @generated from message forms.v1.WebhookDelivery
1885
+ */
1886
+ export class WebhookDelivery extends Message {
1887
+ /**
1888
+ * @generated from field: string id = 1;
1889
+ */
1890
+ id = "";
1891
+ /**
1892
+ * @generated from field: string webhook_id = 2;
1893
+ */
1894
+ webhookId = "";
1895
+ /**
1896
+ * @generated from field: string event = 3;
1897
+ */
1898
+ event = "";
1899
+ /**
1900
+ * @generated from field: int32 response_status = 4;
1901
+ */
1902
+ responseStatus = 0;
1903
+ /**
1904
+ * Truncated to 1KB
1905
+ *
1906
+ * @generated from field: string response_body = 5;
1907
+ */
1908
+ responseBody = "";
1909
+ /**
1910
+ * @generated from field: bool success = 6;
1911
+ */
1912
+ success = false;
1913
+ /**
1914
+ * @generated from field: int32 attempts = 7;
1915
+ */
1916
+ attempts = 0;
1917
+ /**
1918
+ * @generated from field: google.protobuf.Timestamp created_at = 8;
1919
+ */
1920
+ createdAt;
1921
+ /**
1922
+ * @generated from field: google.protobuf.Timestamp delivered_at = 9;
1923
+ */
1924
+ deliveredAt;
1925
+ constructor(data) {
1926
+ super();
1927
+ proto3.util.initPartial(data, this);
1928
+ }
1929
+ static runtime = proto3;
1930
+ static typeName = "forms.v1.WebhookDelivery";
1931
+ static fields = proto3.util.newFieldList(() => [
1932
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1933
+ { no: 2, name: "webhook_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1934
+ { no: 3, name: "event", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1935
+ { no: 4, name: "response_status", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1936
+ { no: 5, name: "response_body", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1937
+ { no: 6, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1938
+ { no: 7, name: "attempts", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1939
+ { no: 8, name: "created_at", kind: "message", T: Timestamp },
1940
+ { no: 9, name: "delivered_at", kind: "message", T: Timestamp },
1941
+ ]);
1942
+ static fromBinary(bytes, options) {
1943
+ return new WebhookDelivery().fromBinary(bytes, options);
1944
+ }
1945
+ static fromJson(jsonValue, options) {
1946
+ return new WebhookDelivery().fromJson(jsonValue, options);
1947
+ }
1948
+ static fromJsonString(jsonString, options) {
1949
+ return new WebhookDelivery().fromJsonString(jsonString, options);
1950
+ }
1951
+ static equals(a, b) {
1952
+ return proto3.util.equals(WebhookDelivery, a, b);
1953
+ }
1954
+ }
1955
+ /**
1956
+ * @generated from message forms.v1.CreateWebhookRequest
1957
+ */
1958
+ export class CreateWebhookRequest extends Message {
1959
+ /**
1960
+ * @generated from field: string form_id = 1;
1961
+ */
1962
+ formId = "";
1963
+ /**
1964
+ * @generated from field: string url = 2;
1965
+ */
1966
+ url = "";
1967
+ /**
1968
+ * @generated from field: repeated forms.v1.WebhookEvent events = 3;
1969
+ */
1970
+ events = [];
1971
+ /**
1972
+ * Optional, write-only
1973
+ *
1974
+ * @generated from field: string secret = 4;
1975
+ */
1976
+ secret = "";
1977
+ /**
1978
+ * @generated from field: map<string, string> headers = 5;
1979
+ */
1980
+ headers = {};
1981
+ /**
1982
+ * @generated from field: repeated string included_fields = 6;
1983
+ */
1984
+ includedFields = [];
1985
+ constructor(data) {
1986
+ super();
1987
+ proto3.util.initPartial(data, this);
1988
+ }
1989
+ static runtime = proto3;
1990
+ static typeName = "forms.v1.CreateWebhookRequest";
1991
+ static fields = proto3.util.newFieldList(() => [
1992
+ { no: 1, name: "form_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1993
+ { no: 2, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1994
+ { no: 3, name: "events", kind: "enum", T: proto3.getEnumType(WebhookEvent), repeated: true },
1995
+ { no: 4, name: "secret", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1996
+ { no: 5, name: "headers", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
1997
+ { no: 6, name: "included_fields", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1998
+ ]);
1999
+ static fromBinary(bytes, options) {
2000
+ return new CreateWebhookRequest().fromBinary(bytes, options);
2001
+ }
2002
+ static fromJson(jsonValue, options) {
2003
+ return new CreateWebhookRequest().fromJson(jsonValue, options);
2004
+ }
2005
+ static fromJsonString(jsonString, options) {
2006
+ return new CreateWebhookRequest().fromJsonString(jsonString, options);
2007
+ }
2008
+ static equals(a, b) {
2009
+ return proto3.util.equals(CreateWebhookRequest, a, b);
2010
+ }
2011
+ }
2012
+ /**
2013
+ * @generated from message forms.v1.CreateWebhookResponse
2014
+ */
2015
+ export class CreateWebhookResponse extends Message {
2016
+ /**
2017
+ * @generated from field: forms.v1.Webhook webhook = 1;
2018
+ */
2019
+ webhook;
2020
+ constructor(data) {
2021
+ super();
2022
+ proto3.util.initPartial(data, this);
2023
+ }
2024
+ static runtime = proto3;
2025
+ static typeName = "forms.v1.CreateWebhookResponse";
2026
+ static fields = proto3.util.newFieldList(() => [
2027
+ { no: 1, name: "webhook", kind: "message", T: Webhook },
2028
+ ]);
2029
+ static fromBinary(bytes, options) {
2030
+ return new CreateWebhookResponse().fromBinary(bytes, options);
2031
+ }
2032
+ static fromJson(jsonValue, options) {
2033
+ return new CreateWebhookResponse().fromJson(jsonValue, options);
2034
+ }
2035
+ static fromJsonString(jsonString, options) {
2036
+ return new CreateWebhookResponse().fromJsonString(jsonString, options);
2037
+ }
2038
+ static equals(a, b) {
2039
+ return proto3.util.equals(CreateWebhookResponse, a, b);
2040
+ }
2041
+ }
2042
+ /**
2043
+ * @generated from message forms.v1.GetWebhookRequest
2044
+ */
2045
+ export class GetWebhookRequest extends Message {
2046
+ /**
2047
+ * @generated from field: string id = 1;
2048
+ */
2049
+ id = "";
2050
+ constructor(data) {
2051
+ super();
2052
+ proto3.util.initPartial(data, this);
2053
+ }
2054
+ static runtime = proto3;
2055
+ static typeName = "forms.v1.GetWebhookRequest";
2056
+ static fields = proto3.util.newFieldList(() => [
2057
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2058
+ ]);
2059
+ static fromBinary(bytes, options) {
2060
+ return new GetWebhookRequest().fromBinary(bytes, options);
2061
+ }
2062
+ static fromJson(jsonValue, options) {
2063
+ return new GetWebhookRequest().fromJson(jsonValue, options);
2064
+ }
2065
+ static fromJsonString(jsonString, options) {
2066
+ return new GetWebhookRequest().fromJsonString(jsonString, options);
2067
+ }
2068
+ static equals(a, b) {
2069
+ return proto3.util.equals(GetWebhookRequest, a, b);
2070
+ }
2071
+ }
2072
+ /**
2073
+ * @generated from message forms.v1.GetWebhookResponse
2074
+ */
2075
+ export class GetWebhookResponse extends Message {
2076
+ /**
2077
+ * @generated from field: forms.v1.Webhook webhook = 1;
2078
+ */
2079
+ webhook;
2080
+ constructor(data) {
2081
+ super();
2082
+ proto3.util.initPartial(data, this);
2083
+ }
2084
+ static runtime = proto3;
2085
+ static typeName = "forms.v1.GetWebhookResponse";
2086
+ static fields = proto3.util.newFieldList(() => [
2087
+ { no: 1, name: "webhook", kind: "message", T: Webhook },
2088
+ ]);
2089
+ static fromBinary(bytes, options) {
2090
+ return new GetWebhookResponse().fromBinary(bytes, options);
2091
+ }
2092
+ static fromJson(jsonValue, options) {
2093
+ return new GetWebhookResponse().fromJson(jsonValue, options);
2094
+ }
2095
+ static fromJsonString(jsonString, options) {
2096
+ return new GetWebhookResponse().fromJsonString(jsonString, options);
2097
+ }
2098
+ static equals(a, b) {
2099
+ return proto3.util.equals(GetWebhookResponse, a, b);
2100
+ }
2101
+ }
2102
+ /**
2103
+ * @generated from message forms.v1.ListWebhooksRequest
2104
+ */
2105
+ export class ListWebhooksRequest extends Message {
2106
+ /**
2107
+ * @generated from field: string form_id = 1;
2108
+ */
2109
+ formId = "";
2110
+ constructor(data) {
2111
+ super();
2112
+ proto3.util.initPartial(data, this);
2113
+ }
2114
+ static runtime = proto3;
2115
+ static typeName = "forms.v1.ListWebhooksRequest";
2116
+ static fields = proto3.util.newFieldList(() => [
2117
+ { no: 1, name: "form_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2118
+ ]);
2119
+ static fromBinary(bytes, options) {
2120
+ return new ListWebhooksRequest().fromBinary(bytes, options);
2121
+ }
2122
+ static fromJson(jsonValue, options) {
2123
+ return new ListWebhooksRequest().fromJson(jsonValue, options);
2124
+ }
2125
+ static fromJsonString(jsonString, options) {
2126
+ return new ListWebhooksRequest().fromJsonString(jsonString, options);
2127
+ }
2128
+ static equals(a, b) {
2129
+ return proto3.util.equals(ListWebhooksRequest, a, b);
2130
+ }
2131
+ }
2132
+ /**
2133
+ * @generated from message forms.v1.ListWebhooksResponse
2134
+ */
2135
+ export class ListWebhooksResponse extends Message {
2136
+ /**
2137
+ * @generated from field: repeated forms.v1.Webhook webhooks = 1;
2138
+ */
2139
+ webhooks = [];
2140
+ constructor(data) {
2141
+ super();
2142
+ proto3.util.initPartial(data, this);
2143
+ }
2144
+ static runtime = proto3;
2145
+ static typeName = "forms.v1.ListWebhooksResponse";
2146
+ static fields = proto3.util.newFieldList(() => [
2147
+ { no: 1, name: "webhooks", kind: "message", T: Webhook, repeated: true },
2148
+ ]);
2149
+ static fromBinary(bytes, options) {
2150
+ return new ListWebhooksResponse().fromBinary(bytes, options);
2151
+ }
2152
+ static fromJson(jsonValue, options) {
2153
+ return new ListWebhooksResponse().fromJson(jsonValue, options);
2154
+ }
2155
+ static fromJsonString(jsonString, options) {
2156
+ return new ListWebhooksResponse().fromJsonString(jsonString, options);
2157
+ }
2158
+ static equals(a, b) {
2159
+ return proto3.util.equals(ListWebhooksResponse, a, b);
2160
+ }
2161
+ }
2162
+ /**
2163
+ * @generated from message forms.v1.UpdateWebhookRequest
2164
+ */
2165
+ export class UpdateWebhookRequest extends Message {
2166
+ /**
2167
+ * @generated from field: string id = 1;
2168
+ */
2169
+ id = "";
2170
+ /**
2171
+ * @generated from field: string url = 2;
2172
+ */
2173
+ url = "";
2174
+ /**
2175
+ * @generated from field: bool enabled = 3;
2176
+ */
2177
+ enabled = false;
2178
+ /**
2179
+ * @generated from field: repeated forms.v1.WebhookEvent events = 4;
2180
+ */
2181
+ events = [];
2182
+ /**
2183
+ * Empty = don't change, "-" = delete
2184
+ *
2185
+ * @generated from field: string secret = 5;
2186
+ */
2187
+ secret = "";
2188
+ /**
2189
+ * @generated from field: map<string, string> headers = 6;
2190
+ */
2191
+ headers = {};
2192
+ /**
2193
+ * @generated from field: repeated string included_fields = 7;
2194
+ */
2195
+ includedFields = [];
2196
+ constructor(data) {
2197
+ super();
2198
+ proto3.util.initPartial(data, this);
2199
+ }
2200
+ static runtime = proto3;
2201
+ static typeName = "forms.v1.UpdateWebhookRequest";
2202
+ static fields = proto3.util.newFieldList(() => [
2203
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2204
+ { no: 2, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2205
+ { no: 3, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
2206
+ { no: 4, name: "events", kind: "enum", T: proto3.getEnumType(WebhookEvent), repeated: true },
2207
+ { no: 5, name: "secret", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2208
+ { no: 6, name: "headers", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
2209
+ { no: 7, name: "included_fields", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
2210
+ ]);
2211
+ static fromBinary(bytes, options) {
2212
+ return new UpdateWebhookRequest().fromBinary(bytes, options);
2213
+ }
2214
+ static fromJson(jsonValue, options) {
2215
+ return new UpdateWebhookRequest().fromJson(jsonValue, options);
2216
+ }
2217
+ static fromJsonString(jsonString, options) {
2218
+ return new UpdateWebhookRequest().fromJsonString(jsonString, options);
2219
+ }
2220
+ static equals(a, b) {
2221
+ return proto3.util.equals(UpdateWebhookRequest, a, b);
2222
+ }
2223
+ }
2224
+ /**
2225
+ * @generated from message forms.v1.UpdateWebhookResponse
2226
+ */
2227
+ export class UpdateWebhookResponse extends Message {
2228
+ /**
2229
+ * @generated from field: forms.v1.Webhook webhook = 1;
2230
+ */
2231
+ webhook;
2232
+ constructor(data) {
2233
+ super();
2234
+ proto3.util.initPartial(data, this);
2235
+ }
2236
+ static runtime = proto3;
2237
+ static typeName = "forms.v1.UpdateWebhookResponse";
2238
+ static fields = proto3.util.newFieldList(() => [
2239
+ { no: 1, name: "webhook", kind: "message", T: Webhook },
2240
+ ]);
2241
+ static fromBinary(bytes, options) {
2242
+ return new UpdateWebhookResponse().fromBinary(bytes, options);
2243
+ }
2244
+ static fromJson(jsonValue, options) {
2245
+ return new UpdateWebhookResponse().fromJson(jsonValue, options);
2246
+ }
2247
+ static fromJsonString(jsonString, options) {
2248
+ return new UpdateWebhookResponse().fromJsonString(jsonString, options);
2249
+ }
2250
+ static equals(a, b) {
2251
+ return proto3.util.equals(UpdateWebhookResponse, a, b);
2252
+ }
2253
+ }
2254
+ /**
2255
+ * @generated from message forms.v1.DeleteWebhookRequest
2256
+ */
2257
+ export class DeleteWebhookRequest extends Message {
2258
+ /**
2259
+ * @generated from field: string id = 1;
2260
+ */
2261
+ id = "";
2262
+ constructor(data) {
2263
+ super();
2264
+ proto3.util.initPartial(data, this);
2265
+ }
2266
+ static runtime = proto3;
2267
+ static typeName = "forms.v1.DeleteWebhookRequest";
2268
+ static fields = proto3.util.newFieldList(() => [
2269
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2270
+ ]);
2271
+ static fromBinary(bytes, options) {
2272
+ return new DeleteWebhookRequest().fromBinary(bytes, options);
2273
+ }
2274
+ static fromJson(jsonValue, options) {
2275
+ return new DeleteWebhookRequest().fromJson(jsonValue, options);
2276
+ }
2277
+ static fromJsonString(jsonString, options) {
2278
+ return new DeleteWebhookRequest().fromJsonString(jsonString, options);
2279
+ }
2280
+ static equals(a, b) {
2281
+ return proto3.util.equals(DeleteWebhookRequest, a, b);
2282
+ }
2283
+ }
2284
+ /**
2285
+ * @generated from message forms.v1.DeleteWebhookResponse
2286
+ */
2287
+ export class DeleteWebhookResponse extends Message {
2288
+ constructor(data) {
2289
+ super();
2290
+ proto3.util.initPartial(data, this);
2291
+ }
2292
+ static runtime = proto3;
2293
+ static typeName = "forms.v1.DeleteWebhookResponse";
2294
+ static fields = proto3.util.newFieldList(() => []);
2295
+ static fromBinary(bytes, options) {
2296
+ return new DeleteWebhookResponse().fromBinary(bytes, options);
2297
+ }
2298
+ static fromJson(jsonValue, options) {
2299
+ return new DeleteWebhookResponse().fromJson(jsonValue, options);
2300
+ }
2301
+ static fromJsonString(jsonString, options) {
2302
+ return new DeleteWebhookResponse().fromJsonString(jsonString, options);
2303
+ }
2304
+ static equals(a, b) {
2305
+ return proto3.util.equals(DeleteWebhookResponse, a, b);
2306
+ }
2307
+ }
2308
+ /**
2309
+ * @generated from message forms.v1.TestWebhookRequest
2310
+ */
2311
+ export class TestWebhookRequest extends Message {
2312
+ /**
2313
+ * @generated from field: string id = 1;
2314
+ */
2315
+ id = "";
2316
+ constructor(data) {
2317
+ super();
2318
+ proto3.util.initPartial(data, this);
2319
+ }
2320
+ static runtime = proto3;
2321
+ static typeName = "forms.v1.TestWebhookRequest";
2322
+ static fields = proto3.util.newFieldList(() => [
2323
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2324
+ ]);
2325
+ static fromBinary(bytes, options) {
2326
+ return new TestWebhookRequest().fromBinary(bytes, options);
2327
+ }
2328
+ static fromJson(jsonValue, options) {
2329
+ return new TestWebhookRequest().fromJson(jsonValue, options);
2330
+ }
2331
+ static fromJsonString(jsonString, options) {
2332
+ return new TestWebhookRequest().fromJsonString(jsonString, options);
2333
+ }
2334
+ static equals(a, b) {
2335
+ return proto3.util.equals(TestWebhookRequest, a, b);
2336
+ }
2337
+ }
2338
+ /**
2339
+ * @generated from message forms.v1.TestWebhookResponse
2340
+ */
2341
+ export class TestWebhookResponse extends Message {
2342
+ /**
2343
+ * @generated from field: bool success = 1;
2344
+ */
2345
+ success = false;
2346
+ /**
2347
+ * @generated from field: int32 response_status = 2;
2348
+ */
2349
+ responseStatus = 0;
2350
+ /**
2351
+ * @generated from field: string response_body = 3;
2352
+ */
2353
+ responseBody = "";
2354
+ /**
2355
+ * @generated from field: string error = 4;
2356
+ */
2357
+ error = "";
2358
+ constructor(data) {
2359
+ super();
2360
+ proto3.util.initPartial(data, this);
2361
+ }
2362
+ static runtime = proto3;
2363
+ static typeName = "forms.v1.TestWebhookResponse";
2364
+ static fields = proto3.util.newFieldList(() => [
2365
+ { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
2366
+ { no: 2, name: "response_status", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
2367
+ { no: 3, name: "response_body", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2368
+ { no: 4, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2369
+ ]);
2370
+ static fromBinary(bytes, options) {
2371
+ return new TestWebhookResponse().fromBinary(bytes, options);
2372
+ }
2373
+ static fromJson(jsonValue, options) {
2374
+ return new TestWebhookResponse().fromJson(jsonValue, options);
2375
+ }
2376
+ static fromJsonString(jsonString, options) {
2377
+ return new TestWebhookResponse().fromJsonString(jsonString, options);
2378
+ }
2379
+ static equals(a, b) {
2380
+ return proto3.util.equals(TestWebhookResponse, a, b);
2381
+ }
2382
+ }
2383
+ /**
2384
+ * @generated from message forms.v1.ListWebhookDeliveriesRequest
2385
+ */
2386
+ export class ListWebhookDeliveriesRequest extends Message {
2387
+ /**
2388
+ * @generated from field: string webhook_id = 1;
2389
+ */
2390
+ webhookId = "";
2391
+ /**
2392
+ * Default 20, Max 50
2393
+ *
2394
+ * @generated from field: int32 page_size = 2;
2395
+ */
2396
+ pageSize = 0;
2397
+ /**
2398
+ * @generated from field: string page_token = 3;
2399
+ */
2400
+ pageToken = "";
2401
+ constructor(data) {
2402
+ super();
2403
+ proto3.util.initPartial(data, this);
2404
+ }
2405
+ static runtime = proto3;
2406
+ static typeName = "forms.v1.ListWebhookDeliveriesRequest";
2407
+ static fields = proto3.util.newFieldList(() => [
2408
+ { no: 1, name: "webhook_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2409
+ { no: 2, name: "page_size", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
2410
+ { no: 3, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2411
+ ]);
2412
+ static fromBinary(bytes, options) {
2413
+ return new ListWebhookDeliveriesRequest().fromBinary(bytes, options);
2414
+ }
2415
+ static fromJson(jsonValue, options) {
2416
+ return new ListWebhookDeliveriesRequest().fromJson(jsonValue, options);
2417
+ }
2418
+ static fromJsonString(jsonString, options) {
2419
+ return new ListWebhookDeliveriesRequest().fromJsonString(jsonString, options);
2420
+ }
2421
+ static equals(a, b) {
2422
+ return proto3.util.equals(ListWebhookDeliveriesRequest, a, b);
2423
+ }
2424
+ }
2425
+ /**
2426
+ * @generated from message forms.v1.ListWebhookDeliveriesResponse
2427
+ */
2428
+ export class ListWebhookDeliveriesResponse extends Message {
2429
+ /**
2430
+ * @generated from field: repeated forms.v1.WebhookDelivery deliveries = 1;
2431
+ */
2432
+ deliveries = [];
2433
+ /**
2434
+ * @generated from field: string next_page_token = 2;
2435
+ */
2436
+ nextPageToken = "";
2437
+ constructor(data) {
2438
+ super();
2439
+ proto3.util.initPartial(data, this);
2440
+ }
2441
+ static runtime = proto3;
2442
+ static typeName = "forms.v1.ListWebhookDeliveriesResponse";
2443
+ static fields = proto3.util.newFieldList(() => [
2444
+ { no: 1, name: "deliveries", kind: "message", T: WebhookDelivery, repeated: true },
2445
+ { no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2446
+ ]);
2447
+ static fromBinary(bytes, options) {
2448
+ return new ListWebhookDeliveriesResponse().fromBinary(bytes, options);
2449
+ }
2450
+ static fromJson(jsonValue, options) {
2451
+ return new ListWebhookDeliveriesResponse().fromJson(jsonValue, options);
2452
+ }
2453
+ static fromJsonString(jsonString, options) {
2454
+ return new ListWebhookDeliveriesResponse().fromJsonString(jsonString, options);
2455
+ }
2456
+ static equals(a, b) {
2457
+ return proto3.util.equals(ListWebhookDeliveriesResponse, a, b);
2458
+ }
2459
+ }
2460
+ /**
2461
+ * @generated from message forms.v1.RetryWebhookDeliveryRequest
2462
+ */
2463
+ export class RetryWebhookDeliveryRequest extends Message {
2464
+ /**
2465
+ * @generated from field: string delivery_id = 1;
2466
+ */
2467
+ deliveryId = "";
2468
+ constructor(data) {
2469
+ super();
2470
+ proto3.util.initPartial(data, this);
2471
+ }
2472
+ static runtime = proto3;
2473
+ static typeName = "forms.v1.RetryWebhookDeliveryRequest";
2474
+ static fields = proto3.util.newFieldList(() => [
2475
+ { no: 1, name: "delivery_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2476
+ ]);
2477
+ static fromBinary(bytes, options) {
2478
+ return new RetryWebhookDeliveryRequest().fromBinary(bytes, options);
2479
+ }
2480
+ static fromJson(jsonValue, options) {
2481
+ return new RetryWebhookDeliveryRequest().fromJson(jsonValue, options);
2482
+ }
2483
+ static fromJsonString(jsonString, options) {
2484
+ return new RetryWebhookDeliveryRequest().fromJsonString(jsonString, options);
2485
+ }
2486
+ static equals(a, b) {
2487
+ return proto3.util.equals(RetryWebhookDeliveryRequest, a, b);
2488
+ }
2489
+ }
2490
+ /**
2491
+ * @generated from message forms.v1.RetryWebhookDeliveryResponse
2492
+ */
2493
+ export class RetryWebhookDeliveryResponse extends Message {
2494
+ /**
2495
+ * @generated from field: forms.v1.WebhookDelivery delivery = 1;
2496
+ */
2497
+ delivery;
2498
+ constructor(data) {
2499
+ super();
2500
+ proto3.util.initPartial(data, this);
2501
+ }
2502
+ static runtime = proto3;
2503
+ static typeName = "forms.v1.RetryWebhookDeliveryResponse";
2504
+ static fields = proto3.util.newFieldList(() => [
2505
+ { no: 1, name: "delivery", kind: "message", T: WebhookDelivery },
2506
+ ]);
2507
+ static fromBinary(bytes, options) {
2508
+ return new RetryWebhookDeliveryResponse().fromBinary(bytes, options);
2509
+ }
2510
+ static fromJson(jsonValue, options) {
2511
+ return new RetryWebhookDeliveryResponse().fromJson(jsonValue, options);
2512
+ }
2513
+ static fromJsonString(jsonString, options) {
2514
+ return new RetryWebhookDeliveryResponse().fromJsonString(jsonString, options);
2515
+ }
2516
+ static equals(a, b) {
2517
+ return proto3.util.equals(RetryWebhookDeliveryResponse, a, b);
2518
+ }
2519
+ }
2520
+ /**
2521
+ * @generated from message forms.v1.CreatePreviewTokenRequest
2522
+ */
2523
+ export class CreatePreviewTokenRequest extends Message {
2524
+ /**
2525
+ * @generated from field: string form_id = 1;
2526
+ */
2527
+ formId = "";
2528
+ constructor(data) {
2529
+ super();
2530
+ proto3.util.initPartial(data, this);
2531
+ }
2532
+ static runtime = proto3;
2533
+ static typeName = "forms.v1.CreatePreviewTokenRequest";
2534
+ static fields = proto3.util.newFieldList(() => [
2535
+ { no: 1, name: "form_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2536
+ ]);
2537
+ static fromBinary(bytes, options) {
2538
+ return new CreatePreviewTokenRequest().fromBinary(bytes, options);
2539
+ }
2540
+ static fromJson(jsonValue, options) {
2541
+ return new CreatePreviewTokenRequest().fromJson(jsonValue, options);
2542
+ }
2543
+ static fromJsonString(jsonString, options) {
2544
+ return new CreatePreviewTokenRequest().fromJsonString(jsonString, options);
2545
+ }
2546
+ static equals(a, b) {
2547
+ return proto3.util.equals(CreatePreviewTokenRequest, a, b);
2548
+ }
2549
+ }
2550
+ /**
2551
+ * @generated from message forms.v1.CreatePreviewTokenResponse
2552
+ */
2553
+ export class CreatePreviewTokenResponse extends Message {
2554
+ /**
2555
+ * @generated from field: string token = 1;
2556
+ */
2557
+ token = "";
2558
+ /**
2559
+ * @generated from field: string preview_url = 2;
2560
+ */
2561
+ previewUrl = "";
2562
+ /**
2563
+ * @generated from field: google.protobuf.Timestamp expires_at = 3;
2564
+ */
2565
+ expiresAt;
2566
+ constructor(data) {
2567
+ super();
2568
+ proto3.util.initPartial(data, this);
2569
+ }
2570
+ static runtime = proto3;
2571
+ static typeName = "forms.v1.CreatePreviewTokenResponse";
2572
+ static fields = proto3.util.newFieldList(() => [
2573
+ { no: 1, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2574
+ { no: 2, name: "preview_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2575
+ { no: 3, name: "expires_at", kind: "message", T: Timestamp },
2576
+ ]);
2577
+ static fromBinary(bytes, options) {
2578
+ return new CreatePreviewTokenResponse().fromBinary(bytes, options);
2579
+ }
2580
+ static fromJson(jsonValue, options) {
2581
+ return new CreatePreviewTokenResponse().fromJson(jsonValue, options);
2582
+ }
2583
+ static fromJsonString(jsonString, options) {
2584
+ return new CreatePreviewTokenResponse().fromJsonString(jsonString, options);
2585
+ }
2586
+ static equals(a, b) {
2587
+ return proto3.util.equals(CreatePreviewTokenResponse, a, b);
2588
+ }
2589
+ }
2590
+ /**
2591
+ * @generated from message forms.v1.GetFormByPreviewTokenRequest
2592
+ */
2593
+ export class GetFormByPreviewTokenRequest extends Message {
2594
+ /**
2595
+ * @generated from field: string token = 1;
2596
+ */
2597
+ token = "";
2598
+ constructor(data) {
2599
+ super();
2600
+ proto3.util.initPartial(data, this);
2601
+ }
2602
+ static runtime = proto3;
2603
+ static typeName = "forms.v1.GetFormByPreviewTokenRequest";
2604
+ static fields = proto3.util.newFieldList(() => [
2605
+ { no: 1, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2606
+ ]);
2607
+ static fromBinary(bytes, options) {
2608
+ return new GetFormByPreviewTokenRequest().fromBinary(bytes, options);
2609
+ }
2610
+ static fromJson(jsonValue, options) {
2611
+ return new GetFormByPreviewTokenRequest().fromJson(jsonValue, options);
2612
+ }
2613
+ static fromJsonString(jsonString, options) {
2614
+ return new GetFormByPreviewTokenRequest().fromJsonString(jsonString, options);
2615
+ }
2616
+ static equals(a, b) {
2617
+ return proto3.util.equals(GetFormByPreviewTokenRequest, a, b);
2618
+ }
2619
+ }
2620
+ /**
2621
+ * @generated from message forms.v1.GetFormByPreviewTokenResponse
2622
+ */
2623
+ export class GetFormByPreviewTokenResponse extends Message {
2624
+ /**
2625
+ * @generated from field: string id = 1;
2626
+ */
2627
+ id = "";
2628
+ /**
2629
+ * @generated from field: string name = 2;
2630
+ */
2631
+ name = "";
2632
+ /**
2633
+ * @generated from field: string description = 3;
2634
+ */
2635
+ description = "";
2636
+ /**
2637
+ * @generated from field: repeated forms.v1.FormField fields = 4;
2638
+ */
2639
+ fields = [];
2640
+ /**
2641
+ * @generated from field: forms.v1.FormSettings settings = 5;
2642
+ */
2643
+ settings;
2644
+ /**
2645
+ * @generated from field: repeated forms.v1.FormBlock layout = 6;
2646
+ */
2647
+ layout = [];
2648
+ /**
2649
+ * Always true, indicates preview mode
2650
+ *
2651
+ * @generated from field: bool is_preview = 7;
2652
+ */
2653
+ isPreview = false;
2654
+ constructor(data) {
2655
+ super();
2656
+ proto3.util.initPartial(data, this);
2657
+ }
2658
+ static runtime = proto3;
2659
+ static typeName = "forms.v1.GetFormByPreviewTokenResponse";
2660
+ static fields = proto3.util.newFieldList(() => [
2661
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2662
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2663
+ { no: 3, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2664
+ { no: 4, name: "fields", kind: "message", T: FormField, repeated: true },
2665
+ { no: 5, name: "settings", kind: "message", T: FormSettings },
2666
+ { no: 6, name: "layout", kind: "message", T: FormBlock, repeated: true },
2667
+ { no: 7, name: "is_preview", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
2668
+ ]);
2669
+ static fromBinary(bytes, options) {
2670
+ return new GetFormByPreviewTokenResponse().fromBinary(bytes, options);
2671
+ }
2672
+ static fromJson(jsonValue, options) {
2673
+ return new GetFormByPreviewTokenResponse().fromJson(jsonValue, options);
2674
+ }
2675
+ static fromJsonString(jsonString, options) {
2676
+ return new GetFormByPreviewTokenResponse().fromJsonString(jsonString, options);
2677
+ }
2678
+ static equals(a, b) {
2679
+ return proto3.util.equals(GetFormByPreviewTokenResponse, a, b);
2680
+ }
2681
+ }
1779
2682
  //# sourceMappingURL=forms_pb.js.map