@wirecat/notion-cli 0.1.0 → 0.3.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.
- package/CHANGELOG.md +69 -0
- package/README.md +14 -4
- package/contracts/wirecat.json +698 -1
- package/dist/bin/notion.js +2 -2
- package/dist/bundle/{all-profiles-OETMCOLN.js → all-profiles-4IONYZB6.js} +10 -10
- package/dist/bundle/{anthropic-5Y3O2TYM.js → anthropic-OXF74J4P.js} +6 -6
- package/dist/bundle/{app-server-IVWBIVHC.js → app-server-M2VF6ABM.js} +61 -52
- package/dist/bundle/{bun-EO636SAD.js → bun-DLA6QRLL.js} +2 -2
- package/dist/bundle/{bun-sqlite-C2T7QJ2M.js → bun-sqlite-F4BYLW3F.js} +7 -7
- package/dist/bundle/{chunk-QBC23NHD.js → chunk-2MHMKNWD.js} +1 -1
- package/dist/bundle/{chunk-TSCIIXN3.js → chunk-4KUJTSHG.js} +2 -2
- package/dist/bundle/{chunk-24FAYAML.js → chunk-4TQVZXOV.js} +3 -3
- package/dist/bundle/{chunk-FF4DDBCB.js → chunk-5LBJNTEJ.js} +6 -6
- package/dist/bundle/chunk-5UA2TYMI.js +29 -0
- package/dist/bundle/{chunk-DIM5YWBU.js → chunk-5XP4KQ2F.js} +1 -1
- package/dist/bundle/{chunk-WM7663C2.js → chunk-6GN7KU7X.js} +9 -9
- package/dist/bundle/chunk-6JBLIQQN.js +16 -0
- package/dist/bundle/{chunk-CLG2ISQH.js → chunk-7NF3V5L2.js} +4 -4
- package/dist/bundle/{chunk-TR7R5DL4.js → chunk-7NGFGFE5.js} +12 -63
- package/dist/bundle/{chunk-YA4LSSDZ.js → chunk-7NVPM55S.js} +2913 -2371
- package/dist/bundle/{chunk-XC5CKHX2.js → chunk-7YZPBAQX.js} +1 -1
- package/dist/bundle/{chunk-RSIS7BR7.js → chunk-AYU5TFDU.js} +21 -21
- package/dist/bundle/{chunk-64D5VUZ4.js → chunk-BEPFGITI.js} +68 -64
- package/dist/bundle/{chunk-HRTIRRXR.js → chunk-CBGBFAYJ.js} +41 -6
- package/dist/bundle/{chunk-QC3KOJT4.js → chunk-CDGZZNGY.js} +6 -6
- package/dist/bundle/{chunk-JK44XO2S.js → chunk-CIVXTBJY.js} +56 -56
- package/dist/bundle/{chunk-OWJDC4CB.js → chunk-COH7OEER.js} +14 -13
- package/dist/bundle/{chunk-XL2HXHP3.js → chunk-D6RCRBDH.js} +2 -2
- package/dist/bundle/{chunk-47R43UVJ.js → chunk-EQPAZ33O.js} +19 -19
- package/dist/bundle/{chunk-AE2KQ37N.js → chunk-EY6S7FV3.js} +6 -6
- package/dist/bundle/chunk-FEMHUSGO.js +88 -0
- package/dist/bundle/{chunk-NLDYZBTC.js → chunk-FSJHASRQ.js} +1146 -2555
- package/dist/bundle/chunk-GBFEEHQC.js +385 -0
- package/dist/bundle/{chunk-IQWEJEB5.js → chunk-GCCPFKSU.js} +26264 -21086
- package/dist/bundle/{chunk-RDZ7SVBZ.js → chunk-GK4GLPG2.js} +3 -3
- package/dist/bundle/{chunk-B2XKEEFX.js → chunk-GSNE7OB4.js} +4 -4
- package/dist/bundle/{chunk-UWW24JQF.js → chunk-HTKSCSJU.js} +4 -4
- package/dist/bundle/{chunk-7FII4DCE.js → chunk-IJMFG7HB.js} +7 -7
- package/dist/bundle/{chunk-WVZFXI36.js → chunk-JIRRF6BM.js} +4 -4
- package/dist/bundle/{chunk-ST2UC7FS.js → chunk-JODE2XED.js} +31 -27
- package/dist/bundle/{chunk-CWVAYQXI.js → chunk-K5I64ZVI.js} +9 -9
- package/dist/bundle/chunk-KFVDL2QS.js +146 -0
- package/dist/bundle/{chunk-JKIN5TOU.js → chunk-KL3P5TQK.js} +4 -4
- package/dist/bundle/chunk-L62XTC7N.js +726 -0
- package/dist/bundle/chunk-L6H7PY4X.js +170 -0
- package/dist/bundle/{chunk-F6MLJ3V5.js → chunk-LIQMUDIZ.js} +2 -2
- package/dist/bundle/{chunk-HWRKURQH.js → chunk-M2EEIYBU.js} +2 -2
- package/dist/bundle/chunk-M6DGZ2O6.js +823 -0
- package/dist/bundle/chunk-MGUEZYFA.js +5546 -0
- package/dist/bundle/{chunk-UWIA2G6Q.js → chunk-MRA62W5K.js} +404 -537
- package/dist/bundle/{chunk-XYIT2XB3.js → chunk-MVA5HVKL.js} +20 -0
- package/dist/bundle/{chunk-GA3URWIF.js → chunk-NO2LIHWA.js} +1 -1
- package/dist/bundle/{chunk-ESZT4WW3.js → chunk-OCDJ4FFA.js} +4 -4
- package/dist/bundle/{chunk-B4B65XIO.js → chunk-OI5DWZJG.js} +3 -3
- package/dist/bundle/chunk-P3P6DA6K.js +259 -0
- package/dist/bundle/chunk-QX3TPFEX.js +1977 -0
- package/dist/bundle/{chunk-EU5WCOMQ.js → chunk-R6SDRSZK.js} +76 -35
- package/dist/bundle/{chunk-K5TWMQSY.js → chunk-RMJMID5D.js} +8 -8
- package/dist/bundle/{chunk-RLSFOR2D.js → chunk-SGBS5QCU.js} +4 -4
- package/dist/bundle/{chunk-3D3PFXBP.js → chunk-T5UNSFES.js} +10 -15
- package/dist/bundle/{chunk-RAZKIHGH.js → chunk-TFNRCCGR.js} +4 -4
- package/dist/bundle/{chunk-WK3OSDNV.js → chunk-TJCPTRYD.js} +7 -7
- package/dist/bundle/{chunk-BWICUW7W.js → chunk-TXONV3HW.js} +2 -2
- package/dist/bundle/{chunk-AQZO3ITW.js → chunk-TZ2QJ53V.js} +2 -2
- package/dist/bundle/{chunk-35K5T6WV.js → chunk-UKE3CGHK.js} +1 -1
- package/dist/bundle/{chunk-7N5QB6NL.js → chunk-UROEWCOG.js} +5 -3
- package/dist/bundle/chunk-WHJWURZB.js +335 -0
- package/dist/bundle/{chunk-R6ZM45NF.js → chunk-WU3XHGOB.js} +185 -57
- package/dist/bundle/{chunk-2YR3RYT4.js → chunk-WZEEEQGC.js} +3 -3
- package/dist/bundle/{chunk-B2WFKFYL.js → chunk-XCTOCVMW.js} +20 -116
- package/dist/bundle/chunk-XFLCVHSQ.js +50 -0
- package/dist/bundle/{chunk-EGTBL3MJ.js → chunk-Y5LAJWR5.js} +1 -1
- package/dist/bundle/{chunk-66PL7P4C.js → chunk-YAPDU3SV.js} +1 -1
- package/dist/bundle/{chunk-WWMB4UHF.js → chunk-YFWLHTNO.js} +1 -1
- package/dist/bundle/{chunk-KHOVVPLC.js → chunk-YGCI3DHS.js} +1 -1
- package/dist/bundle/{chunk-4GC5DBHW.js → chunk-Z53LYX4M.js} +3 -3
- package/dist/bundle/{chunk-EPAZ7DJB.js → chunk-ZC6ZQQ55.js} +48 -45
- package/dist/bundle/command-contract-UBXS6NHI.js +38 -0
- package/dist/bundle/{command-server-entry-A66DJ3MH.js → command-server-entry-2SORMVRM.js} +27 -24
- package/dist/bundle/decode-5O7IEFPN.js +297 -0
- package/dist/bundle/{dispatch-FEKU5UXC.js → dispatch-YHQX6FEJ.js} +8 -8
- package/dist/bundle/{dist-YFKABFFF.js → dist-ILNOLGYN.js} +1 -1
- package/dist/bundle/{echarts-XD2JSWU4.js → echarts-ARLMVQC7.js} +2 -2
- package/dist/bundle/{embed-F3HYGAF7.js → embed-FUDUKQ3K.js} +7 -7
- package/dist/bundle/{embedder-GSEDDUH7.js → embedder-HDRV7GX3.js} +10 -10
- package/dist/bundle/{failure-HDJLR2YJ.js → failure-JHXICWIL.js} +3 -3
- package/dist/bundle/first-run-BGEFTXOE.js +29 -0
- package/dist/bundle/first-screen-F5F3VS6Y.js +38 -0
- package/dist/bundle/{instructions-NZGJ4FW5.js → instructions-MEFIKCDI.js} +1 -1
- package/dist/bundle/{mcp-VFIOZDVY.js → mcp-VMS6PBCU.js} +2 -2
- package/dist/bundle/mdast-util-from-markdown-R66F4HZA.js +1958 -0
- package/dist/bundle/mdast-util-gfm-LN2ELINH.js +2699 -0
- package/dist/bundle/meeting-combined-HNSS3FQY.js +24 -0
- package/dist/bundle/meeting-model-REZVYGQW.js +26 -0
- package/dist/bundle/meeting-semantic-R4CSLVRG.js +22 -0
- package/dist/bundle/micromark-extension-gfm-5X7YT43T.js +1838 -0
- package/dist/bundle/{node-RPKPDYQS.js → node-MAQALPLA.js} +2 -2
- package/dist/bundle/{node-sqlite-KH2UUYVO.js → node-sqlite-J7IJYNBO.js} +8 -8
- package/dist/bundle/notion.js +14 -14
- package/dist/bundle/{oauth-NKAI7TQD.js → oauth-AMV4YGJD.js} +8 -8
- package/dist/bundle/{open-WSAEAA2V.js → open-AB27MTGR.js} +6 -6
- package/dist/bundle/{openai-JPVDGHG5.js → openai-D77MU5XV.js} +31 -29
- package/dist/bundle/{process-5ZFVKOQX.js → process-SIOWTRJ6.js} +1 -1
- package/dist/bundle/{program-M3D56D6T.js → program-QC5MX4ZJ.js} +7533 -1997
- package/dist/bundle/{prompt-FROYQ5LV.js → prompt-W77YDHA6.js} +6 -6
- package/dist/bundle/{recognize-NYCHQMCX.js → recognize-3JAXQQ36.js} +5 -5
- package/dist/bundle/{remote-4OERF3Z4.js → remote-PSOJXCXO.js} +11 -11
- package/dist/bundle/{rerank-TEGXFUWY.js → rerank-EE44ZTGL.js} +8 -8
- package/dist/bundle/{schemas-MZNNOEYN.js → schemas-LBYUMBC6.js} +2 -2
- package/dist/bundle/{serve-HLYYBAXY.js → serve-XJMGAMFW.js} +10 -10
- package/dist/bundle/{server-D5OYNEUW.js → server-ASU6CP5R.js} +53 -44
- package/dist/bundle/server-WSPQ5EOA.js +72 -0
- package/dist/bundle/services-PT4PA4J6.js +588 -0
- package/dist/bundle/{sqlite-runtime-H2S5RR2F.js → sqlite-runtime-YHXRTVXE.js} +7 -7
- package/dist/bundle/{state-OPOXCDZL.js → state-T6ZKFWGD.js} +7 -7
- package/dist/bundle/{store-NHMXEJPD.js → store-3MUCZEI3.js} +20 -14
- package/dist/bundle/{store-Y3KRLCJ7.js → store-E5EE25FY.js} +30 -21
- package/dist/bundle/store-maintenance-command-ZZ55BBBG.js +63 -0
- package/dist/commands/api.d.ts.map +1 -1
- package/dist/commands/api.js +13 -4
- package/dist/commands/api.js.map +1 -1
- package/dist/commands/documents.d.ts +10 -1
- package/dist/commands/documents.d.ts.map +1 -1
- package/dist/commands/documents.js +175 -5
- package/dist/commands/documents.js.map +1 -1
- package/dist/commands/library.d.ts +10 -0
- package/dist/commands/library.d.ts.map +1 -0
- package/dist/commands/library.js +470 -0
- package/dist/commands/library.js.map +1 -0
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +4 -3
- package/dist/commands/session.js.map +1 -1
- package/dist/config.d.ts +19 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +73 -5
- package/dist/config.js.map +1 -1
- package/dist/context.d.ts +8 -0
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +15 -3
- package/dist/context.js.map +1 -1
- package/dist/generated/types.d.ts +485 -375
- package/dist/generated/types.d.ts.map +1 -1
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +1 -0
- package/dist/identity.js.map +1 -1
- package/dist/knowledge.d.ts +27 -0
- package/dist/knowledge.d.ts.map +1 -0
- package/dist/knowledge.js +87 -0
- package/dist/knowledge.js.map +1 -0
- package/dist/library.d.ts +44 -0
- package/dist/library.d.ts.map +1 -0
- package/dist/library.js +149 -0
- package/dist/library.js.map +1 -0
- package/dist/notion/client.d.ts +4 -1
- package/dist/notion/client.d.ts.map +1 -1
- package/dist/notion/client.js +5 -2
- package/dist/notion/client.js.map +1 -1
- package/dist/notion/errors.d.ts +5 -0
- package/dist/notion/errors.d.ts.map +1 -1
- package/dist/notion/errors.js +33 -1
- package/dist/notion/errors.js.map +1 -1
- package/dist/notion/reads.d.ts +4 -0
- package/dist/notion/reads.d.ts.map +1 -1
- package/dist/notion/writes.d.ts +40 -0
- package/dist/notion/writes.d.ts.map +1 -0
- package/dist/notion/writes.js +112 -0
- package/dist/notion/writes.js.map +1 -0
- package/dist/program.js +2 -2
- package/dist/program.js.map +1 -1
- package/dist/sync/cursor.d.ts +93 -0
- package/dist/sync/cursor.d.ts.map +1 -1
- package/dist/sync/cursor.js +63 -2
- package/dist/sync/cursor.js.map +1 -1
- package/dist/sync/files.d.ts +87 -0
- package/dist/sync/files.d.ts.map +1 -0
- package/dist/sync/files.js +31 -0
- package/dist/sync/files.js.map +1 -0
- package/dist/sync/markdown.d.ts +4 -1
- package/dist/sync/markdown.d.ts.map +1 -1
- package/dist/sync/markdown.js +8 -6
- package/dist/sync/markdown.js.map +1 -1
- package/dist/sync/source.d.ts +6 -59
- package/dist/sync/source.d.ts.map +1 -1
- package/dist/sync/source.js +650 -271
- package/dist/sync/source.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/notion-cli/SKILL.md +18 -1
- package/dist/bundle/command-contract-6G5DC2FN.js +0 -35
- package/dist/bundle/decode-7XOFRAAT.js +0 -163
- package/dist/bundle/first-run-TXNTIUSP.js +0 -28
- package/dist/bundle/first-screen-JZPJND7J.js +0 -33
- package/dist/bundle/server-LWZGVMNW.js +0 -62
- package/dist/bundle/store-maintenance-command-D4W7WSLQ.js +0 -53
- package/dist/commands/comments.d.ts +0 -3
- package/dist/commands/comments.d.ts.map +0 -1
- package/dist/commands/comments.js +0 -114
- package/dist/commands/comments.js.map +0 -1
- package/dist/sample/comments.d.ts +0 -61
- package/dist/sample/comments.d.ts.map +0 -1
- package/dist/sample/comments.js +0 -39
- package/dist/sample/comments.js.map +0 -1
- package/dist/sample/records.d.ts +0 -16
- package/dist/sample/records.d.ts.map +0 -1
- package/dist/sample/records.js +0 -22
- package/dist/sample/records.js.map +0 -1
- package/dist/sample/transport.d.ts +0 -42
- package/dist/sample/transport.d.ts.map +0 -1
- package/dist/sample/transport.js +0 -153
- package/dist/sample/transport.js.map +0 -1
- /package/dist/bundle/{chunk-ZI3YTXSF.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?:
|
|
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:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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
|
-
} &
|
|
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
|
-
} &
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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:
|
|
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 =
|
|
4689
|
-
|
|
4690
|
-
|
|
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
|
-
|
|
4708
|
-
|
|
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
|
-
|
|
4721
|
-
|
|
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
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
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
|
-
|
|
4816
|
+
verification: {
|
|
4817
|
+
state: "verified";
|
|
4818
|
+
date?: DateRequest;
|
|
4819
|
+
} | {
|
|
4820
|
+
state: "unverified";
|
|
4821
|
+
};
|
|
4822
|
+
type?: "verification";
|
|
4776
4823
|
};
|
|
4777
|
-
|
|
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:
|
|
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?:
|
|
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?:
|
|
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:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
7986
|
-
|
|
7987
|
-
|
|
7988
|
-
|
|
7989
|
-
|
|
7990
|
-
|
|
7991
|
-
|
|
7992
|
-
|
|
7993
|
-
|
|
7994
|
-
|
|
7995
|
-
|
|
7996
|
-
|
|
7997
|
-
|
|
7998
|
-
|
|
7999
|
-
|
|
8000
|
-
|
|
8001
|
-
|
|
8002
|
-
|
|
8003
|
-
|
|
8004
|
-
|
|
8005
|
-
|
|
8006
|
-
|
|
8007
|
-
|
|
8008
|
-
|
|
8009
|
-
|
|
8010
|
-
|
|
8011
|
-
|
|
8012
|
-
|
|
8013
|
-
|
|
8014
|
-
|
|
8015
|
-
|
|
8016
|
-
|
|
8017
|
-
|
|
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
|
-
|
|
8020
|
-
|
|
8021
|
-
|
|
8022
|
-
|
|
8023
|
-
|
|
8024
|
-
|
|
8025
|
-
|
|
8026
|
-
|
|
8027
|
-
|
|
8028
|
-
|
|
8029
|
-
|
|
8030
|
-
|
|
8031
|
-
|
|
8032
|
-
|
|
8033
|
-
|
|
8034
|
-
|
|
8035
|
-
|
|
8036
|
-
|
|
8037
|
-
|
|
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
|
-
|
|
8040
|
-
|
|
8041
|
-
|
|
8042
|
-
|
|
8043
|
-
}
|
|
8044
|
-
|
|
8045
|
-
|
|
8046
|
-
|
|
8047
|
-
|
|
8048
|
-
|
|
8049
|
-
|
|
8050
|
-
|
|
8051
|
-
|
|
8052
|
-
|
|
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
|
-
|
|
8067
|
-
|
|
8068
|
-
|
|
8069
|
-
|
|
8070
|
-
|
|
8071
|
-
|
|
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
|
|
8088
|
-
|
|
8089
|
-
|
|
8090
|
-
|
|
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
|
|
8093
|
-
|
|
8094
|
-
|
|
8095
|
-
|
|
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
|
|
8098
|
-
|
|
8099
|
-
|
|
8100
|
-
|
|
8101
|
-
|
|
8102
|
-
|
|
8103
|
-
|
|
8104
|
-
|
|
8105
|
-
|
|
8106
|
-
|
|
8107
|
-
|
|
8108
|
-
|
|
8109
|
-
|
|
8110
|
-
|
|
8111
|
-
|
|
8112
|
-
|
|
8113
|
-
|
|
8114
|
-
|
|
8115
|
-
|
|
8116
|
-
|
|
8117
|
-
|
|
8118
|
-
|
|
8119
|
-
|
|
8120
|
-
|
|
8121
|
-
|
|
8122
|
-
|
|
8123
|
-
|
|
8124
|
-
|
|
8125
|
-
|
|
8126
|
-
|
|
8127
|
-
|
|
8128
|
-
|
|
8129
|
-
|
|
8130
|
-
|
|
8131
|
-
|
|
8132
|
-
|
|
8133
|
-
|
|
8134
|
-
|
|
8135
|
-
|
|
8136
|
-
|
|
8137
|
-
|
|
8138
|
-
|
|
8139
|
-
|
|
8140
|
-
|
|
8141
|
-
|
|
8142
|
-
|
|
8143
|
-
|
|
8144
|
-
|
|
8145
|
-
|
|
8146
|
-
|
|
8147
|
-
|
|
8148
|
-
|
|
8149
|
-
|
|
8150
|
-
|
|
8151
|
-
|
|
8152
|
-
|
|
8153
|
-
|
|
8154
|
-
|
|
8155
|
-
|
|
8156
|
-
|
|
8157
|
-
|
|
8158
|
-
|
|
8159
|
-
|
|
8160
|
-
|
|
8161
|
-
|
|
8162
|
-
|
|
8163
|
-
|
|
8164
|
-
|
|
8165
|
-
|
|
8166
|
-
|
|
8167
|
-
|
|
8168
|
-
|
|
8169
|
-
|
|
8170
|
-
|
|
8171
|
-
|
|
8172
|
-
|
|
8173
|
-
|
|
8174
|
-
|
|
8175
|
-
|
|
8176
|
-
|
|
8177
|
-
|
|
8178
|
-
|
|
8179
|
-
|
|
8180
|
-
|
|
8181
|
-
|
|
8182
|
-
|
|
8183
|
-
|
|
8184
|
-
|
|
8185
|
-
|
|
8186
|
-
|
|
8187
|
-
|
|
8188
|
-
|
|
8189
|
-
|
|
8190
|
-
|
|
8191
|
-
|
|
8192
|
-
|
|
8193
|
-
|
|
8194
|
-
|
|
8195
|
-
|
|
8196
|
-
|
|
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:
|
|
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?:
|
|
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?:
|
|
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:
|
|
11104
|
+
metadata: {
|
|
11105
|
+
[key: string]: string;
|
|
11106
|
+
} | null;
|
|
10997
11107
|
} | {
|
|
10998
11108
|
/** Always `session_event` */
|
|
10999
11109
|
object: "session_event";
|