@notionhq/client 5.28.0 → 5.29.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/README.md +21 -0
- package/build/package.json +1 -1
- package/build/src/Client.d.ts +18 -181
- package/build/src/Client.d.ts.map +1 -1
- package/build/src/api-endpoint-methods.d.ts +6 -197
- package/build/src/api-endpoint-methods.d.ts.map +1 -1
- package/build/src/api-endpoints/agent-skills.d.ts +26 -0
- package/build/src/api-endpoints/agent-skills.d.ts.map +1 -1
- package/build/src/api-endpoints/agent-skills.js +12 -1
- package/build/src/api-endpoints/agent-skills.js.map +1 -1
- package/build/src/api-endpoints/agents.d.ts +2091 -2266
- package/build/src/api-endpoints/agents.d.ts.map +1 -1
- package/build/src/api-endpoints/agents.js +118 -118
- package/build/src/api-endpoints/agents.js.map +1 -1
- package/build/src/api-endpoints/async-tasks.d.ts +7 -4
- package/build/src/api-endpoints/async-tasks.d.ts.map +1 -1
- package/build/src/api-endpoints/async-tasks.js.map +1 -1
- package/build/src/api-endpoints/blocks.d.ts +7 -4
- package/build/src/api-endpoints/blocks.d.ts.map +1 -1
- package/build/src/api-endpoints/blocks.js +1 -1
- package/build/src/api-endpoints/blocks.js.map +1 -1
- package/build/src/api-endpoints/comments.d.ts +9 -3
- package/build/src/api-endpoints/comments.d.ts.map +1 -1
- package/build/src/api-endpoints/comments.js +2 -1
- package/build/src/api-endpoints/comments.js.map +1 -1
- package/build/src/api-endpoints/common.d.ts +168 -21
- package/build/src/api-endpoints/common.d.ts.map +1 -1
- package/build/src/api-endpoints/common.js.map +1 -1
- package/build/src/api-endpoints/data-sources.d.ts +4 -1
- package/build/src/api-endpoints/data-sources.d.ts.map +1 -1
- package/build/src/api-endpoints/data-sources.js +2 -1
- package/build/src/api-endpoints/data-sources.js.map +1 -1
- package/build/src/api-endpoints/databases.d.ts +5 -2
- package/build/src/api-endpoints/databases.d.ts.map +1 -1
- package/build/src/api-endpoints/databases.js +2 -0
- package/build/src/api-endpoints/databases.js.map +1 -1
- package/build/src/api-endpoints/file-uploads.d.ts.map +1 -1
- package/build/src/api-endpoints/file-uploads.js.map +1 -1
- package/build/src/api-endpoints/meeting-notes.d.ts +8 -106
- package/build/src/api-endpoints/meeting-notes.d.ts.map +1 -1
- package/build/src/api-endpoints/meeting-notes.js.map +1 -1
- package/build/src/api-endpoints/oauth.d.ts +1 -0
- package/build/src/api-endpoints/oauth.d.ts.map +1 -1
- package/build/src/api-endpoints/oauth.js.map +1 -1
- package/build/src/api-endpoints/pages.d.ts +10 -5
- package/build/src/api-endpoints/pages.d.ts.map +1 -1
- package/build/src/api-endpoints/pages.js +5 -1
- package/build/src/api-endpoints/pages.js.map +1 -1
- package/build/src/api-endpoints/search.d.ts +5 -2
- package/build/src/api-endpoints/search.d.ts.map +1 -1
- package/build/src/api-endpoints/search.js +1 -1
- package/build/src/api-endpoints/search.js.map +1 -1
- package/build/src/api-endpoints/views.d.ts +2 -1
- package/build/src/api-endpoints/views.d.ts.map +1 -1
- package/build/src/api-endpoints/views.js.map +1 -1
- package/build/src/api-endpoints/webhooks.d.ts +6 -0
- package/build/src/api-endpoints/webhooks.d.ts.map +1 -1
- package/build/src/api-endpoints/webhooks.js.map +1 -1
- package/build/src/helpers.d.ts.map +1 -1
- package/build/src/helpers.js +2 -1
- package/build/src/helpers.js.map +1 -1
- package/build/src/index.d.ts +1 -1
- package/build/src/index.d.ts.map +1 -1
- package/build/src/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// cspell:disable-file
|
|
3
3
|
// Note: This is a generated file. DO NOT EDIT!
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.getSkillDirectory = exports.getPluginDirectory = exports.listSkillsPlugins = void 0;
|
|
5
|
+
exports.uploadSkill = exports.getSkillDirectory = exports.getPluginDirectory = exports.listSkillsPlugins = void 0;
|
|
6
6
|
/**
|
|
7
7
|
* List skills plugins
|
|
8
8
|
*/
|
|
@@ -33,4 +33,15 @@ exports.getSkillDirectory = {
|
|
|
33
33
|
bodyParams: [],
|
|
34
34
|
path: (p) => `ai/skills/${p.id}`,
|
|
35
35
|
};
|
|
36
|
+
/**
|
|
37
|
+
* Upload a skill
|
|
38
|
+
*/
|
|
39
|
+
exports.uploadSkill = {
|
|
40
|
+
method: "post",
|
|
41
|
+
pathParams: ["id"],
|
|
42
|
+
queryParams: [],
|
|
43
|
+
bodyParams: [],
|
|
44
|
+
formDataParams: ["file"],
|
|
45
|
+
path: (p) => `ai/skills/${p.id}/upload`,
|
|
46
|
+
};
|
|
36
47
|
//# sourceMappingURL=agent-skills.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-skills.js","sourceRoot":"","sources":["../../../src/api-endpoints/agent-skills.ts"],"names":[],"mappings":";AAAA,sBAAsB;AACtB,+CAA+C;;;AA8B/C;;GAEG;AACU,QAAA,iBAAiB,GAAG;IAC/B,MAAM,EAAE,KAAK;IACb,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,CAAC,WAAW,EAAE,cAAc,CAAC;IAC1C,UAAU,EAAE,EAAE;IAEd,IAAI,EAAE,GAAW,EAAE,CAAC,YAAY;CACxB,CAAA;AAkBV;;GAEG;AACU,QAAA,kBAAkB,GAAG;IAChC,MAAM,EAAE,KAAK;IACb,UAAU,EAAE,CAAC,IAAI,CAAC;IAClB,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,EAAE;IAEd,IAAI,EAAE,CAAC,CAAmC,EAAU,EAAE,CAAC,cAAc,CAAC,CAAC,EAAE,EAAE;CACnE,CAAA;AAkBV;;GAEG;AACU,QAAA,iBAAiB,GAAG;IAC/B,MAAM,EAAE,KAAK;IACb,UAAU,EAAE,CAAC,IAAI,CAAC;IAClB,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,EAAE;IAEd,IAAI,EAAE,CAAC,CAAkC,EAAU,EAAE,CAAC,aAAa,CAAC,CAAC,EAAE,EAAE;CACjE,CAAA","sourcesContent":["// cspell:disable-file\n// Note: This is a generated file. DO NOT EDIT!\n\nimport type { IdRequest } from \"./common\"\n\ntype ListSkillsPluginsQueryParameters = {\n // The number of items to return. Maximum: 100.\n page_size?: number\n // An opaque cursor returned by the previous page of results.\n start_cursor?: string | null\n}\n\nexport type ListSkillsPluginsParameters = ListSkillsPluginsQueryParameters\n\nexport type ListSkillsPluginsResponse = {\n // Always `list`\n object: \"list\"\n results: Array<{\n id: string\n name: string\n description: string\n // Opaque version identifier for the plugin. Compare this value for equality to determine\n // whether the plugin has changed.\n version_id: string\n }>\n next_cursor: string | null\n has_more: boolean\n // Always `plugin`\n type: \"plugin\"\n}\n\n/**\n * List skills plugins\n */\nexport const listSkillsPlugins = {\n method: \"get\",\n pathParams: [],\n queryParams: [\"page_size\", \"start_cursor\"],\n bodyParams: [],\n\n path: (): string => `ai/plugins`,\n} as const\n\ntype GetPluginDirectoryPathParameters = {\n id: string\n}\n\nexport type GetPluginDirectoryParameters = GetPluginDirectoryPathParameters\n\nexport type GetPluginDirectoryResponse = {\n id: string\n // Opaque version identifier for the plugin directory. Compare this value for equality to\n // determine whether the directory has changed. This matches the version_id in the\n // corresponding plugin summary.\n version_id: string\n // Temporary signed URL for downloading the plugin directory as a gzipped tar archive.\n url: string\n}\n\n/**\n * Get a plugin directory\n */\nexport const getPluginDirectory = {\n method: \"get\",\n pathParams: [\"id\"],\n queryParams: [],\n bodyParams: [],\n\n path: (p: GetPluginDirectoryPathParameters): string => `ai/plugins/${p.id}`,\n} as const\n\ntype GetSkillDirectoryPathParameters = {\n // Identifier for a Notion skill page.\n id: IdRequest\n}\n\nexport type GetSkillDirectoryParameters = GetSkillDirectoryPathParameters\n\nexport type GetSkillDirectoryResponse = {\n // Identifier for the skill page.\n id: string\n // Stable content version for the generated skill directory.\n version_id: string\n // Temporary signed URL for downloading the skill directory archive.\n url: string\n}\n\n/**\n * Get a skill directory\n */\nexport const getSkillDirectory = {\n method: \"get\",\n pathParams: [\"id\"],\n queryParams: [],\n bodyParams: [],\n\n path: (p: GetSkillDirectoryPathParameters): string => `ai/skills/${p.id}`,\n} as const\n"]}
|
|
1
|
+
{"version":3,"file":"agent-skills.js","sourceRoot":"","sources":["../../../src/api-endpoints/agent-skills.ts"],"names":[],"mappings":";AAAA,sBAAsB;AACtB,+CAA+C;;;AA8B/C;;GAEG;AACU,QAAA,iBAAiB,GAAG;IAC/B,MAAM,EAAE,KAAK;IACb,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,CAAC,WAAW,EAAE,cAAc,CAAC;IAC1C,UAAU,EAAE,EAAE;IAEd,IAAI,EAAE,GAAW,EAAE,CAAC,YAAY;CACxB,CAAA;AAkBV;;GAEG;AACU,QAAA,kBAAkB,GAAG;IAChC,MAAM,EAAE,KAAK;IACb,UAAU,EAAE,CAAC,IAAI,CAAC;IAClB,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,EAAE;IAEd,IAAI,EAAE,CAAC,CAAmC,EAAU,EAAE,CAAC,cAAc,CAAC,CAAC,EAAE,EAAE;CACnE,CAAA;AAkBV;;GAEG;AACU,QAAA,iBAAiB,GAAG;IAC/B,MAAM,EAAE,KAAK;IACb,UAAU,EAAE,CAAC,IAAI,CAAC;IAClB,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,EAAE;IAEd,IAAI,EAAE,CAAC,CAAkC,EAAU,EAAE,CAAC,aAAa,CAAC,CAAC,EAAE,EAAE;CACjE,CAAA;AAwBV;;GAEG;AACU,QAAA,WAAW,GAAG;IACzB,MAAM,EAAE,MAAM;IACd,UAAU,EAAE,CAAC,IAAI,CAAC;IAClB,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,EAAE;IAEd,cAAc,EAAE,CAAC,MAAM,CAAC;IACxB,IAAI,EAAE,CAAC,CAA4B,EAAU,EAAE,CAAC,aAAa,CAAC,CAAC,EAAE,SAAS;CAClE,CAAA","sourcesContent":["// cspell:disable-file\n// Note: This is a generated file. DO NOT EDIT!\n\nimport type { IdRequest } from \"./common\"\n\ntype ListSkillsPluginsQueryParameters = {\n // The number of items to return. Maximum: 100.\n page_size?: number\n // An opaque cursor returned by the previous page of results.\n start_cursor?: string | null\n}\n\nexport type ListSkillsPluginsParameters = ListSkillsPluginsQueryParameters\n\nexport type ListSkillsPluginsResponse = {\n // Always `list`\n object: \"list\"\n results: Array<{\n id: string\n name: string\n description: string\n // Opaque version identifier for the plugin. Compare this value for equality to determine\n // whether the plugin has changed.\n version_id: string\n }>\n next_cursor: string | null\n has_more: boolean\n // Always `plugin`\n type: \"plugin\"\n}\n\n/**\n * List skills plugins\n */\nexport const listSkillsPlugins = {\n method: \"get\",\n pathParams: [],\n queryParams: [\"page_size\", \"start_cursor\"],\n bodyParams: [],\n\n path: (): string => `ai/plugins`,\n} as const\n\ntype GetPluginDirectoryPathParameters = {\n id: string\n}\n\nexport type GetPluginDirectoryParameters = GetPluginDirectoryPathParameters\n\nexport type GetPluginDirectoryResponse = {\n id: string\n // Opaque version identifier for the plugin directory. Compare this value for equality to\n // determine whether the directory has changed. This matches the version_id in the\n // corresponding plugin summary.\n version_id: string\n // Temporary signed URL for downloading the plugin directory as a gzipped tar archive.\n url: string\n}\n\n/**\n * Get a plugin directory\n */\nexport const getPluginDirectory = {\n method: \"get\",\n pathParams: [\"id\"],\n queryParams: [],\n bodyParams: [],\n\n path: (p: GetPluginDirectoryPathParameters): string => `ai/plugins/${p.id}`,\n} as const\n\ntype GetSkillDirectoryPathParameters = {\n // Identifier for a Notion skill page.\n id: IdRequest\n}\n\nexport type GetSkillDirectoryParameters = GetSkillDirectoryPathParameters\n\nexport type GetSkillDirectoryResponse = {\n // Identifier for the skill page.\n id: string\n // Stable content version for the generated skill directory.\n version_id: string\n // Temporary signed URL for downloading the skill directory archive.\n url: string\n}\n\n/**\n * Get a skill directory\n */\nexport const getSkillDirectory = {\n method: \"get\",\n pathParams: [\"id\"],\n queryParams: [],\n bodyParams: [],\n\n path: (p: GetSkillDirectoryPathParameters): string => `ai/skills/${p.id}`,\n} as const\n\ntype UploadSkillPathParameters = {\n // Target page in a Skills database. Create a new page first to import a new skill.\n id: IdRequest\n}\n\ntype UploadSkillFormDataParameters = {\n file: { filename?: string; data: string | Blob }\n}\n\nexport type UploadSkillParameters = UploadSkillPathParameters &\n UploadSkillFormDataParameters\n\nexport type UploadSkillResponse = {\n // Import committed.\n status: \"completed\"\n // Updated skill page.\n page_id: string\n // Content version of the uploaded skill. Matches `version_id` from GET\n // /v1/ai/skills/{id} until the skill changes.\n version_id: string\n}\n\n/**\n * Upload a skill\n */\nexport const uploadSkill = {\n method: \"post\",\n pathParams: [\"id\"],\n queryParams: [],\n bodyParams: [],\n\n formDataParams: [\"file\"],\n path: (p: UploadSkillPathParameters): string => `ai/skills/${p.id}/upload`,\n} as const\n"]}
|