@mentio-dev/sdk 0.4.2 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -795,6 +795,7 @@ __export(sdk_gen_exports, {
795
795
  createAlert: () => createAlert,
796
796
  createApiKey: () => createApiKey,
797
797
  createChannel: () => createChannel,
798
+ createInvitation: () => createInvitation,
798
799
  createKeyword: () => createKeyword,
799
800
  createSegment: () => createSegment,
800
801
  deleteAlert: () => deleteAlert,
@@ -810,24 +811,30 @@ __export(sdk_gen_exports, {
810
811
  getAnalyticsSummary: () => getAnalyticsSummary,
811
812
  getChannel: () => getChannel,
812
813
  getCompany: () => getCompany,
814
+ getFilters: () => getFilters,
813
815
  getHealth: () => getHealth,
814
816
  getKeyword: () => getKeyword,
815
817
  getMention: () => getMention,
816
818
  getPerson: () => getPerson,
817
819
  getSegment: () => getSegment,
818
820
  getShareOfVoice: () => getShareOfVoice,
821
+ getUsage: () => getUsage,
819
822
  listAlerts: () => listAlerts,
820
823
  listApiKeys: () => listApiKeys,
821
824
  listChannelDeliveries: () => listChannelDeliveries,
822
825
  listChannels: () => listChannels,
826
+ listInvitations: () => listInvitations,
823
827
  listKeywords: () => listKeywords,
828
+ listMembers: () => listMembers,
824
829
  listPeople: () => listPeople,
825
830
  listPersonActivities: () => listPersonActivities,
826
831
  listSegments: () => listSegments,
827
832
  logPersonActivity: () => logPersonActivity,
828
833
  mergePeople: () => mergePeople,
829
834
  muteAlertAuthors: () => muteAlertAuthors,
835
+ removeMember: () => removeMember,
830
836
  revokeApiKey: () => revokeApiKey,
837
+ revokeInvitation: () => revokeInvitation,
831
838
  rotateWebhookSecret: () => rotateWebhookSecret,
832
839
  runAlertDigest: () => runAlertDigest,
833
840
  searchMentions: () => searchMentions,
@@ -838,10 +845,12 @@ __export(sdk_gen_exports, {
838
845
  updateAlert: () => updateAlert,
839
846
  updateChannel: () => updateChannel,
840
847
  updateCompany: () => updateCompany,
848
+ updateFilters: () => updateFilters,
841
849
  updateKeyword: () => updateKeyword,
842
850
  updateMention: () => updateMention,
843
851
  updatePerson: () => updatePerson,
844
- updateSegment: () => updateSegment
852
+ updateSegment: () => updateSegment,
853
+ whoami: () => whoami
845
854
  });
846
855
 
847
856
  // src/generated/client.gen.ts
@@ -882,6 +891,20 @@ var updateKeyword = (options) => (options.client ?? client).patch({
882
891
  ...options.headers
883
892
  }
884
893
  });
894
+ var getFilters = (options) => (options?.client ?? client).get({
895
+ security: [{ scheme: "bearer", type: "http" }],
896
+ url: "/v1/filters",
897
+ ...options
898
+ });
899
+ var updateFilters = (options) => (options.client ?? client).patch({
900
+ security: [{ scheme: "bearer", type: "http" }],
901
+ url: "/v1/filters",
902
+ ...options,
903
+ headers: {
904
+ "Content-Type": "application/json",
905
+ ...options.headers
906
+ }
907
+ });
885
908
  var getMention = (options) => (options.client ?? client).get({
886
909
  security: [{ scheme: "bearer", type: "http" }],
887
910
  url: "/v1/mentions/{id}",
@@ -1029,6 +1052,45 @@ var revokeApiKey = (options) => (options.client ?? client).delete({
1029
1052
  url: "/v1/api-keys/{id}",
1030
1053
  ...options
1031
1054
  });
1055
+ var whoami = (options) => (options?.client ?? client).get({
1056
+ security: [{ scheme: "bearer", type: "http" }],
1057
+ url: "/v1/whoami",
1058
+ ...options
1059
+ });
1060
+ var listMembers = (options) => (options?.client ?? client).get({
1061
+ security: [{ scheme: "bearer", type: "http" }],
1062
+ url: "/v1/members",
1063
+ ...options
1064
+ });
1065
+ var listInvitations = (options) => (options?.client ?? client).get({
1066
+ security: [{ scheme: "bearer", type: "http" }],
1067
+ url: "/v1/members/invitations",
1068
+ ...options
1069
+ });
1070
+ var createInvitation = (options) => (options.client ?? client).post({
1071
+ security: [{ scheme: "bearer", type: "http" }],
1072
+ url: "/v1/members/invitations",
1073
+ ...options,
1074
+ headers: {
1075
+ "Content-Type": "application/json",
1076
+ ...options.headers
1077
+ }
1078
+ });
1079
+ var revokeInvitation = (options) => (options.client ?? client).delete({
1080
+ security: [{ scheme: "bearer", type: "http" }],
1081
+ url: "/v1/members/invitations/{id}",
1082
+ ...options
1083
+ });
1084
+ var removeMember = (options) => (options.client ?? client).delete({
1085
+ security: [{ scheme: "bearer", type: "http" }],
1086
+ url: "/v1/members/{id}",
1087
+ ...options
1088
+ });
1089
+ var getUsage = (options) => (options?.client ?? client).get({
1090
+ security: [{ scheme: "bearer", type: "http" }],
1091
+ url: "/v1/usage",
1092
+ ...options
1093
+ });
1032
1094
  var deleteAlert = (options) => (options.client ?? client).delete({
1033
1095
  security: [{ scheme: "bearer", type: "http" }],
1034
1096
  url: "/v1/alerts/{id}",
@@ -1185,6 +1247,7 @@ export {
1185
1247
  createChannel,
1186
1248
  createClient,
1187
1249
  createConfig,
1250
+ createInvitation,
1188
1251
  createKeyword,
1189
1252
  createMentio,
1190
1253
  createSegment,
@@ -1201,24 +1264,30 @@ export {
1201
1264
  getAnalyticsSummary,
1202
1265
  getChannel,
1203
1266
  getCompany,
1267
+ getFilters,
1204
1268
  getHealth,
1205
1269
  getKeyword,
1206
1270
  getMention,
1207
1271
  getPerson,
1208
1272
  getSegment,
1209
1273
  getShareOfVoice,
1274
+ getUsage,
1210
1275
  listAlerts,
1211
1276
  listApiKeys,
1212
1277
  listChannelDeliveries,
1213
1278
  listChannels,
1279
+ listInvitations,
1214
1280
  listKeywords,
1281
+ listMembers,
1215
1282
  listPeople,
1216
1283
  listPersonActivities,
1217
1284
  listSegments,
1218
1285
  logPersonActivity,
1219
1286
  mergePeople,
1220
1287
  muteAlertAuthors,
1288
+ removeMember,
1221
1289
  revokeApiKey,
1290
+ revokeInvitation,
1222
1291
  rotateWebhookSecret,
1223
1292
  runAlertDigest,
1224
1293
  searchMentions,
@@ -1229,9 +1298,11 @@ export {
1229
1298
  updateAlert,
1230
1299
  updateChannel,
1231
1300
  updateCompany,
1301
+ updateFilters,
1232
1302
  updateKeyword,
1233
1303
  updateMention,
1234
1304
  updatePerson,
1235
- updateSegment
1305
+ updateSegment,
1306
+ whoami
1236
1307
  };
1237
1308
  //# sourceMappingURL=index.js.map