@dazl/internal-api-client 1.10.0 → 1.11.0

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.
package/src/types.gen.ts CHANGED
@@ -113,6 +113,44 @@ export type OwnerDazlId = {
113
113
  ownerDazlId: string;
114
114
  };
115
115
 
116
+ export type UserMention = {
117
+ dazlUserId: string;
118
+ };
119
+
120
+ export type CommentResolved = {
121
+ dazlUserId: string;
122
+ resolvedAt: string;
123
+ };
124
+
125
+ export type CommentContext = {
126
+ type: 'stage';
127
+ page: string;
128
+ selection?: string;
129
+ };
130
+
131
+ export type InternalCreateCommentInput = {
132
+ content: string;
133
+ authorDazlUserId: string;
134
+ mentions?: Array<UserMention>;
135
+ context?: CommentContext;
136
+ };
137
+
138
+ export type InternalEditCommentInput = {
139
+ content: string;
140
+ mentions?: Array<UserMention>;
141
+ };
142
+
143
+ export type InternalCreateReplyInput = {
144
+ content: string;
145
+ mentions?: Array<UserMention>;
146
+ authorDazlUserId: string;
147
+ };
148
+
149
+ export type InternalEditReplyInput = {
150
+ content: string;
151
+ mentions?: Array<UserMention>;
152
+ };
153
+
116
154
  export type TemplateRaw = {
117
155
  id: string;
118
156
  name: string;
@@ -2606,6 +2644,662 @@ export type DeleteProjectInvitationResponses = {
2606
2644
 
2607
2645
  export type DeleteProjectInvitationResponse = DeleteProjectInvitationResponses[keyof DeleteProjectInvitationResponses];
2608
2646
 
2647
+ export type InternalListProjectCommentsData = {
2648
+ body?: never;
2649
+ path: {
2650
+ projectId: string;
2651
+ };
2652
+ query?: never;
2653
+ url: '/project/{projectId}/comments';
2654
+ };
2655
+
2656
+ export type InternalListProjectCommentsErrors = {
2657
+ /**
2658
+ * Bad request - Invalid parameters or malformed JSON
2659
+ */
2660
+ 400: {
2661
+ message: string;
2662
+ issues?: string;
2663
+ };
2664
+ /**
2665
+ * Unauthorized
2666
+ */
2667
+ 401: ErrorResponse;
2668
+ /**
2669
+ * Forbidden
2670
+ */
2671
+ 403: ErrorResponse;
2672
+ /**
2673
+ * Not Found
2674
+ */
2675
+ 404: ErrorResponse;
2676
+ /**
2677
+ * Conflict
2678
+ */
2679
+ 409: ErrorResponse;
2680
+ /**
2681
+ * Internal server error
2682
+ */
2683
+ 500: ErrorResponse;
2684
+ /**
2685
+ * Service Unavailable
2686
+ */
2687
+ 503: ErrorResponse;
2688
+ };
2689
+
2690
+ export type InternalListProjectCommentsError = InternalListProjectCommentsErrors[keyof InternalListProjectCommentsErrors];
2691
+
2692
+ export type InternalListProjectCommentsResponses = {
2693
+ /**
2694
+ * Returns the list of comments for the project
2695
+ */
2696
+ 200: {
2697
+ comments: Array<{
2698
+ commentId: string;
2699
+ author: {
2700
+ dazlUserId: string;
2701
+ };
2702
+ content: string;
2703
+ mentions: Array<UserMention>;
2704
+ createdAt: string;
2705
+ updatedAt: string;
2706
+ lastActivityAt: string;
2707
+ isEdited: boolean;
2708
+ replies: Array<{
2709
+ replyId: string;
2710
+ author: {
2711
+ dazlUserId: string;
2712
+ };
2713
+ content: string;
2714
+ mentions: Array<UserMention>;
2715
+ createdAt: string;
2716
+ updatedAt: string;
2717
+ }>;
2718
+ resolved?: CommentResolved;
2719
+ context?: CommentContext;
2720
+ }>;
2721
+ /**
2722
+ * Authors and mentions from loaded comments with id, email and picture to render avatars
2723
+ */
2724
+ participants: Array<{
2725
+ userId: string;
2726
+ email: string;
2727
+ picture?: string;
2728
+ }>;
2729
+ };
2730
+ };
2731
+
2732
+ export type InternalListProjectCommentsResponse = InternalListProjectCommentsResponses[keyof InternalListProjectCommentsResponses];
2733
+
2734
+ export type InternalCreateCommentData = {
2735
+ body: InternalCreateCommentInput;
2736
+ path: {
2737
+ projectId: string;
2738
+ };
2739
+ query?: never;
2740
+ url: '/project/{projectId}/comments';
2741
+ };
2742
+
2743
+ export type InternalCreateCommentErrors = {
2744
+ /**
2745
+ * Bad request - Invalid parameters or malformed JSON
2746
+ */
2747
+ 400: {
2748
+ message: string;
2749
+ issues?: string;
2750
+ };
2751
+ /**
2752
+ * Unauthorized
2753
+ */
2754
+ 401: ErrorResponse;
2755
+ /**
2756
+ * Forbidden
2757
+ */
2758
+ 403: ErrorResponse;
2759
+ /**
2760
+ * Not Found
2761
+ */
2762
+ 404: ErrorResponse;
2763
+ /**
2764
+ * Conflict
2765
+ */
2766
+ 409: ErrorResponse;
2767
+ /**
2768
+ * Internal server error
2769
+ */
2770
+ 500: ErrorResponse;
2771
+ /**
2772
+ * Service Unavailable
2773
+ */
2774
+ 503: ErrorResponse;
2775
+ };
2776
+
2777
+ export type InternalCreateCommentError = InternalCreateCommentErrors[keyof InternalCreateCommentErrors];
2778
+
2779
+ export type InternalCreateCommentResponses = {
2780
+ /**
2781
+ * Returns the created comment
2782
+ */
2783
+ 200: {
2784
+ comment: {
2785
+ commentId: string;
2786
+ author: {
2787
+ dazlUserId: string;
2788
+ };
2789
+ content: string;
2790
+ mentions: Array<UserMention>;
2791
+ createdAt: string;
2792
+ updatedAt: string;
2793
+ lastActivityAt: string;
2794
+ isEdited: boolean;
2795
+ replies: Array<{
2796
+ replyId: string;
2797
+ author: {
2798
+ dazlUserId: string;
2799
+ };
2800
+ content: string;
2801
+ mentions: Array<UserMention>;
2802
+ createdAt: string;
2803
+ updatedAt: string;
2804
+ }>;
2805
+ resolved?: CommentResolved;
2806
+ context?: CommentContext;
2807
+ };
2808
+ };
2809
+ };
2810
+
2811
+ export type InternalCreateCommentResponse = InternalCreateCommentResponses[keyof InternalCreateCommentResponses];
2812
+
2813
+ export type InternalDeleteCommentData = {
2814
+ body?: never;
2815
+ path: {
2816
+ projectId: string;
2817
+ commentId: string;
2818
+ };
2819
+ query?: never;
2820
+ url: '/project/{projectId}/comments/{commentId}';
2821
+ };
2822
+
2823
+ export type InternalDeleteCommentErrors = {
2824
+ /**
2825
+ * Bad request - Invalid parameters or malformed JSON
2826
+ */
2827
+ 400: {
2828
+ message: string;
2829
+ issues?: string;
2830
+ };
2831
+ /**
2832
+ * Unauthorized
2833
+ */
2834
+ 401: ErrorResponse;
2835
+ /**
2836
+ * Forbidden
2837
+ */
2838
+ 403: ErrorResponse;
2839
+ /**
2840
+ * Not Found
2841
+ */
2842
+ 404: ErrorResponse;
2843
+ /**
2844
+ * Conflict
2845
+ */
2846
+ 409: ErrorResponse;
2847
+ /**
2848
+ * Internal server error
2849
+ */
2850
+ 500: ErrorResponse;
2851
+ /**
2852
+ * Service Unavailable
2853
+ */
2854
+ 503: ErrorResponse;
2855
+ };
2856
+
2857
+ export type InternalDeleteCommentError = InternalDeleteCommentErrors[keyof InternalDeleteCommentErrors];
2858
+
2859
+ export type InternalDeleteCommentResponses = {
2860
+ /**
2861
+ * Acknowledges that the comment was deleted
2862
+ */
2863
+ 200: {
2864
+ success: true;
2865
+ };
2866
+ };
2867
+
2868
+ export type InternalDeleteCommentResponse = InternalDeleteCommentResponses[keyof InternalDeleteCommentResponses];
2869
+
2870
+ export type InternalEditCommentData = {
2871
+ body: InternalEditCommentInput;
2872
+ path: {
2873
+ projectId: string;
2874
+ commentId: string;
2875
+ };
2876
+ query?: never;
2877
+ url: '/project/{projectId}/comments/{commentId}';
2878
+ };
2879
+
2880
+ export type InternalEditCommentErrors = {
2881
+ /**
2882
+ * Bad request - Invalid parameters or malformed JSON
2883
+ */
2884
+ 400: {
2885
+ message: string;
2886
+ issues?: string;
2887
+ };
2888
+ /**
2889
+ * Unauthorized
2890
+ */
2891
+ 401: ErrorResponse;
2892
+ /**
2893
+ * Forbidden
2894
+ */
2895
+ 403: ErrorResponse;
2896
+ /**
2897
+ * Not Found
2898
+ */
2899
+ 404: ErrorResponse;
2900
+ /**
2901
+ * Conflict
2902
+ */
2903
+ 409: ErrorResponse;
2904
+ /**
2905
+ * Internal server error
2906
+ */
2907
+ 500: ErrorResponse;
2908
+ /**
2909
+ * Service Unavailable
2910
+ */
2911
+ 503: ErrorResponse;
2912
+ };
2913
+
2914
+ export type InternalEditCommentError = InternalEditCommentErrors[keyof InternalEditCommentErrors];
2915
+
2916
+ export type InternalEditCommentResponses = {
2917
+ /**
2918
+ * Returns the updated comment
2919
+ */
2920
+ 200: {
2921
+ comment: {
2922
+ commentId: string;
2923
+ author: {
2924
+ dazlUserId: string;
2925
+ };
2926
+ content: string;
2927
+ mentions: Array<UserMention>;
2928
+ createdAt: string;
2929
+ updatedAt: string;
2930
+ lastActivityAt: string;
2931
+ isEdited: boolean;
2932
+ replies: Array<{
2933
+ replyId: string;
2934
+ author: {
2935
+ dazlUserId: string;
2936
+ };
2937
+ content: string;
2938
+ mentions: Array<UserMention>;
2939
+ createdAt: string;
2940
+ updatedAt: string;
2941
+ }>;
2942
+ resolved?: CommentResolved;
2943
+ context?: CommentContext;
2944
+ };
2945
+ };
2946
+ };
2947
+
2948
+ export type InternalEditCommentResponse = InternalEditCommentResponses[keyof InternalEditCommentResponses];
2949
+
2950
+ export type InternalResolveCommentData = {
2951
+ body?: never;
2952
+ path: {
2953
+ projectId: string;
2954
+ commentId: string;
2955
+ };
2956
+ query: {
2957
+ resolvedByDazlUserId: string;
2958
+ };
2959
+ url: '/project/{projectId}/comments/{commentId}/resolve';
2960
+ };
2961
+
2962
+ export type InternalResolveCommentErrors = {
2963
+ /**
2964
+ * Bad request - Invalid parameters or malformed JSON
2965
+ */
2966
+ 400: {
2967
+ message: string;
2968
+ issues?: string;
2969
+ };
2970
+ /**
2971
+ * Unauthorized
2972
+ */
2973
+ 401: ErrorResponse;
2974
+ /**
2975
+ * Forbidden
2976
+ */
2977
+ 403: ErrorResponse;
2978
+ /**
2979
+ * Not Found
2980
+ */
2981
+ 404: ErrorResponse;
2982
+ /**
2983
+ * Conflict
2984
+ */
2985
+ 409: ErrorResponse;
2986
+ /**
2987
+ * Internal server error
2988
+ */
2989
+ 500: ErrorResponse;
2990
+ /**
2991
+ * Service Unavailable
2992
+ */
2993
+ 503: ErrorResponse;
2994
+ };
2995
+
2996
+ export type InternalResolveCommentError = InternalResolveCommentErrors[keyof InternalResolveCommentErrors];
2997
+
2998
+ export type InternalResolveCommentResponses = {
2999
+ /**
3000
+ * Returns the resolved comment
3001
+ */
3002
+ 200: {
3003
+ comment: {
3004
+ commentId: string;
3005
+ author: {
3006
+ dazlUserId: string;
3007
+ };
3008
+ content: string;
3009
+ mentions: Array<UserMention>;
3010
+ createdAt: string;
3011
+ updatedAt: string;
3012
+ lastActivityAt: string;
3013
+ isEdited: boolean;
3014
+ replies: Array<{
3015
+ replyId: string;
3016
+ author: {
3017
+ dazlUserId: string;
3018
+ };
3019
+ content: string;
3020
+ mentions: Array<UserMention>;
3021
+ createdAt: string;
3022
+ updatedAt: string;
3023
+ }>;
3024
+ resolved?: CommentResolved;
3025
+ context?: CommentContext;
3026
+ };
3027
+ };
3028
+ };
3029
+
3030
+ export type InternalResolveCommentResponse = InternalResolveCommentResponses[keyof InternalResolveCommentResponses];
3031
+
3032
+ export type InternalReopenCommentData = {
3033
+ body?: never;
3034
+ path: {
3035
+ projectId: string;
3036
+ commentId: string;
3037
+ };
3038
+ query?: never;
3039
+ url: '/project/{projectId}/comments/{commentId}/reopen';
3040
+ };
3041
+
3042
+ export type InternalReopenCommentErrors = {
3043
+ /**
3044
+ * Bad request - Invalid parameters or malformed JSON
3045
+ */
3046
+ 400: {
3047
+ message: string;
3048
+ issues?: string;
3049
+ };
3050
+ /**
3051
+ * Unauthorized
3052
+ */
3053
+ 401: ErrorResponse;
3054
+ /**
3055
+ * Forbidden
3056
+ */
3057
+ 403: ErrorResponse;
3058
+ /**
3059
+ * Not Found
3060
+ */
3061
+ 404: ErrorResponse;
3062
+ /**
3063
+ * Conflict
3064
+ */
3065
+ 409: ErrorResponse;
3066
+ /**
3067
+ * Internal server error
3068
+ */
3069
+ 500: ErrorResponse;
3070
+ /**
3071
+ * Service Unavailable
3072
+ */
3073
+ 503: ErrorResponse;
3074
+ };
3075
+
3076
+ export type InternalReopenCommentError = InternalReopenCommentErrors[keyof InternalReopenCommentErrors];
3077
+
3078
+ export type InternalReopenCommentResponses = {
3079
+ /**
3080
+ * Returns the reopened comment
3081
+ */
3082
+ 200: {
3083
+ comment: {
3084
+ commentId: string;
3085
+ author: {
3086
+ dazlUserId: string;
3087
+ };
3088
+ content: string;
3089
+ mentions: Array<UserMention>;
3090
+ createdAt: string;
3091
+ updatedAt: string;
3092
+ lastActivityAt: string;
3093
+ isEdited: boolean;
3094
+ replies: Array<{
3095
+ replyId: string;
3096
+ author: {
3097
+ dazlUserId: string;
3098
+ };
3099
+ content: string;
3100
+ mentions: Array<UserMention>;
3101
+ createdAt: string;
3102
+ updatedAt: string;
3103
+ }>;
3104
+ resolved?: CommentResolved;
3105
+ context?: CommentContext;
3106
+ };
3107
+ };
3108
+ };
3109
+
3110
+ export type InternalReopenCommentResponse = InternalReopenCommentResponses[keyof InternalReopenCommentResponses];
3111
+
3112
+ export type InternalCreateReplyData = {
3113
+ body: InternalCreateReplyInput;
3114
+ path: {
3115
+ projectId: string;
3116
+ commentId: string;
3117
+ };
3118
+ query?: never;
3119
+ url: '/project/{projectId}/comments/{commentId}/replies';
3120
+ };
3121
+
3122
+ export type InternalCreateReplyErrors = {
3123
+ /**
3124
+ * Bad request - Invalid parameters or malformed JSON
3125
+ */
3126
+ 400: {
3127
+ message: string;
3128
+ issues?: string;
3129
+ };
3130
+ /**
3131
+ * Unauthorized
3132
+ */
3133
+ 401: ErrorResponse;
3134
+ /**
3135
+ * Forbidden
3136
+ */
3137
+ 403: ErrorResponse;
3138
+ /**
3139
+ * Not Found
3140
+ */
3141
+ 404: ErrorResponse;
3142
+ /**
3143
+ * Conflict
3144
+ */
3145
+ 409: ErrorResponse;
3146
+ /**
3147
+ * Internal server error
3148
+ */
3149
+ 500: ErrorResponse;
3150
+ /**
3151
+ * Service Unavailable
3152
+ */
3153
+ 503: ErrorResponse;
3154
+ };
3155
+
3156
+ export type InternalCreateReplyError = InternalCreateReplyErrors[keyof InternalCreateReplyErrors];
3157
+
3158
+ export type InternalCreateReplyResponses = {
3159
+ /**
3160
+ * Returns the created reply
3161
+ */
3162
+ 200: {
3163
+ reply: {
3164
+ replyId: string;
3165
+ author: {
3166
+ dazlUserId: string;
3167
+ };
3168
+ content: string;
3169
+ mentions: Array<UserMention>;
3170
+ createdAt: string;
3171
+ updatedAt: string;
3172
+ };
3173
+ };
3174
+ };
3175
+
3176
+ export type InternalCreateReplyResponse = InternalCreateReplyResponses[keyof InternalCreateReplyResponses];
3177
+
3178
+ export type InternalDeleteReplyData = {
3179
+ body?: never;
3180
+ path: {
3181
+ projectId: string;
3182
+ commentId: string;
3183
+ replyId: string;
3184
+ };
3185
+ query?: never;
3186
+ url: '/project/{projectId}/comments/{commentId}/replies/{replyId}';
3187
+ };
3188
+
3189
+ export type InternalDeleteReplyErrors = {
3190
+ /**
3191
+ * Bad request - Invalid parameters or malformed JSON
3192
+ */
3193
+ 400: {
3194
+ message: string;
3195
+ issues?: string;
3196
+ };
3197
+ /**
3198
+ * Unauthorized
3199
+ */
3200
+ 401: ErrorResponse;
3201
+ /**
3202
+ * Forbidden
3203
+ */
3204
+ 403: ErrorResponse;
3205
+ /**
3206
+ * Not Found
3207
+ */
3208
+ 404: ErrorResponse;
3209
+ /**
3210
+ * Conflict
3211
+ */
3212
+ 409: ErrorResponse;
3213
+ /**
3214
+ * Internal server error
3215
+ */
3216
+ 500: ErrorResponse;
3217
+ /**
3218
+ * Service Unavailable
3219
+ */
3220
+ 503: ErrorResponse;
3221
+ };
3222
+
3223
+ export type InternalDeleteReplyError = InternalDeleteReplyErrors[keyof InternalDeleteReplyErrors];
3224
+
3225
+ export type InternalDeleteReplyResponses = {
3226
+ /**
3227
+ * Acknowledges that the reply was deleted
3228
+ */
3229
+ 200: {
3230
+ success: true;
3231
+ };
3232
+ };
3233
+
3234
+ export type InternalDeleteReplyResponse = InternalDeleteReplyResponses[keyof InternalDeleteReplyResponses];
3235
+
3236
+ export type InternalEditReplyData = {
3237
+ body: InternalEditReplyInput;
3238
+ path: {
3239
+ projectId: string;
3240
+ commentId: string;
3241
+ replyId: string;
3242
+ };
3243
+ query?: never;
3244
+ url: '/project/{projectId}/comments/{commentId}/replies/{replyId}';
3245
+ };
3246
+
3247
+ export type InternalEditReplyErrors = {
3248
+ /**
3249
+ * Bad request - Invalid parameters or malformed JSON
3250
+ */
3251
+ 400: {
3252
+ message: string;
3253
+ issues?: string;
3254
+ };
3255
+ /**
3256
+ * Unauthorized
3257
+ */
3258
+ 401: ErrorResponse;
3259
+ /**
3260
+ * Forbidden
3261
+ */
3262
+ 403: ErrorResponse;
3263
+ /**
3264
+ * Not Found
3265
+ */
3266
+ 404: ErrorResponse;
3267
+ /**
3268
+ * Conflict
3269
+ */
3270
+ 409: ErrorResponse;
3271
+ /**
3272
+ * Internal server error
3273
+ */
3274
+ 500: ErrorResponse;
3275
+ /**
3276
+ * Service Unavailable
3277
+ */
3278
+ 503: ErrorResponse;
3279
+ };
3280
+
3281
+ export type InternalEditReplyError = InternalEditReplyErrors[keyof InternalEditReplyErrors];
3282
+
3283
+ export type InternalEditReplyResponses = {
3284
+ /**
3285
+ * Returns the updated reply
3286
+ */
3287
+ 200: {
3288
+ reply: {
3289
+ replyId: string;
3290
+ author: {
3291
+ dazlUserId: string;
3292
+ };
3293
+ content: string;
3294
+ mentions: Array<UserMention>;
3295
+ createdAt: string;
3296
+ updatedAt: string;
3297
+ };
3298
+ };
3299
+ };
3300
+
3301
+ export type InternalEditReplyResponse = InternalEditReplyResponses[keyof InternalEditReplyResponses];
3302
+
2609
3303
  export type GetPublicTemplatesData = {
2610
3304
  body?: never;
2611
3305
  path?: never;
@@ -3597,19 +4291,7 @@ export type ScrapePageContentResponses = {
3597
4291
  images?: {
3598
4292
  [key: string]: unknown;
3599
4293
  } | null;
3600
- [key: string]: unknown | 'light' | 'dark' | null | string | null | {
3601
- [key: string]: unknown;
3602
- } | null | Array<{
3603
- [key: string]: unknown;
3604
- }> | null | {
3605
- [key: string]: unknown;
3606
- } | null | {
3607
- [key: string]: unknown;
3608
- } | null | {
3609
- [key: string]: unknown;
3610
- } | null | {
3611
- [key: string]: unknown;
3612
- } | null | undefined;
4294
+ [key: string]: unknown;
3613
4295
  };
3614
4296
  };
3615
4297
  };