Skip to content

Commit 94faa63

Browse files
feat(api): api update
1 parent 78cdaab commit 94faa63

File tree

7 files changed

+17
-7
lines changed

7 files changed

+17
-7
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 14
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/day-moon-development%2Fpost-for-me-52747ee3072f05cc7bf56bfd5edf082f6e213b7c00cea8ff1f2857524c0baf98.yml
3-
openapi_spec_hash: 933de6ff787753b11738699de1f029e7
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/day-moon-development%2Fpost-for-me-b299aeac04f55208322875360599d569db7682c3f6cde03d1feae887e0c933e6.yml
3+
openapi_spec_hash: c358192ff537937e900a641eb7e4e421
44
config_hash: 11f1fa08f11ac07d06bf1d8a633113d6

packages/mcp-server/src/tools/social-accounts/create-social-accounts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const metadata: Metadata = {
1818
export const tool: Tool = {
1919
name: 'create_social_accounts',
2020
description:
21-
"When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nIf a social account with the same platform and user_id already exists, it will be updated. If not, a new social account will be created.\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/social_account',\n $defs: {\n social_account: {\n type: 'object',\n properties: {\n id: {\n type: 'string',\n description: 'The unique identifier of the social account'\n },\n access_token: {\n type: 'string',\n description: 'The access token of the social account'\n },\n access_token_expires_at: {\n type: 'string',\n description: 'The access token expiration date of the social account',\n format: 'date-time'\n },\n external_id: {\n type: 'string',\n description: 'The external id of the social account'\n },\n metadata: {\n type: 'object',\n description: 'The metadata of the social account',\n additionalProperties: true\n },\n platform: {\n type: 'string',\n description: 'The platform of the social account'\n },\n refresh_token: {\n type: 'string',\n description: 'The refresh token of the social account'\n },\n refresh_token_expires_at: {\n type: 'string',\n description: 'The refresh token expiration date of the social account',\n format: 'date-time'\n },\n status: {\n type: 'string',\n description: 'Status of the account',\n enum: [ 'connected',\n 'disconnected'\n ]\n },\n user_id: {\n type: 'string',\n description: 'The platform\\'s id of the social account'\n },\n username: {\n type: 'string',\n description: 'The platform\\'s username of the social account'\n }\n },\n required: [ 'id',\n 'access_token',\n 'access_token_expires_at',\n 'external_id',\n 'metadata',\n 'platform',\n 'refresh_token',\n 'refresh_token_expires_at',\n 'status',\n 'user_id',\n 'username'\n ]\n }\n }\n}\n```",
21+
"When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nIf a social account with the same platform and user_id already exists, it will be updated. If not, a new social account will be created.\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/social_account',\n $defs: {\n social_account: {\n type: 'object',\n properties: {\n id: {\n type: 'string',\n description: 'The unique identifier of the social account'\n },\n access_token: {\n type: 'string',\n description: 'The access token of the social account'\n },\n access_token_expires_at: {\n type: 'string',\n description: 'The access token expiration date of the social account',\n format: 'date-time'\n },\n external_id: {\n type: 'string',\n description: 'The external id of the social account'\n },\n metadata: {\n type: 'object',\n description: 'The metadata of the social account',\n additionalProperties: true\n },\n platform: {\n type: 'string',\n description: 'The platform of the social account'\n },\n profile_photo_url: {\n type: 'string',\n description: 'The platform\\'s profile photo of the social account'\n },\n refresh_token: {\n type: 'string',\n description: 'The refresh token of the social account'\n },\n refresh_token_expires_at: {\n type: 'string',\n description: 'The refresh token expiration date of the social account',\n format: 'date-time'\n },\n status: {\n type: 'string',\n description: 'Status of the account',\n enum: [ 'connected',\n 'disconnected'\n ]\n },\n user_id: {\n type: 'string',\n description: 'The platform\\'s id of the social account'\n },\n username: {\n type: 'string',\n description: 'The platform\\'s username of the social account'\n }\n },\n required: [ 'id',\n 'access_token',\n 'access_token_expires_at',\n 'external_id',\n 'metadata',\n 'platform',\n 'profile_photo_url',\n 'refresh_token',\n 'refresh_token_expires_at',\n 'status',\n 'user_id',\n 'username'\n ]\n }\n }\n}\n```",
2222
inputSchema: {
2323
type: 'object',
2424
properties: {

packages/mcp-server/src/tools/social-accounts/disconnect-social-accounts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const metadata: Metadata = {
1818
export const tool: Tool = {
1919
name: 'disconnect_social_accounts',
2020
description:
21-
"When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nDisconnecting an account with remove all auth tokens and mark the account as disconnected. The record of the account will be kept and can be retrieved and reconnected by the owner of the account.\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/social_account_disconnect_response',\n $defs: {\n social_account_disconnect_response: {\n type: 'object',\n properties: {\n id: {\n type: 'string',\n description: 'The unique identifier of the social account'\n },\n access_token: {\n type: 'string',\n description: 'The access token of the social account'\n },\n access_token_expires_at: {\n type: 'string',\n description: 'The access token expiration date of the social account',\n format: 'date-time'\n },\n external_id: {\n type: 'string',\n description: 'The external id of the social account'\n },\n metadata: {\n type: 'object',\n description: 'The metadata of the social account',\n additionalProperties: true\n },\n platform: {\n type: 'string',\n description: 'The platform of the social account'\n },\n refresh_token: {\n type: 'string',\n description: 'The refresh token of the social account'\n },\n refresh_token_expires_at: {\n type: 'string',\n description: 'The refresh token expiration date of the social account',\n format: 'date-time'\n },\n status: {\n type: 'string',\n description: 'Status of the account',\n enum: [ 'disconnected'\n ]\n },\n user_id: {\n type: 'string',\n description: 'The platform\\'s id of the social account'\n },\n username: {\n type: 'string',\n description: 'The platform\\'s username of the social account'\n }\n },\n required: [ 'id',\n 'access_token',\n 'access_token_expires_at',\n 'external_id',\n 'metadata',\n 'platform',\n 'refresh_token',\n 'refresh_token_expires_at',\n 'status',\n 'user_id',\n 'username'\n ]\n }\n }\n}\n```",
21+
"When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nDisconnecting an account with remove all auth tokens and mark the account as disconnected. The record of the account will be kept and can be retrieved and reconnected by the owner of the account.\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/social_account_disconnect_response',\n $defs: {\n social_account_disconnect_response: {\n type: 'object',\n properties: {\n id: {\n type: 'string',\n description: 'The unique identifier of the social account'\n },\n access_token: {\n type: 'string',\n description: 'The access token of the social account'\n },\n access_token_expires_at: {\n type: 'string',\n description: 'The access token expiration date of the social account',\n format: 'date-time'\n },\n external_id: {\n type: 'string',\n description: 'The external id of the social account'\n },\n metadata: {\n type: 'object',\n description: 'The metadata of the social account',\n additionalProperties: true\n },\n platform: {\n type: 'string',\n description: 'The platform of the social account'\n },\n profile_photo_url: {\n type: 'string',\n description: 'The platform\\'s profile photo of the social account'\n },\n refresh_token: {\n type: 'string',\n description: 'The refresh token of the social account'\n },\n refresh_token_expires_at: {\n type: 'string',\n description: 'The refresh token expiration date of the social account',\n format: 'date-time'\n },\n status: {\n type: 'string',\n description: 'Status of the account',\n enum: [ 'disconnected'\n ]\n },\n user_id: {\n type: 'string',\n description: 'The platform\\'s id of the social account'\n },\n username: {\n type: 'string',\n description: 'The platform\\'s username of the social account'\n }\n },\n required: [ 'id',\n 'access_token',\n 'access_token_expires_at',\n 'external_id',\n 'metadata',\n 'platform',\n 'profile_photo_url',\n 'refresh_token',\n 'refresh_token_expires_at',\n 'status',\n 'user_id',\n 'username'\n ]\n }\n }\n}\n```",
2222
inputSchema: {
2323
type: 'object',
2424
properties: {

packages/mcp-server/src/tools/social-accounts/list-social-accounts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const metadata: Metadata = {
1818
export const tool: Tool = {
1919
name: 'list_social_accounts',
2020
description:
21-
"When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nGet a paginated result for social accounts based on the applied filters\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/social_account_list_response',\n $defs: {\n social_account_list_response: {\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n $ref: '#/$defs/social_account'\n }\n },\n meta: {\n type: 'object',\n properties: {\n limit: {\n type: 'number',\n description: 'Maximum number of items returned.'\n },\n next: {\n type: 'string',\n description: 'URL to the next page of results, or null if none.'\n },\n offset: {\n type: 'number',\n description: 'Number of items skipped.'\n },\n total: {\n type: 'number',\n description: 'Total number of items available.'\n }\n },\n required: [ 'limit',\n 'next',\n 'offset',\n 'total'\n ]\n }\n },\n required: [ 'data',\n 'meta'\n ]\n },\n social_account: {\n type: 'object',\n properties: {\n id: {\n type: 'string',\n description: 'The unique identifier of the social account'\n },\n access_token: {\n type: 'string',\n description: 'The access token of the social account'\n },\n access_token_expires_at: {\n type: 'string',\n description: 'The access token expiration date of the social account',\n format: 'date-time'\n },\n external_id: {\n type: 'string',\n description: 'The external id of the social account'\n },\n metadata: {\n type: 'object',\n description: 'The metadata of the social account',\n additionalProperties: true\n },\n platform: {\n type: 'string',\n description: 'The platform of the social account'\n },\n refresh_token: {\n type: 'string',\n description: 'The refresh token of the social account'\n },\n refresh_token_expires_at: {\n type: 'string',\n description: 'The refresh token expiration date of the social account',\n format: 'date-time'\n },\n status: {\n type: 'string',\n description: 'Status of the account',\n enum: [ 'connected',\n 'disconnected'\n ]\n },\n user_id: {\n type: 'string',\n description: 'The platform\\'s id of the social account'\n },\n username: {\n type: 'string',\n description: 'The platform\\'s username of the social account'\n }\n },\n required: [ 'id',\n 'access_token',\n 'access_token_expires_at',\n 'external_id',\n 'metadata',\n 'platform',\n 'refresh_token',\n 'refresh_token_expires_at',\n 'status',\n 'user_id',\n 'username'\n ]\n }\n }\n}\n```",
21+
"When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nGet a paginated result for social accounts based on the applied filters\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/social_account_list_response',\n $defs: {\n social_account_list_response: {\n type: 'object',\n properties: {\n data: {\n type: 'array',\n items: {\n $ref: '#/$defs/social_account'\n }\n },\n meta: {\n type: 'object',\n properties: {\n limit: {\n type: 'number',\n description: 'Maximum number of items returned.'\n },\n next: {\n type: 'string',\n description: 'URL to the next page of results, or null if none.'\n },\n offset: {\n type: 'number',\n description: 'Number of items skipped.'\n },\n total: {\n type: 'number',\n description: 'Total number of items available.'\n }\n },\n required: [ 'limit',\n 'next',\n 'offset',\n 'total'\n ]\n }\n },\n required: [ 'data',\n 'meta'\n ]\n },\n social_account: {\n type: 'object',\n properties: {\n id: {\n type: 'string',\n description: 'The unique identifier of the social account'\n },\n access_token: {\n type: 'string',\n description: 'The access token of the social account'\n },\n access_token_expires_at: {\n type: 'string',\n description: 'The access token expiration date of the social account',\n format: 'date-time'\n },\n external_id: {\n type: 'string',\n description: 'The external id of the social account'\n },\n metadata: {\n type: 'object',\n description: 'The metadata of the social account',\n additionalProperties: true\n },\n platform: {\n type: 'string',\n description: 'The platform of the social account'\n },\n profile_photo_url: {\n type: 'string',\n description: 'The platform\\'s profile photo of the social account'\n },\n refresh_token: {\n type: 'string',\n description: 'The refresh token of the social account'\n },\n refresh_token_expires_at: {\n type: 'string',\n description: 'The refresh token expiration date of the social account',\n format: 'date-time'\n },\n status: {\n type: 'string',\n description: 'Status of the account',\n enum: [ 'connected',\n 'disconnected'\n ]\n },\n user_id: {\n type: 'string',\n description: 'The platform\\'s id of the social account'\n },\n username: {\n type: 'string',\n description: 'The platform\\'s username of the social account'\n }\n },\n required: [ 'id',\n 'access_token',\n 'access_token_expires_at',\n 'external_id',\n 'metadata',\n 'platform',\n 'profile_photo_url',\n 'refresh_token',\n 'refresh_token_expires_at',\n 'status',\n 'user_id',\n 'username'\n ]\n }\n }\n}\n```",
2222
inputSchema: {
2323
type: 'object',
2424
properties: {

0 commit comments

Comments
 (0)