@commandable/mcp 0.0.1 → 0.0.4
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 +25 -4
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +82 -5
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/setup.d.ts.map +1 -1
- package/dist/cli/setup.js +74 -51
- package/dist/cli/setup.js.map +1 -1
- package/dist/config/configApply.d.ts +16 -0
- package/dist/config/configApply.d.ts.map +1 -0
- package/dist/config/configApply.js +74 -0
- package/dist/config/configApply.js.map +1 -0
- package/dist/config/configLoader.d.ts +9 -0
- package/dist/config/configLoader.d.ts.map +1 -0
- package/dist/config/configLoader.js +75 -0
- package/dist/config/configLoader.js.map +1 -0
- package/dist/config/configSchema.d.ts +29 -0
- package/dist/config/configSchema.d.ts.map +1 -0
- package/dist/config/configSchema.js +17 -0
- package/dist/config/configSchema.js.map +1 -0
- package/dist/db/client.d.ts.map +1 -1
- package/dist/db/client.js +8 -1
- package/dist/db/client.js.map +1 -1
- package/dist/db/integrationStore.d.ts.map +1 -1
- package/dist/db/integrationStore.js +3 -0
- package/dist/db/integrationStore.js.map +1 -1
- package/dist/db/migrate.d.ts.map +1 -1
- package/dist/db/migrate.js +2 -0
- package/dist/db/migrate.js.map +1 -1
- package/dist/db/schema.d.ts +36 -0
- package/dist/db/schema.d.ts.map +1 -1
- package/dist/db/schema.js +2 -0
- package/dist/db/schema.js.map +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/integrations/actionsFactory.js +1 -1
- package/dist/integrations/actionsFactory.js.map +1 -1
- package/dist/integrations/catalog.d.ts +3 -4
- package/dist/integrations/catalog.d.ts.map +1 -1
- package/dist/integrations/catalog.js +2 -37
- package/dist/integrations/catalog.js.map +1 -1
- package/dist/integrations/dataLoader.d.ts +2 -46
- package/dist/integrations/dataLoader.d.ts.map +1 -1
- package/dist/integrations/dataLoader.js +1 -125
- package/dist/integrations/dataLoader.js.map +1 -1
- package/dist/integrations/providerRegistry.d.ts.map +1 -1
- package/dist/integrations/providerRegistry.js +10 -6
- package/dist/integrations/providerRegistry.js.map +1 -1
- package/dist/integrations/proxy.d.ts.map +1 -1
- package/dist/integrations/proxy.js +24 -27
- package/dist/integrations/proxy.js.map +1 -1
- package/dist/mcp/auth.d.ts +18 -0
- package/dist/mcp/auth.d.ts.map +1 -0
- package/dist/mcp/auth.js +45 -0
- package/dist/mcp/auth.js.map +1 -0
- package/dist/mcp/handlers.d.ts +12 -0
- package/dist/mcp/handlers.d.ts.map +1 -0
- package/dist/mcp/handlers.js +39 -0
- package/dist/mcp/handlers.js.map +1 -0
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +2 -38
- package/dist/mcp/server.js.map +1 -1
- package/dist/types.d.ts +1 -7
- package/dist/types.d.ts.map +1 -1
- package/package.json +10 -7
- package/integration-data/README.md +0 -52
- package/integration-data/airtable/credentials.json +0 -20
- package/integration-data/airtable/credentials_hint.md +0 -4
- package/integration-data/airtable/handlers/create_record.js +0 -12
- package/integration-data/airtable/handlers/delete_record.js +0 -7
- package/integration-data/airtable/handlers/get_record.js +0 -4
- package/integration-data/airtable/handlers/get_table_schema.js +0 -6
- package/integration-data/airtable/handlers/list_bases.js +0 -4
- package/integration-data/airtable/handlers/list_records.js +0 -25
- package/integration-data/airtable/handlers/list_table_fields.js +0 -6
- package/integration-data/airtable/handlers/list_tables.js +0 -4
- package/integration-data/airtable/handlers/list_views.js +0 -6
- package/integration-data/airtable/handlers/search_records.js +0 -6
- package/integration-data/airtable/handlers/update_record.js +0 -11
- package/integration-data/airtable/manifest.json +0 -83
- package/integration-data/airtable/schemas/create_record.json +0 -12
- package/integration-data/airtable/schemas/delete_record.json +0 -11
- package/integration-data/airtable/schemas/empty.json +0 -6
- package/integration-data/airtable/schemas/get_record.json +0 -11
- package/integration-data/airtable/schemas/id_base.json +0 -9
- package/integration-data/airtable/schemas/id_base_table.json +0 -10
- package/integration-data/airtable/schemas/list_records.json +0 -26
- package/integration-data/airtable/schemas/search_records.json +0 -12
- package/integration-data/airtable/schemas/update_record.json +0 -13
- package/integration-data/github/credentials.json +0 -20
- package/integration-data/github/credentials_hint.md +0 -7
- package/integration-data/github/handlers/add_labels_to_issue.js +0 -12
- package/integration-data/github/handlers/close_issue.js +0 -5
- package/integration-data/github/handlers/comment_on_issue.js +0 -5
- package/integration-data/github/handlers/create_branch.js +0 -33
- package/integration-data/github/handlers/create_commit.js +0 -91
- package/integration-data/github/handlers/create_issue.js +0 -10
- package/integration-data/github/handlers/create_or_update_file.js +0 -21
- package/integration-data/github/handlers/create_pull_request.js +0 -16
- package/integration-data/github/handlers/create_repo.js +0 -11
- package/integration-data/github/handlers/delete_repo.js +0 -6
- package/integration-data/github/handlers/get_issue.js +0 -4
- package/integration-data/github/handlers/get_repo.js +0 -4
- package/integration-data/github/handlers/list_branches.js +0 -4
- package/integration-data/github/handlers/list_commits.js +0 -12
- package/integration-data/github/handlers/list_issues.js +0 -12
- package/integration-data/github/handlers/list_pull_requests.js +0 -8
- package/integration-data/github/handlers/list_repos_install.js +0 -4
- package/integration-data/github/handlers/list_repos_user.js +0 -4
- package/integration-data/github/handlers/merge_pull_request.js +0 -14
- package/integration-data/github/handlers/update_issue.js +0 -15
- package/integration-data/github/manifest.json +0 -26
- package/integration-data/github/schemas/add_labels_to_issue.json +0 -12
- package/integration-data/github/schemas/close_issue.json +0 -10
- package/integration-data/github/schemas/comment_on_issue.json +0 -11
- package/integration-data/github/schemas/create_branch.json +0 -12
- package/integration-data/github/schemas/create_commit.json +0 -25
- package/integration-data/github/schemas/create_issue.json +0 -13
- package/integration-data/github/schemas/create_or_update_file.json +0 -15
- package/integration-data/github/schemas/create_pull_request.json +0 -15
- package/integration-data/github/schemas/create_repo.json +0 -12
- package/integration-data/github/schemas/delete_repo.json +0 -10
- package/integration-data/github/schemas/empty.json +0 -5
- package/integration-data/github/schemas/get_issue.json +0 -10
- package/integration-data/github/schemas/get_repo.json +0 -9
- package/integration-data/github/schemas/list_commits.json +0 -12
- package/integration-data/github/schemas/list_issues.json +0 -12
- package/integration-data/github/schemas/list_pull_requests.json +0 -10
- package/integration-data/github/schemas/merge_pull_request.json +0 -14
- package/integration-data/github/schemas/owner_repo.json +0 -9
- package/integration-data/github/schemas/update_issue.json +0 -15
- package/integration-data/google-calendar/credentials.json +0 -36
- package/integration-data/google-calendar/credentials_hint.md +0 -9
- package/integration-data/google-calendar/handlers/create_event.js +0 -6
- package/integration-data/google-calendar/handlers/delete_acl.js +0 -6
- package/integration-data/google-calendar/handlers/delete_event.js +0 -7
- package/integration-data/google-calendar/handlers/freebusy_query.js +0 -4
- package/integration-data/google-calendar/handlers/get_acl.js +0 -5
- package/integration-data/google-calendar/handlers/get_calendar.js +0 -4
- package/integration-data/google-calendar/handlers/get_event.js +0 -5
- package/integration-data/google-calendar/handlers/insert_acl.js +0 -6
- package/integration-data/google-calendar/handlers/list_acl.js +0 -5
- package/integration-data/google-calendar/handlers/list_calendars.js +0 -4
- package/integration-data/google-calendar/handlers/list_colors.js +0 -4
- package/integration-data/google-calendar/handlers/list_events.js +0 -21
- package/integration-data/google-calendar/handlers/list_settings.js +0 -4
- package/integration-data/google-calendar/handlers/move_event.js +0 -6
- package/integration-data/google-calendar/handlers/patch_event.js +0 -5
- package/integration-data/google-calendar/handlers/quick_add.js +0 -6
- package/integration-data/google-calendar/handlers/update_acl.js +0 -7
- package/integration-data/google-calendar/handlers/update_event.js +0 -5
- package/integration-data/google-calendar/manifest.json +0 -26
- package/integration-data/google-calendar/schemas/create_event.json +0 -34
- package/integration-data/google-calendar/schemas/delete_acl.json +0 -9
- package/integration-data/google-calendar/schemas/empty.json +0 -1
- package/integration-data/google-calendar/schemas/freebusy_query.json +0 -13
- package/integration-data/google-calendar/schemas/get_acl.json +0 -9
- package/integration-data/google-calendar/schemas/id_calendar.json +0 -8
- package/integration-data/google-calendar/schemas/id_calendar_event.json +0 -9
- package/integration-data/google-calendar/schemas/insert_acl.json +0 -18
- package/integration-data/google-calendar/schemas/list_events.json +0 -15
- package/integration-data/google-calendar/schemas/move_event.json +0 -10
- package/integration-data/google-calendar/schemas/patch_event.json +0 -10
- package/integration-data/google-calendar/schemas/quick_add.json +0 -9
- package/integration-data/google-calendar/schemas/update_acl.json +0 -10
- package/integration-data/google-calendar/schemas/update_event.json +0 -10
- package/integration-data/google-docs/credentials.json +0 -36
- package/integration-data/google-docs/credentials_hint.md +0 -9
- package/integration-data/google-docs/handlers/append_text.js +0 -12
- package/integration-data/google-docs/handlers/batch_update.js +0 -13
- package/integration-data/google-docs/handlers/create_document.js +0 -9
- package/integration-data/google-docs/handlers/delete_first_match.js +0 -50
- package/integration-data/google-docs/handlers/get_document.js +0 -12
- package/integration-data/google-docs/handlers/get_document_structured.js +0 -6
- package/integration-data/google-docs/handlers/get_document_text.js +0 -17
- package/integration-data/google-docs/handlers/insert_inline_image_after_first_match.js +0 -41
- package/integration-data/google-docs/handlers/insert_page_break_after_first_match.js +0 -49
- package/integration-data/google-docs/handlers/insert_table_after_first_match.js +0 -49
- package/integration-data/google-docs/handlers/insert_text_after_first_match.js +0 -51
- package/integration-data/google-docs/handlers/replace_all_text.js +0 -8
- package/integration-data/google-docs/handlers/style_first_match.js +0 -42
- package/integration-data/google-docs/handlers/update_document_style.js +0 -8
- package/integration-data/google-docs/handlers/update_paragraph_style_for_first_match.js +0 -48
- package/integration-data/google-docs/manifest.json +0 -58
- package/integration-data/google-docs/schemas/append_text.json +0 -10
- package/integration-data/google-docs/schemas/apply_text_style.json +0 -13
- package/integration-data/google-docs/schemas/batch_update.json +0 -16
- package/integration-data/google-docs/schemas/create_document.json +0 -8
- package/integration-data/google-docs/schemas/delete_content_range.json +0 -11
- package/integration-data/google-docs/schemas/delete_first_match.json +0 -10
- package/integration-data/google-docs/schemas/get_document.json +0 -11
- package/integration-data/google-docs/schemas/get_document_structured.json +0 -9
- package/integration-data/google-docs/schemas/get_document_text.json +0 -9
- package/integration-data/google-docs/schemas/insert_inline_image.json +0 -12
- package/integration-data/google-docs/schemas/insert_inline_image_after_first_match.json +0 -13
- package/integration-data/google-docs/schemas/insert_page_break.json +0 -10
- package/integration-data/google-docs/schemas/insert_page_break_after_first_match.json +0 -11
- package/integration-data/google-docs/schemas/insert_table.json +0 -12
- package/integration-data/google-docs/schemas/insert_table_after_first_match.json +0 -13
- package/integration-data/google-docs/schemas/insert_text_after_first_match.json +0 -12
- package/integration-data/google-docs/schemas/insert_text_at.json +0 -11
- package/integration-data/google-docs/schemas/replace_all_text.json +0 -12
- package/integration-data/google-docs/schemas/style_first_match.json +0 -12
- package/integration-data/google-docs/schemas/update_document_style.json +0 -11
- package/integration-data/google-docs/schemas/update_paragraph_style.json +0 -13
- package/integration-data/google-docs/schemas/update_paragraph_style_for_first_match.json +0 -12
- package/integration-data/google-sheet/credentials.json +0 -36
- package/integration-data/google-sheet/credentials_hint.md +0 -9
- package/integration-data/google-sheet/handlers/append_values.js +0 -18
- package/integration-data/google-sheet/handlers/batch_clear_values.js +0 -6
- package/integration-data/google-sheet/handlers/batch_clear_values_by_data_filter.js +0 -6
- package/integration-data/google-sheet/handlers/batch_get_values.js +0 -16
- package/integration-data/google-sheet/handlers/batch_update.js +0 -14
- package/integration-data/google-sheet/handlers/batch_update_values.js +0 -16
- package/integration-data/google-sheet/handlers/batch_update_values_by_data_filter.js +0 -16
- package/integration-data/google-sheet/handlers/clear_values.js +0 -6
- package/integration-data/google-sheet/handlers/copy_to_spreadsheet.js +0 -6
- package/integration-data/google-sheet/handlers/create_spreadsheet.js +0 -5
- package/integration-data/google-sheet/handlers/get_developer_metadata.js +0 -6
- package/integration-data/google-sheet/handlers/get_spreadsheet.js +0 -12
- package/integration-data/google-sheet/handlers/get_spreadsheet_by_data_filter.js +0 -10
- package/integration-data/google-sheet/handlers/get_values.js +0 -14
- package/integration-data/google-sheet/handlers/get_values_by_data_filter.js +0 -14
- package/integration-data/google-sheet/handlers/search_developer_metadata.js +0 -7
- package/integration-data/google-sheet/handlers/update_values.js +0 -16
- package/integration-data/google-sheet/manifest.json +0 -125
- package/integration-data/google-sheet/schemas/append_values.json +0 -16
- package/integration-data/google-sheet/schemas/batch_clear_values.json +0 -10
- package/integration-data/google-sheet/schemas/batch_clear_values_by_data_filter.json +0 -10
- package/integration-data/google-sheet/schemas/batch_get_values.json +0 -13
- package/integration-data/google-sheet/schemas/batch_update.json +0 -13
- package/integration-data/google-sheet/schemas/batch_update_values.json +0 -25
- package/integration-data/google-sheet/schemas/batch_update_values_by_data_filter.json +0 -25
- package/integration-data/google-sheet/schemas/clear_values.json +0 -10
- package/integration-data/google-sheet/schemas/copy_to_spreadsheet.json +0 -11
- package/integration-data/google-sheet/schemas/create_spreadsheet.json +0 -11
- package/integration-data/google-sheet/schemas/get_developer_metadata.json +0 -10
- package/integration-data/google-sheet/schemas/get_spreadsheet.json +0 -15
- package/integration-data/google-sheet/schemas/get_spreadsheet_by_data_filter.json +0 -11
- package/integration-data/google-sheet/schemas/get_values.json +0 -13
- package/integration-data/google-sheet/schemas/get_values_by_data_filter.json +0 -17
- package/integration-data/google-sheet/schemas/search_developer_metadata.json +0 -14
- package/integration-data/google-sheet/schemas/update_values.json +0 -15
- package/integration-data/google-slides/credentials.json +0 -36
- package/integration-data/google-slides/credentials_hint.md +0 -9
- package/integration-data/google-slides/handlers/append_text_to_title_of_first_slide.js +0 -17
- package/integration-data/google-slides/handlers/batch_update.js +0 -15
- package/integration-data/google-slides/handlers/create_presentation.js +0 -8
- package/integration-data/google-slides/handlers/create_slide_after_first_match.js +0 -20
- package/integration-data/google-slides/handlers/get_page_thumbnail.js +0 -12
- package/integration-data/google-slides/handlers/get_presentation.js +0 -6
- package/integration-data/google-slides/handlers/insert_image_after_first_match.js +0 -19
- package/integration-data/google-slides/handlers/insert_shape_after_first_match.js +0 -21
- package/integration-data/google-slides/handlers/replace_text_first_match.js +0 -9
- package/integration-data/google-slides/handlers/set_background_color_for_slide_index.js +0 -15
- package/integration-data/google-slides/handlers/style_text_first_match.js +0 -48
- package/integration-data/google-slides/manifest.json +0 -41
- package/integration-data/google-slides/schemas/append_text_to_title_of_first_slide.json +0 -11
- package/integration-data/google-slides/schemas/batch_update.json +0 -13
- package/integration-data/google-slides/schemas/create_presentation.json +0 -8
- package/integration-data/google-slides/schemas/create_slide_after_first_match.json +0 -11
- package/integration-data/google-slides/schemas/get_page_thumbnail.json +0 -12
- package/integration-data/google-slides/schemas/get_presentation.json +0 -9
- package/integration-data/google-slides/schemas/insert_image_after_first_match.json +0 -13
- package/integration-data/google-slides/schemas/insert_shape_after_first_match.json +0 -13
- package/integration-data/google-slides/schemas/replace_text_first_match.json +0 -12
- package/integration-data/google-slides/schemas/set_background_color_for_slide_index.json +0 -11
- package/integration-data/google-slides/schemas/style_text_first_match.json +0 -12
- package/integration-data/new_integration_prompt.md +0 -41
- package/integration-data/notion/credentials.json +0 -21
- package/integration-data/notion/credentials_hint.md +0 -5
- package/integration-data/notion/handlers/append_block_children.js +0 -7
- package/integration-data/notion/handlers/create_comment.js +0 -10
- package/integration-data/notion/handlers/create_database.js +0 -11
- package/integration-data/notion/handlers/create_page.js +0 -13
- package/integration-data/notion/handlers/delete_block.js +0 -8
- package/integration-data/notion/handlers/get_me.js +0 -4
- package/integration-data/notion/handlers/list_block_children.js +0 -10
- package/integration-data/notion/handlers/list_comments.js +0 -14
- package/integration-data/notion/handlers/list_users.js +0 -10
- package/integration-data/notion/handlers/query_database.js +0 -10
- package/integration-data/notion/handlers/retrieve_block.js +0 -4
- package/integration-data/notion/handlers/retrieve_database.js +0 -4
- package/integration-data/notion/handlers/retrieve_page.js +0 -4
- package/integration-data/notion/handlers/retrieve_page_property_item.js +0 -10
- package/integration-data/notion/handlers/retrieve_user.js +0 -4
- package/integration-data/notion/handlers/search.js +0 -11
- package/integration-data/notion/handlers/update_block.js +0 -7
- package/integration-data/notion/handlers/update_database.js +0 -10
- package/integration-data/notion/handlers/update_page_properties.js +0 -10
- package/integration-data/notion/manifest.json +0 -139
- package/integration-data/notion/prompt.md +0 -26
- package/integration-data/notion/schemas/append_block_children.json +0 -10
- package/integration-data/notion/schemas/create_comment.json +0 -18
- package/integration-data/notion/schemas/create_database.json +0 -18
- package/integration-data/notion/schemas/create_page.json +0 -22
- package/integration-data/notion/schemas/delete_block.json +0 -9
- package/integration-data/notion/schemas/empty.json +0 -6
- package/integration-data/notion/schemas/id_block.json +0 -9
- package/integration-data/notion/schemas/id_database.json +0 -9
- package/integration-data/notion/schemas/id_page.json +0 -9
- package/integration-data/notion/schemas/id_user.json +0 -9
- package/integration-data/notion/schemas/list_block_children.json +0 -11
- package/integration-data/notion/schemas/list_comments.json +0 -15
- package/integration-data/notion/schemas/list_users.json +0 -9
- package/integration-data/notion/schemas/query_database.json +0 -13
- package/integration-data/notion/schemas/retrieve_page_property_item.json +0 -12
- package/integration-data/notion/schemas/search.json +0 -27
- package/integration-data/notion/schemas/update_block.json +0 -10
- package/integration-data/notion/schemas/update_database.json +0 -13
- package/integration-data/notion/schemas/update_page_properties.json +0 -13
- package/integration-data/trello/credentials.json +0 -26
- package/integration-data/trello/credentials_hint.md +0 -4
- package/integration-data/trello/handlers/add_checklist_to_card.js +0 -5
- package/integration-data/trello/handlers/add_member_to_card.js +0 -5
- package/integration-data/trello/handlers/archive_list.js +0 -5
- package/integration-data/trello/handlers/create_card.js +0 -13
- package/integration-data/trello/handlers/create_list.js +0 -7
- package/integration-data/trello/handlers/delete_card.js +0 -9
- package/integration-data/trello/handlers/get_board.js +0 -4
- package/integration-data/trello/handlers/get_board_cards.js +0 -4
- package/integration-data/trello/handlers/get_board_custom_fields.js +0 -4
- package/integration-data/trello/handlers/get_board_labels.js +0 -4
- package/integration-data/trello/handlers/get_board_lists.js +0 -4
- package/integration-data/trello/handlers/get_board_members.js +0 -4
- package/integration-data/trello/handlers/get_board_memberships.js +0 -4
- package/integration-data/trello/handlers/get_card.js +0 -4
- package/integration-data/trello/handlers/get_card_actions.js +0 -4
- package/integration-data/trello/handlers/get_card_attachments.js +0 -4
- package/integration-data/trello/handlers/get_card_checklists.js +0 -4
- package/integration-data/trello/handlers/get_card_custom_field_items.js +0 -4
- package/integration-data/trello/handlers/get_card_members.js +0 -4
- package/integration-data/trello/handlers/get_list.js +0 -4
- package/integration-data/trello/handlers/get_list_cards.js +0 -4
- package/integration-data/trello/handlers/get_member.js +0 -4
- package/integration-data/trello/handlers/get_member_boards.js +0 -4
- package/integration-data/trello/handlers/get_member_organizations.js +0 -4
- package/integration-data/trello/handlers/get_organization.js +0 -4
- package/integration-data/trello/handlers/get_organization_boards.js +0 -4
- package/integration-data/trello/handlers/move_card_to_list.js +0 -5
- package/integration-data/trello/handlers/remove_member_from_card.js +0 -9
- package/integration-data/trello/handlers/search.js +0 -5
- package/integration-data/trello/handlers/update_card.js +0 -19
- package/integration-data/trello/handlers/update_list.js +0 -11
- package/integration-data/trello/manifest.json +0 -231
- package/integration-data/trello/schemas/add_checklist_to_card.json +0 -10
- package/integration-data/trello/schemas/add_member_to_card.json +0 -10
- package/integration-data/trello/schemas/archive_list.json +0 -9
- package/integration-data/trello/schemas/create_card.json +0 -13
- package/integration-data/trello/schemas/create_list.json +0 -11
- package/integration-data/trello/schemas/delete_card.json +0 -9
- package/integration-data/trello/schemas/display_trello_cards.json +0 -45
- package/integration-data/trello/schemas/empty.json +0 -5
- package/integration-data/trello/schemas/get_member.json +0 -5
- package/integration-data/trello/schemas/id_board.json +0 -8
- package/integration-data/trello/schemas/id_card.json +0 -8
- package/integration-data/trello/schemas/id_list.json +0 -8
- package/integration-data/trello/schemas/id_org.json +0 -8
- package/integration-data/trello/schemas/move_card_to_list.json +0 -10
- package/integration-data/trello/schemas/remove_member_from_card.json +0 -10
- package/integration-data/trello/schemas/search.json +0 -8
- package/integration-data/trello/schemas/update_card.json +0 -16
- package/integration-data/trello/schemas/update_list.json +0 -12
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
async (input) => {
|
|
2
|
-
const { spreadsheetId, range, majorDimension, valueRenderOption, dateTimeRenderOption } = input
|
|
3
|
-
const params = new URLSearchParams()
|
|
4
|
-
if (majorDimension)
|
|
5
|
-
params.set('majorDimension', majorDimension)
|
|
6
|
-
if (valueRenderOption)
|
|
7
|
-
params.set('valueRenderOption', valueRenderOption)
|
|
8
|
-
if (dateTimeRenderOption)
|
|
9
|
-
params.set('dateTimeRenderOption', dateTimeRenderOption)
|
|
10
|
-
const qs = params.toString()
|
|
11
|
-
const path = `/spreadsheets/${encodeURIComponent(spreadsheetId)}/values/${encodeURIComponent(range)}${qs ? `?${qs}` : ''}`
|
|
12
|
-
const res = await integration.fetch(path)
|
|
13
|
-
return await res.json()
|
|
14
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
async (input) => {
|
|
2
|
-
const { spreadsheetId, dataFilters, majorDimension, valueRenderOption, dateTimeRenderOption } = input
|
|
3
|
-
const params = new URLSearchParams()
|
|
4
|
-
if (majorDimension)
|
|
5
|
-
params.set('majorDimension', majorDimension)
|
|
6
|
-
if (valueRenderOption)
|
|
7
|
-
params.set('valueRenderOption', valueRenderOption)
|
|
8
|
-
if (dateTimeRenderOption)
|
|
9
|
-
params.set('dateTimeRenderOption', dateTimeRenderOption)
|
|
10
|
-
const qs = params.toString()
|
|
11
|
-
const path = `/spreadsheets/${encodeURIComponent(spreadsheetId)}/values:batchGetByDataFilter${qs ? `?${qs}` : ''}`
|
|
12
|
-
const res = await integration.fetch(path, { method: 'POST', body: { dataFilters } })
|
|
13
|
-
return await res.json()
|
|
14
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
async (input) => {
|
|
2
|
-
const { spreadsheetId, dataFilters } = input
|
|
3
|
-
// Correct endpoint per Sheets API: /spreadsheets/{spreadsheetId}/developerMetadata:search
|
|
4
|
-
const path = `/spreadsheets/${encodeURIComponent(spreadsheetId)}/developerMetadata:search`
|
|
5
|
-
const res = await integration.fetch(path, { method: 'POST', body: { dataFilters } })
|
|
6
|
-
return await res.json()
|
|
7
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
async (input) => {
|
|
2
|
-
const { spreadsheetId, range, values, valueInputOption, includeValuesInResponse, responseValueRenderOption, responseDateTimeRenderOption } = input
|
|
3
|
-
const params = new URLSearchParams()
|
|
4
|
-
if (valueInputOption)
|
|
5
|
-
params.set('valueInputOption', valueInputOption)
|
|
6
|
-
if (includeValuesInResponse !== undefined)
|
|
7
|
-
params.set('includeValuesInResponse', String(includeValuesInResponse))
|
|
8
|
-
if (responseValueRenderOption)
|
|
9
|
-
params.set('responseValueRenderOption', responseValueRenderOption)
|
|
10
|
-
if (responseDateTimeRenderOption)
|
|
11
|
-
params.set('responseDateTimeRenderOption', responseDateTimeRenderOption)
|
|
12
|
-
const qs = params.toString()
|
|
13
|
-
const path = `/spreadsheets/${encodeURIComponent(spreadsheetId)}/values/${encodeURIComponent(range)}${qs ? `?${qs}` : ''}`
|
|
14
|
-
const res = await integration.fetch(path, { method: 'PUT', body: { values } })
|
|
15
|
-
return await res.json()
|
|
16
|
-
}
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "google-sheet",
|
|
3
|
-
"version": "0.1.0",
|
|
4
|
-
"tools": [
|
|
5
|
-
{
|
|
6
|
-
"name": "get_spreadsheet",
|
|
7
|
-
"description": "Retrieve spreadsheet metadata and optionally grid data.",
|
|
8
|
-
"inputSchema": "schemas/get_spreadsheet.json",
|
|
9
|
-
"handler": "handlers/get_spreadsheet.js",
|
|
10
|
-
"scope": "read"
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"name": "get_spreadsheet_by_data_filter",
|
|
14
|
-
"description": "Retrieve spreadsheet metadata using DataFilters.",
|
|
15
|
-
"inputSchema": "schemas/get_spreadsheet_by_data_filter.json",
|
|
16
|
-
"handler": "handlers/get_spreadsheet_by_data_filter.js",
|
|
17
|
-
"scope": "read"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"name": "get_values",
|
|
21
|
-
"description": "Get values from a single A1 range.",
|
|
22
|
-
"inputSchema": "schemas/get_values.json",
|
|
23
|
-
"handler": "handlers/get_values.js",
|
|
24
|
-
"scope": "read"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"name": "batch_get_values",
|
|
28
|
-
"description": "Batch get values for multiple A1 ranges.",
|
|
29
|
-
"inputSchema": "schemas/batch_get_values.json",
|
|
30
|
-
"handler": "handlers/batch_get_values.js",
|
|
31
|
-
"scope": "read"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"name": "get_values_by_data_filter",
|
|
35
|
-
"description": "Batch get values using DataFilters.",
|
|
36
|
-
"inputSchema": "schemas/get_values_by_data_filter.json",
|
|
37
|
-
"handler": "handlers/get_values_by_data_filter.js",
|
|
38
|
-
"scope": "read"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"name": "search_developer_metadata",
|
|
42
|
-
"description": "Search developer metadata in a spreadsheet.",
|
|
43
|
-
"inputSchema": "schemas/search_developer_metadata.json",
|
|
44
|
-
"handler": "handlers/search_developer_metadata.js",
|
|
45
|
-
"scope": "read"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"name": "get_developer_metadata",
|
|
49
|
-
"description": "Get a developer metadata entry by ID.",
|
|
50
|
-
"inputSchema": "schemas/get_developer_metadata.json",
|
|
51
|
-
"handler": "handlers/get_developer_metadata.js",
|
|
52
|
-
"scope": "read"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"name": "create_spreadsheet",
|
|
56
|
-
"description": "Create a new spreadsheet.",
|
|
57
|
-
"inputSchema": "schemas/create_spreadsheet.json",
|
|
58
|
-
"handler": "handlers/create_spreadsheet.js",
|
|
59
|
-
"scope": "write"
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"name": "update_values",
|
|
63
|
-
"description": "Update values in a range (PUT).",
|
|
64
|
-
"inputSchema": "schemas/update_values.json",
|
|
65
|
-
"handler": "handlers/update_values.js",
|
|
66
|
-
"scope": "write"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"name": "append_values",
|
|
70
|
-
"description": "Append values after the last row of a range.",
|
|
71
|
-
"inputSchema": "schemas/append_values.json",
|
|
72
|
-
"handler": "handlers/append_values.js",
|
|
73
|
-
"scope": "write"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"name": "batch_update_values",
|
|
77
|
-
"description": "Batch update values across multiple ranges.",
|
|
78
|
-
"inputSchema": "schemas/batch_update_values.json",
|
|
79
|
-
"handler": "handlers/batch_update_values.js",
|
|
80
|
-
"scope": "write"
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"name": "batch_update_values_by_data_filter",
|
|
84
|
-
"description": "Batch update values using DataFilters.",
|
|
85
|
-
"inputSchema": "schemas/batch_update_values_by_data_filter.json",
|
|
86
|
-
"handler": "handlers/batch_update_values_by_data_filter.js",
|
|
87
|
-
"scope": "write"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"name": "clear_values",
|
|
91
|
-
"description": "Clear values in the specified range.",
|
|
92
|
-
"inputSchema": "schemas/clear_values.json",
|
|
93
|
-
"handler": "handlers/clear_values.js",
|
|
94
|
-
"scope": "write"
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
"name": "batch_clear_values",
|
|
98
|
-
"description": "Batch clear values across multiple ranges.",
|
|
99
|
-
"inputSchema": "schemas/batch_clear_values.json",
|
|
100
|
-
"handler": "handlers/batch_clear_values.js",
|
|
101
|
-
"scope": "write"
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
"name": "batch_clear_values_by_data_filter",
|
|
105
|
-
"description": "Batch clear values using DataFilters.",
|
|
106
|
-
"inputSchema": "schemas/batch_clear_values_by_data_filter.json",
|
|
107
|
-
"handler": "handlers/batch_clear_values_by_data_filter.js",
|
|
108
|
-
"scope": "write"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"name": "batch_update",
|
|
112
|
-
"description": "Send a batchUpdate request (addSheet, deleteSheet, etc).",
|
|
113
|
-
"inputSchema": "schemas/batch_update.json",
|
|
114
|
-
"handler": "handlers/batch_update.js",
|
|
115
|
-
"scope": "write"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
"name": "copy_to_spreadsheet",
|
|
119
|
-
"description": "Copy a sheet to another spreadsheet.",
|
|
120
|
-
"inputSchema": "schemas/copy_to_spreadsheet.json",
|
|
121
|
-
"handler": "handlers/copy_to_spreadsheet.js",
|
|
122
|
-
"scope": "write"
|
|
123
|
-
}
|
|
124
|
-
]
|
|
125
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"required": ["spreadsheetId", "range", "values"],
|
|
5
|
-
"properties": {
|
|
6
|
-
"spreadsheetId": { "type": "string" },
|
|
7
|
-
"range": { "type": "string" },
|
|
8
|
-
"values": { "type": "array", "items": { "type": "array", "items": {} } },
|
|
9
|
-
"valueInputOption": { "type": "string", "enum": ["RAW", "USER_ENTERED"] },
|
|
10
|
-
"insertDataOption": { "type": "string", "enum": ["OVERWRITE", "INSERT_ROWS"] },
|
|
11
|
-
"includeValuesInResponse": { "type": "boolean" },
|
|
12
|
-
"responseValueRenderOption": { "type": "string", "enum": ["FORMATTED_VALUE", "UNFORMATTED_VALUE", "FORMULA"] },
|
|
13
|
-
"responseDateTimeRenderOption": { "type": "string", "enum": ["SERIAL_NUMBER", "FORMATTED_STRING"] }
|
|
14
|
-
},
|
|
15
|
-
"additionalProperties": false
|
|
16
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"required": ["spreadsheetId", "ranges"],
|
|
5
|
-
"properties": {
|
|
6
|
-
"spreadsheetId": { "type": "string" },
|
|
7
|
-
"ranges": { "type": "array", "items": { "type": "string" } }
|
|
8
|
-
},
|
|
9
|
-
"additionalProperties": false
|
|
10
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"required": ["spreadsheetId", "dataFilters"],
|
|
5
|
-
"properties": {
|
|
6
|
-
"spreadsheetId": { "type": "string" },
|
|
7
|
-
"dataFilters": { "type": "array", "items": { "type": "object" } }
|
|
8
|
-
},
|
|
9
|
-
"additionalProperties": false
|
|
10
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"required": ["spreadsheetId", "ranges"],
|
|
5
|
-
"properties": {
|
|
6
|
-
"spreadsheetId": { "type": "string" },
|
|
7
|
-
"ranges": { "type": "array", "items": { "type": "string" } },
|
|
8
|
-
"majorDimension": { "type": "string", "enum": ["ROWS", "COLUMNS"] },
|
|
9
|
-
"valueRenderOption": { "type": "string", "enum": ["FORMATTED_VALUE", "UNFORMATTED_VALUE", "FORMULA"] },
|
|
10
|
-
"dateTimeRenderOption": { "type": "string", "enum": ["SERIAL_NUMBER", "FORMATTED_STRING"] }
|
|
11
|
-
},
|
|
12
|
-
"additionalProperties": false
|
|
13
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"required": ["spreadsheetId", "requests"],
|
|
5
|
-
"properties": {
|
|
6
|
-
"spreadsheetId": { "type": "string" },
|
|
7
|
-
"requests": { "type": "array", "items": { "type": "object" } },
|
|
8
|
-
"includeSpreadsheetInResponse": { "type": "boolean" },
|
|
9
|
-
"responseRanges": { "type": "array", "items": { "type": "string" } },
|
|
10
|
-
"responseIncludeGridData": { "type": "boolean" }
|
|
11
|
-
},
|
|
12
|
-
"additionalProperties": true
|
|
13
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"required": ["spreadsheetId", "data"],
|
|
5
|
-
"properties": {
|
|
6
|
-
"spreadsheetId": { "type": "string" },
|
|
7
|
-
"data": {
|
|
8
|
-
"type": "array",
|
|
9
|
-
"items": {
|
|
10
|
-
"type": "object",
|
|
11
|
-
"required": ["range", "values"],
|
|
12
|
-
"properties": {
|
|
13
|
-
"range": { "type": "string" },
|
|
14
|
-
"values": { "type": "array", "items": { "type": "array", "items": {} } },
|
|
15
|
-
"majorDimension": { "type": "string", "enum": ["ROWS", "COLUMNS"] }
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
"valueInputOption": { "type": "string", "enum": ["RAW", "USER_ENTERED"] },
|
|
20
|
-
"includeValuesInResponse": { "type": "boolean" },
|
|
21
|
-
"responseValueRenderOption": { "type": "string", "enum": ["FORMATTED_VALUE", "UNFORMATTED_VALUE", "FORMULA"] },
|
|
22
|
-
"responseDateTimeRenderOption": { "type": "string", "enum": ["SERIAL_NUMBER", "FORMATTED_STRING"] }
|
|
23
|
-
},
|
|
24
|
-
"additionalProperties": false
|
|
25
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"required": ["spreadsheetId", "data"],
|
|
5
|
-
"properties": {
|
|
6
|
-
"spreadsheetId": { "type": "string" },
|
|
7
|
-
"data": {
|
|
8
|
-
"type": "array",
|
|
9
|
-
"items": {
|
|
10
|
-
"type": "object",
|
|
11
|
-
"required": ["dataFilter", "values"],
|
|
12
|
-
"properties": {
|
|
13
|
-
"dataFilter": { "type": "object" },
|
|
14
|
-
"values": { "type": "array", "items": { "type": "array", "items": {} } },
|
|
15
|
-
"majorDimension": { "type": "string", "enum": ["ROWS", "COLUMNS"] }
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
"valueInputOption": { "type": "string", "enum": ["RAW", "USER_ENTERED"] },
|
|
20
|
-
"includeValuesInResponse": { "type": "boolean" },
|
|
21
|
-
"responseValueRenderOption": { "type": "string", "enum": ["FORMATTED_VALUE", "UNFORMATTED_VALUE", "FORMULA"] },
|
|
22
|
-
"responseDateTimeRenderOption": { "type": "string", "enum": ["SERIAL_NUMBER", "FORMATTED_STRING"] }
|
|
23
|
-
},
|
|
24
|
-
"additionalProperties": false
|
|
25
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"required": ["spreadsheetId", "sheetId", "destinationSpreadsheetId"],
|
|
5
|
-
"properties": {
|
|
6
|
-
"spreadsheetId": { "type": "string", "description": "Source spreadsheet ID" },
|
|
7
|
-
"sheetId": { "type": "integer", "description": "Source sheet numeric ID" },
|
|
8
|
-
"destinationSpreadsheetId": { "type": "string", "description": "Destination spreadsheet ID" }
|
|
9
|
-
},
|
|
10
|
-
"additionalProperties": false
|
|
11
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"properties": {
|
|
5
|
-
"properties": { "type": "object", "description": "Spreadsheet properties" },
|
|
6
|
-
"sheets": { "type": "array", "items": { "type": "object" } },
|
|
7
|
-
"namedRanges": { "type": "array", "items": { "type": "object" } },
|
|
8
|
-
"dataSources": { "type": "array", "items": { "type": "object" } }
|
|
9
|
-
},
|
|
10
|
-
"additionalProperties": true
|
|
11
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"required": ["spreadsheetId", "metadataId"],
|
|
5
|
-
"properties": {
|
|
6
|
-
"spreadsheetId": { "type": "string" },
|
|
7
|
-
"metadataId": { "type": "integer" }
|
|
8
|
-
},
|
|
9
|
-
"additionalProperties": false
|
|
10
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"required": ["spreadsheetId"],
|
|
5
|
-
"properties": {
|
|
6
|
-
"spreadsheetId": { "type": "string", "description": "ID of the spreadsheet" },
|
|
7
|
-
"includeGridData": { "type": "boolean", "description": "Whether to include grid data" },
|
|
8
|
-
"ranges": {
|
|
9
|
-
"type": "array",
|
|
10
|
-
"items": { "type": "string" },
|
|
11
|
-
"description": "Optional A1 ranges to include"
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
"additionalProperties": false
|
|
15
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"required": ["spreadsheetId"],
|
|
5
|
-
"properties": {
|
|
6
|
-
"spreadsheetId": { "type": "string" },
|
|
7
|
-
"dataFilters": { "type": "array", "items": { "type": "object" } },
|
|
8
|
-
"includeGridData": { "type": "boolean" }
|
|
9
|
-
},
|
|
10
|
-
"additionalProperties": true
|
|
11
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"required": ["spreadsheetId", "range"],
|
|
5
|
-
"properties": {
|
|
6
|
-
"spreadsheetId": { "type": "string" },
|
|
7
|
-
"range": { "type": "string", "description": "A1 notation range" },
|
|
8
|
-
"majorDimension": { "type": "string", "enum": ["ROWS", "COLUMNS"], "description": "Return values by rows or columns" },
|
|
9
|
-
"valueRenderOption": { "type": "string", "enum": ["FORMATTED_VALUE", "UNFORMATTED_VALUE", "FORMULA"] },
|
|
10
|
-
"dateTimeRenderOption": { "type": "string", "enum": ["SERIAL_NUMBER", "FORMATTED_STRING"] }
|
|
11
|
-
},
|
|
12
|
-
"additionalProperties": false
|
|
13
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"required": ["spreadsheetId", "dataFilters"],
|
|
5
|
-
"properties": {
|
|
6
|
-
"spreadsheetId": { "type": "string" },
|
|
7
|
-
"dataFilters": {
|
|
8
|
-
"type": "array",
|
|
9
|
-
"items": { "type": "object" },
|
|
10
|
-
"description": "Array of DataFilter objects per Sheets API"
|
|
11
|
-
},
|
|
12
|
-
"majorDimension": { "type": "string", "enum": ["ROWS", "COLUMNS"] },
|
|
13
|
-
"valueRenderOption": { "type": "string", "enum": ["FORMATTED_VALUE", "UNFORMATTED_VALUE", "FORMULA"] },
|
|
14
|
-
"dateTimeRenderOption": { "type": "string", "enum": ["SERIAL_NUMBER", "FORMATTED_STRING"] }
|
|
15
|
-
},
|
|
16
|
-
"additionalProperties": false
|
|
17
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"required": ["spreadsheetId", "dataFilters"],
|
|
5
|
-
"properties": {
|
|
6
|
-
"spreadsheetId": { "type": "string" },
|
|
7
|
-
"dataFilters": {
|
|
8
|
-
"type": "array",
|
|
9
|
-
"items": { "type": "object" },
|
|
10
|
-
"description": "DeveloperMetadataLookup wrapped in DataFilter objects"
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
"additionalProperties": false
|
|
14
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"required": ["spreadsheetId", "range", "values"],
|
|
5
|
-
"properties": {
|
|
6
|
-
"spreadsheetId": { "type": "string" },
|
|
7
|
-
"range": { "type": "string" },
|
|
8
|
-
"values": { "type": "array", "items": { "type": "array", "items": {} } },
|
|
9
|
-
"valueInputOption": { "type": "string", "enum": ["RAW", "USER_ENTERED"] },
|
|
10
|
-
"includeValuesInResponse": { "type": "boolean" },
|
|
11
|
-
"responseValueRenderOption": { "type": "string", "enum": ["FORMATTED_VALUE", "UNFORMATTED_VALUE", "FORMULA"] },
|
|
12
|
-
"responseDateTimeRenderOption": { "type": "string", "enum": ["SERIAL_NUMBER", "FORMATTED_STRING"] }
|
|
13
|
-
},
|
|
14
|
-
"additionalProperties": false
|
|
15
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schema": {
|
|
3
|
-
"type": "object",
|
|
4
|
-
"properties": {
|
|
5
|
-
"token": {
|
|
6
|
-
"type": "string",
|
|
7
|
-
"title": "OAuth Access Token (optional)",
|
|
8
|
-
"description": "Google OAuth access token to use as a Bearer token (typically short-lived)."
|
|
9
|
-
},
|
|
10
|
-
"serviceAccountJson": {
|
|
11
|
-
"type": "string",
|
|
12
|
-
"title": "Service Account JSON (recommended)",
|
|
13
|
-
"description": "Full service account key JSON (contents of the downloaded JSON file)."
|
|
14
|
-
},
|
|
15
|
-
"subject": {
|
|
16
|
-
"type": "string",
|
|
17
|
-
"title": "Subject / impersonated user (optional)",
|
|
18
|
-
"description": "Optional user email to impersonate when using Google Workspace domain-wide delegation."
|
|
19
|
-
},
|
|
20
|
-
"scopes": {
|
|
21
|
-
"type": "array",
|
|
22
|
-
"title": "OAuth scopes (optional)",
|
|
23
|
-
"description": "Optional override for OAuth scopes.",
|
|
24
|
-
"items": { "type": "string" }
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
"required": [],
|
|
28
|
-
"additionalProperties": false
|
|
29
|
-
},
|
|
30
|
-
"injection": {
|
|
31
|
-
"headers": {
|
|
32
|
-
"Authorization": "Bearer {{token}}"
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
Recommended: use a Google service account.
|
|
2
|
-
|
|
3
|
-
- Create a service account in Google Cloud
|
|
4
|
-
- Download a JSON key
|
|
5
|
-
- Paste the JSON into `serviceAccountJson` (or use `env:GOOGLE_SERVICE_ACCOUNT_JSON`)
|
|
6
|
-
- Share your test presentation with the service account `client_email`
|
|
7
|
-
|
|
8
|
-
You can also paste a short-lived OAuth access token into `token`, but it will expire.
|
|
9
|
-
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
async (input) => {
|
|
2
|
-
const { presentationId, text, slideIndex = 0 } = input
|
|
3
|
-
const presRes = await integration.fetch(`/presentations/${encodeURIComponent(presentationId)}`)
|
|
4
|
-
const pres = await presRes.json()
|
|
5
|
-
const slide = (pres?.slides || [])[slideIndex]
|
|
6
|
-
if (!slide)
|
|
7
|
-
return { presentationId, applied: false, replies: [] }
|
|
8
|
-
const titleShape = (slide.pageElements || []).find(el => el.shape?.placeholder?.type === 'TITLE')
|
|
9
|
-
if (!titleShape?.objectId)
|
|
10
|
-
return { presentationId, applied: false, replies: [] }
|
|
11
|
-
const res = await integration.fetch(`/presentations/${encodeURIComponent(presentationId)}:batchUpdate`, {
|
|
12
|
-
method: 'POST',
|
|
13
|
-
body: { requests: [{ insertText: { objectId: titleShape.objectId, insertionIndex: -1, text } }] },
|
|
14
|
-
})
|
|
15
|
-
const out = await res.json()
|
|
16
|
-
return out?.presentationId ? { ...out, applied: true } : { presentationId, applied: true, replies: out?.replies || [] }
|
|
17
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
async (input) => {
|
|
2
|
-
const { presentationId, requests, includePresentationInResponse, responsePageObjectIds, writeControl } = input
|
|
3
|
-
const params = new URLSearchParams()
|
|
4
|
-
if (includePresentationInResponse !== undefined)
|
|
5
|
-
params.set('includePresentationInResponse', String(includePresentationInResponse))
|
|
6
|
-
if (Array.isArray(responsePageObjectIds))
|
|
7
|
-
responsePageObjectIds.forEach(id => params.append('responsePageObjectIds', String(id)))
|
|
8
|
-
const qs = params.toString()
|
|
9
|
-
const path = `/presentations/${encodeURIComponent(presentationId)}:batchUpdate${qs ? `?${qs}` : ''}`
|
|
10
|
-
const body = { requests }
|
|
11
|
-
if (writeControl)
|
|
12
|
-
body.writeControl = writeControl
|
|
13
|
-
const res = await integration.fetch(path, { method: 'POST', body })
|
|
14
|
-
return await res.json()
|
|
15
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
async (input) => {
|
|
2
|
-
const { presentationId, findText, layout = 'BLANK' } = input
|
|
3
|
-
const presRes = await integration.fetch(`/presentations/${encodeURIComponent(presentationId)}`)
|
|
4
|
-
const pres = await presRes.json()
|
|
5
|
-
let targetSlideId = null
|
|
6
|
-
for (const slide of (pres?.slides || [])) {
|
|
7
|
-
const text = JSON.stringify(slide)
|
|
8
|
-
if (text && text.includes(findText)) { targetSlideId = slide.objectId; break }
|
|
9
|
-
}
|
|
10
|
-
if (!targetSlideId)
|
|
11
|
-
return { presentationId, applied: false, replies: [] }
|
|
12
|
-
const newSlideId = `slide_${Date.now()}`
|
|
13
|
-
const currentIndex = (pres?.slides || []).findIndex(s => s.objectId === targetSlideId)
|
|
14
|
-
const requests = [
|
|
15
|
-
{ createSlide: { objectId: newSlideId, insertionIndex: currentIndex >= 0 ? currentIndex + 1 : (pres?.slides?.length || 0), slideLayoutReference: { predefinedLayout: layout } } },
|
|
16
|
-
]
|
|
17
|
-
const res = await integration.fetch(`/presentations/${encodeURIComponent(presentationId)}:batchUpdate`, { method: 'POST', body: { requests } })
|
|
18
|
-
const out = await res.json()
|
|
19
|
-
return out?.presentationId ? { ...out, applied: true } : { presentationId, applied: true, replies: out?.replies || [] }
|
|
20
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
async (input) => {
|
|
2
|
-
const { presentationId, pageObjectId } = input
|
|
3
|
-
const params = new URLSearchParams()
|
|
4
|
-
if (input['thumbnailProperties.thumbnailSize'])
|
|
5
|
-
params.set('thumbnailProperties.thumbnailSize', String(input['thumbnailProperties.thumbnailSize']))
|
|
6
|
-
if (input['thumbnailProperties.mimeType'])
|
|
7
|
-
params.set('thumbnailProperties.mimeType', String(input['thumbnailProperties.mimeType']))
|
|
8
|
-
const qs = params.toString()
|
|
9
|
-
const path = `/presentations/${encodeURIComponent(presentationId)}/pages/${encodeURIComponent(pageObjectId)}/thumbnail${qs ? `?${qs}` : ''}`
|
|
10
|
-
const res = await integration.fetch(path)
|
|
11
|
-
return await res.json()
|
|
12
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
async (input) => {
|
|
2
|
-
const { presentationId, findText, uri, width = 2000000, height = 2000000 } = input
|
|
3
|
-
const presRes = await integration.fetch(`/presentations/${encodeURIComponent(presentationId)}`)
|
|
4
|
-
const pres = await presRes.json()
|
|
5
|
-
let targetSlideId = null
|
|
6
|
-
for (const slide of (pres?.slides || [])) {
|
|
7
|
-
const text = JSON.stringify(slide)
|
|
8
|
-
if (text && text.includes(findText)) { targetSlideId = slide.objectId; break }
|
|
9
|
-
}
|
|
10
|
-
if (!targetSlideId)
|
|
11
|
-
return { presentationId, applied: false, replies: [] }
|
|
12
|
-
const elementId = `image_${Date.now()}`
|
|
13
|
-
const requests = [
|
|
14
|
-
{ createImage: { objectId: elementId, url: uri, elementProperties: { pageObjectId: targetSlideId, size: { width: { magnitude: width, unit: 'EMU' }, height: { magnitude: height, unit: 'EMU' } }, transform: { scaleX: 1, scaleY: 1, translateX: 1000000, translateY: 1000000, unit: 'EMU' } } } },
|
|
15
|
-
]
|
|
16
|
-
const res = await integration.fetch(`/presentations/${encodeURIComponent(presentationId)}:batchUpdate`, { method: 'POST', body: { requests } })
|
|
17
|
-
const out = await res.json()
|
|
18
|
-
return out?.presentationId ? { ...out, applied: true } : { presentationId, applied: true, replies: out?.replies || [] }
|
|
19
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
async (input) => {
|
|
2
|
-
const { presentationId, findText, shapeType = 'RECTANGLE', width = 2000000, height = 1000000 } = input
|
|
3
|
-
const presRes = await integration.fetch(`/presentations/${encodeURIComponent(presentationId)}`)
|
|
4
|
-
const pres = await presRes.json()
|
|
5
|
-
// Find slide with first text match
|
|
6
|
-
let targetSlideId = null
|
|
7
|
-
for (const slide of (pres?.slides || [])) {
|
|
8
|
-
const text = JSON.stringify(slide)
|
|
9
|
-
if (text && text.includes(findText)) { targetSlideId = slide.objectId; break }
|
|
10
|
-
}
|
|
11
|
-
if (!targetSlideId)
|
|
12
|
-
return { presentationId, applied: false, replies: [] }
|
|
13
|
-
// Insert a shape at a default position near center
|
|
14
|
-
const elementId = `shape_${Date.now()}`
|
|
15
|
-
const requests = [
|
|
16
|
-
{ createShape: { objectId: elementId, shapeType, elementProperties: { pageObjectId: targetSlideId, size: { width: { magnitude: width, unit: 'EMU' }, height: { magnitude: height, unit: 'EMU' } }, transform: { scaleX: 1, scaleY: 1, translateX: 1000000, translateY: 1000000, unit: 'EMU' } } } },
|
|
17
|
-
]
|
|
18
|
-
const res = await integration.fetch(`/presentations/${encodeURIComponent(presentationId)}:batchUpdate`, { method: 'POST', body: { requests } })
|
|
19
|
-
const out = await res.json()
|
|
20
|
-
return out?.presentationId ? { ...out, applied: true } : { presentationId, applied: true, replies: out?.replies || [] }
|
|
21
|
-
}
|