@wirechunk/cli 0.0.1 → 0.0.2

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,4216 @@
1
+ export type Maybe<T> = T | null;
2
+ export type InputMaybe<T> = T | null | undefined;
3
+ export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
4
+ export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
5
+ export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
6
+ export type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = {
7
+ [_ in K]?: never;
8
+ };
9
+ export type Incremental<T> =
10
+ | T
11
+ | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
12
+ /** All built-in and custom scalars, mapped to their actual values */
13
+ export type Scalars = {
14
+ ID: { input: string; output: string };
15
+ String: { input: string; output: string };
16
+ Boolean: { input: boolean; output: boolean };
17
+ Int: { input: number; output: number };
18
+ Float: { input: number; output: number };
19
+ /** A timestamp in ISO 8601 format */
20
+ Date: { input: string | Date; output: string };
21
+ };
22
+
23
+ export type ActiveCampaignApi = {
24
+ __typename?: 'ActiveCampaignApi';
25
+ tag: ActiveCampaignTag;
26
+ tags: ActiveCampaignApiTagsList;
27
+ };
28
+
29
+ export type ActiveCampaignApiTagArgs = {
30
+ id: Scalars['String']['input'];
31
+ };
32
+
33
+ export type ActiveCampaignApiTagsArgs = {
34
+ limit?: InputMaybe<Scalars['Int']['input']>;
35
+ page?: InputMaybe<Scalars['Int']['input']>;
36
+ search?: InputMaybe<Scalars['String']['input']>;
37
+ };
38
+
39
+ export type ActiveCampaignApiTagsList = ListResult & {
40
+ __typename?: 'ActiveCampaignApiTagsList';
41
+ limit: Scalars['Int']['output'];
42
+ tags: Array<ActiveCampaignTag>;
43
+ totalCount: Scalars['Int']['output'];
44
+ };
45
+
46
+ export type ActiveCampaignTag = {
47
+ __typename?: 'ActiveCampaignTag';
48
+ id: Scalars['String']['output'];
49
+ subscriberCount: Scalars['Int']['output'];
50
+ tag: Scalars['String']['output'];
51
+ };
52
+
53
+ export type ActiveCampaignTagsSyncConfig = {
54
+ __typename?: 'ActiveCampaignTagsSyncConfig';
55
+ activeCampaignTagId: Scalars['String']['output'];
56
+ id: Scalars['String']['output'];
57
+ subscriptionPlanIds: Array<Scalars['String']['output']>;
58
+ };
59
+
60
+ export type Address = {
61
+ __typename?: 'Address';
62
+ city?: Maybe<Scalars['String']['output']>;
63
+ country?: Maybe<Scalars['String']['output']>;
64
+ line1?: Maybe<Scalars['String']['output']>;
65
+ line2?: Maybe<Scalars['String']['output']>;
66
+ postalCode?: Maybe<Scalars['String']['output']>;
67
+ state?: Maybe<Scalars['String']['output']>;
68
+ };
69
+
70
+ export type AddressInput = {
71
+ city: Scalars['String']['input'];
72
+ country?: InputMaybe<Scalars['String']['input']>;
73
+ line1: Scalars['String']['input'];
74
+ line2?: InputMaybe<Scalars['String']['input']>;
75
+ postalCode: Scalars['String']['input'];
76
+ state: Scalars['String']['input'];
77
+ };
78
+
79
+ /**
80
+ * An admin user is a subset of a User. This type is used when the host platform does not have a site and orgs
81
+ * like normal platforms and instead the admin dashboard is displayed on a configured domain where admin users
82
+ * can sign in (in this case features that require a site and orgs are not available).
83
+ */
84
+ export type AdminUser = {
85
+ __typename?: 'AdminUser';
86
+ displayName: Scalars['String']['output'];
87
+ email: Scalars['String']['output'];
88
+ emailVerified: Scalars['Boolean']['output'];
89
+ firstName: Scalars['String']['output'];
90
+ id: Scalars['String']['output'];
91
+ lastName: Scalars['String']['output'];
92
+ platformAdminUsers: Array<PlatformAdminUser>;
93
+ };
94
+
95
+ export type Agreement = {
96
+ __typename?: 'Agreement';
97
+ content?: Maybe<Delta>;
98
+ id: Scalars['String']['output'];
99
+ publishTimestamp: Scalars['Date']['output'];
100
+ text?: Maybe<Scalars['String']['output']>;
101
+ type: AgreementType;
102
+ };
103
+
104
+ export const AgreementType = {
105
+ PrivacyPolicy: 'PrivacyPolicy',
106
+ TermsOfUse: 'TermsOfUse',
107
+ } as const;
108
+
109
+ export type AgreementType = (typeof AgreementType)[keyof typeof AgreementType];
110
+ export type AgreementsList = {
111
+ __typename?: 'AgreementsList';
112
+ agreements: Array<Agreement>;
113
+ limit: Scalars['Int']['output'];
114
+ totalCount: Scalars['Int']['output'];
115
+ };
116
+
117
+ export type ApiToken = {
118
+ __typename?: 'ApiToken';
119
+ createdAt: Scalars['Date']['output'];
120
+ id: Scalars['String']['output'];
121
+ invalidatedAt?: Maybe<Scalars['Date']['output']>;
122
+ name: Scalars['String']['output'];
123
+ };
124
+
125
+ export type ApiTokensList = ListResult & {
126
+ __typename?: 'ApiTokensList';
127
+ apiTokens: Array<ApiToken>;
128
+ limit: Scalars['Int']['output'];
129
+ totalCount: Scalars['Int']['output'];
130
+ };
131
+
132
+ export type ApplyCustomPromoCodeResult = ApplyCustomPromoCodeSuccessResult | GenericInternalError;
133
+
134
+ export type ApplyCustomPromoCodeSuccessResult = {
135
+ __typename?: 'ApplyCustomPromoCodeSuccessResult';
136
+ promoCode: Scalars['String']['output'];
137
+ subscriptionPlanId: Scalars['String']['output'];
138
+ successMessage?: Maybe<Delta>;
139
+ valid: Scalars['Boolean']['output'];
140
+ };
141
+
142
+ export type ArchiveComponentResult = ArchiveComponentSuccessResult | GenericUserError;
143
+
144
+ export type ArchiveComponentSuccessResult = {
145
+ __typename?: 'ArchiveComponentSuccessResult';
146
+ component: Component;
147
+ };
148
+
149
+ export type AuthorizationError = Error & {
150
+ __typename?: 'AuthorizationError';
151
+ message: Scalars['String']['output'];
152
+ };
153
+
154
+ export type BodyStylesUpdate = {
155
+ /** A JSON object. */
156
+ value: Scalars['String']['input'];
157
+ };
158
+
159
+ export type BooleanUpdate = {
160
+ value: Scalars['Boolean']['input'];
161
+ };
162
+
163
+ export type BuilderComponent = BuiltInComponent | Component | RemoteComponent;
164
+
165
+ export type BuilderComponentsList = ListResult & {
166
+ __typename?: 'BuilderComponentsList';
167
+ builderComponents: Array<BuilderComponent>;
168
+ limit: Scalars['Int']['output'];
169
+ totalCount: Scalars['Int']['output'];
170
+ };
171
+
172
+ export type BuiltInComponent = {
173
+ __typename?: 'BuiltInComponent';
174
+ id: Scalars['String']['output'];
175
+ name: Scalars['String']['output'];
176
+ };
177
+
178
+ export type Component = {
179
+ __typename?: 'Component';
180
+ archived: Scalars['Boolean']['output'];
181
+ components: Scalars['String']['output'];
182
+ createdAt: Scalars['Date']['output'];
183
+ id: Scalars['String']['output'];
184
+ name: Scalars['String']['output'];
185
+ previewProps?: Maybe<Scalars['String']['output']>;
186
+ propsSetupComponents?: Maybe<Scalars['String']['output']>;
187
+ };
188
+
189
+ export type ComponentsList = ListResult & {
190
+ __typename?: 'ComponentsList';
191
+ components: Array<Component>;
192
+ limit: Scalars['Int']['output'];
193
+ totalCount: Scalars['Int']['output'];
194
+ };
195
+
196
+ export type ComponentsUpdate = {
197
+ value: Scalars['String']['input'];
198
+ };
199
+
200
+ export const ConfirmationAction = {
201
+ /** Display only a message. */
202
+ Message: 'Message',
203
+ /** Display a message and keep the form as is. */
204
+ MessageKeepForm: 'MessageKeepForm',
205
+ /** Redirect to a URL. */
206
+ Redirect: 'Redirect',
207
+ } as const;
208
+
209
+ export type ConfirmationAction = (typeof ConfirmationAction)[keyof typeof ConfirmationAction];
210
+ export type Course = {
211
+ __typename?: 'Course';
212
+ archived: Scalars['Boolean']['output'];
213
+ courseAndLessonLocationVersions: CourseAndLessonLocationVersionsList;
214
+ emptyNotesMessage?: Maybe<Scalars['String']['output']>;
215
+ enableNotes: Scalars['Boolean']['output'];
216
+ id: Scalars['String']['output'];
217
+ lessonCompletionMode: LessonCompletionMode;
218
+ lessons: LessonsList;
219
+ maxDepth: Scalars['Int']['output'];
220
+ title: Scalars['String']['output'];
221
+ versions: CourseVersionsList;
222
+ };
223
+
224
+ export type CourseCourseAndLessonLocationVersionsArgs = {
225
+ limit?: InputMaybe<Scalars['Int']['input']>;
226
+ page?: InputMaybe<Scalars['Int']['input']>;
227
+ };
228
+
229
+ export type CourseLessonsArgs = {
230
+ deep?: InputMaybe<Scalars['Boolean']['input']>;
231
+ status?: InputMaybe<Array<PublishStatus>>;
232
+ };
233
+
234
+ export type CourseVersionsArgs = {
235
+ limit?: InputMaybe<Scalars['Int']['input']>;
236
+ page?: InputMaybe<Scalars['Int']['input']>;
237
+ };
238
+
239
+ export type CourseAndLessonLocationVersionsList = ListResult & {
240
+ __typename?: 'CourseAndLessonLocationVersionsList';
241
+ limit: Scalars['Int']['output'];
242
+ totalCount: Scalars['Int']['output'];
243
+ versions: Array<CourseVersionOrLessonVersion>;
244
+ };
245
+
246
+ export type CourseVersion = {
247
+ __typename?: 'CourseVersion';
248
+ archived?: Maybe<Scalars['Boolean']['output']>;
249
+ byUser: UserProfile;
250
+ changes: Array<CourseVersionChange>;
251
+ createdAt: Scalars['Date']['output'];
252
+ emptyNotesMessage?: Maybe<Scalars['String']['output']>;
253
+ enableNotes?: Maybe<Scalars['Boolean']['output']>;
254
+ id: Scalars['String']['output'];
255
+ lessonCompletionMode?: Maybe<LessonCompletionMode>;
256
+ maxDepth?: Maybe<Scalars['Int']['output']>;
257
+ title?: Maybe<Scalars['String']['output']>;
258
+ };
259
+
260
+ export const CourseVersionChange = {
261
+ Archived: 'Archived',
262
+ EmptyNotesMessage: 'EmptyNotesMessage',
263
+ EnableNotes: 'EnableNotes',
264
+ LessonCompletionMode: 'LessonCompletionMode',
265
+ MaxDepth: 'MaxDepth',
266
+ Title: 'Title',
267
+ } as const;
268
+
269
+ export type CourseVersionChange = (typeof CourseVersionChange)[keyof typeof CourseVersionChange];
270
+ export type CourseVersionOrLessonVersion = CourseVersion | LessonVersion;
271
+
272
+ export type CourseVersionsList = ListResult & {
273
+ __typename?: 'CourseVersionsList';
274
+ courseVersions: Array<CourseVersion>;
275
+ limit: Scalars['Int']['output'];
276
+ totalCount: Scalars['Int']['output'];
277
+ };
278
+
279
+ export type CoursesList = ListResult & {
280
+ __typename?: 'CoursesList';
281
+ courses: Array<Course>;
282
+ limit: Scalars['Int']['output'];
283
+ totalCount: Scalars['Int']['output'];
284
+ };
285
+
286
+ export type CreateAdminUserInput = {
287
+ email: Scalars['String']['input'];
288
+ firstName: Scalars['String']['input'];
289
+ lastName: Scalars['String']['input'];
290
+ permissionNames?: InputMaybe<Array<PermissionName>>;
291
+ platformId: Scalars['String']['input'];
292
+ };
293
+
294
+ export type CreateAdminUserResult = CreateAdminUserSuccessResult | GenericUserError;
295
+
296
+ export type CreateAdminUserSuccessResult = {
297
+ __typename?: 'CreateAdminUserSuccessResult';
298
+ platformAdminUser: PlatformAdminUser;
299
+ };
300
+
301
+ export type CreateApiTokenInput = {
302
+ name: Scalars['String']['input'];
303
+ };
304
+
305
+ export type CreateApiTokenResult = CreateApiTokenSuccessResult | GenericUserError;
306
+
307
+ export type CreateApiTokenSuccessResult = {
308
+ __typename?: 'CreateApiTokenSuccessResult';
309
+ apiToken: ApiToken;
310
+ /** A JWT. */
311
+ token: Scalars['String']['output'];
312
+ };
313
+
314
+ export type CreateComponentInput = {
315
+ components?: InputMaybe<Scalars['String']['input']>;
316
+ name: Scalars['String']['input'];
317
+ platformId: Scalars['String']['input'];
318
+ };
319
+
320
+ export type CreateComponentResult = CreateComponentSuccessResult | GenericUserError;
321
+
322
+ export type CreateComponentSuccessResult = {
323
+ __typename?: 'CreateComponentSuccessResult';
324
+ component: Component;
325
+ };
326
+
327
+ export type CreateCourseInput = {
328
+ platformId: Scalars['String']['input'];
329
+ title: Scalars['String']['input'];
330
+ };
331
+
332
+ export type CreateCourseResult = CreateCourseSuccessResult | GenericUserError;
333
+
334
+ export type CreateCourseSuccessResult = {
335
+ __typename?: 'CreateCourseSuccessResult';
336
+ course: Course;
337
+ };
338
+
339
+ export type CreateExtensionInput = {
340
+ /** A JSON object. */
341
+ config?: InputMaybe<Scalars['String']['input']>;
342
+ enabled: Scalars['Boolean']['input'];
343
+ name: Scalars['String']['input'];
344
+ platformId: Scalars['String']['input'];
345
+ };
346
+
347
+ export type CreateExtensionResult =
348
+ | CreateExtensionSuccessResult
349
+ | GenericInternalError
350
+ | GenericUserError;
351
+
352
+ export type CreateExtensionSuccessResult = {
353
+ __typename?: 'CreateExtensionSuccessResult';
354
+ extension: Extension;
355
+ };
356
+
357
+ export type CreateExtensionVersionInput = {
358
+ /** Automatically deploy the version as the extension’s current version after it is built. */
359
+ autoDeploy?: Scalars['Boolean']['input'];
360
+ /** A JSON object. */
361
+ config?: InputMaybe<Scalars['String']['input']>;
362
+ enableDb: Scalars['Boolean']['input'];
363
+ enableServer: Scalars['Boolean']['input'];
364
+ extensionId: Scalars['String']['input'];
365
+ /** The extension name is required only so that we can validate that a user is not mistakenly trying to change the name. */
366
+ extensionName: Scalars['String']['input'];
367
+ versionName: Scalars['String']['input'];
368
+ };
369
+
370
+ export type CreateExtensionVersionResult =
371
+ | AuthorizationError
372
+ | CreateExtensionVersionSuccessResult
373
+ | GenericInternalError
374
+ | GenericUserError;
375
+
376
+ export type CreateExtensionVersionSuccessResult = {
377
+ __typename?: 'CreateExtensionVersionSuccessResult';
378
+ extension: Extension;
379
+ extensionVersion: ExtensionVersion;
380
+ /** The URL to PUT an archive file to with the extension’s source code. */
381
+ signedUrl: Scalars['String']['output'];
382
+ };
383
+
384
+ export type CreateLayoutInput = {
385
+ components: Scalars['String']['input'];
386
+ name: Scalars['String']['input'];
387
+ pathPrefix: Scalars['String']['input'];
388
+ siteId: Scalars['String']['input'];
389
+ };
390
+
391
+ export type CreateLayoutResult = CreateLayoutSuccessResult | GenericUserError;
392
+
393
+ export type CreateLayoutSuccessResult = {
394
+ __typename?: 'CreateLayoutSuccessResult';
395
+ layout: Layout;
396
+ };
397
+
398
+ export type CreateLayoutTemplateInput = {
399
+ components: Scalars['String']['input'];
400
+ name: Scalars['String']['input'];
401
+ pathPrefix: Scalars['String']['input'];
402
+ platformId: Scalars['String']['input'];
403
+ };
404
+
405
+ export type CreateLayoutTemplateResult =
406
+ | AuthorizationError
407
+ | CreateLayoutTemplateSuccessResult
408
+ | GenericUserError;
409
+
410
+ export type CreateLayoutTemplateSuccessResult = {
411
+ __typename?: 'CreateLayoutTemplateSuccessResult';
412
+ layoutTemplate: LayoutTemplate;
413
+ };
414
+
415
+ export type CreateLessonInput = {
416
+ courseId: Scalars['String']['input'];
417
+ parentLessonId?: InputMaybe<Scalars['String']['input']>;
418
+ position: Scalars['String']['input'];
419
+ title: Scalars['String']['input'];
420
+ };
421
+
422
+ export type CreateLessonResult = CreateLessonSuccessResult | GenericUserError;
423
+
424
+ export type CreateLessonSuccessResult = {
425
+ __typename?: 'CreateLessonSuccessResult';
426
+ lesson: Lesson;
427
+ };
428
+
429
+ export type CreateLessonUserInput = {
430
+ lessonId: Scalars['String']['input'];
431
+ userId: Scalars['String']['input'];
432
+ };
433
+
434
+ export type CreateLessonUserResult = CreateLessonUserSuccessResult | GenericUserError;
435
+
436
+ export type CreateLessonUserSuccessResult = {
437
+ __typename?: 'CreateLessonUserSuccessResult';
438
+ lesson: Lesson;
439
+ lessonUser: LessonUser;
440
+ };
441
+
442
+ export type CreateProductResult = CreateProductSuccessResult | GenericUserError;
443
+
444
+ export type CreateProductSuccessResult = {
445
+ __typename?: 'CreateProductSuccessResult';
446
+ product: SubscriptionPlan;
447
+ };
448
+
449
+ export type CreateSequenceInput = {
450
+ loopStages: Scalars['Boolean']['input'];
451
+ platformId: Scalars['String']['input'];
452
+ title: Scalars['String']['input'];
453
+ };
454
+
455
+ export type CreateSequenceResult = CreateSequenceSuccessResult | GenericUserError;
456
+
457
+ export type CreateSequenceSuccessResult = {
458
+ __typename?: 'CreateSequenceSuccessResult';
459
+ sequence: Sequence;
460
+ };
461
+
462
+ export type CreateSiteInput = {
463
+ customFields?: InputMaybe<Array<KeyValueInput>>;
464
+ /** If domain is not provided, a domain will have to be generated by an extension. */
465
+ domain?: InputMaybe<Scalars['String']['input']>;
466
+ googleTagManagerId?: InputMaybe<Scalars['String']['input']>;
467
+ logoIconUrl?: InputMaybe<Scalars['String']['input']>;
468
+ logoUrl?: InputMaybe<Scalars['String']['input']>;
469
+ metaPixelId?: InputMaybe<Scalars['String']['input']>;
470
+ mixpanelToken?: InputMaybe<Scalars['String']['input']>;
471
+ name: Scalars['String']['input'];
472
+ platformId: Scalars['String']['input'];
473
+ siteTemplateId?: InputMaybe<Scalars['String']['input']>;
474
+ stripePublishableKey?: InputMaybe<Scalars['String']['input']>;
475
+ zendeskChatKey?: InputMaybe<Scalars['String']['input']>;
476
+ };
477
+
478
+ export type CreateSiteResult =
479
+ | AuthorizationError
480
+ | CreateSiteSuccessResult
481
+ | GenericInternalError
482
+ | GenericUserError;
483
+
484
+ export type CreateSiteSuccessResult = {
485
+ __typename?: 'CreateSiteSuccessResult';
486
+ site: Site;
487
+ };
488
+
489
+ export type CreateSiteTemplateInput = {
490
+ name: Scalars['String']['input'];
491
+ platformId: Scalars['String']['input'];
492
+ };
493
+
494
+ export type CreateSiteTemplateLayoutTemplatesResult =
495
+ | CreateSiteTemplateLayoutTemplatesSuccessResult
496
+ | GenericUserError;
497
+
498
+ export type CreateSiteTemplateLayoutTemplatesSuccessResult = {
499
+ __typename?: 'CreateSiteTemplateLayoutTemplatesSuccessResult';
500
+ siteTemplate: SiteTemplate;
501
+ };
502
+
503
+ export type CreateSiteTemplatePageTemplatesResult =
504
+ | CreateSiteTemplatePageTemplatesSuccessResult
505
+ | GenericUserError;
506
+
507
+ export type CreateSiteTemplatePageTemplatesSuccessResult = {
508
+ __typename?: 'CreateSiteTemplatePageTemplatesSuccessResult';
509
+ siteTemplate: SiteTemplate;
510
+ };
511
+
512
+ export type CreateSiteTemplateResult = CreateSiteTemplateSuccessResult | GenericUserError;
513
+
514
+ export type CreateSiteTemplateSuccessResult = {
515
+ __typename?: 'CreateSiteTemplateSuccessResult';
516
+ siteTemplate: SiteTemplate;
517
+ };
518
+
519
+ export type CreateUserInput = {
520
+ email: Scalars['String']['input'];
521
+ expiresAt?: InputMaybe<Scalars['Date']['input']>;
522
+ firstName: Scalars['String']['input'];
523
+ lastName: Scalars['String']['input'];
524
+ /**
525
+ * Provide orgId when the new user is being added to an existing org. Otherwise a new org is automatically created and the user is set as the primary.
526
+ * Must not be provided (or can be the requesting user’s own org ID) when adding a peer org member.
527
+ */
528
+ orgId?: InputMaybe<Scalars['String']['input']>;
529
+ platformId: Scalars['String']['input'];
530
+ role?: InputMaybe<Scalars['String']['input']>;
531
+ status?: InputMaybe<UserStatus>;
532
+ };
533
+
534
+ export type CreateUserResult =
535
+ | AuthorizationError
536
+ | CreateUserSuccessResult
537
+ | GenericInternalError
538
+ | GenericUserError;
539
+
540
+ export type CreateUserSuccessResult = {
541
+ __typename?: 'CreateUserSuccessResult';
542
+ user: User;
543
+ };
544
+
545
+ export type CustomField = {
546
+ __typename?: 'CustomField';
547
+ /** A JSON value. */
548
+ defaultValue?: Maybe<Scalars['String']['output']>;
549
+ deployStage: CustomFieldDeployStage;
550
+ description?: Maybe<Scalars['String']['output']>;
551
+ id: Scalars['String']['output'];
552
+ indexed: Scalars['Boolean']['output'];
553
+ name: Scalars['String']['output'];
554
+ referencesObject?: Maybe<CustomTableObject>;
555
+ required: Scalars['Boolean']['output'];
556
+ requiredValid: Scalars['Boolean']['output'];
557
+ type: CustomFieldType;
558
+ unique: Scalars['Boolean']['output'];
559
+ };
560
+
561
+ export const CustomFieldDeployStage = {
562
+ Create: 'Create',
563
+ Live: 'Live',
564
+ Remove: 'Remove',
565
+ } as const;
566
+
567
+ export type CustomFieldDeployStage =
568
+ (typeof CustomFieldDeployStage)[keyof typeof CustomFieldDeployStage];
569
+ export type CustomFieldInput = {
570
+ defaultValue?: InputMaybe<Scalars['String']['input']>;
571
+ description?: InputMaybe<Scalars['String']['input']>;
572
+ indexed: Scalars['Boolean']['input'];
573
+ name: Scalars['String']['input'];
574
+ referencesObject?: InputMaybe<CustomTableObject>;
575
+ required: Scalars['Boolean']['input'];
576
+ type: CustomFieldType;
577
+ unique: Scalars['Boolean']['input'];
578
+ };
579
+
580
+ export const CustomFieldType = {
581
+ Boolean: 'Boolean',
582
+ CustomFieldId: 'CustomFieldId',
583
+ /** A plain date. */
584
+ Date: 'Date',
585
+ /** A plain date and a plain time combined. */
586
+ DateTime: 'DateTime',
587
+ Float: 'Float',
588
+ FormId: 'FormId',
589
+ FormTemplateId: 'FormTemplateId',
590
+ Instant: 'Instant',
591
+ Int: 'Int',
592
+ MixerComponents: 'MixerComponents',
593
+ OrgId: 'OrgId',
594
+ PageId: 'PageId',
595
+ PageTemplateId: 'PageTemplateId',
596
+ ProductId: 'ProductId',
597
+ RichText: 'RichText',
598
+ SiteId: 'SiteId',
599
+ String: 'String',
600
+ SubscriptionId: 'SubscriptionId',
601
+ UserId: 'UserId',
602
+ } as const;
603
+
604
+ export type CustomFieldType = (typeof CustomFieldType)[keyof typeof CustomFieldType];
605
+ export type CustomFieldValue = {
606
+ __typename?: 'CustomFieldValue';
607
+ customField: CustomField;
608
+ id: Scalars['String']['output'];
609
+ /** A JSON value, possibly null. */
610
+ value: Scalars['String']['output'];
611
+ };
612
+
613
+ export type CustomFieldValuesList = ListResult & {
614
+ __typename?: 'CustomFieldValuesList';
615
+ customFieldValues: Array<CustomFieldValue>;
616
+ limit: Scalars['Int']['output'];
617
+ totalCount: Scalars['Int']['output'];
618
+ };
619
+
620
+ export type CustomFieldVersionsList = ListResult & {
621
+ __typename?: 'CustomFieldVersionsList';
622
+ customFields: Array<CustomField>;
623
+ limit: Scalars['Int']['output'];
624
+ totalCount: Scalars['Int']['output'];
625
+ };
626
+
627
+ export type CustomFieldsList = ListResult & {
628
+ __typename?: 'CustomFieldsList';
629
+ customFields: Array<CustomField>;
630
+ limit: Scalars['Int']['output'];
631
+ totalCount: Scalars['Int']['output'];
632
+ };
633
+
634
+ export type CustomTable = {
635
+ __typename?: 'CustomTable';
636
+ editorFormVersions: CustomTableEditorFormVersionsList;
637
+ fields: CustomFieldsList;
638
+ id: Scalars['String']['output'];
639
+ object?: Maybe<CustomTableObject>;
640
+ /** The table's versions, sorted descending by createdAt. */
641
+ versions: CustomTableVersionsList;
642
+ };
643
+
644
+ export type CustomTableFieldsArgs = {
645
+ limit?: InputMaybe<Scalars['Int']['input']>;
646
+ page?: InputMaybe<Scalars['Int']['input']>;
647
+ };
648
+
649
+ export type CustomTableVersionsArgs = {
650
+ limit?: InputMaybe<Scalars['Int']['input']>;
651
+ page?: InputMaybe<Scalars['Int']['input']>;
652
+ };
653
+
654
+ export type CustomTableEditorFormVersion = {
655
+ __typename?: 'CustomTableEditorFormVersion';
656
+ components: Scalars['String']['output'];
657
+ createdAt: Scalars['Date']['output'];
658
+ id: Scalars['String']['output'];
659
+ };
660
+
661
+ export type CustomTableEditorFormVersionsList = ListResult & {
662
+ __typename?: 'CustomTableEditorFormVersionsList';
663
+ customTableEditorFormVersions: Array<CustomTableEditorFormVersion>;
664
+ limit: Scalars['Int']['output'];
665
+ totalCount: Scalars['Int']['output'];
666
+ };
667
+
668
+ export const CustomTableObject = {
669
+ Form: 'Form',
670
+ FormTemplate: 'FormTemplate',
671
+ Org: 'Org',
672
+ Page: 'Page',
673
+ PageTemplate: 'PageTemplate',
674
+ Product: 'Product',
675
+ Site: 'Site',
676
+ Subscription: 'Subscription',
677
+ User: 'User',
678
+ } as const;
679
+
680
+ export type CustomTableObject = (typeof CustomTableObject)[keyof typeof CustomTableObject];
681
+ export type CustomTableVersion = {
682
+ __typename?: 'CustomTableVersion';
683
+ byUser: UserProfile;
684
+ createdAt: Scalars['Date']['output'];
685
+ deployCanceledAt?: Maybe<Scalars['Date']['output']>;
686
+ deployPublishedAt?: Maybe<Scalars['Date']['output']>;
687
+ deployStage: CustomTableVersionDeployStage;
688
+ fields: CustomTableVersionFieldsList;
689
+ id: Scalars['String']['output'];
690
+ };
691
+
692
+ export type CustomTableVersionFieldsArgs = {
693
+ limit?: InputMaybe<Scalars['Int']['input']>;
694
+ page?: InputMaybe<Scalars['Int']['input']>;
695
+ };
696
+
697
+ export const CustomTableVersionDeployStage = {
698
+ Backfill: 'Backfill',
699
+ Create: 'Create',
700
+ Publish: 'Publish',
701
+ Validate: 'Validate',
702
+ } as const;
703
+
704
+ export type CustomTableVersionDeployStage =
705
+ (typeof CustomTableVersionDeployStage)[keyof typeof CustomTableVersionDeployStage];
706
+ export type CustomTableVersionField = {
707
+ __typename?: 'CustomTableVersionField';
708
+ /** A JSON value. */
709
+ defaultValue?: Maybe<Scalars['String']['output']>;
710
+ description?: Maybe<Scalars['String']['output']>;
711
+ id: Scalars['String']['output'];
712
+ indexed: Scalars['Boolean']['output'];
713
+ name: Scalars['String']['output'];
714
+ referencesObject?: Maybe<CustomTableObject>;
715
+ required: Scalars['Boolean']['output'];
716
+ type: CustomFieldType;
717
+ unique: Scalars['Boolean']['output'];
718
+ };
719
+
720
+ export type CustomTableVersionFieldsList = ListResult & {
721
+ __typename?: 'CustomTableVersionFieldsList';
722
+ customTableVersionFields: Array<CustomTableVersionField>;
723
+ limit: Scalars['Int']['output'];
724
+ totalCount: Scalars['Int']['output'];
725
+ };
726
+
727
+ export type CustomTableVersionsList = ListResult & {
728
+ __typename?: 'CustomTableVersionsList';
729
+ customTableVersions: Array<CustomTableVersion>;
730
+ limit: Scalars['Int']['output'];
731
+ totalCount: Scalars['Int']['output'];
732
+ };
733
+
734
+ export type CustomTablesList = ListResult & {
735
+ __typename?: 'CustomTablesList';
736
+ customTables: Array<CustomTable>;
737
+ limit: Scalars['Int']['output'];
738
+ totalCount: Scalars['Int']['output'];
739
+ };
740
+
741
+ export type DeleteExtensionVersionResult =
742
+ | AuthorizationError
743
+ | DeleteExtensionVersionSuccessResult
744
+ | GenericUserError;
745
+
746
+ export type DeleteExtensionVersionSuccessResult = {
747
+ __typename?: 'DeleteExtensionVersionSuccessResult';
748
+ extension: Extension;
749
+ };
750
+
751
+ export type DeleteSiteTemplateLayoutTemplatesResult =
752
+ | DeleteSiteTemplateLayoutTemplatesSuccessResult
753
+ | GenericUserError;
754
+
755
+ export type DeleteSiteTemplateLayoutTemplatesSuccessResult = {
756
+ __typename?: 'DeleteSiteTemplateLayoutTemplatesSuccessResult';
757
+ siteTemplate: SiteTemplate;
758
+ };
759
+
760
+ export type DeleteSiteTemplatePageTemplatesResult =
761
+ | DeleteSiteTemplatePageTemplatesSuccessResult
762
+ | GenericUserError;
763
+
764
+ export type DeleteSiteTemplatePageTemplatesSuccessResult = {
765
+ __typename?: 'DeleteSiteTemplatePageTemplatesSuccessResult';
766
+ siteTemplate: SiteTemplate;
767
+ };
768
+
769
+ export type Delta = {
770
+ __typename?: 'Delta';
771
+ /** A JSON object */
772
+ delta: Scalars['String']['output'];
773
+ };
774
+
775
+ export type Document = {
776
+ __typename?: 'Document';
777
+ currentVersion?: Maybe<File>;
778
+ downloadPrompt?: Maybe<DocumentDownloadPrompt>;
779
+ id: Scalars['String']['output'];
780
+ name: Scalars['String']['output'];
781
+ productItem?: Maybe<Scalars['String']['output']>;
782
+ roles: Array<Scalars['String']['output']>;
783
+ stamp: Scalars['Boolean']['output'];
784
+ status: PublishStatus;
785
+ /** All of the document's versions. Accessible only to users with PermissionName.View on the document's platform. */
786
+ versions: Array<File>;
787
+ };
788
+
789
+ export type DocumentDownloadPrompt = {
790
+ __typename?: 'DocumentDownloadPrompt';
791
+ acceptLabel: Scalars['String']['output'];
792
+ default: Scalars['Boolean']['output'];
793
+ id: Scalars['String']['output'];
794
+ name: Scalars['String']['output'];
795
+ prompt: Delta;
796
+ promptHeader: Scalars['String']['output'];
797
+ };
798
+
799
+ export type DocumentsList = ListResult & {
800
+ __typename?: 'DocumentsList';
801
+ documents: Array<Document>;
802
+ limit: Scalars['Int']['output'];
803
+ totalCount: Scalars['Int']['output'];
804
+ };
805
+
806
+ export type DuplicateComponentInput = {
807
+ id: Scalars['String']['input'];
808
+ name: Scalars['String']['input'];
809
+ };
810
+
811
+ export type DuplicateComponentResult =
812
+ | DuplicateComponentSuccessResult
813
+ | GenericInternalError
814
+ | GenericUserError;
815
+
816
+ export type DuplicateComponentSuccessResult = {
817
+ __typename?: 'DuplicateComponentSuccessResult';
818
+ component: Component;
819
+ };
820
+
821
+ export type DuplicateCourseInput = {
822
+ id: Scalars['String']['input'];
823
+ title: Scalars['String']['input'];
824
+ };
825
+
826
+ export type DuplicateCourseResult = DuplicateCourseSuccessResult | GenericUserError;
827
+
828
+ export type DuplicateCourseSuccessResult = {
829
+ __typename?: 'DuplicateCourseSuccessResult';
830
+ course: Course;
831
+ };
832
+
833
+ export type DuplicateLessonInput = {
834
+ id: Scalars['String']['input'];
835
+ parentLessonId?: InputMaybe<Scalars['String']['input']>;
836
+ position: Scalars['String']['input'];
837
+ title: Scalars['String']['input'];
838
+ };
839
+
840
+ export type DuplicateLessonResult = DuplicateLessonSuccessResult | GenericUserError;
841
+
842
+ export type DuplicateLessonSuccessResult = {
843
+ __typename?: 'DuplicateLessonSuccessResult';
844
+ lesson: Lesson;
845
+ };
846
+
847
+ export type DuplicateSequenceResult = DuplicateSequenceSuccessResult | GenericUserError;
848
+
849
+ export type DuplicateSequenceSuccessResult = {
850
+ __typename?: 'DuplicateSequenceSuccessResult';
851
+ sequence: Sequence;
852
+ };
853
+
854
+ export type EditComponentInput = {
855
+ components?: InputMaybe<OptionalComponentsUpdate>;
856
+ id: Scalars['String']['input'];
857
+ name?: InputMaybe<OptionalStringUpdate>;
858
+ previewProps?: InputMaybe<OptionalExpressionDataUpdate>;
859
+ propsSetupComponents?: InputMaybe<OptionalComponentsUpdate>;
860
+ };
861
+
862
+ export type EditComponentResult = EditComponentSuccessResult | GenericUserError;
863
+
864
+ export type EditComponentSuccessResult = {
865
+ __typename?: 'EditComponentSuccessResult';
866
+ component: Component;
867
+ };
868
+
869
+ export type EditCourseInput = {
870
+ archived?: InputMaybe<BooleanUpdate>;
871
+ emptyNotesMessage?: InputMaybe<OptionalStringUpdate>;
872
+ enableNotes?: InputMaybe<BooleanUpdate>;
873
+ id: Scalars['String']['input'];
874
+ lessonCompletionMode?: InputMaybe<LessonCompletionModeUpdate>;
875
+ maxDepth?: InputMaybe<IntUpdate>;
876
+ title?: InputMaybe<StringUpdate>;
877
+ };
878
+
879
+ export type EditCourseResult = EditCourseSuccessResult | GenericUserError;
880
+
881
+ export type EditCourseSuccessResult = {
882
+ __typename?: 'EditCourseSuccessResult';
883
+ course: Course;
884
+ };
885
+
886
+ export type EditCustomTableInput = {
887
+ /**
888
+ * When there is already a version of the table, this field must reference the latest version of
889
+ * the table to ensure that the client is aware of the latest schema. This way the client will not
890
+ * accidentally overwrite changes made asynchronously.
891
+ */
892
+ consistencyKeyCurrentTableVersionId?: InputMaybe<Scalars['String']['input']>;
893
+ fields: Array<CustomFieldInput>;
894
+ object: CustomTableObject;
895
+ platformId: Scalars['String']['input'];
896
+ };
897
+
898
+ export type EditCustomTableResult = EditCustomTableSuccessResult | GenericUserError;
899
+
900
+ export type EditCustomTableSuccessResult = {
901
+ __typename?: 'EditCustomTableSuccessResult';
902
+ customTable: CustomTable;
903
+ };
904
+
905
+ export type EditExtensionInput = {
906
+ /** A JSON object. */
907
+ config?: InputMaybe<StringUpdate>;
908
+ currentVersionId?: InputMaybe<StringUpdate>;
909
+ enabled?: InputMaybe<BooleanUpdate>;
910
+ id: Scalars['String']['input'];
911
+ };
912
+
913
+ export type EditExtensionResult =
914
+ | AuthorizationError
915
+ | EditExtensionSuccessResult
916
+ | GenericUserError;
917
+
918
+ export type EditExtensionSuccessResult = {
919
+ __typename?: 'EditExtensionSuccessResult';
920
+ extension: Extension;
921
+ };
922
+
923
+ export type EditFormStepPositionResult =
924
+ | AuthorizationError
925
+ | EditFormStepPositionSuccessResult
926
+ | GenericInternalError
927
+ | GenericUserError;
928
+
929
+ export type EditFormStepPositionSuccessResult = {
930
+ __typename?: 'EditFormStepPositionSuccessResult';
931
+ formStep: FormStep;
932
+ };
933
+
934
+ export type EditFormTemplateEmailTemplateInput = {
935
+ emailBodyTemplate?: InputMaybe<OptionalStringUpdate>;
936
+ formTemplateId: Scalars['String']['input'];
937
+ useEmailBodyTemplate: Scalars['Boolean']['input'];
938
+ };
939
+
940
+ export type EditFormTemplateEmailTemplateResult =
941
+ | EditFormTemplateEmailTemplateSuccessResult
942
+ | GenericUserError;
943
+
944
+ export type EditFormTemplateEmailTemplateSuccessResult = {
945
+ __typename?: 'EditFormTemplateEmailTemplateSuccessResult';
946
+ formTemplate: FormTemplate;
947
+ };
948
+
949
+ export type EditFormTemplateFormattedDataTemplateInput = {
950
+ formTemplateId: Scalars['String']['input'];
951
+ formattedDataTemplate?: InputMaybe<OptionalStringUpdate>;
952
+ useFormattedDataTemplate: Scalars['Boolean']['input'];
953
+ };
954
+
955
+ export type EditFormTemplateFormattedDataTemplateResult =
956
+ | EditFormTemplateFormattedDataTemplateSuccessResult
957
+ | GenericUserError;
958
+
959
+ export type EditFormTemplateFormattedDataTemplateSuccessResult = {
960
+ __typename?: 'EditFormTemplateFormattedDataTemplateSuccessResult';
961
+ formTemplate: FormTemplate;
962
+ };
963
+
964
+ export type EditLayoutInput = {
965
+ components?: InputMaybe<ComponentsUpdate>;
966
+ id: Scalars['String']['input'];
967
+ name?: InputMaybe<StringUpdate>;
968
+ pathPrefix?: InputMaybe<StringUpdate>;
969
+ status?: InputMaybe<PublishStatusUpdate>;
970
+ };
971
+
972
+ export type EditLayoutResult = EditLayoutSuccessResult | GenericUserError;
973
+
974
+ export type EditLayoutSuccessResult = {
975
+ __typename?: 'EditLayoutSuccessResult';
976
+ layout: Layout;
977
+ };
978
+
979
+ export type EditLayoutTemplateInput = {
980
+ components?: InputMaybe<ComponentsUpdate>;
981
+ id: Scalars['String']['input'];
982
+ name?: InputMaybe<StringUpdate>;
983
+ pathPrefix?: InputMaybe<StringUpdate>;
984
+ status?: InputMaybe<PublishStatusUpdate>;
985
+ };
986
+
987
+ export type EditLayoutTemplateResult =
988
+ | AuthorizationError
989
+ | EditLayoutTemplateSuccessResult
990
+ | GenericUserError;
991
+
992
+ export type EditLayoutTemplateSuccessResult = {
993
+ __typename?: 'EditLayoutTemplateSuccessResult';
994
+ layoutTemplate: LayoutTemplate;
995
+ };
996
+
997
+ export type EditLessonInput = {
998
+ completionSpec?: InputMaybe<OptionalStringUpdate>;
999
+ components?: InputMaybe<ComponentsUpdate>;
1000
+ enableContent?: InputMaybe<BooleanUpdate>;
1001
+ id: Scalars['String']['input'];
1002
+ parentLessonId?: InputMaybe<OptionalStringUpdate>;
1003
+ position?: InputMaybe<StringUpdate>;
1004
+ status?: InputMaybe<PublishStatusUpdate>;
1005
+ title?: InputMaybe<StringUpdate>;
1006
+ };
1007
+
1008
+ export type EditLessonResult = EditLessonSuccessResult | GenericUserError;
1009
+
1010
+ export type EditLessonSuccessResult = {
1011
+ __typename?: 'EditLessonSuccessResult';
1012
+ lesson: Lesson;
1013
+ };
1014
+
1015
+ export type EditLessonUserInput = {
1016
+ completed?: InputMaybe<BooleanUpdate>;
1017
+ id: Scalars['String']['input'];
1018
+ notes?: InputMaybe<StringUpdate>;
1019
+ state?: InputMaybe<StringUpdate>;
1020
+ };
1021
+
1022
+ export type EditLessonUserResult = EditLessonUserSuccessResult | GenericUserError;
1023
+
1024
+ export type EditLessonUserSuccessResult = {
1025
+ __typename?: 'EditLessonUserSuccessResult';
1026
+ /** LessonUsers that were automatically edited (i.e., the value of completedAt) as a result of this edit. */
1027
+ autoEditedLessonUsers: Array<LessonUser>;
1028
+ /** Lessons whose lessonUser was automatically edited (i.e., the value of completedAt) as a result of this edit. */
1029
+ autoEditedLessons: Array<Lesson>;
1030
+ lessonUser: LessonUser;
1031
+ };
1032
+
1033
+ export type EditOrgPrimaryUserInput = {
1034
+ notes?: InputMaybe<Scalars['String']['input']>;
1035
+ /** The ID of the user to set as the primary in their org. */
1036
+ userId: Scalars['String']['input'];
1037
+ };
1038
+
1039
+ export type EditOrgPrimaryUserResult = EditOrgPrimaryUserSuccessResult | GenericUserError;
1040
+
1041
+ export type EditOrgPrimaryUserSuccessResult = {
1042
+ __typename?: 'EditOrgPrimaryUserSuccessResult';
1043
+ org: Organization;
1044
+ previousPrimaryUser?: Maybe<User>;
1045
+ };
1046
+
1047
+ export type EditPageInput = {
1048
+ bodyStyles?: InputMaybe<BodyStylesUpdate>;
1049
+ components?: InputMaybe<ComponentsUpdate>;
1050
+ id: Scalars['String']['input'];
1051
+ layoutId?: InputMaybe<OptionalStringUpdate>;
1052
+ metaDescription?: InputMaybe<OptionalStringUpdate>;
1053
+ metaImageUrl?: InputMaybe<OptionalStringUpdate>;
1054
+ metaRobots?: InputMaybe<StringListUpdate>;
1055
+ metaTitle?: InputMaybe<OptionalStringUpdate>;
1056
+ pageTemplateId?: InputMaybe<OptionalStringUpdate>;
1057
+ path?: InputMaybe<StringUpdate>;
1058
+ productItem?: InputMaybe<OptionalStringUpdate>;
1059
+ public?: InputMaybe<BooleanUpdate>;
1060
+ roles?: InputMaybe<StringListUpdate>;
1061
+ status?: InputMaybe<PublishStatusUpdate>;
1062
+ title?: InputMaybe<StringUpdate>;
1063
+ };
1064
+
1065
+ export type EditPageResult = AuthorizationError | EditPageSuccessResult | GenericUserError;
1066
+
1067
+ export type EditPageSuccessResult = {
1068
+ __typename?: 'EditPageSuccessResult';
1069
+ page: Page;
1070
+ };
1071
+
1072
+ export type EditPageTemplateInput = {
1073
+ bodyStyles?: InputMaybe<StringUpdate>;
1074
+ components?: InputMaybe<OptionalComponentsUpdate>;
1075
+ description?: InputMaybe<OptionalStringUpdate>;
1076
+ id: Scalars['String']['input'];
1077
+ metaDescription?: InputMaybe<OptionalStringUpdate>;
1078
+ metaImageUrl?: InputMaybe<OptionalStringUpdate>;
1079
+ metaRobots?: InputMaybe<StringListUpdate>;
1080
+ metaTitle?: InputMaybe<OptionalStringUpdate>;
1081
+ path?: InputMaybe<StringUpdate>;
1082
+ previewImageUrl?: InputMaybe<OptionalStringUpdate>;
1083
+ previewProps?: InputMaybe<OptionalExpressionDataUpdate>;
1084
+ propsSetupComponents?: InputMaybe<OptionalComponentsUpdate>;
1085
+ status?: InputMaybe<PublishStatusUpdate>;
1086
+ title?: InputMaybe<StringUpdate>;
1087
+ };
1088
+
1089
+ export type EditPageTemplateResult =
1090
+ | AuthorizationError
1091
+ | EditPageTemplateSuccessResult
1092
+ | GenericUserError;
1093
+
1094
+ export type EditPageTemplateSuccessResult = {
1095
+ __typename?: 'EditPageTemplateSuccessResult';
1096
+ pageTemplate: PageTemplate;
1097
+ };
1098
+
1099
+ export type EditPlatformAdminUserInput = {
1100
+ active?: InputMaybe<BooleanUpdate>;
1101
+ id: Scalars['String']['input'];
1102
+ owner?: InputMaybe<BooleanUpdate>;
1103
+ permissionNames?: InputMaybe<PermissionNamesListUpdate>;
1104
+ };
1105
+
1106
+ export type EditPlatformAdminUserResult =
1107
+ | AuthorizationError
1108
+ | EditPlatformAdminUserSuccessResult
1109
+ | GenericUserError;
1110
+
1111
+ export type EditPlatformAdminUserSuccessResult = {
1112
+ __typename?: 'EditPlatformAdminUserSuccessResult';
1113
+ platformAdminUser: PlatformAdminUser;
1114
+ };
1115
+
1116
+ export type EditPlatformInput = {
1117
+ emailReplyToAddress?: InputMaybe<OptionalStringUpdate>;
1118
+ emailSendFromAddress?: InputMaybe<StringUpdate>;
1119
+ id: Scalars['String']['input'];
1120
+ sendGridApiKey?: InputMaybe<OptionalStringUpdate>;
1121
+ stripeSecretKey?: InputMaybe<OptionalStringUpdate>;
1122
+ stripeWebhookSigningSecret?: InputMaybe<OptionalStringUpdate>;
1123
+ };
1124
+
1125
+ export type EditPlatformResult = EditPlatformSuccessResult | GenericUserError;
1126
+
1127
+ export type EditPlatformSuccessResult = {
1128
+ __typename?: 'EditPlatformSuccessResult';
1129
+ platform: Platform;
1130
+ };
1131
+
1132
+ export type EditProductResult = EditProductSuccessResult | GenericUserError;
1133
+
1134
+ export type EditProductSuccessResult = {
1135
+ __typename?: 'EditProductSuccessResult';
1136
+ product: SubscriptionPlan;
1137
+ };
1138
+
1139
+ export type EditSequenceResult = EditSequenceSuccessResult | GenericUserError;
1140
+
1141
+ export type EditSequenceSuccessResult = {
1142
+ __typename?: 'EditSequenceSuccessResult';
1143
+ sequence: Sequence;
1144
+ };
1145
+
1146
+ export type EditSequenceUserInput = {
1147
+ sequenceId: Scalars['String']['input'];
1148
+ stageId: Scalars['String']['input'];
1149
+ userId: Scalars['String']['input'];
1150
+ };
1151
+
1152
+ export type EditSequenceUserResult = EditSequenceUserSuccessResult | GenericUserError;
1153
+
1154
+ export type EditSequenceUserSuccessResult = {
1155
+ __typename?: 'EditSequenceUserSuccessResult';
1156
+ sequenceUser: SequenceUser;
1157
+ };
1158
+
1159
+ export type EditSiteInput = {
1160
+ /** The custom fields to edit. An empty list has no effect. */
1161
+ customFields?: InputMaybe<Array<KeyValueInput>>;
1162
+ domain?: InputMaybe<StringUpdate>;
1163
+ googleTagManagerId?: InputMaybe<OptionalStringUpdate>;
1164
+ id: Scalars['String']['input'];
1165
+ logoIconUrl?: InputMaybe<OptionalStringUpdate>;
1166
+ logoUrl?: InputMaybe<OptionalStringUpdate>;
1167
+ metaPixelId?: InputMaybe<OptionalStringUpdate>;
1168
+ mixpanelToken?: InputMaybe<OptionalStringUpdate>;
1169
+ name?: InputMaybe<StringUpdate>;
1170
+ privacyPolicy?: InputMaybe<RichTextInput>;
1171
+ siteTemplateId?: InputMaybe<OptionalStringUpdate>;
1172
+ stripePublishableKey?: InputMaybe<OptionalStringUpdate>;
1173
+ termsOfUse?: InputMaybe<RichTextInput>;
1174
+ zendeskChatKey?: InputMaybe<OptionalStringUpdate>;
1175
+ };
1176
+
1177
+ export type EditSiteResult =
1178
+ | AuthorizationError
1179
+ | EditSiteSuccessResult
1180
+ | GenericInternalError
1181
+ | GenericUserError;
1182
+
1183
+ export type EditSiteSuccessResult = {
1184
+ __typename?: 'EditSiteSuccessResult';
1185
+ site: Site;
1186
+ };
1187
+
1188
+ export type EditUserInput = {
1189
+ /** The custom fields to edit. An empty list has no effect. */
1190
+ customFields?: InputMaybe<Array<KeyValueInput>>;
1191
+ expiresAt?: InputMaybe<OptionalDateUpdate>;
1192
+ id: Scalars['String']['input'];
1193
+ };
1194
+
1195
+ export type EditUserResult = EditUserSuccessResult | GenericUserError;
1196
+
1197
+ export type EditUserSuccessResult = {
1198
+ __typename?: 'EditUserSuccessResult';
1199
+ user: User;
1200
+ };
1201
+
1202
+ export type Error = {
1203
+ /** A user-friendly error message. */
1204
+ message: Scalars['String']['output'];
1205
+ };
1206
+
1207
+ export type Extension = {
1208
+ __typename?: 'Extension';
1209
+ /** A JSON object. This object will not have the current version's config merged in. */
1210
+ config: Scalars['String']['output'];
1211
+ currentVersion?: Maybe<ExtensionVersion>;
1212
+ enabled: Scalars['Boolean']['output'];
1213
+ id: Scalars['String']['output'];
1214
+ name: Scalars['String']['output'];
1215
+ versions: ExtensionVersionsList;
1216
+ };
1217
+
1218
+ export type ExtensionVersion = {
1219
+ __typename?: 'ExtensionVersion';
1220
+ componentsBuildStage: ExtensionVersionBuildStage;
1221
+ /**
1222
+ * A JSON object with optional additional configuration that is merged with the extension's config.
1223
+ * Properties in this object override the extension's config.
1224
+ */
1225
+ config?: Maybe<Scalars['String']['output']>;
1226
+ hooks: Array<Scalars['String']['output']>;
1227
+ id: Scalars['String']['output'];
1228
+ serverBuildStage: ExtensionVersionBuildStage;
1229
+ uploadStage: ExtensionVersionUploadStage;
1230
+ versionName: Scalars['String']['output'];
1231
+ };
1232
+
1233
+ export const ExtensionVersionBuildStage = {
1234
+ Building: 'Building',
1235
+ Built: 'Built',
1236
+ Canceled: 'Canceled',
1237
+ Failed: 'Failed',
1238
+ } as const;
1239
+
1240
+ export type ExtensionVersionBuildStage =
1241
+ (typeof ExtensionVersionBuildStage)[keyof typeof ExtensionVersionBuildStage];
1242
+ export const ExtensionVersionUploadStage = {
1243
+ Canceled: 'Canceled',
1244
+ Uploaded: 'Uploaded',
1245
+ Uploading: 'Uploading',
1246
+ } as const;
1247
+
1248
+ export type ExtensionVersionUploadStage =
1249
+ (typeof ExtensionVersionUploadStage)[keyof typeof ExtensionVersionUploadStage];
1250
+ export type ExtensionVersionsList = ListResult & {
1251
+ __typename?: 'ExtensionVersionsList';
1252
+ extensionVersions: Array<ExtensionVersion>;
1253
+ limit: Scalars['Int']['output'];
1254
+ totalCount: Scalars['Int']['output'];
1255
+ };
1256
+
1257
+ export type ExtensionsList = ListResult & {
1258
+ __typename?: 'ExtensionsList';
1259
+ extensions: Array<Extension>;
1260
+ limit: Scalars['Int']['output'];
1261
+ totalCount: Scalars['Int']['output'];
1262
+ };
1263
+
1264
+ export type File = {
1265
+ __typename?: 'File';
1266
+ createdAt: Scalars['Date']['output'];
1267
+ downloadName: Scalars['String']['output'];
1268
+ getUrl: Scalars['String']['output'];
1269
+ id: Scalars['String']['output'];
1270
+ mimeType: Scalars['String']['output'];
1271
+ status: FileStatus;
1272
+ };
1273
+
1274
+ export type FileGetUrlArgs = {
1275
+ download: Scalars['Boolean']['input'];
1276
+ };
1277
+
1278
+ export const FileStatus = {
1279
+ Canceled: 'Canceled',
1280
+ Deleted: 'Deleted',
1281
+ Uploaded: 'Uploaded',
1282
+ Uploading: 'Uploading',
1283
+ } as const;
1284
+
1285
+ export type FileStatus = (typeof FileStatus)[keyof typeof FileStatus];
1286
+ export type FindOrCreateStripeSubscriptionActiveResult = {
1287
+ __typename?: 'FindOrCreateStripeSubscriptionActiveResult';
1288
+ id: Scalars['String']['output'];
1289
+ stripeSubscriptionId: Scalars['String']['output'];
1290
+ };
1291
+
1292
+ export type FindOrCreateStripeSubscriptionErrorResult = {
1293
+ __typename?: 'FindOrCreateStripeSubscriptionErrorResult';
1294
+ message: Scalars['String']['output'];
1295
+ };
1296
+
1297
+ export type FindOrCreateStripeSubscriptionIncompleteResult = {
1298
+ __typename?: 'FindOrCreateStripeSubscriptionIncompleteResult';
1299
+ id: Scalars['String']['output'];
1300
+ paymentIntentClientSecret: Scalars['String']['output'];
1301
+ stripeSubscriptionId: Scalars['String']['output'];
1302
+ };
1303
+
1304
+ export type FindOrCreateStripeSubscriptionResult =
1305
+ | FindOrCreateStripeSubscriptionActiveResult
1306
+ | FindOrCreateStripeSubscriptionErrorResult
1307
+ | FindOrCreateStripeSubscriptionIncompleteResult
1308
+ | FindOrCreateStripeSubscriptionUpdatedResult;
1309
+
1310
+ export type FindOrCreateStripeSubscriptionUpdatedResult = {
1311
+ __typename?: 'FindOrCreateStripeSubscriptionUpdatedResult';
1312
+ subscriptionPlanId: Scalars['String']['output'];
1313
+ };
1314
+
1315
+ export type Form = {
1316
+ __typename?: 'Form';
1317
+ components: Scalars['String']['output'];
1318
+ confirmationAction: ConfirmationAction;
1319
+ confirmationMessageComponents?: Maybe<Scalars['String']['output']>;
1320
+ confirmationRedirectParameters: Array<FormConfirmationRedirectUrlParameter>;
1321
+ confirmationRedirectUrl?: Maybe<Scalars['String']['output']>;
1322
+ emailBodyTemplate?: Maybe<Scalars['String']['output']>;
1323
+ entriesTotalCount: Scalars['Int']['output'];
1324
+ formattedDataTemplate?: Maybe<Scalars['String']['output']>;
1325
+ id: Scalars['String']['output'];
1326
+ steps: Array<FormStep>;
1327
+ submissionActions: Array<FormSubmissionAction>;
1328
+ title: Scalars['String']['output'];
1329
+ useEmailBodyTemplate: Scalars['Boolean']['output'];
1330
+ useFormattedDataTemplate: Scalars['Boolean']['output'];
1331
+ };
1332
+
1333
+ export type FormConfirmationRedirectUrlParameter = {
1334
+ __typename?: 'FormConfirmationRedirectUrlParameter';
1335
+ componentName: Scalars['String']['output'];
1336
+ id: Scalars['String']['output'];
1337
+ parameter: Scalars['String']['output'];
1338
+ };
1339
+
1340
+ export type FormConfirmationRedirectUrlParameterInput = {
1341
+ componentName: Scalars['String']['input'];
1342
+ id: Scalars['String']['input'];
1343
+ parameter: Scalars['String']['input'];
1344
+ };
1345
+
1346
+ export type FormEntriesList = ListResult & {
1347
+ __typename?: 'FormEntriesList';
1348
+ entries: Array<FormEntry>;
1349
+ limit: Scalars['Int']['output'];
1350
+ totalCount: Scalars['Int']['output'];
1351
+ };
1352
+
1353
+ export type FormEntry = {
1354
+ __typename?: 'FormEntry';
1355
+ createdAt: Scalars['Date']['output'];
1356
+ formData: Scalars['String']['output'];
1357
+ formId: Scalars['String']['output'];
1358
+ formTitle: Scalars['String']['output'];
1359
+ id: Scalars['String']['output'];
1360
+ submissionPageUrl: Scalars['String']['output'];
1361
+ user?: Maybe<UserProfile>;
1362
+ };
1363
+
1364
+ export type FormStep = {
1365
+ __typename?: 'FormStep';
1366
+ components: Scalars['String']['output'];
1367
+ edited: Scalars['Boolean']['output'];
1368
+ enabled: Scalars['Boolean']['output'];
1369
+ id: Scalars['String']['output'];
1370
+ name: Scalars['String']['output'];
1371
+ /** A lexicographical sorting key. */
1372
+ position: Scalars['String']['output'];
1373
+ };
1374
+
1375
+ export type FormSubmissionAction = {
1376
+ __typename?: 'FormSubmissionAction';
1377
+ createdAt: Scalars['Date']['output'];
1378
+ emailAddress?: Maybe<Scalars['String']['output']>;
1379
+ emailSubject?: Maybe<Scalars['String']['output']>;
1380
+ formId: Scalars['String']['output'];
1381
+ id: Scalars['String']['output'];
1382
+ type: FormSubmissionActionType;
1383
+ webhookUrl?: Maybe<Scalars['String']['output']>;
1384
+ };
1385
+
1386
+ export const FormSubmissionActionType = {
1387
+ Email: 'Email',
1388
+ Webhook: 'Webhook',
1389
+ } as const;
1390
+
1391
+ export type FormSubmissionActionType =
1392
+ (typeof FormSubmissionActionType)[keyof typeof FormSubmissionActionType];
1393
+ export type FormTemplate = {
1394
+ __typename?: 'FormTemplate';
1395
+ components: Scalars['String']['output'];
1396
+ confirmationAction: ConfirmationAction;
1397
+ confirmationMessageComponents?: Maybe<Scalars['String']['output']>;
1398
+ confirmationRedirectParameters: Array<FormConfirmationRedirectUrlParameter>;
1399
+ confirmationRedirectUrl?: Maybe<Scalars['String']['output']>;
1400
+ emailBodyTemplate?: Maybe<Scalars['String']['output']>;
1401
+ formattedDataTemplate?: Maybe<Scalars['String']['output']>;
1402
+ id: Scalars['String']['output'];
1403
+ status: PublishStatus;
1404
+ steps: Array<FormTemplateStep>;
1405
+ title: Scalars['String']['output'];
1406
+ useEmailBodyTemplate: Scalars['Boolean']['output'];
1407
+ useFormattedDataTemplate: Scalars['Boolean']['output'];
1408
+ };
1409
+
1410
+ export type FormTemplateStep = {
1411
+ __typename?: 'FormTemplateStep';
1412
+ components: Scalars['String']['output'];
1413
+ enabled: Scalars['Boolean']['output'];
1414
+ id: Scalars['String']['output'];
1415
+ name: Scalars['String']['output'];
1416
+ /** A lexicographical sorting key. */
1417
+ position: Scalars['String']['output'];
1418
+ };
1419
+
1420
+ export const GCloudCertificateMapEntryState = {
1421
+ Active: 'Active',
1422
+ Pending: 'Pending',
1423
+ Unknown: 'Unknown',
1424
+ } as const;
1425
+
1426
+ export type GCloudCertificateMapEntryState =
1427
+ (typeof GCloudCertificateMapEntryState)[keyof typeof GCloudCertificateMapEntryState];
1428
+ export const GCloudCertificateState = {
1429
+ Active: 'Active',
1430
+ Failed: 'Failed',
1431
+ Provisioning: 'Provisioning',
1432
+ Unknown: 'Unknown',
1433
+ } as const;
1434
+
1435
+ export type GCloudCertificateState =
1436
+ (typeof GCloudCertificateState)[keyof typeof GCloudCertificateState];
1437
+ export type GenericInternalError = Error & {
1438
+ __typename?: 'GenericInternalError';
1439
+ message: Scalars['String']['output'];
1440
+ };
1441
+
1442
+ export type GenericUserError = Error & {
1443
+ __typename?: 'GenericUserError';
1444
+ message: Scalars['String']['output'];
1445
+ };
1446
+
1447
+ export type HelpTicket = {
1448
+ __typename?: 'HelpTicket';
1449
+ createdAt: Scalars['Date']['output'];
1450
+ customDomain?: Maybe<Scalars['String']['output']>;
1451
+ customSiteBodyEndCode?: Maybe<Scalars['String']['output']>;
1452
+ customSiteBodyStartCode?: Maybe<Scalars['String']['output']>;
1453
+ customSiteHeaderCode?: Maybe<Scalars['String']['output']>;
1454
+ id: Scalars['String']['output'];
1455
+ message: Scalars['String']['output'];
1456
+ status: HelpTicketStatus;
1457
+ type: Scalars['String']['output'];
1458
+ user?: Maybe<User>;
1459
+ userId?: Maybe<Scalars['String']['output']>;
1460
+ zendeskTicketId?: Maybe<Scalars['String']['output']>;
1461
+ };
1462
+
1463
+ export const HelpTicketStatus = {
1464
+ Closed: 'Closed',
1465
+ Open: 'Open',
1466
+ } as const;
1467
+
1468
+ export type HelpTicketStatus = (typeof HelpTicketStatus)[keyof typeof HelpTicketStatus];
1469
+ export type HelpTicketsList = ListResult & {
1470
+ __typename?: 'HelpTicketsList';
1471
+ helpTickets: Array<HelpTicket>;
1472
+ limit: Scalars['Int']['output'];
1473
+ totalCount: Scalars['Int']['output'];
1474
+ };
1475
+
1476
+ /** A filter for a field representing an object’s ID. */
1477
+ export type IdFilter = {
1478
+ /**
1479
+ * If operator is Equal or NotEqual, value must be provided and include exactly one value.
1480
+ * If operator is In or NotIn, value must be provided and include at least one value.
1481
+ */
1482
+ operator: IdFilterOperator;
1483
+ value?: InputMaybe<Array<Scalars['String']['input']>>;
1484
+ };
1485
+
1486
+ export const IdFilterOperator = {
1487
+ Equals: 'Equals',
1488
+ In: 'In',
1489
+ NotEquals: 'NotEquals',
1490
+ NotIn: 'NotIn',
1491
+ } as const;
1492
+
1493
+ export type IdFilterOperator = (typeof IdFilterOperator)[keyof typeof IdFilterOperator];
1494
+ export type InitialFormData = {
1495
+ __typename?: 'InitialFormData';
1496
+ /** A JSON object. */
1497
+ formData?: Maybe<Scalars['String']['output']>;
1498
+ };
1499
+
1500
+ export type IntUpdate = {
1501
+ value: Scalars['Int']['input'];
1502
+ };
1503
+
1504
+ export type InvalidateApiTokenResult = GenericUserError | InvalidateApiTokenSuccessResult;
1505
+
1506
+ export type InvalidateApiTokenSuccessResult = {
1507
+ __typename?: 'InvalidateApiTokenSuccessResult';
1508
+ apiToken: ApiToken;
1509
+ };
1510
+
1511
+ export const InvoiceFrequency = {
1512
+ Annually: 'Annually',
1513
+ Monthly: 'Monthly',
1514
+ Quarterly: 'Quarterly',
1515
+ SemiAnnually: 'SemiAnnually',
1516
+ } as const;
1517
+
1518
+ export type InvoiceFrequency = (typeof InvoiceFrequency)[keyof typeof InvoiceFrequency];
1519
+ export type KeyValueInput = {
1520
+ key: Scalars['String']['input'];
1521
+ /** Any JSON value. */
1522
+ value: Scalars['String']['input'];
1523
+ };
1524
+
1525
+ export type Layout = {
1526
+ __typename?: 'Layout';
1527
+ components: Scalars['String']['output'];
1528
+ id: Scalars['String']['output'];
1529
+ layoutTemplate?: Maybe<LayoutTemplate>;
1530
+ name: Scalars['String']['output'];
1531
+ pathPrefix: Scalars['String']['output'];
1532
+ status: PublishStatus;
1533
+ };
1534
+
1535
+ export type LayoutTemplate = {
1536
+ __typename?: 'LayoutTemplate';
1537
+ components: Scalars['String']['output'];
1538
+ id: Scalars['String']['output'];
1539
+ name: Scalars['String']['output'];
1540
+ pathPrefix: Scalars['String']['output'];
1541
+ status: PublishStatus;
1542
+ };
1543
+
1544
+ export type LayoutTemplatesList = ListResult & {
1545
+ __typename?: 'LayoutTemplatesList';
1546
+ layoutTemplates: Array<LayoutTemplate>;
1547
+ limit: Scalars['Int']['output'];
1548
+ page: Scalars['Int']['output'];
1549
+ totalCount: Scalars['Int']['output'];
1550
+ };
1551
+
1552
+ export type LayoutsList = ListResult & {
1553
+ __typename?: 'LayoutsList';
1554
+ layouts: Array<Layout>;
1555
+ limit: Scalars['Int']['output'];
1556
+ totalCount: Scalars['Int']['output'];
1557
+ };
1558
+
1559
+ export type Lesson = {
1560
+ __typename?: 'Lesson';
1561
+ completionSpec?: Maybe<Scalars['String']['output']>;
1562
+ components: Scalars['String']['output'];
1563
+ /**
1564
+ * Whether to enable lesson content when the lesson has at least one published sub-lesson.
1565
+ * This field is ignored when a lesson does not have any published sub-lessons as content is automatically enabled.
1566
+ * Even with this field true, a lesson that has sub-lessons is completed if and only if all its sub-lessons are completed.
1567
+ */
1568
+ enableContent: Scalars['Boolean']['output'];
1569
+ id: Scalars['String']['output'];
1570
+ lessonUser?: Maybe<LessonUser>;
1571
+ parentLesson?: Maybe<Lesson>;
1572
+ parentLessonId?: Maybe<Scalars['String']['output']>;
1573
+ /** A lexicographical sorting key. */
1574
+ position: Scalars['String']['output'];
1575
+ status: PublishStatus;
1576
+ /** The direct sub-lessons of the lesson. */
1577
+ subLessons: LessonsList;
1578
+ title: Scalars['String']['output'];
1579
+ versions: LessonVersionsList;
1580
+ };
1581
+
1582
+ export type LessonLessonUserArgs = {
1583
+ userId: Scalars['String']['input'];
1584
+ };
1585
+
1586
+ export type LessonSubLessonsArgs = {
1587
+ status?: InputMaybe<Array<PublishStatus>>;
1588
+ };
1589
+
1590
+ export type LessonVersionsArgs = {
1591
+ limit?: InputMaybe<Scalars['Int']['input']>;
1592
+ page?: InputMaybe<Scalars['Int']['input']>;
1593
+ };
1594
+
1595
+ /** This enum defines how the lessons of a course get completed. */
1596
+ export const LessonCompletionMode = {
1597
+ /** All completable input fields (those visible to the user) must be completed. */
1598
+ AllCompletableFields: 'AllCompletableFields',
1599
+ /** A custom boolean expression is set per lesson. */
1600
+ CustomExpression: 'CustomExpression',
1601
+ /** A user must manually mark a lesson as completed. */
1602
+ Manual: 'Manual',
1603
+ } as const;
1604
+
1605
+ export type LessonCompletionMode = (typeof LessonCompletionMode)[keyof typeof LessonCompletionMode];
1606
+ export type LessonCompletionModeUpdate = {
1607
+ value: LessonCompletionMode;
1608
+ };
1609
+
1610
+ export type LessonUser = {
1611
+ __typename?: 'LessonUser';
1612
+ completedAt?: Maybe<Scalars['Date']['output']>;
1613
+ files: Array<File>;
1614
+ id: Scalars['String']['output'];
1615
+ notes?: Maybe<Scalars['String']['output']>;
1616
+ /** A JSON object. */
1617
+ state?: Maybe<Scalars['String']['output']>;
1618
+ };
1619
+
1620
+ export type LessonVersion = {
1621
+ __typename?: 'LessonVersion';
1622
+ afterLesson?: Maybe<Lesson>;
1623
+ byUser: UserProfile;
1624
+ changes: Array<LessonVersionChange>;
1625
+ completionSpec?: Maybe<Scalars['String']['output']>;
1626
+ components?: Maybe<Scalars['String']['output']>;
1627
+ createdAt: Scalars['Date']['output'];
1628
+ enableContent?: Maybe<Scalars['Boolean']['output']>;
1629
+ id: Scalars['String']['output'];
1630
+ lesson: Lesson;
1631
+ parentLesson?: Maybe<Lesson>;
1632
+ status?: Maybe<PublishStatus>;
1633
+ title?: Maybe<Scalars['String']['output']>;
1634
+ };
1635
+
1636
+ export const LessonVersionChange = {
1637
+ CompletionSpec: 'CompletionSpec',
1638
+ Components: 'Components',
1639
+ EnableContent: 'EnableContent',
1640
+ Location: 'Location',
1641
+ Status: 'Status',
1642
+ Title: 'Title',
1643
+ } as const;
1644
+
1645
+ export type LessonVersionChange = (typeof LessonVersionChange)[keyof typeof LessonVersionChange];
1646
+ export type LessonVersionsList = ListResult & {
1647
+ __typename?: 'LessonVersionsList';
1648
+ lessonVersions: Array<LessonVersion>;
1649
+ limit: Scalars['Int']['output'];
1650
+ totalCount: Scalars['Int']['output'];
1651
+ };
1652
+
1653
+ export type LessonsList = ListResult & {
1654
+ __typename?: 'LessonsList';
1655
+ lessons: Array<Lesson>;
1656
+ limit: Scalars['Int']['output'];
1657
+ totalCount: Scalars['Int']['output'];
1658
+ };
1659
+
1660
+ export type ListResult = {
1661
+ limit: Scalars['Int']['output'];
1662
+ /** The total number of items in the list. */
1663
+ totalCount: Scalars['Int']['output'];
1664
+ };
1665
+
1666
+ export type Me = AdminUser | User;
1667
+
1668
+ export type MoveUserToOrgResult = GenericUserError | MoveUserToOrgSuccessResult;
1669
+
1670
+ export type MoveUserToOrgSuccessResult = {
1671
+ __typename?: 'MoveUserToOrgSuccessResult';
1672
+ sourceOrg: Organization;
1673
+ targetOrg: Organization;
1674
+ user: User;
1675
+ };
1676
+
1677
+ export type Mutation = {
1678
+ __typename?: 'Mutation';
1679
+ archiveComponent: ArchiveComponentResult;
1680
+ changePassword: Scalars['Boolean']['output'];
1681
+ consentToAgreement: User;
1682
+ /**
1683
+ * Creates a platform admin user. If a user with the specified email address already exists, the user is added as an admin.
1684
+ * Requires the requesting user to be an owner of the platform.
1685
+ */
1686
+ createAdminUser: CreateAdminUserResult;
1687
+ createApiToken: CreateApiTokenResult;
1688
+ createComponent: CreateComponentResult;
1689
+ createCourse: CreateCourseResult;
1690
+ createDocument: Document;
1691
+ createDocumentDownloadPrompt: DocumentDownloadPrompt;
1692
+ createExtension: CreateExtensionResult;
1693
+ createExtensionVersion: CreateExtensionVersionResult;
1694
+ createForm: Form;
1695
+ createFormStep: FormStep;
1696
+ createFormSubmissionAction: FormSubmissionAction;
1697
+ createFormTemplate: FormTemplate;
1698
+ createFormTemplateStep: FormTemplateStep;
1699
+ createHelpTicket: HelpTicket;
1700
+ createLayout: CreateLayoutResult;
1701
+ createLayoutTemplate: CreateLayoutTemplateResult;
1702
+ createLesson: CreateLessonResult;
1703
+ createLessonUser: CreateLessonUserResult;
1704
+ createPage: Page;
1705
+ createPageFromTemplate: Page;
1706
+ createPageTemplate: PageTemplate;
1707
+ createProduct: CreateProductResult;
1708
+ createSequence: CreateSequenceResult;
1709
+ createSite: CreateSiteResult;
1710
+ createSiteTemplate: CreateSiteTemplateResult;
1711
+ createSiteTemplateLayoutTemplates: CreateSiteTemplateLayoutTemplatesResult;
1712
+ createSiteTemplatePageTemplates: CreateSiteTemplatePageTemplatesResult;
1713
+ createStage: Stage;
1714
+ createStageBlueprint: StageBlueprint;
1715
+ createSubscription: SubscriptionOrganization;
1716
+ createSubscriptionOrg: SubscriptionOrganization;
1717
+ createTlsCertificate: TlsCertificate;
1718
+ createTlsCertificateMapEntry: TlsCertificate;
1719
+ /**
1720
+ * To create a user in an org that belongs to one's platform, the requester must have PermissionName.CreateUser.
1721
+ * The request may specify the role (assuming the requester has PermissionName.EditUserRole) and status (assuming the
1722
+ * requester has PermissionName.EditUserStatus) for the new user
1723
+ *
1724
+ * When adding a user to one's own org, the requester must have the OrganizationOwner role.
1725
+ * TODO: Change that to be configurable.
1726
+ * Neither a role nor a status may be specified in this case.
1727
+ */
1728
+ createUser: User;
1729
+ /**
1730
+ * For platform admins, the CreateUser permission is required. To set the status to something other than the
1731
+ * default (Pending), the EditUserStatus permission is required. To set the role to something other than the
1732
+ * default, the EditUserRole permission is required.
1733
+ *
1734
+ * For non-admins, this mutation creates a peer org member, so orgId must not be provided or must be the requesting
1735
+ * user’s own org ID. The status field is ignored and the default is used.
1736
+ * Currently the requester needs to have the OrganizationOwner role, but that will become configurable.
1737
+ */
1738
+ createUser2: CreateUserResult;
1739
+ deleteExtensionVersion: DeleteExtensionVersionResult;
1740
+ deleteFormStep: Scalars['Boolean']['output'];
1741
+ deleteFormSubmissionAction: Scalars['Boolean']['output'];
1742
+ deleteFormTemplateStep: Scalars['Boolean']['output'];
1743
+ deleteSiteTemplateLayoutTemplates: DeleteSiteTemplateLayoutTemplatesResult;
1744
+ deleteSiteTemplatePageTemplates: DeleteSiteTemplatePageTemplatesResult;
1745
+ deleteStageBlueprint: Scalars['Boolean']['output'];
1746
+ deleteSubscriptionOrg: Scalars['Boolean']['output'];
1747
+ deleteSubscriptionPlan: Scalars['Boolean']['output'];
1748
+ deleteTlsCertificate: Scalars['Boolean']['output'];
1749
+ duplicateComponent: DuplicateComponentResult;
1750
+ duplicateCourse: DuplicateCourseResult;
1751
+ duplicateForm: Form;
1752
+ duplicateFormTemplate: FormTemplate;
1753
+ duplicateLesson: DuplicateLessonResult;
1754
+ duplicatePage: Page;
1755
+ duplicatePageTemplate: PageTemplate;
1756
+ duplicateSequence: DuplicateSequenceResult;
1757
+ duplicateStageBlueprint: StageBlueprint;
1758
+ editComponent: EditComponentResult;
1759
+ editCourse: EditCourseResult;
1760
+ /** Edit the custom table (i.e., custom fields) of a specific target object. */
1761
+ editCustomTable: EditCustomTableResult;
1762
+ editDocument: Document;
1763
+ editDocumentCurrentVersion: Document;
1764
+ editDocumentDownloadPrompt: DocumentDownloadPrompt;
1765
+ editExtension: EditExtensionResult;
1766
+ editFile: File;
1767
+ editForm: Form;
1768
+ editFormStep: FormStep;
1769
+ editFormStepPosition: EditFormStepPositionResult;
1770
+ editFormSubmissionAction: FormSubmissionAction;
1771
+ editFormTemplate: FormTemplate;
1772
+ editFormTemplateConfirmation: FormTemplate;
1773
+ editFormTemplateEmailTemplate: EditFormTemplateEmailTemplateResult;
1774
+ editFormTemplateFormattedDataTemplate: EditFormTemplateFormattedDataTemplateResult;
1775
+ editFormTemplateStep: FormTemplateStep;
1776
+ editFormTemplateStepPosition: FormTemplateStep;
1777
+ editHelpTicketStatus: HelpTicket;
1778
+ editLayout: EditLayoutResult;
1779
+ editLayoutTemplate: EditLayoutTemplateResult;
1780
+ editLesson: EditLessonResult;
1781
+ editLessonUser: EditLessonUserResult;
1782
+ editOrgPrimaryUser: EditOrgPrimaryUserResult;
1783
+ editOrganization: Organization;
1784
+ editPage: EditPageResult;
1785
+ editPage2: EditPageResult;
1786
+ editPageMetadata: Page;
1787
+ editPageProps: Page;
1788
+ editPageStatus: Page;
1789
+ editPageTemplate: EditPageTemplateResult;
1790
+ editPlatform: EditPlatformResult;
1791
+ editPlatformAdminUser: EditPlatformAdminUserResult;
1792
+ editPlatformOptions: Platform;
1793
+ editProduct: EditProductResult;
1794
+ editScoreMyCallEntryStatus?: Maybe<ScoreMyCallEntry>;
1795
+ editSequence: EditSequenceResult;
1796
+ editSequenceUser: EditSequenceUserResult;
1797
+ editSite: EditSiteResult;
1798
+ editStageBlueprintCompletionSpec: StageBlueprint;
1799
+ editStageBlueprintComponents: StageBlueprint;
1800
+ editStageBlueprintMetaData: StageBlueprint;
1801
+ editStageState: Scalars['Boolean']['output'];
1802
+ editSubscription: Sub;
1803
+ editSubscriptionOrg: SubscriptionOrganization;
1804
+ editUser: EditUserResult;
1805
+ editUserEmail: User;
1806
+ editUserName: User;
1807
+ editUserPlan: UserPlan;
1808
+ editUserRole: User;
1809
+ editUserStatus: User;
1810
+ findOrCreateStripeCustomer: StripeCustomer;
1811
+ findOrCreateStripeSubscription: FindOrCreateStripeSubscriptionResult;
1812
+ invalidateApiToken: InvalidateApiTokenResult;
1813
+ moveUserToOrg: MoveUserToOrgResult;
1814
+ refreshSession: Scalars['Boolean']['output'];
1815
+ requestPasswordReset: Scalars['Boolean']['output'];
1816
+ resetPassword: Scalars['Boolean']['output'];
1817
+ restoreCourseVersionChanges: RestoreCourseVersionChangesResult;
1818
+ restoreLessonVersionChanges: RestoreLessonVersionChangesResult;
1819
+ restorePageVersionChanges: RestorePageVersionChangesResult;
1820
+ sendVerificationEmail: Scalars['Boolean']['output'];
1821
+ signIn: User;
1822
+ signOut: Scalars['Boolean']['output'];
1823
+ splitUserToNewOrg: SplitUserToNewOrgResult;
1824
+ submitForm: SubmitFormResult;
1825
+ submitReview: Scalars['Boolean']['output'];
1826
+ submitScoreMyCallEntry: SubmitScoreMyCallEntryResult;
1827
+ syncFormTemplateToForms: Scalars['Boolean']['output'];
1828
+ /** Sync a layout template to the layouts that were created from the template. Only draft and published layouts are synced. */
1829
+ syncLayoutTemplateToLayouts: SyncLayoutTemplateToLayoutsResult;
1830
+ /** Sync a page template to the pages that were created from the template. Only draft and published pages are synced. */
1831
+ syncPageTemplateToPages: SyncPageTemplateToPagesResult;
1832
+ uploadFile: UploadFileResult;
1833
+ verifyEmailAddress: User;
1834
+ };
1835
+
1836
+ export type MutationArchiveComponentArgs = {
1837
+ id: Scalars['String']['input'];
1838
+ };
1839
+
1840
+ export type MutationChangePasswordArgs = {
1841
+ currentPassword: Scalars['String']['input'];
1842
+ newPassword: Scalars['String']['input'];
1843
+ };
1844
+
1845
+ export type MutationConsentToAgreementArgs = {
1846
+ agreementId: Scalars['String']['input'];
1847
+ userName: Scalars['String']['input'];
1848
+ };
1849
+
1850
+ export type MutationCreateAdminUserArgs = {
1851
+ input: CreateAdminUserInput;
1852
+ };
1853
+
1854
+ export type MutationCreateApiTokenArgs = {
1855
+ input: CreateApiTokenInput;
1856
+ };
1857
+
1858
+ export type MutationCreateComponentArgs = {
1859
+ input: CreateComponentInput;
1860
+ };
1861
+
1862
+ export type MutationCreateCourseArgs = {
1863
+ input: CreateCourseInput;
1864
+ };
1865
+
1866
+ export type MutationCreateDocumentArgs = {
1867
+ name: Scalars['String']['input'];
1868
+ platformId: Scalars['String']['input'];
1869
+ };
1870
+
1871
+ export type MutationCreateDocumentDownloadPromptArgs = {
1872
+ acceptLabel: Scalars['String']['input'];
1873
+ name: Scalars['String']['input'];
1874
+ platformId: Scalars['String']['input'];
1875
+ prompt: RichTextInput;
1876
+ promptHeader: Scalars['String']['input'];
1877
+ };
1878
+
1879
+ export type MutationCreateExtensionArgs = {
1880
+ input: CreateExtensionInput;
1881
+ };
1882
+
1883
+ export type MutationCreateExtensionVersionArgs = {
1884
+ input: CreateExtensionVersionInput;
1885
+ };
1886
+
1887
+ export type MutationCreateFormArgs = {
1888
+ siteId: Scalars['String']['input'];
1889
+ title: Scalars['String']['input'];
1890
+ };
1891
+
1892
+ export type MutationCreateFormStepArgs = {
1893
+ formId: Scalars['String']['input'];
1894
+ name: Scalars['String']['input'];
1895
+ position: Scalars['String']['input'];
1896
+ };
1897
+
1898
+ export type MutationCreateFormSubmissionActionArgs = {
1899
+ emailAddress?: InputMaybe<Scalars['String']['input']>;
1900
+ emailSubject?: InputMaybe<Scalars['String']['input']>;
1901
+ formId: Scalars['String']['input'];
1902
+ type: FormSubmissionActionType;
1903
+ webhookUrl?: InputMaybe<Scalars['String']['input']>;
1904
+ };
1905
+
1906
+ export type MutationCreateFormTemplateArgs = {
1907
+ platformId: Scalars['String']['input'];
1908
+ title: Scalars['String']['input'];
1909
+ };
1910
+
1911
+ export type MutationCreateFormTemplateStepArgs = {
1912
+ formTemplateId: Scalars['String']['input'];
1913
+ name: Scalars['String']['input'];
1914
+ position: Scalars['String']['input'];
1915
+ };
1916
+
1917
+ export type MutationCreateHelpTicketArgs = {
1918
+ customDomain?: InputMaybe<Scalars['String']['input']>;
1919
+ customSiteBodyEndCode?: InputMaybe<Scalars['String']['input']>;
1920
+ customSiteBodyStartCode?: InputMaybe<Scalars['String']['input']>;
1921
+ customSiteHeaderCode?: InputMaybe<Scalars['String']['input']>;
1922
+ message: Scalars['String']['input'];
1923
+ type: Scalars['String']['input'];
1924
+ };
1925
+
1926
+ export type MutationCreateLayoutArgs = {
1927
+ input: CreateLayoutInput;
1928
+ };
1929
+
1930
+ export type MutationCreateLayoutTemplateArgs = {
1931
+ input: CreateLayoutTemplateInput;
1932
+ };
1933
+
1934
+ export type MutationCreateLessonArgs = {
1935
+ input: CreateLessonInput;
1936
+ };
1937
+
1938
+ export type MutationCreateLessonUserArgs = {
1939
+ input: CreateLessonUserInput;
1940
+ };
1941
+
1942
+ export type MutationCreatePageArgs = {
1943
+ path: Scalars['String']['input'];
1944
+ siteId: Scalars['String']['input'];
1945
+ title: Scalars['String']['input'];
1946
+ };
1947
+
1948
+ export type MutationCreatePageFromTemplateArgs = {
1949
+ props?: InputMaybe<Scalars['String']['input']>;
1950
+ siteId: Scalars['String']['input'];
1951
+ templateId: Scalars['String']['input'];
1952
+ };
1953
+
1954
+ export type MutationCreatePageTemplateArgs = {
1955
+ path: Scalars['String']['input'];
1956
+ platformId: Scalars['String']['input'];
1957
+ title: Scalars['String']['input'];
1958
+ };
1959
+
1960
+ export type MutationCreateProductArgs = {
1961
+ alternativeStripePriceIds: Array<Scalars['String']['input']>;
1962
+ description: Scalars['String']['input'];
1963
+ displayName?: InputMaybe<Scalars['String']['input']>;
1964
+ durationDays?: InputMaybe<Scalars['Int']['input']>;
1965
+ endAt?: InputMaybe<Scalars['Date']['input']>;
1966
+ invoiceFrequency?: InputMaybe<InvoiceFrequency>;
1967
+ items: Array<Scalars['String']['input']>;
1968
+ name: Scalars['String']['input'];
1969
+ platformId: Scalars['String']['input'];
1970
+ price: Scalars['String']['input'];
1971
+ promoCodes: Array<PromoCodeInput>;
1972
+ stripePriceId?: InputMaybe<Scalars['String']['input']>;
1973
+ };
1974
+
1975
+ export type MutationCreateSequenceArgs = {
1976
+ input: CreateSequenceInput;
1977
+ };
1978
+
1979
+ export type MutationCreateSiteArgs = {
1980
+ input: CreateSiteInput;
1981
+ };
1982
+
1983
+ export type MutationCreateSiteTemplateArgs = {
1984
+ input: CreateSiteTemplateInput;
1985
+ };
1986
+
1987
+ export type MutationCreateSiteTemplateLayoutTemplatesArgs = {
1988
+ input: SiteTemplateLayoutTemplatesInput;
1989
+ };
1990
+
1991
+ export type MutationCreateSiteTemplatePageTemplatesArgs = {
1992
+ input: SiteTemplatePageTemplatesInput;
1993
+ };
1994
+
1995
+ export type MutationCreateStageArgs = {
1996
+ date: Scalars['String']['input'];
1997
+ stageBlueprintId: Scalars['String']['input'];
1998
+ userId?: InputMaybe<Scalars['String']['input']>;
1999
+ userTimeZone: Scalars['String']['input'];
2000
+ };
2001
+
2002
+ export type MutationCreateStageBlueprintArgs = {
2003
+ name: Scalars['String']['input'];
2004
+ planId: Scalars['String']['input'];
2005
+ position: Scalars['Int']['input'];
2006
+ };
2007
+
2008
+ export type MutationCreateSubscriptionArgs = {
2009
+ notes: Scalars['String']['input'];
2010
+ organizationId: Scalars['String']['input'];
2011
+ startAt: Scalars['Date']['input'];
2012
+ status: SubscriptionStatus;
2013
+ stripeSubscriptionId?: InputMaybe<Scalars['String']['input']>;
2014
+ subscriptionPlanId: Scalars['String']['input'];
2015
+ };
2016
+
2017
+ export type MutationCreateSubscriptionOrgArgs = {
2018
+ orgId: Scalars['String']['input'];
2019
+ subscriptionId: Scalars['String']['input'];
2020
+ subscriptionOwner: Scalars['Boolean']['input'];
2021
+ };
2022
+
2023
+ export type MutationCreateTlsCertificateArgs = {
2024
+ siteId: Scalars['String']['input'];
2025
+ };
2026
+
2027
+ export type MutationCreateTlsCertificateMapEntryArgs = {
2028
+ certificateName: Scalars['String']['input'];
2029
+ domain: Scalars['String']['input'];
2030
+ };
2031
+
2032
+ export type MutationCreateUserArgs = {
2033
+ email: Scalars['String']['input'];
2034
+ firstName: Scalars['String']['input'];
2035
+ lastName: Scalars['String']['input'];
2036
+ orgId?: InputMaybe<Scalars['String']['input']>;
2037
+ platformId: Scalars['String']['input'];
2038
+ role?: InputMaybe<Scalars['String']['input']>;
2039
+ status?: InputMaybe<UserStatus>;
2040
+ };
2041
+
2042
+ export type MutationCreateUser2Args = {
2043
+ input: CreateUserInput;
2044
+ };
2045
+
2046
+ export type MutationDeleteExtensionVersionArgs = {
2047
+ id: Scalars['String']['input'];
2048
+ };
2049
+
2050
+ export type MutationDeleteFormStepArgs = {
2051
+ id: Scalars['String']['input'];
2052
+ };
2053
+
2054
+ export type MutationDeleteFormSubmissionActionArgs = {
2055
+ submissionActionId: Scalars['String']['input'];
2056
+ };
2057
+
2058
+ export type MutationDeleteFormTemplateStepArgs = {
2059
+ id: Scalars['String']['input'];
2060
+ };
2061
+
2062
+ export type MutationDeleteSiteTemplateLayoutTemplatesArgs = {
2063
+ input: SiteTemplateLayoutTemplatesInput;
2064
+ };
2065
+
2066
+ export type MutationDeleteSiteTemplatePageTemplatesArgs = {
2067
+ input: SiteTemplatePageTemplatesInput;
2068
+ };
2069
+
2070
+ export type MutationDeleteStageBlueprintArgs = {
2071
+ id: Scalars['String']['input'];
2072
+ };
2073
+
2074
+ export type MutationDeleteSubscriptionOrgArgs = {
2075
+ id: Scalars['String']['input'];
2076
+ notes: Scalars['String']['input'];
2077
+ };
2078
+
2079
+ export type MutationDeleteSubscriptionPlanArgs = {
2080
+ id: Scalars['String']['input'];
2081
+ };
2082
+
2083
+ export type MutationDeleteTlsCertificateArgs = {
2084
+ certificateName: Scalars['String']['input'];
2085
+ };
2086
+
2087
+ export type MutationDuplicateComponentArgs = {
2088
+ input: DuplicateComponentInput;
2089
+ };
2090
+
2091
+ export type MutationDuplicateCourseArgs = {
2092
+ input: DuplicateCourseInput;
2093
+ };
2094
+
2095
+ export type MutationDuplicateFormArgs = {
2096
+ id: Scalars['String']['input'];
2097
+ title: Scalars['String']['input'];
2098
+ };
2099
+
2100
+ export type MutationDuplicateFormTemplateArgs = {
2101
+ templateId: Scalars['String']['input'];
2102
+ };
2103
+
2104
+ export type MutationDuplicateLessonArgs = {
2105
+ input: DuplicateLessonInput;
2106
+ };
2107
+
2108
+ export type MutationDuplicatePageArgs = {
2109
+ pageId: Scalars['String']['input'];
2110
+ };
2111
+
2112
+ export type MutationDuplicatePageTemplateArgs = {
2113
+ id: Scalars['String']['input'];
2114
+ };
2115
+
2116
+ export type MutationDuplicateSequenceArgs = {
2117
+ id: Scalars['String']['input'];
2118
+ };
2119
+
2120
+ export type MutationDuplicateStageBlueprintArgs = {
2121
+ id: Scalars['String']['input'];
2122
+ name: Scalars['String']['input'];
2123
+ position: Scalars['Int']['input'];
2124
+ };
2125
+
2126
+ export type MutationEditComponentArgs = {
2127
+ input: EditComponentInput;
2128
+ };
2129
+
2130
+ export type MutationEditCourseArgs = {
2131
+ input: EditCourseInput;
2132
+ };
2133
+
2134
+ export type MutationEditCustomTableArgs = {
2135
+ input: EditCustomTableInput;
2136
+ };
2137
+
2138
+ export type MutationEditDocumentArgs = {
2139
+ downloadPromptId?: InputMaybe<Scalars['String']['input']>;
2140
+ featureTag?: InputMaybe<Scalars['String']['input']>;
2141
+ id: Scalars['String']['input'];
2142
+ name: Scalars['String']['input'];
2143
+ productItem?: InputMaybe<OptionalStringUpdate>;
2144
+ roles: Array<Scalars['String']['input']>;
2145
+ stamp: Scalars['Boolean']['input'];
2146
+ status: PublishStatus;
2147
+ };
2148
+
2149
+ export type MutationEditDocumentCurrentVersionArgs = {
2150
+ fileId: Scalars['String']['input'];
2151
+ id: Scalars['String']['input'];
2152
+ };
2153
+
2154
+ export type MutationEditDocumentDownloadPromptArgs = {
2155
+ acceptLabel: Scalars['String']['input'];
2156
+ default: Scalars['Boolean']['input'];
2157
+ id: Scalars['String']['input'];
2158
+ name: Scalars['String']['input'];
2159
+ prompt: RichTextInput;
2160
+ promptHeader: Scalars['String']['input'];
2161
+ };
2162
+
2163
+ export type MutationEditExtensionArgs = {
2164
+ input: EditExtensionInput;
2165
+ };
2166
+
2167
+ export type MutationEditFileArgs = {
2168
+ downloadName: Scalars['String']['input'];
2169
+ id: Scalars['String']['input'];
2170
+ };
2171
+
2172
+ export type MutationEditFormArgs = {
2173
+ components: Scalars['String']['input'];
2174
+ confirmationAction: ConfirmationAction;
2175
+ confirmationMessageComponents?: InputMaybe<Scalars['String']['input']>;
2176
+ confirmationRedirectUrl?: InputMaybe<Scalars['String']['input']>;
2177
+ confirmationRedirectUrlParameters: Array<FormConfirmationRedirectUrlParameterInput>;
2178
+ id: Scalars['String']['input'];
2179
+ title: Scalars['String']['input'];
2180
+ };
2181
+
2182
+ export type MutationEditFormStepArgs = {
2183
+ components: Scalars['String']['input'];
2184
+ enabled: Scalars['Boolean']['input'];
2185
+ id: Scalars['String']['input'];
2186
+ name: Scalars['String']['input'];
2187
+ position: Scalars['String']['input'];
2188
+ };
2189
+
2190
+ export type MutationEditFormStepPositionArgs = {
2191
+ id: Scalars['String']['input'];
2192
+ position: Scalars['String']['input'];
2193
+ };
2194
+
2195
+ export type MutationEditFormSubmissionActionArgs = {
2196
+ emailAddress?: InputMaybe<Scalars['String']['input']>;
2197
+ emailSubject?: InputMaybe<Scalars['String']['input']>;
2198
+ submissionActionId: Scalars['String']['input'];
2199
+ type: FormSubmissionActionType;
2200
+ webhookUrl?: InputMaybe<Scalars['String']['input']>;
2201
+ };
2202
+
2203
+ export type MutationEditFormTemplateArgs = {
2204
+ components: Scalars['String']['input'];
2205
+ id: Scalars['String']['input'];
2206
+ status: PublishStatus;
2207
+ title: Scalars['String']['input'];
2208
+ };
2209
+
2210
+ export type MutationEditFormTemplateConfirmationArgs = {
2211
+ confirmationAction: ConfirmationAction;
2212
+ confirmationMessageComponents?: InputMaybe<Scalars['String']['input']>;
2213
+ confirmationRedirectUrl?: InputMaybe<Scalars['String']['input']>;
2214
+ confirmationRedirectUrlParameters: Array<FormConfirmationRedirectUrlParameterInput>;
2215
+ id: Scalars['String']['input'];
2216
+ };
2217
+
2218
+ export type MutationEditFormTemplateEmailTemplateArgs = {
2219
+ input: EditFormTemplateEmailTemplateInput;
2220
+ };
2221
+
2222
+ export type MutationEditFormTemplateFormattedDataTemplateArgs = {
2223
+ input: EditFormTemplateFormattedDataTemplateInput;
2224
+ };
2225
+
2226
+ export type MutationEditFormTemplateStepArgs = {
2227
+ components: Scalars['String']['input'];
2228
+ enabled: Scalars['Boolean']['input'];
2229
+ id: Scalars['String']['input'];
2230
+ name: Scalars['String']['input'];
2231
+ position: Scalars['String']['input'];
2232
+ };
2233
+
2234
+ export type MutationEditFormTemplateStepPositionArgs = {
2235
+ id: Scalars['String']['input'];
2236
+ position: Scalars['String']['input'];
2237
+ };
2238
+
2239
+ export type MutationEditHelpTicketStatusArgs = {
2240
+ id: Scalars['String']['input'];
2241
+ status: HelpTicketStatus;
2242
+ };
2243
+
2244
+ export type MutationEditLayoutArgs = {
2245
+ input: EditLayoutInput;
2246
+ };
2247
+
2248
+ export type MutationEditLayoutTemplateArgs = {
2249
+ input: EditLayoutTemplateInput;
2250
+ };
2251
+
2252
+ export type MutationEditLessonArgs = {
2253
+ input: EditLessonInput;
2254
+ };
2255
+
2256
+ export type MutationEditLessonUserArgs = {
2257
+ input: EditLessonUserInput;
2258
+ };
2259
+
2260
+ export type MutationEditOrgPrimaryUserArgs = {
2261
+ input: EditOrgPrimaryUserInput;
2262
+ };
2263
+
2264
+ export type MutationEditOrganizationArgs = {
2265
+ name: Scalars['String']['input'];
2266
+ organizationId: Scalars['String']['input'];
2267
+ };
2268
+
2269
+ export type MutationEditPageArgs = {
2270
+ input: EditPageInput;
2271
+ };
2272
+
2273
+ export type MutationEditPage2Args = {
2274
+ input: EditPageInput;
2275
+ };
2276
+
2277
+ export type MutationEditPageMetadataArgs = {
2278
+ metaTitle?: InputMaybe<Scalars['String']['input']>;
2279
+ pageId: Scalars['String']['input'];
2280
+ path: Scalars['String']['input'];
2281
+ title: Scalars['String']['input'];
2282
+ };
2283
+
2284
+ export type MutationEditPagePropsArgs = {
2285
+ pageId: Scalars['String']['input'];
2286
+ props: Scalars['String']['input'];
2287
+ };
2288
+
2289
+ export type MutationEditPageStatusArgs = {
2290
+ pageId: Scalars['String']['input'];
2291
+ status: PublishStatus;
2292
+ };
2293
+
2294
+ export type MutationEditPageTemplateArgs = {
2295
+ input: EditPageTemplateInput;
2296
+ };
2297
+
2298
+ export type MutationEditPlatformArgs = {
2299
+ input: EditPlatformInput;
2300
+ };
2301
+
2302
+ export type MutationEditPlatformAdminUserArgs = {
2303
+ input: EditPlatformAdminUserInput;
2304
+ };
2305
+
2306
+ export type MutationEditPlatformOptionsArgs = {
2307
+ options: Array<KeyValueInput>;
2308
+ platformId: Scalars['String']['input'];
2309
+ };
2310
+
2311
+ export type MutationEditProductArgs = {
2312
+ alternativeStripePriceIds: Array<Scalars['String']['input']>;
2313
+ description?: InputMaybe<OptionalStringUpdate>;
2314
+ displayName?: InputMaybe<OptionalStringUpdate>;
2315
+ durationDays?: InputMaybe<Scalars['Int']['input']>;
2316
+ endAt?: InputMaybe<Scalars['Date']['input']>;
2317
+ id: Scalars['String']['input'];
2318
+ invoiceFrequency?: InputMaybe<InvoiceFrequency>;
2319
+ items?: InputMaybe<StringListUpdate>;
2320
+ name: Scalars['String']['input'];
2321
+ price: Scalars['String']['input'];
2322
+ promoCodes: Array<PromoCodeInput>;
2323
+ stripePriceId?: InputMaybe<OptionalStringUpdate>;
2324
+ };
2325
+
2326
+ export type MutationEditScoreMyCallEntryStatusArgs = {
2327
+ id: Scalars['String']['input'];
2328
+ status: ScoreMyCallEntryStatus;
2329
+ };
2330
+
2331
+ export type MutationEditSequenceArgs = {
2332
+ id: Scalars['String']['input'];
2333
+ loopStages: Scalars['Boolean']['input'];
2334
+ title: Scalars['String']['input'];
2335
+ };
2336
+
2337
+ export type MutationEditSequenceUserArgs = {
2338
+ input: EditSequenceUserInput;
2339
+ };
2340
+
2341
+ export type MutationEditSiteArgs = {
2342
+ input: EditSiteInput;
2343
+ };
2344
+
2345
+ export type MutationEditStageBlueprintCompletionSpecArgs = {
2346
+ completionSpec: Scalars['String']['input'];
2347
+ id: Scalars['String']['input'];
2348
+ };
2349
+
2350
+ export type MutationEditStageBlueprintComponentsArgs = {
2351
+ components: Scalars['String']['input'];
2352
+ id: Scalars['String']['input'];
2353
+ };
2354
+
2355
+ export type MutationEditStageBlueprintMetaDataArgs = {
2356
+ id: Scalars['String']['input'];
2357
+ name: Scalars['String']['input'];
2358
+ position: Scalars['Int']['input'];
2359
+ restoreDeleted: Scalars['Boolean']['input'];
2360
+ };
2361
+
2362
+ export type MutationEditStageStateArgs = {
2363
+ id: Scalars['String']['input'];
2364
+ property: Scalars['String']['input'];
2365
+ value: Scalars['String']['input'];
2366
+ };
2367
+
2368
+ export type MutationEditSubscriptionArgs = {
2369
+ endAt?: InputMaybe<Scalars['Date']['input']>;
2370
+ id: Scalars['String']['input'];
2371
+ invoiceFrequency?: InputMaybe<InvoiceFrequency>;
2372
+ notes: Scalars['String']['input'];
2373
+ price: Scalars['String']['input'];
2374
+ startAt: Scalars['Date']['input'];
2375
+ status: SubscriptionStatus;
2376
+ stripeSubscriptionId?: InputMaybe<Scalars['String']['input']>;
2377
+ };
2378
+
2379
+ export type MutationEditSubscriptionOrgArgs = {
2380
+ id: Scalars['String']['input'];
2381
+ subscriptionOwner?: InputMaybe<BooleanUpdate>;
2382
+ };
2383
+
2384
+ export type MutationEditUserArgs = {
2385
+ input: EditUserInput;
2386
+ };
2387
+
2388
+ export type MutationEditUserEmailArgs = {
2389
+ email: Scalars['String']['input'];
2390
+ id: Scalars['String']['input'];
2391
+ };
2392
+
2393
+ export type MutationEditUserNameArgs = {
2394
+ firstName: Scalars['String']['input'];
2395
+ id: Scalars['String']['input'];
2396
+ lastName: Scalars['String']['input'];
2397
+ };
2398
+
2399
+ export type MutationEditUserPlanArgs = {
2400
+ sequenceId: Scalars['String']['input'];
2401
+ stageBlueprintId: Scalars['String']['input'];
2402
+ userId: Scalars['String']['input'];
2403
+ };
2404
+
2405
+ export type MutationEditUserRoleArgs = {
2406
+ role: Scalars['String']['input'];
2407
+ userId: Scalars['String']['input'];
2408
+ };
2409
+
2410
+ export type MutationEditUserStatusArgs = {
2411
+ status: UserStatus;
2412
+ userId: Scalars['String']['input'];
2413
+ };
2414
+
2415
+ export type MutationFindOrCreateStripeCustomerArgs = {
2416
+ address?: InputMaybe<AddressInput>;
2417
+ };
2418
+
2419
+ export type MutationFindOrCreateStripeSubscriptionArgs = {
2420
+ address: AddressInput;
2421
+ email: Scalars['String']['input'];
2422
+ firstName: Scalars['String']['input'];
2423
+ lastName: Scalars['String']['input'];
2424
+ phone: Scalars['String']['input'];
2425
+ promoCode?: InputMaybe<Scalars['String']['input']>;
2426
+ promoCodeType?: InputMaybe<PromoCodeType>;
2427
+ subscriptionPlanId: Scalars['String']['input'];
2428
+ };
2429
+
2430
+ export type MutationInvalidateApiTokenArgs = {
2431
+ id: Scalars['String']['input'];
2432
+ };
2433
+
2434
+ export type MutationMoveUserToOrgArgs = {
2435
+ notes?: InputMaybe<Scalars['String']['input']>;
2436
+ orgId: Scalars['String']['input'];
2437
+ userId: Scalars['String']['input'];
2438
+ };
2439
+
2440
+ export type MutationRequestPasswordResetArgs = {
2441
+ email: Scalars['String']['input'];
2442
+ };
2443
+
2444
+ export type MutationResetPasswordArgs = {
2445
+ key: Scalars['String']['input'];
2446
+ password: Scalars['String']['input'];
2447
+ };
2448
+
2449
+ export type MutationRestoreCourseVersionChangesArgs = {
2450
+ input: RestoreCourseVersionChangesInput;
2451
+ };
2452
+
2453
+ export type MutationRestoreLessonVersionChangesArgs = {
2454
+ input: RestoreLessonVersionChangesInput;
2455
+ };
2456
+
2457
+ export type MutationRestorePageVersionChangesArgs = {
2458
+ input: RestorePageVersionChangesInput;
2459
+ };
2460
+
2461
+ export type MutationSignInArgs = {
2462
+ email: Scalars['String']['input'];
2463
+ password: Scalars['String']['input'];
2464
+ };
2465
+
2466
+ export type MutationSplitUserToNewOrgArgs = {
2467
+ notes?: InputMaybe<Scalars['String']['input']>;
2468
+ userId: Scalars['String']['input'];
2469
+ };
2470
+
2471
+ export type MutationSubmitFormArgs = {
2472
+ formData: Scalars['String']['input'];
2473
+ formId: Scalars['String']['input'];
2474
+ pageUrl: Scalars['String']['input'];
2475
+ sessionId?: InputMaybe<Scalars['String']['input']>;
2476
+ stepId?: InputMaybe<Scalars['String']['input']>;
2477
+ };
2478
+
2479
+ export type MutationSubmitReviewArgs = {
2480
+ review: Scalars['String']['input'];
2481
+ starRating: Scalars['Int']['input'];
2482
+ submitterName?: InputMaybe<Scalars['String']['input']>;
2483
+ };
2484
+
2485
+ export type MutationSubmitScoreMyCallEntryArgs = {
2486
+ fileName: Scalars['String']['input'];
2487
+ fileType: Scalars['String']['input'];
2488
+ formData: Scalars['String']['input'];
2489
+ prospectName: Scalars['String']['input'];
2490
+ shareRecording: Scalars['Boolean']['input'];
2491
+ };
2492
+
2493
+ export type MutationSyncFormTemplateToFormsArgs = {
2494
+ formTemplateId: Scalars['String']['input'];
2495
+ };
2496
+
2497
+ export type MutationSyncLayoutTemplateToLayoutsArgs = {
2498
+ input: SyncLayoutTemplateToLayoutsInput;
2499
+ };
2500
+
2501
+ export type MutationSyncPageTemplateToPagesArgs = {
2502
+ input: SyncPageTemplateToPagesInput;
2503
+ };
2504
+
2505
+ export type MutationUploadFileArgs = {
2506
+ input: UploadFileInput;
2507
+ };
2508
+
2509
+ export type MutationVerifyEmailAddressArgs = {
2510
+ key: Scalars['String']['input'];
2511
+ };
2512
+
2513
+ /**
2514
+ * An input type for optionally updating an array of components. Although the interface is the same as that
2515
+ * of OptionalStringUpdate, semantically this is different and is parsed differently.
2516
+ */
2517
+ export type OptionalComponentsUpdate = {
2518
+ /** The new value. Must be a valid JSON array if set. A null value is taken as clearing the field. */
2519
+ value?: InputMaybe<Scalars['String']['input']>;
2520
+ };
2521
+
2522
+ export type OptionalDateUpdate = {
2523
+ value?: InputMaybe<Scalars['Date']['input']>;
2524
+ };
2525
+
2526
+ /**
2527
+ * An input type for optionally updating an expression data object. Although the interface is the same as that
2528
+ * of OptionalStringUpdate, semantically this is different and is parsed differently.
2529
+ */
2530
+ export type OptionalExpressionDataUpdate = {
2531
+ /** The new value. Must be a valid JSON object if set. A null value is taken as clearing the field. */
2532
+ value?: InputMaybe<Scalars['String']['input']>;
2533
+ };
2534
+
2535
+ /** A filter for an optional field representing an object’s ID. */
2536
+ export type OptionalIdFilter = {
2537
+ /**
2538
+ * If operator is Exists or NotExists, value is ignored and must not be provided.
2539
+ * If operator is Equal or NotEqual, value must be provided and include exactly one value.
2540
+ * If operator is In or NotIn, value must be provided and include at least one value.
2541
+ */
2542
+ operator: OptionalIdFilterOperator;
2543
+ value?: InputMaybe<Array<Scalars['String']['input']>>;
2544
+ };
2545
+
2546
+ export const OptionalIdFilterOperator = {
2547
+ Equals: 'Equals',
2548
+ Exists: 'Exists',
2549
+ In: 'In',
2550
+ NotEquals: 'NotEquals',
2551
+ NotExists: 'NotExists',
2552
+ NotIn: 'NotIn',
2553
+ } as const;
2554
+
2555
+ export type OptionalIdFilterOperator =
2556
+ (typeof OptionalIdFilterOperator)[keyof typeof OptionalIdFilterOperator];
2557
+ /**
2558
+ * A filter for an optional string field. Either exists or filter must be provided but not both.
2559
+ * A value exists if it is not null. An empty string is considered to exist.
2560
+ * Providing a filter assumes exists is true.
2561
+ */
2562
+ export type OptionalStringFilter = {
2563
+ exists?: InputMaybe<Scalars['Boolean']['input']>;
2564
+ filter?: InputMaybe<StringFilter>;
2565
+ };
2566
+
2567
+ /**
2568
+ * A container for an input field representing an optional (i.e., nullable) string that may optionally
2569
+ * be updated. If an object of this type is provided, it represents either a new value or clears the field.
2570
+ */
2571
+ export type OptionalStringUpdate = {
2572
+ /** The new value. If this is null or not provided, it is taken as clearing the field. */
2573
+ value?: InputMaybe<Scalars['String']['input']>;
2574
+ };
2575
+
2576
+ export type Organization = {
2577
+ __typename?: 'Organization';
2578
+ id: Scalars['String']['output'];
2579
+ members: Array<User>;
2580
+ membersCount: Scalars['Int']['output'];
2581
+ name?: Maybe<Scalars['String']['output']>;
2582
+ primaryUser?: Maybe<User>;
2583
+ site?: Maybe<Site>;
2584
+ subscriptionOrganizations: Array<SubscriptionOrganization>;
2585
+ };
2586
+
2587
+ export type OrganizationMembersArgs = {
2588
+ status?: InputMaybe<Array<UserStatus>>;
2589
+ };
2590
+
2591
+ /** A subtype of Org to limit the exposed fields. */
2592
+ export type OrganizationProfile = {
2593
+ __typename?: 'OrganizationProfile';
2594
+ id: Scalars['String']['output'];
2595
+ name?: Maybe<Scalars['String']['output']>;
2596
+ primaryUser?: Maybe<UserProfile>;
2597
+ };
2598
+
2599
+ export type OrganizationsList = ListResult & {
2600
+ __typename?: 'OrganizationsList';
2601
+ limit: Scalars['Int']['output'];
2602
+ organizations: Array<Organization>;
2603
+ totalCount: Scalars['Int']['output'];
2604
+ };
2605
+
2606
+ export type Page = {
2607
+ __typename?: 'Page';
2608
+ bodyStyles: Scalars['String']['output'];
2609
+ components: Scalars['String']['output'];
2610
+ /**
2611
+ * The fields that have been edited since the last time the page was synced with its template.
2612
+ * This field is set for every page, even if a page does not come from a page template.
2613
+ */
2614
+ editsToPageTemplate: Array<PageTemplateSyncedField>;
2615
+ id: Scalars['String']['output'];
2616
+ layout?: Maybe<Layout>;
2617
+ metaDescription?: Maybe<Scalars['String']['output']>;
2618
+ metaRobots: Array<Scalars['String']['output']>;
2619
+ metaTitle?: Maybe<Scalars['String']['output']>;
2620
+ pageTemplate?: Maybe<PageTemplate>;
2621
+ pageTemplateId?: Maybe<Scalars['String']['output']>;
2622
+ path: Scalars['String']['output'];
2623
+ productItem?: Maybe<Scalars['String']['output']>;
2624
+ props?: Maybe<Scalars['String']['output']>;
2625
+ public: Scalars['Boolean']['output'];
2626
+ /** Either the same as layout if a layout is set, or the automatically matching layout based on path. */
2627
+ resolvedLayout?: Maybe<Layout>;
2628
+ roles: Array<Scalars['String']['output']>;
2629
+ status: PublishStatus;
2630
+ title: Scalars['String']['output'];
2631
+ versions: PageVersionsList;
2632
+ };
2633
+
2634
+ export type PageVersionsArgs = {
2635
+ byUserId?: InputMaybe<Scalars['String']['input']>;
2636
+ limit?: InputMaybe<Scalars['Int']['input']>;
2637
+ page?: InputMaybe<Scalars['Int']['input']>;
2638
+ };
2639
+
2640
+ export type PageTemplate = {
2641
+ __typename?: 'PageTemplate';
2642
+ activatedAsPages: Array<Page>;
2643
+ bodyStyles: Scalars['String']['output'];
2644
+ components: Scalars['String']['output'];
2645
+ description?: Maybe<Scalars['String']['output']>;
2646
+ id: Scalars['String']['output'];
2647
+ metaTitle?: Maybe<Scalars['String']['output']>;
2648
+ path: Scalars['String']['output'];
2649
+ previewImageUrl?: Maybe<Scalars['String']['output']>;
2650
+ previewProps?: Maybe<Scalars['String']['output']>;
2651
+ propsSetupComponents?: Maybe<Scalars['String']['output']>;
2652
+ status: PublishStatus;
2653
+ title: Scalars['String']['output'];
2654
+ };
2655
+
2656
+ export type PageTemplateActivatedAsPagesArgs = {
2657
+ siteId: Scalars['String']['input'];
2658
+ };
2659
+
2660
+ /** A field of a page that is synced from page templates. A subset of PageVersionChange. */
2661
+ export const PageTemplateSyncedField = {
2662
+ BodyStyles: 'BodyStyles',
2663
+ Components: 'Components',
2664
+ MetaDescription: 'MetaDescription',
2665
+ MetaImageUrl: 'MetaImageUrl',
2666
+ MetaRobots: 'MetaRobots',
2667
+ MetaTitle: 'MetaTitle',
2668
+ Path: 'Path',
2669
+ Title: 'Title',
2670
+ } as const;
2671
+
2672
+ export type PageTemplateSyncedField =
2673
+ (typeof PageTemplateSyncedField)[keyof typeof PageTemplateSyncedField];
2674
+ export type PageTemplatesList = ListResult & {
2675
+ __typename?: 'PageTemplatesList';
2676
+ limit: Scalars['Int']['output'];
2677
+ page: Scalars['Int']['output'];
2678
+ pageTemplates: Array<PageTemplate>;
2679
+ totalCount: Scalars['Int']['output'];
2680
+ };
2681
+
2682
+ export type PageVersion = {
2683
+ __typename?: 'PageVersion';
2684
+ bodyStyles?: Maybe<Scalars['String']['output']>;
2685
+ byUser: UserProfile;
2686
+ changes: Array<PageVersionChange>;
2687
+ components?: Maybe<Scalars['String']['output']>;
2688
+ createdAt: Scalars['Date']['output'];
2689
+ id: Scalars['String']['output'];
2690
+ layout?: Maybe<Layout>;
2691
+ metaDescription?: Maybe<Scalars['String']['output']>;
2692
+ metaImageUrl?: Maybe<Scalars['String']['output']>;
2693
+ metaRobots?: Maybe<Array<Scalars['String']['output']>>;
2694
+ metaTitle?: Maybe<Scalars['String']['output']>;
2695
+ pageTemplate?: Maybe<PageTemplate>;
2696
+ path?: Maybe<Scalars['String']['output']>;
2697
+ productItem?: Maybe<Scalars['String']['output']>;
2698
+ props?: Maybe<Scalars['String']['output']>;
2699
+ public?: Maybe<Scalars['Boolean']['output']>;
2700
+ roles?: Maybe<Array<Scalars['String']['output']>>;
2701
+ status?: Maybe<PublishStatus>;
2702
+ title?: Maybe<Scalars['String']['output']>;
2703
+ };
2704
+
2705
+ export const PageVersionChange = {
2706
+ BodyStyles: 'BodyStyles',
2707
+ Components: 'Components',
2708
+ CustomFields: 'CustomFields',
2709
+ LayoutId: 'LayoutId',
2710
+ MetaDescription: 'MetaDescription',
2711
+ MetaImageUrl: 'MetaImageUrl',
2712
+ MetaRobots: 'MetaRobots',
2713
+ MetaTitle: 'MetaTitle',
2714
+ PageTemplateId: 'PageTemplateId',
2715
+ Path: 'Path',
2716
+ ProductItem: 'ProductItem',
2717
+ Props: 'Props',
2718
+ Public: 'Public',
2719
+ Roles: 'Roles',
2720
+ Status: 'Status',
2721
+ Title: 'Title',
2722
+ } as const;
2723
+
2724
+ export type PageVersionChange = (typeof PageVersionChange)[keyof typeof PageVersionChange];
2725
+ export type PageVersionsList = ListResult & {
2726
+ __typename?: 'PageVersionsList';
2727
+ limit: Scalars['Int']['output'];
2728
+ pageVersions: Array<PageVersion>;
2729
+ totalCount: Scalars['Int']['output'];
2730
+ };
2731
+
2732
+ export type PagesList = ListResult & {
2733
+ __typename?: 'PagesList';
2734
+ limit: Scalars['Int']['output'];
2735
+ pages: Array<Page>;
2736
+ totalCount: Scalars['Int']['output'];
2737
+ };
2738
+
2739
+ export type PasswordResetInfo = {
2740
+ __typename?: 'PasswordResetInfo';
2741
+ name: Scalars['String']['output'];
2742
+ };
2743
+
2744
+ export const PasswordStatus = {
2745
+ MigratedWP: 'MigratedWP',
2746
+ None: 'None',
2747
+ Ok: 'Ok',
2748
+ Temporary: 'Temporary',
2749
+ } as const;
2750
+
2751
+ export type PasswordStatus = (typeof PasswordStatus)[keyof typeof PasswordStatus];
2752
+ /** Temporary for the rename. */
2753
+ export const PermissionName = {
2754
+ /** Create (i.e., add) extensions. */
2755
+ CreateExtension: 'CreateExtension',
2756
+ /** Create extension versions for existing extensions. This includes deploying new code. */
2757
+ CreateExtensionVersion: 'CreateExtensionVersion',
2758
+ /** Create sites. */
2759
+ CreateSite: 'CreateSite',
2760
+ /** Create page and form templates. */
2761
+ CreateTemplate: 'CreateTemplate',
2762
+ /** Create a user in any org. */
2763
+ CreateUser: 'CreateUser',
2764
+ /** Edit or manage everything else not covered by other permissions. */
2765
+ Edit: 'Edit',
2766
+ /** Edit, including creating and deleting, any component. */
2767
+ EditComponent: 'EditComponent',
2768
+ /** Edit, including creating and deleting, any course. */
2769
+ EditCourse: 'EditCourse',
2770
+ /** Edit, including creating and deleting, any custom component. */
2771
+ EditCustomComponent: 'EditCustomComponent',
2772
+ /** Edit, including creating and deleting, any custom field. */
2773
+ EditCustomField: 'EditCustomField',
2774
+ /** Edit any customer site, including its pages and forms, but not necessarily domain. */
2775
+ EditCustomerSite: 'EditCustomerSite',
2776
+ /** Edit any extension. This does not include creating extension versions (i.e., deploying new code). */
2777
+ EditExtension: 'EditExtension',
2778
+ /** Edit any help ticket's status. */
2779
+ EditHelpTicketStatus: 'EditHelpTicketStatus',
2780
+ /** Edit any platform site, including its pages and forms, but not necessarily domain. */
2781
+ EditPlatformSite: 'EditPlatformSite',
2782
+ /** Edit, including creating and deleting, any sequence. */
2783
+ EditSequence: 'EditSequence',
2784
+ /** Edit any user's position in a sequence. */
2785
+ EditSequenceUser: 'EditSequenceUser',
2786
+ /** Edit any site's settings, pages, forms, and layouts. */
2787
+ EditSite: 'EditSite',
2788
+ /** Edit any site's domain. */
2789
+ EditSiteDomain: 'EditSiteDomain',
2790
+ /** Edit any site's TLS certificate, including creating and deleting certificates. Does not including editing TLS certificates. */
2791
+ EditSiteTlsCertificate: 'EditSiteTlsCertificate',
2792
+ /** Edit any subscription. */
2793
+ EditSubscription: 'EditSubscription',
2794
+ /** Edit any page and form template. */
2795
+ EditTemplate: 'EditTemplate',
2796
+ /** Edit any user's email address. */
2797
+ EditUserEmail: 'EditUserEmail',
2798
+ /** Edit which org any user is in and whether a user is an org owner. */
2799
+ EditUserOrg: 'EditUserOrg',
2800
+ /** Edit any user's first and last name. */
2801
+ EditUserProfile: 'EditUserProfile',
2802
+ /** Edit any user's role. */
2803
+ EditUserRole: 'EditUserRole',
2804
+ /** Edit any user's status. */
2805
+ EditUserStatus: 'EditUserStatus',
2806
+ /** Sync any form template to forms. */
2807
+ SyncFormTemplateToForms: 'SyncFormTemplateToForms',
2808
+ /** Sync any page template to pages. */
2809
+ SyncPageTemplateToPages: 'SyncPageTemplateToPages',
2810
+ /** View anything except for sites. */
2811
+ View: 'View',
2812
+ /** View any course. */
2813
+ ViewCourse: 'ViewCourse',
2814
+ /** View any extension. */
2815
+ ViewExtension: 'ViewExtension',
2816
+ /** View any site, including pages, forms, and layouts, and components. */
2817
+ ViewSite: 'ViewSite',
2818
+ /** View any page or form template. */
2819
+ ViewTemplate: 'ViewTemplate',
2820
+ } as const;
2821
+
2822
+ export type PermissionName = (typeof PermissionName)[keyof typeof PermissionName];
2823
+ export type PermissionNamesListUpdate = {
2824
+ value: Array<PermissionName>;
2825
+ };
2826
+
2827
+ export type Platform = {
2828
+ __typename?: 'Platform';
2829
+ activeCampaignApi?: Maybe<ActiveCampaignApi>;
2830
+ activeCampaignApiToken?: Maybe<Scalars['String']['output']>;
2831
+ activeCampaignApiUrl?: Maybe<Scalars['String']['output']>;
2832
+ activeCampaignTagsSyncConfig?: Maybe<Array<ActiveCampaignTagsSyncConfig>>;
2833
+ admins: PlatformAdminUsersList;
2834
+ defaultFormFormattedDataTemplate: Scalars['String']['output'];
2835
+ defaultFormNotificationEmailBodyTemplate: Scalars['String']['output'];
2836
+ emailReplyToAddress?: Maybe<Scalars['String']['output']>;
2837
+ emailSendFromAddress: Scalars['String']['output'];
2838
+ enableScoreMyCall: Scalars['Boolean']['output'];
2839
+ handle: Scalars['String']['output'];
2840
+ id: Scalars['String']['output'];
2841
+ mainSiteId?: Maybe<Scalars['String']['output']>;
2842
+ mixpanelToken?: Maybe<Scalars['String']['output']>;
2843
+ name: Scalars['String']['output'];
2844
+ sendGridApiKey?: Maybe<Scalars['String']['output']>;
2845
+ stripeSecretKey?: Maybe<Scalars['String']['output']>;
2846
+ stripeWebhookSigningSecret?: Maybe<Scalars['String']['output']>;
2847
+ webhookHelpTicketCreatedUrl?: Maybe<Scalars['String']['output']>;
2848
+ webhookOrganizationPeerUserCreatedUrl?: Maybe<Scalars['String']['output']>;
2849
+ webhookRegisterUserSecret?: Maybe<Scalars['String']['output']>;
2850
+ webhookSubscriptionActivatedUrl?: Maybe<Scalars['String']['output']>;
2851
+ zendeskApiToken?: Maybe<Scalars['String']['output']>;
2852
+ zendeskHelpTicketTags?: Maybe<Array<Scalars['String']['output']>>;
2853
+ zendeskSubdomain?: Maybe<Scalars['String']['output']>;
2854
+ zendeskUserAuthJwtKey?: Maybe<Scalars['String']['output']>;
2855
+ zendeskUserAuthJwtKeyId?: Maybe<Scalars['String']['output']>;
2856
+ zendeskUsername?: Maybe<Scalars['String']['output']>;
2857
+ zendeskWebhookSigningSecret?: Maybe<Scalars['String']['output']>;
2858
+ };
2859
+
2860
+ /** An object linking a platform and an admin user. */
2861
+ export type PlatformAdminUser = {
2862
+ __typename?: 'PlatformAdminUser';
2863
+ active: Scalars['Boolean']['output'];
2864
+ adminUser: AdminUser;
2865
+ id: Scalars['String']['output'];
2866
+ owner: Scalars['Boolean']['output'];
2867
+ permissions: Array<PlatformAdminUserPermission>;
2868
+ platform: Platform;
2869
+ };
2870
+
2871
+ export type PlatformAdminUserPermission = {
2872
+ __typename?: 'PlatformAdminUserPermission';
2873
+ id: Scalars['String']['output'];
2874
+ permission: PermissionName;
2875
+ };
2876
+
2877
+ export type PlatformAdminUsersList = ListResult & {
2878
+ __typename?: 'PlatformAdminUsersList';
2879
+ limit: Scalars['Int']['output'];
2880
+ platformAdminUsers: Array<PlatformAdminUser>;
2881
+ totalCount: Scalars['Int']['output'];
2882
+ };
2883
+
2884
+ export type PreviewStripeCoupon = {
2885
+ __typename?: 'PreviewStripeCoupon';
2886
+ amountOff?: Maybe<Scalars['String']['output']>;
2887
+ currency: Scalars['String']['output'];
2888
+ duration: StripeCouponDuration;
2889
+ /** The number of months. Only applies of duration is repeating. */
2890
+ durationMonths?: Maybe<Scalars['Int']['output']>;
2891
+ /** The percentage off the price of the plan (0-100). */
2892
+ percentOff?: Maybe<Scalars['Int']['output']>;
2893
+ valid: Scalars['Boolean']['output'];
2894
+ };
2895
+
2896
+ export type PreviewStripePromoCode = {
2897
+ __typename?: 'PreviewStripePromoCode';
2898
+ coupon: PreviewStripeCoupon;
2899
+ valid: Scalars['Boolean']['output'];
2900
+ };
2901
+
2902
+ export type PreviewStripeUpcomingInvoiceErrorResult = {
2903
+ __typename?: 'PreviewStripeUpcomingInvoiceErrorResult';
2904
+ message: Scalars['String']['output'];
2905
+ };
2906
+
2907
+ export type PreviewStripeUpcomingInvoiceResult =
2908
+ | PreviewStripeUpcomingInvoiceErrorResult
2909
+ | PreviewStripeUpcomingInvoiceSuccessResult;
2910
+
2911
+ export type PreviewStripeUpcomingInvoiceSuccessResult = {
2912
+ __typename?: 'PreviewStripeUpcomingInvoiceSuccessResult';
2913
+ currency: Scalars['String']['output'];
2914
+ promoCode?: Maybe<PreviewStripePromoCode>;
2915
+ subscriptionPlanId: Scalars['String']['output'];
2916
+ /** Total of the invoice before any invoice-level discount or exclusive tax is applied. Formatted in the invoice's currency. */
2917
+ subtotal: Scalars['String']['output'];
2918
+ /** Total after discounts and taxes. Formatted in the invoice's currency. */
2919
+ total: Scalars['String']['output'];
2920
+ };
2921
+
2922
+ export type ProductItemOccurrences = {
2923
+ __typename?: 'ProductItemOccurrences';
2924
+ documents: DocumentsList;
2925
+ pages: PagesList;
2926
+ };
2927
+
2928
+ export type ProductItemOccurrencesDocumentsArgs = {
2929
+ limit?: InputMaybe<Scalars['Int']['input']>;
2930
+ page?: InputMaybe<Scalars['Int']['input']>;
2931
+ };
2932
+
2933
+ export type ProductItemOccurrencesPagesArgs = {
2934
+ limit?: InputMaybe<Scalars['Int']['input']>;
2935
+ page?: InputMaybe<Scalars['Int']['input']>;
2936
+ };
2937
+
2938
+ export type ProductItemPicklist = ListResult & {
2939
+ __typename?: 'ProductItemPicklist';
2940
+ limit: Scalars['Int']['output'];
2941
+ productItems: Array<Scalars['String']['output']>;
2942
+ totalCount: Scalars['Int']['output'];
2943
+ };
2944
+
2945
+ export type ProductsList = ListResult & {
2946
+ __typename?: 'ProductsList';
2947
+ limit: Scalars['Int']['output'];
2948
+ products: Array<SubscriptionPlan>;
2949
+ totalCount: Scalars['Int']['output'];
2950
+ };
2951
+
2952
+ export type PromoCode = {
2953
+ __typename?: 'PromoCode';
2954
+ code: Scalars['String']['output'];
2955
+ id: Scalars['String']['output'];
2956
+ successMessage?: Maybe<Delta>;
2957
+ };
2958
+
2959
+ export type PromoCodeInput = {
2960
+ code: Scalars['String']['input'];
2961
+ id: Scalars['String']['input'];
2962
+ successMessage?: InputMaybe<RichTextInput>;
2963
+ };
2964
+
2965
+ export type PromoCodePicklist = ListResult & {
2966
+ __typename?: 'PromoCodePicklist';
2967
+ limit: Scalars['Int']['output'];
2968
+ promoCodes: Array<Scalars['String']['output']>;
2969
+ totalCount: Scalars['Int']['output'];
2970
+ };
2971
+
2972
+ export const PromoCodeType = {
2973
+ Custom: 'Custom',
2974
+ Stripe: 'Stripe',
2975
+ } as const;
2976
+
2977
+ export type PromoCodeType = (typeof PromoCodeType)[keyof typeof PromoCodeType];
2978
+ export type PublicSite = {
2979
+ __typename?: 'PublicSite';
2980
+ addressCity?: Maybe<Scalars['String']['output']>;
2981
+ addressLine1?: Maybe<Scalars['String']['output']>;
2982
+ addressLine2?: Maybe<Scalars['String']['output']>;
2983
+ addressState?: Maybe<Scalars['String']['output']>;
2984
+ addressZip?: Maybe<Scalars['String']['output']>;
2985
+ agencyPrimaryPhone?: Maybe<Scalars['String']['output']>;
2986
+ agentFirstName?: Maybe<Scalars['String']['output']>;
2987
+ agentLastName?: Maybe<Scalars['String']['output']>;
2988
+ agentPhotoUrl?: Maybe<Scalars['String']['output']>;
2989
+ custom: CustomFieldValuesList;
2990
+ domain: Scalars['String']['output'];
2991
+ form: PublicSiteForm;
2992
+ googlePlaceId?: Maybe<Scalars['String']['output']>;
2993
+ id: Scalars['String']['output'];
2994
+ latestAgreement?: Maybe<Agreement>;
2995
+ /** The layout with the longest pathPrefix that matches the specified path. */
2996
+ layoutForPath?: Maybe<Layout>;
2997
+ logoIconUrl?: Maybe<Scalars['String']['output']>;
2998
+ logoUrl?: Maybe<Scalars['String']['output']>;
2999
+ name: Scalars['String']['output'];
3000
+ /** Get a published page by path. */
3001
+ page?: Maybe<PublicSitePage>;
3002
+ /** Get published pages, optionally filtering by a path prefix. */
3003
+ pages: PublicSitePagesList;
3004
+ platformId: Scalars['String']['output'];
3005
+ useCustomPrivacyPolicy: Scalars['Boolean']['output'];
3006
+ useCustomTermsOfUse: Scalars['Boolean']['output'];
3007
+ };
3008
+
3009
+ export type PublicSiteFormArgs = {
3010
+ id: Scalars['String']['input'];
3011
+ };
3012
+
3013
+ export type PublicSiteLatestAgreementArgs = {
3014
+ type: AgreementType;
3015
+ };
3016
+
3017
+ export type PublicSiteLayoutForPathArgs = {
3018
+ path: Scalars['String']['input'];
3019
+ };
3020
+
3021
+ export type PublicSitePageArgs = {
3022
+ path: Scalars['String']['input'];
3023
+ };
3024
+
3025
+ export type PublicSitePagesArgs = {
3026
+ limit?: InputMaybe<Scalars['Int']['input']>;
3027
+ page?: InputMaybe<Scalars['Int']['input']>;
3028
+ pathPrefix?: InputMaybe<Scalars['String']['input']>;
3029
+ };
3030
+
3031
+ export type PublicSiteForm = {
3032
+ __typename?: 'PublicSiteForm';
3033
+ components: Scalars['String']['output'];
3034
+ confirmationAction: ConfirmationAction;
3035
+ confirmationMessageComponents?: Maybe<Scalars['String']['output']>;
3036
+ confirmationRedirectParameters: Array<FormConfirmationRedirectUrlParameter>;
3037
+ confirmationRedirectUrl?: Maybe<Scalars['String']['output']>;
3038
+ id: Scalars['String']['output'];
3039
+ /** Only the enabled steps. */
3040
+ steps: Array<FormStep>;
3041
+ };
3042
+
3043
+ export type PublicSitePage = {
3044
+ __typename?: 'PublicSitePage';
3045
+ bodyStyles: Scalars['String']['output'];
3046
+ components: Scalars['String']['output'];
3047
+ id: Scalars['String']['output'];
3048
+ metaDescription?: Maybe<Scalars['String']['output']>;
3049
+ metaRobots: Array<Scalars['String']['output']>;
3050
+ metaTitle?: Maybe<Scalars['String']['output']>;
3051
+ path: Scalars['String']['output'];
3052
+ props?: Maybe<Scalars['String']['output']>;
3053
+ resolvedLayout?: Maybe<Layout>;
3054
+ title: Scalars['String']['output'];
3055
+ };
3056
+
3057
+ export type PublicSitePagesList = ListResult & {
3058
+ __typename?: 'PublicSitePagesList';
3059
+ limit: Scalars['Int']['output'];
3060
+ pages: Array<PublicSitePage>;
3061
+ totalCount: Scalars['Int']['output'];
3062
+ };
3063
+
3064
+ export const PublishStatus = {
3065
+ /** TODO: Replace Deleted with Archived. */
3066
+ Deleted: 'Deleted',
3067
+ Draft: 'Draft',
3068
+ Published: 'Published',
3069
+ } as const;
3070
+
3071
+ export type PublishStatus = (typeof PublishStatus)[keyof typeof PublishStatus];
3072
+ export type PublishStatusUpdate = {
3073
+ value: PublishStatus;
3074
+ };
3075
+
3076
+ export type Query = {
3077
+ __typename?: 'Query';
3078
+ apiTokens: ApiTokensList;
3079
+ applyCustomPromoCode: ApplyCustomPromoCodeResult;
3080
+ /**
3081
+ * Get active components that can be used for the visual builder on a platform. Results include built-in,
3082
+ * custom, and remote extension-provided components.
3083
+ */
3084
+ builderComponents: BuilderComponentsList;
3085
+ component: Component;
3086
+ components: ComponentsList;
3087
+ course: Course;
3088
+ courses: CoursesList;
3089
+ customTables: CustomTablesList;
3090
+ document: Document;
3091
+ documentDownloadPrompts: Array<DocumentDownloadPrompt>;
3092
+ documents: Array<Document>;
3093
+ extensions: ExtensionsList;
3094
+ file: File;
3095
+ form: Form;
3096
+ formEntries: FormEntriesList;
3097
+ formTemplate: FormTemplate;
3098
+ formTemplates: Array<FormTemplate>;
3099
+ forms: Array<Form>;
3100
+ /**
3101
+ * Get help tickets. For a user without the View permission on the specified platform, only the user’s own
3102
+ * help tickets are returned (and platformId needs to be the user’s own platform ID).
3103
+ */
3104
+ helpTickets: HelpTicketsList;
3105
+ helpTickets2: HelpTicketsList;
3106
+ /**
3107
+ * Get an object with the form data with which to initialize the specified form. The result factors
3108
+ * in the signed in user, if any. The request needs to be sent to the API endpoint of the site on
3109
+ * which the form is being shown.
3110
+ */
3111
+ initialFormData: InitialFormData;
3112
+ layout: Layout;
3113
+ layoutTemplate: LayoutTemplate;
3114
+ layouts: LayoutsList;
3115
+ lesson: Lesson;
3116
+ liveCustomFields: Array<CustomField>;
3117
+ me?: Maybe<User>;
3118
+ me2?: Maybe<Me>;
3119
+ multiOrgView: Array<Organization>;
3120
+ organization: Organization;
3121
+ organizations: OrganizationsList;
3122
+ page: Page;
3123
+ /** Get a page template. For unauthenticated requests, a template is returned only if it's published. */
3124
+ pageTemplate: PageTemplate;
3125
+ pageTemplates: PageTemplatesList;
3126
+ pageTemplates2: PageTemplatesList;
3127
+ passwordResetInfo: PasswordResetInfo;
3128
+ platform: Platform;
3129
+ previewStripeUpcomingInvoice: PreviewStripeUpcomingInvoiceResult;
3130
+ productItemOccurrences: ProductItemOccurrences;
3131
+ productItemPicklist: ProductItemPicklist;
3132
+ products: ProductsList;
3133
+ promoCodePicklist: PromoCodePicklist;
3134
+ publicSite: PublicSite;
3135
+ remoteComponent: RemoteComponent;
3136
+ reviews: ReviewsList;
3137
+ scoreMyCallEntries: Array<ScoreMyCallEntry>;
3138
+ scoreMyCallEntryFileUrl: Scalars['String']['output'];
3139
+ sequence: Sequence;
3140
+ sequences: SequencesList;
3141
+ site: Site;
3142
+ siteTemplate: SiteTemplate;
3143
+ siteTemplates: SiteTemplatesList;
3144
+ sites: SitesList;
3145
+ stageBlueprint: StageBlueprint;
3146
+ subscription: Sub;
3147
+ subscriptionAuditLogs: SubscriptionAuditLogsList;
3148
+ /**
3149
+ * Get the subscription checkout options for the specified products. The options are sorted in the same order
3150
+ * as the input IDs.
3151
+ */
3152
+ subscriptionCheckoutOptions: Array<SubscriptionCheckoutOption>;
3153
+ subscriptionPlan: SubscriptionPlan;
3154
+ subscriptions: SubscriptionsList;
3155
+ user: User;
3156
+ userAuditLogs: UserAuditLogsList;
3157
+ users: UsersList;
3158
+ };
3159
+
3160
+ export type QueryApplyCustomPromoCodeArgs = {
3161
+ promoCode: Scalars['String']['input'];
3162
+ subscriptionPlanId: Scalars['String']['input'];
3163
+ };
3164
+
3165
+ export type QueryBuilderComponentsArgs = {
3166
+ platformId: Scalars['String']['input'];
3167
+ };
3168
+
3169
+ export type QueryComponentArgs = {
3170
+ id: Scalars['String']['input'];
3171
+ };
3172
+
3173
+ export type QueryComponentsArgs = {
3174
+ archived?: InputMaybe<Scalars['Boolean']['input']>;
3175
+ limit?: InputMaybe<Scalars['Int']['input']>;
3176
+ page?: InputMaybe<Scalars['Int']['input']>;
3177
+ platformId: Scalars['String']['input'];
3178
+ };
3179
+
3180
+ export type QueryCourseArgs = {
3181
+ id: Scalars['String']['input'];
3182
+ };
3183
+
3184
+ export type QueryCoursesArgs = {
3185
+ platformId: Scalars['String']['input'];
3186
+ };
3187
+
3188
+ export type QueryCustomTablesArgs = {
3189
+ limit?: InputMaybe<Scalars['Int']['input']>;
3190
+ object?: InputMaybe<CustomTableObject>;
3191
+ page?: InputMaybe<Scalars['Int']['input']>;
3192
+ platformId: Scalars['String']['input'];
3193
+ };
3194
+
3195
+ export type QueryDocumentArgs = {
3196
+ id: Scalars['String']['input'];
3197
+ };
3198
+
3199
+ export type QueryDocumentDownloadPromptsArgs = {
3200
+ platformId: Scalars['String']['input'];
3201
+ };
3202
+
3203
+ export type QueryDocumentsArgs = {
3204
+ platformId: Scalars['String']['input'];
3205
+ };
3206
+
3207
+ export type QueryExtensionsArgs = {
3208
+ limit?: InputMaybe<Scalars['Int']['input']>;
3209
+ page?: InputMaybe<Scalars['Int']['input']>;
3210
+ platformId: Scalars['String']['input'];
3211
+ };
3212
+
3213
+ export type QueryFileArgs = {
3214
+ id: Scalars['String']['input'];
3215
+ };
3216
+
3217
+ export type QueryFormArgs = {
3218
+ id: Scalars['String']['input'];
3219
+ };
3220
+
3221
+ export type QueryFormEntriesArgs = {
3222
+ formId?: InputMaybe<Scalars['String']['input']>;
3223
+ fromDate?: InputMaybe<Scalars['Date']['input']>;
3224
+ limit?: InputMaybe<Scalars['Int']['input']>;
3225
+ page?: InputMaybe<Scalars['Int']['input']>;
3226
+ siteId: Scalars['String']['input'];
3227
+ toDate?: InputMaybe<Scalars['Date']['input']>;
3228
+ };
3229
+
3230
+ export type QueryFormTemplateArgs = {
3231
+ id: Scalars['String']['input'];
3232
+ };
3233
+
3234
+ export type QueryFormTemplatesArgs = {
3235
+ platformId: Scalars['String']['input'];
3236
+ status?: InputMaybe<PublishStatus>;
3237
+ };
3238
+
3239
+ export type QueryFormsArgs = {
3240
+ siteId: Scalars['String']['input'];
3241
+ };
3242
+
3243
+ export type QueryHelpTicketsArgs = {
3244
+ limit?: Scalars['Int']['input'];
3245
+ page?: Scalars['Int']['input'];
3246
+ platformId: Scalars['String']['input'];
3247
+ };
3248
+
3249
+ export type QueryHelpTickets2Args = {
3250
+ limit?: Scalars['Int']['input'];
3251
+ page?: Scalars['Int']['input'];
3252
+ platformId: Scalars['String']['input'];
3253
+ };
3254
+
3255
+ export type QueryInitialFormDataArgs = {
3256
+ formId: Scalars['String']['input'];
3257
+ pageId?: InputMaybe<Scalars['String']['input']>;
3258
+ pageUrl: Scalars['String']['input'];
3259
+ };
3260
+
3261
+ export type QueryLayoutArgs = {
3262
+ id: Scalars['String']['input'];
3263
+ };
3264
+
3265
+ export type QueryLayoutTemplateArgs = {
3266
+ id: Scalars['String']['input'];
3267
+ };
3268
+
3269
+ export type QueryLayoutsArgs = {
3270
+ siteId: Scalars['String']['input'];
3271
+ };
3272
+
3273
+ export type QueryLessonArgs = {
3274
+ id: Scalars['String']['input'];
3275
+ };
3276
+
3277
+ export type QueryLiveCustomFieldsArgs = {
3278
+ object: CustomTableObject;
3279
+ platformId: Scalars['String']['input'];
3280
+ };
3281
+
3282
+ export type QueryMultiOrgViewArgs = {
3283
+ organizationId: Scalars['String']['input'];
3284
+ };
3285
+
3286
+ export type QueryOrganizationArgs = {
3287
+ id: Scalars['String']['input'];
3288
+ };
3289
+
3290
+ export type QueryOrganizationsArgs = {
3291
+ id?: InputMaybe<IdFilter>;
3292
+ limit?: InputMaybe<Scalars['Int']['input']>;
3293
+ page?: InputMaybe<Scalars['Int']['input']>;
3294
+ platformId: Scalars['String']['input'];
3295
+ search?: InputMaybe<Scalars['String']['input']>;
3296
+ };
3297
+
3298
+ export type QueryPageArgs = {
3299
+ id: Scalars['String']['input'];
3300
+ };
3301
+
3302
+ export type QueryPageTemplateArgs = {
3303
+ id: Scalars['String']['input'];
3304
+ };
3305
+
3306
+ export type QueryPageTemplatesArgs = {
3307
+ id?: InputMaybe<IdFilter>;
3308
+ platformId: Scalars['String']['input'];
3309
+ siteTemplateId?: InputMaybe<StringListFilter>;
3310
+ status?: InputMaybe<Array<PublishStatus>>;
3311
+ };
3312
+
3313
+ export type QueryPageTemplates2Args = {
3314
+ id?: InputMaybe<IdFilter>;
3315
+ platformId: Scalars['String']['input'];
3316
+ siteTemplateId?: InputMaybe<StringListFilter>;
3317
+ status?: InputMaybe<Array<PublishStatus>>;
3318
+ };
3319
+
3320
+ export type QueryPasswordResetInfoArgs = {
3321
+ key: Scalars['String']['input'];
3322
+ };
3323
+
3324
+ export type QueryPlatformArgs = {
3325
+ id: Scalars['String']['input'];
3326
+ };
3327
+
3328
+ export type QueryPreviewStripeUpcomingInvoiceArgs = {
3329
+ promoCode?: InputMaybe<Scalars['String']['input']>;
3330
+ subscriptionPlanId: Scalars['String']['input'];
3331
+ };
3332
+
3333
+ export type QueryProductItemOccurrencesArgs = {
3334
+ item: Scalars['String']['input'];
3335
+ platformId: Scalars['String']['input'];
3336
+ };
3337
+
3338
+ export type QueryProductItemPicklistArgs = {
3339
+ limit?: InputMaybe<Scalars['Int']['input']>;
3340
+ page?: InputMaybe<Scalars['Int']['input']>;
3341
+ platformId: Scalars['String']['input'];
3342
+ };
3343
+
3344
+ export type QueryProductsArgs = {
3345
+ limit?: Scalars['Int']['input'];
3346
+ page?: Scalars['Int']['input'];
3347
+ platformId: Scalars['String']['input'];
3348
+ };
3349
+
3350
+ export type QueryPromoCodePicklistArgs = {
3351
+ platformId: Scalars['String']['input'];
3352
+ };
3353
+
3354
+ export type QueryPublicSiteArgs = {
3355
+ id: Scalars['String']['input'];
3356
+ };
3357
+
3358
+ export type QueryRemoteComponentArgs = {
3359
+ componentName: Scalars['String']['input'];
3360
+ extensionName: Scalars['String']['input'];
3361
+ };
3362
+
3363
+ export type QueryReviewsArgs = {
3364
+ limit?: InputMaybe<Scalars['Int']['input']>;
3365
+ page?: InputMaybe<Scalars['Int']['input']>;
3366
+ siteId: Scalars['String']['input'];
3367
+ };
3368
+
3369
+ export type QueryScoreMyCallEntriesArgs = {
3370
+ platformId: Scalars['String']['input'];
3371
+ shareRecording?: InputMaybe<Scalars['Boolean']['input']>;
3372
+ };
3373
+
3374
+ export type QueryScoreMyCallEntryFileUrlArgs = {
3375
+ download?: InputMaybe<Scalars['Boolean']['input']>;
3376
+ entryId: Scalars['String']['input'];
3377
+ };
3378
+
3379
+ export type QuerySequenceArgs = {
3380
+ id: Scalars['String']['input'];
3381
+ };
3382
+
3383
+ export type QuerySequencesArgs = {
3384
+ platformId: Scalars['String']['input'];
3385
+ };
3386
+
3387
+ export type QuerySiteArgs = {
3388
+ id: Scalars['String']['input'];
3389
+ };
3390
+
3391
+ export type QuerySiteTemplateArgs = {
3392
+ id: Scalars['String']['input'];
3393
+ };
3394
+
3395
+ export type QuerySiteTemplatesArgs = {
3396
+ limit?: InputMaybe<Scalars['Int']['input']>;
3397
+ page?: InputMaybe<Scalars['Int']['input']>;
3398
+ platformId: Scalars['String']['input'];
3399
+ };
3400
+
3401
+ export type QuerySitesArgs = {
3402
+ limit?: InputMaybe<Scalars['Int']['input']>;
3403
+ page?: InputMaybe<Scalars['Int']['input']>;
3404
+ platformId: Scalars['String']['input'];
3405
+ search?: InputMaybe<Scalars['String']['input']>;
3406
+ siteTemplateId?: InputMaybe<OptionalIdFilter>;
3407
+ };
3408
+
3409
+ export type QueryStageBlueprintArgs = {
3410
+ id: Scalars['String']['input'];
3411
+ };
3412
+
3413
+ export type QuerySubscriptionArgs = {
3414
+ id: Scalars['String']['input'];
3415
+ };
3416
+
3417
+ export type QuerySubscriptionAuditLogsArgs = {
3418
+ actionByUserId?: InputMaybe<Scalars['String']['input']>;
3419
+ limit: Scalars['Int']['input'];
3420
+ organizationId?: InputMaybe<Scalars['String']['input']>;
3421
+ page?: InputMaybe<Scalars['Int']['input']>;
3422
+ platformId: Scalars['String']['input'];
3423
+ subscriptionId?: InputMaybe<Scalars['String']['input']>;
3424
+ };
3425
+
3426
+ export type QuerySubscriptionCheckoutOptionsArgs = {
3427
+ subscriptionPlanIds: Array<Scalars['String']['input']>;
3428
+ };
3429
+
3430
+ export type QuerySubscriptionPlanArgs = {
3431
+ id: Scalars['String']['input'];
3432
+ };
3433
+
3434
+ export type QuerySubscriptionsArgs = {
3435
+ endAtFrom?: InputMaybe<Scalars['Date']['input']>;
3436
+ endAtTo?: InputMaybe<Scalars['Date']['input']>;
3437
+ limit?: InputMaybe<Scalars['Int']['input']>;
3438
+ page?: InputMaybe<Scalars['Int']['input']>;
3439
+ planId?: InputMaybe<Scalars['String']['input']>;
3440
+ platformId: Scalars['String']['input'];
3441
+ promoCode?: InputMaybe<OptionalStringFilter>;
3442
+ status?: InputMaybe<SubscriptionStatus>;
3443
+ };
3444
+
3445
+ export type QueryUserArgs = {
3446
+ id: Scalars['String']['input'];
3447
+ };
3448
+
3449
+ export type QueryUserAuditLogsArgs = {
3450
+ actionByUserId?: InputMaybe<Scalars['String']['input']>;
3451
+ affectedUserId?: InputMaybe<Scalars['String']['input']>;
3452
+ limit?: InputMaybe<Scalars['Int']['input']>;
3453
+ page?: InputMaybe<Scalars['Int']['input']>;
3454
+ platformId: Scalars['String']['input'];
3455
+ };
3456
+
3457
+ export type QueryUsersArgs = {
3458
+ limit?: InputMaybe<Scalars['Int']['input']>;
3459
+ organizationId?: InputMaybe<Scalars['String']['input']>;
3460
+ page?: InputMaybe<Scalars['Int']['input']>;
3461
+ platformId: Scalars['String']['input'];
3462
+ role?: InputMaybe<Scalars['String']['input']>;
3463
+ search?: InputMaybe<Scalars['String']['input']>;
3464
+ status?: InputMaybe<UserStatus>;
3465
+ };
3466
+
3467
+ export type RemoteComponent = {
3468
+ __typename?: 'RemoteComponent';
3469
+ extensionName: Scalars['String']['output'];
3470
+ id: Scalars['String']['output'];
3471
+ name: Scalars['String']['output'];
3472
+ stylesheetUrls: Array<Scalars['String']['output']>;
3473
+ url: Scalars['String']['output'];
3474
+ };
3475
+
3476
+ export type RestoreCourseVersionChangesInput = {
3477
+ changes: Array<CourseVersionChange>;
3478
+ courseVersionId: Scalars['String']['input'];
3479
+ };
3480
+
3481
+ export type RestoreCourseVersionChangesResult =
3482
+ | AuthorizationError
3483
+ | GenericInternalError
3484
+ | GenericUserError
3485
+ | RestoreCourseVersionChangesSuccessResult;
3486
+
3487
+ export type RestoreCourseVersionChangesSuccessResult = {
3488
+ __typename?: 'RestoreCourseVersionChangesSuccessResult';
3489
+ course: Course;
3490
+ };
3491
+
3492
+ export type RestoreLessonVersionChangesInput = {
3493
+ changes: Array<LessonVersionChange>;
3494
+ lessonVersionId: Scalars['String']['input'];
3495
+ };
3496
+
3497
+ export type RestoreLessonVersionChangesResult =
3498
+ | AuthorizationError
3499
+ | GenericInternalError
3500
+ | GenericUserError
3501
+ | RestoreLessonVersionChangesSuccessResult;
3502
+
3503
+ export type RestoreLessonVersionChangesSuccessResult = {
3504
+ __typename?: 'RestoreLessonVersionChangesSuccessResult';
3505
+ lesson: Lesson;
3506
+ };
3507
+
3508
+ export type RestorePageVersionChangesInput = {
3509
+ changes: Array<PageVersionChange>;
3510
+ pageVersionId: Scalars['String']['input'];
3511
+ };
3512
+
3513
+ export type RestorePageVersionChangesResult =
3514
+ | AuthorizationError
3515
+ | GenericInternalError
3516
+ | GenericUserError
3517
+ | RestorePageVersionChangesSuccessResult;
3518
+
3519
+ export type RestorePageVersionChangesSuccessResult = {
3520
+ __typename?: 'RestorePageVersionChangesSuccessResult';
3521
+ page: Page;
3522
+ };
3523
+
3524
+ export type Review = {
3525
+ __typename?: 'Review';
3526
+ createdAt: Scalars['Date']['output'];
3527
+ id: Scalars['String']['output'];
3528
+ review?: Maybe<Scalars['String']['output']>;
3529
+ starRating: Scalars['Int']['output'];
3530
+ submitterName?: Maybe<Scalars['String']['output']>;
3531
+ };
3532
+
3533
+ export type ReviewsList = ListResult & {
3534
+ __typename?: 'ReviewsList';
3535
+ limit: Scalars['Int']['output'];
3536
+ page: Scalars['Int']['output'];
3537
+ reviews: Array<Review>;
3538
+ totalCount: Scalars['Int']['output'];
3539
+ };
3540
+
3541
+ export type RichTextInput = {
3542
+ /** A JSON object */
3543
+ delta: Scalars['String']['input'];
3544
+ };
3545
+
3546
+ export type ScoreMyCallEntry = {
3547
+ __typename?: 'ScoreMyCallEntry';
3548
+ createdAt: Scalars['Date']['output'];
3549
+ formData: Scalars['String']['output'];
3550
+ id: Scalars['String']['output'];
3551
+ prospectName?: Maybe<Scalars['String']['output']>;
3552
+ shareRecording: Scalars['Boolean']['output'];
3553
+ status: ScoreMyCallEntryStatus;
3554
+ user: User;
3555
+ userId: Scalars['String']['output'];
3556
+ };
3557
+
3558
+ export const ScoreMyCallEntryStatus = {
3559
+ NotReviewed: 'NotReviewed',
3560
+ Reviewed: 'Reviewed',
3561
+ } as const;
3562
+
3563
+ export type ScoreMyCallEntryStatus =
3564
+ (typeof ScoreMyCallEntryStatus)[keyof typeof ScoreMyCallEntryStatus];
3565
+ export type Sequence = {
3566
+ __typename?: 'Sequence';
3567
+ id: Scalars['String']['output'];
3568
+ loopStages: Scalars['Boolean']['output'];
3569
+ /** The sequence's stage blueprints. For users without the View permission, the status argument is ignored and only active stage blueprints are returned. */
3570
+ stageBlueprints: Array<StageBlueprint>;
3571
+ stageLabel: Scalars['String']['output'];
3572
+ title: Scalars['String']['output'];
3573
+ };
3574
+
3575
+ export type SequenceStageBlueprintsArgs = {
3576
+ status?: InputMaybe<Array<StageBlueprintStatus>>;
3577
+ };
3578
+
3579
+ export type SequenceUser = {
3580
+ __typename?: 'SequenceUser';
3581
+ id: Scalars['String']['output'];
3582
+ nextStageBlueprintId?: Maybe<Scalars['String']['output']>;
3583
+ previousStageBlueprintId?: Maybe<Scalars['String']['output']>;
3584
+ sequence: Sequence;
3585
+ stageBlueprint: StageBlueprint;
3586
+ userId: Scalars['String']['output'];
3587
+ };
3588
+
3589
+ export type SequencesList = ListResult & {
3590
+ __typename?: 'SequencesList';
3591
+ limit: Scalars['Int']['output'];
3592
+ sequences: Array<Sequence>;
3593
+ totalCount: Scalars['Int']['output'];
3594
+ };
3595
+
3596
+ export type Site = {
3597
+ __typename?: 'Site';
3598
+ addressCity?: Maybe<Scalars['String']['output']>;
3599
+ addressLine1?: Maybe<Scalars['String']['output']>;
3600
+ addressLine2?: Maybe<Scalars['String']['output']>;
3601
+ addressState?: Maybe<Scalars['String']['output']>;
3602
+ addressZip?: Maybe<Scalars['String']['output']>;
3603
+ agencyPrimaryPhone?: Maybe<Scalars['String']['output']>;
3604
+ agentFirstName?: Maybe<Scalars['String']['output']>;
3605
+ agentLastName?: Maybe<Scalars['String']['output']>;
3606
+ agentPhotoUrl?: Maybe<Scalars['String']['output']>;
3607
+ agreements: AgreementsList;
3608
+ bodyEndCode?: Maybe<Scalars['String']['output']>;
3609
+ domain: Scalars['String']['output'];
3610
+ fontFamily: Scalars['String']['output'];
3611
+ globalCss?: Maybe<Scalars['String']['output']>;
3612
+ googlePlaceId?: Maybe<Scalars['String']['output']>;
3613
+ googleTagManagerId?: Maybe<Scalars['String']['output']>;
3614
+ headEndCode?: Maybe<Scalars['String']['output']>;
3615
+ id: Scalars['String']['output'];
3616
+ inputFieldFontFamily: Scalars['String']['output'];
3617
+ logoIconUrl?: Maybe<Scalars['String']['output']>;
3618
+ logoUrl?: Maybe<Scalars['String']['output']>;
3619
+ metaPixelId?: Maybe<Scalars['String']['output']>;
3620
+ mixpanelToken?: Maybe<Scalars['String']['output']>;
3621
+ name: Scalars['String']['output'];
3622
+ /** The org that owns the site. */
3623
+ org?: Maybe<Organization>;
3624
+ orgId?: Maybe<Scalars['String']['output']>;
3625
+ pages: PagesList;
3626
+ pages2: PagesList;
3627
+ platformId: Scalars['String']['output'];
3628
+ radixThemeColorName?: Maybe<Scalars['String']['output']>;
3629
+ siteTemplate?: Maybe<SiteTemplate>;
3630
+ siteTemplateId?: Maybe<Scalars['String']['output']>;
3631
+ stripePublishableKey?: Maybe<Scalars['String']['output']>;
3632
+ tlsCertificates: Array<TlsCertificate>;
3633
+ useCustomPrivacyPolicy: Scalars['Boolean']['output'];
3634
+ useCustomTermsOfUse: Scalars['Boolean']['output'];
3635
+ zendeskChatKey?: Maybe<Scalars['String']['output']>;
3636
+ };
3637
+
3638
+ export type SitePagesArgs = {
3639
+ limit?: InputMaybe<Scalars['Int']['input']>;
3640
+ page?: InputMaybe<Scalars['Int']['input']>;
3641
+ pageTemplateId?: InputMaybe<OptionalIdFilter>;
3642
+ search?: InputMaybe<Scalars['String']['input']>;
3643
+ status?: InputMaybe<Array<PublishStatus>>;
3644
+ };
3645
+
3646
+ export type SitePages2Args = {
3647
+ limit?: InputMaybe<Scalars['Int']['input']>;
3648
+ page?: InputMaybe<Scalars['Int']['input']>;
3649
+ pageTemplateId?: InputMaybe<OptionalIdFilter>;
3650
+ search?: InputMaybe<Scalars['String']['input']>;
3651
+ status?: InputMaybe<Array<PublishStatus>>;
3652
+ };
3653
+
3654
+ export type SiteTemplate = {
3655
+ __typename?: 'SiteTemplate';
3656
+ id: Scalars['String']['output'];
3657
+ layoutTemplates: LayoutTemplatesList;
3658
+ name: Scalars['String']['output'];
3659
+ pageTemplates: PageTemplatesList;
3660
+ };
3661
+
3662
+ export type SiteTemplateLayoutTemplatesArgs = {
3663
+ limit?: InputMaybe<Scalars['Int']['input']>;
3664
+ page?: InputMaybe<Scalars['Int']['input']>;
3665
+ };
3666
+
3667
+ export type SiteTemplatePageTemplatesArgs = {
3668
+ limit?: InputMaybe<Scalars['Int']['input']>;
3669
+ page?: InputMaybe<Scalars['Int']['input']>;
3670
+ };
3671
+
3672
+ export type SiteTemplateLayoutTemplatesInput = {
3673
+ layoutTemplateIds: Array<Scalars['String']['input']>;
3674
+ siteTemplateId: Scalars['String']['input'];
3675
+ };
3676
+
3677
+ export type SiteTemplatePageTemplatesInput = {
3678
+ pageTemplateIds: Array<Scalars['String']['input']>;
3679
+ siteTemplateId: Scalars['String']['input'];
3680
+ };
3681
+
3682
+ export type SiteTemplatesList = ListResult & {
3683
+ __typename?: 'SiteTemplatesList';
3684
+ limit: Scalars['Int']['output'];
3685
+ page: Scalars['Int']['output'];
3686
+ siteTemplates: Array<SiteTemplate>;
3687
+ totalCount: Scalars['Int']['output'];
3688
+ };
3689
+
3690
+ export type SitesList = ListResult & {
3691
+ __typename?: 'SitesList';
3692
+ limit: Scalars['Int']['output'];
3693
+ sites: Array<Site>;
3694
+ totalCount: Scalars['Int']['output'];
3695
+ };
3696
+
3697
+ export type SplitUserToNewOrgResult = GenericUserError | SplitUserToNewOrgSuccessResult;
3698
+
3699
+ export type SplitUserToNewOrgSuccessResult = {
3700
+ __typename?: 'SplitUserToNewOrgSuccessResult';
3701
+ user: User;
3702
+ };
3703
+
3704
+ /** TODO: Replace with SequenceStageUser. */
3705
+ export type Stage = {
3706
+ __typename?: 'Stage';
3707
+ date: Scalars['String']['output'];
3708
+ files: Array<File>;
3709
+ id: Scalars['String']['output'];
3710
+ isCompleted: Scalars['Boolean']['output'];
3711
+ stageBlueprint: StageBlueprint;
3712
+ state: Scalars['String']['output'];
3713
+ userId: Scalars['String']['output'];
3714
+ };
3715
+
3716
+ export type StageBlueprint = {
3717
+ __typename?: 'StageBlueprint';
3718
+ completedAt: Array<Scalars['Date']['output']>;
3719
+ completionSpec: Scalars['String']['output'];
3720
+ components: Scalars['String']['output'];
3721
+ deletedAt?: Maybe<Scalars['Date']['output']>;
3722
+ id: Scalars['String']['output'];
3723
+ name: Scalars['String']['output'];
3724
+ position: Scalars['Int']['output'];
3725
+ sequenceId: Scalars['String']['output'];
3726
+ };
3727
+
3728
+ export type StageBlueprintCompletedAtArgs = {
3729
+ userId: Scalars['String']['input'];
3730
+ };
3731
+
3732
+ export const StageBlueprintStatus = {
3733
+ Active: 'Active',
3734
+ Deleted: 'Deleted',
3735
+ } as const;
3736
+
3737
+ export type StageBlueprintStatus = (typeof StageBlueprintStatus)[keyof typeof StageBlueprintStatus];
3738
+ export type StringFilter = {
3739
+ operator: StringFilterOperator;
3740
+ value: Scalars['String']['input'];
3741
+ };
3742
+
3743
+ export const StringFilterOperator = {
3744
+ Contains: 'Contains',
3745
+ Equals: 'Equals',
3746
+ NotContains: 'NotContains',
3747
+ NotEquals: 'NotEquals',
3748
+ } as const;
3749
+
3750
+ export type StringFilterOperator = (typeof StringFilterOperator)[keyof typeof StringFilterOperator];
3751
+ export type StringListFilter = {
3752
+ operator: StringListFilterOperator;
3753
+ /**
3754
+ * If operator is Empty or NotEmpty, value is ignored and must not be provided.
3755
+ * If operator is Contains or NotContains, value must be provided and include exactly one value.
3756
+ * If operator is ContainsAll, NotContainsAll, ContainsAny, or NotContainsAny, value must be provided and include at least one value.
3757
+ */
3758
+ value?: InputMaybe<Array<Scalars['String']['input']>>;
3759
+ };
3760
+
3761
+ export const StringListFilterOperator = {
3762
+ Contains: 'Contains',
3763
+ ContainsAll: 'ContainsAll',
3764
+ ContainsAny: 'ContainsAny',
3765
+ Empty: 'Empty',
3766
+ NotContains: 'NotContains',
3767
+ NotContainsAll: 'NotContainsAll',
3768
+ NotContainsAny: 'NotContainsAny',
3769
+ NotEmpty: 'NotEmpty',
3770
+ } as const;
3771
+
3772
+ export type StringListFilterOperator =
3773
+ (typeof StringListFilterOperator)[keyof typeof StringListFilterOperator];
3774
+ export type StringListUpdate = {
3775
+ value: Array<Scalars['String']['input']>;
3776
+ };
3777
+
3778
+ /**
3779
+ * A container for an input field representing a required (i.e., non-null) string that may optionally
3780
+ * be updated. If an object of this type is provided, its value becomes the new value of the field.
3781
+ */
3782
+ export type StringUpdate = {
3783
+ value: Scalars['String']['input'];
3784
+ };
3785
+
3786
+ /** The supported coupon duration types. */
3787
+ export const StripeCouponDuration = {
3788
+ Forever: 'Forever',
3789
+ Once: 'Once',
3790
+ Repeating: 'Repeating',
3791
+ } as const;
3792
+
3793
+ export type StripeCouponDuration = (typeof StripeCouponDuration)[keyof typeof StripeCouponDuration];
3794
+ export type StripeCustomer = {
3795
+ __typename?: 'StripeCustomer';
3796
+ address?: Maybe<Address>;
3797
+ id: Scalars['String']['output'];
3798
+ phoneNumber?: Maybe<Scalars['String']['output']>;
3799
+ };
3800
+
3801
+ export type Sub = {
3802
+ __typename?: 'Sub';
3803
+ endAt?: Maybe<Scalars['Date']['output']>;
3804
+ id: Scalars['String']['output'];
3805
+ invoiceFrequency?: Maybe<InvoiceFrequency>;
3806
+ managerOrganization?: Maybe<OrganizationProfile>;
3807
+ notes: Array<SubscriptionNote>;
3808
+ plan: SubscriptionPlan;
3809
+ planId: Scalars['String']['output'];
3810
+ planProfile: SubscriptionPlanProfile;
3811
+ price: Scalars['String']['output'];
3812
+ promoCode?: Maybe<Scalars['String']['output']>;
3813
+ startAt: Scalars['Date']['output'];
3814
+ status: SubscriptionStatus;
3815
+ stripeSubscriptionId?: Maybe<Scalars['String']['output']>;
3816
+ /**
3817
+ * The SubscriptionOrganizations connecting this subscription to the orgs that are included in it.
3818
+ * If the requesting user is not a member of the manager org, the list will include only the user's own org.
3819
+ */
3820
+ subscriptionOrganizations: Array<SubscriptionOrganization>;
3821
+ };
3822
+
3823
+ export type SubmitFormResult = {
3824
+ __typename?: 'SubmitFormResult';
3825
+ sessionId: Scalars['String']['output'];
3826
+ };
3827
+
3828
+ export type SubmitScoreMyCallEntryResult = {
3829
+ __typename?: 'SubmitScoreMyCallEntryResult';
3830
+ signedUploadUrl: Scalars['String']['output'];
3831
+ };
3832
+
3833
+ export type Subscription = {
3834
+ __typename?: 'Subscription';
3835
+ stageUpdated?: Maybe<Stage>;
3836
+ };
3837
+
3838
+ export type SubscriptionStageUpdatedArgs = {
3839
+ id: Scalars['String']['input'];
3840
+ };
3841
+
3842
+ export type SubscriptionAuditLog = {
3843
+ __typename?: 'SubscriptionAuditLog';
3844
+ action: Scalars['String']['output'];
3845
+ actionByUser: UserProfile;
3846
+ createdAt: Scalars['Date']['output'];
3847
+ id: Scalars['String']['output'];
3848
+ organization?: Maybe<Organization>;
3849
+ subscription: Sub;
3850
+ };
3851
+
3852
+ export type SubscriptionAuditLogsList = ListResult & {
3853
+ __typename?: 'SubscriptionAuditLogsList';
3854
+ limit: Scalars['Int']['output'];
3855
+ logs: Array<SubscriptionAuditLog>;
3856
+ totalCount: Scalars['Int']['output'];
3857
+ };
3858
+
3859
+ /** A subset of Product fields, intentionally limited for public view. */
3860
+ export type SubscriptionCheckoutOption = {
3861
+ __typename?: 'SubscriptionCheckoutOption';
3862
+ /** Either the displayName of the Product, if set, or the name as a fallback. */
3863
+ displayName: Scalars['String']['output'];
3864
+ /** The ID of a Product. */
3865
+ id: Scalars['String']['output'];
3866
+ invoiceFrequency?: Maybe<InvoiceFrequency>;
3867
+ price: Scalars['String']['output'];
3868
+ };
3869
+
3870
+ export type SubscriptionNote = {
3871
+ __typename?: 'SubscriptionNote';
3872
+ byUser: UserProfile;
3873
+ byUserId: Scalars['String']['output'];
3874
+ createdAt: Scalars['Date']['output'];
3875
+ id: Scalars['String']['output'];
3876
+ notes: Scalars['String']['output'];
3877
+ };
3878
+
3879
+ export type SubscriptionOrganization = {
3880
+ __typename?: 'SubscriptionOrganization';
3881
+ id: Scalars['String']['output'];
3882
+ org: Organization;
3883
+ subscription: Sub;
3884
+ subscriptionId: Scalars['String']['output'];
3885
+ subscriptionOwner: Scalars['Boolean']['output'];
3886
+ };
3887
+
3888
+ export type SubscriptionPlan = {
3889
+ __typename?: 'SubscriptionPlan';
3890
+ alternativeStripePriceIds: Array<Scalars['String']['output']>;
3891
+ description?: Maybe<Scalars['String']['output']>;
3892
+ displayName?: Maybe<Scalars['String']['output']>;
3893
+ durationDays?: Maybe<Scalars['Int']['output']>;
3894
+ endAt?: Maybe<Scalars['Date']['output']>;
3895
+ id: Scalars['String']['output'];
3896
+ /** The invoice frequency for this plan. This will be null for plans that have a price of 0. */
3897
+ invoiceFrequency?: Maybe<InvoiceFrequency>;
3898
+ items: Array<Scalars['String']['output']>;
3899
+ name: Scalars['String']['output'];
3900
+ price: Scalars['String']['output'];
3901
+ promoCodes: Array<PromoCode>;
3902
+ stripePriceId?: Maybe<Scalars['String']['output']>;
3903
+ };
3904
+
3905
+ /** This type limits the type of data that can be queried from a SubscriptionPlan. */
3906
+ export type SubscriptionPlanProfile = {
3907
+ __typename?: 'SubscriptionPlanProfile';
3908
+ displayName?: Maybe<Scalars['String']['output']>;
3909
+ /** The ID of a SubscriptionPlan. */
3910
+ id: Scalars['String']['output'];
3911
+ name: Scalars['String']['output'];
3912
+ };
3913
+
3914
+ export const SubscriptionStatus = {
3915
+ Active: 'Active',
3916
+ Canceled: 'Canceled',
3917
+ Incomplete: 'Incomplete',
3918
+ IncompleteExpired: 'IncompleteExpired',
3919
+ PastDue: 'PastDue',
3920
+ Paused: 'Paused',
3921
+ Replaced: 'Replaced',
3922
+ Trialing: 'Trialing',
3923
+ Unpaid: 'Unpaid',
3924
+ } as const;
3925
+
3926
+ export type SubscriptionStatus = (typeof SubscriptionStatus)[keyof typeof SubscriptionStatus];
3927
+ export type SubscriptionsList = ListResult & {
3928
+ __typename?: 'SubscriptionsList';
3929
+ limit: Scalars['Int']['output'];
3930
+ subscriptions: Array<Sub>;
3931
+ totalCount: Scalars['Int']['output'];
3932
+ };
3933
+
3934
+ export type SyncLayoutTemplateToLayoutsInput = {
3935
+ layoutId: Scalars['String']['input'];
3936
+ layoutTemplateId: Scalars['String']['input'];
3937
+ /**
3938
+ * Whether to sync the layout’s path prefix to the template’s path prefix. If true and there is another
3939
+ * layout on the site with the template’s path prefix and is not deleted, the request will be rejected.
3940
+ */
3941
+ syncPathPrefix?: InputMaybe<Scalars['Boolean']['input']>;
3942
+ };
3943
+
3944
+ export type SyncLayoutTemplateToLayoutsResult =
3945
+ | AuthorizationError
3946
+ | GenericUserError
3947
+ | SyncLayoutTemplateToLayoutsSuccessResult;
3948
+
3949
+ export type SyncLayoutTemplateToLayoutsSuccessResult = {
3950
+ __typename?: 'SyncLayoutTemplateToLayoutsSuccessResult';
3951
+ syncedLayouts: LayoutsList;
3952
+ };
3953
+
3954
+ export type SyncPageTemplateToPagesInput = {
3955
+ /** The fields to sync. If not provided, all fields are synced. Providing an empty list is not valid. */
3956
+ fields?: InputMaybe<Array<PageTemplateSyncedField>>;
3957
+ /**
3958
+ * By default, only fields that have not been edited since the page was created or last synced are updated.
3959
+ * Any field that is listed in forceSync is updated regardless of whether it has been edited.
3960
+ * If Path is included but a given page’s site already has another published or draft page with the template’s
3961
+ * path, the page’s path will be updated, and the page will be included in the duplicatePathNotSyncedPages list.
3962
+ */
3963
+ forceSync?: InputMaybe<Array<PageTemplateSyncedField>>;
3964
+ /** Must be provided if and only if selection is PageIds. */
3965
+ pageIds?: InputMaybe<Array<Scalars['String']['input']>>;
3966
+ pageTemplateId: Scalars['String']['input'];
3967
+ /** Which pages to sync. */
3968
+ selection: SyncPageTemplateToPagesSelection;
3969
+ };
3970
+
3971
+ export type SyncPageTemplateToPagesResult =
3972
+ | AuthorizationError
3973
+ | GenericUserError
3974
+ | SyncPageTemplateToPagesSuccessResult;
3975
+
3976
+ export const SyncPageTemplateToPagesSelection = {
3977
+ All: 'All',
3978
+ PageIds: 'PageIds',
3979
+ } as const;
3980
+
3981
+ export type SyncPageTemplateToPagesSelection =
3982
+ (typeof SyncPageTemplateToPagesSelection)[keyof typeof SyncPageTemplateToPagesSelection];
3983
+ export type SyncPageTemplateToPagesSuccessResult = {
3984
+ __typename?: 'SyncPageTemplateToPagesSuccessResult';
3985
+ /** The pages that were not synced because the page’s site already has a page with the template’s path. Applies only if syncPaths is true. */
3986
+ duplicatePathNotSyncedPages: PagesList;
3987
+ /** Error messages for pages that could not be synced due to an internal or misconfiguration issue. */
3988
+ errorMessages: Array<Scalars['String']['output']>;
3989
+ /** Pages that did not have any changes to apply. */
3990
+ noChangePages: PagesList;
3991
+ syncedPages: PagesList;
3992
+ };
3993
+
3994
+ /**
3995
+ * An abstraction for a TLS certificate for a particular domain. The actual certificate may cover other domains and
3996
+ * may be used by multiple certificate map entries.
3997
+ */
3998
+ export type TlsCertificate = {
3999
+ __typename?: 'TlsCertificate';
4000
+ domain: Scalars['String']['output'];
4001
+ /** A unique string derived from the certificate's name and this domain. */
4002
+ id: Scalars['String']['output'];
4003
+ /** The state of the associated certificate map entry. This will be null if no map entry is found. */
4004
+ mapEntryState?: Maybe<GCloudCertificateMapEntryState>;
4005
+ /** The full certificate name as returned by the underlying certificate provider. */
4006
+ name: Scalars['String']['output'];
4007
+ provisioningIssueDetails?: Maybe<Scalars['String']['output']>;
4008
+ state: GCloudCertificateState;
4009
+ };
4010
+
4011
+ export type UploadFileInput = {
4012
+ mimeType: Scalars['String']['input'];
4013
+ name: Scalars['String']['input'];
4014
+ purpose: UploadFilePurpose;
4015
+ };
4016
+
4017
+ /** One and only of the fields must be set. */
4018
+ export type UploadFilePurpose = {
4019
+ customField?: InputMaybe<UploadFilePurposeCustomField>;
4020
+ document?: InputMaybe<UploadFilePurposeDocument>;
4021
+ sequenceStageUser?: InputMaybe<UploadFilePurposeSequenceStageUser>;
4022
+ siteLogo?: InputMaybe<UploadFilePurposeSiteLogo>;
4023
+ };
4024
+
4025
+ export type UploadFilePurposeCustomField = {
4026
+ customFieldName: Scalars['String']['input'];
4027
+ /** The type of entity that the custom field is set on. */
4028
+ object: CustomTableObject;
4029
+ /** The ID of the target object (e.g., a Site's ID). */
4030
+ parentId: Scalars['String']['input'];
4031
+ };
4032
+
4033
+ export type UploadFilePurposeDocument = {
4034
+ documentId: Scalars['String']['input'];
4035
+ /** If true, the file will be set as the current version on the document upon being uploaded. */
4036
+ setAsCurrentVersion: Scalars['Boolean']['input'];
4037
+ };
4038
+
4039
+ export type UploadFilePurposeSequenceStageUser = {
4040
+ sequenceStageUserId: Scalars['String']['input'];
4041
+ stateProperty: Scalars['String']['input'];
4042
+ };
4043
+
4044
+ export type UploadFilePurposeSiteLogo = {
4045
+ siteId: Scalars['String']['input'];
4046
+ };
4047
+
4048
+ export type UploadFileResult =
4049
+ | AuthorizationError
4050
+ | GenericInternalError
4051
+ | GenericUserError
4052
+ | UploadFileSuccessResult;
4053
+
4054
+ export type UploadFileSuccessResult = {
4055
+ __typename?: 'UploadFileSuccessResult';
4056
+ fileId: Scalars['String']['output'];
4057
+ signedUrl: Scalars['String']['output'];
4058
+ };
4059
+
4060
+ export type User = {
4061
+ __typename?: 'User';
4062
+ /** The latest agreement types on the current site (based on request host) to which the user has given consent. */
4063
+ currentAgreementsSigned: Array<AgreementType>;
4064
+ custom: CustomFieldValuesList;
4065
+ displayName: Scalars['String']['output'];
4066
+ email: Scalars['String']['output'];
4067
+ emailVerified: Scalars['Boolean']['output'];
4068
+ expiresAt?: Maybe<Scalars['Date']['output']>;
4069
+ firstName: Scalars['String']['output'];
4070
+ id: Scalars['String']['output'];
4071
+ lastName: Scalars['String']['output'];
4072
+ org: Organization;
4073
+ orgId: Scalars['String']['output'];
4074
+ orgPrimary: Scalars['Boolean']['output'];
4075
+ passwordExpiresAt?: Maybe<Scalars['Date']['output']>;
4076
+ passwordStatus: PasswordStatus;
4077
+ /**
4078
+ * Find or create this user's UserPlan for the specified Plan. Any user can access this field for themselves with the
4079
+ * ID of a Plan owned by the platform they belong to. A user can also access this field with the ID of a Plan owned by
4080
+ * a platform on which they have PermissionName.EditSequenceUser.
4081
+ */
4082
+ plan: UserPlan;
4083
+ planProgress: Array<UserPlanProgress>;
4084
+ plans: Array<UserPlan>;
4085
+ /** This user’s platforms where the user is an admin. */
4086
+ platformAdminUsers: Array<PlatformAdminUser>;
4087
+ /** All product items from all of the active subscriptions of the user's org. */
4088
+ productItems: Array<Scalars['String']['output']>;
4089
+ role: Scalars['String']['output'];
4090
+ /**
4091
+ * Find or create this user's SequenceUser for the specified sequence. Any user can access this field for themselves with
4092
+ * the ID of a sequence owned by the platform the user belongs to. A user can also access this field for another user if
4093
+ * the requesting user has the EditSequenceUser permission on the platform that the queried user belongs to.
4094
+ */
4095
+ sequenceUser: SequenceUser;
4096
+ status: UserStatus;
4097
+ userCourseProgresses: UserCourseProgressesList;
4098
+ zendeskChatToken?: Maybe<Scalars['String']['output']>;
4099
+ };
4100
+
4101
+ export type UserPlanArgs = {
4102
+ planId: Scalars['String']['input'];
4103
+ };
4104
+
4105
+ export type UserPlanProgressArgs = {
4106
+ contentPlanIds: Array<Scalars['String']['input']>;
4107
+ };
4108
+
4109
+ export type UserSequenceUserArgs = {
4110
+ sequenceId: Scalars['String']['input'];
4111
+ };
4112
+
4113
+ export type UserUserCourseProgressesArgs = {
4114
+ courseIds: Array<Scalars['String']['input']>;
4115
+ limit?: InputMaybe<Scalars['Int']['input']>;
4116
+ };
4117
+
4118
+ export type UserAuditLog = {
4119
+ __typename?: 'UserAuditLog';
4120
+ action: Scalars['String']['output'];
4121
+ actionByUser: UserProfile;
4122
+ createdAt: Scalars['Date']['output'];
4123
+ id: Scalars['String']['output'];
4124
+ notes?: Maybe<Scalars['String']['output']>;
4125
+ user: UserProfile;
4126
+ };
4127
+
4128
+ export type UserAuditLogsList = ListResult & {
4129
+ __typename?: 'UserAuditLogsList';
4130
+ limit: Scalars['Int']['output'];
4131
+ logs: Array<UserAuditLog>;
4132
+ totalCount: Scalars['Int']['output'];
4133
+ };
4134
+
4135
+ /**
4136
+ * This API is intentionally limited so that we do not expose an entire course or lesson, since any user can
4137
+ * request this data for themselves regardless of their subscriptions or permissions.
4138
+ */
4139
+ export type UserCourseProgress = {
4140
+ __typename?: 'UserCourseProgress';
4141
+ courseId: Scalars['String']['output'];
4142
+ courseTitle: Scalars['String']['output'];
4143
+ lessons: UserCourseProgressLessonsList;
4144
+ userId: Scalars['String']['output'];
4145
+ };
4146
+
4147
+ /** This API is intentionally limited. */
4148
+ export type UserCourseProgressLesson = {
4149
+ __typename?: 'UserCourseProgressLesson';
4150
+ /** When the user completed the lesson. */
4151
+ completedAt?: Maybe<Scalars['Date']['output']>;
4152
+ /** A Lesson ID. */
4153
+ id: Scalars['String']['output'];
4154
+ /** When the user started the lesson. */
4155
+ startedAt?: Maybe<Scalars['Date']['output']>;
4156
+ subLessons: UserCourseProgressLessonsList;
4157
+ title: Scalars['String']['output'];
4158
+ };
4159
+
4160
+ export type UserCourseProgressLessonsList = ListResult & {
4161
+ __typename?: 'UserCourseProgressLessonsList';
4162
+ lessons: Array<UserCourseProgressLesson>;
4163
+ limit: Scalars['Int']['output'];
4164
+ totalCount: Scalars['Int']['output'];
4165
+ };
4166
+
4167
+ export type UserCourseProgressesList = ListResult & {
4168
+ __typename?: 'UserCourseProgressesList';
4169
+ limit: Scalars['Int']['output'];
4170
+ totalCount: Scalars['Int']['output'];
4171
+ userCourseProgresses: Array<UserCourseProgress>;
4172
+ };
4173
+
4174
+ export type UserPlan = {
4175
+ __typename?: 'UserPlan';
4176
+ id: Scalars['String']['output'];
4177
+ nextStageBlueprintId?: Maybe<Scalars['String']['output']>;
4178
+ previousStageBlueprintId?: Maybe<Scalars['String']['output']>;
4179
+ sequence: Sequence;
4180
+ stageBlueprint: StageBlueprint;
4181
+ userId: Scalars['String']['output'];
4182
+ };
4183
+
4184
+ export type UserPlanProgress = {
4185
+ __typename?: 'UserPlanProgress';
4186
+ completedStageBlueprintIds: Array<Scalars['String']['output']>;
4187
+ plan: Sequence;
4188
+ planId: Scalars['String']['output'];
4189
+ startedStageBlueprintIds: Array<Scalars['String']['output']>;
4190
+ totalStageBlueprints: Scalars['Int']['output'];
4191
+ userId: Scalars['String']['output'];
4192
+ };
4193
+
4194
+ /** A UserProfile is a minimal set of User fields. */
4195
+ export type UserProfile = {
4196
+ __typename?: 'UserProfile';
4197
+ displayName: Scalars['String']['output'];
4198
+ email: Scalars['String']['output'];
4199
+ firstName: Scalars['String']['output'];
4200
+ id: Scalars['String']['output'];
4201
+ lastName: Scalars['String']['output'];
4202
+ };
4203
+
4204
+ export const UserStatus = {
4205
+ Active: 'Active',
4206
+ Deactivated: 'Deactivated',
4207
+ Pending: 'Pending',
4208
+ } as const;
4209
+
4210
+ export type UserStatus = (typeof UserStatus)[keyof typeof UserStatus];
4211
+ export type UsersList = ListResult & {
4212
+ __typename?: 'UsersList';
4213
+ limit: Scalars['Int']['output'];
4214
+ totalCount: Scalars['Int']['output'];
4215
+ users: Array<User>;
4216
+ };