interface operations { createPoll: { parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: undefined; }; requestBody: { content: { "application/json": { allowNewChoices?: boolean; choices?: { text: string }[]; choicesVisible?: boolean; description?: string; expirationDate?: string; multiSelect?: boolean; onlyOwnChoicesVisible?: boolean; responseCountsVisible?: boolean; responsesVisible?: boolean; responsesVisibleToNonParticipants?: boolean; threshold?: number; title: string; topicId: string; whenResultsVisible?: | "always" | "thresholdOnly" | "expirationOnly" | "thresholdAndExpiration"; }; }; }; responses: { "201": { content: { "application/json": { allowNewChoices: boolean; choices?: { id?: string; poll: | string | (
{ id?: string | undefined; title: string; slug: string; description?: string | undefined; locked: boolean; owner: string | { id?: string | undefined; username: string; email?: string | undefined; ... 4 more ...; pseudonyms: { ...; }[]; }; ... 11 more ...; choices?: { ...; }[] | undefined; }
)
; text: string; }[]; choicesVisible: boolean; description?: string; expirationDate?: string; id?: string; locked: boolean; multiSelect: boolean; onlyOwnChoicesVisible: boolean; owner: | string | { dataExportOptOut?: boolean; email?: string; goodReputation?: boolean; id?: string; password: string; pseudonyms: { active: boolean; conversations: string[]; id?: string; isDeleted: boolean; pseudonym: string; token: string; }[]; role?: string; username: string; }; responseCountsVisible: boolean; responsesVisible: boolean; responsesVisibleToNonParticipants: boolean; slug: string; threshold?: number; title: string; topic: | string | { archivable: boolean; archived?: boolean; archiveEmail?: string; conversationCount?: number; conversationCreationAllowed: boolean; conversations: { active?: boolean; adapters: { active: ...
; audioChannels?: ...
; chatChannels?: ...
; config: ...
; conversation: ...
; dmChannels?: ...
; id?: ...
; type: ...
; }[]; agents: { active?: ...
; agentConfig?: ...
; agentEvaluation?: ...
; agentType: ...
; conversation: ...
; conversationHistorySettings?: ...
; description: ...
; id?: ...
; instanceName?: ...
; lastActiveMessageCount?: ...
; llmModel: ...
; llmModelOptions?: ...
; llmPlatform: ...
; llmPlatformOptions?: ...
; llmTemplates?: ...
; llmTemplateVars?: ...
; name: ...
; pseudonyms: ...
; ragCollectionName?: ...
; triggers?: ...
; useTranscriptRAGCollection?: ...
; }[]; channels: { direct: ...
; id?: ...
; name: ...
; participants?: ...
; passcode: ...
; }[]; conversationType?: string; createdAt?: string; enableAgents?: boolean; enableDMs: string[]; endTime?: string; experimental?: boolean; experiments: { agentModifications?: ...
; baseConversation: ...
; createdAt: ...
; createdBy: ...
; description?: ...
; executedAt?: ...
; id?: ...
; name: ...
; resultConversation?: ...
; status: ...
; }[]; followed?: boolean; followers: { conversation: ...
; topic: ...
; user: ...
}[]; id?: string; locked?: boolean; messageCount?: number; messages: { active?: ...
; body: ...
; bodyType?: ...
; channels?: ...
; conversation: ...
; count?: ...
; createdAt?: ...
; downVotes: ...
; fromAgent: ...
; id?: ...
; isDeleted?: ...
; owner?: ...
; parentMessage?: ...
; pause: ...
; prompt?: ...
; pseudonym: ...
; pseudonymId: ...
; replyCount?: ...
; source?: ...
; upVotes: ...
; visible: ...
; }[]; name: string; owner: | string | { dataExportOptOut?: ...
; email?: ...
; goodReputation?: ...
; id?: ...
; password: ...
; pseudonyms: ...
; role?: ...
; username: ...
; }; platforms?: (...)
[]; scheduledTime?: string; slug?: string; startTime?: string; topic: string | { id?: string | undefined; slug?: string | undefined; name: string; defaultSortAverage?: number | undefined; followed?: boolean | undefined; conversations: { id?: string | undefined; ... 24 more ...; transcript?: { ...; } | undefined; }[]; ... 13 more ...; conversationCount?: number | undefined; }
; transcript?: { status: ...
; vectorStore?: ...
}; updatedAt?: string; }[]; defaultSortAverage?: number; followed?: boolean; followers: { conversation: string; topic: string; user: string }[]; id?: string; isArchiveNotified?: boolean; isDeleted?: boolean; latestMessageCreatedAt?: string; messageCount?: number; name: string; owner: | string | { dataExportOptOut?: boolean; email?: string; goodReputation?: boolean; id?: string; password: string; pseudonyms: { active: ...
; conversations: ...
; id?: ...
; isDeleted: ...
; pseudonym: ...
; token: ...
; }[]; role?: string; username: string; }; passcode?: number; private: boolean; slug?: string; votingAllowed: boolean; }; whenResultsVisible: string; }; }; headers: { [name: string]: unknown }; }; "400": { content: { "application/json": { code?: number; message?: string } }; headers: { [name: string]: unknown }; }; "401": { content: { "application/json": { code?: number; message?: string } }; headers: { [name: string]: unknown }; }; "403": { content: { "application/json": { code?: number; message?: string } }; headers: { [name: string]: unknown }; }; "404": { content: { "application/json": { code?: number; message?: string } }; headers: { [name: string]: unknown }; }; }; }; getPollResponseCounts: { parameters: { cookie?: undefined; header?: undefined; path: { pollId: string }; query?: undefined; }; requestBody?: undefined; responses: { "200": { content: { "application/json": { [key: string]: number } }; headers: { [name: string]: unknown }; }; "401": { content: { "application/json": { code?: number; message?: string } }; headers: { [name: string]: unknown }; }; "403": { content: { "application/json": { code?: number; message?: string } }; headers: { [name: string]: unknown }; }; "404": { content: { "application/json": { code?: number; message?: string } }; headers: { [name: string]: unknown }; }; }; }; getPollResponses: { parameters: { cookie?: undefined; header?: undefined; path: { pollId: string }; query?: undefined; }; requestBody?: undefined; responses: { "200": { content: { "application/json": { _id?: string; choice?: string; owner?: string; poll?: string; }[]; }; headers: { [name: string]: unknown }; }; "401": { content: { "application/json": { code?: number; message?: string } }; headers: { [name: string]: unknown }; }; "403": { content: { "application/json": { code?: number; message?: string } }; headers: { [name: string]: unknown }; }; "404": { content: { "application/json": { code?: number; message?: string } }; headers: { [name: string]: unknown }; }; }; }; inspectPoll: { parameters: { cookie?: undefined; header?: undefined; path: { pollId: string }; query?: undefined; }; requestBody?: undefined; responses: { "200": { content: { "application/json": { allowNewChoices: boolean; choices?: { id?: string; poll: | string | (
{ id?: string | undefined; title: string; slug: string; description?: string | undefined; locked: boolean; owner: string | { id?: string | undefined; username: string; email?: string | undefined; ... 4 more ...; pseudonyms: { ...; }[]; }; ... 11 more ...; choices?: { ...; }[] | undefined; }
)
; text: string; }[]; choicesVisible: boolean; description?: string; expirationDate?: string; id?: string; locked: boolean; multiSelect: boolean; onlyOwnChoicesVisible: boolean; owner: | string | { dataExportOptOut?: boolean; email?: string; goodReputation?: boolean; id?: string; password: string; pseudonyms: { active: boolean; conversations: (...)
[]; id?: (...)
| (...)
; isDeleted: boolean; pseudonym: string; token: string; }[]; role?: string; username: string; }; responseCountsVisible: boolean; responsesVisible: boolean; responsesVisibleToNonParticipants: boolean; slug: string; threshold?: number; title: string; topic: | string | { archivable: boolean; archived?: boolean; archiveEmail?: string; conversationCount?: number; conversationCreationAllowed: boolean; conversations: { active?: (...)
| (...)
| (...)
; adapters: (...)
[]; agents: (...)
[]; channels: (...)
[]; conversationType?: (...)
| (...)
; createdAt?: (...)
| (...)
; enableAgents?: (...)
| (...)
| (...)
; enableDMs: (...)
[]; endTime?: (...)
| (...)
; experimental?: (...)
| (...)
| (...)
; experiments: (...)
[]; followed?: (...)
| (...)
| (...)
; followers: (...)
[]; id?: (...)
| (...)
; locked?: (...)
| (...)
| (...)
; messageCount?: (...)
| (...)
; messages: (...)
[]; name: string; owner: (...)
| (...)
; platforms?: (...)
| (...)
; scheduledTime?: (...)
| (...)
; slug?: (...)
| (...)
; startTime?: (...)
| (...)
; topic: string | { id?: string | undefined; slug?: string | undefined; name: string; defaultSortAverage?: number | undefined; followed?: boolean | undefined; conversations: { id?: string | undefined; ... 24 more ...; transcript?: { ...; } | undefined; }[]; ... 13 more ...; conversationCount?: number | undefined; }
; transcript?: (...)
| (...)
; updatedAt?: (...)
| (...)
; }[]; defaultSortAverage?: number; followed?: boolean; followers: { conversation: string; topic: string; user: string }[]; id?: string; isArchiveNotified?: boolean; isDeleted?: boolean; latestMessageCreatedAt?: string; messageCount?: number; name: string; owner: | string | { dataExportOptOut?: (...)
| (...)
| (...)
; email?: (...)
| (...)
; goodReputation?: (...)
| (...)
| (...)
; id?: (...)
| (...)
; password: string; pseudonyms: (...)
[]; role?: (...)
| (...)
; username: string; }; passcode?: number; private: boolean; slug?: string; votingAllowed: boolean; }; whenResultsVisible: string; } & { choices?: (
{ id?: (...)
| (...)
; poll: (...)
| (...)
; text: string } & { isSelected?: (...)
| (...)
| (...)
; } )
[]; }; }; headers: { [name: string]: unknown }; }; "401": { content: { "application/json": { code?: number; message?: string } }; headers: { [name: string]: unknown }; }; "404": { content: { "application/json": { code?: number; message?: string } }; headers: { [name: string]: unknown }; }; }; }; listPolls: { parameters: { cookie?: undefined; header?: undefined; path?: undefined; query?: { _sort?: string; allowNewChoices?: "true" | "false"; choicesVisible?: "true" | "false"; multiSelect?: "true" | "false"; responseCountsVisible?: "true" | "false"; }; }; requestBody?: undefined; responses: { "200": { content: { "application/json": { allowNewChoices: boolean; choices?: { id?: string; poll: | string | (
{ id?: string | undefined; title: string; slug: string; description?: string | undefined; locked: boolean; owner: string | { id?: string | undefined; username: string; email?: string | undefined; ... 4 more ...; pseudonyms: { ...; }[]; }; ... 11 more ...; choices?: { ...; }[] | undefined; }
)
; text: string; }[]; choicesVisible: boolean; description?: string; expirationDate?: string; id?: string; locked: boolean; multiSelect: boolean; onlyOwnChoicesVisible: boolean; owner: | string | { dataExportOptOut?: boolean; email?: string; goodReputation?: boolean; id?: string; password: string; pseudonyms: { active: boolean; conversations: (...)
[]; id?: (...)
| (...)
; isDeleted: boolean; pseudonym: string; token: string; }[]; role?: string; username: string; }; responseCountsVisible: boolean; responsesVisible: boolean; responsesVisibleToNonParticipants: boolean; slug: string; threshold?: number; title: string; topic: | string | { archivable: boolean; archived?: boolean; archiveEmail?: string; conversationCount?: number; conversationCreationAllowed: boolean; conversations: { active?: (...)
| (...)
| (...)
; adapters: (...)
[]; agents: (...)
[]; channels: (...)
[]; conversationType?: (...)
| (...)
; createdAt?: (...)
| (...)
; enableAgents?: (...)
| (...)
| (...)
; enableDMs: (...)
[]; endTime?: (...)
| (...)
; experimental?: (...)
| (...)
| (...)
; experiments: (...)
[]; followed?: (...)
| (...)
| (...)
; followers: (...)
[]; id?: (...)
| (...)
; locked?: (...)
| (...)
| (...)
; messageCount?: (...)
| (...)
; messages: (...)
[]; name: string; owner: (...)
| (...)
; platforms?: (...)
| (...)
; scheduledTime?: (...)
| (...)
; slug?: (...)
| (...)
; startTime?: (...)
| (...)
; topic: string | { id?: string | undefined; slug?: string | undefined; name: string; defaultSortAverage?: number | undefined; followed?: boolean | undefined; conversations: { id?: string | undefined; ... 24 more ...; transcript?: { ...; } | undefined; }[]; ... 13 more ...; conversationCount?: number | undefined; }
; transcript?: (...)
| (...)
; updatedAt?: (...)
| (...)
; }[]; defaultSortAverage?: number; followed?: boolean; followers: { conversation: string; topic: string; user: string }[]; id?: string; isArchiveNotified?: boolean; isDeleted?: boolean; latestMessageCreatedAt?: string; messageCount?: number; name: string; owner: | string | { dataExportOptOut?: (...)
| (...)
| (...)
; email?: (...)
| (...)
; goodReputation?: (...)
| (...)
| (...)
; id?: (...)
| (...)
; password: string; pseudonyms: (...)
[]; role?: (...)
| (...)
; username: string; }; passcode?: number; private: boolean; slug?: string; votingAllowed: boolean; }; whenResultsVisible: string; }[]; }; headers: { [name: string]: unknown }; }; "401": { content: { "application/json": { code?: number; message?: string } }; headers: { [name: string]: unknown }; }; }; }; respondToPoll: { parameters: { cookie?: undefined; header?: undefined; path: { pollId: string }; query?: undefined; }; requestBody: { content: { "application/json": { choice: { remove?: boolean; text: string } }; }; }; responses: { "200": { content: { "application/json": { choice: | string | { id?: string; poll: | string | { allowNewChoices: boolean; choices?: (...)
[]; choicesVisible: boolean; description?: string; expirationDate?: string; id?: string; locked: boolean; multiSelect: boolean; onlyOwnChoicesVisible: boolean; owner: | string | { dataExportOptOut?: ...
; email?: ...
; goodReputation?: ...
; id?: ...
; password: ...
; pseudonyms: ...
; role?: ...
; username: ...
; }; responseCountsVisible: boolean; responsesVisible: boolean; responsesVisibleToNonParticipants: boolean; slug: string; threshold?: number; title: string; topic: | string | { archivable: ...
; archived?: ...
; archiveEmail?: ...
; conversationCount?: ...
; conversationCreationAllowed: ...
; conversations: ...
; defaultSortAverage?: ...
; followed?: ...
; followers: ...
; id?: ...
; isArchiveNotified?: ...
; isDeleted?: ...
; latestMessageCreatedAt?: ...
; messageCount?: ...
; name: ...
; owner: ...
; passcode?: ...
; private: ...
; slug?: ...
; votingAllowed: ...
; }; whenResultsVisible: string; }; text: string; }; id?: string; owner: | string | { dataExportOptOut?: boolean; email?: string; goodReputation?: boolean; id?: string; password: string; pseudonyms: { active: boolean; conversations: string[]; id?: string; isDeleted: boolean; pseudonym: string; token: string; }[]; role?: string; username: string; }; poll: | string | { allowNewChoices: boolean; choices?: { id?: (...)
| (...)
; poll: string | { id?: string | undefined; title: string; slug: string; description?: string | undefined; locked: boolean; owner: string | { id?: string | undefined; username: string; email?: string | undefined; ... 4 more ...; pseudonyms: { ...; }[]; }; ... 11 more ...; choices?: { ...; }[] | undefined; }
; text: string; }[]; choicesVisible: boolean; description?: string; expirationDate?: string; id?: string; locked: boolean; multiSelect: boolean; onlyOwnChoicesVisible: boolean; owner: | string | { dataExportOptOut?: boolean; email?: string; goodReputation?: boolean; id?: string; password: string; pseudonyms: { active: ...
; conversations: ...
; id?: ...
; isDeleted: ...
; pseudonym: ...
; token: ...
; }[]; role?: string; username: string; }; responseCountsVisible: boolean; responsesVisible: boolean; responsesVisibleToNonParticipants: boolean; slug: string; threshold?: number; title: string; topic: | string | { archivable: boolean; archived?: boolean; archiveEmail?: string; conversationCount?: number; conversationCreationAllowed: boolean; conversations: { active?: ...
; adapters: ...
; agents: ...
; channels: ...
; conversationType?: ...
; createdAt?: ...
; enableAgents?: ...
; enableDMs: ...
; endTime?: ...
; experimental?: ...
; experiments: ...
; followed?: ...
; followers: ...
; id?: ...
; locked?: ...
; messageCount?: ...
; messages: ...
; name: ...
; owner: ...
; platforms?: ...
; scheduledTime?: ...
; slug?: ...
; startTime?: ...
; topic: ...
; transcript?: ...
; updatedAt?: ...
; }[]; defaultSortAverage?: number; followed?: boolean; followers: { conversation: ...
; topic: ...
; user: ...
}[]; id?: string; isArchiveNotified?: boolean; isDeleted?: boolean; latestMessageCreatedAt?: string; messageCount?: number; name: string; owner: | string | { dataExportOptOut?: ...
; email?: ...
; goodReputation?: ...
; id?: ...
; password: ...
; pseudonyms: ...
; role?: ...
; username: ...
; }; passcode?: number; private: boolean; slug?: string; votingAllowed: boolean; }; whenResultsVisible: string; }; removed: boolean; }; }; headers: { [name: string]: unknown }; }; "400": { content: { "application/json": { code?: number; message?: string } }; headers: { [name: string]: unknown }; }; "401": { content: { "application/json": { code?: number; message?: string } }; headers: { [name: string]: unknown }; }; "403": { content: { "application/json": { code?: number; message?: string } }; headers: { [name: string]: unknown }; }; "404": { content: { "application/json": { code?: number; message?: string } }; headers: { [name: string]: unknown }; }; }; };} Properties
createPoll
createPoll: {
parameters: {
cookie?: undefined;
header?: undefined;
path?: undefined;
query?: undefined;
};
requestBody: {
content: {
"application/json": {
allowNewChoices?: boolean;
choices?: { text: string }[];
choicesVisible?: boolean;
description?: string;
expirationDate?: string;
multiSelect?: boolean;
onlyOwnChoicesVisible?: boolean;
responseCountsVisible?: boolean;
responsesVisible?: boolean;
responsesVisibleToNonParticipants?: boolean;
threshold?: number;
title: string;
topicId: string;
whenResultsVisible?:
| "always"
| "thresholdOnly"
| "expirationOnly"
| "thresholdAndExpiration";
};
};
};
responses: {
"201": {
content: {
"application/json": {
allowNewChoices: boolean;
choices?: {
id?: string;
poll: | string
| (
{ id?: string | undefined; title: string; slug: string; description?: string | undefined; locked: boolean; owner: string | { id?: string | undefined; username: string; email?: string | undefined; ... 4 more ...; pseudonyms: { ...; }[]; }; ... 11 more ...; choices?: { ...; }[] | undefined; }
);
text: string;
}[];
choicesVisible: boolean;
description?: string;
expirationDate?: string;
id?: string;
locked: boolean;
multiSelect: boolean;
onlyOwnChoicesVisible: boolean;
owner: | string
| {
dataExportOptOut?: boolean;
email?: string;
goodReputation?: boolean;
id?: string;
password: string;
pseudonyms: {
active: boolean;
conversations: string[];
id?: string;
isDeleted: boolean;
pseudonym: string;
token: string;
}[];
role?: string;
username: string;
};
responseCountsVisible: boolean;
responsesVisible: boolean;
responsesVisibleToNonParticipants: boolean;
slug: string;
threshold?: number;
title: string;
topic: | string
| {
archivable: boolean;
archived?: boolean;
archiveEmail?: string;
conversationCount?: number;
conversationCreationAllowed: boolean;
conversations: {
active?: boolean;
adapters: {
active: ...;
audioChannels?: ...;
chatChannels?: ...;
config: ...;
conversation: ...;
dmChannels?: ...;
id?: ...;
type: ...;
}[];
agents: {
active?: ...;
agentConfig?: ...;
agentEvaluation?: ...;
agentType: ...;
conversation: ...;
conversationHistorySettings?: ...;
description: ...;
id?: ...;
instanceName?: ...;
lastActiveMessageCount?: ...;
llmModel: ...;
llmModelOptions?: ...;
llmPlatform: ...;
llmPlatformOptions?: ...;
llmTemplates?: ...;
llmTemplateVars?: ...;
name: ...;
pseudonyms: ...;
ragCollectionName?: ...;
triggers?: ...;
useTranscriptRAGCollection?: ...;
}[];
channels: {
direct: ...;
id?: ...;
name: ...;
participants?: ...;
passcode: ...;
}[];
conversationType?: string;
createdAt?: string;
enableAgents?: boolean;
enableDMs: string[];
endTime?: string;
experimental?: boolean;
experiments: {
agentModifications?: ...;
baseConversation: ...;
createdAt: ...;
createdBy: ...;
description?: ...;
executedAt?: ...;
id?: ...;
name: ...;
resultConversation?: ...;
status: ...;
}[];
followed?: boolean;
followers: { conversation: ...; topic: ...; user: ... }[];
id?: string;
locked?: boolean;
messageCount?: number;
messages: {
active?: ...;
body: ...;
bodyType?: ...;
channels?: ...;
conversation: ...;
count?: ...;
createdAt?: ...;
downVotes: ...;
fromAgent: ...;
id?: ...;
isDeleted?: ...;
owner?: ...;
parentMessage?: ...;
pause: ...;
prompt?: ...;
pseudonym: ...;
pseudonymId: ...;
replyCount?: ...;
source?: ...;
upVotes: ...;
visible: ...;
}[];
name: string;
owner: | string
| {
dataExportOptOut?: ...;
email?: ...;
goodReputation?: ...;
id?: ...;
password: ...;
pseudonyms: ...;
role?: ...;
username: ...;
};
platforms?: (...)[];
scheduledTime?: string;
slug?: string;
startTime?: string;
topic: string | { id?: string | undefined; slug?: string | undefined; name: string; defaultSortAverage?: number | undefined; followed?: boolean | undefined; conversations: { id?: string | undefined; ... 24 more ...; transcript?: { ...; } | undefined; }[]; ... 13 more ...; conversationCount?: number | undefined; };
transcript?: { status: ...; vectorStore?: ... };
updatedAt?: string;
}[];
defaultSortAverage?: number;
followed?: boolean;
followers: { conversation: string; topic: string; user: string }[];
id?: string;
isArchiveNotified?: boolean;
isDeleted?: boolean;
latestMessageCreatedAt?: string;
messageCount?: number;
name: string;
owner:
| string
| {
dataExportOptOut?: boolean;
email?: string;
goodReputation?: boolean;
id?: string;
password: string;
pseudonyms: {
active: ...;
conversations: ...;
id?: ...;
isDeleted: ...;
pseudonym: ...;
token: ...;
}[];
role?: string;
username: string;
};
passcode?: number;
private: boolean;
slug?: string;
votingAllowed: boolean;
};
whenResultsVisible: string;
};
};
headers: { [name: string]: unknown };
};
"400": {
content: { "application/json": { code?: number; message?: string } };
headers: { [name: string]: unknown };
};
"401": {
content: { "application/json": { code?: number; message?: string } };
headers: { [name: string]: unknown };
};
"403": {
content: { "application/json": { code?: number; message?: string } };
headers: { [name: string]: unknown };
};
"404": {
content: { "application/json": { code?: number; message?: string } };
headers: { [name: string]: unknown };
};
};
}
getPollResponseCounts
getPollResponseCounts: {
parameters: {
cookie?: undefined;
header?: undefined;
path: { pollId: string };
query?: undefined;
};
requestBody?: undefined;
responses: {
"200": {
content: { "application/json": { [key: string]: number } };
headers: { [name: string]: unknown };
};
"401": {
content: { "application/json": { code?: number; message?: string } };
headers: { [name: string]: unknown };
};
"403": {
content: { "application/json": { code?: number; message?: string } };
headers: { [name: string]: unknown };
};
"404": {
content: { "application/json": { code?: number; message?: string } };
headers: { [name: string]: unknown };
};
};
}
getPollResponses
getPollResponses: {
parameters: {
cookie?: undefined;
header?: undefined;
path: { pollId: string };
query?: undefined;
};
requestBody?: undefined;
responses: {
"200": {
content: {
"application/json": {
_id?: string;
choice?: string;
owner?: string;
poll?: string;
}[];
};
headers: { [name: string]: unknown };
};
"401": {
content: { "application/json": { code?: number; message?: string } };
headers: { [name: string]: unknown };
};
"403": {
content: { "application/json": { code?: number; message?: string } };
headers: { [name: string]: unknown };
};
"404": {
content: { "application/json": { code?: number; message?: string } };
headers: { [name: string]: unknown };
};
};
}
inspectPoll
inspectPoll: {
parameters: {
cookie?: undefined;
header?: undefined;
path: { pollId: string };
query?: undefined;
};
requestBody?: undefined;
responses: {
"200": {
content: {
"application/json": {
allowNewChoices: boolean;
choices?: {
id?: string;
poll: | string
| (
{ id?: string | undefined; title: string; slug: string; description?: string | undefined; locked: boolean; owner: string | { id?: string | undefined; username: string; email?: string | undefined; ... 4 more ...; pseudonyms: { ...; }[]; }; ... 11 more ...; choices?: { ...; }[] | undefined; }
);
text: string;
}[];
choicesVisible: boolean;
description?: string;
expirationDate?: string;
id?: string;
locked: boolean;
multiSelect: boolean;
onlyOwnChoicesVisible: boolean;
owner: | string
| {
dataExportOptOut?: boolean;
email?: string;
goodReputation?: boolean;
id?: string;
password: string;
pseudonyms: {
active: boolean;
conversations: (...)[];
id?: (...) | (...);
isDeleted: boolean;
pseudonym: string;
token: string;
}[];
role?: string;
username: string;
};
responseCountsVisible: boolean;
responsesVisible: boolean;
responsesVisibleToNonParticipants: boolean;
slug: string;
threshold?: number;
title: string;
topic: | string
| {
archivable: boolean;
archived?: boolean;
archiveEmail?: string;
conversationCount?: number;
conversationCreationAllowed: boolean;
conversations: {
active?: (...)
| (...)
| (...);
adapters: (...)[];
agents: (...)[];
channels: (...)[];
conversationType?: (...) | (...);
createdAt?: (...) | (...);
enableAgents?: (...) | (...) | (...);
enableDMs: (...)[];
endTime?: (...) | (...);
experimental?: (...) | (...) | (...);
experiments: (...)[];
followed?: (...) | (...) | (...);
followers: (...)[];
id?: (...) | (...);
locked?: (...) | (...) | (...);
messageCount?: (...) | (...);
messages: (...)[];
name: string;
owner: (...) | (...);
platforms?: (...) | (...);
scheduledTime?: (...) | (...);
slug?: (...) | (...);
startTime?: (...) | (...);
topic: string | { id?: string | undefined; slug?: string | undefined; name: string; defaultSortAverage?: number | undefined; followed?: boolean | undefined; conversations: { id?: string | undefined; ... 24 more ...; transcript?: { ...; } | undefined; }[]; ... 13 more ...; conversationCount?: number | undefined; };
transcript?: (...) | (...);
updatedAt?: (...) | (...);
}[];
defaultSortAverage?: number;
followed?: boolean;
followers: { conversation: string; topic: string; user: string }[];
id?: string;
isArchiveNotified?: boolean;
isDeleted?: boolean;
latestMessageCreatedAt?: string;
messageCount?: number;
name: string;
owner:
| string
| {
dataExportOptOut?: (...)
| (...)
| (...);
email?: (...) | (...);
goodReputation?: (...) | (...) | (...);
id?: (...) | (...);
password: string;
pseudonyms: (...)[];
role?: (...) | (...);
username: string;
};
passcode?: number;
private: boolean;
slug?: string;
votingAllowed: boolean;
};
whenResultsVisible: string;
} & {
choices?: (
{ id?: (...)
| (...); poll: (...) | (...); text: string } & {
isSelected?: (...) | (...) | (...);
}
)[];
};
};
headers: { [name: string]: unknown };
};
"401": {
content: { "application/json": { code?: number; message?: string } };
headers: { [name: string]: unknown };
};
"404": {
content: { "application/json": { code?: number; message?: string } };
headers: { [name: string]: unknown };
};
};
}
listPolls
listPolls: {
parameters: {
cookie?: undefined;
header?: undefined;
path?: undefined;
query?: {
_sort?: string;
allowNewChoices?: "true" | "false";
choicesVisible?: "true" | "false";
multiSelect?: "true" | "false";
responseCountsVisible?: "true" | "false";
};
};
requestBody?: undefined;
responses: {
"200": {
content: {
"application/json": {
allowNewChoices: boolean;
choices?: {
id?: string;
poll: | string
| (
{ id?: string | undefined; title: string; slug: string; description?: string | undefined; locked: boolean; owner: string | { id?: string | undefined; username: string; email?: string | undefined; ... 4 more ...; pseudonyms: { ...; }[]; }; ... 11 more ...; choices?: { ...; }[] | undefined; }
);
text: string;
}[];
choicesVisible: boolean;
description?: string;
expirationDate?: string;
id?: string;
locked: boolean;
multiSelect: boolean;
onlyOwnChoicesVisible: boolean;
owner: | string
| {
dataExportOptOut?: boolean;
email?: string;
goodReputation?: boolean;
id?: string;
password: string;
pseudonyms: {
active: boolean;
conversations: (...)[];
id?: (...) | (...);
isDeleted: boolean;
pseudonym: string;
token: string;
}[];
role?: string;
username: string;
};
responseCountsVisible: boolean;
responsesVisible: boolean;
responsesVisibleToNonParticipants: boolean;
slug: string;
threshold?: number;
title: string;
topic: | string
| {
archivable: boolean;
archived?: boolean;
archiveEmail?: string;
conversationCount?: number;
conversationCreationAllowed: boolean;
conversations: {
active?: (...)
| (...)
| (...);
adapters: (...)[];
agents: (...)[];
channels: (...)[];
conversationType?: (...) | (...);
createdAt?: (...) | (...);
enableAgents?: (...) | (...) | (...);
enableDMs: (...)[];
endTime?: (...) | (...);
experimental?: (...) | (...) | (...);
experiments: (...)[];
followed?: (...) | (...) | (...);
followers: (...)[];
id?: (...) | (...);
locked?: (...) | (...) | (...);
messageCount?: (...) | (...);
messages: (...)[];
name: string;
owner: (...) | (...);
platforms?: (...) | (...);
scheduledTime?: (...) | (...);
slug?: (...) | (...);
startTime?: (...) | (...);
topic: string | { id?: string | undefined; slug?: string | undefined; name: string; defaultSortAverage?: number | undefined; followed?: boolean | undefined; conversations: { id?: string | undefined; ... 24 more ...; transcript?: { ...; } | undefined; }[]; ... 13 more ...; conversationCount?: number | undefined; };
transcript?: (...) | (...);
updatedAt?: (...) | (...);
}[];
defaultSortAverage?: number;
followed?: boolean;
followers: { conversation: string; topic: string; user: string }[];
id?: string;
isArchiveNotified?: boolean;
isDeleted?: boolean;
latestMessageCreatedAt?: string;
messageCount?: number;
name: string;
owner:
| string
| {
dataExportOptOut?: (...)
| (...)
| (...);
email?: (...) | (...);
goodReputation?: (...) | (...) | (...);
id?: (...) | (...);
password: string;
pseudonyms: (...)[];
role?: (...) | (...);
username: string;
};
passcode?: number;
private: boolean;
slug?: string;
votingAllowed: boolean;
};
whenResultsVisible: string;
}[];
};
headers: { [name: string]: unknown };
};
"401": {
content: { "application/json": { code?: number; message?: string } };
headers: { [name: string]: unknown };
};
};
}
respondToPoll
respondToPoll: {
parameters: {
cookie?: undefined;
header?: undefined;
path: { pollId: string };
query?: undefined;
};
requestBody: {
content: {
"application/json": { choice: { remove?: boolean; text: string } };
};
};
responses: {
"200": {
content: {
"application/json": {
choice: | string
| {
id?: string;
poll: | string
| {
allowNewChoices: boolean;
choices?: (...)[];
choicesVisible: boolean;
description?: string;
expirationDate?: string;
id?: string;
locked: boolean;
multiSelect: boolean;
onlyOwnChoicesVisible: boolean;
owner:
| string
| {
dataExportOptOut?: ...;
email?: ...;
goodReputation?: ...;
id?: ...;
password: ...;
pseudonyms: ...;
role?: ...;
username: ...;
};
responseCountsVisible: boolean;
responsesVisible: boolean;
responsesVisibleToNonParticipants: boolean;
slug: string;
threshold?: number;
title: string;
topic: | string
| {
archivable: ...;
archived?: ...;
archiveEmail?: ...;
conversationCount?: ...;
conversationCreationAllowed: ...;
conversations: ...;
defaultSortAverage?: ...;
followed?: ...;
followers: ...;
id?: ...;
isArchiveNotified?: ...;
isDeleted?: ...;
latestMessageCreatedAt?: ...;
messageCount?: ...;
name: ...;
owner: ...;
passcode?: ...;
private: ...;
slug?: ...;
votingAllowed: ...;
};
whenResultsVisible: string;
};
text: string;
};
id?: string;
owner: | string
| {
dataExportOptOut?: boolean;
email?: string;
goodReputation?: boolean;
id?: string;
password: string;
pseudonyms: {
active: boolean;
conversations: string[];
id?: string;
isDeleted: boolean;
pseudonym: string;
token: string;
}[];
role?: string;
username: string;
};
poll: | string
| {
allowNewChoices: boolean;
choices?: {
id?: (...)
| (...);
poll: string | { id?: string | undefined; title: string; slug: string; description?: string | undefined; locked: boolean; owner: string | { id?: string | undefined; username: string; email?: string | undefined; ... 4 more ...; pseudonyms: { ...; }[]; }; ... 11 more ...; choices?: { ...; }[] | undefined; };
text: string;
}[];
choicesVisible: boolean;
description?: string;
expirationDate?: string;
id?: string;
locked: boolean;
multiSelect: boolean;
onlyOwnChoicesVisible: boolean;
owner: | string
| {
dataExportOptOut?: boolean;
email?: string;
goodReputation?: boolean;
id?: string;
password: string;
pseudonyms: {
active: ...;
conversations: ...;
id?: ...;
isDeleted: ...;
pseudonym: ...;
token: ...;
}[];
role?: string;
username: string;
};
responseCountsVisible: boolean;
responsesVisible: boolean;
responsesVisibleToNonParticipants: boolean;
slug: string;
threshold?: number;
title: string;
topic: | string
| {
archivable: boolean;
archived?: boolean;
archiveEmail?: string;
conversationCount?: number;
conversationCreationAllowed: boolean;
conversations: {
active?: ...;
adapters: ...;
agents: ...;
channels: ...;
conversationType?: ...;
createdAt?: ...;
enableAgents?: ...;
enableDMs: ...;
endTime?: ...;
experimental?: ...;
experiments: ...;
followed?: ...;
followers: ...;
id?: ...;
locked?: ...;
messageCount?: ...;
messages: ...;
name: ...;
owner: ...;
platforms?: ...;
scheduledTime?: ...;
slug?: ...;
startTime?: ...;
topic: ...;
transcript?: ...;
updatedAt?: ...;
}[];
defaultSortAverage?: number;
followed?: boolean;
followers: { conversation: ...; topic: ...; user: ... }[];
id?: string;
isArchiveNotified?: boolean;
isDeleted?: boolean;
latestMessageCreatedAt?: string;
messageCount?: number;
name: string;
owner:
| string
| {
dataExportOptOut?: ...;
email?: ...;
goodReputation?: ...;
id?: ...;
password: ...;
pseudonyms: ...;
role?: ...;
username: ...;
};
passcode?: number;
private: boolean;
slug?: string;
votingAllowed: boolean;
};
whenResultsVisible: string;
};
removed: boolean;
};
};
headers: { [name: string]: unknown };
};
"400": {
content: { "application/json": { code?: number; message?: string } };
headers: { [name: string]: unknown };
};
"401": {
content: { "application/json": { code?: number; message?: string } };
headers: { [name: string]: unknown };
};
"403": {
content: { "application/json": { code?: number; message?: string } };
headers: { [name: string]: unknown };
};
"404": {
content: { "application/json": { code?: number; message?: string } };
headers: { [name: string]: unknown };
};
};
}