ruby-anvil 0.0.1.pre.rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1713 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Generated by dev/generate-types.mjs from @anvilco/types@1.1.0 schema.graphql. Do not edit by hand:
4
+ # run `npm run generate` in dev/ to regenerate.
5
+
6
+ module Anvil
7
+ module Types
8
+ # Declared empty first, so an attribute below can name a class defined later in the file
9
+ class Amount < Base; end
10
+ class BillingPeriod < Base; end
11
+ class BillingSubscription < Base; end
12
+ class Cast < Base; end
13
+ class CastPage < Base; end
14
+ class CastRedirectMapping < Base; end
15
+ class CastTag < Base; end
16
+ class CastVersion < Base; end
17
+ class CastVersionPage < Base; end
18
+ class DocumentGroup < Base; end
19
+ class DocumentGroupPage < Base; end
20
+ class Download < Base; end
21
+ class EtchLog < Base; end
22
+ class EtchPacket < Base; end
23
+ class EtchPacketPage < Base; end
24
+ class EtchTemplate < Base; end
25
+ class AnvilFile < Base; end
26
+ class Forge < Base; end
27
+ class ForgeMap < Base; end
28
+ class ForgePage < Base; end
29
+ class ForgeVersion < Base; end
30
+ class ForgeVersionPage < Base; end
31
+ class GenerateEmbedURLResponse < Base; end
32
+ class Integration < Base; end
33
+ class Invoice < Base; end
34
+ class InvoiceBucketItem < Base; end
35
+ class InvoiceUnitItem < Base; end
36
+ class MetricUsage < Base; end
37
+ class ObjectRelationship < Base; end
38
+ class Organization < Base; end
39
+ class OrganizationPage < Base; end
40
+ class OrganizationUser < Base; end
41
+ class OrganizationUserInvite < Base; end
42
+ class PaymentMethod < Base; end
43
+ class Signer < Base; end
44
+ class SignerPage < Base; end
45
+ class SignerToken < Base; end
46
+ class Submission < Base; end
47
+ class SubmissionPage < Base; end
48
+ class Tag < Base; end
49
+ class User < Base; end
50
+ class UserPage < Base; end
51
+ class UserPreferences < Base; end
52
+ class UserUpload < Base; end
53
+ class Webhook < Base; end
54
+ class WebhookAction < Base; end
55
+ class WebhookLog < Base; end
56
+ class WebhookLogPage < Base; end
57
+ class Weld < Base; end
58
+ class WeldData < Base; end
59
+ class WeldDataGroup < Base; end
60
+ class WeldDataGroupPage < Base; end
61
+ class WeldDataLog < Base; end
62
+ class WeldDataPage < Base; end
63
+ class WeldGroup < Base; end
64
+ class WeldPage < Base; end
65
+ class WeldVersion < Base; end
66
+ class WeldVersionPage < Base; end
67
+ end
68
+ end
69
+
70
+ module Anvil
71
+ module Types
72
+ class Amount
73
+ # Monetary amount value
74
+ attribute :amount
75
+
76
+ # Currency code (e.g., USD)
77
+ attribute :currency
78
+ end
79
+
80
+ class BillingPeriod
81
+ # End date (exclusive) of the billing period in ISO 8601 format; from Metronome this is ending_before (the first
82
+ # instant outside the billing period)
83
+ attribute :end_value, key: "end"
84
+
85
+ # Start date (inclusive) of the billing period in ISO 8601 format
86
+ attribute :start
87
+ end
88
+
89
+ class BillingSubscription
90
+ # Arbitrary subscription attributes
91
+ attribute :attributes
92
+
93
+ # monthly | annual | null
94
+ attribute :billing_interval
95
+
96
+ # Subscription identifier
97
+ attribute :id
98
+
99
+ # Subscription name
100
+ attribute :name
101
+
102
+ # Amount for the subscription
103
+ attribute :price, type: Anvil::Types::Amount
104
+
105
+ # active | available | expired
106
+ attribute :status
107
+ end
108
+
109
+ # A `Cast` holds configuration for a single PDF template. It defines the
110
+ # location of boxes on PDF pages, and the type of each box (e.g. date, phone
111
+ # number, etc.).
112
+ #
113
+ # `Cast` objects are used by several API features:
114
+ #
115
+ # * The [PDF filling endpoint](/docs/api/fill-pdf)
116
+ # * Etch signature packets: see the [Etch e-sign guide](/docs/api/e-signatures) for more info
117
+ # * Workflows: see the [Workflow API guide](/docs/api/workflows) for more info
118
+ class Cast
119
+ # Allowed `Cast` field alias IDs
120
+ attribute :allowed_alias_ids
121
+
122
+ attribute :archived_at, type: :time
123
+ attribute :config
124
+ attribute :created_at, type: :time
125
+
126
+ # The `eid` is the Cast's object identifier. It is also the PDF template ID.
127
+ attribute :eid
128
+
129
+ # Example data payload to fill this PDF. Shown on the "API Info" tab for this template
130
+ attribute :example_data
131
+
132
+ # A digestable array of objects with all the details about all fields in this PDF, sorted by page, top to bottom,
133
+ # left to right.
134
+ attribute :field_info
135
+
136
+ attribute :has_been_published
137
+ attribute :has_unpublished_changes
138
+ attribute :is_latest_version
139
+ attribute :is_published_version
140
+
141
+ # `true` when this `Cast` was created as a template. Template casts show up in the `PDF Templates` page on your
142
+ # dashboard.
143
+ attribute :is_template
144
+
145
+ attribute :latest_draft_version_number
146
+
147
+ # Basic information about the latest published version (title and publisher name)
148
+ attribute :latest_published_version_info
149
+
150
+ # The file name
151
+ attribute :name
152
+
153
+ attribute :organization, type: Anvil::Types::Organization
154
+
155
+ # If this `Cast` was originally copied from another `Cast`, this will be the original `Cast`.
156
+ attribute :parent_cast, type: Anvil::Types::Cast
157
+
158
+ attribute :published_at, type: :time
159
+
160
+ # Current published version number of this Cast
161
+ attribute :published_number
162
+
163
+ attribute :published_version_id
164
+ attribute :published_version_number
165
+ attribute :published_versions, type: Anvil::Types::CastVersionPage
166
+
167
+ # The title shown in the UI
168
+ attribute :title
169
+
170
+ # The file's mimetype. e.g. `application/pdf`
171
+ attribute :type
172
+
173
+ attribute :updated_at, type: :time
174
+
175
+ # An array of files uploaded by users during the dynamic template creation process.
176
+ attribute :user_uploads, array_of: Anvil::Types::UserUpload
177
+
178
+ attribute :version_id
179
+
180
+ # Current version number of this Cast
181
+ attribute :version_number
182
+
183
+ attribute :versions, type: Anvil::Types::CastVersionPage
184
+ end
185
+
186
+ class CastPage
187
+ # The actual records for the requested page
188
+ attribute :items, array_of: Anvil::Types::Cast
189
+
190
+ # The requested page number
191
+ attribute :page
192
+
193
+ # Total number of pages of results
194
+ attribute :page_count
195
+
196
+ # The requested number of rows per page
197
+ attribute :page_size
198
+
199
+ # Total number of rows found for the query before pagination. Capped when the query was given a `countLimit`.
200
+ attribute :row_count
201
+
202
+ # False when `rowCount` stopped at the requested `countLimit`, meaning there are at least that many rows. True
203
+ # whenever the count ran to completion.
204
+ attribute :row_count_is_exact
205
+ end
206
+
207
+ # A mapping from an old redirect path to its canonical destination
208
+ class CastRedirectMapping
209
+ # The Cast EID this redirect belongs to
210
+ attribute :cast_eid
211
+
212
+ # The old redirect path (e.g., /forms/old-tag/old-slug/)
213
+ attribute :from
214
+
215
+ # The canonical destination path (e.g., /forms/current-tag/current-slug/)
216
+ attribute :to
217
+ end
218
+
219
+ class CastTag
220
+ attribute :cast, type: Anvil::Types::Cast
221
+ attribute :created_at, type: :time
222
+ attribute :id
223
+ attribute :tag, type: Anvil::Types::Tag
224
+ attribute :updated_at, type: :time
225
+ end
226
+
227
+ class CastVersion
228
+ attribute :config
229
+ attribute :created_at, type: :time
230
+
231
+ # The `eid` is the object identifier.
232
+ attribute :eid
233
+
234
+ attribute :id
235
+ attribute :location
236
+ attribute :name
237
+ attribute :number
238
+ attribute :publish_updated_at, type: :time
239
+ attribute :published_at, type: :time
240
+ attribute :published_description
241
+ attribute :published_number
242
+ attribute :published_title
243
+ attribute :publishing_user, type: Anvil::Types::User
244
+ attribute :title
245
+ attribute :type
246
+ attribute :updated_at, type: :time
247
+ attribute :updated_columns
248
+ attribute :user, type: Anvil::Types::User
249
+ end
250
+
251
+ class CastVersionPage
252
+ # The actual records for the requested page
253
+ attribute :items, array_of: Anvil::Types::CastVersion
254
+
255
+ # The requested page number
256
+ attribute :page
257
+
258
+ # Total number of pages of results
259
+ attribute :page_count
260
+
261
+ # The requested number of rows per page
262
+ attribute :page_size
263
+
264
+ # Total number of rows found for the query before pagination. Capped when the query was given a `countLimit`.
265
+ attribute :row_count
266
+
267
+ # False when `rowCount` stopped at the requested `countLimit`, meaning there are at least that many rows. True
268
+ # whenever the count ran to completion.
269
+ attribute :row_count_is_exact
270
+ end
271
+
272
+ # A collection of all the final files generated with data from a `WeldData` or
273
+ # `EtchPacket`. When your users download a zip file of PDFs, that final
274
+ # collection of filled, generated, uploaded, and signed files is specified by
275
+ # the `DocumentGroup`. A `DocumentGroup` will be connected to either a
276
+ # `WeldData` or a `EtchPacket`, never both. A `DocumentGroup` will only
277
+ # exist on these objects if it has been sent out for signature.
278
+ class DocumentGroup
279
+ # Timestamp of when all Signers have finished signing or when all forms have been filled when no signers.
280
+ attribute :completed_at, type: :time
281
+
282
+ attribute :created_at, type: :time
283
+ attribute :current_routing_step
284
+
285
+ # The URL to download all documents as a zip file
286
+ attribute :download_zip_url, key: "downloadZipURL"
287
+
288
+ # The `eid` is the object identifier.
289
+ attribute :eid
290
+
291
+ # The parent `EtchPacket`. This will only exist for DocumentGroups created as part of an Etch signature packet.
292
+ attribute :etch_packet, type: Anvil::Types::EtchPacket
293
+
294
+ # A file listing of all files in the `DocumentGroup`
295
+ attribute :files
296
+
297
+ attribute :finish_page_config
298
+ attribute :org_logo
299
+
300
+ # Possible values: `etch` or `docusign`
301
+ attribute :provider
302
+
303
+ attribute :provider_config
304
+ attribute :signature_page_config
305
+ attribute :signers, array_of: Anvil::Types::Signer
306
+
307
+ # Possible values: `sent`, `delivered`, `partial`, `declined`, `voided`, `completed`
308
+ attribute :status
309
+
310
+ attribute :stylesheet_url, key: "stylesheetURL"
311
+ attribute :updated_at, type: :time
312
+
313
+ # The parent `WeldData`. This will only exist for DocumentGroups created by a Workflow.
314
+ attribute :weld_data, type: Anvil::Types::WeldData
315
+ end
316
+
317
+ class DocumentGroupPage
318
+ # The actual records for the requested page
319
+ attribute :items, array_of: Anvil::Types::DocumentGroup
320
+
321
+ # The requested page number
322
+ attribute :page
323
+
324
+ # Total number of pages of results
325
+ attribute :page_count
326
+
327
+ # The requested number of rows per page
328
+ attribute :page_size
329
+
330
+ # Total number of rows found for the query before pagination. Capped when the query was given a `countLimit`.
331
+ attribute :row_count
332
+
333
+ # False when `rowCount` stopped at the requested `countLimit`, meaning there are at least that many rows. True
334
+ # whenever the count ran to completion.
335
+ attribute :row_count_is_exact
336
+ end
337
+
338
+ # A link to a file Anvil stores, signed for a short time. Fetch it before
339
+ # `expiresAt`; after that, ask for a new one.
340
+ class Download
341
+ # When the URL stops working.
342
+ attribute :expires_at, type: :time
343
+
344
+ # The name the file downloads as.
345
+ attribute :filename
346
+
347
+ # The signed URL. A plain GET downloads the file.
348
+ attribute :url
349
+ end
350
+
351
+ # Represents a single action taken by a user during the signing process. For
352
+ # example, an `EtchLog` object will be created when a user signs, downloads
353
+ # a file, voids the packet, etc.
354
+ #
355
+ # All actions with a short description:
356
+ #
357
+ # ```md
358
+ # accessed: Viewed
359
+ # acknowledged: Reviewed & acknowledged
360
+ # formCompleted: Filled & completed
361
+ # archived: Archived
362
+ # completed: Completed
363
+ # created: Created
364
+ # download-csv-all: Downloaded CSV
365
+ # download-csv-individual-file: Downloaded CSV file
366
+ # download-file-individual: Downloaded file
367
+ # download-files-zip: Downloaded zip
368
+ # emailed-completed: Emailed
369
+ # emailed-by-user: Emailed sign link
370
+ # emailed: Emailed
371
+ # locked: Locked
372
+ # pin-code-changed: Changed PIN
373
+ # pin-code-failed: Access failed
374
+ # pin-code-set: Set PIN
375
+ # pin-code-unset: Unset PIN
376
+ # pin-code-verified: Access verified
377
+ # reassigned-signer: Updated signer details
378
+ # external-update-signer: Updated signer details
379
+ # signed: Signed
380
+ # unarchived: Unarchived
381
+ # unlocked: Unlocked
382
+ # voided: Voided
383
+ # saved-form: Saved form
384
+ # upload-file-accessed: Accessed file
385
+ # upload-file: Uploaded
386
+ # ```
387
+ class EtchLog
388
+ # The action taken.
389
+ attribute :action
390
+
391
+ attribute :created_at, type: :time
392
+
393
+ # The `eid` is the object identifier.
394
+ attribute :eid
395
+
396
+ # String id, often a filename, of any file related to the action taken.
397
+ attribute :file_id
398
+
399
+ # Location of the user taking the action.
400
+ attribute :formatted_location
401
+
402
+ attribute :id
403
+
404
+ # Any action-specific information.
405
+ attribute :metadata
406
+
407
+ # The Signer who took the action, if applicable.
408
+ attribute :signer, type: Anvil::Types::Signer
409
+
410
+ # The Anvil `User` who took this action, if applicable.
411
+ attribute :user, type: Anvil::Types::User
412
+
413
+ # The location of the user who took the action.
414
+ attribute :user_location
415
+ end
416
+
417
+ # An `EtchPacket` represents a signature packet. `EtchPackets` packets allow you to gather signatures from multiple
418
+ # signers on a collection of PDFs filled with your data (see `payload`), and uploads such as images. See the
419
+ # [e-signature guide](/docs/api/e-signatures) for usage.
420
+ class EtchPacket
421
+ # When enabled, the EtchPacket payload can be updated. Requires a plan that allows EtchPacket updates.
422
+ attribute :allow_updates
423
+
424
+ attribute :archived_at, type: :time
425
+ attribute :completed_at, type: :time
426
+
427
+ # `true` when `payload` contains data that will fill PDFs
428
+ attribute :contains_fill_data
429
+
430
+ attribute :created_at, type: :time
431
+
432
+ # URL to this `EtchPacket` in the dashboard. Any users in your organization can view this URL.
433
+ attribute :details_url, key: "detailsURL"
434
+
435
+ # A `DocumentGroup` contains the documents after they have been filled and sent out for signature. The
436
+ # `DocumentGroup` will only exist here when `status != 'draft'`, i.e when documents have been sent out for
437
+ # signature. See the `DocumentGroup`'s `status` for lifecycle information.
438
+ attribute :document_group, type: Anvil::Types::DocumentGroup
439
+
440
+ # The `eid` is the object identifier.
441
+ attribute :eid
442
+
443
+ attribute :embedded_at, type: :time
444
+
445
+ # An array of actions during the signing process. Details actions when files are signed, downloaded, etc.
446
+ attribute :etch_log_events, array_of: Anvil::Types::EtchLog
447
+
448
+ # The `EtchTemplate` holds configuration for signers and files in the packet. Each `EtchPacket` will have an
449
+ # `EtchTemplate`.
450
+ attribute :etch_template, type: Anvil::Types::EtchTemplate
451
+
452
+ attribute :id
453
+
454
+ # @deprecated Use etchTemplate.isFree instead
455
+ attribute :is_free
456
+
457
+ # `true` when it is a test packet. You will not be charged for test packets. Filled and signed files will be
458
+ # watermarked.
459
+ attribute :is_test
460
+
461
+ # The name shown in the UI.
462
+ attribute :name
463
+
464
+ attribute :number_remaining_signers
465
+ attribute :organization, type: Anvil::Types::Organization
466
+
467
+ # Data specified to fill PDFs in the packet.
468
+ attribute :payload
469
+
470
+ attribute :sent_at, type: :time
471
+
472
+ # Possible values: `draft`, `sent`, `delivered`, `partial`, `declined`, `voided`, `completed`.
473
+ attribute :status
474
+
475
+ attribute :updated_at, type: :time
476
+
477
+ # Uploaded files like images included in the packet.
478
+ attribute :user_uploads, array_of: Anvil::Types::UserUpload
479
+
480
+ # An array of webhook notification calls to your server related to this `EtchPacket`. Get the status codes,
481
+ # response times, and retry information from each `WebhookLog`.
482
+ attribute :webhook_logs, array_of: Anvil::Types::WebhookLog
483
+
484
+ # The specific webhook notification URL for this `EtchPacket`. We will POST to this URL when users take various
485
+ # actions.
486
+ attribute :webhook_url, key: "webhookURL"
487
+ end
488
+
489
+ class EtchPacketPage
490
+ # The actual records for the requested page
491
+ attribute :items, array_of: Anvil::Types::EtchPacket
492
+
493
+ # The requested page number
494
+ attribute :page
495
+
496
+ # Total number of pages of results
497
+ attribute :page_count
498
+
499
+ # The requested number of rows per page
500
+ attribute :page_size
501
+
502
+ # Total number of rows found for the query before pagination. Capped when the query was given a `countLimit`.
503
+ attribute :row_count
504
+
505
+ # False when `rowCount` stopped at the requested `countLimit`, meaning there are at least that many rows. True
506
+ # whenever the count ran to completion.
507
+ attribute :row_count_is_exact
508
+ end
509
+
510
+ # An `EtchTemplate` holds configuration for a signature packet. You should not need to interact directly with an
511
+ # `EtchTemplate` very much. See the [e-signature guide](/docs/api/e-signatures) for more info on sending documents
512
+ # out for signatures.
513
+ class EtchTemplate
514
+ # All `Cast` objects (fillable pdfs) included in this template.
515
+ attribute :casts, array_of: Anvil::Types::Cast
516
+
517
+ attribute :config
518
+ attribute :created_at, type: :time
519
+
520
+ # The `eid` is the object identifier.
521
+ attribute :eid
522
+
523
+ # An array of `EtchPackets` created from this template. At this time, this will be a 1-to-1 relationship.
524
+ attribute :etch_packets, array_of: Anvil::Types::EtchPacket
525
+
526
+ attribute :id
527
+ attribute :is_free
528
+ attribute :is_repeatable
529
+ attribute :name
530
+ attribute :organization, type: Anvil::Types::Organization
531
+
532
+ # Signer configurations including the inferred signatureExperience. Useful for inspecting signer state on draft
533
+ # packets before sending.
534
+ attribute :signers
535
+
536
+ attribute :updated_at, type: :time
537
+ attribute :user_uploads, array_of: Anvil::Types::UserUpload
538
+ end
539
+
540
+ # The `File` type of the Anvil GraphQL schema, named `AnvilFile` so it does not shadow Ruby's.
541
+ class AnvilFile
542
+ attribute :encoding
543
+ attribute :key
544
+ attribute :mimetype
545
+ attribute :name
546
+ attribute :src
547
+ end
548
+
549
+ # A `Forge` holds configuration for a single webform. A `Forge` defines a
550
+ # webform's fields, the page fields are on, their types, webform logic, etc.
551
+ # Each Forge will be a member of only one `Weld` (Workflow).
552
+ #
553
+ # See our [Workflow API guide](/docs/api/workflows) for more info.
554
+ class Forge
555
+ attribute :archived_at, type: :time
556
+ attribute :config
557
+ attribute :created_at, type: :time
558
+
559
+ # The `eid` is the Forge/Webform's object identifier.
560
+ attribute :eid
561
+
562
+ # Example payload to fill this webform. Shown on the "API information" page for this webform's Workflow.
563
+ attribute :example_payload
564
+
565
+ # A list of objects describing all the fields in this webform. The response is a more digestable way to get all
566
+ # the fields than digging in `config`.
567
+ attribute :field_info
568
+
569
+ attribute :has_been_published
570
+ attribute :has_unpublished_changes
571
+ attribute :id
572
+ attribute :is_latest_version
573
+ attribute :is_published_version
574
+
575
+ # Is this forge required to complete the Workflow?
576
+ attribute :is_required
577
+
578
+ attribute :latest_draft_version_number
579
+ attribute :name
580
+ attribute :organization, type: Anvil::Types::Organization
581
+ attribute :published_at, type: :time
582
+
583
+ # Current published version number of this Forge
584
+ attribute :published_number
585
+
586
+ # The slug of the currently published version
587
+ attribute :published_slug
588
+
589
+ attribute :published_version_id
590
+ attribute :published_version_number
591
+ attribute :published_versions, type: Anvil::Types::ForgeVersionPage
592
+
593
+ # The forge `config` with cascade-resolved flags merged in (e.g. `optionalByDefault`, resolved forge → weld →
594
+ # org). Read this to render/validate the form; raw `config` is for editing the stored config.
595
+ attribute :resolved_config
596
+
597
+ attribute :slug
598
+ attribute :test_forge_complete_webhook_payload
599
+ attribute :updated_at, type: :time
600
+ attribute :user_uploads, array_of: Anvil::Types::UserUpload
601
+ attribute :version_id
602
+
603
+ # Current version number of this Forge
604
+ attribute :version_number
605
+
606
+ attribute :versions, type: Anvil::Types::ForgeVersionPage
607
+ attribute :weld, type: Anvil::Types::Weld
608
+ end
609
+
610
+ class ForgeMap
611
+ attribute :config
612
+ attribute :created_at, type: :time
613
+
614
+ # The `eid` is the object identifier.
615
+ attribute :eid
616
+
617
+ attribute :forge_a, type: Anvil::Types::Forge
618
+ attribute :forge_b, type: Anvil::Types::Forge
619
+ attribute :id
620
+ attribute :updated_at, type: :time
621
+ end
622
+
623
+ class ForgePage
624
+ # The actual records for the requested page
625
+ attribute :items, array_of: Anvil::Types::Forge
626
+
627
+ # The requested page number
628
+ attribute :page
629
+
630
+ # Total number of pages of results
631
+ attribute :page_count
632
+
633
+ # The requested number of rows per page
634
+ attribute :page_size
635
+
636
+ # Total number of rows found for the query before pagination. Capped when the query was given a `countLimit`.
637
+ attribute :row_count
638
+
639
+ # False when `rowCount` stopped at the requested `countLimit`, meaning there are at least that many rows. True
640
+ # whenever the count ran to completion.
641
+ attribute :row_count_is_exact
642
+ end
643
+
644
+ class ForgeVersion
645
+ attribute :config
646
+ attribute :created_at, type: :time
647
+
648
+ # The `eid` is the object identifier.
649
+ attribute :eid
650
+
651
+ attribute :id
652
+ attribute :name
653
+ attribute :number
654
+ attribute :publish_updated_at, type: :time
655
+ attribute :published_at, type: :time
656
+ attribute :published_description
657
+ attribute :published_number
658
+ attribute :published_title
659
+ attribute :publishing_user, type: Anvil::Types::User
660
+ attribute :slug
661
+ attribute :updated_at, type: :time
662
+ attribute :updated_columns
663
+ attribute :user, type: Anvil::Types::User
664
+ end
665
+
666
+ class ForgeVersionPage
667
+ # The actual records for the requested page
668
+ attribute :items, array_of: Anvil::Types::ForgeVersion
669
+
670
+ # The requested page number
671
+ attribute :page
672
+
673
+ # Total number of pages of results
674
+ attribute :page_count
675
+
676
+ # The requested number of rows per page
677
+ attribute :page_size
678
+
679
+ # Total number of rows found for the query before pagination. Capped when the query was given a `countLimit`.
680
+ attribute :row_count
681
+
682
+ # False when `rowCount` stopped at the requested `countLimit`, meaning there are at least that many rows. True
683
+ # whenever the count ran to completion.
684
+ attribute :row_count_is_exact
685
+ end
686
+
687
+ class GenerateEmbedURLResponse
688
+ # The EID for the token associated with the request you just made. Can be used later to expire the session that
689
+ # was created using it.
690
+ attribute :request_token_eid
691
+
692
+ # The URL to send your embedded User to. They will be logged in and then redirected to the appropriate page for
693
+ # their embedded access.
694
+ # You can direct them back to this URL if they need to access their embedded experience again as long as their
695
+ # session has not expired.
696
+ attribute :url
697
+ end
698
+
699
+ # A third-party integration connection (e.g. HubSpot) for an organization.
700
+ class Integration
701
+ # Whether the organization has an active connection for this integration.
702
+ attribute :is_connected
703
+
704
+ # Available object types, normalized into the `{ k, v }` shape expected by Dropdown.
705
+ attribute :object_types
706
+ end
707
+
708
+ class Invoice
709
+ attribute :end_date, type: :time
710
+ attribute :id
711
+ attribute :invoice_url
712
+ attribute :start_date, type: :time
713
+ attribute :status
714
+ attribute :total_amount
715
+ end
716
+
717
+ class InvoiceBucketItem
718
+ attribute :included_units
719
+ attribute :unit_type
720
+ attribute :used_units
721
+ end
722
+
723
+ class InvoiceUnitItem
724
+ attribute :base_units
725
+ attribute :total_amount
726
+ attribute :unit_amount
727
+ attribute :unit_type
728
+ attribute :used_units
729
+ end
730
+
731
+ class MetricUsage
732
+ # Usage that will be billed (usage not covered by credits or prepaid)
733
+ attribute :billable_usage
734
+
735
+ # Cost for billable usage (billableUsage * unitPrice)
736
+ attribute :cost, type: Anvil::Types::Amount
737
+
738
+ # Initial number of free credits granted for this metric
739
+ attribute :credits_initial
740
+
741
+ # Number of free credits remaining for this metric (null if no credits)
742
+ attribute :credits_remaining
743
+
744
+ # Metric key (e.g., pdfApiCalls, workflowSubmissions)
745
+ attribute :key
746
+
747
+ # Display label for the metric
748
+ attribute :label
749
+
750
+ # Initial number of prepaid units from bulk purchases
751
+ attribute :prepaid_initial
752
+
753
+ # Number of prepaid units remaining from bulk purchases (null if no prepaid)
754
+ attribute :prepaid_remaining
755
+
756
+ # Unit label (e.g., calls, submissions, packets)
757
+ attribute :unit
758
+
759
+ # Price per unit
760
+ attribute :unit_price, type: Anvil::Types::Amount
761
+ end
762
+
763
+ class ObjectRelationship
764
+ attribute :id
765
+ attribute :related_object_eid
766
+ attribute :related_object_type
767
+ attribute :relation
768
+ attribute :source_object_eid
769
+ attribute :source_object_type
770
+ end
771
+
772
+ # An entity that encapsulates a set of Workflows, templates, users, etc.
773
+ class Organization
774
+ attribute :admin_users, array_of: Anvil::Types::User
775
+ attribute :available_signature_provider_types
776
+
777
+ # The email used for all billing related correspondence.
778
+ attribute :billing_email
779
+
780
+ # Returns a paginated Page that includes items (array of Casts), rowCount, pageCount, page, and pageSize.
781
+ attribute :casts, type: Anvil::Types::CastPage
782
+
783
+ attribute :child_organizations, array_of: Anvil::Types::Organization
784
+ attribute :config
785
+ attribute :created_at, type: :time
786
+
787
+ # The `eid` is the object identifier.
788
+ attribute :eid
789
+
790
+ attribute :etch_complete_stats
791
+ attribute :etch_packets, type: Anvil::Types::EtchPacketPage
792
+
793
+ # Etch templates in this organization, oldest first. Page through them with `limit` and `offset`.
794
+ attribute :etch_templates, array_of: Anvil::Types::EtchTemplate
795
+
796
+ attribute :forge_maps, array_of: Anvil::Types::ForgeMap
797
+ attribute :forges, array_of: Anvil::Types::Forge
798
+ attribute :id
799
+ attribute :is_personal
800
+
801
+ # Is this Organization set up for SSO-based authentication or not.
802
+ attribute :is_sso
803
+
804
+ attribute :is_subscribed
805
+ attribute :logo
806
+
807
+ # URL to your logo. You can update this on your organization settings page.
808
+ attribute :logo_url, key: "logoURL"
809
+
810
+ attribute :name
811
+ attribute :organization_user_invites, array_of: Anvil::Types::OrganizationUserInvite
812
+ attribute :organization_users, array_of: Anvil::Types::OrganizationUser
813
+ attribute :parent_organization, type: Anvil::Types::Organization
814
+ attribute :payment_methods, array_of: Anvil::Types::PaymentMethod
815
+ attribute :related_organizations, array_of: Anvil::Types::Organization
816
+
817
+ # Number of user slots remaining for this organization.
818
+ attribute :remaining_users
819
+
820
+ attribute :resolved_config
821
+ attribute :signature_provider_type
822
+ attribute :slug
823
+
824
+ # Your organization's white-label CSS stylesheet. You can update this on your organization settings page.
825
+ attribute :stylesheet_url, key: "stylesheetURL"
826
+
827
+ attribute :subscription_activity
828
+
829
+ # Your organization's support email address. Used as the reply-to address for emails sent to your users by Anvil.
830
+ attribute :support_email
831
+
832
+ attribute :updated_at, type: :time
833
+ attribute :use_test_signature_provider
834
+ attribute :users, array_of: Anvil::Types::User
835
+ attribute :webhook, type: Anvil::Types::Webhook
836
+ attribute :webhook_actions, array_of: Anvil::Types::WebhookAction
837
+ attribute :webhook_logs, type: Anvil::Types::WebhookLogPage
838
+ attribute :weld_complete_stats
839
+ attribute :weld_complete_webhook_stats
840
+ attribute :weld_groups, array_of: Anvil::Types::WeldGroup
841
+
842
+ # Returns a paginated Page that includes items (array of Welds), rowCount, pageCount, page, and pageSize.
843
+ attribute :welds, type: Anvil::Types::WeldPage
844
+ end
845
+
846
+ class OrganizationPage
847
+ # The actual records for the requested page
848
+ attribute :items, array_of: Anvil::Types::Organization
849
+
850
+ # The requested page number
851
+ attribute :page
852
+
853
+ # Total number of pages of results
854
+ attribute :page_count
855
+
856
+ # The requested number of rows per page
857
+ attribute :page_size
858
+
859
+ # Total number of rows found for the query before pagination. Capped when the query was given a `countLimit`.
860
+ attribute :row_count
861
+
862
+ # False when `rowCount` stopped at the requested `countLimit`, meaning there are at least that many rows. True
863
+ # whenever the count ran to completion.
864
+ attribute :row_count_is_exact
865
+ end
866
+
867
+ class OrganizationUser
868
+ attribute :created_at, type: :time
869
+
870
+ # A place to store your external system's unique identifier for this User.
871
+ attribute :external_id
872
+
873
+ attribute :id
874
+ attribute :organization, type: Anvil::Types::Organization
875
+
876
+ # Role of this user within your org. Possible values: viewer, editor, billingAdmin, admin, tokenized, api
877
+ attribute :role
878
+
879
+ attribute :updated_at, type: :time
880
+ attribute :user, type: Anvil::Types::User
881
+ end
882
+
883
+ # An invite sent for a user to join your organization. Once accepted, an
884
+ # `OrganizationUser` will be created.
885
+ class OrganizationUserInvite
886
+ attribute :accepted_at, type: :time
887
+ attribute :created_at, type: :time
888
+
889
+ # The `eid` is the object identifier.
890
+ attribute :eid
891
+
892
+ attribute :email
893
+
894
+ # A place to store your external system's unique identifier for this User.
895
+ attribute :external_id
896
+
897
+ attribute :id
898
+ attribute :name
899
+ attribute :organization, type: Anvil::Types::Organization
900
+ attribute :revoked_at, type: :time
901
+
902
+ # Role of this user within your org. Possible values: viewer, editor, billingAdmin, admin, tokenized, api
903
+ attribute :role
904
+
905
+ attribute :updated_at, type: :time
906
+ end
907
+
908
+ class PaymentMethod
909
+ attribute :exp_month
910
+ attribute :exp_year
911
+ attribute :id
912
+ attribute :is_default
913
+ attribute :last4
914
+ attribute :provider_name
915
+ attribute :status
916
+ attribute :type
917
+ end
918
+
919
+ # Represents a single signer. See `Signer.status` to indicate where a signer
920
+ # is in the signing process.
921
+ class Signer
922
+ # The `Signer`'s user-specified id set on packet creation.
923
+ attribute :alias_id
924
+
925
+ attribute :allow_default_translations
926
+
927
+ # Your id for the person signing: a way to trace this signer back to a user in your system.
928
+ attribute :client_user_id
929
+
930
+ # Timestamp when the `Signer` has finished signing.
931
+ attribute :completed_at, type: :time
932
+
933
+ attribute :created_at, type: :time
934
+
935
+ # A `DocumentGroup` references all signers and the documents after they have been filled and sent out for
936
+ # signature. See the `DocumentGroup`'s `status` for lifecycle information.
937
+ attribute :document_group, type: Anvil::Types::DocumentGroup
938
+
939
+ # The `eid` is the object identifier.
940
+ attribute :eid
941
+
942
+ attribute :email
943
+
944
+ # The URL the user will be redirected to when they finish signing.
945
+ attribute :finish_url, key: "finishURL"
946
+
947
+ attribute :id
948
+ attribute :name
949
+
950
+ # Possible values: `etch` or `docusign`.
951
+ attribute :provider
952
+
953
+ # Numeric step in the signing process where this user signs. Signers are routed in sorted order.
954
+ attribute :routing_order
955
+
956
+ # Indicates the method by which the user signs. Possible values: `email`, `embedded`, or `in-person`.
957
+ attribute :sign_action_type
958
+
959
+ # The inferred signing experience for this signer. Possible values: `signBeforeReviewing`, `signWhileReviewing`,
960
+ # `formCompletionOnly`, `acknowledgeOnly`.
961
+ attribute :signature_experience
962
+
963
+ # Get all `SignerTokens` this signer has available. These can tell you when a signer's token will be expiring,
964
+ # which token was used for signing, etc.
965
+ attribute :signer_tokens, array_of: Anvil::Types::SignerToken
966
+
967
+ # Possible values: `sent`, `viewed`, `delivered`, `voided`, `autoresponded`, `faxpending`, `created`, `skipped`,
968
+ # `pending`, `ignored`, `declined`, `idCheckFailed`, `completed`
969
+ attribute :status
970
+
971
+ # An associated `Submission`. This wil exist for signers who sign at the end of a Workflow.
972
+ attribute :submission, type: Anvil::Types::Submission
973
+
974
+ attribute :support_email
975
+ attribute :updated_at, type: :time
976
+
977
+ # A Anvil `User` associated with this signer.
978
+ attribute :user, type: Anvil::Types::User
979
+ end
980
+
981
+ class SignerPage
982
+ # The actual records for the requested page
983
+ attribute :items, array_of: Anvil::Types::Signer
984
+
985
+ # The requested page number
986
+ attribute :page
987
+
988
+ # Total number of pages of results
989
+ attribute :page_count
990
+
991
+ # The requested number of rows per page
992
+ attribute :page_size
993
+
994
+ # Total number of rows found for the query before pagination. Capped when the query was given a `countLimit`.
995
+ attribute :row_count
996
+
997
+ # False when `rowCount` stopped at the requested `countLimit`, meaning there are at least that many rows. True
998
+ # whenever the count ran to completion.
999
+ attribute :row_count_is_exact
1000
+ end
1001
+
1002
+ # Represents a token used to sign documents. See `Signer.signerTokens` to
1003
+ # fetch them.
1004
+ #
1005
+ # We do not expose the token itself, but you can use this object to get an
1006
+ # idea of what tokens the signer has available, whether they are valid, and
1007
+ # their expiration dates (`validUntil`).
1008
+ class SignerToken
1009
+ # Date when the token was created
1010
+ attribute :created_at, type: :time
1011
+
1012
+ # The `eid` is the object identifier.
1013
+ attribute :eid
1014
+
1015
+ # Extra data for the token.
1016
+ attribute :extra_value, key: "extra"
1017
+
1018
+ # `true` when this token was used to sign the `Signer`'s documents.
1019
+ attribute :has_signed
1020
+
1021
+ attribute :id
1022
+
1023
+ # Date when the token was invalidated if explicitly invalidated. If invalid due to expiration, use `validUntil`.
1024
+ attribute :invalidated_at, type: :time
1025
+
1026
+ # Date when the token was used to sign documents.
1027
+ attribute :signed_at, type: :time
1028
+
1029
+ attribute :signer, type: Anvil::Types::Signer
1030
+
1031
+ # Type of token issued. Tells you how the token was issued. Values: `api`, `sign-now`, `notify-signer`, `view`
1032
+ attribute :type
1033
+
1034
+ # `true` when this token is valid and can be used to sign.
1035
+ attribute :valid
1036
+
1037
+ # Date of token expiration.
1038
+ attribute :valid_until, type: :time
1039
+ end
1040
+
1041
+ # An instance of a `Forge`. A `Submission` holds the data for one webform
1042
+ # submission on a particular `Forge`.
1043
+ #
1044
+ # See our [Workflow API guide](/docs/api/workflows) for more info.
1045
+ class Submission
1046
+ attribute :completed_at, type: :time
1047
+ attribute :completion_percentage
1048
+
1049
+ # URL to the next step in this webform.
1050
+ attribute :continue_url, key: "continueURL"
1051
+
1052
+ attribute :created_at, type: :time
1053
+ attribute :current_step
1054
+
1055
+ # The `eid` is the object identifier.
1056
+ attribute :eid
1057
+
1058
+ attribute :forge, type: Anvil::Types::Forge
1059
+ attribute :id
1060
+ attribute :is_excluded
1061
+
1062
+ # The raw payload
1063
+ attribute :payload
1064
+
1065
+ # The raw payload without types
1066
+ attribute :payload_value
1067
+
1068
+ attribute :request_meta
1069
+
1070
+ # The payload resolved with field aliases and field information. If you need to fetch the submission payload, use
1071
+ # this.
1072
+ attribute :resolved_payload
1073
+
1074
+ attribute :review_data
1075
+ attribute :signer, type: Anvil::Types::Signer
1076
+
1077
+ # Possible values: `created`, `in-progress`, `waiting-to-sign`, `user-signed-and-waiting`,
1078
+ # `users-turn-to-sign-ui`, `users-turn-to-sign-email`, `someone-else-signed-and-waiting`, `completed`
1079
+ attribute :status
1080
+
1081
+ attribute :total_steps
1082
+ attribute :touched_by_user
1083
+ attribute :updated_at, type: :time
1084
+ attribute :user, type: Anvil::Types::User
1085
+ attribute :weld_data, type: Anvil::Types::WeldData
1086
+ end
1087
+
1088
+ class SubmissionPage
1089
+ # The actual records for the requested page
1090
+ attribute :items, array_of: Anvil::Types::Submission
1091
+
1092
+ # The requested page number
1093
+ attribute :page
1094
+
1095
+ # Total number of pages of results
1096
+ attribute :page_count
1097
+
1098
+ # The requested number of rows per page
1099
+ attribute :page_size
1100
+
1101
+ # Total number of rows found for the query before pagination. Capped when the query was given a `countLimit`.
1102
+ attribute :row_count
1103
+
1104
+ # False when `rowCount` stopped at the requested `countLimit`, meaning there are at least that many rows. True
1105
+ # whenever the count ran to completion.
1106
+ attribute :row_count_is_exact
1107
+ end
1108
+
1109
+ class Tag
1110
+ # Config for the tag, e.g. { color: "red", description: "This is a red tag" }
1111
+ attribute :config
1112
+
1113
+ attribute :created_at, type: :time
1114
+
1115
+ # The `eid` is the object identifier.
1116
+ attribute :eid
1117
+
1118
+ attribute :id
1119
+
1120
+ # The other tables this tag can be applied to, e.g. cast, weld_data, etch_packet, weld, etc.
1121
+ attribute :intended_for
1122
+
1123
+ # The name of the tag
1124
+ attribute :name
1125
+
1126
+ attribute :organization, type: Anvil::Types::Organization
1127
+ attribute :updated_at, type: :time
1128
+ end
1129
+
1130
+ class User
1131
+ attribute :created_at, type: :time
1132
+
1133
+ # The `eid` is the object identifier.
1134
+ attribute :eid
1135
+
1136
+ attribute :email
1137
+ attribute :extra_value, key: "extra"
1138
+ attribute :first_name
1139
+ attribute :last_name
1140
+ attribute :name
1141
+ attribute :onboarding
1142
+ attribute :organization_users, array_of: Anvil::Types::OrganizationUser
1143
+ attribute :organizations, array_of: Anvil::Types::Organization
1144
+ attribute :preferences, type: Anvil::Types::UserPreferences
1145
+
1146
+ # What type of role the User has. Either `user` or `api`.
1147
+ attribute :role
1148
+
1149
+ attribute :updated_at, type: :time
1150
+ attribute :verified_email
1151
+ end
1152
+
1153
+ class UserPage
1154
+ # The actual records for the requested page
1155
+ attribute :items, array_of: Anvil::Types::User
1156
+
1157
+ # The requested page number
1158
+ attribute :page
1159
+
1160
+ # Total number of pages of results
1161
+ attribute :page_count
1162
+
1163
+ # The requested number of rows per page
1164
+ attribute :page_size
1165
+
1166
+ # Total number of rows found for the query before pagination. Capped when the query was given a `countLimit`.
1167
+ attribute :row_count
1168
+
1169
+ # False when `rowCount` stopped at the requested `countLimit`, meaning there are at least that many rows. True
1170
+ # whenever the count ran to completion.
1171
+ attribute :row_count_is_exact
1172
+ end
1173
+
1174
+ class UserPreferences
1175
+ attribute :accepted_signature
1176
+ attribute :initials
1177
+ attribute :mcp_organization_eid
1178
+ attribute :name
1179
+ attribute :require2_fa, key: "require2FA"
1180
+ end
1181
+
1182
+ class UserUpload
1183
+ attribute :cast, type: Anvil::Types::Cast
1184
+ attribute :created_at, type: :time
1185
+
1186
+ # The `eid` is the object identifier.
1187
+ attribute :eid
1188
+
1189
+ attribute :etch_packet, type: Anvil::Types::EtchPacket
1190
+ attribute :forge, type: Anvil::Types::Forge
1191
+ attribute :id
1192
+ attribute :location
1193
+ attribute :metadata
1194
+ attribute :updated_at, type: :time
1195
+ attribute :user, type: Anvil::Types::User
1196
+ attribute :weld_data, type: Anvil::Types::WeldData
1197
+ end
1198
+
1199
+ # A `Webhook` represents a webhook URL. Anvil will POST to webhook URLs on
1200
+ # specific actions. Both organization-wide and per-object webhook URLs are
1201
+ # represented by this object. See the [webhooks guide](/docs/api/webhooks) for
1202
+ # more information.
1203
+ class Webhook
1204
+ attribute :created_at, type: :time
1205
+ attribute :creation_user, type: Anvil::Types::User
1206
+
1207
+ # The `eid` is the object identifier.
1208
+ attribute :eid
1209
+
1210
+ attribute :id
1211
+ attribute :inactive_at, type: :time
1212
+ attribute :inactive_reason
1213
+ attribute :organization, type: Anvil::Types::Organization
1214
+
1215
+ # Prossible values: `active` or `inactive`.
1216
+ attribute :status
1217
+
1218
+ # Use this token to make sure the request is from Anvil.
1219
+ attribute :token
1220
+
1221
+ # Webhook URLs that accept notifications for any object will be `prod`. Per-object webhook URLs will have type
1222
+ # `adhoc`. Webhook URLs that accept notifications for a specific object will have type `webhookAction`.
1223
+ attribute :type
1224
+
1225
+ attribute :updated_at, type: :time
1226
+
1227
+ # The URL Anvil will POST to.
1228
+ attribute :url
1229
+
1230
+ attribute :webhook_actions, array_of: Anvil::Types::WebhookAction
1231
+ end
1232
+
1233
+ # A model that represents a subscription to actions on other objects in our system
1234
+ # that would trigger a [`Webhook`]({{Types.Webhook}}) call.
1235
+ class WebhookAction
1236
+ attribute :action
1237
+ attribute :config
1238
+ attribute :created_at, type: :time
1239
+ attribute :creation_user, type: Anvil::Types::User
1240
+
1241
+ # The `eid` is the object identifier.
1242
+ attribute :eid
1243
+
1244
+ attribute :object_eid
1245
+ attribute :object_type
1246
+ attribute :updated_at, type: :time
1247
+ attribute :webhook, type: Anvil::Types::Webhook
1248
+ end
1249
+
1250
+ # A `WebhookLog` represents a single webhook call to your server. See the
1251
+ # [webhooks guide](/docs/api/webhooks) for more information.
1252
+ class WebhookLog
1253
+ # The webhook action type, e.g. `signerComplete`.
1254
+ attribute :action
1255
+
1256
+ attribute :created_at, type: :time
1257
+
1258
+ # The `eid` is the object identifier.
1259
+ attribute :eid
1260
+
1261
+ attribute :id
1262
+
1263
+ # `true` when this call was considered an error. It will be an error when the status code is >= 400, or the
1264
+ # request timed out.
1265
+ attribute :is_error
1266
+
1267
+ # `true` when this call was a retry of a previous call.
1268
+ attribute :is_retry
1269
+
1270
+ # Time it took to complete the webhook request.
1271
+ attribute :milliseconds_to_finish
1272
+
1273
+ attribute :object_eid
1274
+ attribute :object_metadata
1275
+ attribute :organization, type: Anvil::Types::Organization
1276
+
1277
+ # If this call was a retry, `originalWebhookLog` will be `WebhookLog` that was retried.
1278
+ attribute :original_webhook_log, type: Anvil::Types::WebhookLog
1279
+
1280
+ # The decrypted webhook payload data.
1281
+ attribute :payload
1282
+
1283
+ attribute :root_object_type
1284
+
1285
+ # Dashboard URL to the object that triggered the webhook event. e.g. it will link to a Workflow submission or an
1286
+ # etch packet.
1287
+ attribute :root_object_url, key: "rootObjectURL"
1288
+
1289
+ # The status code returned by your server for this call.
1290
+ attribute :status_code
1291
+ end
1292
+
1293
+ class WebhookLogPage
1294
+ # The actual records for the requested page
1295
+ attribute :items, array_of: Anvil::Types::WebhookLog
1296
+
1297
+ # The requested page number
1298
+ attribute :page
1299
+
1300
+ # Total number of pages of results
1301
+ attribute :page_count
1302
+
1303
+ # The requested number of rows per page
1304
+ attribute :page_size
1305
+
1306
+ # Total number of rows found for the query before pagination. Capped when the query was given a `countLimit`.
1307
+ attribute :row_count
1308
+
1309
+ # False when `rowCount` stopped at the requested `countLimit`, meaning there are at least that many rows. True
1310
+ # whenever the count ran to completion.
1311
+ attribute :row_count_is_exact
1312
+ end
1313
+
1314
+ # A Weld is a Workflow. It holds the configuration that combines one or more
1315
+ # `Forge` objects with zero or more `Cast` objects to create a Workflow.
1316
+ #
1317
+ # See our [Workflow API guide](/docs/api/workflows) for more info.
1318
+ class Weld
1319
+ attribute :allow_default_translations
1320
+ attribute :archived_at, type: :time
1321
+ attribute :available_signature_provider_types
1322
+ attribute :casts, array_of: Anvil::Types::Cast
1323
+
1324
+ # Config object specifying files output, signers, etc.
1325
+ attribute :config
1326
+
1327
+ attribute :created_at, type: :time
1328
+ attribute :draft_step
1329
+
1330
+ # The `eid` is the Weld/Workflow's object identifier.
1331
+ attribute :eid
1332
+
1333
+ attribute :expires_at, type: :time
1334
+ attribute :forges, array_of: Anvil::Types::Forge
1335
+ attribute :has_been_published
1336
+ attribute :has_signers
1337
+ attribute :has_unpublished_changes
1338
+ attribute :has_weld_datas
1339
+ attribute :id
1340
+
1341
+ # This `Weld` is closed to new submissions: its `expiresAt` date has passed.
1342
+ attribute :is_expired
1343
+
1344
+ attribute :is_latest_version
1345
+ attribute :is_published_version
1346
+ attribute :is_test
1347
+ attribute :latest_draft_version_number
1348
+ attribute :name
1349
+ attribute :organization, type: Anvil::Types::Organization
1350
+ attribute :published_at, type: :time
1351
+
1352
+ # Current published version number of this Weld
1353
+ attribute :published_number
1354
+
1355
+ # The slug of the currently published version
1356
+ attribute :published_slug
1357
+
1358
+ attribute :published_version_id
1359
+ attribute :published_version_number
1360
+ attribute :published_versions, type: Anvil::Types::WeldVersionPage
1361
+ attribute :signature_provider_type
1362
+ attribute :slug
1363
+ attribute :style_config
1364
+ attribute :stylesheet_url, key: "stylesheetURL"
1365
+
1366
+ # Total number of submissions (WeldDatas) started by this Weld
1367
+ attribute :submissions_count
1368
+
1369
+ attribute :test_signer_complete_webhook_payload
1370
+ attribute :test_weld_complete_webhook_payload
1371
+ attribute :title
1372
+
1373
+ # Total size in bytes of all PDF casts that would be merged
1374
+ attribute :total_output_file_size
1375
+
1376
+ attribute :updated_at, type: :time
1377
+ attribute :version_id
1378
+
1379
+ # Current version number of this Weld
1380
+ attribute :version_number
1381
+
1382
+ attribute :versions, type: Anvil::Types::WeldVersionPage
1383
+ attribute :visibility
1384
+ attribute :weld_data_counts
1385
+
1386
+ # Fetch all the `Weld`'s `WeldData`s (Workflow submissions)
1387
+ attribute :weld_datas, type: Anvil::Types::WeldDataPage
1388
+
1389
+ attribute :weld_groups, array_of: Anvil::Types::WeldGroup
1390
+ end
1391
+
1392
+ # An instance of a `Weld`. You can think of it as a "workflow submission".
1393
+ # A `WeldData` references `Submission`s for all the `Forge`s (webforms)
1394
+ # in the related `Weld` (workflow).
1395
+ #
1396
+ # See our [workflow API guide](/docs/api/workflows) for more info.
1397
+ class WeldData
1398
+ attribute :agents
1399
+ attribute :archived_at, type: :time
1400
+
1401
+ # How complete is this workflow submission. Will be a value between 0 and 1.
1402
+ attribute :completion_percentage
1403
+
1404
+ # URL to the next form to be filled by the user. Use this after `WeldData` creation to get the URL to the form
1405
+ # that should be filled first.
1406
+ attribute :continue_url, key: "continueURL"
1407
+
1408
+ attribute :created_at, type: :time
1409
+ attribute :current_step_info
1410
+
1411
+ # When a the data in any child `Submission` was last updated.
1412
+ attribute :data_updated_at, type: :time
1413
+
1414
+ # The title displayed in the UI.
1415
+ attribute :display_title
1416
+
1417
+ # A `DocumentGroup` contains the documents after they have been filled and sent out for signature. The
1418
+ # `DocumentGroup` will only exist here when that documents have been sent out for signature, or in the case of a
1419
+ # workflow with no signers, when the workflow is completely finished. See the `DocumentGroup`'s `status` for
1420
+ # lifecycle information.
1421
+ attribute :document_group, type: Anvil::Types::DocumentGroup
1422
+
1423
+ # The `eid` is the object identifier.
1424
+ attribute :eid
1425
+
1426
+ attribute :embedded_at, type: :time
1427
+
1428
+ # An array of actions during the signing process when using Anvil's Etch as the signature provider. These objects
1429
+ # detail actions when files are signed, downloaded, etc.
1430
+ attribute :etch_log_events, array_of: Anvil::Types::EtchLog
1431
+
1432
+ # A file listing of all files excluded from the signing process.
1433
+ attribute :excluded_files
1434
+
1435
+ attribute :expires_at, type: :time
1436
+
1437
+ # A file listing of all files available in the `WeldData`. If there is a `DocumentGroup`, this will be equal to
1438
+ # `DocumentGroup.files`.
1439
+ attribute :files
1440
+
1441
+ attribute :forges_requiring_completion, array_of: Anvil::Types::Forge
1442
+ attribute :has_pin
1443
+ attribute :has_signers
1444
+
1445
+ # `true` when status is `completed`: All forms have been filled, all signers have signed.
1446
+ attribute :is_all_complete
1447
+
1448
+ # `true` when all forms in the workflow have been filled. There may be signers who need to sign.
1449
+ attribute :is_complete
1450
+
1451
+ # This `WeldData` has expired, either by passing the `expiredAt` date, or by being locked.
1452
+ attribute :is_expired
1453
+
1454
+ # `true` when it is a test workflow submission. You will not be charged for signatures on test submissions, and
1455
+ # they will not count toward your monthly completed workflows.
1456
+ attribute :is_test
1457
+
1458
+ attribute :next_signer, type: Anvil::Types::Signer
1459
+ attribute :next_signers, array_of: Anvil::Types::Signer
1460
+ attribute :number_remaining_signers
1461
+ attribute :payload_can_be_updated
1462
+ attribute :pin
1463
+
1464
+ # Possible values: `created`, `in-progress`, `ready-to-sign`, `awaiting-signatures`, `completed`, `declined`
1465
+ attribute :status
1466
+
1467
+ attribute :stylesheet_url, key: "stylesheetURL"
1468
+
1469
+ # An array of all the underlying `Submission` objects holding data from each webform.
1470
+ attribute :submissions, array_of: Anvil::Types::Submission
1471
+
1472
+ # When a column on the WeldData itself was updated.
1473
+ attribute :updated_at, type: :time
1474
+
1475
+ # An array of files uploaded by users during the webform filling process.
1476
+ attribute :user_uploads, array_of: Anvil::Types::UserUpload
1477
+
1478
+ # An array of webhook notification calls to your server related to this `WeldData`. Get the status codes, response
1479
+ # times, and retry information from each `WebhookLog`.
1480
+ attribute :webhook_logs, array_of: Anvil::Types::WebhookLog
1481
+
1482
+ # The specific webhook notification URL for this `WeldData`. We will POST to this URL when users take various
1483
+ # actions.
1484
+ attribute :webhook_url, key: "webhookURL"
1485
+
1486
+ # The workflow this `WeldData` is related to.
1487
+ attribute :weld, type: Anvil::Types::Weld
1488
+
1489
+ attribute :weld_data_group, type: Anvil::Types::WeldDataGroup
1490
+
1491
+ # An array of actions taken during the form filling process.
1492
+ attribute :weld_data_log_events, array_of: Anvil::Types::WeldDataLog
1493
+
1494
+ attribute :weld_version_id
1495
+ end
1496
+
1497
+ class WeldDataGroup
1498
+ attribute :archived_at, type: :time
1499
+ attribute :created_at, type: :time
1500
+ attribute :data_updated_at, type: :time
1501
+
1502
+ # The `eid` is the object identifier.
1503
+ attribute :eid
1504
+
1505
+ attribute :id
1506
+ attribute :is_test
1507
+ attribute :title
1508
+ attribute :updated_at, type: :time
1509
+ attribute :weld_datas, array_of: Anvil::Types::WeldData
1510
+ attribute :weld_group, type: Anvil::Types::WeldGroup
1511
+ end
1512
+
1513
+ class WeldDataGroupPage
1514
+ # The actual records for the requested page
1515
+ attribute :items, array_of: Anvil::Types::WeldDataGroup
1516
+
1517
+ # The requested page number
1518
+ attribute :page
1519
+
1520
+ # Total number of pages of results
1521
+ attribute :page_count
1522
+
1523
+ # The requested number of rows per page
1524
+ attribute :page_size
1525
+
1526
+ # Total number of rows found for the query before pagination. Capped when the query was given a `countLimit`.
1527
+ attribute :row_count
1528
+
1529
+ # False when `rowCount` stopped at the requested `countLimit`, meaning there are at least that many rows. True
1530
+ # whenever the count ran to completion.
1531
+ attribute :row_count_is_exact
1532
+ end
1533
+
1534
+ # Represents a single action taken by a user while filling a webform within a Workflow. For
1535
+ # example, a `WeldDataLog` object will be created when a user completes a webform, downloads
1536
+ # a file, voids the packet associated packet, etc.
1537
+ #
1538
+ # All actions with a short description:
1539
+ #
1540
+ # ```md
1541
+ # accessed: Viewed
1542
+ # archived: Archived
1543
+ # completed: Completed Form
1544
+ # created: Created
1545
+ # download-csv-all: Downloaded
1546
+ # download-csv-individual-file: Downloaded
1547
+ # download-file-individual: Downloaded File
1548
+ # download-files-zip: Downloaded Zip
1549
+ # emailed-completed: Emailed
1550
+ # emailed: Emailed
1551
+ # locked: Locked
1552
+ # pin-code-changed: Changed PIN
1553
+ # pin-code-failed: Access Failed
1554
+ # pin-code-set: Set PIN
1555
+ # pin-code-unset: Unset PIN
1556
+ # pin-code-verified: Access Verified
1557
+ # saved-form: Saved form
1558
+ # signed: Signed
1559
+ # unarchived: Unarchived
1560
+ # unlocked: Unlocked
1561
+ # upload-file-accessed: Accessed file
1562
+ # upload-file: Uploaded
1563
+ # voided: Voided
1564
+ # ```
1565
+ class WeldDataLog
1566
+ # The action taken.
1567
+ attribute :action
1568
+
1569
+ attribute :created_at, type: :time
1570
+
1571
+ # The `eid` is the object identifier.
1572
+ attribute :eid
1573
+
1574
+ # Location of the user taking the action.
1575
+ attribute :formatted_location
1576
+
1577
+ attribute :id
1578
+
1579
+ # Any action-specific information.
1580
+ attribute :metadata
1581
+
1582
+ attribute :submission, type: Anvil::Types::Submission
1583
+
1584
+ # The Anvil `User` who took this action, if applicable.
1585
+ attribute :user, type: Anvil::Types::User
1586
+
1587
+ attribute :weld_data, type: Anvil::Types::WeldData
1588
+ end
1589
+
1590
+ class WeldDataPage
1591
+ # The actual records for the requested page
1592
+ attribute :items, array_of: Anvil::Types::WeldData
1593
+
1594
+ # The requested page number
1595
+ attribute :page
1596
+
1597
+ # Total number of pages of results
1598
+ attribute :page_count
1599
+
1600
+ # The requested number of rows per page
1601
+ attribute :page_size
1602
+
1603
+ # Total number of rows found for the query before pagination. Capped when the query was given a `countLimit`.
1604
+ attribute :row_count
1605
+
1606
+ # False when `rowCount` stopped at the requested `countLimit`, meaning there are at least that many rows. True
1607
+ # whenever the count ran to completion.
1608
+ attribute :row_count_is_exact
1609
+ end
1610
+
1611
+ class WeldGroup
1612
+ attribute :created_at, type: :time
1613
+
1614
+ # The `eid` is the object identifier.
1615
+ attribute :eid
1616
+
1617
+ attribute :has_weld_data_groups
1618
+ attribute :id
1619
+ attribute :name
1620
+ attribute :organization, type: Anvil::Types::Organization
1621
+ attribute :slug
1622
+ attribute :updated_at, type: :time
1623
+ attribute :weld_data_groups, type: Anvil::Types::WeldDataGroupPage
1624
+ attribute :welds, array_of: Anvil::Types::Weld
1625
+ end
1626
+
1627
+ class WeldPage
1628
+ # The actual records for the requested page
1629
+ attribute :items, array_of: Anvil::Types::Weld
1630
+
1631
+ # The requested page number
1632
+ attribute :page
1633
+
1634
+ # Total number of pages of results
1635
+ attribute :page_count
1636
+
1637
+ # The requested number of rows per page
1638
+ attribute :page_size
1639
+
1640
+ # Total number of rows found for the query before pagination. Capped when the query was given a `countLimit`.
1641
+ attribute :row_count
1642
+
1643
+ # False when `rowCount` stopped at the requested `countLimit`, meaning there are at least that many rows. True
1644
+ # whenever the count ran to completion.
1645
+ attribute :row_count_is_exact
1646
+ end
1647
+
1648
+ class WeldVersion
1649
+ attribute :config
1650
+ attribute :created_at, type: :time
1651
+
1652
+ # The `eid` is the object identifier.
1653
+ attribute :eid
1654
+
1655
+ attribute :id
1656
+ attribute :name
1657
+ attribute :number
1658
+ attribute :publish_updated_at, type: :time
1659
+ attribute :published_at, type: :time
1660
+ attribute :published_description
1661
+ attribute :published_number
1662
+ attribute :published_title
1663
+ attribute :publishing_user, type: Anvil::Types::User
1664
+ attribute :slug
1665
+ attribute :updated_at, type: :time
1666
+ attribute :updated_columns
1667
+ attribute :user, type: Anvil::Types::User
1668
+ end
1669
+
1670
+ class WeldVersionPage
1671
+ # The actual records for the requested page
1672
+ attribute :items, array_of: Anvil::Types::WeldVersion
1673
+
1674
+ # The requested page number
1675
+ attribute :page
1676
+
1677
+ # Total number of pages of results
1678
+ attribute :page_count
1679
+
1680
+ # The requested number of rows per page
1681
+ attribute :page_size
1682
+
1683
+ # Total number of rows found for the query before pagination. Capped when the query was given a `countLimit`.
1684
+ attribute :row_count
1685
+
1686
+ # False when `rowCount` stopped at the requested `countLimit`, meaning there are at least that many rows. True
1687
+ # whenever the count ran to completion.
1688
+ attribute :row_count_is_exact
1689
+ end
1690
+
1691
+ # The file a `download` returns.
1692
+ module DownloadFormat
1693
+ PDF = "pdf"
1694
+ ZIP = "zip"
1695
+
1696
+ VALUES = [PDF, ZIP].freeze
1697
+ end
1698
+
1699
+ # What an eid passed to `download` refers to.
1700
+ module DownloadObjectType
1701
+ # The same object as `document_template`, under the name the API uses.
1702
+ CAST = "cast"
1703
+ # The same object as `esign_documents`, under the name the API uses.
1704
+ DOCUMENT_GROUP = "document_group"
1705
+ # Downloads as pdf.
1706
+ DOCUMENT_TEMPLATE = "document_template"
1707
+ # Downloads as zip.
1708
+ ESIGN_DOCUMENTS = "esign_documents"
1709
+
1710
+ VALUES = [CAST, DOCUMENT_GROUP, DOCUMENT_TEMPLATE, ESIGN_DOCUMENTS].freeze
1711
+ end
1712
+ end
1713
+ end