@wirechunk/cli 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -83,6 +83,7 @@ export type AddressInput = {
83
83
  */
84
84
  export type AdminUser = {
85
85
  __typename?: 'AdminUser';
86
+ apiTokens: PersonalApiTokensList;
86
87
  displayName: Scalars['String']['output'];
87
88
  email: Scalars['String']['output'];
88
89
  emailVerified: Scalars['Boolean']['output'];
@@ -114,22 +115,9 @@ export type AgreementsList = {
114
115
  totalCount: Scalars['Int']['output'];
115
116
  };
116
117
 
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
- };
118
+ export type ApiToken = PersonalApiToken | PlatformApiToken;
131
119
 
132
- export type ApplyCustomPromoCodeResult = ApplyCustomPromoCodeSuccessResult | GenericInternalError;
120
+ export type ApplyCustomPromoCodeResult = ApplyCustomPromoCodeSuccessResult | InternalError;
133
121
 
134
122
  export type ApplyCustomPromoCodeSuccessResult = {
135
123
  __typename?: 'ApplyCustomPromoCodeSuccessResult';
@@ -139,7 +127,7 @@ export type ApplyCustomPromoCodeSuccessResult = {
139
127
  valid: Scalars['Boolean']['output'];
140
128
  };
141
129
 
142
- export type ArchiveComponentResult = ArchiveComponentSuccessResult | GenericUserError;
130
+ export type ArchiveComponentResult = ArchiveComponentSuccessResult | UserError;
143
131
 
144
132
  export type ArchiveComponentSuccessResult = {
145
133
  __typename?: 'ArchiveComponentSuccessResult';
@@ -291,33 +279,20 @@ export type CreateAdminUserInput = {
291
279
  platformId: Scalars['String']['input'];
292
280
  };
293
281
 
294
- export type CreateAdminUserResult = CreateAdminUserSuccessResult | GenericUserError;
282
+ export type CreateAdminUserResult = CreateAdminUserSuccessResult | UserError;
295
283
 
296
284
  export type CreateAdminUserSuccessResult = {
297
285
  __typename?: 'CreateAdminUserSuccessResult';
298
286
  platformAdminUser: PlatformAdminUser;
299
287
  };
300
288
 
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
289
  export type CreateComponentInput = {
315
290
  components?: InputMaybe<Scalars['String']['input']>;
316
291
  name: Scalars['String']['input'];
317
292
  platformId: Scalars['String']['input'];
318
293
  };
319
294
 
320
- export type CreateComponentResult = CreateComponentSuccessResult | GenericUserError;
295
+ export type CreateComponentResult = CreateComponentSuccessResult | UserError;
321
296
 
322
297
  export type CreateComponentSuccessResult = {
323
298
  __typename?: 'CreateComponentSuccessResult';
@@ -329,13 +304,28 @@ export type CreateCourseInput = {
329
304
  title: Scalars['String']['input'];
330
305
  };
331
306
 
332
- export type CreateCourseResult = CreateCourseSuccessResult | GenericUserError;
307
+ export type CreateCourseResult = CreateCourseSuccessResult | UserError;
333
308
 
334
309
  export type CreateCourseSuccessResult = {
335
310
  __typename?: 'CreateCourseSuccessResult';
336
311
  course: Course;
337
312
  };
338
313
 
314
+ export type CreateCustomTableEditorFormVersionInput = {
315
+ components: Scalars['String']['input'];
316
+ customTableId: Scalars['String']['input'];
317
+ };
318
+
319
+ export type CreateCustomTableEditorFormVersionResult =
320
+ | AuthorizationError
321
+ | CreateCustomTableEditorFormVersionSuccessResult
322
+ | UserError;
323
+
324
+ export type CreateCustomTableEditorFormVersionSuccessResult = {
325
+ __typename?: 'CreateCustomTableEditorFormVersionSuccessResult';
326
+ customTableEditorFormVersion: CustomTableEditorFormVersion;
327
+ };
328
+
339
329
  export type CreateExtensionInput = {
340
330
  /** A JSON object. */
341
331
  config?: InputMaybe<Scalars['String']['input']>;
@@ -344,10 +334,7 @@ export type CreateExtensionInput = {
344
334
  platformId: Scalars['String']['input'];
345
335
  };
346
336
 
347
- export type CreateExtensionResult =
348
- | CreateExtensionSuccessResult
349
- | GenericInternalError
350
- | GenericUserError;
337
+ export type CreateExtensionResult = CreateExtensionSuccessResult | InternalError | UserError;
351
338
 
352
339
  export type CreateExtensionSuccessResult = {
353
340
  __typename?: 'CreateExtensionSuccessResult';
@@ -364,14 +351,16 @@ export type CreateExtensionVersionInput = {
364
351
  extensionId: Scalars['String']['input'];
365
352
  /** The extension name is required only so that we can validate that a user is not mistakenly trying to change the name. */
366
353
  extensionName: Scalars['String']['input'];
354
+ /** A JSON object. */
355
+ manifest: Scalars['String']['input'];
367
356
  versionName: Scalars['String']['input'];
368
357
  };
369
358
 
370
359
  export type CreateExtensionVersionResult =
371
360
  | AuthorizationError
372
361
  | CreateExtensionVersionSuccessResult
373
- | GenericInternalError
374
- | GenericUserError;
362
+ | InternalError
363
+ | UserError;
375
364
 
376
365
  export type CreateExtensionVersionSuccessResult = {
377
366
  __typename?: 'CreateExtensionVersionSuccessResult';
@@ -388,7 +377,7 @@ export type CreateLayoutInput = {
388
377
  siteId: Scalars['String']['input'];
389
378
  };
390
379
 
391
- export type CreateLayoutResult = CreateLayoutSuccessResult | GenericUserError;
380
+ export type CreateLayoutResult = CreateLayoutSuccessResult | UserError;
392
381
 
393
382
  export type CreateLayoutSuccessResult = {
394
383
  __typename?: 'CreateLayoutSuccessResult';
@@ -405,7 +394,7 @@ export type CreateLayoutTemplateInput = {
405
394
  export type CreateLayoutTemplateResult =
406
395
  | AuthorizationError
407
396
  | CreateLayoutTemplateSuccessResult
408
- | GenericUserError;
397
+ | UserError;
409
398
 
410
399
  export type CreateLayoutTemplateSuccessResult = {
411
400
  __typename?: 'CreateLayoutTemplateSuccessResult';
@@ -419,7 +408,7 @@ export type CreateLessonInput = {
419
408
  title: Scalars['String']['input'];
420
409
  };
421
410
 
422
- export type CreateLessonResult = CreateLessonSuccessResult | GenericUserError;
411
+ export type CreateLessonResult = CreateLessonSuccessResult | UserError;
423
412
 
424
413
  export type CreateLessonSuccessResult = {
425
414
  __typename?: 'CreateLessonSuccessResult';
@@ -431,7 +420,7 @@ export type CreateLessonUserInput = {
431
420
  userId: Scalars['String']['input'];
432
421
  };
433
422
 
434
- export type CreateLessonUserResult = CreateLessonUserSuccessResult | GenericUserError;
423
+ export type CreateLessonUserResult = CreateLessonUserSuccessResult | UserError;
435
424
 
436
425
  export type CreateLessonUserSuccessResult = {
437
426
  __typename?: 'CreateLessonUserSuccessResult';
@@ -439,7 +428,35 @@ export type CreateLessonUserSuccessResult = {
439
428
  lessonUser: LessonUser;
440
429
  };
441
430
 
442
- export type CreateProductResult = CreateProductSuccessResult | GenericUserError;
431
+ export type CreatePersonalApiTokenInput = {
432
+ name: Scalars['String']['input'];
433
+ };
434
+
435
+ export type CreatePersonalApiTokenResult = CreatePersonalApiTokenSuccessResult | UserError;
436
+
437
+ export type CreatePersonalApiTokenSuccessResult = {
438
+ __typename?: 'CreatePersonalApiTokenSuccessResult';
439
+ apiToken: PersonalApiToken;
440
+ /** A JWT. */
441
+ token: Scalars['String']['output'];
442
+ };
443
+
444
+ export type CreatePlatformApiTokenInput = {
445
+ name: Scalars['String']['input'];
446
+ permissions: Array<PermissionInput>;
447
+ platformId: Scalars['String']['input'];
448
+ };
449
+
450
+ export type CreatePlatformApiTokenResult = CreatePlatformApiTokenSuccessResult | UserError;
451
+
452
+ export type CreatePlatformApiTokenSuccessResult = {
453
+ __typename?: 'CreatePlatformApiTokenSuccessResult';
454
+ apiToken: PlatformApiToken;
455
+ /** A JWT. */
456
+ token: Scalars['String']['output'];
457
+ };
458
+
459
+ export type CreateProductResult = CreateProductSuccessResult | UserError;
443
460
 
444
461
  export type CreateProductSuccessResult = {
445
462
  __typename?: 'CreateProductSuccessResult';
@@ -452,7 +469,7 @@ export type CreateSequenceInput = {
452
469
  title: Scalars['String']['input'];
453
470
  };
454
471
 
455
- export type CreateSequenceResult = CreateSequenceSuccessResult | GenericUserError;
472
+ export type CreateSequenceResult = CreateSequenceSuccessResult | UserError;
456
473
 
457
474
  export type CreateSequenceSuccessResult = {
458
475
  __typename?: 'CreateSequenceSuccessResult';
@@ -478,8 +495,8 @@ export type CreateSiteInput = {
478
495
  export type CreateSiteResult =
479
496
  | AuthorizationError
480
497
  | CreateSiteSuccessResult
481
- | GenericInternalError
482
- | GenericUserError;
498
+ | InternalError
499
+ | UserError;
483
500
 
484
501
  export type CreateSiteSuccessResult = {
485
502
  __typename?: 'CreateSiteSuccessResult';
@@ -493,7 +510,7 @@ export type CreateSiteTemplateInput = {
493
510
 
494
511
  export type CreateSiteTemplateLayoutTemplatesResult =
495
512
  | CreateSiteTemplateLayoutTemplatesSuccessResult
496
- | GenericUserError;
513
+ | UserError;
497
514
 
498
515
  export type CreateSiteTemplateLayoutTemplatesSuccessResult = {
499
516
  __typename?: 'CreateSiteTemplateLayoutTemplatesSuccessResult';
@@ -502,14 +519,14 @@ export type CreateSiteTemplateLayoutTemplatesSuccessResult = {
502
519
 
503
520
  export type CreateSiteTemplatePageTemplatesResult =
504
521
  | CreateSiteTemplatePageTemplatesSuccessResult
505
- | GenericUserError;
522
+ | UserError;
506
523
 
507
524
  export type CreateSiteTemplatePageTemplatesSuccessResult = {
508
525
  __typename?: 'CreateSiteTemplatePageTemplatesSuccessResult';
509
526
  siteTemplate: SiteTemplate;
510
527
  };
511
528
 
512
- export type CreateSiteTemplateResult = CreateSiteTemplateSuccessResult | GenericUserError;
529
+ export type CreateSiteTemplateResult = CreateSiteTemplateSuccessResult | UserError;
513
530
 
514
531
  export type CreateSiteTemplateSuccessResult = {
515
532
  __typename?: 'CreateSiteTemplateSuccessResult';
@@ -534,8 +551,8 @@ export type CreateUserInput = {
534
551
  export type CreateUserResult =
535
552
  | AuthorizationError
536
553
  | CreateUserSuccessResult
537
- | GenericInternalError
538
- | GenericUserError;
554
+ | InternalError
555
+ | UserError;
539
556
 
540
557
  export type CreateUserSuccessResult = {
541
558
  __typename?: 'CreateUserSuccessResult';
@@ -633,6 +650,7 @@ export type CustomFieldsList = ListResult & {
633
650
 
634
651
  export type CustomTable = {
635
652
  __typename?: 'CustomTable';
653
+ currentEditorFormVersion?: Maybe<CustomTableEditorFormVersion>;
636
654
  editorFormVersions: CustomTableEditorFormVersionsList;
637
655
  fields: CustomFieldsList;
638
656
  id: Scalars['String']['output'];
@@ -653,6 +671,7 @@ export type CustomTableVersionsArgs = {
653
671
 
654
672
  export type CustomTableEditorFormVersion = {
655
673
  __typename?: 'CustomTableEditorFormVersion';
674
+ byUser: UserProfile;
656
675
  components: Scalars['String']['output'];
657
676
  createdAt: Scalars['Date']['output'];
658
677
  id: Scalars['String']['output'];
@@ -741,7 +760,7 @@ export type CustomTablesList = ListResult & {
741
760
  export type DeleteExtensionVersionResult =
742
761
  | AuthorizationError
743
762
  | DeleteExtensionVersionSuccessResult
744
- | GenericUserError;
763
+ | UserError;
745
764
 
746
765
  export type DeleteExtensionVersionSuccessResult = {
747
766
  __typename?: 'DeleteExtensionVersionSuccessResult';
@@ -750,7 +769,7 @@ export type DeleteExtensionVersionSuccessResult = {
750
769
 
751
770
  export type DeleteSiteTemplateLayoutTemplatesResult =
752
771
  | DeleteSiteTemplateLayoutTemplatesSuccessResult
753
- | GenericUserError;
772
+ | UserError;
754
773
 
755
774
  export type DeleteSiteTemplateLayoutTemplatesSuccessResult = {
756
775
  __typename?: 'DeleteSiteTemplateLayoutTemplatesSuccessResult';
@@ -759,7 +778,7 @@ export type DeleteSiteTemplateLayoutTemplatesSuccessResult = {
759
778
 
760
779
  export type DeleteSiteTemplatePageTemplatesResult =
761
780
  | DeleteSiteTemplatePageTemplatesSuccessResult
762
- | GenericUserError;
781
+ | UserError;
763
782
 
764
783
  export type DeleteSiteTemplatePageTemplatesSuccessResult = {
765
784
  __typename?: 'DeleteSiteTemplatePageTemplatesSuccessResult';
@@ -808,10 +827,7 @@ export type DuplicateComponentInput = {
808
827
  name: Scalars['String']['input'];
809
828
  };
810
829
 
811
- export type DuplicateComponentResult =
812
- | DuplicateComponentSuccessResult
813
- | GenericInternalError
814
- | GenericUserError;
830
+ export type DuplicateComponentResult = DuplicateComponentSuccessResult | InternalError | UserError;
815
831
 
816
832
  export type DuplicateComponentSuccessResult = {
817
833
  __typename?: 'DuplicateComponentSuccessResult';
@@ -823,7 +839,7 @@ export type DuplicateCourseInput = {
823
839
  title: Scalars['String']['input'];
824
840
  };
825
841
 
826
- export type DuplicateCourseResult = DuplicateCourseSuccessResult | GenericUserError;
842
+ export type DuplicateCourseResult = DuplicateCourseSuccessResult | UserError;
827
843
 
828
844
  export type DuplicateCourseSuccessResult = {
829
845
  __typename?: 'DuplicateCourseSuccessResult';
@@ -837,14 +853,14 @@ export type DuplicateLessonInput = {
837
853
  title: Scalars['String']['input'];
838
854
  };
839
855
 
840
- export type DuplicateLessonResult = DuplicateLessonSuccessResult | GenericUserError;
856
+ export type DuplicateLessonResult = DuplicateLessonSuccessResult | UserError;
841
857
 
842
858
  export type DuplicateLessonSuccessResult = {
843
859
  __typename?: 'DuplicateLessonSuccessResult';
844
860
  lesson: Lesson;
845
861
  };
846
862
 
847
- export type DuplicateSequenceResult = DuplicateSequenceSuccessResult | GenericUserError;
863
+ export type DuplicateSequenceResult = DuplicateSequenceSuccessResult | UserError;
848
864
 
849
865
  export type DuplicateSequenceSuccessResult = {
850
866
  __typename?: 'DuplicateSequenceSuccessResult';
@@ -859,7 +875,7 @@ export type EditComponentInput = {
859
875
  propsSetupComponents?: InputMaybe<OptionalComponentsUpdate>;
860
876
  };
861
877
 
862
- export type EditComponentResult = EditComponentSuccessResult | GenericUserError;
878
+ export type EditComponentResult = EditComponentSuccessResult | UserError;
863
879
 
864
880
  export type EditComponentSuccessResult = {
865
881
  __typename?: 'EditComponentSuccessResult';
@@ -876,7 +892,7 @@ export type EditCourseInput = {
876
892
  title?: InputMaybe<StringUpdate>;
877
893
  };
878
894
 
879
- export type EditCourseResult = EditCourseSuccessResult | GenericUserError;
895
+ export type EditCourseResult = EditCourseSuccessResult | UserError;
880
896
 
881
897
  export type EditCourseSuccessResult = {
882
898
  __typename?: 'EditCourseSuccessResult';
@@ -890,12 +906,14 @@ export type EditCustomTableInput = {
890
906
  * accidentally overwrite changes made asynchronously.
891
907
  */
892
908
  consistencyKeyCurrentTableVersionId?: InputMaybe<Scalars['String']['input']>;
893
- fields: Array<CustomFieldInput>;
909
+ currentEditorFormVersionId?: InputMaybe<StringUpdate>;
910
+ /** The new set of fields. If null or omitted, no changes are made to the fields. */
911
+ fields?: InputMaybe<Array<CustomFieldInput>>;
894
912
  object: CustomTableObject;
895
913
  platformId: Scalars['String']['input'];
896
914
  };
897
915
 
898
- export type EditCustomTableResult = EditCustomTableSuccessResult | GenericUserError;
916
+ export type EditCustomTableResult = EditCustomTableSuccessResult | UserError;
899
917
 
900
918
  export type EditCustomTableSuccessResult = {
901
919
  __typename?: 'EditCustomTableSuccessResult';
@@ -910,10 +928,7 @@ export type EditExtensionInput = {
910
928
  id: Scalars['String']['input'];
911
929
  };
912
930
 
913
- export type EditExtensionResult =
914
- | AuthorizationError
915
- | EditExtensionSuccessResult
916
- | GenericUserError;
931
+ export type EditExtensionResult = AuthorizationError | EditExtensionSuccessResult | UserError;
917
932
 
918
933
  export type EditExtensionSuccessResult = {
919
934
  __typename?: 'EditExtensionSuccessResult';
@@ -923,8 +938,8 @@ export type EditExtensionSuccessResult = {
923
938
  export type EditFormStepPositionResult =
924
939
  | AuthorizationError
925
940
  | EditFormStepPositionSuccessResult
926
- | GenericInternalError
927
- | GenericUserError;
941
+ | InternalError
942
+ | UserError;
928
943
 
929
944
  export type EditFormStepPositionSuccessResult = {
930
945
  __typename?: 'EditFormStepPositionSuccessResult';
@@ -939,25 +954,28 @@ export type EditFormTemplateEmailTemplateInput = {
939
954
 
940
955
  export type EditFormTemplateEmailTemplateResult =
941
956
  | EditFormTemplateEmailTemplateSuccessResult
942
- | GenericUserError;
957
+ | UserError;
943
958
 
944
959
  export type EditFormTemplateEmailTemplateSuccessResult = {
945
960
  __typename?: 'EditFormTemplateEmailTemplateSuccessResult';
946
961
  formTemplate: FormTemplate;
947
962
  };
948
963
 
949
- export type EditFormTemplateFormattedDataTemplateInput = {
950
- formTemplateId: Scalars['String']['input'];
951
- formattedDataTemplate?: InputMaybe<OptionalStringUpdate>;
952
- useFormattedDataTemplate: Scalars['Boolean']['input'];
964
+ export type EditFormTemplateInput = {
965
+ components?: InputMaybe<ComponentsUpdate>;
966
+ emailBodyTemplate?: InputMaybe<OptionalStringUpdate>;
967
+ emailSubjectTemplate?: InputMaybe<OptionalStringUpdate>;
968
+ id: Scalars['String']['input'];
969
+ status?: InputMaybe<PublishStatusUpdate>;
970
+ title?: InputMaybe<StringUpdate>;
971
+ useEmailBodyTemplate?: InputMaybe<BooleanUpdate>;
972
+ useEmailSubjectTemplate?: InputMaybe<BooleanUpdate>;
953
973
  };
954
974
 
955
- export type EditFormTemplateFormattedDataTemplateResult =
956
- | EditFormTemplateFormattedDataTemplateSuccessResult
957
- | GenericUserError;
975
+ export type EditFormTemplateResult = AuthorizationError | EditFormTemplateSuccessResult | UserError;
958
976
 
959
- export type EditFormTemplateFormattedDataTemplateSuccessResult = {
960
- __typename?: 'EditFormTemplateFormattedDataTemplateSuccessResult';
977
+ export type EditFormTemplateSuccessResult = {
978
+ __typename?: 'EditFormTemplateSuccessResult';
961
979
  formTemplate: FormTemplate;
962
980
  };
963
981
 
@@ -969,7 +987,7 @@ export type EditLayoutInput = {
969
987
  status?: InputMaybe<PublishStatusUpdate>;
970
988
  };
971
989
 
972
- export type EditLayoutResult = EditLayoutSuccessResult | GenericUserError;
990
+ export type EditLayoutResult = EditLayoutSuccessResult | UserError;
973
991
 
974
992
  export type EditLayoutSuccessResult = {
975
993
  __typename?: 'EditLayoutSuccessResult';
@@ -987,7 +1005,7 @@ export type EditLayoutTemplateInput = {
987
1005
  export type EditLayoutTemplateResult =
988
1006
  | AuthorizationError
989
1007
  | EditLayoutTemplateSuccessResult
990
- | GenericUserError;
1008
+ | UserError;
991
1009
 
992
1010
  export type EditLayoutTemplateSuccessResult = {
993
1011
  __typename?: 'EditLayoutTemplateSuccessResult';
@@ -1005,7 +1023,7 @@ export type EditLessonInput = {
1005
1023
  title?: InputMaybe<StringUpdate>;
1006
1024
  };
1007
1025
 
1008
- export type EditLessonResult = EditLessonSuccessResult | GenericUserError;
1026
+ export type EditLessonResult = EditLessonSuccessResult | UserError;
1009
1027
 
1010
1028
  export type EditLessonSuccessResult = {
1011
1029
  __typename?: 'EditLessonSuccessResult';
@@ -1019,7 +1037,7 @@ export type EditLessonUserInput = {
1019
1037
  state?: InputMaybe<StringUpdate>;
1020
1038
  };
1021
1039
 
1022
- export type EditLessonUserResult = EditLessonUserSuccessResult | GenericUserError;
1040
+ export type EditLessonUserResult = EditLessonUserSuccessResult | UserError;
1023
1041
 
1024
1042
  export type EditLessonUserSuccessResult = {
1025
1043
  __typename?: 'EditLessonUserSuccessResult';
@@ -1036,11 +1054,11 @@ export type EditOrgPrimaryUserInput = {
1036
1054
  userId: Scalars['String']['input'];
1037
1055
  };
1038
1056
 
1039
- export type EditOrgPrimaryUserResult = EditOrgPrimaryUserSuccessResult | GenericUserError;
1057
+ export type EditOrgPrimaryUserResult = EditOrgPrimaryUserSuccessResult | UserError;
1040
1058
 
1041
1059
  export type EditOrgPrimaryUserSuccessResult = {
1042
1060
  __typename?: 'EditOrgPrimaryUserSuccessResult';
1043
- org: Organization;
1061
+ org: Org;
1044
1062
  previousPrimaryUser?: Maybe<User>;
1045
1063
  };
1046
1064
 
@@ -1062,7 +1080,7 @@ export type EditPageInput = {
1062
1080
  title?: InputMaybe<StringUpdate>;
1063
1081
  };
1064
1082
 
1065
- export type EditPageResult = AuthorizationError | EditPageSuccessResult | GenericUserError;
1083
+ export type EditPageResult = AuthorizationError | EditPageSuccessResult | UserError;
1066
1084
 
1067
1085
  export type EditPageSuccessResult = {
1068
1086
  __typename?: 'EditPageSuccessResult';
@@ -1086,10 +1104,7 @@ export type EditPageTemplateInput = {
1086
1104
  title?: InputMaybe<StringUpdate>;
1087
1105
  };
1088
1106
 
1089
- export type EditPageTemplateResult =
1090
- | AuthorizationError
1091
- | EditPageTemplateSuccessResult
1092
- | GenericUserError;
1107
+ export type EditPageTemplateResult = AuthorizationError | EditPageTemplateSuccessResult | UserError;
1093
1108
 
1094
1109
  export type EditPageTemplateSuccessResult = {
1095
1110
  __typename?: 'EditPageTemplateSuccessResult';
@@ -1100,13 +1115,13 @@ export type EditPlatformAdminUserInput = {
1100
1115
  active?: InputMaybe<BooleanUpdate>;
1101
1116
  id: Scalars['String']['input'];
1102
1117
  owner?: InputMaybe<BooleanUpdate>;
1103
- permissionNames?: InputMaybe<PermissionNamesListUpdate>;
1118
+ permissions?: InputMaybe<PermissionListUpdate>;
1104
1119
  };
1105
1120
 
1106
1121
  export type EditPlatformAdminUserResult =
1107
1122
  | AuthorizationError
1108
1123
  | EditPlatformAdminUserSuccessResult
1109
- | GenericUserError;
1124
+ | UserError;
1110
1125
 
1111
1126
  export type EditPlatformAdminUserSuccessResult = {
1112
1127
  __typename?: 'EditPlatformAdminUserSuccessResult';
@@ -1122,21 +1137,21 @@ export type EditPlatformInput = {
1122
1137
  stripeWebhookSigningSecret?: InputMaybe<OptionalStringUpdate>;
1123
1138
  };
1124
1139
 
1125
- export type EditPlatformResult = EditPlatformSuccessResult | GenericUserError;
1140
+ export type EditPlatformResult = EditPlatformSuccessResult | UserError;
1126
1141
 
1127
1142
  export type EditPlatformSuccessResult = {
1128
1143
  __typename?: 'EditPlatformSuccessResult';
1129
1144
  platform: Platform;
1130
1145
  };
1131
1146
 
1132
- export type EditProductResult = EditProductSuccessResult | GenericUserError;
1147
+ export type EditProductResult = EditProductSuccessResult | UserError;
1133
1148
 
1134
1149
  export type EditProductSuccessResult = {
1135
1150
  __typename?: 'EditProductSuccessResult';
1136
1151
  product: SubscriptionPlan;
1137
1152
  };
1138
1153
 
1139
- export type EditSequenceResult = EditSequenceSuccessResult | GenericUserError;
1154
+ export type EditSequenceResult = EditSequenceSuccessResult | UserError;
1140
1155
 
1141
1156
  export type EditSequenceSuccessResult = {
1142
1157
  __typename?: 'EditSequenceSuccessResult';
@@ -1149,7 +1164,7 @@ export type EditSequenceUserInput = {
1149
1164
  userId: Scalars['String']['input'];
1150
1165
  };
1151
1166
 
1152
- export type EditSequenceUserResult = EditSequenceUserSuccessResult | GenericUserError;
1167
+ export type EditSequenceUserResult = EditSequenceUserSuccessResult | UserError;
1153
1168
 
1154
1169
  export type EditSequenceUserSuccessResult = {
1155
1170
  __typename?: 'EditSequenceUserSuccessResult';
@@ -1174,11 +1189,7 @@ export type EditSiteInput = {
1174
1189
  zendeskChatKey?: InputMaybe<OptionalStringUpdate>;
1175
1190
  };
1176
1191
 
1177
- export type EditSiteResult =
1178
- | AuthorizationError
1179
- | EditSiteSuccessResult
1180
- | GenericInternalError
1181
- | GenericUserError;
1192
+ export type EditSiteResult = AuthorizationError | EditSiteSuccessResult | InternalError | UserError;
1182
1193
 
1183
1194
  export type EditSiteSuccessResult = {
1184
1195
  __typename?: 'EditSiteSuccessResult';
@@ -1192,7 +1203,7 @@ export type EditUserInput = {
1192
1203
  id: Scalars['String']['input'];
1193
1204
  };
1194
1205
 
1195
- export type EditUserResult = EditUserSuccessResult | GenericUserError;
1206
+ export type EditUserResult = EditUserSuccessResult | UserError;
1196
1207
 
1197
1208
  export type EditUserSuccessResult = {
1198
1209
  __typename?: 'EditUserSuccessResult';
@@ -1320,14 +1331,14 @@ export type Form = {
1320
1331
  confirmationRedirectParameters: Array<FormConfirmationRedirectUrlParameter>;
1321
1332
  confirmationRedirectUrl?: Maybe<Scalars['String']['output']>;
1322
1333
  emailBodyTemplate?: Maybe<Scalars['String']['output']>;
1334
+ emailSubjectTemplate?: Maybe<Scalars['String']['output']>;
1323
1335
  entriesTotalCount: Scalars['Int']['output'];
1324
- formattedDataTemplate?: Maybe<Scalars['String']['output']>;
1325
1336
  id: Scalars['String']['output'];
1326
1337
  steps: Array<FormStep>;
1327
1338
  submissionActions: Array<FormSubmissionAction>;
1328
1339
  title: Scalars['String']['output'];
1329
1340
  useEmailBodyTemplate: Scalars['Boolean']['output'];
1330
- useFormattedDataTemplate: Scalars['Boolean']['output'];
1341
+ useEmailSubjectTemplate: Scalars['Boolean']['output'];
1331
1342
  };
1332
1343
 
1333
1344
  export type FormConfirmationRedirectUrlParameter = {
@@ -1398,13 +1409,13 @@ export type FormTemplate = {
1398
1409
  confirmationRedirectParameters: Array<FormConfirmationRedirectUrlParameter>;
1399
1410
  confirmationRedirectUrl?: Maybe<Scalars['String']['output']>;
1400
1411
  emailBodyTemplate?: Maybe<Scalars['String']['output']>;
1401
- formattedDataTemplate?: Maybe<Scalars['String']['output']>;
1412
+ emailSubjectTemplate?: Maybe<Scalars['String']['output']>;
1402
1413
  id: Scalars['String']['output'];
1403
1414
  status: PublishStatus;
1404
1415
  steps: Array<FormTemplateStep>;
1405
1416
  title: Scalars['String']['output'];
1406
1417
  useEmailBodyTemplate: Scalars['Boolean']['output'];
1407
- useFormattedDataTemplate: Scalars['Boolean']['output'];
1418
+ useEmailSubjectTemplate: Scalars['Boolean']['output'];
1408
1419
  };
1409
1420
 
1410
1421
  export type FormTemplateStep = {
@@ -1434,16 +1445,6 @@ export const GCloudCertificateState = {
1434
1445
 
1435
1446
  export type GCloudCertificateState =
1436
1447
  (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
1448
  export type HelpTicket = {
1448
1449
  __typename?: 'HelpTicket';
1449
1450
  createdAt: Scalars['Date']['output'];
@@ -1501,7 +1502,12 @@ export type IntUpdate = {
1501
1502
  value: Scalars['Int']['input'];
1502
1503
  };
1503
1504
 
1504
- export type InvalidateApiTokenResult = GenericUserError | InvalidateApiTokenSuccessResult;
1505
+ export type InternalError = Error & {
1506
+ __typename?: 'InternalError';
1507
+ message: Scalars['String']['output'];
1508
+ };
1509
+
1510
+ export type InvalidateApiTokenResult = InvalidateApiTokenSuccessResult | UserError;
1505
1511
 
1506
1512
  export type InvalidateApiTokenSuccessResult = {
1507
1513
  __typename?: 'InvalidateApiTokenSuccessResult';
@@ -1560,6 +1566,7 @@ export type Lesson = {
1560
1566
  __typename?: 'Lesson';
1561
1567
  completionSpec?: Maybe<Scalars['String']['output']>;
1562
1568
  components: Scalars['String']['output'];
1569
+ course: Course;
1563
1570
  /**
1564
1571
  * Whether to enable lesson content when the lesson has at least one published sub-lesson.
1565
1572
  * This field is ignored when a lesson does not have any published sub-lessons as content is automatically enabled.
@@ -1567,6 +1574,10 @@ export type Lesson = {
1567
1574
  */
1568
1575
  enableContent: Scalars['Boolean']['output'];
1569
1576
  id: Scalars['String']['output'];
1577
+ /**
1578
+ * The user's lesson state. The userId field is null for unauthenticated users, in which case the field is resolved as null.
1579
+ * This API makes it more ergonomic for a client to query a course with lessons when a user may or may not be authenticated.
1580
+ */
1570
1581
  lessonUser?: Maybe<LessonUser>;
1571
1582
  parentLesson?: Maybe<Lesson>;
1572
1583
  parentLessonId?: Maybe<Scalars['String']['output']>;
@@ -1580,7 +1591,7 @@ export type Lesson = {
1580
1591
  };
1581
1592
 
1582
1593
  export type LessonLessonUserArgs = {
1583
- userId: Scalars['String']['input'];
1594
+ userId?: InputMaybe<Scalars['String']['input']>;
1584
1595
  };
1585
1596
 
1586
1597
  export type LessonSubLessonsArgs = {
@@ -1665,12 +1676,15 @@ export type ListResult = {
1665
1676
 
1666
1677
  export type Me = AdminUser | User;
1667
1678
 
1668
- export type MoveUserToOrgResult = GenericUserError | MoveUserToOrgSuccessResult;
1679
+ export type MoveUserToOrgResult = MoveUserToOrgSuccessResult | UserError;
1669
1680
 
1670
1681
  export type MoveUserToOrgSuccessResult = {
1671
1682
  __typename?: 'MoveUserToOrgSuccessResult';
1672
- sourceOrg: Organization;
1673
- targetOrg: Organization;
1683
+ /** The source org that the user was moved from. This will be null if the user was not previously in an org. */
1684
+ sourceOrg?: Maybe<Org>;
1685
+ /** The target org that the user was moved to. */
1686
+ targetOrg: Org;
1687
+ /** The updated user. */
1674
1688
  user: User;
1675
1689
  };
1676
1690
 
@@ -1684,9 +1698,9 @@ export type Mutation = {
1684
1698
  * Requires the requesting user to be an owner of the platform.
1685
1699
  */
1686
1700
  createAdminUser: CreateAdminUserResult;
1687
- createApiToken: CreateApiTokenResult;
1688
1701
  createComponent: CreateComponentResult;
1689
1702
  createCourse: CreateCourseResult;
1703
+ createCustomTableEditorFormVersion: CreateCustomTableEditorFormVersionResult;
1690
1704
  createDocument: Document;
1691
1705
  createDocumentDownloadPrompt: DocumentDownloadPrompt;
1692
1706
  createExtension: CreateExtensionResult;
@@ -1704,6 +1718,8 @@ export type Mutation = {
1704
1718
  createPage: Page;
1705
1719
  createPageFromTemplate: Page;
1706
1720
  createPageTemplate: PageTemplate;
1721
+ createPersonalApiToken: CreatePersonalApiTokenResult;
1722
+ createPlatformApiToken: CreatePlatformApiTokenResult;
1707
1723
  createProduct: CreateProductResult;
1708
1724
  createSequence: CreateSequenceResult;
1709
1725
  createSite: CreateSiteResult;
@@ -1716,16 +1732,6 @@ export type Mutation = {
1716
1732
  createSubscriptionOrg: SubscriptionOrganization;
1717
1733
  createTlsCertificate: TlsCertificate;
1718
1734
  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
1735
  /**
1730
1736
  * For platform admins, the CreateUser permission is required. To set the status to something other than the
1731
1737
  * default (Pending), the EditUserStatus permission is required. To set the role to something other than the
@@ -1735,6 +1741,7 @@ export type Mutation = {
1735
1741
  * user’s own org ID. The status field is ignored and the default is used.
1736
1742
  * Currently the requester needs to have the OrganizationOwner role, but that will become configurable.
1737
1743
  */
1744
+ createUser: CreateUserResult;
1738
1745
  createUser2: CreateUserResult;
1739
1746
  deleteExtensionVersion: DeleteExtensionVersionResult;
1740
1747
  deleteFormStep: Scalars['Boolean']['output'];
@@ -1769,9 +1776,9 @@ export type Mutation = {
1769
1776
  editFormStepPosition: EditFormStepPositionResult;
1770
1777
  editFormSubmissionAction: FormSubmissionAction;
1771
1778
  editFormTemplate: FormTemplate;
1779
+ editFormTemplate2: EditFormTemplateResult;
1772
1780
  editFormTemplateConfirmation: FormTemplate;
1773
1781
  editFormTemplateEmailTemplate: EditFormTemplateEmailTemplateResult;
1774
- editFormTemplateFormattedDataTemplate: EditFormTemplateFormattedDataTemplateResult;
1775
1782
  editFormTemplateStep: FormTemplateStep;
1776
1783
  editFormTemplateStepPosition: FormTemplateStep;
1777
1784
  editHelpTicketStatus: HelpTicket;
@@ -1780,7 +1787,7 @@ export type Mutation = {
1780
1787
  editLesson: EditLessonResult;
1781
1788
  editLessonUser: EditLessonUserResult;
1782
1789
  editOrgPrimaryUser: EditOrgPrimaryUserResult;
1783
- editOrganization: Organization;
1790
+ editOrganization: Org;
1784
1791
  editPage: EditPageResult;
1785
1792
  editPage2: EditPageResult;
1786
1793
  editPageMetadata: Page;
@@ -1807,7 +1814,9 @@ export type Mutation = {
1807
1814
  editUserPlan: UserPlan;
1808
1815
  editUserRole: User;
1809
1816
  editUserStatus: User;
1817
+ /** Finds or creates a Stripe customer for the current user. */
1810
1818
  findOrCreateStripeCustomer: StripeCustomer;
1819
+ /** Finds or creates a Stripe subscription for the current user. An existing subscription is returned only if it is active. */
1811
1820
  findOrCreateStripeSubscription: FindOrCreateStripeSubscriptionResult;
1812
1821
  invalidateApiToken: InvalidateApiTokenResult;
1813
1822
  moveUserToOrg: MoveUserToOrgResult;
@@ -1851,10 +1860,6 @@ export type MutationCreateAdminUserArgs = {
1851
1860
  input: CreateAdminUserInput;
1852
1861
  };
1853
1862
 
1854
- export type MutationCreateApiTokenArgs = {
1855
- input: CreateApiTokenInput;
1856
- };
1857
-
1858
1863
  export type MutationCreateComponentArgs = {
1859
1864
  input: CreateComponentInput;
1860
1865
  };
@@ -1863,6 +1868,10 @@ export type MutationCreateCourseArgs = {
1863
1868
  input: CreateCourseInput;
1864
1869
  };
1865
1870
 
1871
+ export type MutationCreateCustomTableEditorFormVersionArgs = {
1872
+ input: CreateCustomTableEditorFormVersionInput;
1873
+ };
1874
+
1866
1875
  export type MutationCreateDocumentArgs = {
1867
1876
  name: Scalars['String']['input'];
1868
1877
  platformId: Scalars['String']['input'];
@@ -1957,6 +1966,14 @@ export type MutationCreatePageTemplateArgs = {
1957
1966
  title: Scalars['String']['input'];
1958
1967
  };
1959
1968
 
1969
+ export type MutationCreatePersonalApiTokenArgs = {
1970
+ input: CreatePersonalApiTokenInput;
1971
+ };
1972
+
1973
+ export type MutationCreatePlatformApiTokenArgs = {
1974
+ input: CreatePlatformApiTokenInput;
1975
+ };
1976
+
1960
1977
  export type MutationCreateProductArgs = {
1961
1978
  alternativeStripePriceIds: Array<Scalars['String']['input']>;
1962
1979
  description: Scalars['String']['input'];
@@ -2030,13 +2047,7 @@ export type MutationCreateTlsCertificateMapEntryArgs = {
2030
2047
  };
2031
2048
 
2032
2049
  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>;
2050
+ input: CreateUserInput;
2040
2051
  };
2041
2052
 
2042
2053
  export type MutationCreateUser2Args = {
@@ -2207,6 +2218,10 @@ export type MutationEditFormTemplateArgs = {
2207
2218
  title: Scalars['String']['input'];
2208
2219
  };
2209
2220
 
2221
+ export type MutationEditFormTemplate2Args = {
2222
+ input: EditFormTemplateInput;
2223
+ };
2224
+
2210
2225
  export type MutationEditFormTemplateConfirmationArgs = {
2211
2226
  confirmationAction: ConfirmationAction;
2212
2227
  confirmationMessageComponents?: InputMaybe<Scalars['String']['input']>;
@@ -2219,10 +2234,6 @@ export type MutationEditFormTemplateEmailTemplateArgs = {
2219
2234
  input: EditFormTemplateEmailTemplateInput;
2220
2235
  };
2221
2236
 
2222
- export type MutationEditFormTemplateFormattedDataTemplateArgs = {
2223
- input: EditFormTemplateFormattedDataTemplateInput;
2224
- };
2225
-
2226
2237
  export type MutationEditFormTemplateStepArgs = {
2227
2238
  components: Scalars['String']['input'];
2228
2239
  enabled: Scalars['Boolean']['input'];
@@ -2573,8 +2584,8 @@ export type OptionalStringUpdate = {
2573
2584
  value?: InputMaybe<Scalars['String']['input']>;
2574
2585
  };
2575
2586
 
2576
- export type Organization = {
2577
- __typename?: 'Organization';
2587
+ export type Org = {
2588
+ __typename?: 'Org';
2578
2589
  id: Scalars['String']['output'];
2579
2590
  members: Array<User>;
2580
2591
  membersCount: Scalars['Int']['output'];
@@ -2584,22 +2595,22 @@ export type Organization = {
2584
2595
  subscriptionOrganizations: Array<SubscriptionOrganization>;
2585
2596
  };
2586
2597
 
2587
- export type OrganizationMembersArgs = {
2598
+ export type OrgMembersArgs = {
2588
2599
  status?: InputMaybe<Array<UserStatus>>;
2589
2600
  };
2590
2601
 
2591
2602
  /** A subtype of Org to limit the exposed fields. */
2592
- export type OrganizationProfile = {
2593
- __typename?: 'OrganizationProfile';
2603
+ export type OrgProfile = {
2604
+ __typename?: 'OrgProfile';
2594
2605
  id: Scalars['String']['output'];
2595
2606
  name?: Maybe<Scalars['String']['output']>;
2596
2607
  primaryUser?: Maybe<UserProfile>;
2597
2608
  };
2598
2609
 
2599
- export type OrganizationsList = ListResult & {
2600
- __typename?: 'OrganizationsList';
2610
+ export type OrgsList = ListResult & {
2611
+ __typename?: 'OrgsList';
2601
2612
  limit: Scalars['Int']['output'];
2602
- organizations: Array<Organization>;
2613
+ organizations: Array<Org>;
2603
2614
  totalCount: Scalars['Int']['output'];
2604
2615
  };
2605
2616
 
@@ -2644,6 +2655,8 @@ export type PageTemplate = {
2644
2655
  components: Scalars['String']['output'];
2645
2656
  description?: Maybe<Scalars['String']['output']>;
2646
2657
  id: Scalars['String']['output'];
2658
+ metaDescription?: Maybe<Scalars['String']['output']>;
2659
+ metaRobots: Array<Scalars['String']['output']>;
2647
2660
  metaTitle?: Maybe<Scalars['String']['output']>;
2648
2661
  path: Scalars['String']['output'];
2649
2662
  previewImageUrl?: Maybe<Scalars['String']['output']>;
@@ -2749,6 +2762,22 @@ export const PasswordStatus = {
2749
2762
  } as const;
2750
2763
 
2751
2764
  export type PasswordStatus = (typeof PasswordStatus)[keyof typeof PasswordStatus];
2765
+ export type Permission = {
2766
+ __typename?: 'Permission';
2767
+ action: Scalars['String']['output'];
2768
+ id: Scalars['String']['output'];
2769
+ object: Scalars['String']['output'];
2770
+ };
2771
+
2772
+ export type PermissionInput = {
2773
+ action: Scalars['String']['input'];
2774
+ object: Scalars['String']['input'];
2775
+ };
2776
+
2777
+ export type PermissionListUpdate = {
2778
+ value: Array<PermissionInput>;
2779
+ };
2780
+
2752
2781
  /** Temporary for the rename. */
2753
2782
  export const PermissionName = {
2754
2783
  /** Create (i.e., add) extensions. */
@@ -2820,8 +2849,19 @@ export const PermissionName = {
2820
2849
  } as const;
2821
2850
 
2822
2851
  export type PermissionName = (typeof PermissionName)[keyof typeof PermissionName];
2823
- export type PermissionNamesListUpdate = {
2824
- value: Array<PermissionName>;
2852
+ export type PersonalApiToken = {
2853
+ __typename?: 'PersonalApiToken';
2854
+ createdAt: Scalars['Date']['output'];
2855
+ id: Scalars['String']['output'];
2856
+ invalidatedAt?: Maybe<Scalars['Date']['output']>;
2857
+ name: Scalars['String']['output'];
2858
+ };
2859
+
2860
+ export type PersonalApiTokensList = ListResult & {
2861
+ __typename?: 'PersonalApiTokensList';
2862
+ apiTokens: Array<PersonalApiToken>;
2863
+ limit: Scalars['Int']['output'];
2864
+ totalCount: Scalars['Int']['output'];
2825
2865
  };
2826
2866
 
2827
2867
  export type Platform = {
@@ -2831,7 +2871,7 @@ export type Platform = {
2831
2871
  activeCampaignApiUrl?: Maybe<Scalars['String']['output']>;
2832
2872
  activeCampaignTagsSyncConfig?: Maybe<Array<ActiveCampaignTagsSyncConfig>>;
2833
2873
  admins: PlatformAdminUsersList;
2834
- defaultFormFormattedDataTemplate: Scalars['String']['output'];
2874
+ apiTokens: PlatformApiTokensList;
2835
2875
  defaultFormNotificationEmailBodyTemplate: Scalars['String']['output'];
2836
2876
  emailReplyToAddress?: Maybe<Scalars['String']['output']>;
2837
2877
  emailSendFromAddress: Scalars['String']['output'];
@@ -2864,16 +2904,10 @@ export type PlatformAdminUser = {
2864
2904
  adminUser: AdminUser;
2865
2905
  id: Scalars['String']['output'];
2866
2906
  owner: Scalars['Boolean']['output'];
2867
- permissions: Array<PlatformAdminUserPermission>;
2907
+ permissions: Array<Permission>;
2868
2908
  platform: Platform;
2869
2909
  };
2870
2910
 
2871
- export type PlatformAdminUserPermission = {
2872
- __typename?: 'PlatformAdminUserPermission';
2873
- id: Scalars['String']['output'];
2874
- permission: PermissionName;
2875
- };
2876
-
2877
2911
  export type PlatformAdminUsersList = ListResult & {
2878
2912
  __typename?: 'PlatformAdminUsersList';
2879
2913
  limit: Scalars['Int']['output'];
@@ -2881,6 +2915,22 @@ export type PlatformAdminUsersList = ListResult & {
2881
2915
  totalCount: Scalars['Int']['output'];
2882
2916
  };
2883
2917
 
2918
+ export type PlatformApiToken = {
2919
+ __typename?: 'PlatformApiToken';
2920
+ createdAt: Scalars['Date']['output'];
2921
+ id: Scalars['String']['output'];
2922
+ invalidatedAt?: Maybe<Scalars['Date']['output']>;
2923
+ name: Scalars['String']['output'];
2924
+ permissions: Array<Permission>;
2925
+ };
2926
+
2927
+ export type PlatformApiTokensList = ListResult & {
2928
+ __typename?: 'PlatformApiTokensList';
2929
+ apiTokens: Array<PlatformApiToken>;
2930
+ limit: Scalars['Int']['output'];
2931
+ totalCount: Scalars['Int']['output'];
2932
+ };
2933
+
2884
2934
  export type PreviewStripeCoupon = {
2885
2935
  __typename?: 'PreviewStripeCoupon';
2886
2936
  amountOff?: Maybe<Scalars['String']['output']>;
@@ -3075,7 +3125,6 @@ export type PublishStatusUpdate = {
3075
3125
 
3076
3126
  export type Query = {
3077
3127
  __typename?: 'Query';
3078
- apiTokens: ApiTokensList;
3079
3128
  applyCustomPromoCode: ApplyCustomPromoCodeResult;
3080
3129
  /**
3081
3130
  * Get active components that can be used for the visual builder on a platform. Results include built-in,
@@ -3116,9 +3165,10 @@ export type Query = {
3116
3165
  liveCustomFields: Array<CustomField>;
3117
3166
  me?: Maybe<User>;
3118
3167
  me2?: Maybe<Me>;
3119
- multiOrgView: Array<Organization>;
3120
- organization: Organization;
3121
- organizations: OrganizationsList;
3168
+ /** TODO: This should also take a productId to filter on. */
3169
+ multiOrgView: Array<Org>;
3170
+ organization: Org;
3171
+ organizations: OrgsList;
3122
3172
  page: Page;
3123
3173
  /** Get a page template. For unauthenticated requests, a template is returned only if it's published. */
3124
3174
  pageTemplate: PageTemplate;
@@ -3480,9 +3530,9 @@ export type RestoreCourseVersionChangesInput = {
3480
3530
 
3481
3531
  export type RestoreCourseVersionChangesResult =
3482
3532
  | AuthorizationError
3483
- | GenericInternalError
3484
- | GenericUserError
3485
- | RestoreCourseVersionChangesSuccessResult;
3533
+ | InternalError
3534
+ | RestoreCourseVersionChangesSuccessResult
3535
+ | UserError;
3486
3536
 
3487
3537
  export type RestoreCourseVersionChangesSuccessResult = {
3488
3538
  __typename?: 'RestoreCourseVersionChangesSuccessResult';
@@ -3496,9 +3546,9 @@ export type RestoreLessonVersionChangesInput = {
3496
3546
 
3497
3547
  export type RestoreLessonVersionChangesResult =
3498
3548
  | AuthorizationError
3499
- | GenericInternalError
3500
- | GenericUserError
3501
- | RestoreLessonVersionChangesSuccessResult;
3549
+ | InternalError
3550
+ | RestoreLessonVersionChangesSuccessResult
3551
+ | UserError;
3502
3552
 
3503
3553
  export type RestoreLessonVersionChangesSuccessResult = {
3504
3554
  __typename?: 'RestoreLessonVersionChangesSuccessResult';
@@ -3512,9 +3562,9 @@ export type RestorePageVersionChangesInput = {
3512
3562
 
3513
3563
  export type RestorePageVersionChangesResult =
3514
3564
  | AuthorizationError
3515
- | GenericInternalError
3516
- | GenericUserError
3517
- | RestorePageVersionChangesSuccessResult;
3565
+ | InternalError
3566
+ | RestorePageVersionChangesSuccessResult
3567
+ | UserError;
3518
3568
 
3519
3569
  export type RestorePageVersionChangesSuccessResult = {
3520
3570
  __typename?: 'RestorePageVersionChangesSuccessResult';
@@ -3620,12 +3670,11 @@ export type Site = {
3620
3670
  mixpanelToken?: Maybe<Scalars['String']['output']>;
3621
3671
  name: Scalars['String']['output'];
3622
3672
  /** The org that owns the site. */
3623
- org?: Maybe<Organization>;
3673
+ org?: Maybe<Org>;
3624
3674
  orgId?: Maybe<Scalars['String']['output']>;
3625
3675
  pages: PagesList;
3626
3676
  pages2: PagesList;
3627
3677
  platformId: Scalars['String']['output'];
3628
- radixThemeColorName?: Maybe<Scalars['String']['output']>;
3629
3678
  siteTemplate?: Maybe<SiteTemplate>;
3630
3679
  siteTemplateId?: Maybe<Scalars['String']['output']>;
3631
3680
  stripePublishableKey?: Maybe<Scalars['String']['output']>;
@@ -3694,7 +3743,7 @@ export type SitesList = ListResult & {
3694
3743
  totalCount: Scalars['Int']['output'];
3695
3744
  };
3696
3745
 
3697
- export type SplitUserToNewOrgResult = GenericUserError | SplitUserToNewOrgSuccessResult;
3746
+ export type SplitUserToNewOrgResult = SplitUserToNewOrgSuccessResult | UserError;
3698
3747
 
3699
3748
  export type SplitUserToNewOrgSuccessResult = {
3700
3749
  __typename?: 'SplitUserToNewOrgSuccessResult';
@@ -3803,8 +3852,10 @@ export type Sub = {
3803
3852
  endAt?: Maybe<Scalars['Date']['output']>;
3804
3853
  id: Scalars['String']['output'];
3805
3854
  invoiceFrequency?: Maybe<InvoiceFrequency>;
3806
- managerOrganization?: Maybe<OrganizationProfile>;
3855
+ /** TODO: Rename to ownerOrg. */
3856
+ managerOrganization?: Maybe<OrgProfile>;
3807
3857
  notes: Array<SubscriptionNote>;
3858
+ ownerOrg?: Maybe<OrgProfile>;
3808
3859
  plan: SubscriptionPlan;
3809
3860
  planId: Scalars['String']['output'];
3810
3861
  planProfile: SubscriptionPlanProfile;
@@ -3845,7 +3896,7 @@ export type SubscriptionAuditLog = {
3845
3896
  actionByUser: UserProfile;
3846
3897
  createdAt: Scalars['Date']['output'];
3847
3898
  id: Scalars['String']['output'];
3848
- organization?: Maybe<Organization>;
3899
+ organization?: Maybe<Org>;
3849
3900
  subscription: Sub;
3850
3901
  };
3851
3902
 
@@ -3879,7 +3930,7 @@ export type SubscriptionNote = {
3879
3930
  export type SubscriptionOrganization = {
3880
3931
  __typename?: 'SubscriptionOrganization';
3881
3932
  id: Scalars['String']['output'];
3882
- org: Organization;
3933
+ org: Org;
3883
3934
  subscription: Sub;
3884
3935
  subscriptionId: Scalars['String']['output'];
3885
3936
  subscriptionOwner: Scalars['Boolean']['output'];
@@ -3943,8 +3994,8 @@ export type SyncLayoutTemplateToLayoutsInput = {
3943
3994
 
3944
3995
  export type SyncLayoutTemplateToLayoutsResult =
3945
3996
  | AuthorizationError
3946
- | GenericUserError
3947
- | SyncLayoutTemplateToLayoutsSuccessResult;
3997
+ | SyncLayoutTemplateToLayoutsSuccessResult
3998
+ | UserError;
3948
3999
 
3949
4000
  export type SyncLayoutTemplateToLayoutsSuccessResult = {
3950
4001
  __typename?: 'SyncLayoutTemplateToLayoutsSuccessResult';
@@ -3970,8 +4021,8 @@ export type SyncPageTemplateToPagesInput = {
3970
4021
 
3971
4022
  export type SyncPageTemplateToPagesResult =
3972
4023
  | AuthorizationError
3973
- | GenericUserError
3974
- | SyncPageTemplateToPagesSuccessResult;
4024
+ | SyncPageTemplateToPagesSuccessResult
4025
+ | UserError;
3975
4026
 
3976
4027
  export const SyncPageTemplateToPagesSelection = {
3977
4028
  All: 'All',
@@ -4047,9 +4098,9 @@ export type UploadFilePurposeSiteLogo = {
4047
4098
 
4048
4099
  export type UploadFileResult =
4049
4100
  | AuthorizationError
4050
- | GenericInternalError
4051
- | GenericUserError
4052
- | UploadFileSuccessResult;
4101
+ | InternalError
4102
+ | UploadFileSuccessResult
4103
+ | UserError;
4053
4104
 
4054
4105
  export type UploadFileSuccessResult = {
4055
4106
  __typename?: 'UploadFileSuccessResult';
@@ -4059,6 +4110,7 @@ export type UploadFileSuccessResult = {
4059
4110
 
4060
4111
  export type User = {
4061
4112
  __typename?: 'User';
4113
+ apiTokens: PersonalApiTokensList;
4062
4114
  /** The latest agreement types on the current site (based on request host) to which the user has given consent. */
4063
4115
  currentAgreementsSigned: Array<AgreementType>;
4064
4116
  custom: CustomFieldValuesList;
@@ -4069,17 +4121,11 @@ export type User = {
4069
4121
  firstName: Scalars['String']['output'];
4070
4122
  id: Scalars['String']['output'];
4071
4123
  lastName: Scalars['String']['output'];
4072
- org: Organization;
4073
- orgId: Scalars['String']['output'];
4124
+ org?: Maybe<Org>;
4125
+ orgId?: Maybe<Scalars['String']['output']>;
4074
4126
  orgPrimary: Scalars['Boolean']['output'];
4075
4127
  passwordExpiresAt?: Maybe<Scalars['Date']['output']>;
4076
4128
  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
4129
  planProgress: Array<UserPlanProgress>;
4084
4130
  plans: Array<UserPlan>;
4085
4131
  /** This user’s platforms where the user is an admin. */
@@ -4098,10 +4144,6 @@ export type User = {
4098
4144
  zendeskChatToken?: Maybe<Scalars['String']['output']>;
4099
4145
  };
4100
4146
 
4101
- export type UserPlanArgs = {
4102
- planId: Scalars['String']['input'];
4103
- };
4104
-
4105
4147
  export type UserPlanProgressArgs = {
4106
4148
  contentPlanIds: Array<Scalars['String']['input']>;
4107
4149
  };
@@ -4171,6 +4213,11 @@ export type UserCourseProgressesList = ListResult & {
4171
4213
  userCourseProgresses: Array<UserCourseProgress>;
4172
4214
  };
4173
4215
 
4216
+ export type UserError = Error & {
4217
+ __typename?: 'UserError';
4218
+ message: Scalars['String']['output'];
4219
+ };
4220
+
4174
4221
  export type UserPlan = {
4175
4222
  __typename?: 'UserPlan';
4176
4223
  id: Scalars['String']['output'];