@mentio-dev/sdk 0.2.0 → 0.2.1

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 CHANGED
@@ -12,7 +12,7 @@ import { createMentio } from '@mentio-dev/sdk';
12
12
  const mentio = createMentio({ apiKey: process.env.MENTIO_API_KEY! });
13
13
 
14
14
  const { data, error } = await mentio.searchMentions({
15
- query: { platform: 'reddit', relevant: 'true', limit: 25 },
15
+ query: { platform: 'reddit', relevant: true, limit: 25 },
16
16
  });
17
17
  if (error) throw new Error(error.error.message);
18
18
  for (const mention of data.data) {
package/dist/index.d.ts CHANGED
@@ -1420,7 +1420,7 @@ type ShareOfVoice = {
1420
1420
  } | null;
1421
1421
  }>;
1422
1422
  };
1423
- type Channel = {
1423
+ type SlackChannel = {
1424
1424
  /**
1425
1425
  * Channel id (dest_...).
1426
1426
  */
@@ -1456,10 +1456,17 @@ type Channel = {
1456
1456
  createdAt: string;
1457
1457
  kind: 'slack';
1458
1458
  config: {
1459
+ /**
1460
+ * Slack channel id.
1461
+ */
1459
1462
  channelId: string;
1463
+ /**
1464
+ * Slack channel name, without the #.
1465
+ */
1460
1466
  channelName: string;
1461
1467
  };
1462
- } | {
1468
+ };
1469
+ type EmailChannel = {
1463
1470
  /**
1464
1471
  * Channel id (dest_...).
1465
1472
  */
@@ -1495,6 +1502,9 @@ type Channel = {
1495
1502
  createdAt: string;
1496
1503
  kind: 'email';
1497
1504
  config: {
1505
+ /**
1506
+ * Every address on the list and whether it confirmed.
1507
+ */
1498
1508
  recipients: Array<{
1499
1509
  email: string;
1500
1510
  /**
@@ -1503,7 +1513,8 @@ type Channel = {
1503
1513
  confirmedAt: string | null;
1504
1514
  }>;
1505
1515
  };
1506
- } | {
1516
+ };
1517
+ type WebhookChannel = {
1507
1518
  /**
1508
1519
  * Channel id (dest_...).
1509
1520
  */
@@ -1539,6 +1550,9 @@ type Channel = {
1539
1550
  createdAt: string;
1540
1551
  kind: 'webhook';
1541
1552
  config: {
1553
+ /**
1554
+ * Where the signed POSTs go.
1555
+ */
1542
1556
  url: string;
1543
1557
  /**
1544
1558
  * Extra request headers you configured.
@@ -1551,7 +1565,8 @@ type Channel = {
1551
1565
  */
1552
1566
  secret?: string;
1553
1567
  };
1554
- } | {
1568
+ };
1569
+ type TelegramChannel = {
1555
1570
  /**
1556
1571
  * Channel id (dest_...).
1557
1572
  */
@@ -1587,10 +1602,57 @@ type Channel = {
1587
1602
  createdAt: string;
1588
1603
  kind: 'telegram';
1589
1604
  config: {
1605
+ /**
1606
+ * Telegram chat id.
1607
+ */
1590
1608
  chatId: string;
1591
1609
  chatType: 'private' | 'group' | 'supergroup' | 'channel';
1592
1610
  };
1593
1611
  };
1612
+ type Channel = ({
1613
+ kind: 'slack';
1614
+ } & SlackChannel) | ({
1615
+ kind: 'email';
1616
+ } & EmailChannel) | ({
1617
+ kind: 'webhook';
1618
+ } & WebhookChannel) | ({
1619
+ kind: 'telegram';
1620
+ } & TelegramChannel);
1621
+ type CreateSlackChannel = {
1622
+ kind: 'slack';
1623
+ /**
1624
+ * A Slack channel id from the connected workspace.
1625
+ */
1626
+ channelId: string;
1627
+ /**
1628
+ * The channel name, for the label.
1629
+ */
1630
+ channelName: string;
1631
+ };
1632
+ type CreateEmailChannel = {
1633
+ kind: 'email';
1634
+ /**
1635
+ * Each address gets a confirmation link; workspace members are confirmed on sight.
1636
+ */
1637
+ emails: Array<string>;
1638
+ };
1639
+ type CreateWebhookChannel = {
1640
+ kind: 'webhook';
1641
+ /**
1642
+ * Where the signed POSTs go. https in production.
1643
+ */
1644
+ url: string;
1645
+ /**
1646
+ * A name for the channel; the host of the URL when omitted.
1647
+ */
1648
+ label?: string;
1649
+ /**
1650
+ * Extra request headers to send, for your own auth.
1651
+ */
1652
+ headers?: {
1653
+ [key: string]: string;
1654
+ };
1655
+ };
1594
1656
  type GetHealthData = {
1595
1657
  body?: never;
1596
1658
  path?: never;
@@ -1871,7 +1933,7 @@ type UpdateMentionData = {
1871
1933
  /**
1872
1934
  * ISO 8601 (or epoch ms) until which the mention leaves the feed; null wakes it.
1873
1935
  */
1874
- snoozedUntil?: number | null;
1936
+ snoozedUntil?: string;
1875
1937
  /**
1876
1938
  * Internal note; null or empty clears it.
1877
1939
  */
@@ -1975,11 +2037,11 @@ type SearchMentionsData = {
1975
2037
  /**
1976
2038
  * Only posts published at or after this instant (ISO 8601, or epoch ms).
1977
2039
  */
1978
- since?: number;
2040
+ since?: string;
1979
2041
  /**
1980
2042
  * Only posts published at or before this instant (ISO 8601, or epoch ms).
1981
2043
  */
1982
- until?: number;
2044
+ until?: string;
1983
2045
  /**
1984
2046
  * newest: by match time, newest first. priority: by attention score, highest first. Cursors are specific to a sort.
1985
2047
  */
@@ -2086,11 +2148,11 @@ type ExportMentionsCsvData = {
2086
2148
  /**
2087
2149
  * Only posts published at or after this instant (ISO 8601, or epoch ms).
2088
2150
  */
2089
- since?: number;
2151
+ since?: string;
2090
2152
  /**
2091
2153
  * Only posts published at or before this instant (ISO 8601, or epoch ms).
2092
2154
  */
2093
- until?: number;
2155
+ until?: string;
2094
2156
  };
2095
2157
  url: '/v1/mentions/export.csv';
2096
2158
  };
@@ -2135,7 +2197,7 @@ type ExportPeopleCsvData = {
2135
2197
  /**
2136
2198
  * Only people whose first matched mention is at or after this instant (ISO 8601, or epoch ms).
2137
2199
  */
2138
- since?: number;
2200
+ since?: string;
2139
2201
  /**
2140
2202
  * A saved segment applied on top of every other filter here. Unknown id: 404.
2141
2203
  */
@@ -2232,7 +2294,7 @@ type ListPeopleData = {
2232
2294
  /**
2233
2295
  * Only people whose first matched mention is at or after this instant (ISO 8601, or epoch ms).
2234
2296
  */
2235
- since?: number;
2297
+ since?: string;
2236
2298
  /**
2237
2299
  * A saved segment applied on top of every other filter here. Unknown id: 404.
2238
2300
  */
@@ -3556,17 +3618,17 @@ type GetAnalyticsSummaryData = {
3556
3618
  */
3557
3619
  to?: string;
3558
3620
  /**
3559
- * Comma-separated keyword ids; omit for every keyword.
3621
+ * Only these keyword ids. Repeatable, or comma-separated; omit for every keyword.
3560
3622
  */
3561
- keywordIds?: string;
3623
+ keywordIds?: Array<string> | null;
3562
3624
  /**
3563
- * Comma-separated platforms (bluesky, hackernews, github, ...); omit for every platform.
3625
+ * Only these platforms. Repeatable, or comma-separated; omit for every platform.
3564
3626
  */
3565
- platforms?: string;
3627
+ platforms?: Array<'bluesky' | 'hackernews' | 'github' | 'stackoverflow' | 'devto' | 'reddit' | 'x' | 'youtube' | 'news' | 'linkedin'>;
3566
3628
  /**
3567
3629
  * true adds the period of the same length right before the window as `previous`.
3568
3630
  */
3569
- compare?: 'true' | 'false';
3631
+ compare?: boolean;
3570
3632
  /**
3571
3633
  * IANA zone the days are cut in (Europe/Madrid). Default UTC. One offset, the zone's at the end of the window, applies to the whole window.
3572
3634
  */
@@ -3609,17 +3671,17 @@ type GetAnalyticsSeriesData = {
3609
3671
  */
3610
3672
  to?: string;
3611
3673
  /**
3612
- * Comma-separated keyword ids; omit for every keyword.
3674
+ * Only these keyword ids. Repeatable, or comma-separated; omit for every keyword.
3613
3675
  */
3614
- keywordIds?: string;
3676
+ keywordIds?: Array<string> | null;
3615
3677
  /**
3616
- * Comma-separated platforms (bluesky, hackernews, github, ...); omit for every platform.
3678
+ * Only these platforms. Repeatable, or comma-separated; omit for every platform.
3617
3679
  */
3618
- platforms?: string;
3680
+ platforms?: Array<'bluesky' | 'hackernews' | 'github' | 'stackoverflow' | 'devto' | 'reddit' | 'x' | 'youtube' | 'news' | 'linkedin'>;
3619
3681
  /**
3620
3682
  * true adds the period of the same length right before the window as `previous`.
3621
3683
  */
3622
- compare?: 'true' | 'false';
3684
+ compare?: boolean;
3623
3685
  /**
3624
3686
  * IANA zone the days are cut in (Europe/Madrid). Default UTC. One offset, the zone's at the end of the window, applies to the whole window.
3625
3687
  */
@@ -3670,17 +3732,17 @@ type GetAnalyticsBreakdownData = {
3670
3732
  */
3671
3733
  to?: string;
3672
3734
  /**
3673
- * Comma-separated keyword ids; omit for every keyword.
3735
+ * Only these keyword ids. Repeatable, or comma-separated; omit for every keyword.
3674
3736
  */
3675
- keywordIds?: string;
3737
+ keywordIds?: Array<string> | null;
3676
3738
  /**
3677
- * Comma-separated platforms (bluesky, hackernews, github, ...); omit for every platform.
3739
+ * Only these platforms. Repeatable, or comma-separated; omit for every platform.
3678
3740
  */
3679
- platforms?: string;
3741
+ platforms?: Array<'bluesky' | 'hackernews' | 'github' | 'stackoverflow' | 'devto' | 'reddit' | 'x' | 'youtube' | 'news' | 'linkedin'>;
3680
3742
  /**
3681
3743
  * true adds the period of the same length right before the window as `previous`.
3682
3744
  */
3683
- compare?: 'true' | 'false';
3745
+ compare?: boolean;
3684
3746
  /**
3685
3747
  * IANA zone the days are cut in (Europe/Madrid). Default UTC. One offset, the zone's at the end of the window, applies to the whole window.
3686
3748
  */
@@ -3727,17 +3789,17 @@ type GetShareOfVoiceData = {
3727
3789
  */
3728
3790
  to?: string;
3729
3791
  /**
3730
- * Comma-separated keyword ids; omit for every keyword.
3792
+ * Only these keyword ids. Repeatable, or comma-separated; omit for every keyword.
3731
3793
  */
3732
- keywordIds?: string;
3794
+ keywordIds?: Array<string> | null;
3733
3795
  /**
3734
- * Comma-separated platforms (bluesky, hackernews, github, ...); omit for every platform.
3796
+ * Only these platforms. Repeatable, or comma-separated; omit for every platform.
3735
3797
  */
3736
- platforms?: string;
3798
+ platforms?: Array<'bluesky' | 'hackernews' | 'github' | 'stackoverflow' | 'devto' | 'reddit' | 'x' | 'youtube' | 'news' | 'linkedin'>;
3737
3799
  /**
3738
3800
  * true adds the period of the same length right before the window as `previous`.
3739
3801
  */
3740
- compare?: 'true' | 'false';
3802
+ compare?: boolean;
3741
3803
  /**
3742
3804
  * IANA zone the days are cut in (Europe/Madrid). Default UTC. One offset, the zone's at the end of the window, applies to the whole window.
3743
3805
  */
@@ -4014,202 +4076,18 @@ type ListChannelsResponses = {
4014
4076
  * Every channel of the org
4015
4077
  */
4016
4078
  200: {
4017
- data: Array<{
4018
- /**
4019
- * Channel id (dest_...).
4020
- */
4021
- id: string;
4022
- label: string;
4023
- /**
4024
- * Computed over this workspace's deliveries.
4025
- */
4026
- stats: {
4027
- /**
4028
- * Alerts sending to this channel.
4029
- */
4030
- alerts: number;
4031
- /**
4032
- * Of those, enabled ones; 0 means the channel receives nothing right now.
4033
- */
4034
- activeAlerts: number;
4035
- /**
4036
- * Newest delivery attempt, successful or not.
4037
- */
4038
- lastDeliveryAt: string | null;
4039
- /**
4040
- * Deliveries in the last 7 days.
4041
- */
4042
- last7d: {
4043
- total: number;
4044
- failed: number;
4045
- };
4046
- };
4047
- /**
4048
- * ISO 8601 timestamp, UTC.
4049
- */
4050
- createdAt: string;
4051
- kind: 'slack';
4052
- config: {
4053
- channelId: string;
4054
- channelName: string;
4055
- };
4056
- } | {
4057
- /**
4058
- * Channel id (dest_...).
4059
- */
4060
- id: string;
4061
- label: string;
4062
- /**
4063
- * Computed over this workspace's deliveries.
4064
- */
4065
- stats: {
4066
- /**
4067
- * Alerts sending to this channel.
4068
- */
4069
- alerts: number;
4070
- /**
4071
- * Of those, enabled ones; 0 means the channel receives nothing right now.
4072
- */
4073
- activeAlerts: number;
4074
- /**
4075
- * Newest delivery attempt, successful or not.
4076
- */
4077
- lastDeliveryAt: string | null;
4078
- /**
4079
- * Deliveries in the last 7 days.
4080
- */
4081
- last7d: {
4082
- total: number;
4083
- failed: number;
4084
- };
4085
- };
4086
- /**
4087
- * ISO 8601 timestamp, UTC.
4088
- */
4089
- createdAt: string;
4090
- kind: 'email';
4091
- config: {
4092
- recipients: Array<{
4093
- email: string;
4094
- /**
4095
- * Null until the address confirmed through its link; unconfirmed addresses receive nothing.
4096
- */
4097
- confirmedAt: string | null;
4098
- }>;
4099
- };
4100
- } | {
4101
- /**
4102
- * Channel id (dest_...).
4103
- */
4104
- id: string;
4105
- label: string;
4106
- /**
4107
- * Computed over this workspace's deliveries.
4108
- */
4109
- stats: {
4110
- /**
4111
- * Alerts sending to this channel.
4112
- */
4113
- alerts: number;
4114
- /**
4115
- * Of those, enabled ones; 0 means the channel receives nothing right now.
4116
- */
4117
- activeAlerts: number;
4118
- /**
4119
- * Newest delivery attempt, successful or not.
4120
- */
4121
- lastDeliveryAt: string | null;
4122
- /**
4123
- * Deliveries in the last 7 days.
4124
- */
4125
- last7d: {
4126
- total: number;
4127
- failed: number;
4128
- };
4129
- };
4130
- /**
4131
- * ISO 8601 timestamp, UTC.
4132
- */
4133
- createdAt: string;
4134
- kind: 'webhook';
4135
- config: {
4136
- url: string;
4137
- /**
4138
- * Extra request headers you configured.
4139
- */
4140
- headers: {
4141
- [key: string]: string;
4142
- };
4143
- /**
4144
- * Only on creation and rotation. Signs every body: X-Mentions-Signature is the hex HMAC-SHA256 of the raw bytes.
4145
- */
4146
- secret?: string;
4147
- };
4148
- } | {
4149
- /**
4150
- * Channel id (dest_...).
4151
- */
4152
- id: string;
4153
- label: string;
4154
- /**
4155
- * Computed over this workspace's deliveries.
4156
- */
4157
- stats: {
4158
- /**
4159
- * Alerts sending to this channel.
4160
- */
4161
- alerts: number;
4162
- /**
4163
- * Of those, enabled ones; 0 means the channel receives nothing right now.
4164
- */
4165
- activeAlerts: number;
4166
- /**
4167
- * Newest delivery attempt, successful or not.
4168
- */
4169
- lastDeliveryAt: string | null;
4170
- /**
4171
- * Deliveries in the last 7 days.
4172
- */
4173
- last7d: {
4174
- total: number;
4175
- failed: number;
4176
- };
4177
- };
4178
- /**
4179
- * ISO 8601 timestamp, UTC.
4180
- */
4181
- createdAt: string;
4182
- kind: 'telegram';
4183
- config: {
4184
- chatId: string;
4185
- chatType: 'private' | 'group' | 'supergroup' | 'channel';
4186
- };
4187
- }>;
4079
+ data: Array<SlackChannel | EmailChannel | WebhookChannel | TelegramChannel>;
4188
4080
  };
4189
4081
  };
4190
4082
  type ListChannelsResponse = ListChannelsResponses[keyof ListChannelsResponses];
4191
4083
  type CreateChannelData = {
4192
- body: {
4084
+ body: ({
4193
4085
  kind: 'slack';
4194
- /**
4195
- * A Slack channel id from the connected workspace.
4196
- */
4197
- channelId: string;
4198
- channelName: string;
4199
- } | {
4086
+ } & CreateSlackChannel) | ({
4200
4087
  kind: 'email';
4201
- /**
4202
- * Each address gets a confirmation link; workspace members are confirmed on sight.
4203
- */
4204
- emails: Array<string>;
4205
- } | {
4088
+ } & CreateEmailChannel) | ({
4206
4089
  kind: 'webhook';
4207
- url: string;
4208
- label?: string;
4209
- headers?: {
4210
- [key: string]: string;
4211
- };
4212
- };
4090
+ } & CreateWebhookChannel);
4213
4091
  path?: never;
4214
4092
  query?: never;
4215
4093
  url: '/v1/channels';
@@ -4547,4 +4425,4 @@ type Mentio = typeof sdk & {
4547
4425
  };
4548
4426
  declare function createMentio(options: MentioOptions): Mentio;
4549
4427
 
4550
- export { type Alert, type AnalyticsBreakdown, type AnalyticsSeries, type AnalyticsSummary, type Channel, type Client, type ClientOptions, type Company, type Config, type CreateAlertData, type CreateAlertError, type CreateAlertErrors, type CreateAlertResponse, type CreateAlertResponses, type CreateApiKeyData, type CreateApiKeyError, type CreateApiKeyErrors, type CreateApiKeyResponse, type CreateApiKeyResponses, type CreateChannelData, type CreateChannelError, type CreateChannelErrors, type CreateChannelResponse, type CreateChannelResponses, type CreateKeywordData, type CreateKeywordError, type CreateKeywordErrors, type CreateKeywordResponse, type CreateKeywordResponses, type CreateSegmentData, type CreateSegmentError, type CreateSegmentErrors, type CreateSegmentResponse, type CreateSegmentResponses, DEFAULT_BASE_URL, type DeleteAlertData, type DeleteAlertError, type DeleteAlertErrors, type DeleteAlertResponse, type DeleteAlertResponses, type DeleteChannelData, type DeleteChannelError, type DeleteChannelErrors, type DeleteChannelResponse, type DeleteChannelResponses, type DeleteKeywordData, type DeleteKeywordError, type DeleteKeywordErrors, type DeleteKeywordResponse, type DeleteKeywordResponses, type DeleteSegmentData, type DeleteSegmentError, type DeleteSegmentErrors, type DeleteSegmentResponse, type DeleteSegmentResponses, type ErrorResponse, type ExportMentionsCsvData, type ExportMentionsCsvError, type ExportMentionsCsvErrors, type ExportMentionsCsvResponse, type ExportMentionsCsvResponses, type ExportPeopleCsvData, type ExportPeopleCsvError, type ExportPeopleCsvErrors, type ExportPeopleCsvResponse, type ExportPeopleCsvResponses, type GetAlertData, type GetAlertError, type GetAlertErrors, type GetAlertResponse, type GetAlertResponses, type GetAnalyticsBreakdownData, type GetAnalyticsBreakdownError, type GetAnalyticsBreakdownErrors, type GetAnalyticsBreakdownResponse, type GetAnalyticsBreakdownResponses, type GetAnalyticsSeriesData, type GetAnalyticsSeriesError, type GetAnalyticsSeriesErrors, type GetAnalyticsSeriesResponse, type GetAnalyticsSeriesResponses, type GetAnalyticsSummaryData, type GetAnalyticsSummaryError, type GetAnalyticsSummaryErrors, type GetAnalyticsSummaryResponse, type GetAnalyticsSummaryResponses, type GetChannelData, type GetChannelError, type GetChannelErrors, type GetChannelResponse, type GetChannelResponses, type GetCompanyData, type GetCompanyError, type GetCompanyErrors, type GetCompanyResponse, type GetCompanyResponses, type GetHealthData, type GetHealthResponse, type GetHealthResponses, type GetKeywordData, type GetKeywordError, type GetKeywordErrors, type GetKeywordResponse, type GetKeywordResponses, type GetMentionData, type GetMentionError, type GetMentionErrors, type GetMentionResponse, type GetMentionResponses, type GetPersonData, type GetPersonError, type GetPersonErrors, type GetPersonResponse, type GetPersonResponses, type GetSegmentData, type GetSegmentError, type GetSegmentErrors, type GetSegmentResponse, type GetSegmentResponses, type GetShareOfVoiceData, type GetShareOfVoiceError, type GetShareOfVoiceErrors, type GetShareOfVoiceResponse, type GetShareOfVoiceResponses, type Keyword, type ListAlertsData, type ListAlertsError, type ListAlertsErrors, type ListAlertsResponse, type ListAlertsResponses, type ListApiKeysData, type ListApiKeysError, type ListApiKeysErrors, type ListApiKeysResponse, type ListApiKeysResponses, type ListChannelDeliveriesData, type ListChannelDeliveriesError, type ListChannelDeliveriesErrors, type ListChannelDeliveriesResponse, type ListChannelDeliveriesResponses, type ListChannelsData, type ListChannelsError, type ListChannelsErrors, type ListChannelsResponse, type ListChannelsResponses, type ListKeywordsData, type ListKeywordsError, type ListKeywordsErrors, type ListKeywordsResponse, type ListKeywordsResponses, type ListPeopleData, type ListPeopleError, type ListPeopleErrors, type ListPeopleResponse, type ListPeopleResponses, type ListSegmentsData, type ListSegmentsError, type ListSegmentsErrors, type ListSegmentsResponse, type ListSegmentsResponses, type Mentio, type MentioOptions, type Mention, type MergePeopleData, type MergePeopleError, type MergePeopleErrors, type MergePeopleResponse, type MergePeopleResponses, type Options, type Person, type RequestResult, type RevokeApiKeyData, type RevokeApiKeyError, type RevokeApiKeyErrors, type RevokeApiKeyResponse, type RevokeApiKeyResponses, type RotateWebhookSecretData, type RotateWebhookSecretError, type RotateWebhookSecretErrors, type RotateWebhookSecretResponse, type RotateWebhookSecretResponses, type RunAlertDigestData, type RunAlertDigestError, type RunAlertDigestErrors, type RunAlertDigestResponse, type RunAlertDigestResponses, type SearchMentionsData, type SearchMentionsError, type SearchMentionsErrors, type SearchMentionsResponse, type SearchMentionsResponses, type Segment, type ShareOfVoice, type SplitPersonData, type SplitPersonError, type SplitPersonErrors, type SplitPersonResponse, type SplitPersonResponses, type TestAlertData, type TestAlertError, type TestAlertErrors, type TestAlertResponse, type TestAlertResponses, type TestChannelData, type TestChannelError, type TestChannelErrors, type TestChannelResponse, type TestChannelResponses, type UpdateAlertData, type UpdateAlertError, type UpdateAlertErrors, type UpdateAlertResponse, type UpdateAlertResponses, type UpdateChannelData, type UpdateChannelError, type UpdateChannelErrors, type UpdateChannelResponse, type UpdateChannelResponses, type UpdateCompanyData, type UpdateCompanyError, type UpdateCompanyErrors, type UpdateCompanyResponse, type UpdateCompanyResponses, type UpdateKeywordData, type UpdateKeywordError, type UpdateKeywordErrors, type UpdateKeywordResponse, type UpdateKeywordResponses, type UpdateMentionData, type UpdateMentionError, type UpdateMentionErrors, type UpdateMentionResponse, type UpdateMentionResponses, type UpdatePersonData, type UpdatePersonError, type UpdatePersonErrors, type UpdatePersonResponse, type UpdatePersonResponses, type UpdateSegmentData, type UpdateSegmentError, type UpdateSegmentErrors, type UpdateSegmentResponse, type UpdateSegmentResponses, createAlert, createApiKey, createChannel, createClient, createConfig, createKeyword, createMentio, createSegment, deleteAlert, deleteChannel, deleteKeyword, deleteSegment, exportMentionsCsv, exportPeopleCsv, getAlert, getAnalyticsBreakdown, getAnalyticsSeries, getAnalyticsSummary, getChannel, getCompany, getHealth, getKeyword, getMention, getPerson, getSegment, getShareOfVoice, listAlerts, listApiKeys, listChannelDeliveries, listChannels, listKeywords, listPeople, listSegments, mergePeople, revokeApiKey, rotateWebhookSecret, runAlertDigest, searchMentions, splitPerson, testAlert, testChannel, updateAlert, updateChannel, updateCompany, updateKeyword, updateMention, updatePerson, updateSegment };
4428
+ export { type Alert, type AnalyticsBreakdown, type AnalyticsSeries, type AnalyticsSummary, type Channel, type Client, type ClientOptions, type Company, type Config, type CreateAlertData, type CreateAlertError, type CreateAlertErrors, type CreateAlertResponse, type CreateAlertResponses, type CreateApiKeyData, type CreateApiKeyError, type CreateApiKeyErrors, type CreateApiKeyResponse, type CreateApiKeyResponses, type CreateChannelData, type CreateChannelError, type CreateChannelErrors, type CreateChannelResponse, type CreateChannelResponses, type CreateEmailChannel, type CreateKeywordData, type CreateKeywordError, type CreateKeywordErrors, type CreateKeywordResponse, type CreateKeywordResponses, type CreateSegmentData, type CreateSegmentError, type CreateSegmentErrors, type CreateSegmentResponse, type CreateSegmentResponses, type CreateSlackChannel, type CreateWebhookChannel, DEFAULT_BASE_URL, type DeleteAlertData, type DeleteAlertError, type DeleteAlertErrors, type DeleteAlertResponse, type DeleteAlertResponses, type DeleteChannelData, type DeleteChannelError, type DeleteChannelErrors, type DeleteChannelResponse, type DeleteChannelResponses, type DeleteKeywordData, type DeleteKeywordError, type DeleteKeywordErrors, type DeleteKeywordResponse, type DeleteKeywordResponses, type DeleteSegmentData, type DeleteSegmentError, type DeleteSegmentErrors, type DeleteSegmentResponse, type DeleteSegmentResponses, type EmailChannel, type ErrorResponse, type ExportMentionsCsvData, type ExportMentionsCsvError, type ExportMentionsCsvErrors, type ExportMentionsCsvResponse, type ExportMentionsCsvResponses, type ExportPeopleCsvData, type ExportPeopleCsvError, type ExportPeopleCsvErrors, type ExportPeopleCsvResponse, type ExportPeopleCsvResponses, type GetAlertData, type GetAlertError, type GetAlertErrors, type GetAlertResponse, type GetAlertResponses, type GetAnalyticsBreakdownData, type GetAnalyticsBreakdownError, type GetAnalyticsBreakdownErrors, type GetAnalyticsBreakdownResponse, type GetAnalyticsBreakdownResponses, type GetAnalyticsSeriesData, type GetAnalyticsSeriesError, type GetAnalyticsSeriesErrors, type GetAnalyticsSeriesResponse, type GetAnalyticsSeriesResponses, type GetAnalyticsSummaryData, type GetAnalyticsSummaryError, type GetAnalyticsSummaryErrors, type GetAnalyticsSummaryResponse, type GetAnalyticsSummaryResponses, type GetChannelData, type GetChannelError, type GetChannelErrors, type GetChannelResponse, type GetChannelResponses, type GetCompanyData, type GetCompanyError, type GetCompanyErrors, type GetCompanyResponse, type GetCompanyResponses, type GetHealthData, type GetHealthResponse, type GetHealthResponses, type GetKeywordData, type GetKeywordError, type GetKeywordErrors, type GetKeywordResponse, type GetKeywordResponses, type GetMentionData, type GetMentionError, type GetMentionErrors, type GetMentionResponse, type GetMentionResponses, type GetPersonData, type GetPersonError, type GetPersonErrors, type GetPersonResponse, type GetPersonResponses, type GetSegmentData, type GetSegmentError, type GetSegmentErrors, type GetSegmentResponse, type GetSegmentResponses, type GetShareOfVoiceData, type GetShareOfVoiceError, type GetShareOfVoiceErrors, type GetShareOfVoiceResponse, type GetShareOfVoiceResponses, type Keyword, type ListAlertsData, type ListAlertsError, type ListAlertsErrors, type ListAlertsResponse, type ListAlertsResponses, type ListApiKeysData, type ListApiKeysError, type ListApiKeysErrors, type ListApiKeysResponse, type ListApiKeysResponses, type ListChannelDeliveriesData, type ListChannelDeliveriesError, type ListChannelDeliveriesErrors, type ListChannelDeliveriesResponse, type ListChannelDeliveriesResponses, type ListChannelsData, type ListChannelsError, type ListChannelsErrors, type ListChannelsResponse, type ListChannelsResponses, type ListKeywordsData, type ListKeywordsError, type ListKeywordsErrors, type ListKeywordsResponse, type ListKeywordsResponses, type ListPeopleData, type ListPeopleError, type ListPeopleErrors, type ListPeopleResponse, type ListPeopleResponses, type ListSegmentsData, type ListSegmentsError, type ListSegmentsErrors, type ListSegmentsResponse, type ListSegmentsResponses, type Mentio, type MentioOptions, type Mention, type MergePeopleData, type MergePeopleError, type MergePeopleErrors, type MergePeopleResponse, type MergePeopleResponses, type Options, type Person, type RequestResult, type RevokeApiKeyData, type RevokeApiKeyError, type RevokeApiKeyErrors, type RevokeApiKeyResponse, type RevokeApiKeyResponses, type RotateWebhookSecretData, type RotateWebhookSecretError, type RotateWebhookSecretErrors, type RotateWebhookSecretResponse, type RotateWebhookSecretResponses, type RunAlertDigestData, type RunAlertDigestError, type RunAlertDigestErrors, type RunAlertDigestResponse, type RunAlertDigestResponses, type SearchMentionsData, type SearchMentionsError, type SearchMentionsErrors, type SearchMentionsResponse, type SearchMentionsResponses, type Segment, type ShareOfVoice, type SlackChannel, type SplitPersonData, type SplitPersonError, type SplitPersonErrors, type SplitPersonResponse, type SplitPersonResponses, type TelegramChannel, type TestAlertData, type TestAlertError, type TestAlertErrors, type TestAlertResponse, type TestAlertResponses, type TestChannelData, type TestChannelError, type TestChannelErrors, type TestChannelResponse, type TestChannelResponses, type UpdateAlertData, type UpdateAlertError, type UpdateAlertErrors, type UpdateAlertResponse, type UpdateAlertResponses, type UpdateChannelData, type UpdateChannelError, type UpdateChannelErrors, type UpdateChannelResponse, type UpdateChannelResponses, type UpdateCompanyData, type UpdateCompanyError, type UpdateCompanyErrors, type UpdateCompanyResponse, type UpdateCompanyResponses, type UpdateKeywordData, type UpdateKeywordError, type UpdateKeywordErrors, type UpdateKeywordResponse, type UpdateKeywordResponses, type UpdateMentionData, type UpdateMentionError, type UpdateMentionErrors, type UpdateMentionResponse, type UpdateMentionResponses, type UpdatePersonData, type UpdatePersonError, type UpdatePersonErrors, type UpdatePersonResponse, type UpdatePersonResponses, type UpdateSegmentData, type UpdateSegmentError, type UpdateSegmentErrors, type UpdateSegmentResponse, type UpdateSegmentResponses, type WebhookChannel, createAlert, createApiKey, createChannel, createClient, createConfig, createKeyword, createMentio, createSegment, deleteAlert, deleteChannel, deleteKeyword, deleteSegment, exportMentionsCsv, exportPeopleCsv, getAlert, getAnalyticsBreakdown, getAnalyticsSeries, getAnalyticsSummary, getChannel, getCompany, getHealth, getKeyword, getMention, getPerson, getSegment, getShareOfVoice, listAlerts, listApiKeys, listChannelDeliveries, listChannels, listKeywords, listPeople, listSegments, mergePeople, revokeApiKey, rotateWebhookSecret, runAlertDigest, searchMentions, splitPerson, testAlert, testChannel, updateAlert, updateChannel, updateCompany, updateKeyword, updateMention, updatePerson, updateSegment };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mentio-dev/sdk",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "TypeScript SDK for the Mentio API, generated from its OpenAPI document.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://docs.mentio.dev/sdks",