database-types.ts 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176
  1. export type Json = string | number | boolean | null | { [key: string]: Json | undefined } | Json[]
  2. export type Database = {
  3. content: {
  4. Tables: {
  5. error: {
  6. Row: {
  7. code: string
  8. created_at: string | null
  9. deleted_at: string | null
  10. http_status_code: number | null
  11. id: string
  12. message: string | null
  13. metadata: Json | null
  14. service: string
  15. updated_at: string | null
  16. }
  17. Insert: {
  18. code: string
  19. created_at?: string | null
  20. deleted_at?: string | null
  21. http_status_code?: number | null
  22. id?: string
  23. message?: string | null
  24. metadata?: Json | null
  25. service: string
  26. updated_at?: string | null
  27. }
  28. Update: {
  29. code?: string
  30. created_at?: string | null
  31. deleted_at?: string | null
  32. http_status_code?: number | null
  33. id?: string
  34. message?: string | null
  35. metadata?: Json | null
  36. service?: string
  37. updated_at?: string | null
  38. }
  39. Relationships: [
  40. {
  41. foreignKeyName: 'error_service_fkey'
  42. columns: ['service']
  43. isOneToOne: false
  44. referencedRelation: 'service'
  45. referencedColumns: ['id']
  46. },
  47. ]
  48. }
  49. service: {
  50. Row: {
  51. created_at: string | null
  52. deleted_at: string | null
  53. id: string
  54. name: string
  55. updated_at: string | null
  56. }
  57. Insert: {
  58. created_at?: string | null
  59. deleted_at?: string | null
  60. id?: string
  61. name: string
  62. updated_at?: string | null
  63. }
  64. Update: {
  65. created_at?: string | null
  66. deleted_at?: string | null
  67. id?: string
  68. name?: string
  69. updated_at?: string | null
  70. }
  71. Relationships: []
  72. }
  73. }
  74. Views: {
  75. [_ in never]: never
  76. }
  77. Functions: {
  78. delete_error_codes_except: {
  79. Args: {
  80. skip_codes: Json
  81. }
  82. Returns: number
  83. }
  84. update_error_code: {
  85. Args: {
  86. code: string
  87. service: string
  88. http_status_code?: number
  89. message?: string
  90. metadata?: Json
  91. }
  92. Returns: boolean
  93. }
  94. }
  95. Enums: {
  96. [_ in never]: never
  97. }
  98. CompositeTypes: {
  99. [_ in never]: never
  100. }
  101. }
  102. graphql_public: {
  103. Tables: {
  104. [_ in never]: never
  105. }
  106. Views: {
  107. [_ in never]: never
  108. }
  109. Functions: {
  110. graphql: {
  111. Args: {
  112. operationName?: string
  113. query?: string
  114. variables?: Json
  115. extensions?: Json
  116. }
  117. Returns: Json
  118. }
  119. }
  120. Enums: {
  121. [_ in never]: never
  122. }
  123. CompositeTypes: {
  124. [_ in never]: never
  125. }
  126. }
  127. public: {
  128. Tables: {
  129. feedback: {
  130. Row: {
  131. date_created: string
  132. id: number
  133. metadata: Json | null
  134. page: string
  135. vote: Database['public']['Enums']['feedback_vote']
  136. }
  137. Insert: {
  138. date_created?: string
  139. id?: never
  140. metadata?: Json | null
  141. page: string
  142. vote: Database['public']['Enums']['feedback_vote']
  143. }
  144. Update: {
  145. date_created?: string
  146. id?: never
  147. metadata?: Json | null
  148. page?: string
  149. vote?: Database['public']['Enums']['feedback_vote']
  150. }
  151. Relationships: []
  152. }
  153. last_changed: {
  154. Row: {
  155. checksum: string
  156. heading: string
  157. id: number
  158. last_checked: string
  159. last_updated: string
  160. parent_page: string
  161. }
  162. Insert: {
  163. checksum: string
  164. heading: string
  165. id?: never
  166. last_checked?: string
  167. last_updated?: string
  168. parent_page: string
  169. }
  170. Update: {
  171. checksum?: string
  172. heading?: string
  173. id?: never
  174. last_checked?: string
  175. last_updated?: string
  176. parent_page?: string
  177. }
  178. Relationships: []
  179. }
  180. launch_weeks: {
  181. Row: {
  182. created_at: string
  183. end_date: string | null
  184. id: string
  185. start_date: string | null
  186. }
  187. Insert: {
  188. created_at?: string
  189. end_date?: string | null
  190. id: string
  191. start_date?: string | null
  192. }
  193. Update: {
  194. created_at?: string
  195. end_date?: string | null
  196. id?: string
  197. start_date?: string | null
  198. }
  199. Relationships: []
  200. }
  201. meetups: {
  202. Row: {
  203. city: string | null
  204. country: string | null
  205. created_at: string
  206. display_info: string | null
  207. id: string
  208. is_live: boolean
  209. is_published: boolean
  210. launch_week: string
  211. link: string | null
  212. start_at: string | null
  213. timezone: string | null
  214. title: string | null
  215. }
  216. Insert: {
  217. city?: string | null
  218. country?: string | null
  219. created_at?: string
  220. display_info?: string | null
  221. id?: string
  222. is_live?: boolean
  223. is_published?: boolean
  224. launch_week: string
  225. link?: string | null
  226. start_at?: string | null
  227. timezone?: string | null
  228. title?: string | null
  229. }
  230. Update: {
  231. city?: string | null
  232. country?: string | null
  233. created_at?: string
  234. display_info?: string | null
  235. id?: string
  236. is_live?: boolean
  237. is_published?: boolean
  238. launch_week?: string
  239. link?: string | null
  240. start_at?: string | null
  241. timezone?: string | null
  242. title?: string | null
  243. }
  244. Relationships: [
  245. {
  246. foreignKeyName: 'meetups_launch_week_fkey'
  247. columns: ['launch_week']
  248. isOneToOne: false
  249. referencedRelation: 'launch_weeks'
  250. referencedColumns: ['id']
  251. },
  252. ]
  253. }
  254. page: {
  255. Row: {
  256. checksum: string | null
  257. content: string | null
  258. fts_tokens: unknown | null
  259. id: number
  260. last_refresh: string | null
  261. meta: Json | null
  262. path: string
  263. source: string | null
  264. title_tokens: unknown | null
  265. type: string | null
  266. version: string | null
  267. }
  268. Insert: {
  269. checksum?: string | null
  270. content?: string | null
  271. fts_tokens?: unknown | null
  272. id?: number
  273. last_refresh?: string | null
  274. meta?: Json | null
  275. path: string
  276. source?: string | null
  277. title_tokens?: unknown | null
  278. type?: string | null
  279. version?: string | null
  280. }
  281. Update: {
  282. checksum?: string | null
  283. content?: string | null
  284. fts_tokens?: unknown | null
  285. id?: number
  286. last_refresh?: string | null
  287. meta?: Json | null
  288. path?: string
  289. source?: string | null
  290. title_tokens?: unknown | null
  291. type?: string | null
  292. version?: string | null
  293. }
  294. Relationships: []
  295. }
  296. page_nimbus: {
  297. Row: {
  298. checksum: string | null
  299. content: string | null
  300. fts_tokens: unknown | null
  301. id: number
  302. last_refresh: string | null
  303. meta: Json | null
  304. path: string
  305. source: string | null
  306. title_tokens: unknown | null
  307. type: string | null
  308. version: string | null
  309. }
  310. Insert: {
  311. checksum?: string | null
  312. content?: string | null
  313. fts_tokens?: unknown | null
  314. id?: never
  315. last_refresh?: string | null
  316. meta?: Json | null
  317. path: string
  318. source?: string | null
  319. title_tokens?: unknown | null
  320. type?: string | null
  321. version?: string | null
  322. }
  323. Update: {
  324. checksum?: string | null
  325. content?: string | null
  326. fts_tokens?: unknown | null
  327. id?: never
  328. last_refresh?: string | null
  329. meta?: Json | null
  330. path?: string
  331. source?: string | null
  332. title_tokens?: unknown | null
  333. type?: string | null
  334. version?: string | null
  335. }
  336. Relationships: []
  337. }
  338. page_section: {
  339. Row: {
  340. content: string | null
  341. embedding: string | null
  342. heading: string | null
  343. id: number
  344. page_id: number
  345. rag_ignore: boolean | null
  346. slug: string | null
  347. token_count: number | null
  348. }
  349. Insert: {
  350. content?: string | null
  351. embedding?: string | null
  352. heading?: string | null
  353. id?: number
  354. page_id: number
  355. rag_ignore?: boolean | null
  356. slug?: string | null
  357. token_count?: number | null
  358. }
  359. Update: {
  360. content?: string | null
  361. embedding?: string | null
  362. heading?: string | null
  363. id?: number
  364. page_id?: number
  365. rag_ignore?: boolean | null
  366. slug?: string | null
  367. token_count?: number | null
  368. }
  369. Relationships: [
  370. {
  371. foreignKeyName: 'page_section_page_id_fkey'
  372. columns: ['page_id']
  373. isOneToOne: false
  374. referencedRelation: 'page'
  375. referencedColumns: ['id']
  376. },
  377. ]
  378. }
  379. page_section_nimbus: {
  380. Row: {
  381. content: string | null
  382. embedding: string | null
  383. heading: string | null
  384. id: number
  385. page_id: number
  386. rag_ignore: boolean | null
  387. slug: string | null
  388. token_count: number | null
  389. }
  390. Insert: {
  391. content?: string | null
  392. embedding?: string | null
  393. heading?: string | null
  394. id?: never
  395. page_id: number
  396. rag_ignore?: boolean | null
  397. slug?: string | null
  398. token_count?: number | null
  399. }
  400. Update: {
  401. content?: string | null
  402. embedding?: string | null
  403. heading?: string | null
  404. id?: never
  405. page_id?: number
  406. rag_ignore?: boolean | null
  407. slug?: string | null
  408. token_count?: number | null
  409. }
  410. Relationships: [
  411. {
  412. foreignKeyName: 'page_section_nimbus_page_id_fkey'
  413. columns: ['page_id']
  414. isOneToOne: false
  415. referencedRelation: 'page_nimbus'
  416. referencedColumns: ['id']
  417. },
  418. ]
  419. }
  420. tickets: {
  421. Row: {
  422. company: string | null
  423. created_at: string
  424. email: string | null
  425. game_won_at: string | null
  426. id: string
  427. launch_week: string
  428. location: string | null
  429. metadata: Json | null
  430. name: string | null
  431. referred_by: string | null
  432. role: string | null
  433. shared_on_linkedin: string | null
  434. shared_on_twitter: string | null
  435. ticket_number: number
  436. user_id: string
  437. username: string | null
  438. }
  439. Insert: {
  440. company?: string | null
  441. created_at?: string
  442. email?: string | null
  443. game_won_at?: string | null
  444. id?: string
  445. launch_week: string
  446. location?: string | null
  447. metadata?: Json | null
  448. name?: string | null
  449. referred_by?: string | null
  450. role?: string | null
  451. shared_on_linkedin?: string | null
  452. shared_on_twitter?: string | null
  453. ticket_number?: number
  454. user_id: string
  455. username?: string | null
  456. }
  457. Update: {
  458. company?: string | null
  459. created_at?: string
  460. email?: string | null
  461. game_won_at?: string | null
  462. id?: string
  463. launch_week?: string
  464. location?: string | null
  465. metadata?: Json | null
  466. name?: string | null
  467. referred_by?: string | null
  468. role?: string | null
  469. shared_on_linkedin?: string | null
  470. shared_on_twitter?: string | null
  471. ticket_number?: number
  472. user_id?: string
  473. username?: string | null
  474. }
  475. Relationships: [
  476. {
  477. foreignKeyName: 'public_tickets_id_fkey'
  478. columns: ['user_id']
  479. isOneToOne: false
  480. referencedRelation: 'users'
  481. referencedColumns: ['id']
  482. },
  483. {
  484. foreignKeyName: 'tickets_launch_week_fkey'
  485. columns: ['launch_week']
  486. isOneToOne: false
  487. referencedRelation: 'launch_weeks'
  488. referencedColumns: ['id']
  489. },
  490. {
  491. foreignKeyName: 'tickets_user_id_fkey'
  492. columns: ['user_id']
  493. isOneToOne: false
  494. referencedRelation: 'users'
  495. referencedColumns: ['id']
  496. },
  497. ]
  498. }
  499. troubleshooting_entries: {
  500. Row: {
  501. api: Json | null
  502. checksum: string
  503. date_created: string
  504. date_updated: string
  505. errors: Json[] | null
  506. github_id: string
  507. github_url: string
  508. id: string
  509. keywords: string[] | null
  510. title: string
  511. topics: string[]
  512. }
  513. Insert: {
  514. api?: Json | null
  515. checksum: string
  516. date_created?: string
  517. date_updated?: string
  518. errors?: Json[] | null
  519. github_id: string
  520. github_url: string
  521. id?: string
  522. keywords?: string[] | null
  523. title: string
  524. topics: string[]
  525. }
  526. Update: {
  527. api?: Json | null
  528. checksum?: string
  529. date_created?: string
  530. date_updated?: string
  531. errors?: Json[] | null
  532. github_id?: string
  533. github_url?: string
  534. id?: string
  535. keywords?: string[] | null
  536. title?: string
  537. topics?: string[]
  538. }
  539. Relationships: []
  540. }
  541. validation_history: {
  542. Row: {
  543. created_at: string
  544. id: number
  545. tag: string
  546. }
  547. Insert: {
  548. created_at?: string
  549. id?: never
  550. tag: string
  551. }
  552. Update: {
  553. created_at?: string
  554. id?: never
  555. tag?: string
  556. }
  557. Relationships: []
  558. }
  559. }
  560. Views: {
  561. tickets_view: {
  562. Row: {
  563. company: string | null
  564. created_at: string | null
  565. id: string | null
  566. launch_week: string | null
  567. location: string | null
  568. metadata: Json | null
  569. name: string | null
  570. platinum: boolean | null
  571. referrals: number | null
  572. role: string | null
  573. secret: boolean | null
  574. shared_on_linkedin: string | null
  575. shared_on_twitter: string | null
  576. ticket_number: number | null
  577. username: string | null
  578. }
  579. Relationships: [
  580. {
  581. foreignKeyName: 'tickets_launch_week_fkey'
  582. columns: ['launch_week']
  583. isOneToOne: false
  584. referencedRelation: 'launch_weeks'
  585. referencedColumns: ['id']
  586. },
  587. ]
  588. }
  589. }
  590. Functions: {
  591. cleanup_last_changed_pages: {
  592. Args: Record<PropertyKey, never>
  593. Returns: number
  594. }
  595. docs_search_embeddings: {
  596. Args: {
  597. embedding: string
  598. match_threshold: number
  599. }
  600. Returns: {
  601. id: number
  602. path: string
  603. type: string
  604. title: string
  605. subtitle: string
  606. description: string
  607. headings: string[]
  608. slugs: string[]
  609. }[]
  610. }
  611. docs_search_embeddings_nimbus: {
  612. Args: {
  613. embedding: string
  614. match_threshold: number
  615. }
  616. Returns: {
  617. id: number
  618. path: string
  619. type: string
  620. title: string
  621. subtitle: string
  622. description: string
  623. headings: string[]
  624. slugs: string[]
  625. }[]
  626. }
  627. docs_search_fts: {
  628. Args: {
  629. query: string
  630. }
  631. Returns: {
  632. id: number
  633. path: string
  634. type: string
  635. title: string
  636. subtitle: string
  637. description: string
  638. }[]
  639. }
  640. docs_search_fts_nimbus: {
  641. Args: {
  642. query: string
  643. }
  644. Returns: {
  645. id: number
  646. path: string
  647. type: string
  648. title: string
  649. subtitle: string
  650. description: string
  651. }[]
  652. }
  653. get_full_content_url: {
  654. Args: {
  655. type: string
  656. path: string
  657. slug: string
  658. }
  659. Returns: string
  660. }
  661. get_last_revalidation_for_tags: {
  662. Args: {
  663. tags: string[]
  664. }
  665. Returns: {
  666. tag: string
  667. created_at: string
  668. }[]
  669. }
  670. hnswhandler: {
  671. Args: {
  672. '': unknown
  673. }
  674. Returns: unknown
  675. }
  676. ipv6_active_status: {
  677. Args: {
  678. project_ref: string
  679. }
  680. Returns: {
  681. pgbouncer_active: boolean
  682. vercel_active: boolean
  683. }[]
  684. }
  685. ivfflathandler: {
  686. Args: {
  687. '': unknown
  688. }
  689. Returns: unknown
  690. }
  691. json_matches_schema: {
  692. Args: {
  693. schema: Json
  694. instance: Json
  695. }
  696. Returns: boolean
  697. }
  698. jsonb_matches_schema: {
  699. Args: {
  700. schema: Json
  701. instance: Json
  702. }
  703. Returns: boolean
  704. }
  705. jsonschema_is_valid: {
  706. Args: {
  707. schema: Json
  708. }
  709. Returns: boolean
  710. }
  711. jsonschema_validation_errors: {
  712. Args: {
  713. schema: Json
  714. instance: Json
  715. }
  716. Returns: string[]
  717. }
  718. match_embedding: {
  719. Args: {
  720. embedding: string
  721. match_threshold?: number
  722. max_results?: number
  723. }
  724. Returns: {
  725. content: string | null
  726. embedding: string | null
  727. heading: string | null
  728. id: number
  729. page_id: number
  730. rag_ignore: boolean | null
  731. slug: string | null
  732. token_count: number | null
  733. }[]
  734. }
  735. match_embedding_nimbus: {
  736. Args: {
  737. embedding: string
  738. match_threshold?: number
  739. max_results?: number
  740. }
  741. Returns: {
  742. content: string | null
  743. embedding: string | null
  744. heading: string | null
  745. id: number
  746. page_id: number
  747. rag_ignore: boolean | null
  748. slug: string | null
  749. token_count: number | null
  750. }[]
  751. }
  752. match_page_sections_v2: {
  753. Args: {
  754. embedding: string
  755. match_threshold: number
  756. min_content_length: number
  757. }
  758. Returns: {
  759. content: string | null
  760. embedding: string | null
  761. heading: string | null
  762. id: number
  763. page_id: number
  764. rag_ignore: boolean | null
  765. slug: string | null
  766. token_count: number | null
  767. }[]
  768. }
  769. match_page_sections_v2_nimbus: {
  770. Args: {
  771. embedding: string
  772. match_threshold: number
  773. min_content_length: number
  774. }
  775. Returns: {
  776. content: string | null
  777. embedding: string | null
  778. heading: string | null
  779. id: number
  780. page_id: number
  781. rag_ignore: boolean | null
  782. slug: string | null
  783. token_count: number | null
  784. }[]
  785. }
  786. search_content: {
  787. Args: {
  788. embedding: string
  789. include_full_content?: boolean
  790. match_threshold?: number
  791. max_result?: number
  792. }
  793. Returns: {
  794. id: number
  795. page_title: string
  796. type: string
  797. href: string
  798. content: string
  799. metadata: Json
  800. subsections: Json[]
  801. }[]
  802. }
  803. search_content_hybrid: {
  804. Args: {
  805. query_text: string
  806. query_embedding: string
  807. max_result?: number
  808. full_text_weight?: number
  809. semantic_weight?: number
  810. rrf_k?: number
  811. match_threshold?: number
  812. include_full_content?: boolean
  813. }
  814. Returns: {
  815. id: number
  816. page_title: string
  817. type: string
  818. href: string
  819. content: string
  820. metadata: Json
  821. subsections: Json[]
  822. }[]
  823. }
  824. search_content_hybrid_nimbus: {
  825. Args: {
  826. query_text: string
  827. query_embedding: string
  828. max_result?: number
  829. full_text_weight?: number
  830. semantic_weight?: number
  831. rrf_k?: number
  832. match_threshold?: number
  833. include_full_content?: boolean
  834. }
  835. Returns: {
  836. id: number
  837. page_title: string
  838. type: string
  839. href: string
  840. content: string
  841. metadata: Json
  842. subsections: Json[]
  843. }[]
  844. }
  845. search_content_nimbus: {
  846. Args: {
  847. embedding: string
  848. include_full_content?: boolean
  849. match_threshold?: number
  850. max_result?: number
  851. }
  852. Returns: {
  853. id: number
  854. page_title: string
  855. type: string
  856. href: string
  857. content: string
  858. metadata: Json
  859. subsections: Json[]
  860. }[]
  861. }
  862. update_last_changed_checksum: {
  863. Args: {
  864. new_parent_page: string
  865. new_heading: string
  866. new_checksum: string
  867. git_update_time: string
  868. check_time: string
  869. }
  870. Returns: string
  871. }
  872. validate_troubleshooting_errors: {
  873. Args: {
  874. errors: Json[]
  875. }
  876. Returns: boolean
  877. }
  878. vector_avg: {
  879. Args: {
  880. '': number[]
  881. }
  882. Returns: string
  883. }
  884. vector_dims: {
  885. Args: {
  886. '': string
  887. }
  888. Returns: number
  889. }
  890. vector_norm: {
  891. Args: {
  892. '': string
  893. }
  894. Returns: number
  895. }
  896. vector_out: {
  897. Args: {
  898. '': string
  899. }
  900. Returns: unknown
  901. }
  902. vector_send: {
  903. Args: {
  904. '': string
  905. }
  906. Returns: string
  907. }
  908. vector_typmod_in: {
  909. Args: {
  910. '': unknown[]
  911. }
  912. Returns: number
  913. }
  914. }
  915. Enums: {
  916. feedback_vote: 'yes' | 'no'
  917. }
  918. CompositeTypes: {
  919. [_ in never]: never
  920. }
  921. }
  922. storage: {
  923. Tables: {
  924. buckets: {
  925. Row: {
  926. allowed_mime_types: string[] | null
  927. avif_autodetection: boolean | null
  928. created_at: string | null
  929. file_size_limit: number | null
  930. id: string
  931. name: string
  932. owner: string | null
  933. owner_id: string | null
  934. public: boolean | null
  935. updated_at: string | null
  936. }
  937. Insert: {
  938. allowed_mime_types?: string[] | null
  939. avif_autodetection?: boolean | null
  940. created_at?: string | null
  941. file_size_limit?: number | null
  942. id: string
  943. name: string
  944. owner?: string | null
  945. owner_id?: string | null
  946. public?: boolean | null
  947. updated_at?: string | null
  948. }
  949. Update: {
  950. allowed_mime_types?: string[] | null
  951. avif_autodetection?: boolean | null
  952. created_at?: string | null
  953. file_size_limit?: number | null
  954. id?: string
  955. name?: string
  956. owner?: string | null
  957. owner_id?: string | null
  958. public?: boolean | null
  959. updated_at?: string | null
  960. }
  961. Relationships: []
  962. }
  963. migrations: {
  964. Row: {
  965. executed_at: string | null
  966. hash: string
  967. id: number
  968. name: string
  969. }
  970. Insert: {
  971. executed_at?: string | null
  972. hash: string
  973. id: number
  974. name: string
  975. }
  976. Update: {
  977. executed_at?: string | null
  978. hash?: string
  979. id?: number
  980. name?: string
  981. }
  982. Relationships: []
  983. }
  984. objects: {
  985. Row: {
  986. bucket_id: string | null
  987. created_at: string | null
  988. id: string
  989. last_accessed_at: string | null
  990. metadata: Json | null
  991. name: string | null
  992. owner: string | null
  993. owner_id: string | null
  994. path_tokens: string[] | null
  995. updated_at: string | null
  996. version: string | null
  997. }
  998. Insert: {
  999. bucket_id?: string | null
  1000. created_at?: string | null
  1001. id?: string
  1002. last_accessed_at?: string | null
  1003. metadata?: Json | null
  1004. name?: string | null
  1005. owner?: string | null
  1006. owner_id?: string | null
  1007. path_tokens?: string[] | null
  1008. updated_at?: string | null
  1009. version?: string | null
  1010. }
  1011. Update: {
  1012. bucket_id?: string | null
  1013. created_at?: string | null
  1014. id?: string
  1015. last_accessed_at?: string | null
  1016. metadata?: Json | null
  1017. name?: string | null
  1018. owner?: string | null
  1019. owner_id?: string | null
  1020. path_tokens?: string[] | null
  1021. updated_at?: string | null
  1022. version?: string | null
  1023. }
  1024. Relationships: [
  1025. {
  1026. foreignKeyName: 'objects_bucketId_fkey'
  1027. columns: ['bucket_id']
  1028. isOneToOne: false
  1029. referencedRelation: 'buckets'
  1030. referencedColumns: ['id']
  1031. },
  1032. ]
  1033. }
  1034. }
  1035. Views: {
  1036. [_ in never]: never
  1037. }
  1038. Functions: {
  1039. can_insert_object: {
  1040. Args: {
  1041. bucketid: string
  1042. name: string
  1043. owner: string
  1044. metadata: Json
  1045. }
  1046. Returns: undefined
  1047. }
  1048. extension: {
  1049. Args: {
  1050. name: string
  1051. }
  1052. Returns: string
  1053. }
  1054. filename: {
  1055. Args: {
  1056. name: string
  1057. }
  1058. Returns: string
  1059. }
  1060. foldername: {
  1061. Args: {
  1062. name: string
  1063. }
  1064. Returns: string[]
  1065. }
  1066. get_size_by_bucket: {
  1067. Args: Record<PropertyKey, never>
  1068. Returns: {
  1069. size: number
  1070. bucket_id: string
  1071. }[]
  1072. }
  1073. search: {
  1074. Args: {
  1075. prefix: string
  1076. bucketname: string
  1077. limits?: number
  1078. levels?: number
  1079. offsets?: number
  1080. search?: string
  1081. sortcolumn?: string
  1082. sortorder?: string
  1083. }
  1084. Returns: {
  1085. name: string
  1086. id: string
  1087. updated_at: string
  1088. created_at: string
  1089. last_accessed_at: string
  1090. metadata: Json
  1091. }[]
  1092. }
  1093. }
  1094. Enums: {
  1095. [_ in never]: never
  1096. }
  1097. CompositeTypes: {
  1098. [_ in never]: never
  1099. }
  1100. }
  1101. }
  1102. type PublicSchema = Database[Extract<keyof Database, 'public'>]
  1103. export type Tables<
  1104. PublicTableNameOrOptions extends
  1105. | keyof (PublicSchema['Tables'] & PublicSchema['Views'])
  1106. | { schema: keyof Database },
  1107. TableName extends PublicTableNameOrOptions extends { schema: keyof Database }
  1108. ? keyof (Database[PublicTableNameOrOptions['schema']]['Tables'] &
  1109. Database[PublicTableNameOrOptions['schema']]['Views'])
  1110. : never = never,
  1111. > = PublicTableNameOrOptions extends { schema: keyof Database }
  1112. ? (Database[PublicTableNameOrOptions['schema']]['Tables'] &
  1113. Database[PublicTableNameOrOptions['schema']]['Views'])[TableName] extends {
  1114. Row: infer R
  1115. }
  1116. ? R
  1117. : never
  1118. : PublicTableNameOrOptions extends keyof (PublicSchema['Tables'] & PublicSchema['Views'])
  1119. ? (PublicSchema['Tables'] & PublicSchema['Views'])[PublicTableNameOrOptions] extends {
  1120. Row: infer R
  1121. }
  1122. ? R
  1123. : never
  1124. : never
  1125. export type TablesInsert<
  1126. PublicTableNameOrOptions extends keyof PublicSchema['Tables'] | { schema: keyof Database },
  1127. TableName extends PublicTableNameOrOptions extends { schema: keyof Database }
  1128. ? keyof Database[PublicTableNameOrOptions['schema']]['Tables']
  1129. : never = never,
  1130. > = PublicTableNameOrOptions extends { schema: keyof Database }
  1131. ? Database[PublicTableNameOrOptions['schema']]['Tables'][TableName] extends {
  1132. Insert: infer I
  1133. }
  1134. ? I
  1135. : never
  1136. : PublicTableNameOrOptions extends keyof PublicSchema['Tables']
  1137. ? PublicSchema['Tables'][PublicTableNameOrOptions] extends {
  1138. Insert: infer I
  1139. }
  1140. ? I
  1141. : never
  1142. : never
  1143. export type TablesUpdate<
  1144. PublicTableNameOrOptions extends keyof PublicSchema['Tables'] | { schema: keyof Database },
  1145. TableName extends PublicTableNameOrOptions extends { schema: keyof Database }
  1146. ? keyof Database[PublicTableNameOrOptions['schema']]['Tables']
  1147. : never = never,
  1148. > = PublicTableNameOrOptions extends { schema: keyof Database }
  1149. ? Database[PublicTableNameOrOptions['schema']]['Tables'][TableName] extends {
  1150. Update: infer U
  1151. }
  1152. ? U
  1153. : never
  1154. : PublicTableNameOrOptions extends keyof PublicSchema['Tables']
  1155. ? PublicSchema['Tables'][PublicTableNameOrOptions] extends {
  1156. Update: infer U
  1157. }
  1158. ? U
  1159. : never
  1160. : never
  1161. export type Enums<
  1162. PublicEnumNameOrOptions extends keyof PublicSchema['Enums'] | { schema: keyof Database },
  1163. EnumName extends PublicEnumNameOrOptions extends { schema: keyof Database }
  1164. ? keyof Database[PublicEnumNameOrOptions['schema']]['Enums']
  1165. : never = never,
  1166. > = PublicEnumNameOrOptions extends { schema: keyof Database }
  1167. ? Database[PublicEnumNameOrOptions['schema']]['Enums'][EnumName]
  1168. : PublicEnumNameOrOptions extends keyof PublicSchema['Enums']
  1169. ? PublicSchema['Enums'][PublicEnumNameOrOptions]
  1170. : never