@maxischmaxi/maxforms-api-client 0.0.4

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.
@@ -0,0 +1,1154 @@
1
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
+ import { Message, proto3, Timestamp } from "@bufbuild/protobuf";
3
+ /**
4
+ * Form status
5
+ *
6
+ * @generated from enum forms.v1.FormStatus
7
+ */
8
+ export declare enum FormStatus {
9
+ /**
10
+ * @generated from enum value: FORM_STATUS_UNSPECIFIED = 0;
11
+ */
12
+ UNSPECIFIED = 0,
13
+ /**
14
+ * @generated from enum value: FORM_STATUS_DRAFT = 1;
15
+ */
16
+ DRAFT = 1,
17
+ /**
18
+ * @generated from enum value: FORM_STATUS_PUBLISHED = 2;
19
+ */
20
+ PUBLISHED = 2
21
+ }
22
+ /**
23
+ * Field types supported by forms
24
+ *
25
+ * @generated from enum forms.v1.FieldType
26
+ */
27
+ export declare enum FieldType {
28
+ /**
29
+ * @generated from enum value: FIELD_TYPE_UNSPECIFIED = 0;
30
+ */
31
+ UNSPECIFIED = 0,
32
+ /**
33
+ * @generated from enum value: FIELD_TYPE_TEXT = 1;
34
+ */
35
+ TEXT = 1,
36
+ /**
37
+ * @generated from enum value: FIELD_TYPE_EMAIL = 2;
38
+ */
39
+ EMAIL = 2,
40
+ /**
41
+ * @generated from enum value: FIELD_TYPE_NUMBER = 3;
42
+ */
43
+ NUMBER = 3,
44
+ /**
45
+ * @generated from enum value: FIELD_TYPE_TEXTAREA = 4;
46
+ */
47
+ TEXTAREA = 4,
48
+ /**
49
+ * @generated from enum value: FIELD_TYPE_SELECT = 5;
50
+ */
51
+ SELECT = 5,
52
+ /**
53
+ * @generated from enum value: FIELD_TYPE_CHECKBOX = 6;
54
+ */
55
+ CHECKBOX = 6,
56
+ /**
57
+ * @generated from enum value: FIELD_TYPE_RADIO = 7;
58
+ */
59
+ RADIO = 7,
60
+ /**
61
+ * @generated from enum value: FIELD_TYPE_DATE = 8;
62
+ */
63
+ DATE = 8,
64
+ /**
65
+ * @generated from enum value: FIELD_TYPE_FILE = 9;
66
+ */
67
+ FILE = 9
68
+ }
69
+ /**
70
+ * Block types for form layout
71
+ *
72
+ * @generated from enum forms.v1.BlockType
73
+ */
74
+ export declare enum BlockType {
75
+ /**
76
+ * @generated from enum value: BLOCK_TYPE_UNSPECIFIED = 0;
77
+ */
78
+ UNSPECIFIED = 0,
79
+ /**
80
+ * References a FormField
81
+ *
82
+ * @generated from enum value: BLOCK_TYPE_FIELD = 1;
83
+ */
84
+ FIELD = 1,
85
+ /**
86
+ * H1, H2, H3
87
+ *
88
+ * @generated from enum value: BLOCK_TYPE_HEADING = 2;
89
+ */
90
+ HEADING = 2,
91
+ /**
92
+ * Paragraph text
93
+ *
94
+ * @generated from enum value: BLOCK_TYPE_TEXT = 3;
95
+ */
96
+ TEXT = 3,
97
+ /**
98
+ * Horizontal divider
99
+ *
100
+ * @generated from enum value: BLOCK_TYPE_DIVIDER = 4;
101
+ */
102
+ DIVIDER = 4,
103
+ /**
104
+ * Multi-column row container
105
+ *
106
+ * @generated from enum value: BLOCK_TYPE_ROW = 5;
107
+ */
108
+ ROW = 5
109
+ }
110
+ /**
111
+ * FormField represents a single field in a form
112
+ *
113
+ * @generated from message forms.v1.FormField
114
+ */
115
+ export declare class FormField extends Message<FormField> {
116
+ /**
117
+ * @generated from field: string id = 1;
118
+ */
119
+ id: string;
120
+ /**
121
+ * @generated from field: string name = 2;
122
+ */
123
+ name: string;
124
+ /**
125
+ * @generated from field: string label = 3;
126
+ */
127
+ label: string;
128
+ /**
129
+ * @generated from field: forms.v1.FieldType type = 4;
130
+ */
131
+ type: FieldType;
132
+ /**
133
+ * @generated from field: bool required = 5;
134
+ */
135
+ required: boolean;
136
+ /**
137
+ * @generated from field: string placeholder = 6;
138
+ */
139
+ placeholder: string;
140
+ /**
141
+ * @generated from field: string default_value = 7;
142
+ */
143
+ defaultValue: string;
144
+ /**
145
+ * For select, radio, checkbox
146
+ *
147
+ * @generated from field: repeated string options = 8;
148
+ */
149
+ options: string[];
150
+ /**
151
+ * Validation rules
152
+ *
153
+ * @generated from field: map<string, string> validation = 9;
154
+ */
155
+ validation: {
156
+ [key: string]: string;
157
+ };
158
+ /**
159
+ * @generated from field: int32 order = 10;
160
+ */
161
+ order: number;
162
+ constructor(data?: PartialMessage<FormField>);
163
+ static readonly runtime: typeof proto3;
164
+ static readonly typeName = "forms.v1.FormField";
165
+ static readonly fields: FieldList;
166
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FormField;
167
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FormField;
168
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FormField;
169
+ static equals(a: FormField | PlainMessage<FormField> | undefined, b: FormField | PlainMessage<FormField> | undefined): boolean;
170
+ }
171
+ /**
172
+ * FormBlock represents a layout block in the form
173
+ *
174
+ * @generated from message forms.v1.FormBlock
175
+ */
176
+ export declare class FormBlock extends Message<FormBlock> {
177
+ /**
178
+ * @generated from field: string id = 1;
179
+ */
180
+ id: string;
181
+ /**
182
+ * @generated from field: forms.v1.BlockType type = 2;
183
+ */
184
+ type: BlockType;
185
+ /**
186
+ * For FIELD blocks - reference to FormField
187
+ *
188
+ * @generated from field: string field_id = 3;
189
+ */
190
+ fieldId: string;
191
+ /**
192
+ * For HEADING blocks - the heading text and level (1, 2, 3)
193
+ *
194
+ * @generated from field: string content = 4;
195
+ */
196
+ content: string;
197
+ /**
198
+ * @generated from field: int32 level = 5;
199
+ */
200
+ level: number;
201
+ /**
202
+ * For ROW blocks - child blocks and column count
203
+ *
204
+ * @generated from field: repeated forms.v1.FormBlock children = 6;
205
+ */
206
+ children: FormBlock[];
207
+ /**
208
+ * @generated from field: int32 columns = 7;
209
+ */
210
+ columns: number;
211
+ constructor(data?: PartialMessage<FormBlock>);
212
+ static readonly runtime: typeof proto3;
213
+ static readonly typeName = "forms.v1.FormBlock";
214
+ static readonly fields: FieldList;
215
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FormBlock;
216
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FormBlock;
217
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FormBlock;
218
+ static equals(a: FormBlock | PlainMessage<FormBlock> | undefined, b: FormBlock | PlainMessage<FormBlock> | undefined): boolean;
219
+ }
220
+ /**
221
+ * Form represents a complete form definition
222
+ *
223
+ * @generated from message forms.v1.Form
224
+ */
225
+ export declare class Form extends Message<Form> {
226
+ /**
227
+ * @generated from field: string id = 1;
228
+ */
229
+ id: string;
230
+ /**
231
+ * @generated from field: string name = 2;
232
+ */
233
+ name: string;
234
+ /**
235
+ * @generated from field: string description = 3;
236
+ */
237
+ description: string;
238
+ /**
239
+ * @generated from field: repeated forms.v1.FormField fields = 4;
240
+ */
241
+ fields: FormField[];
242
+ /**
243
+ * @generated from field: string user_id = 5;
244
+ */
245
+ userId: string;
246
+ /**
247
+ * @generated from field: google.protobuf.Timestamp created_at = 6;
248
+ */
249
+ createdAt?: Timestamp;
250
+ /**
251
+ * @generated from field: google.protobuf.Timestamp updated_at = 7;
252
+ */
253
+ updatedAt?: Timestamp;
254
+ /**
255
+ * @generated from field: forms.v1.FormSettings settings = 8;
256
+ */
257
+ settings?: FormSettings;
258
+ /**
259
+ * @generated from field: string org_id = 9;
260
+ */
261
+ orgId: string;
262
+ /**
263
+ * New fields for draft/publish and layout
264
+ *
265
+ * @generated from field: forms.v1.FormStatus status = 10;
266
+ */
267
+ status: FormStatus;
268
+ /**
269
+ * @generated from field: google.protobuf.Timestamp published_at = 11;
270
+ */
271
+ publishedAt?: Timestamp;
272
+ /**
273
+ * @generated from field: repeated forms.v1.FormBlock layout = 12;
274
+ */
275
+ layout: FormBlock[];
276
+ /**
277
+ * @generated from field: int32 revision_count = 13;
278
+ */
279
+ revisionCount: number;
280
+ constructor(data?: PartialMessage<Form>);
281
+ static readonly runtime: typeof proto3;
282
+ static readonly typeName = "forms.v1.Form";
283
+ static readonly fields: FieldList;
284
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Form;
285
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Form;
286
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Form;
287
+ static equals(a: Form | PlainMessage<Form> | undefined, b: Form | PlainMessage<Form> | undefined): boolean;
288
+ }
289
+ /**
290
+ * FormSettings contains form configuration
291
+ *
292
+ * @generated from message forms.v1.FormSettings
293
+ */
294
+ export declare class FormSettings extends Message<FormSettings> {
295
+ /**
296
+ * @generated from field: string submit_button_text = 1;
297
+ */
298
+ submitButtonText: string;
299
+ /**
300
+ * @generated from field: string success_message = 2;
301
+ */
302
+ successMessage: string;
303
+ /**
304
+ * @generated from field: string redirect_url = 3;
305
+ */
306
+ redirectUrl: string;
307
+ /**
308
+ * @generated from field: bool notify_on_submission = 4;
309
+ */
310
+ notifyOnSubmission: boolean;
311
+ /**
312
+ * @generated from field: string notification_email = 5;
313
+ */
314
+ notificationEmail: string;
315
+ constructor(data?: PartialMessage<FormSettings>);
316
+ static readonly runtime: typeof proto3;
317
+ static readonly typeName = "forms.v1.FormSettings";
318
+ static readonly fields: FieldList;
319
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FormSettings;
320
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FormSettings;
321
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FormSettings;
322
+ static equals(a: FormSettings | PlainMessage<FormSettings> | undefined, b: FormSettings | PlainMessage<FormSettings> | undefined): boolean;
323
+ }
324
+ /**
325
+ * FormRevision represents a saved version of a form
326
+ *
327
+ * @generated from message forms.v1.FormRevision
328
+ */
329
+ export declare class FormRevision extends Message<FormRevision> {
330
+ /**
331
+ * @generated from field: string id = 1;
332
+ */
333
+ id: string;
334
+ /**
335
+ * @generated from field: string form_id = 2;
336
+ */
337
+ formId: string;
338
+ /**
339
+ * @generated from field: int32 version = 3;
340
+ */
341
+ version: number;
342
+ /**
343
+ * @generated from field: string name = 4;
344
+ */
345
+ name: string;
346
+ /**
347
+ * @generated from field: string description = 5;
348
+ */
349
+ description: string;
350
+ /**
351
+ * @generated from field: repeated forms.v1.FormField fields = 6;
352
+ */
353
+ fields: FormField[];
354
+ /**
355
+ * @generated from field: repeated forms.v1.FormBlock layout = 7;
356
+ */
357
+ layout: FormBlock[];
358
+ /**
359
+ * @generated from field: forms.v1.FormSettings settings = 8;
360
+ */
361
+ settings?: FormSettings;
362
+ /**
363
+ * @generated from field: google.protobuf.Timestamp created_at = 9;
364
+ */
365
+ createdAt?: Timestamp;
366
+ /**
367
+ * @generated from field: string created_by = 10;
368
+ */
369
+ createdBy: string;
370
+ /**
371
+ * Optional note about this revision
372
+ *
373
+ * @generated from field: string note = 11;
374
+ */
375
+ note: string;
376
+ constructor(data?: PartialMessage<FormRevision>);
377
+ static readonly runtime: typeof proto3;
378
+ static readonly typeName = "forms.v1.FormRevision";
379
+ static readonly fields: FieldList;
380
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FormRevision;
381
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FormRevision;
382
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FormRevision;
383
+ static equals(a: FormRevision | PlainMessage<FormRevision> | undefined, b: FormRevision | PlainMessage<FormRevision> | undefined): boolean;
384
+ }
385
+ /**
386
+ * Submission represents a form submission
387
+ *
388
+ * @generated from message forms.v1.Submission
389
+ */
390
+ export declare class Submission extends Message<Submission> {
391
+ /**
392
+ * @generated from field: string id = 1;
393
+ */
394
+ id: string;
395
+ /**
396
+ * @generated from field: string form_id = 2;
397
+ */
398
+ formId: string;
399
+ /**
400
+ * @generated from field: map<string, string> data = 3;
401
+ */
402
+ data: {
403
+ [key: string]: string;
404
+ };
405
+ /**
406
+ * @generated from field: google.protobuf.Timestamp submitted_at = 4;
407
+ */
408
+ submittedAt?: Timestamp;
409
+ /**
410
+ * @generated from field: string ip_address = 5;
411
+ */
412
+ ipAddress: string;
413
+ /**
414
+ * @generated from field: string user_agent = 6;
415
+ */
416
+ userAgent: string;
417
+ constructor(data?: PartialMessage<Submission>);
418
+ static readonly runtime: typeof proto3;
419
+ static readonly typeName = "forms.v1.Submission";
420
+ static readonly fields: FieldList;
421
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Submission;
422
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Submission;
423
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Submission;
424
+ static equals(a: Submission | PlainMessage<Submission> | undefined, b: Submission | PlainMessage<Submission> | undefined): boolean;
425
+ }
426
+ /**
427
+ * @generated from message forms.v1.CreateFormRequest
428
+ */
429
+ export declare class CreateFormRequest extends Message<CreateFormRequest> {
430
+ /**
431
+ * @generated from field: string name = 1;
432
+ */
433
+ name: string;
434
+ /**
435
+ * @generated from field: string description = 2;
436
+ */
437
+ description: string;
438
+ /**
439
+ * @generated from field: repeated forms.v1.FormField fields = 3;
440
+ */
441
+ fields: FormField[];
442
+ /**
443
+ * @generated from field: forms.v1.FormSettings settings = 4;
444
+ */
445
+ settings?: FormSettings;
446
+ /**
447
+ * @generated from field: repeated forms.v1.FormBlock layout = 5;
448
+ */
449
+ layout: FormBlock[];
450
+ constructor(data?: PartialMessage<CreateFormRequest>);
451
+ static readonly runtime: typeof proto3;
452
+ static readonly typeName = "forms.v1.CreateFormRequest";
453
+ static readonly fields: FieldList;
454
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateFormRequest;
455
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateFormRequest;
456
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateFormRequest;
457
+ static equals(a: CreateFormRequest | PlainMessage<CreateFormRequest> | undefined, b: CreateFormRequest | PlainMessage<CreateFormRequest> | undefined): boolean;
458
+ }
459
+ /**
460
+ * @generated from message forms.v1.CreateFormResponse
461
+ */
462
+ export declare class CreateFormResponse extends Message<CreateFormResponse> {
463
+ /**
464
+ * @generated from field: forms.v1.Form form = 1;
465
+ */
466
+ form?: Form;
467
+ constructor(data?: PartialMessage<CreateFormResponse>);
468
+ static readonly runtime: typeof proto3;
469
+ static readonly typeName = "forms.v1.CreateFormResponse";
470
+ static readonly fields: FieldList;
471
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateFormResponse;
472
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateFormResponse;
473
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateFormResponse;
474
+ static equals(a: CreateFormResponse | PlainMessage<CreateFormResponse> | undefined, b: CreateFormResponse | PlainMessage<CreateFormResponse> | undefined): boolean;
475
+ }
476
+ /**
477
+ * @generated from message forms.v1.GetFormRequest
478
+ */
479
+ export declare class GetFormRequest extends Message<GetFormRequest> {
480
+ /**
481
+ * @generated from field: string id = 1;
482
+ */
483
+ id: string;
484
+ constructor(data?: PartialMessage<GetFormRequest>);
485
+ static readonly runtime: typeof proto3;
486
+ static readonly typeName = "forms.v1.GetFormRequest";
487
+ static readonly fields: FieldList;
488
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetFormRequest;
489
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetFormRequest;
490
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetFormRequest;
491
+ static equals(a: GetFormRequest | PlainMessage<GetFormRequest> | undefined, b: GetFormRequest | PlainMessage<GetFormRequest> | undefined): boolean;
492
+ }
493
+ /**
494
+ * @generated from message forms.v1.GetFormResponse
495
+ */
496
+ export declare class GetFormResponse extends Message<GetFormResponse> {
497
+ /**
498
+ * @generated from field: forms.v1.Form form = 1;
499
+ */
500
+ form?: Form;
501
+ constructor(data?: PartialMessage<GetFormResponse>);
502
+ static readonly runtime: typeof proto3;
503
+ static readonly typeName = "forms.v1.GetFormResponse";
504
+ static readonly fields: FieldList;
505
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetFormResponse;
506
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetFormResponse;
507
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetFormResponse;
508
+ static equals(a: GetFormResponse | PlainMessage<GetFormResponse> | undefined, b: GetFormResponse | PlainMessage<GetFormResponse> | undefined): boolean;
509
+ }
510
+ /**
511
+ * @generated from message forms.v1.ListFormsRequest
512
+ */
513
+ export declare class ListFormsRequest extends Message<ListFormsRequest> {
514
+ /**
515
+ * @generated from field: int32 page_size = 1;
516
+ */
517
+ pageSize: number;
518
+ /**
519
+ * @generated from field: string page_token = 2;
520
+ */
521
+ pageToken: string;
522
+ /**
523
+ * Optional filter by status
524
+ *
525
+ * @generated from field: forms.v1.FormStatus status = 3;
526
+ */
527
+ status: FormStatus;
528
+ constructor(data?: PartialMessage<ListFormsRequest>);
529
+ static readonly runtime: typeof proto3;
530
+ static readonly typeName = "forms.v1.ListFormsRequest";
531
+ static readonly fields: FieldList;
532
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListFormsRequest;
533
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListFormsRequest;
534
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListFormsRequest;
535
+ static equals(a: ListFormsRequest | PlainMessage<ListFormsRequest> | undefined, b: ListFormsRequest | PlainMessage<ListFormsRequest> | undefined): boolean;
536
+ }
537
+ /**
538
+ * @generated from message forms.v1.ListFormsResponse
539
+ */
540
+ export declare class ListFormsResponse extends Message<ListFormsResponse> {
541
+ /**
542
+ * @generated from field: repeated forms.v1.Form forms = 1;
543
+ */
544
+ forms: Form[];
545
+ /**
546
+ * @generated from field: string next_page_token = 2;
547
+ */
548
+ nextPageToken: string;
549
+ constructor(data?: PartialMessage<ListFormsResponse>);
550
+ static readonly runtime: typeof proto3;
551
+ static readonly typeName = "forms.v1.ListFormsResponse";
552
+ static readonly fields: FieldList;
553
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListFormsResponse;
554
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListFormsResponse;
555
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListFormsResponse;
556
+ static equals(a: ListFormsResponse | PlainMessage<ListFormsResponse> | undefined, b: ListFormsResponse | PlainMessage<ListFormsResponse> | undefined): boolean;
557
+ }
558
+ /**
559
+ * @generated from message forms.v1.UpdateFormRequest
560
+ */
561
+ export declare class UpdateFormRequest extends Message<UpdateFormRequest> {
562
+ /**
563
+ * @generated from field: string id = 1;
564
+ */
565
+ id: string;
566
+ /**
567
+ * @generated from field: string name = 2;
568
+ */
569
+ name: string;
570
+ /**
571
+ * @generated from field: string description = 3;
572
+ */
573
+ description: string;
574
+ /**
575
+ * @generated from field: repeated forms.v1.FormField fields = 4;
576
+ */
577
+ fields: FormField[];
578
+ /**
579
+ * @generated from field: forms.v1.FormSettings settings = 5;
580
+ */
581
+ settings?: FormSettings;
582
+ /**
583
+ * @generated from field: repeated forms.v1.FormBlock layout = 6;
584
+ */
585
+ layout: FormBlock[];
586
+ constructor(data?: PartialMessage<UpdateFormRequest>);
587
+ static readonly runtime: typeof proto3;
588
+ static readonly typeName = "forms.v1.UpdateFormRequest";
589
+ static readonly fields: FieldList;
590
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateFormRequest;
591
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateFormRequest;
592
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateFormRequest;
593
+ static equals(a: UpdateFormRequest | PlainMessage<UpdateFormRequest> | undefined, b: UpdateFormRequest | PlainMessage<UpdateFormRequest> | undefined): boolean;
594
+ }
595
+ /**
596
+ * @generated from message forms.v1.UpdateFormResponse
597
+ */
598
+ export declare class UpdateFormResponse extends Message<UpdateFormResponse> {
599
+ /**
600
+ * @generated from field: forms.v1.Form form = 1;
601
+ */
602
+ form?: Form;
603
+ constructor(data?: PartialMessage<UpdateFormResponse>);
604
+ static readonly runtime: typeof proto3;
605
+ static readonly typeName = "forms.v1.UpdateFormResponse";
606
+ static readonly fields: FieldList;
607
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateFormResponse;
608
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateFormResponse;
609
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateFormResponse;
610
+ static equals(a: UpdateFormResponse | PlainMessage<UpdateFormResponse> | undefined, b: UpdateFormResponse | PlainMessage<UpdateFormResponse> | undefined): boolean;
611
+ }
612
+ /**
613
+ * @generated from message forms.v1.DeleteFormRequest
614
+ */
615
+ export declare class DeleteFormRequest extends Message<DeleteFormRequest> {
616
+ /**
617
+ * @generated from field: string id = 1;
618
+ */
619
+ id: string;
620
+ constructor(data?: PartialMessage<DeleteFormRequest>);
621
+ static readonly runtime: typeof proto3;
622
+ static readonly typeName = "forms.v1.DeleteFormRequest";
623
+ static readonly fields: FieldList;
624
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteFormRequest;
625
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteFormRequest;
626
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteFormRequest;
627
+ static equals(a: DeleteFormRequest | PlainMessage<DeleteFormRequest> | undefined, b: DeleteFormRequest | PlainMessage<DeleteFormRequest> | undefined): boolean;
628
+ }
629
+ /**
630
+ * @generated from message forms.v1.DeleteFormResponse
631
+ */
632
+ export declare class DeleteFormResponse extends Message<DeleteFormResponse> {
633
+ constructor(data?: PartialMessage<DeleteFormResponse>);
634
+ static readonly runtime: typeof proto3;
635
+ static readonly typeName = "forms.v1.DeleteFormResponse";
636
+ static readonly fields: FieldList;
637
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteFormResponse;
638
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteFormResponse;
639
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteFormResponse;
640
+ static equals(a: DeleteFormResponse | PlainMessage<DeleteFormResponse> | undefined, b: DeleteFormResponse | PlainMessage<DeleteFormResponse> | undefined): boolean;
641
+ }
642
+ /**
643
+ * @generated from message forms.v1.PublishFormRequest
644
+ */
645
+ export declare class PublishFormRequest extends Message<PublishFormRequest> {
646
+ /**
647
+ * @generated from field: string id = 1;
648
+ */
649
+ id: string;
650
+ /**
651
+ * Optional note for the revision
652
+ *
653
+ * @generated from field: string revision_note = 2;
654
+ */
655
+ revisionNote: string;
656
+ constructor(data?: PartialMessage<PublishFormRequest>);
657
+ static readonly runtime: typeof proto3;
658
+ static readonly typeName = "forms.v1.PublishFormRequest";
659
+ static readonly fields: FieldList;
660
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublishFormRequest;
661
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PublishFormRequest;
662
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublishFormRequest;
663
+ static equals(a: PublishFormRequest | PlainMessage<PublishFormRequest> | undefined, b: PublishFormRequest | PlainMessage<PublishFormRequest> | undefined): boolean;
664
+ }
665
+ /**
666
+ * @generated from message forms.v1.PublishFormResponse
667
+ */
668
+ export declare class PublishFormResponse extends Message<PublishFormResponse> {
669
+ /**
670
+ * @generated from field: forms.v1.Form form = 1;
671
+ */
672
+ form?: Form;
673
+ /**
674
+ * @generated from field: forms.v1.FormRevision revision = 2;
675
+ */
676
+ revision?: FormRevision;
677
+ constructor(data?: PartialMessage<PublishFormResponse>);
678
+ static readonly runtime: typeof proto3;
679
+ static readonly typeName = "forms.v1.PublishFormResponse";
680
+ static readonly fields: FieldList;
681
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublishFormResponse;
682
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PublishFormResponse;
683
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublishFormResponse;
684
+ static equals(a: PublishFormResponse | PlainMessage<PublishFormResponse> | undefined, b: PublishFormResponse | PlainMessage<PublishFormResponse> | undefined): boolean;
685
+ }
686
+ /**
687
+ * @generated from message forms.v1.UnpublishFormRequest
688
+ */
689
+ export declare class UnpublishFormRequest extends Message<UnpublishFormRequest> {
690
+ /**
691
+ * @generated from field: string id = 1;
692
+ */
693
+ id: string;
694
+ constructor(data?: PartialMessage<UnpublishFormRequest>);
695
+ static readonly runtime: typeof proto3;
696
+ static readonly typeName = "forms.v1.UnpublishFormRequest";
697
+ static readonly fields: FieldList;
698
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UnpublishFormRequest;
699
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UnpublishFormRequest;
700
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UnpublishFormRequest;
701
+ static equals(a: UnpublishFormRequest | PlainMessage<UnpublishFormRequest> | undefined, b: UnpublishFormRequest | PlainMessage<UnpublishFormRequest> | undefined): boolean;
702
+ }
703
+ /**
704
+ * @generated from message forms.v1.UnpublishFormResponse
705
+ */
706
+ export declare class UnpublishFormResponse extends Message<UnpublishFormResponse> {
707
+ /**
708
+ * @generated from field: forms.v1.Form form = 1;
709
+ */
710
+ form?: Form;
711
+ constructor(data?: PartialMessage<UnpublishFormResponse>);
712
+ static readonly runtime: typeof proto3;
713
+ static readonly typeName = "forms.v1.UnpublishFormResponse";
714
+ static readonly fields: FieldList;
715
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UnpublishFormResponse;
716
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UnpublishFormResponse;
717
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UnpublishFormResponse;
718
+ static equals(a: UnpublishFormResponse | PlainMessage<UnpublishFormResponse> | undefined, b: UnpublishFormResponse | PlainMessage<UnpublishFormResponse> | undefined): boolean;
719
+ }
720
+ /**
721
+ * @generated from message forms.v1.SaveRevisionRequest
722
+ */
723
+ export declare class SaveRevisionRequest extends Message<SaveRevisionRequest> {
724
+ /**
725
+ * @generated from field: string id = 1;
726
+ */
727
+ id: string;
728
+ /**
729
+ * Optional note for this snapshot
730
+ *
731
+ * @generated from field: string note = 2;
732
+ */
733
+ note: string;
734
+ constructor(data?: PartialMessage<SaveRevisionRequest>);
735
+ static readonly runtime: typeof proto3;
736
+ static readonly typeName = "forms.v1.SaveRevisionRequest";
737
+ static readonly fields: FieldList;
738
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SaveRevisionRequest;
739
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SaveRevisionRequest;
740
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SaveRevisionRequest;
741
+ static equals(a: SaveRevisionRequest | PlainMessage<SaveRevisionRequest> | undefined, b: SaveRevisionRequest | PlainMessage<SaveRevisionRequest> | undefined): boolean;
742
+ }
743
+ /**
744
+ * @generated from message forms.v1.SaveRevisionResponse
745
+ */
746
+ export declare class SaveRevisionResponse extends Message<SaveRevisionResponse> {
747
+ /**
748
+ * @generated from field: forms.v1.FormRevision revision = 1;
749
+ */
750
+ revision?: FormRevision;
751
+ constructor(data?: PartialMessage<SaveRevisionResponse>);
752
+ static readonly runtime: typeof proto3;
753
+ static readonly typeName = "forms.v1.SaveRevisionResponse";
754
+ static readonly fields: FieldList;
755
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SaveRevisionResponse;
756
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SaveRevisionResponse;
757
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SaveRevisionResponse;
758
+ static equals(a: SaveRevisionResponse | PlainMessage<SaveRevisionResponse> | undefined, b: SaveRevisionResponse | PlainMessage<SaveRevisionResponse> | undefined): boolean;
759
+ }
760
+ /**
761
+ * @generated from message forms.v1.ListRevisionsRequest
762
+ */
763
+ export declare class ListRevisionsRequest extends Message<ListRevisionsRequest> {
764
+ /**
765
+ * @generated from field: string form_id = 1;
766
+ */
767
+ formId: string;
768
+ /**
769
+ * @generated from field: int32 page_size = 2;
770
+ */
771
+ pageSize: number;
772
+ /**
773
+ * @generated from field: string page_token = 3;
774
+ */
775
+ pageToken: string;
776
+ constructor(data?: PartialMessage<ListRevisionsRequest>);
777
+ static readonly runtime: typeof proto3;
778
+ static readonly typeName = "forms.v1.ListRevisionsRequest";
779
+ static readonly fields: FieldList;
780
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListRevisionsRequest;
781
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListRevisionsRequest;
782
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListRevisionsRequest;
783
+ static equals(a: ListRevisionsRequest | PlainMessage<ListRevisionsRequest> | undefined, b: ListRevisionsRequest | PlainMessage<ListRevisionsRequest> | undefined): boolean;
784
+ }
785
+ /**
786
+ * @generated from message forms.v1.ListRevisionsResponse
787
+ */
788
+ export declare class ListRevisionsResponse extends Message<ListRevisionsResponse> {
789
+ /**
790
+ * @generated from field: repeated forms.v1.FormRevision revisions = 1;
791
+ */
792
+ revisions: FormRevision[];
793
+ /**
794
+ * @generated from field: string next_page_token = 2;
795
+ */
796
+ nextPageToken: string;
797
+ constructor(data?: PartialMessage<ListRevisionsResponse>);
798
+ static readonly runtime: typeof proto3;
799
+ static readonly typeName = "forms.v1.ListRevisionsResponse";
800
+ static readonly fields: FieldList;
801
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListRevisionsResponse;
802
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListRevisionsResponse;
803
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListRevisionsResponse;
804
+ static equals(a: ListRevisionsResponse | PlainMessage<ListRevisionsResponse> | undefined, b: ListRevisionsResponse | PlainMessage<ListRevisionsResponse> | undefined): boolean;
805
+ }
806
+ /**
807
+ * @generated from message forms.v1.RestoreRevisionRequest
808
+ */
809
+ export declare class RestoreRevisionRequest extends Message<RestoreRevisionRequest> {
810
+ /**
811
+ * @generated from field: string form_id = 1;
812
+ */
813
+ formId: string;
814
+ /**
815
+ * @generated from field: string revision_id = 2;
816
+ */
817
+ revisionId: string;
818
+ constructor(data?: PartialMessage<RestoreRevisionRequest>);
819
+ static readonly runtime: typeof proto3;
820
+ static readonly typeName = "forms.v1.RestoreRevisionRequest";
821
+ static readonly fields: FieldList;
822
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RestoreRevisionRequest;
823
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RestoreRevisionRequest;
824
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RestoreRevisionRequest;
825
+ static equals(a: RestoreRevisionRequest | PlainMessage<RestoreRevisionRequest> | undefined, b: RestoreRevisionRequest | PlainMessage<RestoreRevisionRequest> | undefined): boolean;
826
+ }
827
+ /**
828
+ * @generated from message forms.v1.RestoreRevisionResponse
829
+ */
830
+ export declare class RestoreRevisionResponse extends Message<RestoreRevisionResponse> {
831
+ /**
832
+ * @generated from field: forms.v1.Form form = 1;
833
+ */
834
+ form?: Form;
835
+ constructor(data?: PartialMessage<RestoreRevisionResponse>);
836
+ static readonly runtime: typeof proto3;
837
+ static readonly typeName = "forms.v1.RestoreRevisionResponse";
838
+ static readonly fields: FieldList;
839
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RestoreRevisionResponse;
840
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RestoreRevisionResponse;
841
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RestoreRevisionResponse;
842
+ static equals(a: RestoreRevisionResponse | PlainMessage<RestoreRevisionResponse> | undefined, b: RestoreRevisionResponse | PlainMessage<RestoreRevisionResponse> | undefined): boolean;
843
+ }
844
+ /**
845
+ * @generated from message forms.v1.SubmitFormRequest
846
+ */
847
+ export declare class SubmitFormRequest extends Message<SubmitFormRequest> {
848
+ /**
849
+ * @generated from field: string form_id = 1;
850
+ */
851
+ formId: string;
852
+ /**
853
+ * @generated from field: map<string, string> data = 2;
854
+ */
855
+ data: {
856
+ [key: string]: string;
857
+ };
858
+ constructor(data?: PartialMessage<SubmitFormRequest>);
859
+ static readonly runtime: typeof proto3;
860
+ static readonly typeName = "forms.v1.SubmitFormRequest";
861
+ static readonly fields: FieldList;
862
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubmitFormRequest;
863
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubmitFormRequest;
864
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubmitFormRequest;
865
+ static equals(a: SubmitFormRequest | PlainMessage<SubmitFormRequest> | undefined, b: SubmitFormRequest | PlainMessage<SubmitFormRequest> | undefined): boolean;
866
+ }
867
+ /**
868
+ * @generated from message forms.v1.SubmitFormResponse
869
+ */
870
+ export declare class SubmitFormResponse extends Message<SubmitFormResponse> {
871
+ /**
872
+ * @generated from field: forms.v1.Submission submission = 1;
873
+ */
874
+ submission?: Submission;
875
+ constructor(data?: PartialMessage<SubmitFormResponse>);
876
+ static readonly runtime: typeof proto3;
877
+ static readonly typeName = "forms.v1.SubmitFormResponse";
878
+ static readonly fields: FieldList;
879
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubmitFormResponse;
880
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubmitFormResponse;
881
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubmitFormResponse;
882
+ static equals(a: SubmitFormResponse | PlainMessage<SubmitFormResponse> | undefined, b: SubmitFormResponse | PlainMessage<SubmitFormResponse> | undefined): boolean;
883
+ }
884
+ /**
885
+ * @generated from message forms.v1.GetFormPublicRequest
886
+ */
887
+ export declare class GetFormPublicRequest extends Message<GetFormPublicRequest> {
888
+ /**
889
+ * @generated from field: string id = 1;
890
+ */
891
+ id: string;
892
+ constructor(data?: PartialMessage<GetFormPublicRequest>);
893
+ static readonly runtime: typeof proto3;
894
+ static readonly typeName = "forms.v1.GetFormPublicRequest";
895
+ static readonly fields: FieldList;
896
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetFormPublicRequest;
897
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetFormPublicRequest;
898
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetFormPublicRequest;
899
+ static equals(a: GetFormPublicRequest | PlainMessage<GetFormPublicRequest> | undefined, b: GetFormPublicRequest | PlainMessage<GetFormPublicRequest> | undefined): boolean;
900
+ }
901
+ /**
902
+ * @generated from message forms.v1.GetFormPublicResponse
903
+ */
904
+ export declare class GetFormPublicResponse extends Message<GetFormPublicResponse> {
905
+ /**
906
+ * @generated from field: string id = 1;
907
+ */
908
+ id: string;
909
+ /**
910
+ * @generated from field: string name = 2;
911
+ */
912
+ name: string;
913
+ /**
914
+ * @generated from field: string description = 3;
915
+ */
916
+ description: string;
917
+ /**
918
+ * @generated from field: repeated forms.v1.FormField fields = 4;
919
+ */
920
+ fields: FormField[];
921
+ /**
922
+ * @generated from field: forms.v1.FormSettings settings = 5;
923
+ */
924
+ settings?: FormSettings;
925
+ /**
926
+ * @generated from field: repeated forms.v1.FormBlock layout = 6;
927
+ */
928
+ layout: FormBlock[];
929
+ constructor(data?: PartialMessage<GetFormPublicResponse>);
930
+ static readonly runtime: typeof proto3;
931
+ static readonly typeName = "forms.v1.GetFormPublicResponse";
932
+ static readonly fields: FieldList;
933
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetFormPublicResponse;
934
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetFormPublicResponse;
935
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetFormPublicResponse;
936
+ static equals(a: GetFormPublicResponse | PlainMessage<GetFormPublicResponse> | undefined, b: GetFormPublicResponse | PlainMessage<GetFormPublicResponse> | undefined): boolean;
937
+ }
938
+ /**
939
+ * @generated from message forms.v1.ListSubmissionsRequest
940
+ */
941
+ export declare class ListSubmissionsRequest extends Message<ListSubmissionsRequest> {
942
+ /**
943
+ * @generated from field: string form_id = 1;
944
+ */
945
+ formId: string;
946
+ /**
947
+ * @generated from field: int32 page_size = 2;
948
+ */
949
+ pageSize: number;
950
+ /**
951
+ * @generated from field: string page_token = 3;
952
+ */
953
+ pageToken: string;
954
+ constructor(data?: PartialMessage<ListSubmissionsRequest>);
955
+ static readonly runtime: typeof proto3;
956
+ static readonly typeName = "forms.v1.ListSubmissionsRequest";
957
+ static readonly fields: FieldList;
958
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListSubmissionsRequest;
959
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListSubmissionsRequest;
960
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListSubmissionsRequest;
961
+ static equals(a: ListSubmissionsRequest | PlainMessage<ListSubmissionsRequest> | undefined, b: ListSubmissionsRequest | PlainMessage<ListSubmissionsRequest> | undefined): boolean;
962
+ }
963
+ /**
964
+ * @generated from message forms.v1.ListSubmissionsResponse
965
+ */
966
+ export declare class ListSubmissionsResponse extends Message<ListSubmissionsResponse> {
967
+ /**
968
+ * @generated from field: repeated forms.v1.Submission submissions = 1;
969
+ */
970
+ submissions: Submission[];
971
+ /**
972
+ * @generated from field: int32 total_count = 2;
973
+ */
974
+ totalCount: number;
975
+ /**
976
+ * @generated from field: string next_page_token = 3;
977
+ */
978
+ nextPageToken: string;
979
+ constructor(data?: PartialMessage<ListSubmissionsResponse>);
980
+ static readonly runtime: typeof proto3;
981
+ static readonly typeName = "forms.v1.ListSubmissionsResponse";
982
+ static readonly fields: FieldList;
983
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListSubmissionsResponse;
984
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListSubmissionsResponse;
985
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListSubmissionsResponse;
986
+ static equals(a: ListSubmissionsResponse | PlainMessage<ListSubmissionsResponse> | undefined, b: ListSubmissionsResponse | PlainMessage<ListSubmissionsResponse> | undefined): boolean;
987
+ }
988
+ /**
989
+ * @generated from message forms.v1.GetSubmissionRequest
990
+ */
991
+ export declare class GetSubmissionRequest extends Message<GetSubmissionRequest> {
992
+ /**
993
+ * @generated from field: string id = 1;
994
+ */
995
+ id: string;
996
+ constructor(data?: PartialMessage<GetSubmissionRequest>);
997
+ static readonly runtime: typeof proto3;
998
+ static readonly typeName = "forms.v1.GetSubmissionRequest";
999
+ static readonly fields: FieldList;
1000
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetSubmissionRequest;
1001
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetSubmissionRequest;
1002
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetSubmissionRequest;
1003
+ static equals(a: GetSubmissionRequest | PlainMessage<GetSubmissionRequest> | undefined, b: GetSubmissionRequest | PlainMessage<GetSubmissionRequest> | undefined): boolean;
1004
+ }
1005
+ /**
1006
+ * @generated from message forms.v1.GetSubmissionResponse
1007
+ */
1008
+ export declare class GetSubmissionResponse extends Message<GetSubmissionResponse> {
1009
+ /**
1010
+ * @generated from field: forms.v1.Submission submission = 1;
1011
+ */
1012
+ submission?: Submission;
1013
+ constructor(data?: PartialMessage<GetSubmissionResponse>);
1014
+ static readonly runtime: typeof proto3;
1015
+ static readonly typeName = "forms.v1.GetSubmissionResponse";
1016
+ static readonly fields: FieldList;
1017
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetSubmissionResponse;
1018
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetSubmissionResponse;
1019
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetSubmissionResponse;
1020
+ static equals(a: GetSubmissionResponse | PlainMessage<GetSubmissionResponse> | undefined, b: GetSubmissionResponse | PlainMessage<GetSubmissionResponse> | undefined): boolean;
1021
+ }
1022
+ /**
1023
+ * @generated from message forms.v1.DeleteSubmissionRequest
1024
+ */
1025
+ export declare class DeleteSubmissionRequest extends Message<DeleteSubmissionRequest> {
1026
+ /**
1027
+ * @generated from field: string id = 1;
1028
+ */
1029
+ id: string;
1030
+ constructor(data?: PartialMessage<DeleteSubmissionRequest>);
1031
+ static readonly runtime: typeof proto3;
1032
+ static readonly typeName = "forms.v1.DeleteSubmissionRequest";
1033
+ static readonly fields: FieldList;
1034
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteSubmissionRequest;
1035
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteSubmissionRequest;
1036
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteSubmissionRequest;
1037
+ static equals(a: DeleteSubmissionRequest | PlainMessage<DeleteSubmissionRequest> | undefined, b: DeleteSubmissionRequest | PlainMessage<DeleteSubmissionRequest> | undefined): boolean;
1038
+ }
1039
+ /**
1040
+ * @generated from message forms.v1.DeleteSubmissionResponse
1041
+ */
1042
+ export declare class DeleteSubmissionResponse extends Message<DeleteSubmissionResponse> {
1043
+ constructor(data?: PartialMessage<DeleteSubmissionResponse>);
1044
+ static readonly runtime: typeof proto3;
1045
+ static readonly typeName = "forms.v1.DeleteSubmissionResponse";
1046
+ static readonly fields: FieldList;
1047
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteSubmissionResponse;
1048
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteSubmissionResponse;
1049
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteSubmissionResponse;
1050
+ static equals(a: DeleteSubmissionResponse | PlainMessage<DeleteSubmissionResponse> | undefined, b: DeleteSubmissionResponse | PlainMessage<DeleteSubmissionResponse> | undefined): boolean;
1051
+ }
1052
+ /**
1053
+ * @generated from message forms.v1.GetUploadUrlRequest
1054
+ */
1055
+ export declare class GetUploadUrlRequest extends Message<GetUploadUrlRequest> {
1056
+ /**
1057
+ * @generated from field: string form_id = 1;
1058
+ */
1059
+ formId: string;
1060
+ /**
1061
+ * @generated from field: string field_id = 2;
1062
+ */
1063
+ fieldId: string;
1064
+ /**
1065
+ * @generated from field: string filename = 3;
1066
+ */
1067
+ filename: string;
1068
+ /**
1069
+ * @generated from field: string content_type = 4;
1070
+ */
1071
+ contentType: string;
1072
+ /**
1073
+ * @generated from field: int64 file_size = 5;
1074
+ */
1075
+ fileSize: bigint;
1076
+ constructor(data?: PartialMessage<GetUploadUrlRequest>);
1077
+ static readonly runtime: typeof proto3;
1078
+ static readonly typeName = "forms.v1.GetUploadUrlRequest";
1079
+ static readonly fields: FieldList;
1080
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetUploadUrlRequest;
1081
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetUploadUrlRequest;
1082
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetUploadUrlRequest;
1083
+ static equals(a: GetUploadUrlRequest | PlainMessage<GetUploadUrlRequest> | undefined, b: GetUploadUrlRequest | PlainMessage<GetUploadUrlRequest> | undefined): boolean;
1084
+ }
1085
+ /**
1086
+ * @generated from message forms.v1.GetUploadUrlResponse
1087
+ */
1088
+ export declare class GetUploadUrlResponse extends Message<GetUploadUrlResponse> {
1089
+ /**
1090
+ * Presigned PUT URL for direct upload
1091
+ *
1092
+ * @generated from field: string upload_url = 1;
1093
+ */
1094
+ uploadUrl: string;
1095
+ /**
1096
+ * S3 object key to store in submission
1097
+ *
1098
+ * @generated from field: string file_key = 2;
1099
+ */
1100
+ fileKey: string;
1101
+ constructor(data?: PartialMessage<GetUploadUrlResponse>);
1102
+ static readonly runtime: typeof proto3;
1103
+ static readonly typeName = "forms.v1.GetUploadUrlResponse";
1104
+ static readonly fields: FieldList;
1105
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetUploadUrlResponse;
1106
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetUploadUrlResponse;
1107
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetUploadUrlResponse;
1108
+ static equals(a: GetUploadUrlResponse | PlainMessage<GetUploadUrlResponse> | undefined, b: GetUploadUrlResponse | PlainMessage<GetUploadUrlResponse> | undefined): boolean;
1109
+ }
1110
+ /**
1111
+ * @generated from message forms.v1.GetDownloadUrlRequest
1112
+ */
1113
+ export declare class GetDownloadUrlRequest extends Message<GetDownloadUrlRequest> {
1114
+ /**
1115
+ * S3 object key from submission data
1116
+ *
1117
+ * @generated from field: string file_key = 1;
1118
+ */
1119
+ fileKey: string;
1120
+ constructor(data?: PartialMessage<GetDownloadUrlRequest>);
1121
+ static readonly runtime: typeof proto3;
1122
+ static readonly typeName = "forms.v1.GetDownloadUrlRequest";
1123
+ static readonly fields: FieldList;
1124
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetDownloadUrlRequest;
1125
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetDownloadUrlRequest;
1126
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetDownloadUrlRequest;
1127
+ static equals(a: GetDownloadUrlRequest | PlainMessage<GetDownloadUrlRequest> | undefined, b: GetDownloadUrlRequest | PlainMessage<GetDownloadUrlRequest> | undefined): boolean;
1128
+ }
1129
+ /**
1130
+ * @generated from message forms.v1.GetDownloadUrlResponse
1131
+ */
1132
+ export declare class GetDownloadUrlResponse extends Message<GetDownloadUrlResponse> {
1133
+ /**
1134
+ * Presigned GET URL (valid for 1 hour)
1135
+ *
1136
+ * @generated from field: string download_url = 1;
1137
+ */
1138
+ downloadUrl: string;
1139
+ /**
1140
+ * Original filename extracted from key
1141
+ *
1142
+ * @generated from field: string filename = 2;
1143
+ */
1144
+ filename: string;
1145
+ constructor(data?: PartialMessage<GetDownloadUrlResponse>);
1146
+ static readonly runtime: typeof proto3;
1147
+ static readonly typeName = "forms.v1.GetDownloadUrlResponse";
1148
+ static readonly fields: FieldList;
1149
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetDownloadUrlResponse;
1150
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetDownloadUrlResponse;
1151
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetDownloadUrlResponse;
1152
+ static equals(a: GetDownloadUrlResponse | PlainMessage<GetDownloadUrlResponse> | undefined, b: GetDownloadUrlResponse | PlainMessage<GetDownloadUrlResponse> | undefined): boolean;
1153
+ }
1154
+ //# sourceMappingURL=forms_pb.d.ts.map