@wirecat/notion-cli 0.2.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/README.md +9 -2
  3. package/contracts/wirecat.json +97 -0
  4. package/dist/bin/notion.js +2 -2
  5. package/dist/bundle/{all-profiles-JGYLQZ5C.js → all-profiles-4IONYZB6.js} +10 -10
  6. package/dist/bundle/{anthropic-S2VSMIKQ.js → anthropic-OXF74J4P.js} +6 -6
  7. package/dist/bundle/{app-server-SASYDBCA.js → app-server-M2VF6ABM.js} +59 -59
  8. package/dist/bundle/{bun-LU5LP3JI.js → bun-DLA6QRLL.js} +2 -2
  9. package/dist/bundle/{bun-sqlite-JBSINB4O.js → bun-sqlite-F4BYLW3F.js} +7 -7
  10. package/dist/bundle/{chunk-4HWJOU7N.js → chunk-2MHMKNWD.js} +1 -1
  11. package/dist/bundle/{chunk-SHJQ6JKG.js → chunk-4KUJTSHG.js} +2 -2
  12. package/dist/bundle/{chunk-SWAOWNKW.js → chunk-4TQVZXOV.js} +3 -3
  13. package/dist/bundle/{chunk-ODBZNSZ6.js → chunk-5LBJNTEJ.js} +6 -6
  14. package/dist/bundle/{chunk-SZOVLP44.js → chunk-5UA2TYMI.js} +2 -2
  15. package/dist/bundle/{chunk-22QQUKWA.js → chunk-5XP4KQ2F.js} +1 -1
  16. package/dist/bundle/{chunk-4IPURN72.js → chunk-6GN7KU7X.js} +9 -9
  17. package/dist/bundle/{chunk-X4TIMMKJ.js → chunk-6JBLIQQN.js} +1 -1
  18. package/dist/bundle/{chunk-4ZTVJHWU.js → chunk-7NF3V5L2.js} +4 -4
  19. package/dist/bundle/{chunk-OTV53F34.js → chunk-7NGFGFE5.js} +9 -60
  20. package/dist/bundle/{chunk-VBHETQVV.js → chunk-7NVPM55S.js} +1908 -1013
  21. package/dist/bundle/{chunk-Z56QFOBR.js → chunk-7YZPBAQX.js} +1 -1
  22. package/dist/bundle/{chunk-3AL7QUS3.js → chunk-AYU5TFDU.js} +20 -20
  23. package/dist/bundle/{chunk-FPY6EJ7B.js → chunk-BEPFGITI.js} +55 -55
  24. package/dist/bundle/{chunk-NQWV4WQO.js → chunk-CDGZZNGY.js} +6 -6
  25. package/dist/bundle/{chunk-DH5PRHT4.js → chunk-CIVXTBJY.js} +13 -13
  26. package/dist/bundle/{chunk-B26TQZKZ.js → chunk-COH7OEER.js} +14 -13
  27. package/dist/bundle/{chunk-XF26XKTS.js → chunk-D6RCRBDH.js} +2 -2
  28. package/dist/bundle/{chunk-YMYUBZWT.js → chunk-EQPAZ33O.js} +17 -17
  29. package/dist/bundle/{chunk-LAYPFBOM.js → chunk-EY6S7FV3.js} +6 -6
  30. package/dist/bundle/chunk-FEMHUSGO.js +88 -0
  31. package/dist/bundle/{chunk-VCIALTEM.js → chunk-FIHXADRF.js} +14 -4
  32. package/dist/bundle/{chunk-FWVBPRL4.js → chunk-FSJHASRQ.js} +79 -62
  33. package/dist/bundle/{chunk-TPX2M45D.js → chunk-GBFEEHQC.js} +10 -10
  34. package/dist/bundle/{chunk-5IYKVRH2.js → chunk-GCCPFKSU.js} +434 -343
  35. package/dist/bundle/{chunk-3Z4YTSRY.js → chunk-GK4GLPG2.js} +3 -3
  36. package/dist/bundle/{chunk-GZOUFX3C.js → chunk-GSNE7OB4.js} +4 -4
  37. package/dist/bundle/{chunk-TSDBSIFM.js → chunk-HTKSCSJU.js} +4 -4
  38. package/dist/bundle/{chunk-5NFK5EM2.js → chunk-IJMFG7HB.js} +7 -7
  39. package/dist/bundle/{chunk-D7QSEEYW.js → chunk-JIRRF6BM.js} +4 -4
  40. package/dist/bundle/{chunk-5RSC54NA.js → chunk-JODE2XED.js} +25 -25
  41. package/dist/bundle/{chunk-RV64YUQX.js → chunk-K5I64ZVI.js} +9 -9
  42. package/dist/bundle/{chunk-AOCUKEAX.js → chunk-KL3P5TQK.js} +4 -4
  43. package/dist/bundle/{chunk-2LWO3PDX.js → chunk-L62XTC7N.js} +11 -11
  44. package/dist/bundle/{chunk-LLG2POQ7.js → chunk-L6H7PY4X.js} +3 -3
  45. package/dist/bundle/{chunk-5RDNBG7D.js → chunk-LIQMUDIZ.js} +2 -2
  46. package/dist/bundle/{chunk-WF4D56CA.js → chunk-M2EEIYBU.js} +2 -2
  47. package/dist/bundle/{chunk-MZU2YFBZ.js → chunk-M6DGZ2O6.js} +8 -8
  48. package/dist/bundle/{chunk-FXEJY4OL.js → chunk-MRA62W5K.js} +233 -167
  49. package/dist/bundle/{chunk-XYIT2XB3.js → chunk-MVA5HVKL.js} +20 -0
  50. package/dist/bundle/{chunk-YVI5SQPY.js → chunk-NO2LIHWA.js} +1 -1
  51. package/dist/bundle/{chunk-WCSOH4JS.js → chunk-OCDJ4FFA.js} +4 -4
  52. package/dist/bundle/{chunk-2F4QQ7WB.js → chunk-OI5DWZJG.js} +3 -3
  53. package/dist/bundle/{chunk-EUIVXFLJ.js → chunk-P3P6DA6K.js} +6 -6
  54. package/dist/bundle/{chunk-MY742GAD.js → chunk-QX3TPFEX.js} +37 -37
  55. package/dist/bundle/{chunk-6RA3EABS.js → chunk-R6SDRSZK.js} +62 -32
  56. package/dist/bundle/{chunk-5QIQEUOG.js → chunk-RMJMID5D.js} +8 -8
  57. package/dist/bundle/{chunk-BNPTZ5ZB.js → chunk-SGBS5QCU.js} +4 -4
  58. package/dist/bundle/{chunk-YNTLT3Z3.js → chunk-T5UNSFES.js} +8 -8
  59. package/dist/bundle/{chunk-M7S2NDWB.js → chunk-TFNRCCGR.js} +4 -4
  60. package/dist/bundle/{chunk-B7ON6KPT.js → chunk-TJCPTRYD.js} +7 -7
  61. package/dist/bundle/{chunk-KM6WHPHI.js → chunk-TXONV3HW.js} +2 -2
  62. package/dist/bundle/{chunk-NOQ7B5N7.js → chunk-TZ2QJ53V.js} +2 -2
  63. package/dist/bundle/{chunk-KGERXYTV.js → chunk-UKE3CGHK.js} +1 -1
  64. package/dist/bundle/{chunk-6EVKHZKN.js → chunk-UROEWCOG.js} +3 -3
  65. package/dist/bundle/{chunk-WJHZMR2W.js → chunk-WHJWURZB.js} +6 -6
  66. package/dist/bundle/{chunk-G3EZFRSS.js → chunk-WU3XHGOB.js} +112 -42
  67. package/dist/bundle/{chunk-2F6VO5HA.js → chunk-WZEEEQGC.js} +3 -3
  68. package/dist/bundle/{chunk-M3KB25D3.js → chunk-XCTOCVMW.js} +14 -14
  69. package/dist/bundle/{chunk-FT3LN3HP.js → chunk-Y5LAJWR5.js} +1 -1
  70. package/dist/bundle/{chunk-ZZ32DXTH.js → chunk-YAPDU3SV.js} +1 -1
  71. package/dist/bundle/{chunk-HL52XXZX.js → chunk-YFWLHTNO.js} +1 -1
  72. package/dist/bundle/{chunk-P7CUM5IB.js → chunk-YGCI3DHS.js} +1 -1
  73. package/dist/bundle/{chunk-KCLOUUYF.js → chunk-Z53LYX4M.js} +3 -3
  74. package/dist/bundle/{chunk-ZKAEZXUP.js → chunk-ZC6ZQQ55.js} +36 -37
  75. package/dist/bundle/command-contract-UBXS6NHI.js +38 -0
  76. package/dist/bundle/{command-server-entry-UFSG7KRO.js → command-server-entry-2SORMVRM.js} +27 -27
  77. package/dist/bundle/{decode-7LLWTSPT.js → decode-5O7IEFPN.js} +6 -6
  78. package/dist/bundle/{dispatch-2GY6JIJH.js → dispatch-YHQX6FEJ.js} +8 -8
  79. package/dist/bundle/{echarts-BXX4OQWC.js → echarts-ARLMVQC7.js} +2 -2
  80. package/dist/bundle/{embed-JXFNBTKH.js → embed-FUDUKQ3K.js} +7 -7
  81. package/dist/bundle/{embedder-57YZ44KO.js → embedder-HDRV7GX3.js} +10 -10
  82. package/dist/bundle/{failure-MYT4HPE3.js → failure-JHXICWIL.js} +3 -3
  83. package/dist/bundle/first-run-BGEFTXOE.js +29 -0
  84. package/dist/bundle/first-screen-F5F3VS6Y.js +38 -0
  85. package/dist/bundle/{instructions-2VECIDXF.js → instructions-MEFIKCDI.js} +1 -1
  86. package/dist/bundle/{mcp-O6ACR2DX.js → mcp-VMS6PBCU.js} +2 -2
  87. package/dist/bundle/meeting-combined-HNSS3FQY.js +24 -0
  88. package/dist/bundle/meeting-model-REZVYGQW.js +26 -0
  89. package/dist/bundle/{meeting-semantic-ETN3A4BJ.js → meeting-semantic-R4CSLVRG.js} +7 -7
  90. package/dist/bundle/{node-MPEQSFI3.js → node-MAQALPLA.js} +2 -2
  91. package/dist/bundle/{node-sqlite-WA32MYSJ.js → node-sqlite-J7IJYNBO.js} +8 -8
  92. package/dist/bundle/notion.js +14 -14
  93. package/dist/bundle/{oauth-IAFZG3IR.js → oauth-AMV4YGJD.js} +8 -8
  94. package/dist/bundle/{open-M3JQUC5G.js → open-AB27MTGR.js} +6 -6
  95. package/dist/bundle/{openai-HXUEHUSD.js → openai-D77MU5XV.js} +17 -17
  96. package/dist/bundle/{process-F6TKXWWA.js → process-SIOWTRJ6.js} +1 -1
  97. package/dist/bundle/{program-Y7JAB6TG.js → program-7K34KI27.js} +3230 -1722
  98. package/dist/bundle/{prompt-IMUQLZD2.js → prompt-W77YDHA6.js} +6 -6
  99. package/dist/bundle/{recognize-2MZAYHAA.js → recognize-3JAXQQ36.js} +5 -5
  100. package/dist/bundle/{remote-OV4LB6VR.js → remote-PSOJXCXO.js} +11 -11
  101. package/dist/bundle/{rerank-ZIULUS34.js → rerank-EE44ZTGL.js} +8 -8
  102. package/dist/bundle/{schemas-DIVZS6TU.js → schemas-LBYUMBC6.js} +2 -2
  103. package/dist/bundle/{serve-YU7QBP6L.js → serve-XJMGAMFW.js} +10 -10
  104. package/dist/bundle/{server-LGMNONSB.js → server-ASU6CP5R.js} +51 -51
  105. package/dist/bundle/server-WSPQ5EOA.js +72 -0
  106. package/dist/bundle/{services-5WY4DCPJ.js → services-PT4PA4J6.js} +46 -39
  107. package/dist/bundle/{sqlite-runtime-5MXZDETH.js → sqlite-runtime-YHXRTVXE.js} +7 -7
  108. package/dist/bundle/{state-LWMZH2KI.js → state-T6ZKFWGD.js} +7 -7
  109. package/dist/bundle/{store-EPZYV4VW.js → store-3MUCZEI3.js} +20 -18
  110. package/dist/bundle/{store-QE6FEIZD.js → store-E5EE25FY.js} +24 -20
  111. package/dist/bundle/store-maintenance-command-ZZ55BBBG.js +63 -0
  112. package/dist/commands/api.d.ts.map +1 -1
  113. package/dist/commands/api.js +13 -4
  114. package/dist/commands/api.js.map +1 -1
  115. package/dist/commands/comments.d.ts +4 -0
  116. package/dist/commands/comments.d.ts.map +1 -0
  117. package/dist/commands/comments.js +80 -0
  118. package/dist/commands/comments.js.map +1 -0
  119. package/dist/commands/documents.d.ts +8 -0
  120. package/dist/commands/documents.d.ts.map +1 -1
  121. package/dist/commands/documents.js +74 -1
  122. package/dist/commands/documents.js.map +1 -1
  123. package/dist/commands/files.d.ts +4 -0
  124. package/dist/commands/files.d.ts.map +1 -0
  125. package/dist/commands/files.js +57 -0
  126. package/dist/commands/files.js.map +1 -0
  127. package/dist/commands/library.d.ts.map +1 -1
  128. package/dist/commands/library.js +50 -9
  129. package/dist/commands/library.js.map +1 -1
  130. package/dist/commands/writing.d.ts +32 -0
  131. package/dist/commands/writing.d.ts.map +1 -0
  132. package/dist/commands/writing.js +126 -0
  133. package/dist/commands/writing.js.map +1 -0
  134. package/dist/config.d.ts +19 -0
  135. package/dist/config.d.ts.map +1 -1
  136. package/dist/config.js +76 -5
  137. package/dist/config.js.map +1 -1
  138. package/dist/context.d.ts +3 -0
  139. package/dist/context.d.ts.map +1 -1
  140. package/dist/context.js +3 -0
  141. package/dist/context.js.map +1 -1
  142. package/dist/generated/types.d.ts +485 -375
  143. package/dist/generated/types.d.ts.map +1 -1
  144. package/dist/notion/errors.d.ts +5 -0
  145. package/dist/notion/errors.d.ts.map +1 -1
  146. package/dist/notion/errors.js +9 -0
  147. package/dist/notion/errors.js.map +1 -1
  148. package/dist/notion/notion.d.ts +38 -0
  149. package/dist/notion/notion.d.ts.map +1 -1
  150. package/dist/notion/notion.js +43 -0
  151. package/dist/notion/notion.js.map +1 -1
  152. package/dist/notion/writes.d.ts +78 -0
  153. package/dist/notion/writes.d.ts.map +1 -0
  154. package/dist/notion/writes.js +185 -0
  155. package/dist/notion/writes.js.map +1 -0
  156. package/dist/program.d.ts.map +1 -1
  157. package/dist/program.js +4 -0
  158. package/dist/program.js.map +1 -1
  159. package/dist/sync/browse.d.ts +30 -0
  160. package/dist/sync/browse.d.ts.map +1 -0
  161. package/dist/sync/browse.js +67 -0
  162. package/dist/sync/browse.js.map +1 -0
  163. package/dist/sync/cursor.d.ts +29 -0
  164. package/dist/sync/cursor.d.ts.map +1 -1
  165. package/dist/sync/cursor.js +28 -0
  166. package/dist/sync/cursor.js.map +1 -1
  167. package/dist/sync/files.d.ts +11 -0
  168. package/dist/sync/files.d.ts.map +1 -1
  169. package/dist/sync/files.js +29 -0
  170. package/dist/sync/files.js.map +1 -1
  171. package/dist/sync/source.d.ts +3 -3
  172. package/dist/sync/source.d.ts.map +1 -1
  173. package/dist/sync/source.js +81 -63
  174. package/dist/sync/source.js.map +1 -1
  175. package/dist/version.d.ts +1 -1
  176. package/dist/version.js +1 -1
  177. package/package.json +3 -3
  178. package/skills/notion-cli/SKILL.md +6 -0
  179. package/dist/bundle/command-contract-JS5V27NX.js +0 -38
  180. package/dist/bundle/first-run-3PF7T74J.js +0 -29
  181. package/dist/bundle/first-screen-7BEROEQR.js +0 -36
  182. package/dist/bundle/meeting-combined-PPUQ3KBR.js +0 -24
  183. package/dist/bundle/meeting-model-ZNMYKMCD.js +0 -26
  184. package/dist/bundle/server-FKQET4ZO.js +0 -71
  185. package/dist/bundle/store-maintenance-command-ZUUUFCHL.js +0 -62
  186. /package/dist/bundle/{chunk-VKE77B3F.js → chunk-SHTHNBHG.js} +0 -0
@@ -1387,7 +1387,9 @@ export type CreateViewRequest = {
1387
1387
  /** Property sorts to save on the view. Timestamp sorts are accepted but are not saved. */
1388
1388
  sorts?: ViewSortsRequest;
1389
1389
  /** Quick filters to pin in the view's filter bar. Keys are property names or IDs. Values are filter conditions (same shape as a property filter but without the property field). Each quick filter appears as a clickable pill above the view, independent of the advanced filter. */
1390
- quick_filters?: Record<string, QuickFilterConditionRequest>;
1390
+ quick_filters?: {
1391
+ [key: string]: QuickFilterConditionRequest;
1392
+ };
1391
1393
  /** Create a new linked database block on a page and add the view to it. Mutually exclusive with database_id and view_id. */
1392
1394
  create_database?: CreateDatabaseForViewRequest;
1393
1395
  /** View presentation configuration. The type field must match the view type. */
@@ -1723,7 +1725,9 @@ export type DataSourceObjectResponse = {
1723
1725
  /** The user who last edited the data source. */
1724
1726
  last_edited_by: PartialUserObjectResponse;
1725
1727
  /** The properties schema of the data source. */
1726
- properties: Record<string, DatabasePropertyConfigResponse>;
1728
+ properties: {
1729
+ [key: string]: DatabasePropertyConfigResponse;
1730
+ };
1727
1731
  /** The icon of the data source. */
1728
1732
  icon: PageIconResponse | null;
1729
1733
  /** The cover of the data source. */
@@ -2000,7 +2004,9 @@ export type DataSourceViewObjectResponse = {
2000
2004
  /** The sorts applied to this view (same shape as data source query sorts). */
2001
2005
  sorts?: Array<ViewSortResponse> | null;
2002
2006
  /** Quick filters pinned to the view's filter bar. Keys are property IDs. Values are filter conditions (same shape as a property filter without the property field). Null when no quick filters are set. */
2003
- quick_filters?: Record<string, QuickFilterConditionResponse> | null;
2007
+ quick_filters?: {
2008
+ [key: string]: QuickFilterConditionResponse;
2009
+ } | null;
2004
2010
  /** View presentation configuration. */
2005
2011
  configuration?: ViewConfigResponse | null;
2006
2012
  /** For dashboard widget views, the ID of the parent dashboard view. Only present when this view is a widget inside a dashboard. */
@@ -2874,21 +2880,27 @@ export type EquationRichTextItemResponse = {
2874
2880
  export type ErrorApi400 = {
2875
2881
  object: "error";
2876
2882
  message: string;
2877
- additional_data?: Record<string, string | Array<string>>;
2883
+ additional_data?: {
2884
+ [key: string]: string | Array<string>;
2885
+ };
2878
2886
  code: "invalid_json" | "invalid_request_url" | "invalid_request" | "missing_version" | "invalid_beta" | "validation_error" | "invalid_credit_limit";
2879
2887
  status: 400;
2880
2888
  };
2881
2889
  export type ErrorApi401 = {
2882
2890
  object: "error";
2883
2891
  message: string;
2884
- additional_data?: Record<string, string | Array<string>>;
2892
+ additional_data?: {
2893
+ [key: string]: string | Array<string>;
2894
+ };
2885
2895
  code: "unauthorized";
2886
2896
  status: 401;
2887
2897
  };
2888
2898
  export type ErrorApi403 = {
2889
2899
  object: "error";
2890
2900
  message: string;
2891
- additional_data?: Record<string, string | Array<string>>;
2901
+ additional_data?: {
2902
+ [key: string]: string | Array<string>;
2903
+ };
2892
2904
  code: "restricted_resource" | "status_change_not_allowed";
2893
2905
  status: 403;
2894
2906
  } | {
@@ -2902,7 +2914,9 @@ export type ErrorApi403 = {
2902
2914
  recovery_kind: "contact_workspace_owner" | "open_workspace_credit_settings";
2903
2915
  /** Present when recovery_kind directs the caller to a settings page. */
2904
2916
  recovery_url?: string;
2905
- } & Record<string, string | Array<string>>;
2917
+ } & {
2918
+ [key: string]: string | Array<string>;
2919
+ };
2906
2920
  code: "workspace_credits_exhausted";
2907
2921
  status: 403;
2908
2922
  } | {
@@ -2916,91 +2930,117 @@ export type ErrorApi403 = {
2916
2930
  recovery_kind: "contact_workspace_owner" | "none" | "open_agent_settings" | "request_agent_limit_increase" | "request_pending";
2917
2931
  /** Present when recovery_kind directs the caller to a settings page. */
2918
2932
  recovery_url?: string;
2919
- } & Record<string, string | Array<string>>;
2933
+ } & {
2934
+ [key: string]: string | Array<string>;
2935
+ };
2920
2936
  code: "agent_credit_limit_reached";
2921
2937
  status: 403;
2922
2938
  };
2923
2939
  export type ErrorApi404 = {
2924
2940
  object: "error";
2925
2941
  message: string;
2926
- additional_data?: Record<string, string | Array<string>>;
2942
+ additional_data?: {
2943
+ [key: string]: string | Array<string>;
2944
+ };
2927
2945
  code: "object_not_found" | "directory_not_found";
2928
2946
  status: 404;
2929
2947
  };
2930
2948
  export type ErrorApi406 = {
2931
2949
  object: "error";
2932
2950
  message: string;
2933
- additional_data?: Record<string, string | Array<string>>;
2951
+ additional_data?: {
2952
+ [key: string]: string | Array<string>;
2953
+ };
2934
2954
  code: "row_limit_exceeded";
2935
2955
  status: 406;
2936
2956
  };
2937
2957
  export type ErrorApi409 = {
2938
2958
  object: "error";
2939
2959
  message: string;
2940
- additional_data?: Record<string, string | Array<string>>;
2960
+ additional_data?: {
2961
+ [key: string]: string | Array<string>;
2962
+ };
2941
2963
  code: "conflict_error" | "idempotency_key_reused" | "agent_deleted";
2942
2964
  status: 409;
2943
2965
  };
2944
2966
  export type ErrorApi429 = {
2945
2967
  object: "error";
2946
2968
  message: string;
2947
- additional_data?: Record<string, string | Array<string>>;
2969
+ additional_data?: {
2970
+ [key: string]: string | Array<string>;
2971
+ };
2948
2972
  code: "rate_limited";
2949
2973
  status: 429;
2950
2974
  };
2951
2975
  export type ErrorApi500 = {
2952
2976
  object: "error";
2953
2977
  message: string;
2954
- additional_data?: Record<string, string | Array<string>>;
2978
+ additional_data?: {
2979
+ [key: string]: string | Array<string>;
2980
+ };
2955
2981
  code: "internal_server_error";
2956
2982
  status: 500;
2957
2983
  };
2958
2984
  export type ErrorApi503 = {
2959
2985
  object: "error";
2960
2986
  message: string;
2961
- additional_data?: Record<string, string | Array<string>>;
2987
+ additional_data?: {
2988
+ [key: string]: string | Array<string>;
2989
+ };
2962
2990
  code: "service_unavailable";
2963
2991
  status: 503;
2964
2992
  };
2965
2993
  export type ErrorApi504 = {
2966
2994
  object: "error";
2967
2995
  message: string;
2968
- additional_data?: Record<string, string | Array<string>>;
2996
+ additional_data?: {
2997
+ [key: string]: string | Array<string>;
2998
+ };
2969
2999
  code: "gateway_timeout";
2970
3000
  status: 504;
2971
3001
  };
2972
3002
  export type ErrorApi529 = {
2973
3003
  object: "error";
2974
3004
  message: string;
2975
- additional_data?: Record<string, string | Array<string>>;
3005
+ additional_data?: {
3006
+ [key: string]: string | Array<string>;
3007
+ };
2976
3008
  code: "service_overload";
2977
3009
  status: 529;
2978
3010
  };
2979
3011
  export type ErrorOauth400 = {
2980
3012
  object: "error";
2981
3013
  message: string;
2982
- additional_data?: Record<string, string | Array<string>>;
3014
+ additional_data?: {
3015
+ [key: string]: string | Array<string>;
3016
+ };
2983
3017
  code: "invalid_request" | "invalid_grant" | "unauthorized_client" | "unsupported_grant_type" | "invalid_scope";
2984
3018
  status: 400;
2985
3019
  };
2986
3020
  export type ErrorOauth401 = {
2987
3021
  object: "error";
2988
3022
  message: string;
2989
- additional_data?: Record<string, string | Array<string>>;
3023
+ additional_data?: {
3024
+ [key: string]: string | Array<string>;
3025
+ };
2990
3026
  code: "invalid_client";
2991
3027
  status: 401;
2992
3028
  };
2993
3029
  export type ErrorOauth403 = {
2994
3030
  object: "error";
2995
3031
  message: string;
2996
- additional_data?: Record<string, string | Array<string>>;
3032
+ additional_data?: {
3033
+ [key: string]: string | Array<string>;
3034
+ };
2997
3035
  code: "test_env_error";
2998
3036
  status: 403;
2999
3037
  };
3000
3038
  export type ErrorOauth500 = {
3001
3039
  object: "error";
3002
3040
  message: string;
3003
- additional_data?: Record<string, string | Array<string>>;
3041
+ additional_data?: {
3042
+ [key: string]: string | Array<string>;
3043
+ };
3004
3044
  code: "internal_server_error";
3005
3045
  status: 500;
3006
3046
  };
@@ -3742,7 +3782,9 @@ export type ImageBlockObjectResponse = {
3742
3782
  };
3743
3783
  export type InitialDataSourceRequest = {
3744
3784
  /** Property schema for the initial data source, if you'd like to create one. */
3745
- properties?: Record<string, PropertyConfigurationRequest>;
3785
+ properties?: {
3786
+ [key: string]: PropertyConfigurationRequest;
3787
+ };
3746
3788
  };
3747
3789
  export type InternalFileRequest = {
3748
3790
  url: string;
@@ -4653,7 +4695,9 @@ export type PageObjectResponse = {
4653
4695
  /** Information about the page's parent. */
4654
4696
  parent: ParentForBlockBasedObjectResponse;
4655
4697
  /** Property values of this page. */
4656
- properties: Record<string, PagePropertyValueWithIdResponse>;
4698
+ properties: {
4699
+ [key: string]: PagePropertyValueWithIdResponse;
4700
+ };
4657
4701
  /** Page icon. */
4658
4702
  icon: PageIconResponse | null;
4659
4703
  /** Page cover image. */
@@ -4685,97 +4729,99 @@ export type PagePositionSchema = {
4685
4729
  } | {
4686
4730
  type: "page_end";
4687
4731
  };
4688
- export type PagePropertiesRequest = Record<string, {
4689
- title: Array<RichTextItemRequest>;
4690
- type?: "title";
4691
- } | {
4692
- rich_text: Array<RichTextItemRequest>;
4693
- type?: "rich_text";
4694
- } | {
4695
- number: number | null;
4696
- type?: "number";
4697
- } | {
4698
- url: TextRequest | null;
4699
- type?: "url";
4700
- } | {
4701
- select: ({
4702
- id: StringRequest;
4703
- name?: TextRequest;
4704
- color?: SelectColor;
4705
- description?: TextRequest | null;
4732
+ export type PagePropertiesRequest = {
4733
+ [key: string]: {
4734
+ title: Array<RichTextItemRequest>;
4735
+ type?: "title";
4706
4736
  } | {
4707
- name: TextRequest;
4708
- id?: StringRequest;
4709
- color?: SelectColor;
4710
- description?: TextRequest | null;
4711
- }) | null;
4712
- type?: "select";
4713
- } | {
4714
- multi_select: Array<{
4715
- id: StringRequest;
4716
- name?: TextRequest;
4717
- color?: SelectColor;
4718
- description?: TextRequest | null;
4737
+ rich_text: Array<RichTextItemRequest>;
4738
+ type?: "rich_text";
4719
4739
  } | {
4720
- name: TextRequest;
4721
- id?: StringRequest;
4722
- color?: SelectColor;
4723
- description?: TextRequest | null;
4724
- }>;
4725
- type?: "multi_select";
4726
- } | {
4727
- people: Array<PartialUserObjectRequest | GroupObjectRequest>;
4728
- type?: "people";
4729
- } | {
4730
- email: StringRequest | null;
4731
- type?: "email";
4732
- } | {
4733
- phone_number: StringRequest | null;
4734
- type?: "phone_number";
4735
- } | {
4736
- date: DateRequest | null;
4737
- type?: "date";
4738
- } | {
4739
- checkbox: boolean;
4740
- type?: "checkbox";
4741
- } | {
4742
- relation: Array<RelationItemPropertyValueResponse>;
4743
- type?: "relation";
4744
- } | {
4745
- files: Array<InternalOrExternalFileWithNameRequest | FileUploadWithOptionalNameRequest>;
4746
- type?: "files";
4747
- } | {
4748
- status: ({
4749
- id: StringRequest;
4750
- name?: TextRequest;
4751
- color?: SelectColor;
4752
- description?: TextRequest | null;
4740
+ number: number | null;
4741
+ type?: "number";
4753
4742
  } | {
4754
- name: TextRequest;
4755
- id?: StringRequest;
4756
- color?: SelectColor;
4757
- description?: TextRequest | null;
4758
- }) | null;
4759
- type?: "status";
4760
- } | {
4761
- place: {
4762
- lat: number;
4763
- lon: number;
4764
- name?: string | null;
4765
- address?: string | null;
4766
- aws_place_id?: string | null;
4767
- google_place_id?: string | null;
4768
- } | null;
4769
- type?: "place";
4770
- } | {
4771
- verification: {
4772
- state: "verified";
4773
- date?: DateRequest;
4743
+ url: TextRequest | null;
4744
+ type?: "url";
4745
+ } | {
4746
+ select: ({
4747
+ id: StringRequest;
4748
+ name?: TextRequest;
4749
+ color?: SelectColor;
4750
+ description?: TextRequest | null;
4751
+ } | {
4752
+ name: TextRequest;
4753
+ id?: StringRequest;
4754
+ color?: SelectColor;
4755
+ description?: TextRequest | null;
4756
+ }) | null;
4757
+ type?: "select";
4758
+ } | {
4759
+ multi_select: Array<{
4760
+ id: StringRequest;
4761
+ name?: TextRequest;
4762
+ color?: SelectColor;
4763
+ description?: TextRequest | null;
4764
+ } | {
4765
+ name: TextRequest;
4766
+ id?: StringRequest;
4767
+ color?: SelectColor;
4768
+ description?: TextRequest | null;
4769
+ }>;
4770
+ type?: "multi_select";
4771
+ } | {
4772
+ people: Array<PartialUserObjectRequest | GroupObjectRequest>;
4773
+ type?: "people";
4774
+ } | {
4775
+ email: StringRequest | null;
4776
+ type?: "email";
4777
+ } | {
4778
+ phone_number: StringRequest | null;
4779
+ type?: "phone_number";
4780
+ } | {
4781
+ date: DateRequest | null;
4782
+ type?: "date";
4783
+ } | {
4784
+ checkbox: boolean;
4785
+ type?: "checkbox";
4786
+ } | {
4787
+ relation: Array<RelationItemPropertyValueResponse>;
4788
+ type?: "relation";
4789
+ } | {
4790
+ files: Array<InternalOrExternalFileWithNameRequest | FileUploadWithOptionalNameRequest>;
4791
+ type?: "files";
4792
+ } | {
4793
+ status: ({
4794
+ id: StringRequest;
4795
+ name?: TextRequest;
4796
+ color?: SelectColor;
4797
+ description?: TextRequest | null;
4798
+ } | {
4799
+ name: TextRequest;
4800
+ id?: StringRequest;
4801
+ color?: SelectColor;
4802
+ description?: TextRequest | null;
4803
+ }) | null;
4804
+ type?: "status";
4805
+ } | {
4806
+ place: {
4807
+ lat: number;
4808
+ lon: number;
4809
+ name?: string | null;
4810
+ address?: string | null;
4811
+ aws_place_id?: string | null;
4812
+ google_place_id?: string | null;
4813
+ } | null;
4814
+ type?: "place";
4774
4815
  } | {
4775
- state: "unverified";
4816
+ verification: {
4817
+ state: "verified";
4818
+ date?: DateRequest;
4819
+ } | {
4820
+ state: "unverified";
4821
+ };
4822
+ type?: "verification";
4776
4823
  };
4777
- type?: "verification";
4778
- }>;
4824
+ };
4779
4825
  export type PagePropertiesUpdatedWebhookPayload = {
4780
4826
  /** Unique identifier for this webhook event. */
4781
4827
  id: string;
@@ -5160,7 +5206,9 @@ export type PartialDataSourceObjectResponse = {
5160
5206
  /** The ID of the data source. */
5161
5207
  id: IdResponse;
5162
5208
  /** The properties schema of the data source. */
5163
- properties: Record<string, DatabasePropertyConfigResponse>;
5209
+ properties: {
5210
+ [key: string]: DatabasePropertyConfigResponse;
5211
+ };
5164
5212
  };
5165
5213
  export type PartialDataSourceViewObjectResponse = {
5166
5214
  /** The object type name. */
@@ -5735,7 +5783,9 @@ export type PublicApiAsyncTaskStatusResultJsonValue = unknown;
5735
5783
  export type PublicApiCommonErrorResponse = {
5736
5784
  object: "error";
5737
5785
  message: string;
5738
- additional_data?: Record<string, string | Array<string>>;
5786
+ additional_data?: {
5787
+ [key: string]: string | Array<string>;
5788
+ };
5739
5789
  };
5740
5790
  /** A property filter condition. The quick filter key identifies the property. Pass an empty object to add the property to the filter bar without criteria. */
5741
5791
  export type QuickFilterConditionRequest = EmptyObject | ({
@@ -6956,7 +7006,9 @@ export type UpdateViewRequest = {
6956
7006
  /** Property sorts to apply to the view. Only property-based sorts are supported. Pass null to clear the sorts. */
6957
7007
  sorts?: ViewPropertySortsRequest | null;
6958
7008
  /** Quick filters for the view's filter bar. Keys are property names or IDs. Set a key to a filter condition to add/update that quick filter. Set a key to null to remove it. Pass null for the entire field to clear all quick filters. Unmentioned quick filters are preserved. */
6959
- quick_filters?: Record<string, QuickFilterConditionRequest | null> | null;
7009
+ quick_filters?: {
7010
+ [key: string]: QuickFilterConditionRequest | null;
7011
+ } | null;
6960
7012
  /** View presentation configuration. The type field must match the view type. Individual nullable fields within the configuration can be set to null to clear them. */
6961
7013
  configuration?: ViewConfigRequest;
6962
7014
  };
@@ -7643,7 +7695,9 @@ export type RetrieveAsyncTaskResponse = {
7643
7695
  name: string;
7644
7696
  };
7645
7697
  status: "succeeded";
7646
- result: Record<string, PublicApiAsyncTaskStatusResultJsonValue>;
7698
+ result: {
7699
+ [key: string]: PublicApiAsyncTaskStatusResultJsonValue;
7700
+ };
7647
7701
  } | {
7648
7702
  object: "async_task";
7649
7703
  id: string;
@@ -7659,139 +7713,185 @@ export type RetrieveAsyncTaskResponse = {
7659
7713
  status: 400;
7660
7714
  code: "invalid_json";
7661
7715
  message: string;
7662
- additional_data?: Record<string, string | Array<string>>;
7716
+ additional_data?: {
7717
+ [key: string]: string | Array<string>;
7718
+ };
7663
7719
  } | {
7664
7720
  object: "error";
7665
7721
  status: 400;
7666
7722
  code: "invalid_request_url";
7667
7723
  message: string;
7668
- additional_data?: Record<string, string | Array<string>>;
7724
+ additional_data?: {
7725
+ [key: string]: string | Array<string>;
7726
+ };
7669
7727
  } | {
7670
7728
  object: "error";
7671
7729
  status: 400;
7672
7730
  code: "invalid_request";
7673
7731
  message: string;
7674
- additional_data?: Record<string, string | Array<string>>;
7732
+ additional_data?: {
7733
+ [key: string]: string | Array<string>;
7734
+ };
7675
7735
  } | {
7676
7736
  object: "error";
7677
7737
  status: 400;
7678
7738
  code: "missing_version";
7679
7739
  message: string;
7680
- additional_data?: Record<string, string | Array<string>>;
7740
+ additional_data?: {
7741
+ [key: string]: string | Array<string>;
7742
+ };
7681
7743
  } | {
7682
7744
  object: "error";
7683
7745
  status: 400;
7684
7746
  code: "invalid_beta";
7685
7747
  message: string;
7686
- additional_data?: Record<string, string | Array<string>>;
7748
+ additional_data?: {
7749
+ [key: string]: string | Array<string>;
7750
+ };
7687
7751
  } | {
7688
7752
  object: "error";
7689
7753
  status: 400;
7690
7754
  code: "validation_error";
7691
7755
  message: string;
7692
- additional_data?: Record<string, string | Array<string>>;
7756
+ additional_data?: {
7757
+ [key: string]: string | Array<string>;
7758
+ };
7693
7759
  } | {
7694
7760
  object: "error";
7695
7761
  status: 401;
7696
7762
  code: "unauthorized";
7697
7763
  message: string;
7698
- additional_data?: Record<string, string | Array<string>>;
7764
+ additional_data?: {
7765
+ [key: string]: string | Array<string>;
7766
+ };
7699
7767
  } | {
7700
7768
  object: "error";
7701
7769
  status: 403;
7702
7770
  code: "restricted_resource";
7703
7771
  message: string;
7704
- additional_data?: Record<string, string | Array<string>>;
7772
+ additional_data?: {
7773
+ [key: string]: string | Array<string>;
7774
+ };
7705
7775
  } | {
7706
7776
  object: "error";
7707
7777
  status: 404;
7708
7778
  code: "object_not_found";
7709
7779
  message: string;
7710
- additional_data?: Record<string, string | Array<string>>;
7780
+ additional_data?: {
7781
+ [key: string]: string | Array<string>;
7782
+ };
7711
7783
  } | {
7712
7784
  object: "error";
7713
7785
  status: 404;
7714
7786
  code: "directory_not_found";
7715
7787
  message: string;
7716
- additional_data?: Record<string, string | Array<string>>;
7788
+ additional_data?: {
7789
+ [key: string]: string | Array<string>;
7790
+ };
7717
7791
  } | {
7718
7792
  object: "error";
7719
7793
  status: 429;
7720
7794
  code: "rate_limited";
7721
7795
  message: string;
7722
- additional_data?: Record<string, string | Array<string>>;
7796
+ additional_data?: {
7797
+ [key: string]: string | Array<string>;
7798
+ };
7723
7799
  } | {
7724
7800
  object: "error";
7725
7801
  status: 529;
7726
7802
  code: "service_overload";
7727
7803
  message: string;
7728
- additional_data?: Record<string, string | Array<string>>;
7804
+ additional_data?: {
7805
+ [key: string]: string | Array<string>;
7806
+ };
7729
7807
  } | {
7730
7808
  object: "error";
7731
7809
  status: 500;
7732
7810
  code: "internal_server_error";
7733
7811
  message: string;
7734
- additional_data?: Record<string, string | Array<string>>;
7812
+ additional_data?: {
7813
+ [key: string]: string | Array<string>;
7814
+ };
7735
7815
  } | {
7736
7816
  object: "error";
7737
7817
  status: 503;
7738
7818
  code: "service_unavailable";
7739
7819
  message: string;
7740
- additional_data?: Record<string, string | Array<string>>;
7820
+ additional_data?: {
7821
+ [key: string]: string | Array<string>;
7822
+ };
7741
7823
  } | {
7742
7824
  object: "error";
7743
7825
  status: 504;
7744
7826
  code: "gateway_timeout";
7745
7827
  message: string;
7746
- additional_data?: Record<string, string | Array<string>>;
7828
+ additional_data?: {
7829
+ [key: string]: string | Array<string>;
7830
+ };
7747
7831
  } | {
7748
7832
  object: "error";
7749
7833
  status: 409;
7750
7834
  code: "conflict_error";
7751
7835
  message: string;
7752
- additional_data?: Record<string, string | Array<string>>;
7836
+ additional_data?: {
7837
+ [key: string]: string | Array<string>;
7838
+ };
7753
7839
  } | {
7754
7840
  object: "error";
7755
7841
  status: 409;
7756
7842
  code: "idempotency_key_reused";
7757
7843
  message: string;
7758
- additional_data?: Record<string, string | Array<string>>;
7844
+ additional_data?: {
7845
+ [key: string]: string | Array<string>;
7846
+ };
7759
7847
  } | {
7760
7848
  object: "error";
7761
7849
  status: 406;
7762
7850
  code: "row_limit_exceeded";
7763
7851
  message: string;
7764
- additional_data?: Record<string, string | Array<string>>;
7852
+ additional_data?: {
7853
+ [key: string]: string | Array<string>;
7854
+ };
7765
7855
  } | {
7766
7856
  object: "error";
7767
7857
  status: 403;
7768
7858
  code: "status_change_not_allowed";
7769
7859
  message: string;
7770
- additional_data?: Record<string, string | Array<string>>;
7860
+ additional_data?: {
7861
+ [key: string]: string | Array<string>;
7862
+ };
7771
7863
  } | {
7772
7864
  object: "error";
7773
7865
  status: 409;
7774
7866
  code: "agent_deleted";
7775
7867
  message: string;
7776
- additional_data?: Record<string, string | Array<string>>;
7868
+ additional_data?: {
7869
+ [key: string]: string | Array<string>;
7870
+ };
7777
7871
  } | {
7778
7872
  object: "error";
7779
7873
  status: 400;
7780
7874
  code: "invalid_credit_limit";
7781
7875
  message: string;
7782
- additional_data?: Record<string, string | Array<string>>;
7876
+ additional_data?: {
7877
+ [key: string]: string | Array<string>;
7878
+ };
7783
7879
  } | {
7784
7880
  object: "error";
7785
7881
  status: 403;
7786
7882
  code: "workspace_credits_exhausted";
7787
7883
  message: string;
7788
- additional_data?: Record<string, string | Array<string>>;
7884
+ additional_data?: {
7885
+ [key: string]: string | Array<string>;
7886
+ };
7789
7887
  } | {
7790
7888
  object: "error";
7791
7889
  status: 403;
7792
7890
  code: "agent_credit_limit_reached";
7793
7891
  message: string;
7794
- additional_data?: Record<string, string | Array<string>>;
7892
+ additional_data?: {
7893
+ [key: string]: string | Array<string>;
7894
+ };
7795
7895
  };
7796
7896
  };
7797
7897
  export type RetrieveABlockResponse = PartialBlockObjectResponse | BlockObjectResponse;
@@ -7982,249 +8082,251 @@ export type UpdateADataSourceRequest = {
7982
8082
  /** Data source icon. */
7983
8083
  icon?: PageIconRequest | null;
7984
8084
  /** The property schema of the data source. The keys are property names or IDs, and the values are property configuration objects. Properties set to null will be removed. */
7985
- properties?: Record<string, (({
7986
- /** The name of the property. */
7987
- name?: string;
7988
- /** The description of the property. */
7989
- description?: PropertyDescriptionRequest | null;
7990
- /** Always `number` */
7991
- type?: "number";
7992
- number: {
7993
- format?: NumberFormat;
7994
- };
7995
- } | {
7996
- /** The name of the property. */
7997
- name?: string;
7998
- /** The description of the property. */
7999
- description?: PropertyDescriptionRequest | null;
8000
- /** Always `formula` */
8001
- type?: "formula";
8002
- formula: {
8003
- expression?: string;
8004
- };
8005
- } | {
8006
- /** The name of the property. */
8007
- name?: string;
8008
- /** The description of the property. */
8009
- description?: PropertyDescriptionRequest | null;
8010
- /** Always `select` */
8011
- type?: "select";
8012
- select: {
8013
- options?: Array<{
8014
- color?: SelectColor;
8015
- description?: string | null;
8016
- name: string;
8017
- id?: string;
8085
+ properties?: {
8086
+ [key: string]: (({
8087
+ /** The name of the property. */
8088
+ name?: string;
8089
+ /** The description of the property. */
8090
+ description?: PropertyDescriptionRequest | null;
8091
+ /** Always `number` */
8092
+ type?: "number";
8093
+ number: {
8094
+ format?: NumberFormat;
8095
+ };
8096
+ } | {
8097
+ /** The name of the property. */
8098
+ name?: string;
8099
+ /** The description of the property. */
8100
+ description?: PropertyDescriptionRequest | null;
8101
+ /** Always `formula` */
8102
+ type?: "formula";
8103
+ formula: {
8104
+ expression?: string;
8105
+ };
8106
+ } | {
8107
+ /** The name of the property. */
8108
+ name?: string;
8109
+ /** The description of the property. */
8110
+ description?: PropertyDescriptionRequest | null;
8111
+ /** Always `select` */
8112
+ type?: "select";
8113
+ select: {
8114
+ options?: Array<{
8115
+ color?: SelectColor;
8116
+ description?: string | null;
8117
+ name: string;
8118
+ id?: string;
8119
+ } | {
8120
+ color?: SelectColor;
8121
+ description?: string | null;
8122
+ id: string;
8123
+ name?: string;
8124
+ }>;
8125
+ };
8126
+ } | {
8127
+ /** The name of the property. */
8128
+ name?: string;
8129
+ /** The description of the property. */
8130
+ description?: PropertyDescriptionRequest | null;
8131
+ /** Always `multi_select` */
8132
+ type?: "multi_select";
8133
+ multi_select: {
8134
+ options?: Array<{
8135
+ color?: SelectColor;
8136
+ description?: string | null;
8137
+ name: string;
8138
+ id?: string;
8139
+ } | {
8140
+ color?: SelectColor;
8141
+ description?: string | null;
8142
+ id: string;
8143
+ name?: string;
8144
+ }>;
8145
+ };
8146
+ } | {
8147
+ /** The name of the property. */
8148
+ name?: string;
8149
+ /** The description of the property. */
8150
+ description?: PropertyDescriptionRequest | null;
8151
+ /** Always `status` */
8152
+ type?: "status";
8153
+ status: StatusPropertyConfigUpdateRequest;
8154
+ } | {
8155
+ /** The name of the property. */
8156
+ name?: string;
8157
+ /** The description of the property. */
8158
+ description?: PropertyDescriptionRequest | null;
8159
+ /** Always `relation` */
8160
+ type?: "relation";
8161
+ relation: {
8162
+ data_source_id: IdRequest;
8163
+ /** Always `single_property` */
8164
+ type?: "single_property";
8165
+ single_property: EmptyObject;
8018
8166
  } | {
8019
- color?: SelectColor;
8020
- description?: string | null;
8021
- id: string;
8022
- name?: string;
8023
- }>;
8024
- };
8025
- } | {
8026
- /** The name of the property. */
8027
- name?: string;
8028
- /** The description of the property. */
8029
- description?: PropertyDescriptionRequest | null;
8030
- /** Always `multi_select` */
8031
- type?: "multi_select";
8032
- multi_select: {
8033
- options?: Array<{
8034
- color?: SelectColor;
8035
- description?: string | null;
8036
- name: string;
8037
- id?: string;
8167
+ data_source_id: IdRequest;
8168
+ /** Always `dual_property` */
8169
+ type?: "dual_property";
8170
+ dual_property: {
8171
+ synced_property_id?: string;
8172
+ synced_property_name?: string;
8173
+ };
8174
+ };
8175
+ } | {
8176
+ /** The name of the property. */
8177
+ name?: string;
8178
+ /** The description of the property. */
8179
+ description?: PropertyDescriptionRequest | null;
8180
+ /** Always `rollup` */
8181
+ type?: "rollup";
8182
+ rollup: {
8183
+ /** The function to use for the rollup, e.g. count, count_values, percent_not_empty, max. */
8184
+ function: RollupFunction;
8185
+ relation_property_name: string;
8186
+ rollup_property_name: string;
8038
8187
  } | {
8039
- color?: SelectColor;
8040
- description?: string | null;
8041
- id: string;
8042
- name?: string;
8043
- }>;
8044
- };
8045
- } | {
8046
- /** The name of the property. */
8047
- name?: string;
8048
- /** The description of the property. */
8049
- description?: PropertyDescriptionRequest | null;
8050
- /** Always `status` */
8051
- type?: "status";
8052
- status: StatusPropertyConfigUpdateRequest;
8053
- } | {
8054
- /** The name of the property. */
8055
- name?: string;
8056
- /** The description of the property. */
8057
- description?: PropertyDescriptionRequest | null;
8058
- /** Always `relation` */
8059
- type?: "relation";
8060
- relation: {
8061
- data_source_id: IdRequest;
8062
- /** Always `single_property` */
8063
- type?: "single_property";
8064
- single_property: EmptyObject;
8188
+ /** The function to use for the rollup, e.g. count, count_values, percent_not_empty, max. */
8189
+ function: RollupFunction;
8190
+ relation_property_id: string;
8191
+ rollup_property_name: string;
8192
+ } | {
8193
+ /** The function to use for the rollup, e.g. count, count_values, percent_not_empty, max. */
8194
+ function: RollupFunction;
8195
+ relation_property_name: string;
8196
+ rollup_property_id: string;
8197
+ } | {
8198
+ /** The function to use for the rollup, e.g. count, count_values, percent_not_empty, max. */
8199
+ function: RollupFunction;
8200
+ relation_property_id: string;
8201
+ rollup_property_id: string;
8202
+ };
8065
8203
  } | {
8066
- data_source_id: IdRequest;
8067
- /** Always `dual_property` */
8068
- type?: "dual_property";
8069
- dual_property: {
8070
- synced_property_id?: string;
8071
- synced_property_name?: string;
8204
+ /** The name of the property. */
8205
+ name?: string;
8206
+ /** The description of the property. */
8207
+ description?: PropertyDescriptionRequest | null;
8208
+ /** Always `unique_id` */
8209
+ type?: "unique_id";
8210
+ unique_id: {
8211
+ prefix?: string | null;
8072
8212
  };
8073
- };
8074
- } | {
8075
- /** The name of the property. */
8076
- name?: string;
8077
- /** The description of the property. */
8078
- description?: PropertyDescriptionRequest | null;
8079
- /** Always `rollup` */
8080
- type?: "rollup";
8081
- rollup: {
8082
- /** The function to use for the rollup, e.g. count, count_values, percent_not_empty, max. */
8083
- function: RollupFunction;
8084
- relation_property_name: string;
8085
- rollup_property_name: string;
8086
8213
  } | {
8087
- /** The function to use for the rollup, e.g. count, count_values, percent_not_empty, max. */
8088
- function: RollupFunction;
8089
- relation_property_id: string;
8090
- rollup_property_name: string;
8214
+ /** The name of the property. */
8215
+ name?: string;
8216
+ /** The description of the property. */
8217
+ description?: PropertyDescriptionRequest | null;
8218
+ /** Always `title` */
8219
+ type?: "title";
8220
+ title: EmptyObject;
8091
8221
  } | {
8092
- /** The function to use for the rollup, e.g. count, count_values, percent_not_empty, max. */
8093
- function: RollupFunction;
8094
- relation_property_name: string;
8095
- rollup_property_id: string;
8222
+ /** The name of the property. */
8223
+ name?: string;
8224
+ /** The description of the property. */
8225
+ description?: PropertyDescriptionRequest | null;
8226
+ /** Always `rich_text` */
8227
+ type?: "rich_text";
8228
+ rich_text: EmptyObject;
8096
8229
  } | {
8097
- /** The function to use for the rollup, e.g. count, count_values, percent_not_empty, max. */
8098
- function: RollupFunction;
8099
- relation_property_id: string;
8100
- rollup_property_id: string;
8101
- };
8102
- } | {
8103
- /** The name of the property. */
8104
- name?: string;
8105
- /** The description of the property. */
8106
- description?: PropertyDescriptionRequest | null;
8107
- /** Always `unique_id` */
8108
- type?: "unique_id";
8109
- unique_id: {
8110
- prefix?: string | null;
8111
- };
8112
- } | {
8113
- /** The name of the property. */
8114
- name?: string;
8115
- /** The description of the property. */
8116
- description?: PropertyDescriptionRequest | null;
8117
- /** Always `title` */
8118
- type?: "title";
8119
- title: EmptyObject;
8120
- } | {
8121
- /** The name of the property. */
8122
- name?: string;
8123
- /** The description of the property. */
8124
- description?: PropertyDescriptionRequest | null;
8125
- /** Always `rich_text` */
8126
- type?: "rich_text";
8127
- rich_text: EmptyObject;
8128
- } | {
8129
- /** The name of the property. */
8130
- name?: string;
8131
- /** The description of the property. */
8132
- description?: PropertyDescriptionRequest | null;
8133
- /** Always `url` */
8134
- type?: "url";
8135
- url: EmptyObject;
8136
- } | {
8137
- /** The name of the property. */
8138
- name?: string;
8139
- /** The description of the property. */
8140
- description?: PropertyDescriptionRequest | null;
8141
- /** Always `people` */
8142
- type?: "people";
8143
- people: EmptyObject;
8144
- } | {
8145
- /** The name of the property. */
8146
- name?: string;
8147
- /** The description of the property. */
8148
- description?: PropertyDescriptionRequest | null;
8149
- /** Always `files` */
8150
- type?: "files";
8151
- files: EmptyObject;
8152
- } | {
8153
- /** The name of the property. */
8154
- name?: string;
8155
- /** The description of the property. */
8156
- description?: PropertyDescriptionRequest | null;
8157
- /** Always `email` */
8158
- type?: "email";
8159
- email: EmptyObject;
8160
- } | {
8161
- /** The name of the property. */
8162
- name?: string;
8163
- /** The description of the property. */
8164
- description?: PropertyDescriptionRequest | null;
8165
- /** Always `phone_number` */
8166
- type?: "phone_number";
8167
- phone_number: EmptyObject;
8168
- } | {
8169
- /** The name of the property. */
8170
- name?: string;
8171
- /** The description of the property. */
8172
- description?: PropertyDescriptionRequest | null;
8173
- /** Always `date` */
8174
- type?: "date";
8175
- date: EmptyObject;
8176
- } | {
8177
- /** The name of the property. */
8178
- name?: string;
8179
- /** The description of the property. */
8180
- description?: PropertyDescriptionRequest | null;
8181
- /** Always `checkbox` */
8182
- type?: "checkbox";
8183
- checkbox: EmptyObject;
8184
- } | {
8185
- /** The name of the property. */
8186
- name?: string;
8187
- /** The description of the property. */
8188
- description?: PropertyDescriptionRequest | null;
8189
- /** Always `created_by` */
8190
- type?: "created_by";
8191
- created_by: EmptyObject;
8192
- } | {
8193
- /** The name of the property. */
8194
- name?: string;
8195
- /** The description of the property. */
8196
- description?: PropertyDescriptionRequest | null;
8197
- /** Always `created_time` */
8198
- type?: "created_time";
8199
- created_time: EmptyObject;
8200
- } | {
8201
- /** The name of the property. */
8202
- name?: string;
8203
- /** The description of the property. */
8204
- description?: PropertyDescriptionRequest | null;
8205
- /** Always `last_edited_by` */
8206
- type?: "last_edited_by";
8207
- last_edited_by: EmptyObject;
8208
- } | {
8209
- /** The name of the property. */
8210
- name?: string;
8211
- /** The description of the property. */
8212
- description?: PropertyDescriptionRequest | null;
8213
- /** Always `last_edited_time` */
8214
- type?: "last_edited_time";
8215
- last_edited_time: EmptyObject;
8216
- } | {
8217
- /** The name of the property. */
8218
- name?: string;
8219
- /** The description of the property. */
8220
- description?: PropertyDescriptionRequest | null;
8221
- /** Always `place` */
8222
- type?: "place";
8223
- place: EmptyObject;
8224
- }) | {
8225
- /** The new name of the property. */
8226
- name: string;
8227
- }) | null>;
8230
+ /** The name of the property. */
8231
+ name?: string;
8232
+ /** The description of the property. */
8233
+ description?: PropertyDescriptionRequest | null;
8234
+ /** Always `url` */
8235
+ type?: "url";
8236
+ url: EmptyObject;
8237
+ } | {
8238
+ /** The name of the property. */
8239
+ name?: string;
8240
+ /** The description of the property. */
8241
+ description?: PropertyDescriptionRequest | null;
8242
+ /** Always `people` */
8243
+ type?: "people";
8244
+ people: EmptyObject;
8245
+ } | {
8246
+ /** The name of the property. */
8247
+ name?: string;
8248
+ /** The description of the property. */
8249
+ description?: PropertyDescriptionRequest | null;
8250
+ /** Always `files` */
8251
+ type?: "files";
8252
+ files: EmptyObject;
8253
+ } | {
8254
+ /** The name of the property. */
8255
+ name?: string;
8256
+ /** The description of the property. */
8257
+ description?: PropertyDescriptionRequest | null;
8258
+ /** Always `email` */
8259
+ type?: "email";
8260
+ email: EmptyObject;
8261
+ } | {
8262
+ /** The name of the property. */
8263
+ name?: string;
8264
+ /** The description of the property. */
8265
+ description?: PropertyDescriptionRequest | null;
8266
+ /** Always `phone_number` */
8267
+ type?: "phone_number";
8268
+ phone_number: EmptyObject;
8269
+ } | {
8270
+ /** The name of the property. */
8271
+ name?: string;
8272
+ /** The description of the property. */
8273
+ description?: PropertyDescriptionRequest | null;
8274
+ /** Always `date` */
8275
+ type?: "date";
8276
+ date: EmptyObject;
8277
+ } | {
8278
+ /** The name of the property. */
8279
+ name?: string;
8280
+ /** The description of the property. */
8281
+ description?: PropertyDescriptionRequest | null;
8282
+ /** Always `checkbox` */
8283
+ type?: "checkbox";
8284
+ checkbox: EmptyObject;
8285
+ } | {
8286
+ /** The name of the property. */
8287
+ name?: string;
8288
+ /** The description of the property. */
8289
+ description?: PropertyDescriptionRequest | null;
8290
+ /** Always `created_by` */
8291
+ type?: "created_by";
8292
+ created_by: EmptyObject;
8293
+ } | {
8294
+ /** The name of the property. */
8295
+ name?: string;
8296
+ /** The description of the property. */
8297
+ description?: PropertyDescriptionRequest | null;
8298
+ /** Always `created_time` */
8299
+ type?: "created_time";
8300
+ created_time: EmptyObject;
8301
+ } | {
8302
+ /** The name of the property. */
8303
+ name?: string;
8304
+ /** The description of the property. */
8305
+ description?: PropertyDescriptionRequest | null;
8306
+ /** Always `last_edited_by` */
8307
+ type?: "last_edited_by";
8308
+ last_edited_by: EmptyObject;
8309
+ } | {
8310
+ /** The name of the property. */
8311
+ name?: string;
8312
+ /** The description of the property. */
8313
+ description?: PropertyDescriptionRequest | null;
8314
+ /** Always `last_edited_time` */
8315
+ type?: "last_edited_time";
8316
+ last_edited_time: EmptyObject;
8317
+ } | {
8318
+ /** The name of the property. */
8319
+ name?: string;
8320
+ /** The description of the property. */
8321
+ description?: PropertyDescriptionRequest | null;
8322
+ /** Always `place` */
8323
+ type?: "place";
8324
+ place: EmptyObject;
8325
+ }) | {
8326
+ /** The new name of the property. */
8327
+ name: string;
8328
+ }) | null;
8329
+ };
8228
8330
  /** Whether the data source should be moved to or from the trash. If not provided, the trash status will not be updated. */
8229
8331
  in_trash?: boolean;
8230
8332
  /** The parent of the data source, when moving it to a different database. If not provided, the parent will not be updated. */
@@ -8245,7 +8347,9 @@ export type CreateADatabaseRequest = {
8245
8347
  /** An object specifying the parent of the new data source to be created. */
8246
8348
  parent: ParentOfDataSourceRequest;
8247
8349
  /** Property schema of data source. */
8248
- properties: Record<string, PropertyConfigurationRequest>;
8350
+ properties: {
8351
+ [key: string]: PropertyConfigurationRequest;
8352
+ };
8249
8353
  /** Title of data source as it appears in Notion. */
8250
8354
  title?: Array<RichTextItemRequest>;
8251
8355
  /** Page icon. */
@@ -10320,7 +10424,9 @@ export type UpdateSessionRequest = {
10320
10424
  type?: "file_upload";
10321
10425
  name?: string;
10322
10426
  }>;
10323
- metadata?: Record<string, string>;
10427
+ metadata?: {
10428
+ [key: string]: string;
10429
+ };
10324
10430
  prompt_context?: string;
10325
10431
  } | {
10326
10432
  session_id: IdRequest;
@@ -10329,7 +10435,9 @@ export type UpdateSessionRequest = {
10329
10435
  /** One of: `approve`, `reject` */
10330
10436
  option_id: "approve" | "reject";
10331
10437
  }>;
10332
- metadata?: Record<string, string>;
10438
+ metadata?: {
10439
+ [key: string]: string;
10440
+ };
10333
10441
  } | {
10334
10442
  session_id: IdRequest;
10335
10443
  continue_from: string;
@@ -10993,7 +11101,9 @@ export type QuerySessionEventsResponse = {
10993
11101
  /** One of: `user`, `bot` */
10994
11102
  type: "user" | "bot";
10995
11103
  } | null;
10996
- metadata: Record<string, string> | null;
11104
+ metadata: {
11105
+ [key: string]: string;
11106
+ } | null;
10997
11107
  } | {
10998
11108
  /** Always `session_event` */
10999
11109
  object: "session_event";