@hasura/promptql 2.0.0-alpha.37 → 2.0.0-alpha.39

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/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
- import { C as CreateRoomMutationVariables, B as Bigint_Comparison_Exp, O as Order_By, S as StartThreadMutation, T as ThreadEventFragment, a as SendThreadMessageMutation, G as GetRoomsQueryVariables, R as RoomFragment, b as CancelAgentMessageMutationVariables, c as ThreadFragment, d as GetThreadsQueryVariables, e as SendThreadMessageMutationVariables, f as StartThreadMutationVariables, g as SearchWikiPagesQueryVariables } from './graphql-Bv72OcvQ.mjs';
2
1
  import { ApolloClient, Observable } from '@apollo/client';
3
2
  import * as graphql_ws from 'graphql-ws';
3
+ import { Client } from 'graphql-ws';
4
4
 
5
5
  /**
6
6
  * This file was automatically generated by json-schema-to-typescript.
@@ -3110,6 +3110,2897 @@ interface ExecuteProgramRequestData {
3110
3110
  request_provenance?: ExecuteProgramRequestProvenance | null;
3111
3111
  }
3112
3112
 
3113
+ /** Internal type. DO NOT USE DIRECTLY. */
3114
+ type Exact<T extends {
3115
+ [key: string]: unknown;
3116
+ }> = {
3117
+ [K in keyof T]: T[K];
3118
+ };
3119
+ type ArtifactReferenceInput = {
3120
+ artifact_id: string;
3121
+ version: number;
3122
+ };
3123
+ /** Boolean expression to compare columns of type "Boolean". All fields are combined with logical 'AND'. */
3124
+ type Boolean_Comparison_Exp = {
3125
+ _eq?: boolean | null | undefined;
3126
+ _gt?: boolean | null | undefined;
3127
+ _gte?: boolean | null | undefined;
3128
+ _in?: Array<boolean> | null | undefined;
3129
+ _is_null?: boolean | null | undefined;
3130
+ _lt?: boolean | null | undefined;
3131
+ _lte?: boolean | null | undefined;
3132
+ _neq?: boolean | null | undefined;
3133
+ _nin?: Array<boolean> | null | undefined;
3134
+ };
3135
+ /** Boolean expression to compare columns of type "Int". All fields are combined with logical 'AND'. */
3136
+ type Int_Comparison_Exp = {
3137
+ _eq?: number | null | undefined;
3138
+ _gt?: number | null | undefined;
3139
+ _gte?: number | null | undefined;
3140
+ _in?: Array<number> | null | undefined;
3141
+ _is_null?: boolean | null | undefined;
3142
+ _lt?: number | null | undefined;
3143
+ _lte?: number | null | undefined;
3144
+ _neq?: number | null | undefined;
3145
+ _nin?: Array<number> | null | undefined;
3146
+ };
3147
+ /** Boolean expression to compare columns of type "String". All fields are combined with logical 'AND'. */
3148
+ type String_Comparison_Exp = {
3149
+ _eq?: string | null | undefined;
3150
+ _gt?: string | null | undefined;
3151
+ _gte?: string | null | undefined;
3152
+ /** does the column match the given case-insensitive pattern */
3153
+ _ilike?: string | null | undefined;
3154
+ _in?: Array<string> | null | undefined;
3155
+ /** does the column match the given POSIX regular expression, case insensitive */
3156
+ _iregex?: string | null | undefined;
3157
+ _is_null?: boolean | null | undefined;
3158
+ /** does the column match the given pattern */
3159
+ _like?: string | null | undefined;
3160
+ _lt?: string | null | undefined;
3161
+ _lte?: string | null | undefined;
3162
+ _neq?: string | null | undefined;
3163
+ /** does the column NOT match the given case-insensitive pattern */
3164
+ _nilike?: string | null | undefined;
3165
+ _nin?: Array<string> | null | undefined;
3166
+ /** does the column NOT match the given POSIX regular expression, case insensitive */
3167
+ _niregex?: string | null | undefined;
3168
+ /** does the column NOT match the given pattern */
3169
+ _nlike?: string | null | undefined;
3170
+ /** does the column NOT match the given POSIX regular expression, case sensitive */
3171
+ _nregex?: string | null | undefined;
3172
+ /** does the column NOT match the given SQL regular expression */
3173
+ _nsimilar?: string | null | undefined;
3174
+ /** does the column match the given POSIX regular expression, case sensitive */
3175
+ _regex?: string | null | undefined;
3176
+ /** does the column match the given SQL regular expression */
3177
+ _similar?: string | null | undefined;
3178
+ };
3179
+ type UserUploadInput = {
3180
+ artifact_name: string;
3181
+ artifact_reference: ArtifactReferenceInput;
3182
+ };
3183
+ /** order by aggregate values of table "admin.federated_wiki" */
3184
+ type Admin_Federated_Wiki_Aggregate_Order_By = {
3185
+ count?: Order_By | null | undefined;
3186
+ max?: Admin_Federated_Wiki_Max_Order_By | null | undefined;
3187
+ min?: Admin_Federated_Wiki_Min_Order_By | null | undefined;
3188
+ };
3189
+ /** Boolean expression to filter rows from the table "admin.federated_wiki". All fields are combined with a logical 'AND'. */
3190
+ type Admin_Federated_Wiki_Bool_Exp = {
3191
+ _and?: Array<Admin_Federated_Wiki_Bool_Exp> | null | undefined;
3192
+ _not?: Admin_Federated_Wiki_Bool_Exp | null | undefined;
3193
+ _or?: Array<Admin_Federated_Wiki_Bool_Exp> | null | undefined;
3194
+ connected_at?: Timestamptz_Comparison_Exp | null | undefined;
3195
+ connected_by_user_id?: Uuid_Comparison_Exp | null | undefined;
3196
+ federated_project_id?: Uuid_Comparison_Exp | null | undefined;
3197
+ federated_project_users?: Promptql_Users_Bool_Exp | null | undefined;
3198
+ federated_project_wiki?: Admin_Wiki_Bool_Exp | null | undefined;
3199
+ federated_project_wiki_audit?: Admin_Wiki_Audit_Bool_Exp | null | undefined;
3200
+ federated_wiki_name?: String_Comparison_Exp | null | undefined;
3201
+ id?: Uuid_Comparison_Exp | null | undefined;
3202
+ project_id?: Uuid_Comparison_Exp | null | undefined;
3203
+ removed_at?: Timestamptz_Comparison_Exp | null | undefined;
3204
+ removed_by_user_id?: Uuid_Comparison_Exp | null | undefined;
3205
+ };
3206
+ /** order by max() on columns of table "admin.federated_wiki" */
3207
+ type Admin_Federated_Wiki_Max_Order_By = {
3208
+ connected_at?: Order_By | null | undefined;
3209
+ connected_by_user_id?: Order_By | null | undefined;
3210
+ federated_project_id?: Order_By | null | undefined;
3211
+ federated_wiki_name?: Order_By | null | undefined;
3212
+ id?: Order_By | null | undefined;
3213
+ project_id?: Order_By | null | undefined;
3214
+ removed_at?: Order_By | null | undefined;
3215
+ removed_by_user_id?: Order_By | null | undefined;
3216
+ };
3217
+ /** order by min() on columns of table "admin.federated_wiki" */
3218
+ type Admin_Federated_Wiki_Min_Order_By = {
3219
+ connected_at?: Order_By | null | undefined;
3220
+ connected_by_user_id?: Order_By | null | undefined;
3221
+ federated_project_id?: Order_By | null | undefined;
3222
+ federated_wiki_name?: Order_By | null | undefined;
3223
+ id?: Order_By | null | undefined;
3224
+ project_id?: Order_By | null | undefined;
3225
+ removed_at?: Order_By | null | undefined;
3226
+ removed_by_user_id?: Order_By | null | undefined;
3227
+ };
3228
+ /** Boolean expression to filter rows from the table "admin.wiki_audit". All fields are combined with a logical 'AND'. */
3229
+ type Admin_Wiki_Audit_Bool_Exp = {
3230
+ _and?: Array<Admin_Wiki_Audit_Bool_Exp> | null | undefined;
3231
+ _not?: Admin_Wiki_Audit_Bool_Exp | null | undefined;
3232
+ _or?: Array<Admin_Wiki_Audit_Bool_Exp> | null | undefined;
3233
+ build_version?: String_Comparison_Exp | null | undefined;
3234
+ created_at?: Timestamptz_Comparison_Exp | null | undefined;
3235
+ created_by_user_id?: Uuid_Comparison_Exp | null | undefined;
3236
+ details?: Jsonb_Comparison_Exp | null | undefined;
3237
+ federated_by?: Admin_Federated_Wiki_Bool_Exp | null | undefined;
3238
+ hidden_at?: Timestamptz_Comparison_Exp | null | undefined;
3239
+ hidden_by_user_id?: Uuid_Comparison_Exp | null | undefined;
3240
+ hide_reason?: String_Comparison_Exp | null | undefined;
3241
+ id?: Uuid_Comparison_Exp | null | undefined;
3242
+ operation?: String_Comparison_Exp | null | undefined;
3243
+ page_id?: String_Comparison_Exp | null | undefined;
3244
+ project_id?: Uuid_Comparison_Exp | null | undefined;
3245
+ wiki?: Admin_Wiki_Bool_Exp | null | undefined;
3246
+ wiki_id?: Uuid_Comparison_Exp | null | undefined;
3247
+ };
3248
+ /** Boolean expression to filter rows from the table "admin.wiki". All fields are combined with a logical 'AND'. */
3249
+ type Admin_Wiki_Bool_Exp = {
3250
+ _and?: Array<Admin_Wiki_Bool_Exp> | null | undefined;
3251
+ _not?: Admin_Wiki_Bool_Exp | null | undefined;
3252
+ _or?: Array<Admin_Wiki_Bool_Exp> | null | undefined;
3253
+ can_manage_permissions?: Boolean_Comparison_Exp | null | undefined;
3254
+ content?: Jsonb_Comparison_Exp | null | undefined;
3255
+ created_at?: Timestamptz_Comparison_Exp | null | undefined;
3256
+ created_by_user_id?: Uuid_Comparison_Exp | null | undefined;
3257
+ deleted_at?: Timestamptz_Comparison_Exp | null | undefined;
3258
+ effective_permission?: String_Comparison_Exp | null | undefined;
3259
+ federated_by?: Admin_Federated_Wiki_Bool_Exp | null | undefined;
3260
+ id?: Uuid_Comparison_Exp | null | undefined;
3261
+ last_modified_at?: Timestamptz_Comparison_Exp | null | undefined;
3262
+ last_modified_by_user_id?: Uuid_Comparison_Exp | null | undefined;
3263
+ page_id?: String_Comparison_Exp | null | undefined;
3264
+ permissions?: Admin_Wiki_Permission_Bool_Exp | null | undefined;
3265
+ project_id?: Uuid_Comparison_Exp | null | undefined;
3266
+ };
3267
+ /** Ordering options when selecting data from "admin.wiki". */
3268
+ type Admin_Wiki_Order_By = {
3269
+ can_manage_permissions?: Order_By | null | undefined;
3270
+ content?: Order_By | null | undefined;
3271
+ created_at?: Order_By | null | undefined;
3272
+ created_by_user_id?: Order_By | null | undefined;
3273
+ deleted_at?: Order_By | null | undefined;
3274
+ effective_permission?: Order_By | null | undefined;
3275
+ federated_by_aggregate?: Admin_Federated_Wiki_Aggregate_Order_By | null | undefined;
3276
+ id?: Order_By | null | undefined;
3277
+ last_modified_at?: Order_By | null | undefined;
3278
+ last_modified_by_user_id?: Order_By | null | undefined;
3279
+ page_id?: Order_By | null | undefined;
3280
+ permissions_aggregate?: Admin_Wiki_Permission_Aggregate_Order_By | null | undefined;
3281
+ project_id?: Order_By | null | undefined;
3282
+ };
3283
+ /** order by aggregate values of table "admin.wiki_permission" */
3284
+ type Admin_Wiki_Permission_Aggregate_Order_By = {
3285
+ count?: Order_By | null | undefined;
3286
+ max?: Admin_Wiki_Permission_Max_Order_By | null | undefined;
3287
+ min?: Admin_Wiki_Permission_Min_Order_By | null | undefined;
3288
+ };
3289
+ /** Boolean expression to filter rows from the table "admin.wiki_permission". All fields are combined with a logical 'AND'. */
3290
+ type Admin_Wiki_Permission_Bool_Exp = {
3291
+ _and?: Array<Admin_Wiki_Permission_Bool_Exp> | null | undefined;
3292
+ _not?: Admin_Wiki_Permission_Bool_Exp | null | undefined;
3293
+ _or?: Array<Admin_Wiki_Permission_Bool_Exp> | null | undefined;
3294
+ claim_key?: String_Comparison_Exp | null | undefined;
3295
+ claim_value?: String_Comparison_Exp | null | undefined;
3296
+ created_at?: Timestamptz_Comparison_Exp | null | undefined;
3297
+ granted_by_user?: Promptql_Users_Bool_Exp | null | undefined;
3298
+ granted_by_user_id?: Uuid_Comparison_Exp | null | undefined;
3299
+ grantee_type?: String_Comparison_Exp | null | undefined;
3300
+ grantee_user?: Promptql_Users_Bool_Exp | null | undefined;
3301
+ grantee_user_id?: Uuid_Comparison_Exp | null | undefined;
3302
+ id?: Uuid_Comparison_Exp | null | undefined;
3303
+ permission?: String_Comparison_Exp | null | undefined;
3304
+ updated_at?: Timestamptz_Comparison_Exp | null | undefined;
3305
+ updated_by_user?: Promptql_Users_Bool_Exp | null | undefined;
3306
+ updated_by_user_id?: Uuid_Comparison_Exp | null | undefined;
3307
+ user_matches?: Boolean_Comparison_Exp | null | undefined;
3308
+ wiki?: Admin_Wiki_Bool_Exp | null | undefined;
3309
+ wiki_id?: Uuid_Comparison_Exp | null | undefined;
3310
+ };
3311
+ /** order by max() on columns of table "admin.wiki_permission" */
3312
+ type Admin_Wiki_Permission_Max_Order_By = {
3313
+ claim_key?: Order_By | null | undefined;
3314
+ claim_value?: Order_By | null | undefined;
3315
+ created_at?: Order_By | null | undefined;
3316
+ granted_by_user_id?: Order_By | null | undefined;
3317
+ grantee_type?: Order_By | null | undefined;
3318
+ grantee_user_id?: Order_By | null | undefined;
3319
+ id?: Order_By | null | undefined;
3320
+ permission?: Order_By | null | undefined;
3321
+ updated_at?: Order_By | null | undefined;
3322
+ updated_by_user_id?: Order_By | null | undefined;
3323
+ wiki_id?: Order_By | null | undefined;
3324
+ };
3325
+ /** order by min() on columns of table "admin.wiki_permission" */
3326
+ type Admin_Wiki_Permission_Min_Order_By = {
3327
+ claim_key?: Order_By | null | undefined;
3328
+ claim_value?: Order_By | null | undefined;
3329
+ created_at?: Order_By | null | undefined;
3330
+ granted_by_user_id?: Order_By | null | undefined;
3331
+ grantee_type?: Order_By | null | undefined;
3332
+ grantee_user_id?: Order_By | null | undefined;
3333
+ id?: Order_By | null | undefined;
3334
+ permission?: Order_By | null | undefined;
3335
+ updated_at?: Order_By | null | undefined;
3336
+ updated_by_user_id?: Order_By | null | undefined;
3337
+ wiki_id?: Order_By | null | undefined;
3338
+ };
3339
+ type Artifact_Versions_Aggregate_Bool_Exp = {
3340
+ count?: Artifact_Versions_Aggregate_Bool_Exp_Count | null | undefined;
3341
+ };
3342
+ type Artifact_Versions_Aggregate_Bool_Exp_Count = {
3343
+ arguments?: Array<Artifact_Versions_Select_Column> | null | undefined;
3344
+ distinct?: boolean | null | undefined;
3345
+ filter?: Artifact_Versions_Bool_Exp | null | undefined;
3346
+ predicate: Int_Comparison_Exp;
3347
+ };
3348
+ /** order by aggregate values of table "artifact_versions" */
3349
+ type Artifact_Versions_Aggregate_Order_By = {
3350
+ avg?: Artifact_Versions_Avg_Order_By | null | undefined;
3351
+ count?: Order_By | null | undefined;
3352
+ max?: Artifact_Versions_Max_Order_By | null | undefined;
3353
+ min?: Artifact_Versions_Min_Order_By | null | undefined;
3354
+ stddev?: Artifact_Versions_Stddev_Order_By | null | undefined;
3355
+ stddev_pop?: Artifact_Versions_Stddev_Pop_Order_By | null | undefined;
3356
+ stddev_samp?: Artifact_Versions_Stddev_Samp_Order_By | null | undefined;
3357
+ sum?: Artifact_Versions_Sum_Order_By | null | undefined;
3358
+ var_pop?: Artifact_Versions_Var_Pop_Order_By | null | undefined;
3359
+ var_samp?: Artifact_Versions_Var_Samp_Order_By | null | undefined;
3360
+ variance?: Artifact_Versions_Variance_Order_By | null | undefined;
3361
+ };
3362
+ /** order by avg() on columns of table "artifact_versions" */
3363
+ type Artifact_Versions_Avg_Order_By = {
3364
+ copy_of_artifact_version?: Order_By | null | undefined;
3365
+ size?: Order_By | null | undefined;
3366
+ version?: Order_By | null | undefined;
3367
+ };
3368
+ /** Boolean expression to filter rows from the table "artifact_versions". All fields are combined with a logical 'AND'. */
3369
+ type Artifact_Versions_Bool_Exp = {
3370
+ _and?: Array<Artifact_Versions_Bool_Exp> | null | undefined;
3371
+ _not?: Artifact_Versions_Bool_Exp | null | undefined;
3372
+ _or?: Array<Artifact_Versions_Bool_Exp> | null | undefined;
3373
+ artifact?: Artifacts_Bool_Exp | null | undefined;
3374
+ artifact_id?: Uuid_Comparison_Exp | null | undefined;
3375
+ artifact_metadata?: Jsonb_Comparison_Exp | null | undefined;
3376
+ artifact_type?: String_Comparison_Exp | null | undefined;
3377
+ copy_of_artifact_id?: Uuid_Comparison_Exp | null | undefined;
3378
+ copy_of_artifact_version?: Int_Comparison_Exp | null | undefined;
3379
+ copy_of_artifact_version_object?: Artifact_Versions_Bool_Exp | null | undefined;
3380
+ created_at?: Timestamptz_Comparison_Exp | null | undefined;
3381
+ data?: Bytea_Comparison_Exp | null | undefined;
3382
+ data_location?: String_Comparison_Exp | null | undefined;
3383
+ description?: String_Comparison_Exp | null | undefined;
3384
+ size?: Bigint_Comparison_Exp | null | undefined;
3385
+ title?: String_Comparison_Exp | null | undefined;
3386
+ user_id?: Uuid_Comparison_Exp | null | undefined;
3387
+ version?: Int_Comparison_Exp | null | undefined;
3388
+ };
3389
+ /** order by max() on columns of table "artifact_versions" */
3390
+ type Artifact_Versions_Max_Order_By = {
3391
+ artifact_id?: Order_By | null | undefined;
3392
+ artifact_type?: Order_By | null | undefined;
3393
+ copy_of_artifact_id?: Order_By | null | undefined;
3394
+ copy_of_artifact_version?: Order_By | null | undefined;
3395
+ created_at?: Order_By | null | undefined;
3396
+ data_location?: Order_By | null | undefined;
3397
+ description?: Order_By | null | undefined;
3398
+ size?: Order_By | null | undefined;
3399
+ title?: Order_By | null | undefined;
3400
+ user_id?: Order_By | null | undefined;
3401
+ version?: Order_By | null | undefined;
3402
+ };
3403
+ /** order by min() on columns of table "artifact_versions" */
3404
+ type Artifact_Versions_Min_Order_By = {
3405
+ artifact_id?: Order_By | null | undefined;
3406
+ artifact_type?: Order_By | null | undefined;
3407
+ copy_of_artifact_id?: Order_By | null | undefined;
3408
+ copy_of_artifact_version?: Order_By | null | undefined;
3409
+ created_at?: Order_By | null | undefined;
3410
+ data_location?: Order_By | null | undefined;
3411
+ description?: Order_By | null | undefined;
3412
+ size?: Order_By | null | undefined;
3413
+ title?: Order_By | null | undefined;
3414
+ user_id?: Order_By | null | undefined;
3415
+ version?: Order_By | null | undefined;
3416
+ };
3417
+ /** Ordering options when selecting data from "artifact_versions". */
3418
+ type Artifact_Versions_Order_By = {
3419
+ artifact?: Artifacts_Order_By | null | undefined;
3420
+ artifact_id?: Order_By | null | undefined;
3421
+ artifact_metadata?: Order_By | null | undefined;
3422
+ artifact_type?: Order_By | null | undefined;
3423
+ copy_of_artifact_id?: Order_By | null | undefined;
3424
+ copy_of_artifact_version?: Order_By | null | undefined;
3425
+ copy_of_artifact_version_object?: Artifact_Versions_Order_By | null | undefined;
3426
+ created_at?: Order_By | null | undefined;
3427
+ data?: Order_By | null | undefined;
3428
+ data_location?: Order_By | null | undefined;
3429
+ description?: Order_By | null | undefined;
3430
+ size?: Order_By | null | undefined;
3431
+ title?: Order_By | null | undefined;
3432
+ user_id?: Order_By | null | undefined;
3433
+ version?: Order_By | null | undefined;
3434
+ };
3435
+ /** select columns of table "artifact_versions" */
3436
+ type Artifact_Versions_Select_Column =
3437
+ /** column name */
3438
+ 'artifact_id'
3439
+ /** column name */
3440
+ | 'artifact_metadata'
3441
+ /** column name */
3442
+ | 'artifact_type'
3443
+ /** column name */
3444
+ | 'copy_of_artifact_id'
3445
+ /** column name */
3446
+ | 'copy_of_artifact_version'
3447
+ /** column name */
3448
+ | 'created_at'
3449
+ /** column name */
3450
+ | 'data'
3451
+ /** column name */
3452
+ | 'data_location'
3453
+ /** column name */
3454
+ | 'description'
3455
+ /** column name */
3456
+ | 'size'
3457
+ /** column name */
3458
+ | 'title'
3459
+ /** column name */
3460
+ | 'user_id'
3461
+ /** column name */
3462
+ | 'version';
3463
+ /** order by stddev() on columns of table "artifact_versions" */
3464
+ type Artifact_Versions_Stddev_Order_By = {
3465
+ copy_of_artifact_version?: Order_By | null | undefined;
3466
+ size?: Order_By | null | undefined;
3467
+ version?: Order_By | null | undefined;
3468
+ };
3469
+ /** order by stddev_pop() on columns of table "artifact_versions" */
3470
+ type Artifact_Versions_Stddev_Pop_Order_By = {
3471
+ copy_of_artifact_version?: Order_By | null | undefined;
3472
+ size?: Order_By | null | undefined;
3473
+ version?: Order_By | null | undefined;
3474
+ };
3475
+ /** order by stddev_samp() on columns of table "artifact_versions" */
3476
+ type Artifact_Versions_Stddev_Samp_Order_By = {
3477
+ copy_of_artifact_version?: Order_By | null | undefined;
3478
+ size?: Order_By | null | undefined;
3479
+ version?: Order_By | null | undefined;
3480
+ };
3481
+ /** order by sum() on columns of table "artifact_versions" */
3482
+ type Artifact_Versions_Sum_Order_By = {
3483
+ copy_of_artifact_version?: Order_By | null | undefined;
3484
+ size?: Order_By | null | undefined;
3485
+ version?: Order_By | null | undefined;
3486
+ };
3487
+ /** order by var_pop() on columns of table "artifact_versions" */
3488
+ type Artifact_Versions_Var_Pop_Order_By = {
3489
+ copy_of_artifact_version?: Order_By | null | undefined;
3490
+ size?: Order_By | null | undefined;
3491
+ version?: Order_By | null | undefined;
3492
+ };
3493
+ /** order by var_samp() on columns of table "artifact_versions" */
3494
+ type Artifact_Versions_Var_Samp_Order_By = {
3495
+ copy_of_artifact_version?: Order_By | null | undefined;
3496
+ size?: Order_By | null | undefined;
3497
+ version?: Order_By | null | undefined;
3498
+ };
3499
+ /** order by variance() on columns of table "artifact_versions" */
3500
+ type Artifact_Versions_Variance_Order_By = {
3501
+ copy_of_artifact_version?: Order_By | null | undefined;
3502
+ size?: Order_By | null | undefined;
3503
+ version?: Order_By | null | undefined;
3504
+ };
3505
+ /** Boolean expression to filter rows from the table "artifacts". All fields are combined with a logical 'AND'. */
3506
+ type Artifacts_Bool_Exp = {
3507
+ _and?: Array<Artifacts_Bool_Exp> | null | undefined;
3508
+ _not?: Artifacts_Bool_Exp | null | undefined;
3509
+ _or?: Array<Artifacts_Bool_Exp> | null | undefined;
3510
+ artifact_id?: Uuid_Comparison_Exp | null | undefined;
3511
+ artifact_versions?: Artifact_Versions_Bool_Exp | null | undefined;
3512
+ artifact_versions_aggregate?: Artifact_Versions_Aggregate_Bool_Exp | null | undefined;
3513
+ created_at?: Timestamptz_Comparison_Exp | null | undefined;
3514
+ latest_version?: Int_Comparison_Exp | null | undefined;
3515
+ latest_version_object?: Artifact_Versions_Bool_Exp | null | undefined;
3516
+ program_artifact?: Program_Artifacts_Bool_Exp | null | undefined;
3517
+ project_artifact?: Project_Artifacts_Bool_Exp | null | undefined;
3518
+ thread_artifacts?: Thread_Artifacts_Bool_Exp | null | undefined;
3519
+ thread_artifacts_aggregate?: Thread_Artifacts_Aggregate_Bool_Exp | null | undefined;
3520
+ updated_at?: Timestamptz_Comparison_Exp | null | undefined;
3521
+ };
3522
+ /** Ordering options when selecting data from "artifacts". */
3523
+ type Artifacts_Order_By = {
3524
+ artifact_id?: Order_By | null | undefined;
3525
+ artifact_versions_aggregate?: Artifact_Versions_Aggregate_Order_By | null | undefined;
3526
+ created_at?: Order_By | null | undefined;
3527
+ latest_version?: Order_By | null | undefined;
3528
+ latest_version_object?: Artifact_Versions_Order_By | null | undefined;
3529
+ program_artifact?: Program_Artifacts_Order_By | null | undefined;
3530
+ project_artifact?: Project_Artifacts_Order_By | null | undefined;
3531
+ thread_artifacts_aggregate?: Thread_Artifacts_Aggregate_Order_By | null | undefined;
3532
+ updated_at?: Order_By | null | undefined;
3533
+ };
3534
+ /** Boolean expression to compare columns of type "bigint". All fields are combined with logical 'AND'. */
3535
+ type Bigint_Comparison_Exp = {
3536
+ _eq?: string | null | undefined;
3537
+ _gt?: string | null | undefined;
3538
+ _gte?: string | null | undefined;
3539
+ _in?: Array<string> | null | undefined;
3540
+ _is_null?: boolean | null | undefined;
3541
+ _lt?: string | null | undefined;
3542
+ _lte?: string | null | undefined;
3543
+ _neq?: string | null | undefined;
3544
+ _nin?: Array<string> | null | undefined;
3545
+ };
3546
+ /** Boolean expression to compare columns of type "bytea". All fields are combined with logical 'AND'. */
3547
+ type Bytea_Comparison_Exp = {
3548
+ _eq?: string | null | undefined;
3549
+ _gt?: string | null | undefined;
3550
+ _gte?: string | null | undefined;
3551
+ _in?: Array<string> | null | undefined;
3552
+ _is_null?: boolean | null | undefined;
3553
+ _lt?: string | null | undefined;
3554
+ _lte?: string | null | undefined;
3555
+ _neq?: string | null | undefined;
3556
+ _nin?: Array<string> | null | undefined;
3557
+ };
3558
+ /** Boolean expression to compare columns of type "citext". All fields are combined with logical 'AND'. */
3559
+ type Citext_Comparison_Exp = {
3560
+ _eq?: string | null | undefined;
3561
+ _gt?: string | null | undefined;
3562
+ _gte?: string | null | undefined;
3563
+ /** does the column match the given case-insensitive pattern */
3564
+ _ilike?: string | null | undefined;
3565
+ _in?: Array<string> | null | undefined;
3566
+ /** does the column match the given POSIX regular expression, case insensitive */
3567
+ _iregex?: string | null | undefined;
3568
+ _is_null?: boolean | null | undefined;
3569
+ /** does the column match the given pattern */
3570
+ _like?: string | null | undefined;
3571
+ _lt?: string | null | undefined;
3572
+ _lte?: string | null | undefined;
3573
+ _neq?: string | null | undefined;
3574
+ /** does the column NOT match the given case-insensitive pattern */
3575
+ _nilike?: string | null | undefined;
3576
+ _nin?: Array<string> | null | undefined;
3577
+ /** does the column NOT match the given POSIX regular expression, case insensitive */
3578
+ _niregex?: string | null | undefined;
3579
+ /** does the column NOT match the given pattern */
3580
+ _nlike?: string | null | undefined;
3581
+ /** does the column NOT match the given POSIX regular expression, case sensitive */
3582
+ _nregex?: string | null | undefined;
3583
+ /** does the column NOT match the given SQL regular expression */
3584
+ _nsimilar?: string | null | undefined;
3585
+ /** does the column match the given POSIX regular expression, case sensitive */
3586
+ _regex?: string | null | undefined;
3587
+ /** does the column match the given SQL regular expression */
3588
+ _similar?: string | null | undefined;
3589
+ };
3590
+ /** order by aggregate values of table "custom_claim_assignments" */
3591
+ type Custom_Claim_Assignments_Aggregate_Order_By = {
3592
+ count?: Order_By | null | undefined;
3593
+ max?: Custom_Claim_Assignments_Max_Order_By | null | undefined;
3594
+ min?: Custom_Claim_Assignments_Min_Order_By | null | undefined;
3595
+ };
3596
+ /** Boolean expression to filter rows from the table "custom_claim_assignments". All fields are combined with a logical 'AND'. */
3597
+ type Custom_Claim_Assignments_Bool_Exp = {
3598
+ _and?: Array<Custom_Claim_Assignments_Bool_Exp> | null | undefined;
3599
+ _not?: Custom_Claim_Assignments_Bool_Exp | null | undefined;
3600
+ _or?: Array<Custom_Claim_Assignments_Bool_Exp> | null | undefined;
3601
+ assignee?: Promptql_Users_Bool_Exp | null | undefined;
3602
+ assignee_id?: Uuid_Comparison_Exp | null | undefined;
3603
+ claim_key_id?: Uuid_Comparison_Exp | null | undefined;
3604
+ claim_value?: String_Comparison_Exp | null | undefined;
3605
+ custom_claim_key?: Custom_Claim_Keys_Bool_Exp | null | undefined;
3606
+ };
3607
+ /** order by max() on columns of table "custom_claim_assignments" */
3608
+ type Custom_Claim_Assignments_Max_Order_By = {
3609
+ assignee_id?: Order_By | null | undefined;
3610
+ claim_key_id?: Order_By | null | undefined;
3611
+ claim_value?: Order_By | null | undefined;
3612
+ };
3613
+ /** order by min() on columns of table "custom_claim_assignments" */
3614
+ type Custom_Claim_Assignments_Min_Order_By = {
3615
+ assignee_id?: Order_By | null | undefined;
3616
+ claim_key_id?: Order_By | null | undefined;
3617
+ claim_value?: Order_By | null | undefined;
3618
+ };
3619
+ /** Boolean expression to filter rows from the table "custom_claim_keys". All fields are combined with a logical 'AND'. */
3620
+ type Custom_Claim_Keys_Bool_Exp = {
3621
+ _and?: Array<Custom_Claim_Keys_Bool_Exp> | null | undefined;
3622
+ _not?: Custom_Claim_Keys_Bool_Exp | null | undefined;
3623
+ _or?: Array<Custom_Claim_Keys_Bool_Exp> | null | undefined;
3624
+ claim_key?: String_Comparison_Exp | null | undefined;
3625
+ created_by?: Uuid_Comparison_Exp | null | undefined;
3626
+ creator?: Promptql_Users_Bool_Exp | null | undefined;
3627
+ custom_claim_assignments?: Custom_Claim_Assignments_Bool_Exp | null | undefined;
3628
+ custom_claim_owners?: Custom_Claim_Owners_Bool_Exp | null | undefined;
3629
+ description?: String_Comparison_Exp | null | undefined;
3630
+ id?: Uuid_Comparison_Exp | null | undefined;
3631
+ project_id?: Uuid_Comparison_Exp | null | undefined;
3632
+ };
3633
+ /** Boolean expression to filter rows from the table "custom_claim_owners". All fields are combined with a logical 'AND'. */
3634
+ type Custom_Claim_Owners_Bool_Exp = {
3635
+ _and?: Array<Custom_Claim_Owners_Bool_Exp> | null | undefined;
3636
+ _not?: Custom_Claim_Owners_Bool_Exp | null | undefined;
3637
+ _or?: Array<Custom_Claim_Owners_Bool_Exp> | null | undefined;
3638
+ claim_key_id?: Uuid_Comparison_Exp | null | undefined;
3639
+ custom_claim_key?: Custom_Claim_Keys_Bool_Exp | null | undefined;
3640
+ id?: Uuid_Comparison_Exp | null | undefined;
3641
+ owner?: Promptql_Users_Bool_Exp | null | undefined;
3642
+ owner_id?: Uuid_Comparison_Exp | null | undefined;
3643
+ };
3644
+ /** Boolean expression to filter rows from the table "feed_candidate_selected_messages". All fields are combined with a logical 'AND'. */
3645
+ type Feed_Candidate_Selected_Messages_Bool_Exp = {
3646
+ _and?: Array<Feed_Candidate_Selected_Messages_Bool_Exp> | null | undefined;
3647
+ _not?: Feed_Candidate_Selected_Messages_Bool_Exp | null | undefined;
3648
+ _or?: Array<Feed_Candidate_Selected_Messages_Bool_Exp> | null | undefined;
3649
+ created_at?: Timestamptz_Comparison_Exp | null | undefined;
3650
+ display_text?: String_Comparison_Exp | null | undefined;
3651
+ feed_candidate?: Social_Feed_Candidates_Bool_Exp | null | undefined;
3652
+ feed_candidate_id?: Uuid_Comparison_Exp | null | undefined;
3653
+ id?: Bigint_Comparison_Exp | null | undefined;
3654
+ message_id?: String_Comparison_Exp | null | undefined;
3655
+ message_type?: String_Comparison_Exp | null | undefined;
3656
+ thread_event?: Thread_Events_Bool_Exp | null | undefined;
3657
+ thread_event_id?: Bigint_Comparison_Exp | null | undefined;
3658
+ };
3659
+ type Jsonb_Cast_Exp = {
3660
+ String?: String_Comparison_Exp | null | undefined;
3661
+ };
3662
+ /** Boolean expression to compare columns of type "jsonb". All fields are combined with logical 'AND'. */
3663
+ type Jsonb_Comparison_Exp = {
3664
+ _cast?: Jsonb_Cast_Exp | null | undefined;
3665
+ /** is the column contained in the given json value */
3666
+ _contained_in?: any;
3667
+ /** does the column contain the given json value at the top level */
3668
+ _contains?: any;
3669
+ _eq?: any;
3670
+ _gt?: any;
3671
+ _gte?: any;
3672
+ /** does the string exist as a top-level key in the column */
3673
+ _has_key?: string | null | undefined;
3674
+ /** do all of these strings exist as top-level keys in the column */
3675
+ _has_keys_all?: Array<string> | null | undefined;
3676
+ /** do any of these strings exist as top-level keys in the column */
3677
+ _has_keys_any?: Array<string> | null | undefined;
3678
+ _in?: Array<any> | null | undefined;
3679
+ _is_null?: boolean | null | undefined;
3680
+ _lt?: any;
3681
+ _lte?: any;
3682
+ _neq?: any;
3683
+ _nin?: Array<any> | null | undefined;
3684
+ };
3685
+ type Message_Reactions_Aggregate_Bool_Exp = {
3686
+ count?: Message_Reactions_Aggregate_Bool_Exp_Count | null | undefined;
3687
+ };
3688
+ type Message_Reactions_Aggregate_Bool_Exp_Count = {
3689
+ arguments?: Array<Message_Reactions_Select_Column> | null | undefined;
3690
+ distinct?: boolean | null | undefined;
3691
+ filter?: Message_Reactions_Bool_Exp | null | undefined;
3692
+ predicate: Int_Comparison_Exp;
3693
+ };
3694
+ /** order by aggregate values of table "message_reactions" */
3695
+ type Message_Reactions_Aggregate_Order_By = {
3696
+ count?: Order_By | null | undefined;
3697
+ max?: Message_Reactions_Max_Order_By | null | undefined;
3698
+ min?: Message_Reactions_Min_Order_By | null | undefined;
3699
+ };
3700
+ /** Boolean expression to filter rows from the table "message_reactions". All fields are combined with a logical 'AND'. */
3701
+ type Message_Reactions_Bool_Exp = {
3702
+ _and?: Array<Message_Reactions_Bool_Exp> | null | undefined;
3703
+ _not?: Message_Reactions_Bool_Exp | null | undefined;
3704
+ _or?: Array<Message_Reactions_Bool_Exp> | null | undefined;
3705
+ created_at?: Timestamptz_Comparison_Exp | null | undefined;
3706
+ emoji?: String_Comparison_Exp | null | undefined;
3707
+ message_id?: Uuid_Comparison_Exp | null | undefined;
3708
+ promptql_user_id?: Uuid_Comparison_Exp | null | undefined;
3709
+ thread?: Threads_V2_Bool_Exp | null | undefined;
3710
+ thread_id?: Uuid_Comparison_Exp | null | undefined;
3711
+ user?: Promptql_Users_Bool_Exp | null | undefined;
3712
+ };
3713
+ /** order by max() on columns of table "message_reactions" */
3714
+ type Message_Reactions_Max_Order_By = {
3715
+ created_at?: Order_By | null | undefined;
3716
+ emoji?: Order_By | null | undefined;
3717
+ message_id?: Order_By | null | undefined;
3718
+ promptql_user_id?: Order_By | null | undefined;
3719
+ thread_id?: Order_By | null | undefined;
3720
+ };
3721
+ /** order by min() on columns of table "message_reactions" */
3722
+ type Message_Reactions_Min_Order_By = {
3723
+ created_at?: Order_By | null | undefined;
3724
+ emoji?: Order_By | null | undefined;
3725
+ message_id?: Order_By | null | undefined;
3726
+ promptql_user_id?: Order_By | null | undefined;
3727
+ thread_id?: Order_By | null | undefined;
3728
+ };
3729
+ /** select columns of table "message_reactions" */
3730
+ type Message_Reactions_Select_Column =
3731
+ /** column name */
3732
+ 'created_at'
3733
+ /** column name */
3734
+ | 'emoji'
3735
+ /** column name */
3736
+ | 'message_id'
3737
+ /** column name */
3738
+ | 'promptql_user_id'
3739
+ /** column name */
3740
+ | 'thread_id';
3741
+ /** Boolean expression to filter rows from the table "notification_preference_enum". All fields are combined with a logical 'AND'. */
3742
+ type Notification_Preference_Enum_Bool_Exp = {
3743
+ _and?: Array<Notification_Preference_Enum_Bool_Exp> | null | undefined;
3744
+ _not?: Notification_Preference_Enum_Bool_Exp | null | undefined;
3745
+ _or?: Array<Notification_Preference_Enum_Bool_Exp> | null | undefined;
3746
+ comment?: String_Comparison_Exp | null | undefined;
3747
+ user_preferences_desktop_notification_preferences?: User_Preferences_Bool_Exp | null | undefined;
3748
+ user_preferences_mobile_notification_preferences?: User_Preferences_Bool_Exp | null | undefined;
3749
+ user_preferences_slack_notification_preferences?: User_Preferences_Bool_Exp | null | undefined;
3750
+ user_slack_notification_preferences?: User_Slack_Notification_Preferences_Bool_Exp | null | undefined;
3751
+ value?: String_Comparison_Exp | null | undefined;
3752
+ };
3753
+ type Notification_Preference_Enum_Enum =
3754
+ /** All notifications for all events */
3755
+ 'All'
3756
+ /** Notifications for mentions and PromptQL replies to your questions */
3757
+ | 'MentionsAndReplies'
3758
+ /** No notifications for any event */
3759
+ | 'Nothing';
3760
+ /** Boolean expression to compare columns of type "notification_preference_enum_enum". All fields are combined with logical 'AND'. */
3761
+ type Notification_Preference_Enum_Enum_Comparison_Exp = {
3762
+ _eq?: Notification_Preference_Enum_Enum | null | undefined;
3763
+ _in?: Array<Notification_Preference_Enum_Enum> | null | undefined;
3764
+ _is_null?: boolean | null | undefined;
3765
+ _neq?: Notification_Preference_Enum_Enum | null | undefined;
3766
+ _nin?: Array<Notification_Preference_Enum_Enum> | null | undefined;
3767
+ };
3768
+ /** Ordering options when selecting data from "notification_preference_enum". */
3769
+ type Notification_Preference_Enum_Order_By = {
3770
+ comment?: Order_By | null | undefined;
3771
+ user_preferences_desktop_notification_preferences_aggregate?: User_Preferences_Aggregate_Order_By | null | undefined;
3772
+ user_preferences_mobile_notification_preferences_aggregate?: User_Preferences_Aggregate_Order_By | null | undefined;
3773
+ user_preferences_slack_notification_preferences_aggregate?: User_Preferences_Aggregate_Order_By | null | undefined;
3774
+ user_slack_notification_preferences_aggregate?: User_Slack_Notification_Preferences_Aggregate_Order_By | null | undefined;
3775
+ value?: Order_By | null | undefined;
3776
+ };
3777
+ /** column ordering options */
3778
+ type Order_By =
3779
+ /** in ascending order, nulls last */
3780
+ 'asc'
3781
+ /** in ascending order, nulls first */
3782
+ | 'asc_nulls_first'
3783
+ /** in ascending order, nulls last */
3784
+ | 'asc_nulls_last'
3785
+ /** in descending order, nulls first */
3786
+ | 'desc'
3787
+ /** in descending order, nulls first */
3788
+ | 'desc_nulls_first'
3789
+ /** in descending order, nulls last */
3790
+ | 'desc_nulls_last';
3791
+ /** order by aggregate values of table "pinned_threads_v2" */
3792
+ type Pinned_Threads_V2_Aggregate_Order_By = {
3793
+ count?: Order_By | null | undefined;
3794
+ max?: Pinned_Threads_V2_Max_Order_By | null | undefined;
3795
+ min?: Pinned_Threads_V2_Min_Order_By | null | undefined;
3796
+ };
3797
+ /** Boolean expression to filter rows from the table "pinned_threads_v2". All fields are combined with a logical 'AND'. */
3798
+ type Pinned_Threads_V2_Bool_Exp = {
3799
+ _and?: Array<Pinned_Threads_V2_Bool_Exp> | null | undefined;
3800
+ _not?: Pinned_Threads_V2_Bool_Exp | null | undefined;
3801
+ _or?: Array<Pinned_Threads_V2_Bool_Exp> | null | undefined;
3802
+ created_at?: Timestamptz_Comparison_Exp | null | undefined;
3803
+ thread?: Threads_V2_Bool_Exp | null | undefined;
3804
+ thread_id?: Uuid_Comparison_Exp | null | undefined;
3805
+ user_id?: Uuid_Comparison_Exp | null | undefined;
3806
+ };
3807
+ /** order by max() on columns of table "pinned_threads_v2" */
3808
+ type Pinned_Threads_V2_Max_Order_By = {
3809
+ created_at?: Order_By | null | undefined;
3810
+ thread_id?: Order_By | null | undefined;
3811
+ user_id?: Order_By | null | undefined;
3812
+ };
3813
+ /** order by min() on columns of table "pinned_threads_v2" */
3814
+ type Pinned_Threads_V2_Min_Order_By = {
3815
+ created_at?: Order_By | null | undefined;
3816
+ thread_id?: Order_By | null | undefined;
3817
+ user_id?: Order_By | null | undefined;
3818
+ };
3819
+ type Program_Artifact_Kind_Enum_Enum =
3820
+ /** The artifact is data produced by the program */
3821
+ 'Data'
3822
+ /** The artifact is a file inside the program */
3823
+ | 'File';
3824
+ /** Boolean expression to compare columns of type "program_artifact_kind_enum_enum". All fields are combined with logical 'AND'. */
3825
+ type Program_Artifact_Kind_Enum_Enum_Comparison_Exp = {
3826
+ _eq?: Program_Artifact_Kind_Enum_Enum | null | undefined;
3827
+ _in?: Array<Program_Artifact_Kind_Enum_Enum> | null | undefined;
3828
+ _is_null?: boolean | null | undefined;
3829
+ _neq?: Program_Artifact_Kind_Enum_Enum | null | undefined;
3830
+ _nin?: Array<Program_Artifact_Kind_Enum_Enum> | null | undefined;
3831
+ };
3832
+ type Program_Artifacts_Aggregate_Bool_Exp = {
3833
+ count?: Program_Artifacts_Aggregate_Bool_Exp_Count | null | undefined;
3834
+ };
3835
+ type Program_Artifacts_Aggregate_Bool_Exp_Count = {
3836
+ arguments?: Array<Program_Artifacts_Select_Column> | null | undefined;
3837
+ distinct?: boolean | null | undefined;
3838
+ filter?: Program_Artifacts_Bool_Exp | null | undefined;
3839
+ predicate: Int_Comparison_Exp;
3840
+ };
3841
+ /** order by aggregate values of table "program_artifacts" */
3842
+ type Program_Artifacts_Aggregate_Order_By = {
3843
+ count?: Order_By | null | undefined;
3844
+ max?: Program_Artifacts_Max_Order_By | null | undefined;
3845
+ min?: Program_Artifacts_Min_Order_By | null | undefined;
3846
+ };
3847
+ /** Boolean expression to filter rows from the table "program_artifacts". All fields are combined with a logical 'AND'. */
3848
+ type Program_Artifacts_Bool_Exp = {
3849
+ _and?: Array<Program_Artifacts_Bool_Exp> | null | undefined;
3850
+ _not?: Program_Artifacts_Bool_Exp | null | undefined;
3851
+ _or?: Array<Program_Artifacts_Bool_Exp> | null | undefined;
3852
+ artifact?: Artifacts_Bool_Exp | null | undefined;
3853
+ artifact_id?: Uuid_Comparison_Exp | null | undefined;
3854
+ created_at?: Timestamptz_Comparison_Exp | null | undefined;
3855
+ kind?: Program_Artifact_Kind_Enum_Enum_Comparison_Exp | null | undefined;
3856
+ name?: String_Comparison_Exp | null | undefined;
3857
+ program?: Programs_Bool_Exp | null | undefined;
3858
+ program_id?: Uuid_Comparison_Exp | null | undefined;
3859
+ updated_at?: Timestamptz_Comparison_Exp | null | undefined;
3860
+ };
3861
+ /** order by max() on columns of table "program_artifacts" */
3862
+ type Program_Artifacts_Max_Order_By = {
3863
+ artifact_id?: Order_By | null | undefined;
3864
+ created_at?: Order_By | null | undefined;
3865
+ name?: Order_By | null | undefined;
3866
+ program_id?: Order_By | null | undefined;
3867
+ updated_at?: Order_By | null | undefined;
3868
+ };
3869
+ /** order by min() on columns of table "program_artifacts" */
3870
+ type Program_Artifacts_Min_Order_By = {
3871
+ artifact_id?: Order_By | null | undefined;
3872
+ created_at?: Order_By | null | undefined;
3873
+ name?: Order_By | null | undefined;
3874
+ program_id?: Order_By | null | undefined;
3875
+ updated_at?: Order_By | null | undefined;
3876
+ };
3877
+ /** Ordering options when selecting data from "program_artifacts". */
3878
+ type Program_Artifacts_Order_By = {
3879
+ artifact?: Artifacts_Order_By | null | undefined;
3880
+ artifact_id?: Order_By | null | undefined;
3881
+ created_at?: Order_By | null | undefined;
3882
+ kind?: Order_By | null | undefined;
3883
+ name?: Order_By | null | undefined;
3884
+ program?: Programs_Order_By | null | undefined;
3885
+ program_id?: Order_By | null | undefined;
3886
+ updated_at?: Order_By | null | undefined;
3887
+ };
3888
+ /** select columns of table "program_artifacts" */
3889
+ type Program_Artifacts_Select_Column =
3890
+ /** column name */
3891
+ 'artifact_id'
3892
+ /** column name */
3893
+ | 'created_at'
3894
+ /** column name */
3895
+ | 'kind'
3896
+ /** column name */
3897
+ | 'name'
3898
+ /** column name */
3899
+ | 'program_id'
3900
+ /** column name */
3901
+ | 'updated_at';
3902
+ /** Boolean expression to filter rows from the table "program_run_artifacts". All fields are combined with a logical 'AND'. */
3903
+ type Program_Run_Artifacts_Bool_Exp = {
3904
+ _and?: Array<Program_Run_Artifacts_Bool_Exp> | null | undefined;
3905
+ _not?: Program_Run_Artifacts_Bool_Exp | null | undefined;
3906
+ _or?: Array<Program_Run_Artifacts_Bool_Exp> | null | undefined;
3907
+ artifact_id?: Uuid_Comparison_Exp | null | undefined;
3908
+ artifact_version?: Int_Comparison_Exp | null | undefined;
3909
+ artifact_version_object?: Artifact_Versions_Bool_Exp | null | undefined;
3910
+ program_id?: Uuid_Comparison_Exp | null | undefined;
3911
+ program_run?: Program_Runs_Bool_Exp | null | undefined;
3912
+ run_id?: Bigint_Comparison_Exp | null | undefined;
3913
+ };
3914
+ /** Boolean expression to filter rows from the table "program_run_events". All fields are combined with a logical 'AND'. */
3915
+ type Program_Run_Events_Bool_Exp = {
3916
+ _and?: Array<Program_Run_Events_Bool_Exp> | null | undefined;
3917
+ _not?: Program_Run_Events_Bool_Exp | null | undefined;
3918
+ _or?: Array<Program_Run_Events_Bool_Exp> | null | undefined;
3919
+ created_at?: Timestamptz_Comparison_Exp | null | undefined;
3920
+ event_data?: Jsonb_Comparison_Exp | null | undefined;
3921
+ event_id?: Bigint_Comparison_Exp | null | undefined;
3922
+ program_id?: Uuid_Comparison_Exp | null | undefined;
3923
+ program_run?: Program_Runs_Bool_Exp | null | undefined;
3924
+ run_id?: Bigint_Comparison_Exp | null | undefined;
3925
+ step_index?: Int_Comparison_Exp | null | undefined;
3926
+ type?: String_Comparison_Exp | null | undefined;
3927
+ };
3928
+ /** order by aggregate values of table "program_runs" */
3929
+ type Program_Runs_Aggregate_Order_By = {
3930
+ avg?: Program_Runs_Avg_Order_By | null | undefined;
3931
+ count?: Order_By | null | undefined;
3932
+ max?: Program_Runs_Max_Order_By | null | undefined;
3933
+ min?: Program_Runs_Min_Order_By | null | undefined;
3934
+ stddev?: Program_Runs_Stddev_Order_By | null | undefined;
3935
+ stddev_pop?: Program_Runs_Stddev_Pop_Order_By | null | undefined;
3936
+ stddev_samp?: Program_Runs_Stddev_Samp_Order_By | null | undefined;
3937
+ sum?: Program_Runs_Sum_Order_By | null | undefined;
3938
+ var_pop?: Program_Runs_Var_Pop_Order_By | null | undefined;
3939
+ var_samp?: Program_Runs_Var_Samp_Order_By | null | undefined;
3940
+ variance?: Program_Runs_Variance_Order_By | null | undefined;
3941
+ };
3942
+ /** order by avg() on columns of table "program_runs" */
3943
+ type Program_Runs_Avg_Order_By = {
3944
+ run_id?: Order_By | null | undefined;
3945
+ };
3946
+ /** Boolean expression to filter rows from the table "program_runs". All fields are combined with a logical 'AND'. */
3947
+ type Program_Runs_Bool_Exp = {
3948
+ _and?: Array<Program_Runs_Bool_Exp> | null | undefined;
3949
+ _not?: Program_Runs_Bool_Exp | null | undefined;
3950
+ _or?: Array<Program_Runs_Bool_Exp> | null | undefined;
3951
+ build_fqdn?: String_Comparison_Exp | null | undefined;
3952
+ completed_at?: Timestamptz_Comparison_Exp | null | undefined;
3953
+ created_at?: Timestamptz_Comparison_Exp | null | undefined;
3954
+ entry_point_artifact?: Uuid_Comparison_Exp | null | undefined;
3955
+ entry_point_artifact_object?: Artifacts_Bool_Exp | null | undefined;
3956
+ program?: Programs_Bool_Exp | null | undefined;
3957
+ program_id?: Uuid_Comparison_Exp | null | undefined;
3958
+ program_run_artifacts?: Program_Run_Artifacts_Bool_Exp | null | undefined;
3959
+ program_run_events?: Program_Run_Events_Bool_Exp | null | undefined;
3960
+ run_id?: Bigint_Comparison_Exp | null | undefined;
3961
+ successful?: Boolean_Comparison_Exp | null | undefined;
3962
+ };
3963
+ /** order by max() on columns of table "program_runs" */
3964
+ type Program_Runs_Max_Order_By = {
3965
+ build_fqdn?: Order_By | null | undefined;
3966
+ completed_at?: Order_By | null | undefined;
3967
+ created_at?: Order_By | null | undefined;
3968
+ entry_point_artifact?: Order_By | null | undefined;
3969
+ program_id?: Order_By | null | undefined;
3970
+ run_id?: Order_By | null | undefined;
3971
+ };
3972
+ /** order by min() on columns of table "program_runs" */
3973
+ type Program_Runs_Min_Order_By = {
3974
+ build_fqdn?: Order_By | null | undefined;
3975
+ completed_at?: Order_By | null | undefined;
3976
+ created_at?: Order_By | null | undefined;
3977
+ entry_point_artifact?: Order_By | null | undefined;
3978
+ program_id?: Order_By | null | undefined;
3979
+ run_id?: Order_By | null | undefined;
3980
+ };
3981
+ /** order by stddev() on columns of table "program_runs" */
3982
+ type Program_Runs_Stddev_Order_By = {
3983
+ run_id?: Order_By | null | undefined;
3984
+ };
3985
+ /** order by stddev_pop() on columns of table "program_runs" */
3986
+ type Program_Runs_Stddev_Pop_Order_By = {
3987
+ run_id?: Order_By | null | undefined;
3988
+ };
3989
+ /** order by stddev_samp() on columns of table "program_runs" */
3990
+ type Program_Runs_Stddev_Samp_Order_By = {
3991
+ run_id?: Order_By | null | undefined;
3992
+ };
3993
+ /** order by sum() on columns of table "program_runs" */
3994
+ type Program_Runs_Sum_Order_By = {
3995
+ run_id?: Order_By | null | undefined;
3996
+ };
3997
+ /** order by var_pop() on columns of table "program_runs" */
3998
+ type Program_Runs_Var_Pop_Order_By = {
3999
+ run_id?: Order_By | null | undefined;
4000
+ };
4001
+ /** order by var_samp() on columns of table "program_runs" */
4002
+ type Program_Runs_Var_Samp_Order_By = {
4003
+ run_id?: Order_By | null | undefined;
4004
+ };
4005
+ /** order by variance() on columns of table "program_runs" */
4006
+ type Program_Runs_Variance_Order_By = {
4007
+ run_id?: Order_By | null | undefined;
4008
+ };
4009
+ type Program_Visibility_Enum_Enum =
4010
+ /** Owner can read and write, no one else has access */
4011
+ 'OwnerReadWrite'
4012
+ /** Owner can read and write, project members can read the code and schedules, artifacts and runs */
4013
+ | 'ProjectReadCodeAndData'
4014
+ /** Owner can read and write, project members can read and write */
4015
+ | 'ProjectReadWrite';
4016
+ /** Boolean expression to compare columns of type "program_visibility_enum_enum". All fields are combined with logical 'AND'. */
4017
+ type Program_Visibility_Enum_Enum_Comparison_Exp = {
4018
+ _eq?: Program_Visibility_Enum_Enum | null | undefined;
4019
+ _in?: Array<Program_Visibility_Enum_Enum> | null | undefined;
4020
+ _is_null?: boolean | null | undefined;
4021
+ _neq?: Program_Visibility_Enum_Enum | null | undefined;
4022
+ _nin?: Array<Program_Visibility_Enum_Enum> | null | undefined;
4023
+ };
4024
+ /** Boolean expression to filter rows from the table "programs". All fields are combined with a logical 'AND'. */
4025
+ type Programs_Bool_Exp = {
4026
+ _and?: Array<Programs_Bool_Exp> | null | undefined;
4027
+ _not?: Programs_Bool_Exp | null | undefined;
4028
+ _or?: Array<Programs_Bool_Exp> | null | undefined;
4029
+ copied_from_program?: Programs_Bool_Exp | null | undefined;
4030
+ copied_from_program_id?: Uuid_Comparison_Exp | null | undefined;
4031
+ created_at?: Timestamptz_Comparison_Exp | null | undefined;
4032
+ id?: Uuid_Comparison_Exp | null | undefined;
4033
+ name?: String_Comparison_Exp | null | undefined;
4034
+ owner_user?: Promptql_Users_Bool_Exp | null | undefined;
4035
+ owner_user_id?: Uuid_Comparison_Exp | null | undefined;
4036
+ package_name?: String_Comparison_Exp | null | undefined;
4037
+ program_artifacts?: Program_Artifacts_Bool_Exp | null | undefined;
4038
+ program_artifacts_aggregate?: Program_Artifacts_Aggregate_Bool_Exp | null | undefined;
4039
+ program_runs?: Program_Runs_Bool_Exp | null | undefined;
4040
+ project_id?: Uuid_Comparison_Exp | null | undefined;
4041
+ updated_at?: Timestamptz_Comparison_Exp | null | undefined;
4042
+ visibility?: Program_Visibility_Enum_Enum_Comparison_Exp | null | undefined;
4043
+ };
4044
+ /** Ordering options when selecting data from "programs". */
4045
+ type Programs_Order_By = {
4046
+ copied_from_program?: Programs_Order_By | null | undefined;
4047
+ copied_from_program_id?: Order_By | null | undefined;
4048
+ created_at?: Order_By | null | undefined;
4049
+ id?: Order_By | null | undefined;
4050
+ name?: Order_By | null | undefined;
4051
+ owner_user?: Promptql_Users_Order_By | null | undefined;
4052
+ owner_user_id?: Order_By | null | undefined;
4053
+ package_name?: Order_By | null | undefined;
4054
+ program_artifacts_aggregate?: Program_Artifacts_Aggregate_Order_By | null | undefined;
4055
+ program_runs_aggregate?: Program_Runs_Aggregate_Order_By | null | undefined;
4056
+ project_id?: Order_By | null | undefined;
4057
+ updated_at?: Order_By | null | undefined;
4058
+ visibility?: Order_By | null | undefined;
4059
+ };
4060
+ /** Boolean expression to filter rows from the table "project_artifacts". All fields are combined with a logical 'AND'. */
4061
+ type Project_Artifacts_Bool_Exp = {
4062
+ _and?: Array<Project_Artifacts_Bool_Exp> | null | undefined;
4063
+ _not?: Project_Artifacts_Bool_Exp | null | undefined;
4064
+ _or?: Array<Project_Artifacts_Bool_Exp> | null | undefined;
4065
+ artifact?: Artifacts_Bool_Exp | null | undefined;
4066
+ artifact_id?: Uuid_Comparison_Exp | null | undefined;
4067
+ created_at?: Timestamptz_Comparison_Exp | null | undefined;
4068
+ name?: String_Comparison_Exp | null | undefined;
4069
+ project_id?: Uuid_Comparison_Exp | null | undefined;
4070
+ updated_at?: Timestamptz_Comparison_Exp | null | undefined;
4071
+ user_id?: Uuid_Comparison_Exp | null | undefined;
4072
+ visibility?: String_Comparison_Exp | null | undefined;
4073
+ };
4074
+ /** Ordering options when selecting data from "project_artifacts". */
4075
+ type Project_Artifacts_Order_By = {
4076
+ artifact?: Artifacts_Order_By | null | undefined;
4077
+ artifact_id?: Order_By | null | undefined;
4078
+ created_at?: Order_By | null | undefined;
4079
+ name?: Order_By | null | undefined;
4080
+ project_id?: Order_By | null | undefined;
4081
+ updated_at?: Order_By | null | undefined;
4082
+ user_id?: Order_By | null | undefined;
4083
+ visibility?: Order_By | null | undefined;
4084
+ };
4085
+ /** Boolean expression to filter rows from the table "project_configuration". All fields are combined with a logical 'AND'. */
4086
+ type Project_Configuration_Bool_Exp = {
4087
+ _and?: Array<Project_Configuration_Bool_Exp> | null | undefined;
4088
+ _not?: Project_Configuration_Bool_Exp | null | undefined;
4089
+ _or?: Array<Project_Configuration_Bool_Exp> | null | undefined;
4090
+ created_at?: Timestamptz_Comparison_Exp | null | undefined;
4091
+ data_studio?: Boolean_Comparison_Exp | null | undefined;
4092
+ default_onboarding_modal_visibility?: Boolean_Comparison_Exp | null | undefined;
4093
+ default_room?: Uuid_Comparison_Exp | null | undefined;
4094
+ default_room_info?: Rooms_Bool_Exp | null | undefined;
4095
+ default_thread_visibility?: Thread_Visibility_Enum_Enum_Comparison_Exp | null | undefined;
4096
+ enable_social_feed?: Boolean_Comparison_Exp | null | undefined;
4097
+ github_installations?: Jsonb_Comparison_Exp | null | undefined;
4098
+ project_id?: Uuid_Comparison_Exp | null | undefined;
4099
+ show_github_project_onboarding?: Boolean_Comparison_Exp | null | undefined;
4100
+ thread_sharing_enabled?: Boolean_Comparison_Exp | null | undefined;
4101
+ updated_at?: Timestamptz_Comparison_Exp | null | undefined;
4102
+ };
4103
+ /** Ordering options when selecting data from "project_configuration". */
4104
+ type Project_Configuration_Order_By = {
4105
+ created_at?: Order_By | null | undefined;
4106
+ data_studio?: Order_By | null | undefined;
4107
+ default_onboarding_modal_visibility?: Order_By | null | undefined;
4108
+ default_room?: Order_By | null | undefined;
4109
+ default_room_info?: Rooms_Order_By | null | undefined;
4110
+ default_thread_visibility?: Order_By | null | undefined;
4111
+ enable_social_feed?: Order_By | null | undefined;
4112
+ github_installations?: Order_By | null | undefined;
4113
+ project_id?: Order_By | null | undefined;
4114
+ show_github_project_onboarding?: Order_By | null | undefined;
4115
+ thread_sharing_enabled?: Order_By | null | undefined;
4116
+ updated_at?: Order_By | null | undefined;
4117
+ };
4118
+ /** order by aggregate values of table "promptql_users" */
4119
+ type Promptql_Users_Aggregate_Order_By = {
4120
+ avg?: Promptql_Users_Avg_Order_By | null | undefined;
4121
+ count?: Order_By | null | undefined;
4122
+ max?: Promptql_Users_Max_Order_By | null | undefined;
4123
+ min?: Promptql_Users_Min_Order_By | null | undefined;
4124
+ stddev?: Promptql_Users_Stddev_Order_By | null | undefined;
4125
+ stddev_pop?: Promptql_Users_Stddev_Pop_Order_By | null | undefined;
4126
+ stddev_samp?: Promptql_Users_Stddev_Samp_Order_By | null | undefined;
4127
+ sum?: Promptql_Users_Sum_Order_By | null | undefined;
4128
+ var_pop?: Promptql_Users_Var_Pop_Order_By | null | undefined;
4129
+ var_samp?: Promptql_Users_Var_Samp_Order_By | null | undefined;
4130
+ variance?: Promptql_Users_Variance_Order_By | null | undefined;
4131
+ };
4132
+ /** order by avg() on columns of table "promptql_users" */
4133
+ type Promptql_Users_Avg_Order_By = {
4134
+ weight?: Order_By | null | undefined;
4135
+ };
4136
+ /** Boolean expression to filter rows from the table "promptql_users". All fields are combined with a logical 'AND'. */
4137
+ type Promptql_Users_Bool_Exp = {
4138
+ _and?: Array<Promptql_Users_Bool_Exp> | null | undefined;
4139
+ _not?: Promptql_Users_Bool_Exp | null | undefined;
4140
+ _or?: Array<Promptql_Users_Bool_Exp> | null | undefined;
4141
+ control_plane_user_id?: Uuid_Comparison_Exp | null | undefined;
4142
+ created_at?: Timestamptz_Comparison_Exp | null | undefined;
4143
+ custom_claim_assignments?: Custom_Claim_Assignments_Bool_Exp | null | undefined;
4144
+ display_name?: String_Comparison_Exp | null | undefined;
4145
+ email?: Citext_Comparison_Exp | null | undefined;
4146
+ is_active?: Boolean_Comparison_Exp | null | undefined;
4147
+ is_app_admin?: Boolean_Comparison_Exp | null | undefined;
4148
+ is_bot?: Boolean_Comparison_Exp | null | undefined;
4149
+ project_id?: Uuid_Comparison_Exp | null | undefined;
4150
+ promptql_user_id?: Uuid_Comparison_Exp | null | undefined;
4151
+ slack_info?: Slack_Info_Bool_Exp | null | undefined;
4152
+ starred_artifacts?: Starred_Artifacts_Bool_Exp | null | undefined;
4153
+ starred_threads?: Starred_Threads_Bool_Exp | null | undefined;
4154
+ thread_user_typing?: Thread_User_Typing_Bool_Exp | null | undefined;
4155
+ thread_user_typing_aggregate?: Thread_User_Typing_Aggregate_Bool_Exp | null | undefined;
4156
+ updated_at?: Timestamptz_Comparison_Exp | null | undefined;
4157
+ user_group_members?: User_Group_Members_Bool_Exp | null | undefined;
4158
+ user_preference?: User_Preferences_Bool_Exp | null | undefined;
4159
+ user_slack_notification_preference?: User_Slack_Notification_Preferences_Bool_Exp | null | undefined;
4160
+ weight?: Int_Comparison_Exp | null | undefined;
4161
+ wiki?: Admin_Wiki_Bool_Exp | null | undefined;
4162
+ wiki_id?: Uuid_Comparison_Exp | null | undefined;
4163
+ };
4164
+ /** order by max() on columns of table "promptql_users" */
4165
+ type Promptql_Users_Max_Order_By = {
4166
+ control_plane_user_id?: Order_By | null | undefined;
4167
+ created_at?: Order_By | null | undefined;
4168
+ display_name?: Order_By | null | undefined;
4169
+ email?: Order_By | null | undefined;
4170
+ project_id?: Order_By | null | undefined;
4171
+ promptql_user_id?: Order_By | null | undefined;
4172
+ updated_at?: Order_By | null | undefined;
4173
+ weight?: Order_By | null | undefined;
4174
+ wiki_id?: Order_By | null | undefined;
4175
+ };
4176
+ /** order by min() on columns of table "promptql_users" */
4177
+ type Promptql_Users_Min_Order_By = {
4178
+ control_plane_user_id?: Order_By | null | undefined;
4179
+ created_at?: Order_By | null | undefined;
4180
+ display_name?: Order_By | null | undefined;
4181
+ email?: Order_By | null | undefined;
4182
+ project_id?: Order_By | null | undefined;
4183
+ promptql_user_id?: Order_By | null | undefined;
4184
+ updated_at?: Order_By | null | undefined;
4185
+ weight?: Order_By | null | undefined;
4186
+ wiki_id?: Order_By | null | undefined;
4187
+ };
4188
+ /** Ordering options when selecting data from "promptql_users". */
4189
+ type Promptql_Users_Order_By = {
4190
+ control_plane_user_id?: Order_By | null | undefined;
4191
+ created_at?: Order_By | null | undefined;
4192
+ custom_claim_assignments_aggregate?: Custom_Claim_Assignments_Aggregate_Order_By | null | undefined;
4193
+ display_name?: Order_By | null | undefined;
4194
+ email?: Order_By | null | undefined;
4195
+ is_active?: Order_By | null | undefined;
4196
+ is_app_admin?: Order_By | null | undefined;
4197
+ is_bot?: Order_By | null | undefined;
4198
+ project_id?: Order_By | null | undefined;
4199
+ promptql_user_id?: Order_By | null | undefined;
4200
+ slack_info?: Slack_Info_Order_By | null | undefined;
4201
+ starred_artifacts_aggregate?: Starred_Artifacts_Aggregate_Order_By | null | undefined;
4202
+ starred_threads_aggregate?: Starred_Threads_Aggregate_Order_By | null | undefined;
4203
+ thread_user_typing_aggregate?: Thread_User_Typing_Aggregate_Order_By | null | undefined;
4204
+ updated_at?: Order_By | null | undefined;
4205
+ user_group_members_aggregate?: User_Group_Members_Aggregate_Order_By | null | undefined;
4206
+ user_preference?: User_Preferences_Order_By | null | undefined;
4207
+ user_slack_notification_preference?: User_Slack_Notification_Preferences_Order_By | null | undefined;
4208
+ weight?: Order_By | null | undefined;
4209
+ wiki?: Admin_Wiki_Order_By | null | undefined;
4210
+ wiki_id?: Order_By | null | undefined;
4211
+ };
4212
+ /** order by stddev() on columns of table "promptql_users" */
4213
+ type Promptql_Users_Stddev_Order_By = {
4214
+ weight?: Order_By | null | undefined;
4215
+ };
4216
+ /** order by stddev_pop() on columns of table "promptql_users" */
4217
+ type Promptql_Users_Stddev_Pop_Order_By = {
4218
+ weight?: Order_By | null | undefined;
4219
+ };
4220
+ /** order by stddev_samp() on columns of table "promptql_users" */
4221
+ type Promptql_Users_Stddev_Samp_Order_By = {
4222
+ weight?: Order_By | null | undefined;
4223
+ };
4224
+ /** order by sum() on columns of table "promptql_users" */
4225
+ type Promptql_Users_Sum_Order_By = {
4226
+ weight?: Order_By | null | undefined;
4227
+ };
4228
+ /** order by var_pop() on columns of table "promptql_users" */
4229
+ type Promptql_Users_Var_Pop_Order_By = {
4230
+ weight?: Order_By | null | undefined;
4231
+ };
4232
+ /** order by var_samp() on columns of table "promptql_users" */
4233
+ type Promptql_Users_Var_Samp_Order_By = {
4234
+ weight?: Order_By | null | undefined;
4235
+ };
4236
+ /** order by variance() on columns of table "promptql_users" */
4237
+ type Promptql_Users_Variance_Order_By = {
4238
+ weight?: Order_By | null | undefined;
4239
+ };
4240
+ /** order by aggregate values of table "public_room_active_users" */
4241
+ type Public_Room_Active_Users_Aggregate_Order_By = {
4242
+ count?: Order_By | null | undefined;
4243
+ max?: Public_Room_Active_Users_Max_Order_By | null | undefined;
4244
+ min?: Public_Room_Active_Users_Min_Order_By | null | undefined;
4245
+ };
4246
+ /** Boolean expression to filter rows from the table "public_room_active_users". All fields are combined with a logical 'AND'. */
4247
+ type Public_Room_Active_Users_Bool_Exp = {
4248
+ _and?: Array<Public_Room_Active_Users_Bool_Exp> | null | undefined;
4249
+ _not?: Public_Room_Active_Users_Bool_Exp | null | undefined;
4250
+ _or?: Array<Public_Room_Active_Users_Bool_Exp> | null | undefined;
4251
+ activated_at?: Timestamptz_Comparison_Exp | null | undefined;
4252
+ added_by?: Uuid_Comparison_Exp | null | undefined;
4253
+ added_by_user?: Promptql_Users_Bool_Exp | null | undefined;
4254
+ created_at?: Timestamptz_Comparison_Exp | null | undefined;
4255
+ promptql_user?: Promptql_Users_Bool_Exp | null | undefined;
4256
+ promptql_user_id?: Uuid_Comparison_Exp | null | undefined;
4257
+ room?: Rooms_Bool_Exp | null | undefined;
4258
+ room_id?: Uuid_Comparison_Exp | null | undefined;
4259
+ updated_at?: Timestamptz_Comparison_Exp | null | undefined;
4260
+ };
4261
+ /** order by max() on columns of table "public_room_active_users" */
4262
+ type Public_Room_Active_Users_Max_Order_By = {
4263
+ activated_at?: Order_By | null | undefined;
4264
+ added_by?: Order_By | null | undefined;
4265
+ created_at?: Order_By | null | undefined;
4266
+ promptql_user_id?: Order_By | null | undefined;
4267
+ room_id?: Order_By | null | undefined;
4268
+ updated_at?: Order_By | null | undefined;
4269
+ };
4270
+ /** order by min() on columns of table "public_room_active_users" */
4271
+ type Public_Room_Active_Users_Min_Order_By = {
4272
+ activated_at?: Order_By | null | undefined;
4273
+ added_by?: Order_By | null | undefined;
4274
+ created_at?: Order_By | null | undefined;
4275
+ promptql_user_id?: Order_By | null | undefined;
4276
+ room_id?: Order_By | null | undefined;
4277
+ updated_at?: Order_By | null | undefined;
4278
+ };
4279
+ /** order by aggregate values of table "room_active_member" */
4280
+ type Room_Active_Member_Aggregate_Order_By = {
4281
+ count?: Order_By | null | undefined;
4282
+ max?: Room_Active_Member_Max_Order_By | null | undefined;
4283
+ min?: Room_Active_Member_Min_Order_By | null | undefined;
4284
+ };
4285
+ /** Boolean expression to filter rows from the table "room_active_member". All fields are combined with a logical 'AND'. */
4286
+ type Room_Active_Member_Bool_Exp = {
4287
+ _and?: Array<Room_Active_Member_Bool_Exp> | null | undefined;
4288
+ _not?: Room_Active_Member_Bool_Exp | null | undefined;
4289
+ _or?: Array<Room_Active_Member_Bool_Exp> | null | undefined;
4290
+ display_name?: String_Comparison_Exp | null | undefined;
4291
+ email?: String_Comparison_Exp | null | undefined;
4292
+ is_owner?: Boolean_Comparison_Exp | null | undefined;
4293
+ joined_at?: Timestamptz_Comparison_Exp | null | undefined;
4294
+ promptql_user_id?: Uuid_Comparison_Exp | null | undefined;
4295
+ user?: Promptql_Users_Bool_Exp | null | undefined;
4296
+ };
4297
+ /** order by max() on columns of table "room_active_member" */
4298
+ type Room_Active_Member_Max_Order_By = {
4299
+ display_name?: Order_By | null | undefined;
4300
+ email?: Order_By | null | undefined;
4301
+ joined_at?: Order_By | null | undefined;
4302
+ promptql_user_id?: Order_By | null | undefined;
4303
+ };
4304
+ /** order by min() on columns of table "room_active_member" */
4305
+ type Room_Active_Member_Min_Order_By = {
4306
+ display_name?: Order_By | null | undefined;
4307
+ email?: Order_By | null | undefined;
4308
+ joined_at?: Order_By | null | undefined;
4309
+ promptql_user_id?: Order_By | null | undefined;
4310
+ };
4311
+ /** Boolean expression to filter rows from the table "room_pinned_artifact". All fields are combined with a logical 'AND'. */
4312
+ type Room_Pinned_Artifact_Bool_Exp = {
4313
+ _and?: Array<Room_Pinned_Artifact_Bool_Exp> | null | undefined;
4314
+ _not?: Room_Pinned_Artifact_Bool_Exp | null | undefined;
4315
+ _or?: Array<Room_Pinned_Artifact_Bool_Exp> | null | undefined;
4316
+ artifact?: Artifacts_Bool_Exp | null | undefined;
4317
+ artifact_id?: Uuid_Comparison_Exp | null | undefined;
4318
+ display_states?: Room_Pinned_Artifact_Display_State_Bool_Exp | null | undefined;
4319
+ pinned_at?: Timestamptz_Comparison_Exp | null | undefined;
4320
+ pinned_by?: Uuid_Comparison_Exp | null | undefined;
4321
+ pinned_by_user?: Promptql_Users_Bool_Exp | null | undefined;
4322
+ room?: Rooms_Bool_Exp | null | undefined;
4323
+ room_id?: Uuid_Comparison_Exp | null | undefined;
4324
+ };
4325
+ /** order by aggregate values of table "room_pinned_artifact_display_state" */
4326
+ type Room_Pinned_Artifact_Display_State_Aggregate_Order_By = {
4327
+ count?: Order_By | null | undefined;
4328
+ max?: Room_Pinned_Artifact_Display_State_Max_Order_By | null | undefined;
4329
+ min?: Room_Pinned_Artifact_Display_State_Min_Order_By | null | undefined;
4330
+ };
4331
+ /** Boolean expression to filter rows from the table "room_pinned_artifact_display_state". All fields are combined with a logical 'AND'. */
4332
+ type Room_Pinned_Artifact_Display_State_Bool_Exp = {
4333
+ _and?: Array<Room_Pinned_Artifact_Display_State_Bool_Exp> | null | undefined;
4334
+ _not?: Room_Pinned_Artifact_Display_State_Bool_Exp | null | undefined;
4335
+ _or?: Array<Room_Pinned_Artifact_Display_State_Bool_Exp> | null | undefined;
4336
+ display_state?: String_Comparison_Exp | null | undefined;
4337
+ promptql_user?: Promptql_Users_Bool_Exp | null | undefined;
4338
+ promptql_user_id?: Uuid_Comparison_Exp | null | undefined;
4339
+ room_id?: Uuid_Comparison_Exp | null | undefined;
4340
+ room_pinned_artifact?: Room_Pinned_Artifact_Bool_Exp | null | undefined;
4341
+ updated_at?: Timestamptz_Comparison_Exp | null | undefined;
4342
+ };
4343
+ /** order by max() on columns of table "room_pinned_artifact_display_state" */
4344
+ type Room_Pinned_Artifact_Display_State_Max_Order_By = {
4345
+ display_state?: Order_By | null | undefined;
4346
+ promptql_user_id?: Order_By | null | undefined;
4347
+ room_id?: Order_By | null | undefined;
4348
+ updated_at?: Order_By | null | undefined;
4349
+ };
4350
+ /** order by min() on columns of table "room_pinned_artifact_display_state" */
4351
+ type Room_Pinned_Artifact_Display_State_Min_Order_By = {
4352
+ display_state?: Order_By | null | undefined;
4353
+ promptql_user_id?: Order_By | null | undefined;
4354
+ room_id?: Order_By | null | undefined;
4355
+ updated_at?: Order_By | null | undefined;
4356
+ };
4357
+ /** Ordering options when selecting data from "room_pinned_artifact". */
4358
+ type Room_Pinned_Artifact_Order_By = {
4359
+ artifact?: Artifacts_Order_By | null | undefined;
4360
+ artifact_id?: Order_By | null | undefined;
4361
+ display_states_aggregate?: Room_Pinned_Artifact_Display_State_Aggregate_Order_By | null | undefined;
4362
+ pinned_at?: Order_By | null | undefined;
4363
+ pinned_by?: Order_By | null | undefined;
4364
+ pinned_by_user?: Promptql_Users_Order_By | null | undefined;
4365
+ room?: Rooms_Order_By | null | undefined;
4366
+ room_id?: Order_By | null | undefined;
4367
+ };
4368
+ /** Boolean expression to filter rows from the table "rooms". All fields are combined with a logical 'AND'. */
4369
+ type Rooms_Bool_Exp = {
4370
+ _and?: Array<Rooms_Bool_Exp> | null | undefined;
4371
+ _not?: Rooms_Bool_Exp | null | undefined;
4372
+ _or?: Array<Rooms_Bool_Exp> | null | undefined;
4373
+ active_members?: Room_Active_Member_Bool_Exp | null | undefined;
4374
+ active_members_count?: Int_Comparison_Exp | null | undefined;
4375
+ created_at?: Timestamptz_Comparison_Exp | null | undefined;
4376
+ deleted_at?: Timestamptz_Comparison_Exp | null | undefined;
4377
+ description?: String_Comparison_Exp | null | undefined;
4378
+ has_new_threads?: Boolean_Comparison_Exp | null | undefined;
4379
+ name?: String_Comparison_Exp | null | undefined;
4380
+ new_participating_threads_count?: Int_Comparison_Exp | null | undefined;
4381
+ owner?: Promptql_Users_Bool_Exp | null | undefined;
4382
+ project_configuration?: Project_Configuration_Bool_Exp | null | undefined;
4383
+ project_id?: Uuid_Comparison_Exp | null | undefined;
4384
+ public_room_active_users?: Public_Room_Active_Users_Bool_Exp | null | undefined;
4385
+ room_id?: Uuid_Comparison_Exp | null | undefined;
4386
+ room_pinned_artifact?: Room_Pinned_Artifact_Bool_Exp | null | undefined;
4387
+ rooms_participants?: Rooms_Participants_Bool_Exp | null | undefined;
4388
+ threads?: Threads_V2_Bool_Exp | null | undefined;
4389
+ threads_aggregate?: Threads_V2_Aggregate_Bool_Exp | null | undefined;
4390
+ updated_at?: Timestamptz_Comparison_Exp | null | undefined;
4391
+ user_id?: Uuid_Comparison_Exp | null | undefined;
4392
+ user_room_activity?: User_Room_Activity_Bool_Exp | null | undefined;
4393
+ visibility?: String_Comparison_Exp | null | undefined;
4394
+ wiki?: Admin_Wiki_Bool_Exp | null | undefined;
4395
+ wiki_id?: Uuid_Comparison_Exp | null | undefined;
4396
+ };
4397
+ /** Ordering options when selecting data from "rooms". */
4398
+ type Rooms_Order_By = {
4399
+ active_members_aggregate?: Room_Active_Member_Aggregate_Order_By | null | undefined;
4400
+ active_members_count?: Order_By | null | undefined;
4401
+ created_at?: Order_By | null | undefined;
4402
+ deleted_at?: Order_By | null | undefined;
4403
+ description?: Order_By | null | undefined;
4404
+ has_new_threads?: Order_By | null | undefined;
4405
+ name?: Order_By | null | undefined;
4406
+ new_participating_threads_count?: Order_By | null | undefined;
4407
+ owner?: Promptql_Users_Order_By | null | undefined;
4408
+ project_configuration?: Project_Configuration_Order_By | null | undefined;
4409
+ project_id?: Order_By | null | undefined;
4410
+ public_room_active_users_aggregate?: Public_Room_Active_Users_Aggregate_Order_By | null | undefined;
4411
+ room_id?: Order_By | null | undefined;
4412
+ room_pinned_artifact?: Room_Pinned_Artifact_Order_By | null | undefined;
4413
+ rooms_participants_aggregate?: Rooms_Participants_Aggregate_Order_By | null | undefined;
4414
+ threads_aggregate?: Threads_V2_Aggregate_Order_By | null | undefined;
4415
+ updated_at?: Order_By | null | undefined;
4416
+ user_id?: Order_By | null | undefined;
4417
+ user_room_activity?: User_Room_Activity_Order_By | null | undefined;
4418
+ visibility?: Order_By | null | undefined;
4419
+ wiki?: Admin_Wiki_Order_By | null | undefined;
4420
+ wiki_id?: Order_By | null | undefined;
4421
+ };
4422
+ /** order by aggregate values of table "rooms_participants" */
4423
+ type Rooms_Participants_Aggregate_Order_By = {
4424
+ count?: Order_By | null | undefined;
4425
+ max?: Rooms_Participants_Max_Order_By | null | undefined;
4426
+ min?: Rooms_Participants_Min_Order_By | null | undefined;
4427
+ };
4428
+ /** Boolean expression to filter rows from the table "rooms_participants". All fields are combined with a logical 'AND'. */
4429
+ type Rooms_Participants_Bool_Exp = {
4430
+ _and?: Array<Rooms_Participants_Bool_Exp> | null | undefined;
4431
+ _not?: Rooms_Participants_Bool_Exp | null | undefined;
4432
+ _or?: Array<Rooms_Participants_Bool_Exp> | null | undefined;
4433
+ created_at?: Timestamptz_Comparison_Exp | null | undefined;
4434
+ is_removed?: Boolean_Comparison_Exp | null | undefined;
4435
+ promptql_user?: Promptql_Users_Bool_Exp | null | undefined;
4436
+ promptql_user_id?: Uuid_Comparison_Exp | null | undefined;
4437
+ room?: Rooms_Bool_Exp | null | undefined;
4438
+ room_id?: Uuid_Comparison_Exp | null | undefined;
4439
+ updated_at?: Timestamptz_Comparison_Exp | null | undefined;
4440
+ };
4441
+ /** order by max() on columns of table "rooms_participants" */
4442
+ type Rooms_Participants_Max_Order_By = {
4443
+ created_at?: Order_By | null | undefined;
4444
+ promptql_user_id?: Order_By | null | undefined;
4445
+ room_id?: Order_By | null | undefined;
4446
+ updated_at?: Order_By | null | undefined;
4447
+ };
4448
+ /** order by min() on columns of table "rooms_participants" */
4449
+ type Rooms_Participants_Min_Order_By = {
4450
+ created_at?: Order_By | null | undefined;
4451
+ promptql_user_id?: Order_By | null | undefined;
4452
+ room_id?: Order_By | null | undefined;
4453
+ updated_at?: Order_By | null | undefined;
4454
+ };
4455
+ /** order by aggregate values of table "shared_threads" */
4456
+ type Shared_Threads_Aggregate_Order_By = {
4457
+ avg?: Shared_Threads_Avg_Order_By | null | undefined;
4458
+ count?: Order_By | null | undefined;
4459
+ max?: Shared_Threads_Max_Order_By | null | undefined;
4460
+ min?: Shared_Threads_Min_Order_By | null | undefined;
4461
+ stddev?: Shared_Threads_Stddev_Order_By | null | undefined;
4462
+ stddev_pop?: Shared_Threads_Stddev_Pop_Order_By | null | undefined;
4463
+ stddev_samp?: Shared_Threads_Stddev_Samp_Order_By | null | undefined;
4464
+ sum?: Shared_Threads_Sum_Order_By | null | undefined;
4465
+ var_pop?: Shared_Threads_Var_Pop_Order_By | null | undefined;
4466
+ var_samp?: Shared_Threads_Var_Samp_Order_By | null | undefined;
4467
+ variance?: Shared_Threads_Variance_Order_By | null | undefined;
4468
+ };
4469
+ /** order by avg() on columns of table "shared_threads" */
4470
+ type Shared_Threads_Avg_Order_By = {
4471
+ last_thread_event_id?: Order_By | null | undefined;
4472
+ };
4473
+ /** Boolean expression to filter rows from the table "shared_threads". All fields are combined with a logical 'AND'. */
4474
+ type Shared_Threads_Bool_Exp = {
4475
+ _and?: Array<Shared_Threads_Bool_Exp> | null | undefined;
4476
+ _not?: Shared_Threads_Bool_Exp | null | undefined;
4477
+ _or?: Array<Shared_Threads_Bool_Exp> | null | undefined;
4478
+ created_at?: Timestamptz_Comparison_Exp | null | undefined;
4479
+ deleted_at?: Timestamptz_Comparison_Exp | null | undefined;
4480
+ last_thread_event_id?: Bigint_Comparison_Exp | null | undefined;
4481
+ shared_thread_id?: Uuid_Comparison_Exp | null | undefined;
4482
+ source_thread?: Threads_V2_Bool_Exp | null | undefined;
4483
+ source_thread_id?: Uuid_Comparison_Exp | null | undefined;
4484
+ title?: String_Comparison_Exp | null | undefined;
4485
+ user?: Promptql_Users_Bool_Exp | null | undefined;
4486
+ };
4487
+ /** order by max() on columns of table "shared_threads" */
4488
+ type Shared_Threads_Max_Order_By = {
4489
+ created_at?: Order_By | null | undefined;
4490
+ deleted_at?: Order_By | null | undefined;
4491
+ last_thread_event_id?: Order_By | null | undefined;
4492
+ shared_thread_id?: Order_By | null | undefined;
4493
+ source_thread_id?: Order_By | null | undefined;
4494
+ title?: Order_By | null | undefined;
4495
+ };
4496
+ /** order by min() on columns of table "shared_threads" */
4497
+ type Shared_Threads_Min_Order_By = {
4498
+ created_at?: Order_By | null | undefined;
4499
+ deleted_at?: Order_By | null | undefined;
4500
+ last_thread_event_id?: Order_By | null | undefined;
4501
+ shared_thread_id?: Order_By | null | undefined;
4502
+ source_thread_id?: Order_By | null | undefined;
4503
+ title?: Order_By | null | undefined;
4504
+ };
4505
+ /** order by stddev() on columns of table "shared_threads" */
4506
+ type Shared_Threads_Stddev_Order_By = {
4507
+ last_thread_event_id?: Order_By | null | undefined;
4508
+ };
4509
+ /** order by stddev_pop() on columns of table "shared_threads" */
4510
+ type Shared_Threads_Stddev_Pop_Order_By = {
4511
+ last_thread_event_id?: Order_By | null | undefined;
4512
+ };
4513
+ /** order by stddev_samp() on columns of table "shared_threads" */
4514
+ type Shared_Threads_Stddev_Samp_Order_By = {
4515
+ last_thread_event_id?: Order_By | null | undefined;
4516
+ };
4517
+ /** order by sum() on columns of table "shared_threads" */
4518
+ type Shared_Threads_Sum_Order_By = {
4519
+ last_thread_event_id?: Order_By | null | undefined;
4520
+ };
4521
+ /** order by var_pop() on columns of table "shared_threads" */
4522
+ type Shared_Threads_Var_Pop_Order_By = {
4523
+ last_thread_event_id?: Order_By | null | undefined;
4524
+ };
4525
+ /** order by var_samp() on columns of table "shared_threads" */
4526
+ type Shared_Threads_Var_Samp_Order_By = {
4527
+ last_thread_event_id?: Order_By | null | undefined;
4528
+ };
4529
+ /** order by variance() on columns of table "shared_threads" */
4530
+ type Shared_Threads_Variance_Order_By = {
4531
+ last_thread_event_id?: Order_By | null | undefined;
4532
+ };
4533
+ type Slack_Chat_Display_Mode_Enum =
4534
+ /** Reply full content with the query plan, query interpretation, data artifacts etc... */
4535
+ 'Full'
4536
+ /** Reply preview content and redirects to PromptQL via thread link */
4537
+ | 'Preview';
4538
+ /** Boolean expression to compare columns of type "slack_chat_display_mode_enum". All fields are combined with logical 'AND'. */
4539
+ type Slack_Chat_Display_Mode_Enum_Comparison_Exp = {
4540
+ _eq?: Slack_Chat_Display_Mode_Enum | null | undefined;
4541
+ _in?: Array<Slack_Chat_Display_Mode_Enum> | null | undefined;
4542
+ _is_null?: boolean | null | undefined;
4543
+ _neq?: Slack_Chat_Display_Mode_Enum | null | undefined;
4544
+ _nin?: Array<Slack_Chat_Display_Mode_Enum> | null | undefined;
4545
+ };
4546
+ /** Boolean expression to filter rows from the table "slack_info". All fields are combined with a logical 'AND'. */
4547
+ type Slack_Info_Bool_Exp = {
4548
+ _and?: Array<Slack_Info_Bool_Exp> | null | undefined;
4549
+ _not?: Slack_Info_Bool_Exp | null | undefined;
4550
+ _or?: Array<Slack_Info_Bool_Exp> | null | undefined;
4551
+ created_at?: Timestamptz_Comparison_Exp | null | undefined;
4552
+ promptql_user?: Promptql_Users_Bool_Exp | null | undefined;
4553
+ promptql_user_id?: Uuid_Comparison_Exp | null | undefined;
4554
+ slack_email?: Citext_Comparison_Exp | null | undefined;
4555
+ slack_fields?: Jsonb_Comparison_Exp | null | undefined;
4556
+ slack_user_id?: String_Comparison_Exp | null | undefined;
4557
+ slack_workspace_id?: String_Comparison_Exp | null | undefined;
4558
+ updated_at?: Timestamptz_Comparison_Exp | null | undefined;
4559
+ };
4560
+ /** Ordering options when selecting data from "slack_info". */
4561
+ type Slack_Info_Order_By = {
4562
+ created_at?: Order_By | null | undefined;
4563
+ promptql_user?: Promptql_Users_Order_By | null | undefined;
4564
+ promptql_user_id?: Order_By | null | undefined;
4565
+ slack_email?: Order_By | null | undefined;
4566
+ slack_fields?: Order_By | null | undefined;
4567
+ slack_user_id?: Order_By | null | undefined;
4568
+ slack_workspace_id?: Order_By | null | undefined;
4569
+ updated_at?: Order_By | null | undefined;
4570
+ };
4571
+ /** order by aggregate values of table "slack_integration" */
4572
+ type Slack_Integration_Aggregate_Order_By = {
4573
+ count?: Order_By | null | undefined;
4574
+ max?: Slack_Integration_Max_Order_By | null | undefined;
4575
+ min?: Slack_Integration_Min_Order_By | null | undefined;
4576
+ };
4577
+ /** Boolean expression to filter rows from the table "slack_integration". All fields are combined with a logical 'AND'. */
4578
+ type Slack_Integration_Bool_Exp = {
4579
+ _and?: Array<Slack_Integration_Bool_Exp> | null | undefined;
4580
+ _not?: Slack_Integration_Bool_Exp | null | undefined;
4581
+ _or?: Array<Slack_Integration_Bool_Exp> | null | undefined;
4582
+ chat_display_mode?: Slack_Chat_Display_Mode_Enum_Comparison_Exp | null | undefined;
4583
+ chat_enabled?: Boolean_Comparison_Exp | null | undefined;
4584
+ created_at?: Timestamptz_Comparison_Exp | null | undefined;
4585
+ created_by?: Uuid_Comparison_Exp | null | undefined;
4586
+ id?: Uuid_Comparison_Exp | null | undefined;
4587
+ is_global_app?: Boolean_Comparison_Exp | null | undefined;
4588
+ project_id?: Uuid_Comparison_Exp | null | undefined;
4589
+ promptql_user?: Promptql_Users_Bool_Exp | null | undefined;
4590
+ slack_app_id?: String_Comparison_Exp | null | undefined;
4591
+ slack_app_name?: String_Comparison_Exp | null | undefined;
4592
+ slack_workspace_id?: String_Comparison_Exp | null | undefined;
4593
+ };
4594
+ /** order by max() on columns of table "slack_integration" */
4595
+ type Slack_Integration_Max_Order_By = {
4596
+ created_at?: Order_By | null | undefined;
4597
+ created_by?: Order_By | null | undefined;
4598
+ id?: Order_By | null | undefined;
4599
+ project_id?: Order_By | null | undefined;
4600
+ slack_app_id?: Order_By | null | undefined;
4601
+ slack_app_name?: Order_By | null | undefined;
4602
+ slack_workspace_id?: Order_By | null | undefined;
4603
+ };
4604
+ /** order by min() on columns of table "slack_integration" */
4605
+ type Slack_Integration_Min_Order_By = {
4606
+ created_at?: Order_By | null | undefined;
4607
+ created_by?: Order_By | null | undefined;
4608
+ id?: Order_By | null | undefined;
4609
+ project_id?: Order_By | null | undefined;
4610
+ slack_app_id?: Order_By | null | undefined;
4611
+ slack_app_name?: Order_By | null | undefined;
4612
+ slack_workspace_id?: Order_By | null | undefined;
4613
+ };
4614
+ /** order by aggregate values of table "social_feed_candidates" */
4615
+ type Social_Feed_Candidates_Aggregate_Order_By = {
4616
+ avg?: Social_Feed_Candidates_Avg_Order_By | null | undefined;
4617
+ count?: Order_By | null | undefined;
4618
+ max?: Social_Feed_Candidates_Max_Order_By | null | undefined;
4619
+ min?: Social_Feed_Candidates_Min_Order_By | null | undefined;
4620
+ stddev?: Social_Feed_Candidates_Stddev_Order_By | null | undefined;
4621
+ stddev_pop?: Social_Feed_Candidates_Stddev_Pop_Order_By | null | undefined;
4622
+ stddev_samp?: Social_Feed_Candidates_Stddev_Samp_Order_By | null | undefined;
4623
+ sum?: Social_Feed_Candidates_Sum_Order_By | null | undefined;
4624
+ var_pop?: Social_Feed_Candidates_Var_Pop_Order_By | null | undefined;
4625
+ var_samp?: Social_Feed_Candidates_Var_Samp_Order_By | null | undefined;
4626
+ variance?: Social_Feed_Candidates_Variance_Order_By | null | undefined;
4627
+ };
4628
+ /** order by avg() on columns of table "social_feed_candidates" */
4629
+ type Social_Feed_Candidates_Avg_Order_By = {
4630
+ thread_event_id?: Order_By | null | undefined;
4631
+ version?: Order_By | null | undefined;
4632
+ };
4633
+ /** Boolean expression to filter rows from the table "social_feed_candidates". All fields are combined with a logical 'AND'. */
4634
+ type Social_Feed_Candidates_Bool_Exp = {
4635
+ _and?: Array<Social_Feed_Candidates_Bool_Exp> | null | undefined;
4636
+ _not?: Social_Feed_Candidates_Bool_Exp | null | undefined;
4637
+ _or?: Array<Social_Feed_Candidates_Bool_Exp> | null | undefined;
4638
+ created_at?: Timestamptz_Comparison_Exp | null | undefined;
4639
+ id?: Uuid_Comparison_Exp | null | undefined;
4640
+ llm_output?: Jsonb_Comparison_Exp | null | undefined;
4641
+ selected_messages?: Feed_Candidate_Selected_Messages_Bool_Exp | null | undefined;
4642
+ summary?: String_Comparison_Exp | null | undefined;
4643
+ thread?: Threads_V2_Bool_Exp | null | undefined;
4644
+ thread_event_id?: Bigint_Comparison_Exp | null | undefined;
4645
+ thread_id?: Uuid_Comparison_Exp | null | undefined;
4646
+ title?: String_Comparison_Exp | null | undefined;
4647
+ updated_at?: Timestamptz_Comparison_Exp | null | undefined;
4648
+ version?: Int_Comparison_Exp | null | undefined;
4649
+ };
4650
+ /** order by max() on columns of table "social_feed_candidates" */
4651
+ type Social_Feed_Candidates_Max_Order_By = {
4652
+ created_at?: Order_By | null | undefined;
4653
+ id?: Order_By | null | undefined;
4654
+ summary?: Order_By | null | undefined;
4655
+ thread_event_id?: Order_By | null | undefined;
4656
+ thread_id?: Order_By | null | undefined;
4657
+ title?: Order_By | null | undefined;
4658
+ updated_at?: Order_By | null | undefined;
4659
+ version?: Order_By | null | undefined;
4660
+ };
4661
+ /** order by min() on columns of table "social_feed_candidates" */
4662
+ type Social_Feed_Candidates_Min_Order_By = {
4663
+ created_at?: Order_By | null | undefined;
4664
+ id?: Order_By | null | undefined;
4665
+ summary?: Order_By | null | undefined;
4666
+ thread_event_id?: Order_By | null | undefined;
4667
+ thread_id?: Order_By | null | undefined;
4668
+ title?: Order_By | null | undefined;
4669
+ updated_at?: Order_By | null | undefined;
4670
+ version?: Order_By | null | undefined;
4671
+ };
4672
+ /** order by stddev() on columns of table "social_feed_candidates" */
4673
+ type Social_Feed_Candidates_Stddev_Order_By = {
4674
+ thread_event_id?: Order_By | null | undefined;
4675
+ version?: Order_By | null | undefined;
4676
+ };
4677
+ /** order by stddev_pop() on columns of table "social_feed_candidates" */
4678
+ type Social_Feed_Candidates_Stddev_Pop_Order_By = {
4679
+ thread_event_id?: Order_By | null | undefined;
4680
+ version?: Order_By | null | undefined;
4681
+ };
4682
+ /** order by stddev_samp() on columns of table "social_feed_candidates" */
4683
+ type Social_Feed_Candidates_Stddev_Samp_Order_By = {
4684
+ thread_event_id?: Order_By | null | undefined;
4685
+ version?: Order_By | null | undefined;
4686
+ };
4687
+ /** order by sum() on columns of table "social_feed_candidates" */
4688
+ type Social_Feed_Candidates_Sum_Order_By = {
4689
+ thread_event_id?: Order_By | null | undefined;
4690
+ version?: Order_By | null | undefined;
4691
+ };
4692
+ /** order by var_pop() on columns of table "social_feed_candidates" */
4693
+ type Social_Feed_Candidates_Var_Pop_Order_By = {
4694
+ thread_event_id?: Order_By | null | undefined;
4695
+ version?: Order_By | null | undefined;
4696
+ };
4697
+ /** order by var_samp() on columns of table "social_feed_candidates" */
4698
+ type Social_Feed_Candidates_Var_Samp_Order_By = {
4699
+ thread_event_id?: Order_By | null | undefined;
4700
+ version?: Order_By | null | undefined;
4701
+ };
4702
+ /** order by variance() on columns of table "social_feed_candidates" */
4703
+ type Social_Feed_Candidates_Variance_Order_By = {
4704
+ thread_event_id?: Order_By | null | undefined;
4705
+ version?: Order_By | null | undefined;
4706
+ };
4707
+ /** order by aggregate values of table "starred_artifacts" */
4708
+ type Starred_Artifacts_Aggregate_Order_By = {
4709
+ count?: Order_By | null | undefined;
4710
+ max?: Starred_Artifacts_Max_Order_By | null | undefined;
4711
+ min?: Starred_Artifacts_Min_Order_By | null | undefined;
4712
+ };
4713
+ /** Boolean expression to filter rows from the table "starred_artifacts". All fields are combined with a logical 'AND'. */
4714
+ type Starred_Artifacts_Bool_Exp = {
4715
+ _and?: Array<Starred_Artifacts_Bool_Exp> | null | undefined;
4716
+ _not?: Starred_Artifacts_Bool_Exp | null | undefined;
4717
+ _or?: Array<Starred_Artifacts_Bool_Exp> | null | undefined;
4718
+ artifact?: Artifacts_Bool_Exp | null | undefined;
4719
+ artifact_id?: Uuid_Comparison_Exp | null | undefined;
4720
+ created_at?: Timestamptz_Comparison_Exp | null | undefined;
4721
+ user?: Promptql_Users_Bool_Exp | null | undefined;
4722
+ user_id?: Uuid_Comparison_Exp | null | undefined;
4723
+ };
4724
+ /** order by max() on columns of table "starred_artifacts" */
4725
+ type Starred_Artifacts_Max_Order_By = {
4726
+ artifact_id?: Order_By | null | undefined;
4727
+ created_at?: Order_By | null | undefined;
4728
+ user_id?: Order_By | null | undefined;
4729
+ };
4730
+ /** order by min() on columns of table "starred_artifacts" */
4731
+ type Starred_Artifacts_Min_Order_By = {
4732
+ artifact_id?: Order_By | null | undefined;
4733
+ created_at?: Order_By | null | undefined;
4734
+ user_id?: Order_By | null | undefined;
4735
+ };
4736
+ /** order by aggregate values of table "starred_threads" */
4737
+ type Starred_Threads_Aggregate_Order_By = {
4738
+ avg?: Starred_Threads_Avg_Order_By | null | undefined;
4739
+ count?: Order_By | null | undefined;
4740
+ max?: Starred_Threads_Max_Order_By | null | undefined;
4741
+ min?: Starred_Threads_Min_Order_By | null | undefined;
4742
+ stddev?: Starred_Threads_Stddev_Order_By | null | undefined;
4743
+ stddev_pop?: Starred_Threads_Stddev_Pop_Order_By | null | undefined;
4744
+ stddev_samp?: Starred_Threads_Stddev_Samp_Order_By | null | undefined;
4745
+ sum?: Starred_Threads_Sum_Order_By | null | undefined;
4746
+ var_pop?: Starred_Threads_Var_Pop_Order_By | null | undefined;
4747
+ var_samp?: Starred_Threads_Var_Samp_Order_By | null | undefined;
4748
+ variance?: Starred_Threads_Variance_Order_By | null | undefined;
4749
+ };
4750
+ /** order by avg() on columns of table "starred_threads" */
4751
+ type Starred_Threads_Avg_Order_By = {
4752
+ message_event_id?: Order_By | null | undefined;
4753
+ position?: Order_By | null | undefined;
4754
+ };
4755
+ /** Boolean expression to filter rows from the table "starred_threads". All fields are combined with a logical 'AND'. */
4756
+ type Starred_Threads_Bool_Exp = {
4757
+ _and?: Array<Starred_Threads_Bool_Exp> | null | undefined;
4758
+ _not?: Starred_Threads_Bool_Exp | null | undefined;
4759
+ _or?: Array<Starred_Threads_Bool_Exp> | null | undefined;
4760
+ created_at?: Timestamptz_Comparison_Exp | null | undefined;
4761
+ message_event?: Thread_Events_Bool_Exp | null | undefined;
4762
+ message_event_id?: Bigint_Comparison_Exp | null | undefined;
4763
+ position?: Int_Comparison_Exp | null | undefined;
4764
+ thread?: Threads_V2_Bool_Exp | null | undefined;
4765
+ thread_id?: Uuid_Comparison_Exp | null | undefined;
4766
+ user?: Promptql_Users_Bool_Exp | null | undefined;
4767
+ user_id?: Uuid_Comparison_Exp | null | undefined;
4768
+ };
4769
+ /** order by max() on columns of table "starred_threads" */
4770
+ type Starred_Threads_Max_Order_By = {
4771
+ created_at?: Order_By | null | undefined;
4772
+ message_event_id?: Order_By | null | undefined;
4773
+ position?: Order_By | null | undefined;
4774
+ thread_id?: Order_By | null | undefined;
4775
+ user_id?: Order_By | null | undefined;
4776
+ };
4777
+ /** order by min() on columns of table "starred_threads" */
4778
+ type Starred_Threads_Min_Order_By = {
4779
+ created_at?: Order_By | null | undefined;
4780
+ message_event_id?: Order_By | null | undefined;
4781
+ position?: Order_By | null | undefined;
4782
+ thread_id?: Order_By | null | undefined;
4783
+ user_id?: Order_By | null | undefined;
4784
+ };
4785
+ /** order by stddev() on columns of table "starred_threads" */
4786
+ type Starred_Threads_Stddev_Order_By = {
4787
+ message_event_id?: Order_By | null | undefined;
4788
+ position?: Order_By | null | undefined;
4789
+ };
4790
+ /** order by stddev_pop() on columns of table "starred_threads" */
4791
+ type Starred_Threads_Stddev_Pop_Order_By = {
4792
+ message_event_id?: Order_By | null | undefined;
4793
+ position?: Order_By | null | undefined;
4794
+ };
4795
+ /** order by stddev_samp() on columns of table "starred_threads" */
4796
+ type Starred_Threads_Stddev_Samp_Order_By = {
4797
+ message_event_id?: Order_By | null | undefined;
4798
+ position?: Order_By | null | undefined;
4799
+ };
4800
+ /** order by sum() on columns of table "starred_threads" */
4801
+ type Starred_Threads_Sum_Order_By = {
4802
+ message_event_id?: Order_By | null | undefined;
4803
+ position?: Order_By | null | undefined;
4804
+ };
4805
+ /** order by var_pop() on columns of table "starred_threads" */
4806
+ type Starred_Threads_Var_Pop_Order_By = {
4807
+ message_event_id?: Order_By | null | undefined;
4808
+ position?: Order_By | null | undefined;
4809
+ };
4810
+ /** order by var_samp() on columns of table "starred_threads" */
4811
+ type Starred_Threads_Var_Samp_Order_By = {
4812
+ message_event_id?: Order_By | null | undefined;
4813
+ position?: Order_By | null | undefined;
4814
+ };
4815
+ /** order by variance() on columns of table "starred_threads" */
4816
+ type Starred_Threads_Variance_Order_By = {
4817
+ message_event_id?: Order_By | null | undefined;
4818
+ position?: Order_By | null | undefined;
4819
+ };
4820
+ type Thread_Artifacts_Aggregate_Bool_Exp = {
4821
+ count?: Thread_Artifacts_Aggregate_Bool_Exp_Count | null | undefined;
4822
+ };
4823
+ type Thread_Artifacts_Aggregate_Bool_Exp_Count = {
4824
+ arguments?: Array<Thread_Artifacts_Select_Column> | null | undefined;
4825
+ distinct?: boolean | null | undefined;
4826
+ filter?: Thread_Artifacts_Bool_Exp | null | undefined;
4827
+ predicate: Int_Comparison_Exp;
4828
+ };
4829
+ /** order by aggregate values of table "thread_artifacts" */
4830
+ type Thread_Artifacts_Aggregate_Order_By = {
4831
+ count?: Order_By | null | undefined;
4832
+ max?: Thread_Artifacts_Max_Order_By | null | undefined;
4833
+ min?: Thread_Artifacts_Min_Order_By | null | undefined;
4834
+ };
4835
+ /** Boolean expression to filter rows from the table "thread_artifacts". All fields are combined with a logical 'AND'. */
4836
+ type Thread_Artifacts_Bool_Exp = {
4837
+ _and?: Array<Thread_Artifacts_Bool_Exp> | null | undefined;
4838
+ _not?: Thread_Artifacts_Bool_Exp | null | undefined;
4839
+ _or?: Array<Thread_Artifacts_Bool_Exp> | null | undefined;
4840
+ artifact?: Artifacts_Bool_Exp | null | undefined;
4841
+ artifact_id?: Uuid_Comparison_Exp | null | undefined;
4842
+ thread?: Threads_V2_Bool_Exp | null | undefined;
4843
+ thread_id?: Uuid_Comparison_Exp | null | undefined;
4844
+ };
4845
+ /** order by max() on columns of table "thread_artifacts" */
4846
+ type Thread_Artifacts_Max_Order_By = {
4847
+ artifact_id?: Order_By | null | undefined;
4848
+ thread_id?: Order_By | null | undefined;
4849
+ };
4850
+ /** order by min() on columns of table "thread_artifacts" */
4851
+ type Thread_Artifacts_Min_Order_By = {
4852
+ artifact_id?: Order_By | null | undefined;
4853
+ thread_id?: Order_By | null | undefined;
4854
+ };
4855
+ /** select columns of table "thread_artifacts" */
4856
+ type Thread_Artifacts_Select_Column =
4857
+ /** column name */
4858
+ 'artifact_id'
4859
+ /** column name */
4860
+ | 'thread_id';
4861
+ type Thread_Event_Mentions_Aggregate_Bool_Exp = {
4862
+ count?: Thread_Event_Mentions_Aggregate_Bool_Exp_Count | null | undefined;
4863
+ };
4864
+ type Thread_Event_Mentions_Aggregate_Bool_Exp_Count = {
4865
+ arguments?: Array<Thread_Event_Mentions_Select_Column> | null | undefined;
4866
+ distinct?: boolean | null | undefined;
4867
+ filter?: Thread_Event_Mentions_Bool_Exp | null | undefined;
4868
+ predicate: Int_Comparison_Exp;
4869
+ };
4870
+ /** order by aggregate values of table "thread_event_mentions" */
4871
+ type Thread_Event_Mentions_Aggregate_Order_By = {
4872
+ avg?: Thread_Event_Mentions_Avg_Order_By | null | undefined;
4873
+ count?: Order_By | null | undefined;
4874
+ max?: Thread_Event_Mentions_Max_Order_By | null | undefined;
4875
+ min?: Thread_Event_Mentions_Min_Order_By | null | undefined;
4876
+ stddev?: Thread_Event_Mentions_Stddev_Order_By | null | undefined;
4877
+ stddev_pop?: Thread_Event_Mentions_Stddev_Pop_Order_By | null | undefined;
4878
+ stddev_samp?: Thread_Event_Mentions_Stddev_Samp_Order_By | null | undefined;
4879
+ sum?: Thread_Event_Mentions_Sum_Order_By | null | undefined;
4880
+ var_pop?: Thread_Event_Mentions_Var_Pop_Order_By | null | undefined;
4881
+ var_samp?: Thread_Event_Mentions_Var_Samp_Order_By | null | undefined;
4882
+ variance?: Thread_Event_Mentions_Variance_Order_By | null | undefined;
4883
+ };
4884
+ /** order by avg() on columns of table "thread_event_mentions" */
4885
+ type Thread_Event_Mentions_Avg_Order_By = {
4886
+ thread_event_id?: Order_By | null | undefined;
4887
+ };
4888
+ /** Boolean expression to filter rows from the table "thread_event_mentions". All fields are combined with a logical 'AND'. */
4889
+ type Thread_Event_Mentions_Bool_Exp = {
4890
+ _and?: Array<Thread_Event_Mentions_Bool_Exp> | null | undefined;
4891
+ _not?: Thread_Event_Mentions_Bool_Exp | null | undefined;
4892
+ _or?: Array<Thread_Event_Mentions_Bool_Exp> | null | undefined;
4893
+ created_at?: Timestamptz_Comparison_Exp | null | undefined;
4894
+ mentioned_user?: Promptql_Users_Bool_Exp | null | undefined;
4895
+ mentioned_user_id?: Uuid_Comparison_Exp | null | undefined;
4896
+ thread?: Threads_V2_Bool_Exp | null | undefined;
4897
+ thread_event?: Thread_Events_Bool_Exp | null | undefined;
4898
+ thread_event_id?: Bigint_Comparison_Exp | null | undefined;
4899
+ thread_id?: Uuid_Comparison_Exp | null | undefined;
4900
+ };
4901
+ /** order by max() on columns of table "thread_event_mentions" */
4902
+ type Thread_Event_Mentions_Max_Order_By = {
4903
+ created_at?: Order_By | null | undefined;
4904
+ mentioned_user_id?: Order_By | null | undefined;
4905
+ thread_event_id?: Order_By | null | undefined;
4906
+ thread_id?: Order_By | null | undefined;
4907
+ };
4908
+ /** order by min() on columns of table "thread_event_mentions" */
4909
+ type Thread_Event_Mentions_Min_Order_By = {
4910
+ created_at?: Order_By | null | undefined;
4911
+ mentioned_user_id?: Order_By | null | undefined;
4912
+ thread_event_id?: Order_By | null | undefined;
4913
+ thread_id?: Order_By | null | undefined;
4914
+ };
4915
+ /** select columns of table "thread_event_mentions" */
4916
+ type Thread_Event_Mentions_Select_Column =
4917
+ /** column name */
4918
+ 'created_at'
4919
+ /** column name */
4920
+ | 'mentioned_user_id'
4921
+ /** column name */
4922
+ | 'thread_event_id'
4923
+ /** column name */
4924
+ | 'thread_id';
4925
+ /** order by stddev() on columns of table "thread_event_mentions" */
4926
+ type Thread_Event_Mentions_Stddev_Order_By = {
4927
+ thread_event_id?: Order_By | null | undefined;
4928
+ };
4929
+ /** order by stddev_pop() on columns of table "thread_event_mentions" */
4930
+ type Thread_Event_Mentions_Stddev_Pop_Order_By = {
4931
+ thread_event_id?: Order_By | null | undefined;
4932
+ };
4933
+ /** order by stddev_samp() on columns of table "thread_event_mentions" */
4934
+ type Thread_Event_Mentions_Stddev_Samp_Order_By = {
4935
+ thread_event_id?: Order_By | null | undefined;
4936
+ };
4937
+ /** order by sum() on columns of table "thread_event_mentions" */
4938
+ type Thread_Event_Mentions_Sum_Order_By = {
4939
+ thread_event_id?: Order_By | null | undefined;
4940
+ };
4941
+ /** order by var_pop() on columns of table "thread_event_mentions" */
4942
+ type Thread_Event_Mentions_Var_Pop_Order_By = {
4943
+ thread_event_id?: Order_By | null | undefined;
4944
+ };
4945
+ /** order by var_samp() on columns of table "thread_event_mentions" */
4946
+ type Thread_Event_Mentions_Var_Samp_Order_By = {
4947
+ thread_event_id?: Order_By | null | undefined;
4948
+ };
4949
+ /** order by variance() on columns of table "thread_event_mentions" */
4950
+ type Thread_Event_Mentions_Variance_Order_By = {
4951
+ thread_event_id?: Order_By | null | undefined;
4952
+ };
4953
+ type Thread_Events_Aggregate_Bool_Exp = {
4954
+ count?: Thread_Events_Aggregate_Bool_Exp_Count | null | undefined;
4955
+ };
4956
+ type Thread_Events_Aggregate_Bool_Exp_Count = {
4957
+ arguments?: Array<Thread_Events_Select_Column> | null | undefined;
4958
+ distinct?: boolean | null | undefined;
4959
+ filter?: Thread_Events_Bool_Exp | null | undefined;
4960
+ predicate: Int_Comparison_Exp;
4961
+ };
4962
+ /** order by aggregate values of table "thread_events" */
4963
+ type Thread_Events_Aggregate_Order_By = {
4964
+ avg?: Thread_Events_Avg_Order_By | null | undefined;
4965
+ count?: Order_By | null | undefined;
4966
+ max?: Thread_Events_Max_Order_By | null | undefined;
4967
+ min?: Thread_Events_Min_Order_By | null | undefined;
4968
+ stddev?: Thread_Events_Stddev_Order_By | null | undefined;
4969
+ stddev_pop?: Thread_Events_Stddev_Pop_Order_By | null | undefined;
4970
+ stddev_samp?: Thread_Events_Stddev_Samp_Order_By | null | undefined;
4971
+ sum?: Thread_Events_Sum_Order_By | null | undefined;
4972
+ var_pop?: Thread_Events_Var_Pop_Order_By | null | undefined;
4973
+ var_samp?: Thread_Events_Var_Samp_Order_By | null | undefined;
4974
+ variance?: Thread_Events_Variance_Order_By | null | undefined;
4975
+ };
4976
+ /** order by avg() on columns of table "thread_events" */
4977
+ type Thread_Events_Avg_Order_By = {
4978
+ thread_event_id?: Order_By | null | undefined;
4979
+ };
4980
+ /** Boolean expression to filter rows from the table "thread_events". All fields are combined with a logical 'AND'. */
4981
+ type Thread_Events_Bool_Exp = {
4982
+ _and?: Array<Thread_Events_Bool_Exp> | null | undefined;
4983
+ _not?: Thread_Events_Bool_Exp | null | undefined;
4984
+ _or?: Array<Thread_Events_Bool_Exp> | null | undefined;
4985
+ build_fqdn?: String_Comparison_Exp | null | undefined;
4986
+ created_at?: Timestamptz_Comparison_Exp | null | undefined;
4987
+ event_data?: Jsonb_Comparison_Exp | null | undefined;
4988
+ thread?: Threads_V2_Bool_Exp | null | undefined;
4989
+ thread_event_id?: Bigint_Comparison_Exp | null | undefined;
4990
+ thread_event_mentions?: Thread_Event_Mentions_Bool_Exp | null | undefined;
4991
+ thread_event_mentions_aggregate?: Thread_Event_Mentions_Aggregate_Bool_Exp | null | undefined;
4992
+ thread_id?: Uuid_Comparison_Exp | null | undefined;
4993
+ thread_participant?: Thread_Participants_Bool_Exp | null | undefined;
4994
+ user?: Promptql_Users_Bool_Exp | null | undefined;
4995
+ user_id?: Uuid_Comparison_Exp | null | undefined;
4996
+ };
4997
+ /** order by max() on columns of table "thread_events" */
4998
+ type Thread_Events_Max_Order_By = {
4999
+ build_fqdn?: Order_By | null | undefined;
5000
+ created_at?: Order_By | null | undefined;
5001
+ thread_event_id?: Order_By | null | undefined;
5002
+ thread_id?: Order_By | null | undefined;
5003
+ /** promptql_user_id of the event author. NULL for agent (PromptQL) messages because the agent HGE role does not set this column. Non-NULL for user messages (set by HGE permission). */
5004
+ user_id?: Order_By | null | undefined;
5005
+ };
5006
+ /** order by min() on columns of table "thread_events" */
5007
+ type Thread_Events_Min_Order_By = {
5008
+ build_fqdn?: Order_By | null | undefined;
5009
+ created_at?: Order_By | null | undefined;
5010
+ thread_event_id?: Order_By | null | undefined;
5011
+ thread_id?: Order_By | null | undefined;
5012
+ /** promptql_user_id of the event author. NULL for agent (PromptQL) messages because the agent HGE role does not set this column. Non-NULL for user messages (set by HGE permission). */
5013
+ user_id?: Order_By | null | undefined;
5014
+ };
5015
+ /** select columns of table "thread_events" */
5016
+ type Thread_Events_Select_Column =
5017
+ /** column name */
5018
+ 'build_fqdn'
5019
+ /** column name */
5020
+ | 'created_at'
5021
+ /** column name */
5022
+ | 'event_data'
5023
+ /** column name */
5024
+ | 'thread_event_id'
5025
+ /** column name */
5026
+ | 'thread_id'
5027
+ /** column name */
5028
+ | 'user_id';
5029
+ /** order by stddev() on columns of table "thread_events" */
5030
+ type Thread_Events_Stddev_Order_By = {
5031
+ thread_event_id?: Order_By | null | undefined;
5032
+ };
5033
+ /** order by stddev_pop() on columns of table "thread_events" */
5034
+ type Thread_Events_Stddev_Pop_Order_By = {
5035
+ thread_event_id?: Order_By | null | undefined;
5036
+ };
5037
+ /** order by stddev_samp() on columns of table "thread_events" */
5038
+ type Thread_Events_Stddev_Samp_Order_By = {
5039
+ thread_event_id?: Order_By | null | undefined;
5040
+ };
5041
+ /** order by sum() on columns of table "thread_events" */
5042
+ type Thread_Events_Sum_Order_By = {
5043
+ thread_event_id?: Order_By | null | undefined;
5044
+ };
5045
+ /** order by var_pop() on columns of table "thread_events" */
5046
+ type Thread_Events_Var_Pop_Order_By = {
5047
+ thread_event_id?: Order_By | null | undefined;
5048
+ };
5049
+ /** order by var_samp() on columns of table "thread_events" */
5050
+ type Thread_Events_Var_Samp_Order_By = {
5051
+ thread_event_id?: Order_By | null | undefined;
5052
+ };
5053
+ /** order by variance() on columns of table "thread_events" */
5054
+ type Thread_Events_Variance_Order_By = {
5055
+ thread_event_id?: Order_By | null | undefined;
5056
+ };
5057
+ type Thread_Feedback_Aggregate_Bool_Exp = {
5058
+ count?: Thread_Feedback_Aggregate_Bool_Exp_Count | null | undefined;
5059
+ };
5060
+ type Thread_Feedback_Aggregate_Bool_Exp_Count = {
5061
+ arguments?: Array<Thread_Feedback_Select_Column> | null | undefined;
5062
+ distinct?: boolean | null | undefined;
5063
+ filter?: Thread_Feedback_Bool_Exp | null | undefined;
5064
+ predicate: Int_Comparison_Exp;
5065
+ };
5066
+ /** order by aggregate values of table "thread_feedback" */
5067
+ type Thread_Feedback_Aggregate_Order_By = {
5068
+ avg?: Thread_Feedback_Avg_Order_By | null | undefined;
5069
+ count?: Order_By | null | undefined;
5070
+ max?: Thread_Feedback_Max_Order_By | null | undefined;
5071
+ min?: Thread_Feedback_Min_Order_By | null | undefined;
5072
+ stddev?: Thread_Feedback_Stddev_Order_By | null | undefined;
5073
+ stddev_pop?: Thread_Feedback_Stddev_Pop_Order_By | null | undefined;
5074
+ stddev_samp?: Thread_Feedback_Stddev_Samp_Order_By | null | undefined;
5075
+ sum?: Thread_Feedback_Sum_Order_By | null | undefined;
5076
+ var_pop?: Thread_Feedback_Var_Pop_Order_By | null | undefined;
5077
+ var_samp?: Thread_Feedback_Var_Samp_Order_By | null | undefined;
5078
+ variance?: Thread_Feedback_Variance_Order_By | null | undefined;
5079
+ };
5080
+ /** order by avg() on columns of table "thread_feedback" */
5081
+ type Thread_Feedback_Avg_Order_By = {
5082
+ /** -1 means negative, 1 means positive */
5083
+ feedback?: Order_By | null | undefined;
5084
+ };
5085
+ /** Boolean expression to filter rows from the table "thread_feedback". All fields are combined with a logical 'AND'. */
5086
+ type Thread_Feedback_Bool_Exp = {
5087
+ _and?: Array<Thread_Feedback_Bool_Exp> | null | undefined;
5088
+ _not?: Thread_Feedback_Bool_Exp | null | undefined;
5089
+ _or?: Array<Thread_Feedback_Bool_Exp> | null | undefined;
5090
+ created_at?: Timestamptz_Comparison_Exp | null | undefined;
5091
+ details?: String_Comparison_Exp | null | undefined;
5092
+ feedback?: Int_Comparison_Exp | null | undefined;
5093
+ message_id?: Uuid_Comparison_Exp | null | undefined;
5094
+ promptql_user_id?: Uuid_Comparison_Exp | null | undefined;
5095
+ thread?: Threads_V2_Bool_Exp | null | undefined;
5096
+ thread_id?: Uuid_Comparison_Exp | null | undefined;
5097
+ user?: Promptql_Users_Bool_Exp | null | undefined;
5098
+ };
5099
+ /** order by max() on columns of table "thread_feedback" */
5100
+ type Thread_Feedback_Max_Order_By = {
5101
+ created_at?: Order_By | null | undefined;
5102
+ details?: Order_By | null | undefined;
5103
+ /** -1 means negative, 1 means positive */
5104
+ feedback?: Order_By | null | undefined;
5105
+ message_id?: Order_By | null | undefined;
5106
+ promptql_user_id?: Order_By | null | undefined;
5107
+ thread_id?: Order_By | null | undefined;
5108
+ };
5109
+ /** order by min() on columns of table "thread_feedback" */
5110
+ type Thread_Feedback_Min_Order_By = {
5111
+ created_at?: Order_By | null | undefined;
5112
+ details?: Order_By | null | undefined;
5113
+ /** -1 means negative, 1 means positive */
5114
+ feedback?: Order_By | null | undefined;
5115
+ message_id?: Order_By | null | undefined;
5116
+ promptql_user_id?: Order_By | null | undefined;
5117
+ thread_id?: Order_By | null | undefined;
5118
+ };
5119
+ /** select columns of table "thread_feedback" */
5120
+ type Thread_Feedback_Select_Column =
5121
+ /** column name */
5122
+ 'created_at'
5123
+ /** column name */
5124
+ | 'details'
5125
+ /** column name */
5126
+ | 'feedback'
5127
+ /** column name */
5128
+ | 'message_id'
5129
+ /** column name */
5130
+ | 'promptql_user_id'
5131
+ /** column name */
5132
+ | 'thread_id';
5133
+ /** order by stddev() on columns of table "thread_feedback" */
5134
+ type Thread_Feedback_Stddev_Order_By = {
5135
+ /** -1 means negative, 1 means positive */
5136
+ feedback?: Order_By | null | undefined;
5137
+ };
5138
+ /** order by stddev_pop() on columns of table "thread_feedback" */
5139
+ type Thread_Feedback_Stddev_Pop_Order_By = {
5140
+ /** -1 means negative, 1 means positive */
5141
+ feedback?: Order_By | null | undefined;
5142
+ };
5143
+ /** order by stddev_samp() on columns of table "thread_feedback" */
5144
+ type Thread_Feedback_Stddev_Samp_Order_By = {
5145
+ /** -1 means negative, 1 means positive */
5146
+ feedback?: Order_By | null | undefined;
5147
+ };
5148
+ /** order by sum() on columns of table "thread_feedback" */
5149
+ type Thread_Feedback_Sum_Order_By = {
5150
+ /** -1 means negative, 1 means positive */
5151
+ feedback?: Order_By | null | undefined;
5152
+ };
5153
+ /** order by var_pop() on columns of table "thread_feedback" */
5154
+ type Thread_Feedback_Var_Pop_Order_By = {
5155
+ /** -1 means negative, 1 means positive */
5156
+ feedback?: Order_By | null | undefined;
5157
+ };
5158
+ /** order by var_samp() on columns of table "thread_feedback" */
5159
+ type Thread_Feedback_Var_Samp_Order_By = {
5160
+ /** -1 means negative, 1 means positive */
5161
+ feedback?: Order_By | null | undefined;
5162
+ };
5163
+ /** order by variance() on columns of table "thread_feedback" */
5164
+ type Thread_Feedback_Variance_Order_By = {
5165
+ /** -1 means negative, 1 means positive */
5166
+ feedback?: Order_By | null | undefined;
5167
+ };
5168
+ /** Boolean expression to filter rows from the table "thread_notification_preference_enum". All fields are combined with a logical 'AND'. */
5169
+ type Thread_Notification_Preference_Enum_Bool_Exp = {
5170
+ _and?: Array<Thread_Notification_Preference_Enum_Bool_Exp> | null | undefined;
5171
+ _not?: Thread_Notification_Preference_Enum_Bool_Exp | null | undefined;
5172
+ _or?: Array<Thread_Notification_Preference_Enum_Bool_Exp> | null | undefined;
5173
+ comment?: String_Comparison_Exp | null | undefined;
5174
+ thread_participants?: Thread_Participants_Bool_Exp | null | undefined;
5175
+ thread_participants_aggregate?: Thread_Participants_Aggregate_Bool_Exp | null | undefined;
5176
+ thread_participants_by_desktop_notification_preference?: Thread_Participants_Bool_Exp | null | undefined;
5177
+ thread_participants_by_desktop_notification_preference_aggregate?: Thread_Participants_Aggregate_Bool_Exp | null | undefined;
5178
+ thread_participants_by_mobile_notification_preference?: Thread_Participants_Bool_Exp | null | undefined;
5179
+ thread_participants_by_mobile_notification_preference_aggregate?: Thread_Participants_Aggregate_Bool_Exp | null | undefined;
5180
+ value?: String_Comparison_Exp | null | undefined;
5181
+ };
5182
+ type Thread_Notification_Preference_Enum_Enum =
5183
+ /** Notifications for all events */
5184
+ 'All'
5185
+ /** Notifications only when mentioned */
5186
+ | 'Mentions'
5187
+ /** Notifications for mentions and PromptQL replies to your questions */
5188
+ | 'MentionsAndReplies'
5189
+ /** No notifications for any event */
5190
+ | 'Nothing';
5191
+ /** Boolean expression to compare columns of type "thread_notification_preference_enum_enum". All fields are combined with logical 'AND'. */
5192
+ type Thread_Notification_Preference_Enum_Enum_Comparison_Exp = {
5193
+ _eq?: Thread_Notification_Preference_Enum_Enum | null | undefined;
5194
+ _in?: Array<Thread_Notification_Preference_Enum_Enum> | null | undefined;
5195
+ _is_null?: boolean | null | undefined;
5196
+ _neq?: Thread_Notification_Preference_Enum_Enum | null | undefined;
5197
+ _nin?: Array<Thread_Notification_Preference_Enum_Enum> | null | undefined;
5198
+ };
5199
+ type Thread_Participant_Activity_Aggregate_Bool_Exp = {
5200
+ count?: Thread_Participant_Activity_Aggregate_Bool_Exp_Count | null | undefined;
5201
+ };
5202
+ type Thread_Participant_Activity_Aggregate_Bool_Exp_Count = {
5203
+ arguments?: Array<Thread_Participant_Activity_Select_Column> | null | undefined;
5204
+ distinct?: boolean | null | undefined;
5205
+ filter?: Thread_Participant_Activity_Bool_Exp | null | undefined;
5206
+ predicate: Int_Comparison_Exp;
5207
+ };
5208
+ /** Boolean expression to filter rows from the table "thread_participant_activity". All fields are combined with a logical 'AND'. */
5209
+ type Thread_Participant_Activity_Bool_Exp = {
5210
+ _and?: Array<Thread_Participant_Activity_Bool_Exp> | null | undefined;
5211
+ _not?: Thread_Participant_Activity_Bool_Exp | null | undefined;
5212
+ _or?: Array<Thread_Participant_Activity_Bool_Exp> | null | undefined;
5213
+ activity_id?: Bigint_Comparison_Exp | null | undefined;
5214
+ activity_type?: String_Comparison_Exp | null | undefined;
5215
+ performed_at?: Timestamptz_Comparison_Exp | null | undefined;
5216
+ performed_by?: Uuid_Comparison_Exp | null | undefined;
5217
+ promptql_user_id?: Uuid_Comparison_Exp | null | undefined;
5218
+ thread_id?: Uuid_Comparison_Exp | null | undefined;
5219
+ thread_participant?: Thread_Participants_Bool_Exp | null | undefined;
5220
+ };
5221
+ /** select columns of table "thread_participant_activity" */
5222
+ type Thread_Participant_Activity_Select_Column =
5223
+ /** column name */
5224
+ 'activity_id'
5225
+ /** column name */
5226
+ | 'activity_type'
5227
+ /** column name */
5228
+ | 'performed_at'
5229
+ /** column name */
5230
+ | 'performed_by'
5231
+ /** column name */
5232
+ | 'promptql_user_id'
5233
+ /** column name */
5234
+ | 'thread_id';
5235
+ type Thread_Participants_Aggregate_Bool_Exp = {
5236
+ bool_and?: Thread_Participants_Aggregate_Bool_Exp_Bool_And | null | undefined;
5237
+ bool_or?: Thread_Participants_Aggregate_Bool_Exp_Bool_Or | null | undefined;
5238
+ count?: Thread_Participants_Aggregate_Bool_Exp_Count | null | undefined;
5239
+ };
5240
+ type Thread_Participants_Aggregate_Bool_Exp_Bool_And = {
5241
+ arguments: Thread_Participants_Select_Column_Thread_Participants_Aggregate_Bool_Exp_Bool_And_Arguments_Columns;
5242
+ distinct?: boolean | null | undefined;
5243
+ filter?: Thread_Participants_Bool_Exp | null | undefined;
5244
+ predicate: Boolean_Comparison_Exp;
5245
+ };
5246
+ type Thread_Participants_Aggregate_Bool_Exp_Bool_Or = {
5247
+ arguments: Thread_Participants_Select_Column_Thread_Participants_Aggregate_Bool_Exp_Bool_Or_Arguments_Columns;
5248
+ distinct?: boolean | null | undefined;
5249
+ filter?: Thread_Participants_Bool_Exp | null | undefined;
5250
+ predicate: Boolean_Comparison_Exp;
5251
+ };
5252
+ type Thread_Participants_Aggregate_Bool_Exp_Count = {
5253
+ arguments?: Array<Thread_Participants_Select_Column> | null | undefined;
5254
+ distinct?: boolean | null | undefined;
5255
+ filter?: Thread_Participants_Bool_Exp | null | undefined;
5256
+ predicate: Int_Comparison_Exp;
5257
+ };
5258
+ /** order by aggregate values of table "thread_participants" */
5259
+ type Thread_Participants_Aggregate_Order_By = {
5260
+ avg?: Thread_Participants_Avg_Order_By | null | undefined;
5261
+ count?: Order_By | null | undefined;
5262
+ max?: Thread_Participants_Max_Order_By | null | undefined;
5263
+ min?: Thread_Participants_Min_Order_By | null | undefined;
5264
+ stddev?: Thread_Participants_Stddev_Order_By | null | undefined;
5265
+ stddev_pop?: Thread_Participants_Stddev_Pop_Order_By | null | undefined;
5266
+ stddev_samp?: Thread_Participants_Stddev_Samp_Order_By | null | undefined;
5267
+ sum?: Thread_Participants_Sum_Order_By | null | undefined;
5268
+ var_pop?: Thread_Participants_Var_Pop_Order_By | null | undefined;
5269
+ var_samp?: Thread_Participants_Var_Samp_Order_By | null | undefined;
5270
+ variance?: Thread_Participants_Variance_Order_By | null | undefined;
5271
+ };
5272
+ /** order by avg() on columns of table "thread_participants" */
5273
+ type Thread_Participants_Avg_Order_By = {
5274
+ last_seen_event_id?: Order_By | null | undefined;
5275
+ latest_relevant_event_id?: Order_By | null | undefined;
5276
+ };
5277
+ /** Boolean expression to filter rows from the table "thread_participants". All fields are combined with a logical 'AND'. */
5278
+ type Thread_Participants_Bool_Exp = {
5279
+ _and?: Array<Thread_Participants_Bool_Exp> | null | undefined;
5280
+ _not?: Thread_Participants_Bool_Exp | null | undefined;
5281
+ _or?: Array<Thread_Participants_Bool_Exp> | null | undefined;
5282
+ created_at?: Timestamptz_Comparison_Exp | null | undefined;
5283
+ desktop_notification_preference?: Thread_Notification_Preference_Enum_Enum_Comparison_Exp | null | undefined;
5284
+ desktop_notification_preference_enum?: Thread_Notification_Preference_Enum_Bool_Exp | null | undefined;
5285
+ is_removed?: Boolean_Comparison_Exp | null | undefined;
5286
+ last_seen_event_id?: Bigint_Comparison_Exp | null | undefined;
5287
+ last_seen_thread_event?: Thread_Events_Bool_Exp | null | undefined;
5288
+ latest_relevant_event_id?: Bigint_Comparison_Exp | null | undefined;
5289
+ mobile_notification_preference?: Thread_Notification_Preference_Enum_Enum_Comparison_Exp | null | undefined;
5290
+ mobile_notification_preference_enum?: Thread_Notification_Preference_Enum_Bool_Exp | null | undefined;
5291
+ notification_preference?: String_Comparison_Exp | null | undefined;
5292
+ promptql_user?: Promptql_Users_Bool_Exp | null | undefined;
5293
+ promptql_user_id?: Uuid_Comparison_Exp | null | undefined;
5294
+ slack_notification_preference?: Thread_Notification_Preference_Enum_Enum_Comparison_Exp | null | undefined;
5295
+ slack_notification_preference_enum?: Thread_Notification_Preference_Enum_Bool_Exp | null | undefined;
5296
+ thread_events?: Thread_Events_Bool_Exp | null | undefined;
5297
+ thread_events_aggregate?: Thread_Events_Aggregate_Bool_Exp | null | undefined;
5298
+ thread_id?: Uuid_Comparison_Exp | null | undefined;
5299
+ thread_participant_activities?: Thread_Participant_Activity_Bool_Exp | null | undefined;
5300
+ thread_participant_activities_aggregate?: Thread_Participant_Activity_Aggregate_Bool_Exp | null | undefined;
5301
+ threads_v2?: Threads_V2_Bool_Exp | null | undefined;
5302
+ typing_indicator?: Thread_User_Typing_Bool_Exp | null | undefined;
5303
+ updated_at?: Timestamptz_Comparison_Exp | null | undefined;
5304
+ };
5305
+ /** order by max() on columns of table "thread_participants" */
5306
+ type Thread_Participants_Max_Order_By = {
5307
+ /** Timestamp when the participant was added to the thread */
5308
+ created_at?: Order_By | null | undefined;
5309
+ last_seen_event_id?: Order_By | null | undefined;
5310
+ latest_relevant_event_id?: Order_By | null | undefined;
5311
+ promptql_user_id?: Order_By | null | undefined;
5312
+ thread_id?: Order_By | null | undefined;
5313
+ updated_at?: Order_By | null | undefined;
5314
+ };
5315
+ /** order by min() on columns of table "thread_participants" */
5316
+ type Thread_Participants_Min_Order_By = {
5317
+ /** Timestamp when the participant was added to the thread */
5318
+ created_at?: Order_By | null | undefined;
5319
+ last_seen_event_id?: Order_By | null | undefined;
5320
+ latest_relevant_event_id?: Order_By | null | undefined;
5321
+ promptql_user_id?: Order_By | null | undefined;
5322
+ thread_id?: Order_By | null | undefined;
5323
+ updated_at?: Order_By | null | undefined;
5324
+ };
5325
+ /** select columns of table "thread_participants" */
5326
+ type Thread_Participants_Select_Column =
5327
+ /** column name */
5328
+ 'created_at'
5329
+ /** column name */
5330
+ | 'desktop_notification_preference'
5331
+ /** column name */
5332
+ | 'is_removed'
5333
+ /** column name */
5334
+ | 'last_seen_event_id'
5335
+ /** column name */
5336
+ | 'latest_relevant_event_id'
5337
+ /** column name */
5338
+ | 'mobile_notification_preference'
5339
+ /** column name */
5340
+ | 'promptql_user_id'
5341
+ /** column name */
5342
+ | 'slack_notification_preference'
5343
+ /** column name */
5344
+ | 'thread_id'
5345
+ /** column name */
5346
+ | 'updated_at';
5347
+ /** select "thread_participants_aggregate_bool_exp_bool_and_arguments_columns" columns of table "thread_participants" */
5348
+ type Thread_Participants_Select_Column_Thread_Participants_Aggregate_Bool_Exp_Bool_And_Arguments_Columns =
5349
+ /** column name */
5350
+ 'is_removed';
5351
+ /** select "thread_participants_aggregate_bool_exp_bool_or_arguments_columns" columns of table "thread_participants" */
5352
+ type Thread_Participants_Select_Column_Thread_Participants_Aggregate_Bool_Exp_Bool_Or_Arguments_Columns =
5353
+ /** column name */
5354
+ 'is_removed';
5355
+ /** order by stddev() on columns of table "thread_participants" */
5356
+ type Thread_Participants_Stddev_Order_By = {
5357
+ last_seen_event_id?: Order_By | null | undefined;
5358
+ latest_relevant_event_id?: Order_By | null | undefined;
5359
+ };
5360
+ /** order by stddev_pop() on columns of table "thread_participants" */
5361
+ type Thread_Participants_Stddev_Pop_Order_By = {
5362
+ last_seen_event_id?: Order_By | null | undefined;
5363
+ latest_relevant_event_id?: Order_By | null | undefined;
5364
+ };
5365
+ /** order by stddev_samp() on columns of table "thread_participants" */
5366
+ type Thread_Participants_Stddev_Samp_Order_By = {
5367
+ last_seen_event_id?: Order_By | null | undefined;
5368
+ latest_relevant_event_id?: Order_By | null | undefined;
5369
+ };
5370
+ /** order by sum() on columns of table "thread_participants" */
5371
+ type Thread_Participants_Sum_Order_By = {
5372
+ last_seen_event_id?: Order_By | null | undefined;
5373
+ latest_relevant_event_id?: Order_By | null | undefined;
5374
+ };
5375
+ /** order by var_pop() on columns of table "thread_participants" */
5376
+ type Thread_Participants_Var_Pop_Order_By = {
5377
+ last_seen_event_id?: Order_By | null | undefined;
5378
+ latest_relevant_event_id?: Order_By | null | undefined;
5379
+ };
5380
+ /** order by var_samp() on columns of table "thread_participants" */
5381
+ type Thread_Participants_Var_Samp_Order_By = {
5382
+ last_seen_event_id?: Order_By | null | undefined;
5383
+ latest_relevant_event_id?: Order_By | null | undefined;
5384
+ };
5385
+ /** order by variance() on columns of table "thread_participants" */
5386
+ type Thread_Participants_Variance_Order_By = {
5387
+ last_seen_event_id?: Order_By | null | undefined;
5388
+ latest_relevant_event_id?: Order_By | null | undefined;
5389
+ };
5390
+ /** order by aggregate values of table "thread_taught_by_result" */
5391
+ type Thread_Taught_By_Result_Aggregate_Order_By = {
5392
+ count?: Order_By | null | undefined;
5393
+ max?: Thread_Taught_By_Result_Max_Order_By | null | undefined;
5394
+ min?: Thread_Taught_By_Result_Min_Order_By | null | undefined;
5395
+ };
5396
+ /** Boolean expression to filter rows from the table "thread_taught_by_result". All fields are combined with a logical 'AND'. */
5397
+ type Thread_Taught_By_Result_Bool_Exp = {
5398
+ _and?: Array<Thread_Taught_By_Result_Bool_Exp> | null | undefined;
5399
+ _not?: Thread_Taught_By_Result_Bool_Exp | null | undefined;
5400
+ _or?: Array<Thread_Taught_By_Result_Bool_Exp> | null | undefined;
5401
+ teachings?: String_Comparison_Exp | null | undefined;
5402
+ user?: Promptql_Users_Bool_Exp | null | undefined;
5403
+ user_id?: Uuid_Comparison_Exp | null | undefined;
5404
+ };
5405
+ /** order by max() on columns of table "thread_taught_by_result" */
5406
+ type Thread_Taught_By_Result_Max_Order_By = {
5407
+ teachings?: Order_By | null | undefined;
5408
+ user_id?: Order_By | null | undefined;
5409
+ };
5410
+ /** order by min() on columns of table "thread_taught_by_result" */
5411
+ type Thread_Taught_By_Result_Min_Order_By = {
5412
+ teachings?: Order_By | null | undefined;
5413
+ user_id?: Order_By | null | undefined;
5414
+ };
5415
+ type Thread_User_Typing_Aggregate_Bool_Exp = {
5416
+ count?: Thread_User_Typing_Aggregate_Bool_Exp_Count | null | undefined;
5417
+ };
5418
+ type Thread_User_Typing_Aggregate_Bool_Exp_Count = {
5419
+ arguments?: Array<Thread_User_Typing_Select_Column> | null | undefined;
5420
+ distinct?: boolean | null | undefined;
5421
+ filter?: Thread_User_Typing_Bool_Exp | null | undefined;
5422
+ predicate: Int_Comparison_Exp;
5423
+ };
5424
+ /** order by aggregate values of table "thread_user_typing" */
5425
+ type Thread_User_Typing_Aggregate_Order_By = {
5426
+ count?: Order_By | null | undefined;
5427
+ max?: Thread_User_Typing_Max_Order_By | null | undefined;
5428
+ min?: Thread_User_Typing_Min_Order_By | null | undefined;
5429
+ };
5430
+ /** Boolean expression to filter rows from the table "thread_user_typing". All fields are combined with a logical 'AND'. */
5431
+ type Thread_User_Typing_Bool_Exp = {
5432
+ _and?: Array<Thread_User_Typing_Bool_Exp> | null | undefined;
5433
+ _not?: Thread_User_Typing_Bool_Exp | null | undefined;
5434
+ _or?: Array<Thread_User_Typing_Bool_Exp> | null | undefined;
5435
+ last_typing_ts?: Timestamptz_Comparison_Exp | null | undefined;
5436
+ promptql_user_id?: Uuid_Comparison_Exp | null | undefined;
5437
+ thread?: Threads_V2_Bool_Exp | null | undefined;
5438
+ thread_id?: Uuid_Comparison_Exp | null | undefined;
5439
+ thread_participant?: Thread_Participants_Bool_Exp | null | undefined;
5440
+ user?: Promptql_Users_Bool_Exp | null | undefined;
5441
+ };
5442
+ /** order by max() on columns of table "thread_user_typing" */
5443
+ type Thread_User_Typing_Max_Order_By = {
5444
+ last_typing_ts?: Order_By | null | undefined;
5445
+ promptql_user_id?: Order_By | null | undefined;
5446
+ thread_id?: Order_By | null | undefined;
5447
+ };
5448
+ /** order by min() on columns of table "thread_user_typing" */
5449
+ type Thread_User_Typing_Min_Order_By = {
5450
+ last_typing_ts?: Order_By | null | undefined;
5451
+ promptql_user_id?: Order_By | null | undefined;
5452
+ thread_id?: Order_By | null | undefined;
5453
+ };
5454
+ /** select columns of table "thread_user_typing" */
5455
+ type Thread_User_Typing_Select_Column =
5456
+ /** column name */
5457
+ 'last_typing_ts'
5458
+ /** column name */
5459
+ | 'promptql_user_id'
5460
+ /** column name */
5461
+ | 'thread_id';
5462
+ type Thread_Visibility_Enum_Enum =
5463
+ /** Private threads are visible only to thread participants */
5464
+ 'PRIVATE'
5465
+ /** Public threads are visible to everyone in the project */
5466
+ | 'PUBLIC';
5467
+ /** Boolean expression to compare columns of type "thread_visibility_enum_enum". All fields are combined with logical 'AND'. */
5468
+ type Thread_Visibility_Enum_Enum_Comparison_Exp = {
5469
+ _eq?: Thread_Visibility_Enum_Enum | null | undefined;
5470
+ _in?: Array<Thread_Visibility_Enum_Enum> | null | undefined;
5471
+ _is_null?: boolean | null | undefined;
5472
+ _neq?: Thread_Visibility_Enum_Enum | null | undefined;
5473
+ _nin?: Array<Thread_Visibility_Enum_Enum> | null | undefined;
5474
+ };
5475
+ type Threads_V2_Aggregate_Bool_Exp = {
5476
+ count?: Threads_V2_Aggregate_Bool_Exp_Count | null | undefined;
5477
+ };
5478
+ type Threads_V2_Aggregate_Bool_Exp_Count = {
5479
+ arguments?: Array<Threads_V2_Select_Column> | null | undefined;
5480
+ distinct?: boolean | null | undefined;
5481
+ filter?: Threads_V2_Bool_Exp | null | undefined;
5482
+ predicate: Int_Comparison_Exp;
5483
+ };
5484
+ /** order by aggregate values of table "threads_v2" */
5485
+ type Threads_V2_Aggregate_Order_By = {
5486
+ avg?: Threads_V2_Avg_Order_By | null | undefined;
5487
+ count?: Order_By | null | undefined;
5488
+ max?: Threads_V2_Max_Order_By | null | undefined;
5489
+ min?: Threads_V2_Min_Order_By | null | undefined;
5490
+ stddev?: Threads_V2_Stddev_Order_By | null | undefined;
5491
+ stddev_pop?: Threads_V2_Stddev_Pop_Order_By | null | undefined;
5492
+ stddev_samp?: Threads_V2_Stddev_Samp_Order_By | null | undefined;
5493
+ sum?: Threads_V2_Sum_Order_By | null | undefined;
5494
+ var_pop?: Threads_V2_Var_Pop_Order_By | null | undefined;
5495
+ var_samp?: Threads_V2_Var_Samp_Order_By | null | undefined;
5496
+ variance?: Threads_V2_Variance_Order_By | null | undefined;
5497
+ };
5498
+ /** order by avg() on columns of table "threads_v2" */
5499
+ type Threads_V2_Avg_Order_By = {
5500
+ /** Denormalized first thread_event_id for fast room new-thread queries. */
5501
+ first_event_id?: Order_By | null | undefined;
5502
+ };
5503
+ /** Boolean expression to filter rows from the table "threads_v2". All fields are combined with a logical 'AND'. */
5504
+ type Threads_V2_Bool_Exp = {
5505
+ _and?: Array<Threads_V2_Bool_Exp> | null | undefined;
5506
+ _not?: Threads_V2_Bool_Exp | null | undefined;
5507
+ _or?: Array<Threads_V2_Bool_Exp> | null | undefined;
5508
+ build_id?: Uuid_Comparison_Exp | null | undefined;
5509
+ created_at?: Timestamptz_Comparison_Exp | null | undefined;
5510
+ created_from?: String_Comparison_Exp | null | undefined;
5511
+ custom_title?: String_Comparison_Exp | null | undefined;
5512
+ deleted_at?: Timestamptz_Comparison_Exp | null | undefined;
5513
+ first_event_id?: Bigint_Comparison_Exp | null | undefined;
5514
+ forked_from?: Uuid_Comparison_Exp | null | undefined;
5515
+ interactors?: Promptql_Users_Bool_Exp | null | undefined;
5516
+ is_starred?: Boolean_Comparison_Exp | null | undefined;
5517
+ learning_suggestion?: String_Comparison_Exp | null | undefined;
5518
+ message_reactions?: Message_Reactions_Bool_Exp | null | undefined;
5519
+ message_reactions_aggregate?: Message_Reactions_Aggregate_Bool_Exp | null | undefined;
5520
+ pinned_threads_v2s?: Pinned_Threads_V2_Bool_Exp | null | undefined;
5521
+ project_config?: Project_Configuration_Bool_Exp | null | undefined;
5522
+ project_id?: Uuid_Comparison_Exp | null | undefined;
5523
+ project_slack_integrations?: Slack_Integration_Bool_Exp | null | undefined;
5524
+ project_user_groups?: User_Groups_Bool_Exp | null | undefined;
5525
+ relevant_event_count?: Int_Comparison_Exp | null | undefined;
5526
+ room?: Rooms_Bool_Exp | null | undefined;
5527
+ room_id?: Uuid_Comparison_Exp | null | undefined;
5528
+ shared_threads?: Shared_Threads_Bool_Exp | null | undefined;
5529
+ social_feed_candidates?: Social_Feed_Candidates_Bool_Exp | null | undefined;
5530
+ taught_by?: Thread_Taught_By_Result_Bool_Exp | null | undefined;
5531
+ thread_artifacts?: Thread_Artifacts_Bool_Exp | null | undefined;
5532
+ thread_artifacts_aggregate?: Thread_Artifacts_Aggregate_Bool_Exp | null | undefined;
5533
+ thread_event_mentions?: Thread_Event_Mentions_Bool_Exp | null | undefined;
5534
+ thread_event_mentions_aggregate?: Thread_Event_Mentions_Aggregate_Bool_Exp | null | undefined;
5535
+ thread_events?: Thread_Events_Bool_Exp | null | undefined;
5536
+ thread_events_aggregate?: Thread_Events_Aggregate_Bool_Exp | null | undefined;
5537
+ thread_feedback?: Thread_Feedback_Bool_Exp | null | undefined;
5538
+ thread_feedback_aggregate?: Thread_Feedback_Aggregate_Bool_Exp | null | undefined;
5539
+ thread_id?: Uuid_Comparison_Exp | null | undefined;
5540
+ thread_participants?: Thread_Participants_Bool_Exp | null | undefined;
5541
+ thread_participants_aggregate?: Thread_Participants_Aggregate_Bool_Exp | null | undefined;
5542
+ thread_user_typing?: Thread_User_Typing_Bool_Exp | null | undefined;
5543
+ thread_user_typing_aggregate?: Thread_User_Typing_Aggregate_Bool_Exp | null | undefined;
5544
+ title?: String_Comparison_Exp | null | undefined;
5545
+ updated_at?: Timestamptz_Comparison_Exp | null | undefined;
5546
+ user?: Promptql_Users_Bool_Exp | null | undefined;
5547
+ user_id?: Uuid_Comparison_Exp | null | undefined;
5548
+ visibility?: Thread_Visibility_Enum_Enum_Comparison_Exp | null | undefined;
5549
+ };
5550
+ /** order by max() on columns of table "threads_v2" */
5551
+ type Threads_V2_Max_Order_By = {
5552
+ build_id?: Order_By | null | undefined;
5553
+ created_at?: Order_By | null | undefined;
5554
+ created_from?: Order_By | null | undefined;
5555
+ custom_title?: Order_By | null | undefined;
5556
+ deleted_at?: Order_By | null | undefined;
5557
+ /** Denormalized first thread_event_id for fast room new-thread queries. */
5558
+ first_event_id?: Order_By | null | undefined;
5559
+ forked_from?: Order_By | null | undefined;
5560
+ project_id?: Order_By | null | undefined;
5561
+ /** The room this thread belongs to. Every thread must belong to exactly one room. */
5562
+ room_id?: Order_By | null | undefined;
5563
+ thread_id?: Order_By | null | undefined;
5564
+ title?: Order_By | null | undefined;
5565
+ /** DEPRECATED: Do not use this field. The actual updated_at can be derived from the last event of the thread (thread_events table). */
5566
+ updated_at?: Order_By | null | undefined;
5567
+ /** promptql_user_id of creator */
5568
+ user_id?: Order_By | null | undefined;
5569
+ };
5570
+ /** order by min() on columns of table "threads_v2" */
5571
+ type Threads_V2_Min_Order_By = {
5572
+ build_id?: Order_By | null | undefined;
5573
+ created_at?: Order_By | null | undefined;
5574
+ created_from?: Order_By | null | undefined;
5575
+ custom_title?: Order_By | null | undefined;
5576
+ deleted_at?: Order_By | null | undefined;
5577
+ /** Denormalized first thread_event_id for fast room new-thread queries. */
5578
+ first_event_id?: Order_By | null | undefined;
5579
+ forked_from?: Order_By | null | undefined;
5580
+ project_id?: Order_By | null | undefined;
5581
+ /** The room this thread belongs to. Every thread must belong to exactly one room. */
5582
+ room_id?: Order_By | null | undefined;
5583
+ thread_id?: Order_By | null | undefined;
5584
+ title?: Order_By | null | undefined;
5585
+ /** DEPRECATED: Do not use this field. The actual updated_at can be derived from the last event of the thread (thread_events table). */
5586
+ updated_at?: Order_By | null | undefined;
5587
+ /** promptql_user_id of creator */
5588
+ user_id?: Order_By | null | undefined;
5589
+ };
5590
+ /** Ordering options when selecting data from "threads_v2". */
5591
+ type Threads_V2_Order_By = {
5592
+ build_id?: Order_By | null | undefined;
5593
+ created_at?: Order_By | null | undefined;
5594
+ created_from?: Order_By | null | undefined;
5595
+ custom_title?: Order_By | null | undefined;
5596
+ deleted_at?: Order_By | null | undefined;
5597
+ first_event_id?: Order_By | null | undefined;
5598
+ forked_from?: Order_By | null | undefined;
5599
+ interactors_aggregate?: Promptql_Users_Aggregate_Order_By | null | undefined;
5600
+ is_starred?: Order_By | null | undefined;
5601
+ learning_suggestion?: Order_By | null | undefined;
5602
+ message_reactions_aggregate?: Message_Reactions_Aggregate_Order_By | null | undefined;
5603
+ pinned_threads_v2s_aggregate?: Pinned_Threads_V2_Aggregate_Order_By | null | undefined;
5604
+ project_config?: Project_Configuration_Order_By | null | undefined;
5605
+ project_id?: Order_By | null | undefined;
5606
+ project_slack_integrations_aggregate?: Slack_Integration_Aggregate_Order_By | null | undefined;
5607
+ project_user_groups_aggregate?: User_Groups_Aggregate_Order_By | null | undefined;
5608
+ relevant_event_count?: Order_By | null | undefined;
5609
+ room?: Rooms_Order_By | null | undefined;
5610
+ room_id?: Order_By | null | undefined;
5611
+ shared_threads_aggregate?: Shared_Threads_Aggregate_Order_By | null | undefined;
5612
+ social_feed_candidates_aggregate?: Social_Feed_Candidates_Aggregate_Order_By | null | undefined;
5613
+ taught_by_aggregate?: Thread_Taught_By_Result_Aggregate_Order_By | null | undefined;
5614
+ thread_artifacts_aggregate?: Thread_Artifacts_Aggregate_Order_By | null | undefined;
5615
+ thread_event_mentions_aggregate?: Thread_Event_Mentions_Aggregate_Order_By | null | undefined;
5616
+ thread_events_aggregate?: Thread_Events_Aggregate_Order_By | null | undefined;
5617
+ thread_feedback_aggregate?: Thread_Feedback_Aggregate_Order_By | null | undefined;
5618
+ thread_id?: Order_By | null | undefined;
5619
+ thread_participants_aggregate?: Thread_Participants_Aggregate_Order_By | null | undefined;
5620
+ thread_user_typing_aggregate?: Thread_User_Typing_Aggregate_Order_By | null | undefined;
5621
+ title?: Order_By | null | undefined;
5622
+ updated_at?: Order_By | null | undefined;
5623
+ user?: Promptql_Users_Order_By | null | undefined;
5624
+ user_id?: Order_By | null | undefined;
5625
+ visibility?: Order_By | null | undefined;
5626
+ };
5627
+ /** select columns of table "threads_v2" */
5628
+ type Threads_V2_Select_Column =
5629
+ /** column name */
5630
+ 'build_id'
5631
+ /** column name */
5632
+ | 'created_at'
5633
+ /** column name */
5634
+ | 'created_from'
5635
+ /** column name */
5636
+ | 'custom_title'
5637
+ /** column name */
5638
+ | 'deleted_at'
5639
+ /** column name */
5640
+ | 'first_event_id'
5641
+ /** column name */
5642
+ | 'forked_from'
5643
+ /** column name */
5644
+ | 'project_id'
5645
+ /** column name */
5646
+ | 'room_id'
5647
+ /** column name */
5648
+ | 'thread_id'
5649
+ /** column name */
5650
+ | 'title'
5651
+ /** column name */
5652
+ | 'updated_at'
5653
+ /** column name */
5654
+ | 'user_id'
5655
+ /** column name */
5656
+ | 'visibility';
5657
+ /** order by stddev() on columns of table "threads_v2" */
5658
+ type Threads_V2_Stddev_Order_By = {
5659
+ /** Denormalized first thread_event_id for fast room new-thread queries. */
5660
+ first_event_id?: Order_By | null | undefined;
5661
+ };
5662
+ /** order by stddev_pop() on columns of table "threads_v2" */
5663
+ type Threads_V2_Stddev_Pop_Order_By = {
5664
+ /** Denormalized first thread_event_id for fast room new-thread queries. */
5665
+ first_event_id?: Order_By | null | undefined;
5666
+ };
5667
+ /** order by stddev_samp() on columns of table "threads_v2" */
5668
+ type Threads_V2_Stddev_Samp_Order_By = {
5669
+ /** Denormalized first thread_event_id for fast room new-thread queries. */
5670
+ first_event_id?: Order_By | null | undefined;
5671
+ };
5672
+ /** order by sum() on columns of table "threads_v2" */
5673
+ type Threads_V2_Sum_Order_By = {
5674
+ /** Denormalized first thread_event_id for fast room new-thread queries. */
5675
+ first_event_id?: Order_By | null | undefined;
5676
+ };
5677
+ /** order by var_pop() on columns of table "threads_v2" */
5678
+ type Threads_V2_Var_Pop_Order_By = {
5679
+ /** Denormalized first thread_event_id for fast room new-thread queries. */
5680
+ first_event_id?: Order_By | null | undefined;
5681
+ };
5682
+ /** order by var_samp() on columns of table "threads_v2" */
5683
+ type Threads_V2_Var_Samp_Order_By = {
5684
+ /** Denormalized first thread_event_id for fast room new-thread queries. */
5685
+ first_event_id?: Order_By | null | undefined;
5686
+ };
5687
+ /** order by variance() on columns of table "threads_v2" */
5688
+ type Threads_V2_Variance_Order_By = {
5689
+ /** Denormalized first thread_event_id for fast room new-thread queries. */
5690
+ first_event_id?: Order_By | null | undefined;
5691
+ };
5692
+ /** Boolean expression to compare columns of type "timestamptz". All fields are combined with logical 'AND'. */
5693
+ type Timestamptz_Comparison_Exp = {
5694
+ _eq?: string | null | undefined;
5695
+ _gt?: string | null | undefined;
5696
+ _gte?: string | null | undefined;
5697
+ _in?: Array<string> | null | undefined;
5698
+ _is_null?: boolean | null | undefined;
5699
+ _lt?: string | null | undefined;
5700
+ _lte?: string | null | undefined;
5701
+ _neq?: string | null | undefined;
5702
+ _nin?: Array<string> | null | undefined;
5703
+ };
5704
+ /** order by aggregate values of table "user_group_members" */
5705
+ type User_Group_Members_Aggregate_Order_By = {
5706
+ count?: Order_By | null | undefined;
5707
+ max?: User_Group_Members_Max_Order_By | null | undefined;
5708
+ min?: User_Group_Members_Min_Order_By | null | undefined;
5709
+ };
5710
+ /** Boolean expression to filter rows from the table "user_group_members". All fields are combined with a logical 'AND'. */
5711
+ type User_Group_Members_Bool_Exp = {
5712
+ _and?: Array<User_Group_Members_Bool_Exp> | null | undefined;
5713
+ _not?: User_Group_Members_Bool_Exp | null | undefined;
5714
+ _or?: Array<User_Group_Members_Bool_Exp> | null | undefined;
5715
+ promptql_user?: Promptql_Users_Bool_Exp | null | undefined;
5716
+ promptql_user_id?: Uuid_Comparison_Exp | null | undefined;
5717
+ user_group?: User_Groups_Bool_Exp | null | undefined;
5718
+ user_group_id?: Uuid_Comparison_Exp | null | undefined;
5719
+ };
5720
+ /** order by max() on columns of table "user_group_members" */
5721
+ type User_Group_Members_Max_Order_By = {
5722
+ promptql_user_id?: Order_By | null | undefined;
5723
+ user_group_id?: Order_By | null | undefined;
5724
+ };
5725
+ /** order by min() on columns of table "user_group_members" */
5726
+ type User_Group_Members_Min_Order_By = {
5727
+ promptql_user_id?: Order_By | null | undefined;
5728
+ user_group_id?: Order_By | null | undefined;
5729
+ };
5730
+ /** order by aggregate values of table "user_groups" */
5731
+ type User_Groups_Aggregate_Order_By = {
5732
+ count?: Order_By | null | undefined;
5733
+ max?: User_Groups_Max_Order_By | null | undefined;
5734
+ min?: User_Groups_Min_Order_By | null | undefined;
5735
+ };
5736
+ /** Boolean expression to filter rows from the table "user_groups". All fields are combined with a logical 'AND'. */
5737
+ type User_Groups_Bool_Exp = {
5738
+ _and?: Array<User_Groups_Bool_Exp> | null | undefined;
5739
+ _not?: User_Groups_Bool_Exp | null | undefined;
5740
+ _or?: Array<User_Groups_Bool_Exp> | null | undefined;
5741
+ created_at?: Timestamptz_Comparison_Exp | null | undefined;
5742
+ description?: String_Comparison_Exp | null | undefined;
5743
+ name?: String_Comparison_Exp | null | undefined;
5744
+ project_id?: Uuid_Comparison_Exp | null | undefined;
5745
+ user_group_id?: Uuid_Comparison_Exp | null | undefined;
5746
+ user_group_members?: User_Group_Members_Bool_Exp | null | undefined;
5747
+ };
5748
+ /** order by max() on columns of table "user_groups" */
5749
+ type User_Groups_Max_Order_By = {
5750
+ created_at?: Order_By | null | undefined;
5751
+ description?: Order_By | null | undefined;
5752
+ name?: Order_By | null | undefined;
5753
+ project_id?: Order_By | null | undefined;
5754
+ user_group_id?: Order_By | null | undefined;
5755
+ };
5756
+ /** order by min() on columns of table "user_groups" */
5757
+ type User_Groups_Min_Order_By = {
5758
+ created_at?: Order_By | null | undefined;
5759
+ description?: Order_By | null | undefined;
5760
+ name?: Order_By | null | undefined;
5761
+ project_id?: Order_By | null | undefined;
5762
+ user_group_id?: Order_By | null | undefined;
5763
+ };
5764
+ /** order by aggregate values of table "user_preferences" */
5765
+ type User_Preferences_Aggregate_Order_By = {
5766
+ count?: Order_By | null | undefined;
5767
+ max?: User_Preferences_Max_Order_By | null | undefined;
5768
+ min?: User_Preferences_Min_Order_By | null | undefined;
5769
+ };
5770
+ /** Boolean expression to filter rows from the table "user_preferences". All fields are combined with a logical 'AND'. */
5771
+ type User_Preferences_Bool_Exp = {
5772
+ _and?: Array<User_Preferences_Bool_Exp> | null | undefined;
5773
+ _not?: User_Preferences_Bool_Exp | null | undefined;
5774
+ _or?: Array<User_Preferences_Bool_Exp> | null | undefined;
5775
+ created_at?: Timestamptz_Comparison_Exp | null | undefined;
5776
+ custom_instructions?: String_Comparison_Exp | null | undefined;
5777
+ desktop_notification_preference?: Notification_Preference_Enum_Enum_Comparison_Exp | null | undefined;
5778
+ desktop_notification_preference_enum?: Notification_Preference_Enum_Bool_Exp | null | undefined;
5779
+ feature_flags?: Jsonb_Comparison_Exp | null | undefined;
5780
+ mobile_notification_preference?: Notification_Preference_Enum_Enum_Comparison_Exp | null | undefined;
5781
+ mobile_notification_preference_enum?: Notification_Preference_Enum_Bool_Exp | null | undefined;
5782
+ onboarding_popup_shown?: Boolean_Comparison_Exp | null | undefined;
5783
+ promptql_user?: Promptql_Users_Bool_Exp | null | undefined;
5784
+ promptql_user_id?: Uuid_Comparison_Exp | null | undefined;
5785
+ slack_notification_preference?: Notification_Preference_Enum_Enum_Comparison_Exp | null | undefined;
5786
+ slack_notification_preference_enum?: Notification_Preference_Enum_Bool_Exp | null | undefined;
5787
+ updated_at?: Timestamptz_Comparison_Exp | null | undefined;
5788
+ };
5789
+ /** order by max() on columns of table "user_preferences" */
5790
+ type User_Preferences_Max_Order_By = {
5791
+ created_at?: Order_By | null | undefined;
5792
+ custom_instructions?: Order_By | null | undefined;
5793
+ promptql_user_id?: Order_By | null | undefined;
5794
+ updated_at?: Order_By | null | undefined;
5795
+ };
5796
+ /** order by min() on columns of table "user_preferences" */
5797
+ type User_Preferences_Min_Order_By = {
5798
+ created_at?: Order_By | null | undefined;
5799
+ custom_instructions?: Order_By | null | undefined;
5800
+ promptql_user_id?: Order_By | null | undefined;
5801
+ updated_at?: Order_By | null | undefined;
5802
+ };
5803
+ /** Ordering options when selecting data from "user_preferences". */
5804
+ type User_Preferences_Order_By = {
5805
+ created_at?: Order_By | null | undefined;
5806
+ custom_instructions?: Order_By | null | undefined;
5807
+ desktop_notification_preference?: Order_By | null | undefined;
5808
+ desktop_notification_preference_enum?: Notification_Preference_Enum_Order_By | null | undefined;
5809
+ feature_flags?: Order_By | null | undefined;
5810
+ mobile_notification_preference?: Order_By | null | undefined;
5811
+ mobile_notification_preference_enum?: Notification_Preference_Enum_Order_By | null | undefined;
5812
+ onboarding_popup_shown?: Order_By | null | undefined;
5813
+ promptql_user?: Promptql_Users_Order_By | null | undefined;
5814
+ promptql_user_id?: Order_By | null | undefined;
5815
+ slack_notification_preference?: Order_By | null | undefined;
5816
+ slack_notification_preference_enum?: Notification_Preference_Enum_Order_By | null | undefined;
5817
+ updated_at?: Order_By | null | undefined;
5818
+ };
5819
+ /** Boolean expression to filter rows from the table "user_room_activity". All fields are combined with a logical 'AND'. */
5820
+ type User_Room_Activity_Bool_Exp = {
5821
+ _and?: Array<User_Room_Activity_Bool_Exp> | null | undefined;
5822
+ _not?: User_Room_Activity_Bool_Exp | null | undefined;
5823
+ _or?: Array<User_Room_Activity_Bool_Exp> | null | undefined;
5824
+ created_at?: Timestamptz_Comparison_Exp | null | undefined;
5825
+ last_seen_event_id?: Bigint_Comparison_Exp | null | undefined;
5826
+ promptql_user?: Promptql_Users_Bool_Exp | null | undefined;
5827
+ promptql_user_id?: Uuid_Comparison_Exp | null | undefined;
5828
+ room?: Rooms_Bool_Exp | null | undefined;
5829
+ room_id?: Uuid_Comparison_Exp | null | undefined;
5830
+ updated_at?: Timestamptz_Comparison_Exp | null | undefined;
5831
+ };
5832
+ /** Ordering options when selecting data from "user_room_activity". */
5833
+ type User_Room_Activity_Order_By = {
5834
+ created_at?: Order_By | null | undefined;
5835
+ last_seen_event_id?: Order_By | null | undefined;
5836
+ promptql_user?: Promptql_Users_Order_By | null | undefined;
5837
+ promptql_user_id?: Order_By | null | undefined;
5838
+ room?: Rooms_Order_By | null | undefined;
5839
+ room_id?: Order_By | null | undefined;
5840
+ updated_at?: Order_By | null | undefined;
5841
+ };
5842
+ /** order by aggregate values of table "user_slack_notification_preferences" */
5843
+ type User_Slack_Notification_Preferences_Aggregate_Order_By = {
5844
+ count?: Order_By | null | undefined;
5845
+ max?: User_Slack_Notification_Preferences_Max_Order_By | null | undefined;
5846
+ min?: User_Slack_Notification_Preferences_Min_Order_By | null | undefined;
5847
+ };
5848
+ /** Boolean expression to filter rows from the table "user_slack_notification_preferences". All fields are combined with a logical 'AND'. */
5849
+ type User_Slack_Notification_Preferences_Bool_Exp = {
5850
+ _and?: Array<User_Slack_Notification_Preferences_Bool_Exp> | null | undefined;
5851
+ _not?: User_Slack_Notification_Preferences_Bool_Exp | null | undefined;
5852
+ _or?: Array<User_Slack_Notification_Preferences_Bool_Exp> | null | undefined;
5853
+ notification_preference_enum?: Notification_Preference_Enum_Bool_Exp | null | undefined;
5854
+ preference?: Notification_Preference_Enum_Enum_Comparison_Exp | null | undefined;
5855
+ promptql_user?: Promptql_Users_Bool_Exp | null | undefined;
5856
+ promptql_user_id?: Uuid_Comparison_Exp | null | undefined;
5857
+ };
5858
+ /** order by max() on columns of table "user_slack_notification_preferences" */
5859
+ type User_Slack_Notification_Preferences_Max_Order_By = {
5860
+ promptql_user_id?: Order_By | null | undefined;
5861
+ };
5862
+ /** order by min() on columns of table "user_slack_notification_preferences" */
5863
+ type User_Slack_Notification_Preferences_Min_Order_By = {
5864
+ promptql_user_id?: Order_By | null | undefined;
5865
+ };
5866
+ /** Ordering options when selecting data from "user_slack_notification_preferences". */
5867
+ type User_Slack_Notification_Preferences_Order_By = {
5868
+ notification_preference_enum?: Notification_Preference_Enum_Order_By | null | undefined;
5869
+ preference?: Order_By | null | undefined;
5870
+ promptql_user?: Promptql_Users_Order_By | null | undefined;
5871
+ promptql_user_id?: Order_By | null | undefined;
5872
+ };
5873
+ /** Boolean expression to compare columns of type "uuid". All fields are combined with logical 'AND'. */
5874
+ type Uuid_Comparison_Exp = {
5875
+ _eq?: string | null | undefined;
5876
+ _gt?: string | null | undefined;
5877
+ _gte?: string | null | undefined;
5878
+ _in?: Array<string> | null | undefined;
5879
+ _is_null?: boolean | null | undefined;
5880
+ _lt?: string | null | undefined;
5881
+ _lte?: string | null | undefined;
5882
+ _neq?: string | null | undefined;
5883
+ _nin?: Array<string> | null | undefined;
5884
+ };
5885
+ type RoomFragment = {
5886
+ room_id: string;
5887
+ name: string;
5888
+ description: string | null;
5889
+ project_id: string;
5890
+ visibility: string;
5891
+ user_id: string;
5892
+ created_at: string;
5893
+ updated_at: string;
5894
+ };
5895
+ type ThreadFragment = {
5896
+ thread_id: string;
5897
+ build_id: string | null;
5898
+ title: string | null;
5899
+ relevant_event_count: number | null;
5900
+ visibility: Thread_Visibility_Enum_Enum;
5901
+ created_at: string;
5902
+ updated_at: string;
5903
+ user: {
5904
+ promptql_user_id: string;
5905
+ display_name: string;
5906
+ } | null;
5907
+ };
5908
+ type ThreadEventFragment = {
5909
+ thread_event_id: string;
5910
+ event_data: any;
5911
+ created_at: string;
5912
+ user: {
5913
+ promptql_user_id: string;
5914
+ display_name: string;
5915
+ } | null;
5916
+ };
5917
+ type CancelAgentMessageMutationVariables = Exact<{
5918
+ threadId: string;
5919
+ messageId: string;
5920
+ }>;
5921
+ type CreateRoomMutationVariables = Exact<{
5922
+ name: string;
5923
+ visibility?: string | null | undefined;
5924
+ description?: string | null | undefined;
5925
+ }>;
5926
+ type SendThreadMessageMutationVariables = Exact<{
5927
+ message: string;
5928
+ timezone: string;
5929
+ threadId: string;
5930
+ buildFqdn?: string | null | undefined;
5931
+ uploads?: Array<UserUploadInput> | UserUploadInput | null | undefined;
5932
+ }>;
5933
+ type SendThreadMessageMutation = {
5934
+ send_thread_message: {
5935
+ thread_event_id: string;
5936
+ created_at: string;
5937
+ } | null;
5938
+ };
5939
+ type StartThreadMutationVariables = Exact<{
5940
+ message: string;
5941
+ projectId: string;
5942
+ timezone: string;
5943
+ buildId?: string | null | undefined;
5944
+ buildFqdn?: string | null | undefined;
5945
+ roomId?: string | null | undefined;
5946
+ uploads?: Array<UserUploadInput> | UserUploadInput | null | undefined;
5947
+ visibility?: string | null | undefined;
5948
+ createdFrom?: string | null | undefined;
5949
+ }>;
5950
+ type StartThreadMutation = {
5951
+ start_thread: {
5952
+ thread_id: string;
5953
+ title: string | null;
5954
+ created_at: string;
5955
+ updated_at: string;
5956
+ thread_events: Array<{
5957
+ created_at: string;
5958
+ thread_event_id: string;
5959
+ } | null>;
5960
+ } | null;
5961
+ };
5962
+ type GetRoomsQueryVariables = Exact<{
5963
+ where: Rooms_Bool_Exp;
5964
+ order_by?: Array<Rooms_Order_By> | Rooms_Order_By | null | undefined;
5965
+ offset?: number | null | undefined;
5966
+ limit?: number | null | undefined;
5967
+ }>;
5968
+ type GetThreadsQueryVariables = Exact<{
5969
+ where: Threads_V2_Bool_Exp;
5970
+ limit?: number | null | undefined;
5971
+ offset?: number | null | undefined;
5972
+ order_by?: Array<Threads_V2_Order_By> | Threads_V2_Order_By | null | undefined;
5973
+ }>;
5974
+ type GetThreadAndEventsByIdQuery = {
5975
+ threads_v2_by_pk: {
5976
+ thread_id: string;
5977
+ build_id: string | null;
5978
+ title: string | null;
5979
+ relevant_event_count: number | null;
5980
+ visibility: Thread_Visibility_Enum_Enum;
5981
+ created_at: string;
5982
+ updated_at: string;
5983
+ thread_events: Array<{
5984
+ thread_event_id: string;
5985
+ event_data: any;
5986
+ created_at: string;
5987
+ user: {
5988
+ promptql_user_id: string;
5989
+ display_name: string;
5990
+ } | null;
5991
+ }>;
5992
+ user: {
5993
+ promptql_user_id: string;
5994
+ display_name: string;
5995
+ } | null;
5996
+ } | null;
5997
+ };
5998
+ type SearchWikiPagesQueryVariables = Exact<{
5999
+ query: string;
6000
+ offset?: number | null | undefined;
6001
+ limit?: number | null | undefined;
6002
+ }>;
6003
+
3113
6004
  /**
3114
6005
  * The default user agent of the PromptQL TypeScript SDK.
3115
6006
  */
@@ -3119,18 +6010,13 @@ declare const USER_AGENT = "PromptQL TypeScript SDK";
3119
6010
  */
3120
6011
  type PromptQLSdkOptions = {
3121
6012
  /**
3122
- * Host of the auth service that is used for a custom self-hosted control plane only.
3123
- */
3124
- authHost?: string;
3125
- /**
3126
- * Host of the Hasura control plane.
6013
+ * Base URL of the PromptQL API.
3127
6014
  */
3128
- controlPlaneHost?: string;
6015
+ baseUrl?: string;
3129
6016
  /**
3130
- * Service account token of the PromptQL project.
3131
- * Check out Hasura docs https://hasura.io/docs/3.0/project-configuration/project-management/service-accounts/#how-to-create-service-account to know how to create a token.
6017
+ * Access token of the PromptQL project.
3132
6018
  */
3133
- serviceAccountToken: string;
6019
+ accessToken: string;
3134
6020
  /**
3135
6021
  * A function to use instead of calling the Fetch API directly when sending HTTP requests to your GraphQL endpoint. The function must conform to the signature of fetch.
3136
6022
  * By default, the Fetch API is used unless it isn't available in your runtime environment.
@@ -3325,7 +6211,6 @@ type ProjectInfoOutput = {
3325
6211
  projectId: string;
3326
6212
  projectName: string;
3327
6213
  projectHost: string;
3328
- promptqlGraphQLUrl: string;
3329
6214
  promptqlConsoleUrl: string;
3330
6215
  };
3331
6216
 
@@ -3353,6 +6238,10 @@ declare function createRoom(client: ApolloClient, variables: CreateRoomArguments
3353
6238
  declare const ROOM_NAME_REGEX: RegExp;
3354
6239
  declare const validateRoomName: (value: string) => string | null;
3355
6240
 
6241
+ /**
6242
+ * Thread detail includes the information of a thread and its events.
6243
+ */
6244
+ type ThreadDetail = NonNullable<GetThreadAndEventsByIdQuery["threads_v2_by_pk"]>;
3356
6245
  /**
3357
6246
  * List threads of the current project.The default limit is 10.
3358
6247
  */
@@ -3361,6 +6250,10 @@ declare function listThreads(client: ApolloClient, variables: GetThreadsQueryVar
3361
6250
  * Get a thread by ID.
3362
6251
  */
3363
6252
  declare function getThread(client: ApolloClient, threadId: string): Promise<ThreadFragment | null | undefined>;
6253
+ /**
6254
+ * Get a thread by ID.
6255
+ */
6256
+ declare function getThreadAndEvents(client: ApolloClient, threadId: string, options?: GetThreadEventOptions): Promise<ThreadDetail | null | undefined>;
3364
6257
  /**
3365
6258
  * Start a PromptQL thread.
3366
6259
  */
@@ -3376,7 +6269,7 @@ declare function sendThreadMessage(client: ApolloClient, variables: SendThreadMe
3376
6269
  /**
3377
6270
  * Cancel the running integration of the thread message in an existing thread.
3378
6271
  */
3379
- declare function cancelAgentMessage(client: ApolloClient, variables: CancelAgentMessageMutationVariables): Promise<ThreadEvent>;
6272
+ declare function cancelAgentMessage(client: ApolloClient, variables: CancelAgentMessageMutationVariables): Promise<string>;
3380
6273
  /**
3381
6274
  * Subscribe to events of a thread by ID. The subscription won't stop even if the interaction is completed.
3382
6275
  */
@@ -3485,16 +6378,12 @@ declare function deleteWikiPage(client: ApolloClient, id: string): Promise<strin
3485
6378
  * A low-level API class for PromptQL.
3486
6379
  */
3487
6380
  declare class PromptQLApi {
3488
- controlPlaneUrl: string;
3489
- options: PromptQLSdkOptions;
3490
- defaultTimezone: string;
3491
- private getAuthTokenFn;
6381
+ readonly options: PromptQLSdkOptions;
6382
+ readonly defaultTimezone: string;
6383
+ readonly client: ApolloClient;
6384
+ readonly wsClient: Client;
3492
6385
  private project;
3493
- private client;
3494
- private wsClient;
3495
6386
  constructor(options: PromptQLSdkOptions);
3496
- getAuthToken(): Promise<string>;
3497
- getGraphQLClient(): Promise<ApolloClient>;
3498
6387
  /**
3499
6388
  * Get the basic information of the current PromptQL project.
3500
6389
  */
@@ -3575,6 +6464,10 @@ declare class Thread {
3575
6464
  * Start a PromptQL thread.
3576
6465
  */
3577
6466
  start(variables: StartThreadArguments): Promise<StartThreadOutput>;
6467
+ /**
6468
+ * Get the thread and its events.
6469
+ */
6470
+ detail(threadId: string, options?: GetThreadEventOptions): Promise<ThreadDetail | null | undefined>;
3578
6471
  /**
3579
6472
  * Get all events of a thread.
3580
6473
  */
@@ -3586,7 +6479,7 @@ declare class Thread {
3586
6479
  /**
3587
6480
  * Cancel the running integration of the thread message in an existing thread.
3588
6481
  */
3589
- cancelAgentMessage(variables: CancelAgentMessageMutationVariables): Promise<ThreadEvent>;
6482
+ cancelAgentMessage(variables: CancelAgentMessageMutationVariables): Promise<string>;
3590
6483
  /**
3591
6484
  * Subscribe to events of a thread by ID. The subscription won't stop even if the interaction is completed.
3592
6485
  */
@@ -3654,8 +6547,7 @@ type IPromptQLSdk = InstanceType<typeof PromptQLSdk>;
3654
6547
 
3655
6548
  type ApolloClientOptions = {
3656
6549
  url: string;
3657
- headers?: Record<string, string>;
3658
- getAuthToken: () => Promise<string>;
6550
+ headers: Record<string, string> | (() => PromiseLike<Record<string, string>>);
3659
6551
  fetch?: typeof fetch;
3660
6552
  };
3661
6553
  declare const createApolloClient: (options: ApolloClientOptions) => {
@@ -3842,9 +6734,6 @@ declare function getAgentInteractionFinishedEvent(eventData: ThreadEvent$1): Int
3842
6734
  * Get the message_id from the thread event data.
3843
6735
  */
3844
6736
  declare function getThreadEventMessageId(event: ThreadEvent$1 | undefined): string | undefined;
3845
- /**
3846
- * Build PromptQL URL from fqdn.
3847
- */
3848
- declare function buildPromptQLUrl(fqdn: string): string;
6737
+ declare function buildAuthHeader(accessToken: string): Record<string, string>;
3849
6738
 
3850
- export { type AgentGeneratedResponse, type AgentLearningUpdate, type AgentLoopAction, type AgentLoopActionLegacy, type AgentLoopActionResult, type AgentLoopActionUpdate, type AgentLoopActionUpdateUnversioned, type AgentLoopActionUpdateVersioned, type AgentLoopTerminalAction, type AgentLoopUpdate, type AgentTrigger, type AgentUpdate, type AgentUpdateContent, type ApolloClientOptions, type ArtifactDataPreview, type ArtifactError, type ArtifactErrorV1, type ArtifactId, type ArtifactMetadata, type ArtifactReference, type ArtifactReference1, type ArtifactType, type ArtifactUpdate, type ArtifactUpdate1, type AssumptionFactCheck, type BuildError, type BuildErrorV1, type BuiltUi, type BuiltUi1, CancelAgentMessageMutationVariables, type CheckedAssumption, type CheckedTopic, type CodeBlock, type CodeError, type CodeErrorV1, type CodeExecutionComplete, type CodeOutputAnalysis, type CodeOutputAnalyzed, type ComponentResponse, type ComponentResponse1, type ComponentResponse2, type ComponentResponse3, type ComponentResponse4, type ComponentResponse5, type ConfidenceAnalysis, type ConfidenceAnalysisLlmUsage, type ConfidenceAnalysisUpdate, type ContextExplorerCompleted, type ContextExplorerStarted, type ContextExplorerUpdate, type CopyFileEntry, type CreateRoomArguments, type CreateWikiPageArgs, type DataArtifactUpdated, type DataArtifactUpdatedV1, type DecideNextStepsFields, type EventOfKind, type ExecuteProgramRequestData, type ExecuteProgramRequestProvenance, type ExternalKnowledgeExplorerAttempt, type ExternalKnowledgeExplorerAttempt1, type ExternalKnowledgeSummary, type FactSource, type FederatedWikiName, type GeneratedCode, type GeneratedFile, type GeneratedResponse, type GeneratedUiCode, type GetThreadEventOptions, GetThreadsQueryVariables, type IPromptQLSdk, type InteractionDecision, type InteractionDecisionAccept, type InteractionDecisionDecline, type InteractionDecisionUpdate, type InteractionFinishedEvent, type InteractionFinishedUpdate, type InteractionOutcome, type InteractionOutcomeStatus, type InteractionUpdate, type InternalError, type InternalErrorV1, type InternalUpdate, type InterruptedByTrigger, type KeysOfUnion, type LearningBlockId, type LearningSuggestion, type LearningSuggestionUpdate, type LearningSuggestionUpdateV1, type ListWikiPageArgs, type LlmResponse, type LlmUsage, type LlmUsageEvent, type LlmUsageEventV1, type MessageProcessingStarted, type MessageProcessingUpdate, type NeedsSupportUpdate, type OrchestratorUpdate, Order_By, type OutputEmitted, type OutputEmittedV1, type PipelineProgress, type PipelineProgressV1, type PipelineProgressV2, type PipelineRunStepDetails, type PipelineSourceState, type PlanGenerationStarted, type PlanStepGenerated, type PlanningDecisionCompleted, type PlanningDecisionPlanningRequired, type PlanningDecisionStarted, type PlanningDecisionUpdate, type ProgramExecuteOutcome, type ProgramExecuteUpdate, type ProgramExecutionTriggerInterruption, type ProgramId, type ProgramPackageName, type ProgramRunEvent, type ProgramRunSqlExecuteOutcome, type ProgramRunnerAction, type ProgrammerUpdate, type ProjectInfoOutput, PromptQLSdk, type PromptQLSdkOptions, type PromptQlUserId, type PythonRunStepDetails, ROOM_NAME_REGEX, type ResponseGenerationUpdate, type ResponseTruncation, RoomFragment, type RoomVisibilityType, type RunFinished, type RunFinishedOutcome, type RunFinishedV1, type RunProgramRequest, type RunSavedProgramRequest, type RunStarted, type RunStartedV1, type RunStepDetails, type RuntimeArtifactType, type SavedProgramRunnerUpdate, type SavedProgramRunnerUpdateV0, type ScheduledAgentTriggerEventId, type ScheduledAgentTriggerId, type ScheduledAgentTriggerPayload, type ScheduledAgentTriggerPayloadV1, type ScheduledAgentTriggerType, type SchemaContext, type SchemaExplored, type SchemaExplorerCompleted, type SchemaExplorerStarted, type SchemaExplorerUpdate, type SchemaTask, type SchemaTasksGenerationCompleted, type SchemaTasksGenerationStarted, type SchemaTasksGenerationUpdate, type SearchWikiPageItem, type SearchWikiPagesResult, type SendMessageToThreadArguments, type SendMessageToThreadOutput, SendThreadMessageMutationVariables, type ServerMetadata, type ShelfActionEvent, type ShelfSchemaName, type ShelfTransactionOpened, type ShelfTransactionOpenedV1, type ShelfTransactionSuspended, type ShelfTransactionSuspendedV1, type ShelfUpdate, type ShelfUpdateV1, type SkillType, type SocialFeedRatingLlmUsage, type SocialFeedRatingUpdate, type Span, type Sql, type SqlError, type SqlErrorType, type SqlErrorV1, type SqlExecuteCompleted, type SqlExecuteCompletedV1, type SqlExecuteOutcome, type SqlExecuteStarted, type SqlExecuteStartedV1, type SqlQueryId, type SqlRunStepDetails, type StartThreadArguments, StartThreadMutationVariables, type StartThreadOutput, type StartingOrchestrator, type StepExecutionFinished, type StepExecutionFinishedV1, type StepExecutionStarted, type StepExecutionStartedV1, type StepUpdate, type StreamThreadEventOptions, type TargetWikiPage, type TasksGenerated, type Teaching, type TeachingId, type ThreadEvent, type ThreadEvent$1 as ThreadEventData, ThreadFragment, type ThreadId, type TransactionId, type TzWrapper, USER_AGENT, type UiBuildFailure, type UiBuildRunStepDetails, type UiMetadata, type UiProgrammerUpdate, type UpdateWikiContentArgs, type UserCancel, type UserCancelEvent, type UserEventProvenance, type UserMessage, type UserMessageEvent, type UserUpload, type VersionedAgentUpdate, type VersionedOrUnversionedAgentUpdate, type Warning, type WikiAuditId, type WikiChange, type WikiContent, type WikiDelta, type WikiExplorerCompleted, type WikiExplorerStarted, type WikiExplorerUpdate, type WikiGenerationUpdate, type WikiInfoGenerated, type WikiLearningSuggestionUpdate, type WikiPageDetail, type WikiPageItem, type WikiPageNamespace, type WikiPagePreview, type WikiPageSearchResult, type WikiPageV1, type WikiSection, type WikiSelectionUpdate, type WikiTitle, buildPromptQLUrl, cancelAgentMessage, createApolloClient, createRoom, createWikiPage, deleteWikiPage, diffThreadEvents, downloadArtifactData, getAgentGeneratedResponse, getAgentInteractionDecisionAcceptInteractionEvent, getAgentInteractionDecisionDeclineInteractionEvent, getAgentInteractionFinishedEvent, getAgentMessageProcessingStartedEvent, getAgentOrchestratorContextExplorerCompletedEvent, getAgentOrchestratorContextExplorerStartedEvent, getAgentOrchestratorContextExplorerUpdateEvent, getAgentOrchestratorSchemaExplorerCodeExecutionCompleteEvent, getAgentOrchestratorSchemaExplorerCodeOutputAnalyzedEvent, getAgentOrchestratorSchemaExplorerCompletedEvent, getAgentOrchestratorSchemaExplorerGeneratedCodeEvent, getAgentOrchestratorSchemaExplorerSchemaExploredEvent, getAgentOrchestratorSchemaExplorerStartedEvent, getAgentOrchestratorSchemaExplorerUpdateEvent, getAgentOrchestratorSchemaTasksGeneratedEvent, getAgentOrchestratorSchemaTasksGenerationCompletedEvent, getAgentOrchestratorSchemaTasksGenerationStartedEvent, getAgentOrchestratorSchemaTasksGenerationUpdateEvent, getAgentOrchestratorStepProgrammerEvent, getAgentOrchestratorStepSavedProgramRunnerEvent, getAgentOrchestratorStepUiProgrammerEvent, getAgentOrchestratorStepUpdateEvent, getAgentOrchestratorUpdateEvent, getAgentOrchestratorWikiExplorerCompletedEvent, getAgentOrchestratorWikiExplorerStartedEvent, getAgentOrchestratorWikiExplorerUpdateEvent, getAgentOrchestratorWikiInfoGeneratedEvent, getAgentPlanGenerationStartedEvent, getAgentPlanStepGeneratedEvent, getAgentPlanningDecisionCompletedEvent, getAgentPlanningDecisionPlanningRequiredEvent, getAgentPlanningDecisionStartedEvent, getAgentPlanningDecisionUpdateEvent, getAgentStartingOrchestratorEvent, getArtifactMetadata, getThread, getThreadEventMessageId, getThreadEvents, getUserCancelEvent, getUserMessageEvent, getWikiPage, isInteractionAnalyzing, listArtifactMetadataByThreadId, listRooms, listThreads, listWikiPages, searchWikiPages, sendThreadMessage, startThread, streamThreadMessageEvents, subscribeThreadEvents, updateWikiPage, validateRoomName };
6739
+ export { type AgentGeneratedResponse, type AgentLearningUpdate, type AgentLoopAction, type AgentLoopActionLegacy, type AgentLoopActionResult, type AgentLoopActionUpdate, type AgentLoopActionUpdateUnversioned, type AgentLoopActionUpdateVersioned, type AgentLoopTerminalAction, type AgentLoopUpdate, type AgentTrigger, type AgentUpdate, type AgentUpdateContent, type ApolloClientOptions, type ArtifactDataPreview, type ArtifactError, type ArtifactErrorV1, type ArtifactId, type ArtifactMetadata, type ArtifactReference, type ArtifactReference1, type ArtifactType, type ArtifactUpdate, type ArtifactUpdate1, type AssumptionFactCheck, type BuildError, type BuildErrorV1, type BuiltUi, type BuiltUi1, type CancelAgentMessageMutationVariables, type CheckedAssumption, type CheckedTopic, type CodeBlock, type CodeError, type CodeErrorV1, type CodeExecutionComplete, type CodeOutputAnalysis, type CodeOutputAnalyzed, type ComponentResponse, type ComponentResponse1, type ComponentResponse2, type ComponentResponse3, type ComponentResponse4, type ComponentResponse5, type ConfidenceAnalysis, type ConfidenceAnalysisLlmUsage, type ConfidenceAnalysisUpdate, type ContextExplorerCompleted, type ContextExplorerStarted, type ContextExplorerUpdate, type CopyFileEntry, type CreateRoomArguments, type CreateWikiPageArgs, type DataArtifactUpdated, type DataArtifactUpdatedV1, type DecideNextStepsFields, type EventOfKind, type ExecuteProgramRequestData, type ExecuteProgramRequestProvenance, type ExternalKnowledgeExplorerAttempt, type ExternalKnowledgeExplorerAttempt1, type ExternalKnowledgeSummary, type FactSource, type FederatedWikiName, type GeneratedCode, type GeneratedFile, type GeneratedResponse, type GeneratedUiCode, type GetThreadEventOptions, type GetThreadsQueryVariables, type IPromptQLSdk, type InteractionDecision, type InteractionDecisionAccept, type InteractionDecisionDecline, type InteractionDecisionUpdate, type InteractionFinishedEvent, type InteractionFinishedUpdate, type InteractionOutcome, type InteractionOutcomeStatus, type InteractionUpdate, type InternalError, type InternalErrorV1, type InternalUpdate, type InterruptedByTrigger, type KeysOfUnion, type LearningBlockId, type LearningSuggestion, type LearningSuggestionUpdate, type LearningSuggestionUpdateV1, type ListWikiPageArgs, type LlmResponse, type LlmUsage, type LlmUsageEvent, type LlmUsageEventV1, type MessageProcessingStarted, type MessageProcessingUpdate, type NeedsSupportUpdate, type OrchestratorUpdate, type Order_By, type OutputEmitted, type OutputEmittedV1, type PipelineProgress, type PipelineProgressV1, type PipelineProgressV2, type PipelineRunStepDetails, type PipelineSourceState, type PlanGenerationStarted, type PlanStepGenerated, type PlanningDecisionCompleted, type PlanningDecisionPlanningRequired, type PlanningDecisionStarted, type PlanningDecisionUpdate, type ProgramExecuteOutcome, type ProgramExecuteUpdate, type ProgramExecutionTriggerInterruption, type ProgramId, type ProgramPackageName, type ProgramRunEvent, type ProgramRunSqlExecuteOutcome, type ProgramRunnerAction, type ProgrammerUpdate, type ProjectInfoOutput, PromptQLSdk, type PromptQLSdkOptions, type PromptQlUserId, type PythonRunStepDetails, ROOM_NAME_REGEX, type ResponseGenerationUpdate, type ResponseTruncation, type RoomFragment, type RoomVisibilityType, type RunFinished, type RunFinishedOutcome, type RunFinishedV1, type RunProgramRequest, type RunSavedProgramRequest, type RunStarted, type RunStartedV1, type RunStepDetails, type RuntimeArtifactType, type SavedProgramRunnerUpdate, type SavedProgramRunnerUpdateV0, type ScheduledAgentTriggerEventId, type ScheduledAgentTriggerId, type ScheduledAgentTriggerPayload, type ScheduledAgentTriggerPayloadV1, type ScheduledAgentTriggerType, type SchemaContext, type SchemaExplored, type SchemaExplorerCompleted, type SchemaExplorerStarted, type SchemaExplorerUpdate, type SchemaTask, type SchemaTasksGenerationCompleted, type SchemaTasksGenerationStarted, type SchemaTasksGenerationUpdate, type SearchWikiPageItem, type SearchWikiPagesResult, type SendMessageToThreadArguments, type SendMessageToThreadOutput, type SendThreadMessageMutationVariables, type ServerMetadata, type ShelfActionEvent, type ShelfSchemaName, type ShelfTransactionOpened, type ShelfTransactionOpenedV1, type ShelfTransactionSuspended, type ShelfTransactionSuspendedV1, type ShelfUpdate, type ShelfUpdateV1, type SkillType, type SocialFeedRatingLlmUsage, type SocialFeedRatingUpdate, type Span, type Sql, type SqlError, type SqlErrorType, type SqlErrorV1, type SqlExecuteCompleted, type SqlExecuteCompletedV1, type SqlExecuteOutcome, type SqlExecuteStarted, type SqlExecuteStartedV1, type SqlQueryId, type SqlRunStepDetails, type StartThreadArguments, type StartThreadMutationVariables, type StartThreadOutput, type StartingOrchestrator, type StepExecutionFinished, type StepExecutionFinishedV1, type StepExecutionStarted, type StepExecutionStartedV1, type StepUpdate, type StreamThreadEventOptions, type TargetWikiPage, type TasksGenerated, type Teaching, type TeachingId, type ThreadDetail, type ThreadEvent, type ThreadEvent$1 as ThreadEventData, type ThreadFragment, type ThreadId, type TransactionId, type TzWrapper, USER_AGENT, type UiBuildFailure, type UiBuildRunStepDetails, type UiMetadata, type UiProgrammerUpdate, type UpdateWikiContentArgs, type UserCancel, type UserCancelEvent, type UserEventProvenance, type UserMessage, type UserMessageEvent, type UserUpload, type VersionedAgentUpdate, type VersionedOrUnversionedAgentUpdate, type Warning, type WikiAuditId, type WikiChange, type WikiContent, type WikiDelta, type WikiExplorerCompleted, type WikiExplorerStarted, type WikiExplorerUpdate, type WikiGenerationUpdate, type WikiInfoGenerated, type WikiLearningSuggestionUpdate, type WikiPageDetail, type WikiPageItem, type WikiPageNamespace, type WikiPagePreview, type WikiPageSearchResult, type WikiPageV1, type WikiSection, type WikiSelectionUpdate, type WikiTitle, buildAuthHeader, cancelAgentMessage, createApolloClient, createRoom, createWikiPage, deleteWikiPage, diffThreadEvents, downloadArtifactData, getAgentGeneratedResponse, getAgentInteractionDecisionAcceptInteractionEvent, getAgentInteractionDecisionDeclineInteractionEvent, getAgentInteractionFinishedEvent, getAgentMessageProcessingStartedEvent, getAgentOrchestratorContextExplorerCompletedEvent, getAgentOrchestratorContextExplorerStartedEvent, getAgentOrchestratorContextExplorerUpdateEvent, getAgentOrchestratorSchemaExplorerCodeExecutionCompleteEvent, getAgentOrchestratorSchemaExplorerCodeOutputAnalyzedEvent, getAgentOrchestratorSchemaExplorerCompletedEvent, getAgentOrchestratorSchemaExplorerGeneratedCodeEvent, getAgentOrchestratorSchemaExplorerSchemaExploredEvent, getAgentOrchestratorSchemaExplorerStartedEvent, getAgentOrchestratorSchemaExplorerUpdateEvent, getAgentOrchestratorSchemaTasksGeneratedEvent, getAgentOrchestratorSchemaTasksGenerationCompletedEvent, getAgentOrchestratorSchemaTasksGenerationStartedEvent, getAgentOrchestratorSchemaTasksGenerationUpdateEvent, getAgentOrchestratorStepProgrammerEvent, getAgentOrchestratorStepSavedProgramRunnerEvent, getAgentOrchestratorStepUiProgrammerEvent, getAgentOrchestratorStepUpdateEvent, getAgentOrchestratorUpdateEvent, getAgentOrchestratorWikiExplorerCompletedEvent, getAgentOrchestratorWikiExplorerStartedEvent, getAgentOrchestratorWikiExplorerUpdateEvent, getAgentOrchestratorWikiInfoGeneratedEvent, getAgentPlanGenerationStartedEvent, getAgentPlanStepGeneratedEvent, getAgentPlanningDecisionCompletedEvent, getAgentPlanningDecisionPlanningRequiredEvent, getAgentPlanningDecisionStartedEvent, getAgentPlanningDecisionUpdateEvent, getAgentStartingOrchestratorEvent, getArtifactMetadata, getThread, getThreadAndEvents, getThreadEventMessageId, getThreadEvents, getUserCancelEvent, getUserMessageEvent, getWikiPage, isInteractionAnalyzing, listArtifactMetadataByThreadId, listRooms, listThreads, listWikiPages, searchWikiPages, sendThreadMessage, startThread, streamThreadMessageEvents, subscribeThreadEvents, updateWikiPage, validateRoomName };