@hasura/promptql 2.0.0-alpha.34 → 2.0.0-alpha.36

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.
@@ -1,5 +1,5 @@
1
1
  import { GraphQLError } from 'graphql';
2
- import { E as EnrichTokenOutput } from '../graphql-BcfHC50n.mjs';
2
+ import { E as EnrichTokenOutput } from '../graphql-Drrif9Kc.mjs';
3
3
 
4
4
  /**
5
5
  * Constructor options for a PromptQL authenticator.
@@ -1,5 +1,5 @@
1
1
  import { GraphQLError } from 'graphql';
2
- import { E as EnrichTokenOutput } from '../graphql-BcfHC50n.js';
2
+ import { E as EnrichTokenOutput } from '../graphql-Drrif9Kc.js';
3
3
 
4
4
  /**
5
5
  * Constructor options for a PromptQL authenticator.
@@ -1 +1 @@
1
- "use strict";var c=Object.defineProperty;var k=Object.getOwnPropertyDescriptor;var T=Object.getOwnPropertyNames;var x=Object.prototype.hasOwnProperty;var y=(e,r)=>{for(var a in r)c(e,a,{get:r[a],enumerable:!0})},w=(e,r,a,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of T(r))!x.call(e,t)&&t!==a&&c(e,t,{get:()=>r[t],enumerable:!(o=k(r,t))||o.enumerable});return e};var g=e=>w(c({},"__esModule",{value:!0}),e);var P={};y(P,{createPromptQLAuthTokenGenerator:()=>L,enrichToken:()=>f,isEnrichTokenMutationResponse:()=>p,isLuxAuthPromptQLTokenFailedResponse:()=>u,isLuxAuthPromptQLTokenSuccessResponse:()=>h});module.exports=g(P);function m(e){return e=e?e.trim():"",e?e[e.length-1]==="/"?e.slice(0,e.length-1):e:""}function u(e){return e!=null&&typeof e=="object"&&"status"in e&&e.status==="failure"}function h(e){return e!=null&&typeof e=="object"&&"status"in e&&e.status==="success"&&"token"in e}function p(e){return e!=null&&typeof e=="object"&&("data"in e&&!!e.data&&typeof e.data=="object"&&"enrich_token"in e.data&&!!e.data.enrich_token&&typeof e.data.enrich_token=="object"&&"userDirectoryJWT"in e.data.enrich_token||"errors"in e&&Array.isArray(e.errors))}function L(e){let a=`${m(e.authHost)||"https://auth.pro.hasura.io"}/ddn/promptql/token`,o={token:"",expiry:new Date(0)},t=e.fetch||fetch,i=async()=>{let n=await t(a,{method:"POST",headers:e.headers});switch(n.status){case 200:{let s=await n.json();if(h(s))return s;throw new Error("malformed token response")}case 401:{let s=await n.json();throw u(s)?new Error(s?.error||n.statusText):new Error(n.statusText)}default:{let s=await n.text();throw new Error(s)}}};return async()=>{if(o.expiry.getTime()<=Date.now()+1e3){let n=await i(),s=await f(e.promptqlGraphQLUrl,n.token,e.projectId,t);o.token=s;let d=new Date(n.expiry);if(Number.isNaN(d.getTime())){let l=new Date;l.setHours(1),o.expiry=l}else o.expiry=d}return o.token}}var f=async(e,r,a,o=fetch)=>{let t=await o(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:"mutation EnrichToken($luxJWT: String!, $projectId: uuid) { enrich_token(luxJWT: $luxJWT, projectId: $projectId) { userDirectoryJWT }}",variables:{luxJWT:r,projectId:a},operationName:"EnrichToken"})});switch(t.status){case 200:{let i=await t.json();if(!p(i)||!i.data?.enrich_token?.userDirectoryJWT)throw new Error(`malformed promptql token response: ${JSON.stringify(i)}`);return i.data.enrich_token.userDirectoryJWT}default:{let i=await t.text();throw new Error(i)}}};0&&(module.exports={createPromptQLAuthTokenGenerator,enrichToken,isEnrichTokenMutationResponse,isLuxAuthPromptQLTokenFailedResponse,isLuxAuthPromptQLTokenSuccessResponse});
1
+ "use strict";var c=Object.defineProperty;var k=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var T=Object.prototype.hasOwnProperty;var y=(e,r)=>{for(var a in r)c(e,a,{get:r[a],enumerable:!0})},w=(e,r,a,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of x(r))!T.call(e,t)&&t!==a&&c(e,t,{get:()=>r[t],enumerable:!(o=k(r,t))||o.enumerable});return e};var g=e=>w(c({},"__esModule",{value:!0}),e);var A={};y(A,{createPromptQLAuthTokenGenerator:()=>L,enrichToken:()=>m,isEnrichTokenMutationResponse:()=>p,isLuxAuthPromptQLTokenFailedResponse:()=>u,isLuxAuthPromptQLTokenSuccessResponse:()=>h});module.exports=g(A);function f(e){return e=e?e.trim():"",e?e[e.length-1]==="/"?e.slice(0,e.length-1):e:""}function u(e){return e!=null&&typeof e=="object"&&"status"in e&&e.status==="failure"}function h(e){return e!=null&&typeof e=="object"&&"status"in e&&e.status==="success"&&"token"in e}function p(e){return e!=null&&typeof e=="object"&&("data"in e&&!!e.data&&typeof e.data=="object"&&"enrich_token"in e.data&&!!e.data.enrich_token&&typeof e.data.enrich_token=="object"&&"userDirectoryJWT"in e.data.enrich_token||"errors"in e&&Array.isArray(e.errors))}function L(e){let a=`${f(e.authHost)||"https://auth.pro.hasura.io"}/ddn/promptql/token`,o={token:"",expiry:new Date(0)},t=e.fetch||fetch,i=async()=>{let n=await t(a,{method:"POST",headers:e.headers});switch(n.status){case 200:{let s=await n.json();if(h(s))return s;throw new Error("malformed token response")}case 401:{let s=await n.json();throw u(s)?new Error(s?.error||n.statusText):new Error(n.statusText)}default:{let s=await n.text();throw new Error(s)}}};return async()=>{if(o.expiry.getTime()<=Date.now()+1e3){let n=await i(),s=await m(e.promptqlGraphQLUrl,n.token,e.projectId,t);o.token=s;let d=new Date(n.expiry);if(Number.isNaN(d.getTime())){let l=new Date;l.setHours(1),o.expiry=l}else o.expiry=d}return o.token}}var m=async(e,r,a,o=fetch)=>{let t=await o(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:"mutation EnrichToken($luxJWT: String!, $projectId: uuid) { enrich_token(luxJWT: $luxJWT, projectId: $projectId) { userDirectoryJWT }}",variables:{luxJWT:r,projectId:a},operationName:"EnrichToken"})});switch(t.status){case 200:{let i=await t.json();if(!p(i)||!i.data?.enrich_token?.userDirectoryJWT)throw new Error(`malformed promptql token response: ${JSON.stringify(i)}`);return i.data.enrich_token.userDirectoryJWT}default:{let i=await t.text();throw new Error(i)}}};0&&(module.exports={createPromptQLAuthTokenGenerator,enrichToken,isEnrichTokenMutationResponse,isLuxAuthPromptQLTokenFailedResponse,isLuxAuthPromptQLTokenSuccessResponse});
@@ -1 +1 @@
1
- import{c as a,d as b,e as c,f as d,g as e}from"../chunk-YCHA4U67.mjs";export{d as createPromptQLAuthTokenGenerator,e as enrichToken,c as isEnrichTokenMutationResponse,a as isLuxAuthPromptQLTokenFailedResponse,b as isLuxAuthPromptQLTokenSuccessResponse};
1
+ import{d as a,e as b,f as c,g as d,h as e}from"../chunk-JCZJQNYI.mjs";export{d as createPromptQLAuthTokenGenerator,e as enrichToken,c as isEnrichTokenMutationResponse,a as isLuxAuthPromptQLTokenFailedResponse,b as isLuxAuthPromptQLTokenSuccessResponse};
@@ -0,0 +1 @@
1
+ var m=/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;function h(e){return e=e?e.trim():"",e?e[e.length-1]==="/"?e.slice(0,e.length-1):e:""}function k(e){if(e==null)return null;try{Number.parseInt(e)}catch{throw new Error("invalid threadEventId")}return e}function p(e){return e!=null&&typeof e=="object"&&"status"in e&&e.status==="failure"}function d(e){return e!=null&&typeof e=="object"&&"status"in e&&e.status==="success"&&"token"in e}function l(e){return e!=null&&typeof e=="object"&&("data"in e&&!!e.data&&typeof e.data=="object"&&"enrich_token"in e.data&&!!e.data.enrich_token&&typeof e.data.enrich_token=="object"&&"userDirectoryJWT"in e.data.enrich_token||"errors"in e&&Array.isArray(e.errors))}function g(e){let a=`${h(e.authHost)||"https://auth.pro.hasura.io"}/ddn/promptql/token`,n={token:"",expiry:new Date(0)},s=e.fetch||fetch,o=async()=>{let r=await s(a,{method:"POST",headers:e.headers});switch(r.status){case 200:{let t=await r.json();if(d(t))return t;throw new Error("malformed token response")}case 401:{let t=await r.json();throw p(t)?new Error(t?.error||r.statusText):new Error(r.statusText)}default:{let t=await r.text();throw new Error(t)}}};return async()=>{if(n.expiry.getTime()<=Date.now()+1e3){let r=await o(),t=await f(e.promptqlGraphQLUrl,r.token,e.projectId,s);n.token=t;let c=new Date(r.expiry);if(Number.isNaN(c.getTime())){let u=new Date;u.setHours(1),n.expiry=u}else n.expiry=c}return n.token}}var f=async(e,i,a,n=fetch)=>{let s=await n(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:"mutation EnrichToken($luxJWT: String!, $projectId: uuid) { enrich_token(luxJWT: $luxJWT, projectId: $projectId) { userDirectoryJWT }}",variables:{luxJWT:i,projectId:a},operationName:"EnrichToken"})});switch(s.status){case 200:{let o=await s.json();if(!l(o)||!o.data?.enrich_token?.userDirectoryJWT)throw new Error(`malformed promptql token response: ${JSON.stringify(o)}`);return o.data.enrich_token.userDirectoryJWT}default:{let o=await s.text();throw new Error(o)}}};export{m as a,h as b,k as c,p as d,d as e,l as f,g,f as h};
@@ -955,8 +955,8 @@ type Promptql_Users_Bool_Exp = {
955
955
  slack_info?: InputMaybe<Slack_Info_Bool_Exp>;
956
956
  starred_artifacts?: InputMaybe<Starred_Artifacts_Bool_Exp>;
957
957
  starred_threads?: InputMaybe<Starred_Threads_Bool_Exp>;
958
- thread_participants_typing?: InputMaybe<Thread_Participants_Typing_Bool_Exp>;
959
- thread_participants_typing_aggregate?: InputMaybe<Thread_Participants_Typing_Aggregate_Bool_Exp>;
958
+ thread_user_typing?: InputMaybe<Thread_User_Typing_Bool_Exp>;
959
+ thread_user_typing_aggregate?: InputMaybe<Thread_User_Typing_Aggregate_Bool_Exp>;
960
960
  updated_at?: InputMaybe<Timestamptz_Comparison_Exp>;
961
961
  user_group_members?: InputMaybe<User_Group_Members_Bool_Exp>;
962
962
  user_preference?: InputMaybe<User_Preferences_Bool_Exp>;
@@ -1000,7 +1000,7 @@ type Promptql_Users_Order_By = {
1000
1000
  slack_info?: InputMaybe<Slack_Info_Order_By>;
1001
1001
  starred_artifacts_aggregate?: InputMaybe<Starred_Artifacts_Aggregate_Order_By>;
1002
1002
  starred_threads_aggregate?: InputMaybe<Starred_Threads_Aggregate_Order_By>;
1003
- thread_participants_typing_aggregate?: InputMaybe<Thread_Participants_Typing_Aggregate_Order_By>;
1003
+ thread_user_typing_aggregate?: InputMaybe<Thread_User_Typing_Aggregate_Order_By>;
1004
1004
  updated_at?: InputMaybe<Order_By>;
1005
1005
  user_group_members_aggregate?: InputMaybe<User_Group_Members_Aggregate_Order_By>;
1006
1006
  user_preference?: InputMaybe<User_Preferences_Order_By>;
@@ -2091,7 +2091,7 @@ type Thread_Participants_Bool_Exp = {
2091
2091
  thread_participant_activities?: InputMaybe<Thread_Participant_Activity_Bool_Exp>;
2092
2092
  thread_participant_activities_aggregate?: InputMaybe<Thread_Participant_Activity_Aggregate_Bool_Exp>;
2093
2093
  threads_v2?: InputMaybe<Threads_V2_Bool_Exp>;
2094
- typing_indicator?: InputMaybe<Thread_Participants_Typing_Bool_Exp>;
2094
+ typing_indicator?: InputMaybe<Thread_User_Typing_Bool_Exp>;
2095
2095
  updated_at?: InputMaybe<Timestamptz_Comparison_Exp>;
2096
2096
  };
2097
2097
  /** order by max() on columns of table "thread_participants" */
@@ -2164,53 +2164,6 @@ type Thread_Participants_Sum_Order_By = {
2164
2164
  last_seen_event_id?: InputMaybe<Order_By>;
2165
2165
  latest_relevant_event_id?: InputMaybe<Order_By>;
2166
2166
  };
2167
- type Thread_Participants_Typing_Aggregate_Bool_Exp = {
2168
- count?: InputMaybe<Thread_Participants_Typing_Aggregate_Bool_Exp_Count>;
2169
- };
2170
- type Thread_Participants_Typing_Aggregate_Bool_Exp_Count = {
2171
- arguments?: InputMaybe<Array<Thread_Participants_Typing_Select_Column>>;
2172
- distinct?: InputMaybe<Scalars['Boolean']['input']>;
2173
- filter?: InputMaybe<Thread_Participants_Typing_Bool_Exp>;
2174
- predicate: Int_Comparison_Exp;
2175
- };
2176
- /** order by aggregate values of table "thread_participants_typing" */
2177
- type Thread_Participants_Typing_Aggregate_Order_By = {
2178
- count?: InputMaybe<Order_By>;
2179
- max?: InputMaybe<Thread_Participants_Typing_Max_Order_By>;
2180
- min?: InputMaybe<Thread_Participants_Typing_Min_Order_By>;
2181
- };
2182
- /** Boolean expression to filter rows from the table "thread_participants_typing". All fields are combined with a logical 'AND'. */
2183
- type Thread_Participants_Typing_Bool_Exp = {
2184
- _and?: InputMaybe<Array<Thread_Participants_Typing_Bool_Exp>>;
2185
- _not?: InputMaybe<Thread_Participants_Typing_Bool_Exp>;
2186
- _or?: InputMaybe<Array<Thread_Participants_Typing_Bool_Exp>>;
2187
- last_typing_ts?: InputMaybe<Timestamptz_Comparison_Exp>;
2188
- promptql_user_id?: InputMaybe<Uuid_Comparison_Exp>;
2189
- thread?: InputMaybe<Threads_V2_Bool_Exp>;
2190
- thread_id?: InputMaybe<Uuid_Comparison_Exp>;
2191
- thread_participant?: InputMaybe<Thread_Participants_Bool_Exp>;
2192
- user?: InputMaybe<Promptql_Users_Bool_Exp>;
2193
- };
2194
- /** order by max() on columns of table "thread_participants_typing" */
2195
- type Thread_Participants_Typing_Max_Order_By = {
2196
- last_typing_ts?: InputMaybe<Order_By>;
2197
- promptql_user_id?: InputMaybe<Order_By>;
2198
- thread_id?: InputMaybe<Order_By>;
2199
- };
2200
- /** order by min() on columns of table "thread_participants_typing" */
2201
- type Thread_Participants_Typing_Min_Order_By = {
2202
- last_typing_ts?: InputMaybe<Order_By>;
2203
- promptql_user_id?: InputMaybe<Order_By>;
2204
- thread_id?: InputMaybe<Order_By>;
2205
- };
2206
- /** select columns of table "thread_participants_typing" */
2207
- type Thread_Participants_Typing_Select_Column =
2208
- /** column name */
2209
- 'last_typing_ts'
2210
- /** column name */
2211
- | 'promptql_user_id'
2212
- /** column name */
2213
- | 'thread_id';
2214
2167
  /** order by var_pop() on columns of table "thread_participants" */
2215
2168
  type Thread_Participants_Var_Pop_Order_By = {
2216
2169
  last_seen_event_id?: InputMaybe<Order_By>;
@@ -2251,6 +2204,53 @@ type Thread_Taught_By_Result_Min_Order_By = {
2251
2204
  teachings?: InputMaybe<Order_By>;
2252
2205
  user_id?: InputMaybe<Order_By>;
2253
2206
  };
2207
+ type Thread_User_Typing_Aggregate_Bool_Exp = {
2208
+ count?: InputMaybe<Thread_User_Typing_Aggregate_Bool_Exp_Count>;
2209
+ };
2210
+ type Thread_User_Typing_Aggregate_Bool_Exp_Count = {
2211
+ arguments?: InputMaybe<Array<Thread_User_Typing_Select_Column>>;
2212
+ distinct?: InputMaybe<Scalars['Boolean']['input']>;
2213
+ filter?: InputMaybe<Thread_User_Typing_Bool_Exp>;
2214
+ predicate: Int_Comparison_Exp;
2215
+ };
2216
+ /** order by aggregate values of table "thread_user_typing" */
2217
+ type Thread_User_Typing_Aggregate_Order_By = {
2218
+ count?: InputMaybe<Order_By>;
2219
+ max?: InputMaybe<Thread_User_Typing_Max_Order_By>;
2220
+ min?: InputMaybe<Thread_User_Typing_Min_Order_By>;
2221
+ };
2222
+ /** Boolean expression to filter rows from the table "thread_user_typing". All fields are combined with a logical 'AND'. */
2223
+ type Thread_User_Typing_Bool_Exp = {
2224
+ _and?: InputMaybe<Array<Thread_User_Typing_Bool_Exp>>;
2225
+ _not?: InputMaybe<Thread_User_Typing_Bool_Exp>;
2226
+ _or?: InputMaybe<Array<Thread_User_Typing_Bool_Exp>>;
2227
+ last_typing_ts?: InputMaybe<Timestamptz_Comparison_Exp>;
2228
+ promptql_user_id?: InputMaybe<Uuid_Comparison_Exp>;
2229
+ thread?: InputMaybe<Threads_V2_Bool_Exp>;
2230
+ thread_id?: InputMaybe<Uuid_Comparison_Exp>;
2231
+ thread_participant?: InputMaybe<Thread_Participants_Bool_Exp>;
2232
+ user?: InputMaybe<Promptql_Users_Bool_Exp>;
2233
+ };
2234
+ /** order by max() on columns of table "thread_user_typing" */
2235
+ type Thread_User_Typing_Max_Order_By = {
2236
+ last_typing_ts?: InputMaybe<Order_By>;
2237
+ promptql_user_id?: InputMaybe<Order_By>;
2238
+ thread_id?: InputMaybe<Order_By>;
2239
+ };
2240
+ /** order by min() on columns of table "thread_user_typing" */
2241
+ type Thread_User_Typing_Min_Order_By = {
2242
+ last_typing_ts?: InputMaybe<Order_By>;
2243
+ promptql_user_id?: InputMaybe<Order_By>;
2244
+ thread_id?: InputMaybe<Order_By>;
2245
+ };
2246
+ /** select columns of table "thread_user_typing" */
2247
+ type Thread_User_Typing_Select_Column =
2248
+ /** column name */
2249
+ 'last_typing_ts'
2250
+ /** column name */
2251
+ | 'promptql_user_id'
2252
+ /** column name */
2253
+ | 'thread_id';
2254
2254
  type Thread_Visibility_Enum_Enum =
2255
2255
  /** Private threads are visible only to thread participants */
2256
2256
  'PRIVATE'
@@ -2331,8 +2331,8 @@ type Threads_V2_Bool_Exp = {
2331
2331
  thread_id?: InputMaybe<Uuid_Comparison_Exp>;
2332
2332
  thread_participants?: InputMaybe<Thread_Participants_Bool_Exp>;
2333
2333
  thread_participants_aggregate?: InputMaybe<Thread_Participants_Aggregate_Bool_Exp>;
2334
- thread_participants_typing?: InputMaybe<Thread_Participants_Typing_Bool_Exp>;
2335
- thread_participants_typing_aggregate?: InputMaybe<Thread_Participants_Typing_Aggregate_Bool_Exp>;
2334
+ thread_user_typing?: InputMaybe<Thread_User_Typing_Bool_Exp>;
2335
+ thread_user_typing_aggregate?: InputMaybe<Thread_User_Typing_Aggregate_Bool_Exp>;
2336
2336
  title?: InputMaybe<String_Comparison_Exp>;
2337
2337
  updated_at?: InputMaybe<Timestamptz_Comparison_Exp>;
2338
2338
  user?: InputMaybe<Promptql_Users_Bool_Exp>;
@@ -2409,7 +2409,7 @@ type Threads_V2_Order_By = {
2409
2409
  thread_feedback_aggregate?: InputMaybe<Thread_Feedback_Aggregate_Order_By>;
2410
2410
  thread_id?: InputMaybe<Order_By>;
2411
2411
  thread_participants_aggregate?: InputMaybe<Thread_Participants_Aggregate_Order_By>;
2412
- thread_participants_typing_aggregate?: InputMaybe<Thread_Participants_Typing_Aggregate_Order_By>;
2412
+ thread_user_typing_aggregate?: InputMaybe<Thread_User_Typing_Aggregate_Order_By>;
2413
2413
  title?: InputMaybe<Order_By>;
2414
2414
  updated_at?: InputMaybe<Order_By>;
2415
2415
  user?: InputMaybe<Promptql_Users_Order_By>;
@@ -955,8 +955,8 @@ type Promptql_Users_Bool_Exp = {
955
955
  slack_info?: InputMaybe<Slack_Info_Bool_Exp>;
956
956
  starred_artifacts?: InputMaybe<Starred_Artifacts_Bool_Exp>;
957
957
  starred_threads?: InputMaybe<Starred_Threads_Bool_Exp>;
958
- thread_participants_typing?: InputMaybe<Thread_Participants_Typing_Bool_Exp>;
959
- thread_participants_typing_aggregate?: InputMaybe<Thread_Participants_Typing_Aggregate_Bool_Exp>;
958
+ thread_user_typing?: InputMaybe<Thread_User_Typing_Bool_Exp>;
959
+ thread_user_typing_aggregate?: InputMaybe<Thread_User_Typing_Aggregate_Bool_Exp>;
960
960
  updated_at?: InputMaybe<Timestamptz_Comparison_Exp>;
961
961
  user_group_members?: InputMaybe<User_Group_Members_Bool_Exp>;
962
962
  user_preference?: InputMaybe<User_Preferences_Bool_Exp>;
@@ -1000,7 +1000,7 @@ type Promptql_Users_Order_By = {
1000
1000
  slack_info?: InputMaybe<Slack_Info_Order_By>;
1001
1001
  starred_artifacts_aggregate?: InputMaybe<Starred_Artifacts_Aggregate_Order_By>;
1002
1002
  starred_threads_aggregate?: InputMaybe<Starred_Threads_Aggregate_Order_By>;
1003
- thread_participants_typing_aggregate?: InputMaybe<Thread_Participants_Typing_Aggregate_Order_By>;
1003
+ thread_user_typing_aggregate?: InputMaybe<Thread_User_Typing_Aggregate_Order_By>;
1004
1004
  updated_at?: InputMaybe<Order_By>;
1005
1005
  user_group_members_aggregate?: InputMaybe<User_Group_Members_Aggregate_Order_By>;
1006
1006
  user_preference?: InputMaybe<User_Preferences_Order_By>;
@@ -2091,7 +2091,7 @@ type Thread_Participants_Bool_Exp = {
2091
2091
  thread_participant_activities?: InputMaybe<Thread_Participant_Activity_Bool_Exp>;
2092
2092
  thread_participant_activities_aggregate?: InputMaybe<Thread_Participant_Activity_Aggregate_Bool_Exp>;
2093
2093
  threads_v2?: InputMaybe<Threads_V2_Bool_Exp>;
2094
- typing_indicator?: InputMaybe<Thread_Participants_Typing_Bool_Exp>;
2094
+ typing_indicator?: InputMaybe<Thread_User_Typing_Bool_Exp>;
2095
2095
  updated_at?: InputMaybe<Timestamptz_Comparison_Exp>;
2096
2096
  };
2097
2097
  /** order by max() on columns of table "thread_participants" */
@@ -2164,53 +2164,6 @@ type Thread_Participants_Sum_Order_By = {
2164
2164
  last_seen_event_id?: InputMaybe<Order_By>;
2165
2165
  latest_relevant_event_id?: InputMaybe<Order_By>;
2166
2166
  };
2167
- type Thread_Participants_Typing_Aggregate_Bool_Exp = {
2168
- count?: InputMaybe<Thread_Participants_Typing_Aggregate_Bool_Exp_Count>;
2169
- };
2170
- type Thread_Participants_Typing_Aggregate_Bool_Exp_Count = {
2171
- arguments?: InputMaybe<Array<Thread_Participants_Typing_Select_Column>>;
2172
- distinct?: InputMaybe<Scalars['Boolean']['input']>;
2173
- filter?: InputMaybe<Thread_Participants_Typing_Bool_Exp>;
2174
- predicate: Int_Comparison_Exp;
2175
- };
2176
- /** order by aggregate values of table "thread_participants_typing" */
2177
- type Thread_Participants_Typing_Aggregate_Order_By = {
2178
- count?: InputMaybe<Order_By>;
2179
- max?: InputMaybe<Thread_Participants_Typing_Max_Order_By>;
2180
- min?: InputMaybe<Thread_Participants_Typing_Min_Order_By>;
2181
- };
2182
- /** Boolean expression to filter rows from the table "thread_participants_typing". All fields are combined with a logical 'AND'. */
2183
- type Thread_Participants_Typing_Bool_Exp = {
2184
- _and?: InputMaybe<Array<Thread_Participants_Typing_Bool_Exp>>;
2185
- _not?: InputMaybe<Thread_Participants_Typing_Bool_Exp>;
2186
- _or?: InputMaybe<Array<Thread_Participants_Typing_Bool_Exp>>;
2187
- last_typing_ts?: InputMaybe<Timestamptz_Comparison_Exp>;
2188
- promptql_user_id?: InputMaybe<Uuid_Comparison_Exp>;
2189
- thread?: InputMaybe<Threads_V2_Bool_Exp>;
2190
- thread_id?: InputMaybe<Uuid_Comparison_Exp>;
2191
- thread_participant?: InputMaybe<Thread_Participants_Bool_Exp>;
2192
- user?: InputMaybe<Promptql_Users_Bool_Exp>;
2193
- };
2194
- /** order by max() on columns of table "thread_participants_typing" */
2195
- type Thread_Participants_Typing_Max_Order_By = {
2196
- last_typing_ts?: InputMaybe<Order_By>;
2197
- promptql_user_id?: InputMaybe<Order_By>;
2198
- thread_id?: InputMaybe<Order_By>;
2199
- };
2200
- /** order by min() on columns of table "thread_participants_typing" */
2201
- type Thread_Participants_Typing_Min_Order_By = {
2202
- last_typing_ts?: InputMaybe<Order_By>;
2203
- promptql_user_id?: InputMaybe<Order_By>;
2204
- thread_id?: InputMaybe<Order_By>;
2205
- };
2206
- /** select columns of table "thread_participants_typing" */
2207
- type Thread_Participants_Typing_Select_Column =
2208
- /** column name */
2209
- 'last_typing_ts'
2210
- /** column name */
2211
- | 'promptql_user_id'
2212
- /** column name */
2213
- | 'thread_id';
2214
2167
  /** order by var_pop() on columns of table "thread_participants" */
2215
2168
  type Thread_Participants_Var_Pop_Order_By = {
2216
2169
  last_seen_event_id?: InputMaybe<Order_By>;
@@ -2251,6 +2204,53 @@ type Thread_Taught_By_Result_Min_Order_By = {
2251
2204
  teachings?: InputMaybe<Order_By>;
2252
2205
  user_id?: InputMaybe<Order_By>;
2253
2206
  };
2207
+ type Thread_User_Typing_Aggregate_Bool_Exp = {
2208
+ count?: InputMaybe<Thread_User_Typing_Aggregate_Bool_Exp_Count>;
2209
+ };
2210
+ type Thread_User_Typing_Aggregate_Bool_Exp_Count = {
2211
+ arguments?: InputMaybe<Array<Thread_User_Typing_Select_Column>>;
2212
+ distinct?: InputMaybe<Scalars['Boolean']['input']>;
2213
+ filter?: InputMaybe<Thread_User_Typing_Bool_Exp>;
2214
+ predicate: Int_Comparison_Exp;
2215
+ };
2216
+ /** order by aggregate values of table "thread_user_typing" */
2217
+ type Thread_User_Typing_Aggregate_Order_By = {
2218
+ count?: InputMaybe<Order_By>;
2219
+ max?: InputMaybe<Thread_User_Typing_Max_Order_By>;
2220
+ min?: InputMaybe<Thread_User_Typing_Min_Order_By>;
2221
+ };
2222
+ /** Boolean expression to filter rows from the table "thread_user_typing". All fields are combined with a logical 'AND'. */
2223
+ type Thread_User_Typing_Bool_Exp = {
2224
+ _and?: InputMaybe<Array<Thread_User_Typing_Bool_Exp>>;
2225
+ _not?: InputMaybe<Thread_User_Typing_Bool_Exp>;
2226
+ _or?: InputMaybe<Array<Thread_User_Typing_Bool_Exp>>;
2227
+ last_typing_ts?: InputMaybe<Timestamptz_Comparison_Exp>;
2228
+ promptql_user_id?: InputMaybe<Uuid_Comparison_Exp>;
2229
+ thread?: InputMaybe<Threads_V2_Bool_Exp>;
2230
+ thread_id?: InputMaybe<Uuid_Comparison_Exp>;
2231
+ thread_participant?: InputMaybe<Thread_Participants_Bool_Exp>;
2232
+ user?: InputMaybe<Promptql_Users_Bool_Exp>;
2233
+ };
2234
+ /** order by max() on columns of table "thread_user_typing" */
2235
+ type Thread_User_Typing_Max_Order_By = {
2236
+ last_typing_ts?: InputMaybe<Order_By>;
2237
+ promptql_user_id?: InputMaybe<Order_By>;
2238
+ thread_id?: InputMaybe<Order_By>;
2239
+ };
2240
+ /** order by min() on columns of table "thread_user_typing" */
2241
+ type Thread_User_Typing_Min_Order_By = {
2242
+ last_typing_ts?: InputMaybe<Order_By>;
2243
+ promptql_user_id?: InputMaybe<Order_By>;
2244
+ thread_id?: InputMaybe<Order_By>;
2245
+ };
2246
+ /** select columns of table "thread_user_typing" */
2247
+ type Thread_User_Typing_Select_Column =
2248
+ /** column name */
2249
+ 'last_typing_ts'
2250
+ /** column name */
2251
+ | 'promptql_user_id'
2252
+ /** column name */
2253
+ | 'thread_id';
2254
2254
  type Thread_Visibility_Enum_Enum =
2255
2255
  /** Private threads are visible only to thread participants */
2256
2256
  'PRIVATE'
@@ -2331,8 +2331,8 @@ type Threads_V2_Bool_Exp = {
2331
2331
  thread_id?: InputMaybe<Uuid_Comparison_Exp>;
2332
2332
  thread_participants?: InputMaybe<Thread_Participants_Bool_Exp>;
2333
2333
  thread_participants_aggregate?: InputMaybe<Thread_Participants_Aggregate_Bool_Exp>;
2334
- thread_participants_typing?: InputMaybe<Thread_Participants_Typing_Bool_Exp>;
2335
- thread_participants_typing_aggregate?: InputMaybe<Thread_Participants_Typing_Aggregate_Bool_Exp>;
2334
+ thread_user_typing?: InputMaybe<Thread_User_Typing_Bool_Exp>;
2335
+ thread_user_typing_aggregate?: InputMaybe<Thread_User_Typing_Aggregate_Bool_Exp>;
2336
2336
  title?: InputMaybe<String_Comparison_Exp>;
2337
2337
  updated_at?: InputMaybe<Timestamptz_Comparison_Exp>;
2338
2338
  user?: InputMaybe<Promptql_Users_Bool_Exp>;
@@ -2409,7 +2409,7 @@ type Threads_V2_Order_By = {
2409
2409
  thread_feedback_aggregate?: InputMaybe<Thread_Feedback_Aggregate_Order_By>;
2410
2410
  thread_id?: InputMaybe<Order_By>;
2411
2411
  thread_participants_aggregate?: InputMaybe<Thread_Participants_Aggregate_Order_By>;
2412
- thread_participants_typing_aggregate?: InputMaybe<Thread_Participants_Typing_Aggregate_Order_By>;
2412
+ thread_user_typing_aggregate?: InputMaybe<Thread_User_Typing_Aggregate_Order_By>;
2413
2413
  title?: InputMaybe<Order_By>;
2414
2414
  updated_at?: InputMaybe<Order_By>;
2415
2415
  user?: InputMaybe<Promptql_Users_Order_By>;