@periskope/types 0.6.403 → 0.6.405

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ 2025-07-29T13:18:35.926605Z WARN daemon_server: turborepo_lib::commands::daemon: daemon already running
@@ -343,6 +343,7 @@ export type Database = {
343
343
  question: string;
344
344
  tags: string[] | null;
345
345
  type: Database["public"]["Enums"]["enum_ai_context_type"] | null;
346
+ updated_at: string | null;
346
347
  };
347
348
  Insert: {
348
349
  answer: string;
@@ -357,6 +358,7 @@ export type Database = {
357
358
  question: string;
358
359
  tags?: string[] | null;
359
360
  type?: Database["public"]["Enums"]["enum_ai_context_type"] | null;
361
+ updated_at?: string | null;
360
362
  };
361
363
  Update: {
362
364
  answer?: string;
@@ -371,6 +373,52 @@ export type Database = {
371
373
  question?: string;
372
374
  tags?: string[] | null;
373
375
  type?: Database["public"]["Enums"]["enum_ai_context_type"] | null;
376
+ updated_at?: string | null;
377
+ };
378
+ Relationships: [];
379
+ };
380
+ tbl_ai_sessions: {
381
+ Row: {
382
+ chat_id: string;
383
+ conversation_messages: Json | null;
384
+ created_at: string;
385
+ metadata: Json | null;
386
+ org_id: string;
387
+ org_phone: string;
388
+ relevant_context: Json | null;
389
+ session_id: string;
390
+ status: string;
391
+ tool_calls: Json | null;
392
+ updated_at: string;
393
+ usage_details: Json | null;
394
+ };
395
+ Insert: {
396
+ chat_id: string;
397
+ conversation_messages?: Json | null;
398
+ created_at?: string;
399
+ metadata?: Json | null;
400
+ org_id: string;
401
+ org_phone: string;
402
+ relevant_context?: Json | null;
403
+ session_id: string;
404
+ status?: string;
405
+ tool_calls?: Json | null;
406
+ updated_at?: string;
407
+ usage_details?: Json | null;
408
+ };
409
+ Update: {
410
+ chat_id?: string;
411
+ conversation_messages?: Json | null;
412
+ created_at?: string;
413
+ metadata?: Json | null;
414
+ org_id?: string;
415
+ org_phone?: string;
416
+ relevant_context?: Json | null;
417
+ session_id?: string;
418
+ status?: string;
419
+ tool_calls?: Json | null;
420
+ updated_at?: string;
421
+ usage_details?: Json | null;
374
422
  };
375
423
  Relationships: [];
376
424
  };
@@ -1891,6 +1939,59 @@ export type Database = {
1891
1939
  }
1892
1940
  ];
1893
1941
  };
1942
+ tbl_org_notifications: {
1943
+ Row: {
1944
+ action_url: string | null;
1945
+ body: Json;
1946
+ clicked_by: Json | null;
1947
+ created_at: string;
1948
+ notification_id: string;
1949
+ notification_type: Database["public"]["Enums"]["enum_notification_type"];
1950
+ org_id: string;
1951
+ seen_at: string | null;
1952
+ sender_details: Json;
1953
+ to: string | null;
1954
+ updated_at: string | null;
1955
+ };
1956
+ Insert: {
1957
+ body: Json;
1958
+ created_at?: string;
1959
+ notification_id?: string;
1960
+ notification_type: Database["public"]["Enums"]["enum_notification_type"];
1961
+ org_id: string;
1962
+ seen_at?: string | null;
1963
+ sender_details: Json;
1964
+ to?: string | null;
1965
+ updated_at?: string | null;
1966
+ };
1967
+ Update: {
1968
+ body?: Json;
1969
+ created_at?: string;
1970
+ notification_id?: string;
1971
+ notification_type?: Database["public"]["Enums"]["enum_notification_type"];
1972
+ org_id?: string;
1973
+ seen_at?: string | null;
1974
+ sender_details?: Json;
1975
+ to?: string | null;
1976
+ updated_at?: string | null;
1977
+ };
1978
+ Relationships: [
1979
+ {
1980
+ foreignKeyName: "tbl_org_notifications_org_id_fkey";
1981
+ columns: ["org_id"];
1982
+ isOneToOne: false;
1983
+ referencedRelation: "tbl_org";
1984
+ referencedColumns: ["org_id"];
1985
+ },
1986
+ {
1987
+ foreignKeyName: "tbl_org_notifications_org_id_fkey";
1988
+ columns: ["org_id"];
1989
+ isOneToOne: false;
1990
+ referencedRelation: "view_org";
1991
+ referencedColumns: ["org_id"];
1992
+ }
1993
+ ];
1994
+ };
1894
1995
  tbl_org_phones: {
1895
1996
  Row: {
1896
1997
  created_at: string;
@@ -3290,6 +3391,7 @@ export type Database = {
3290
3391
  enum_integration_name: "org.created" | "org.updated" | "org.member.created" | "org.member.updated" | "org.subscription.trial_will_end" | "chat.created" | "chat.updated" | "chat.notification.created" | "message.created" | "message.updated" | "message.deleted" | "message.ack.updated" | "reaction.created" | "reaction.updated" | "ticket.created" | "ticket.updated" | "ticket.deleted" | "org.integrations.updated" | "message.flagged" | "message.unflagged" | "chat.label.updated" | "reaction.added" | "message.ticket.attached" | "org.phone.created" | "org.phone.connected" | "org.phone.disconnected" | "org.phone.qr" | "org.phone.updated" | "note.created" | "chat.custom_properties.updated";
3291
3392
  enum_integration_type: "zapier" | "pabbly" | "api" | "webhook" | "hubspot" | "freshdesk" | "slack" | "jira" | "salesforce" | "zohodesk" | "gsheets" | "zohocrm";
3292
3393
  enum_member_role: "admin" | "member";
3394
+ enum_notification_type: "message" | "mention" | "task" | "ticket" | "org";
3293
3395
  };
3294
3396
  CompositeTypes: {
3295
3397
  [_ in never]: never;
@@ -3671,8 +3773,9 @@ export declare const Constants: {
3671
3773
  readonly enum_chat_tickets_status: readonly ["open", "inprogress", "closed", "archived"];
3672
3774
  readonly enum_credit_transaction_type: readonly ["credit", "debit"];
3673
3775
  readonly enum_integration_name: readonly ["org.created", "org.updated", "org.member.created", "org.member.updated", "org.subscription.trial_will_end", "chat.created", "chat.updated", "chat.notification.created", "message.created", "message.updated", "message.deleted", "message.ack.updated", "reaction.created", "reaction.updated", "ticket.created", "ticket.updated", "ticket.deleted", "org.integrations.updated", "message.flagged", "message.unflagged", "chat.label.updated", "reaction.added", "message.ticket.attached", "org.phone.created", "org.phone.connected", "org.phone.disconnected", "org.phone.qr", "org.phone.updated", "note.created", "chat.custom_properties.updated"];
3674
- readonly enum_integration_type: readonly ["zapier", "pabbly", "api", "webhook", "hubspot", "freshdesk", "slack", "jira", "salesforce", "zohodesk", "gsheets", "zohocrm"];
3776
+ readonly enum_integration_type: readonly ["zapier", "pabbly", "api", "webhook", "hubspot", "freshdesk", "slack", "jira", "salesforce", "zohodesk", "zohocrm", "gsheets"];
3675
3777
  readonly enum_member_role: readonly ["admin", "member"];
3778
+ readonly enum_notification_type: readonly ["message", "mention", "task", "ticket", "org"];
3676
3779
  };
3677
3780
  };
3678
3781
  readonly storage: {