@mazmo/sdk 3.1.0 → 4.0.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/README.md +1 -1
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +32 -1
- package/dist/index.d.ts +32 -1
- package/dist/index.js +1 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -52,4 +52,4 @@ Each release says, at the end of this page, which version of the API it was buil
|
|
|
52
52
|
|
|
53
53
|
The reference of every endpoint is at [docs.mazmo.net](https://docs.mazmo.net).
|
|
54
54
|
|
|
55
|
-
Built against version 7.7.
|
|
55
|
+
Built against version 7.7.87 of the Mazmo API.
|
package/dist/index.cjs
CHANGED
|
@@ -324,6 +324,7 @@ var routes = {
|
|
|
324
324
|
searchAdvancedUsers: { method: "GET", path: "/users/advanced-search" },
|
|
325
325
|
searchUsers: { method: "GET", path: "/users/search/:query" },
|
|
326
326
|
sortTags: { method: "PUT", path: "/users/tags/sort" },
|
|
327
|
+
testOrganizationWebhook: { method: "POST", path: "/users/organizationwebhooks/test" },
|
|
327
328
|
transferOrgPoints: { method: "POST", path: "/users/orgpoints/transfer" },
|
|
328
329
|
updateAvatar: { method: "PUT", path: "/users/avatar" },
|
|
329
330
|
updateCover: { method: "PUT", path: "/users/cover" },
|
package/dist/index.d.cts
CHANGED
|
@@ -64,7 +64,7 @@ interface AdminCoupon {
|
|
|
64
64
|
createdAt: string;
|
|
65
65
|
updatedAt: string;
|
|
66
66
|
}
|
|
67
|
-
type Alert = CommunityInviteCreatedAlert | ReactionReplyCreatedAlert | ReactionThreadCreatedAlert | FollowCreatedAlert | KnowCreatedAlert | KnowBannedAlert | CommentCreatedAlert | ReactionCommentCreatedAlert | ReactionPublicationCreatedAlert | RelationshipRequestedAlert | RelationshipApprovedAlert | RelationshipRejectedAlert | RelationshipRemovedAlert | SadesAssignmentAlert | SadesTransactionAlert | MessengerApprovedAlert | MessengerRequestedAlert | ChatChannelDeletedAlert | ChannelInvitationCreatedAlert | FeedPublicationReactedAlert | FeedCommentReactedAlert | FeedCommentCreatedAlert | FeedPublicationMentionAlert | FeedPublicationModeratedAlert | CommunitiesThreadMentionAlert | FeedPublicationVoteAlert | RsvpBannedAlert | RsvpCreatedAlert | BankTransactionCreatedAlert | ChatRequestsRefilledAlert | ThreadAwardedAlert | ReplyAwardedAlert | PublicationSingleUnlockedAlert | PublicationCrowdUnlockedAlert | TagExpiredAlert | EventInviteAlert | EnrollmentApprovedAlert | TagsGiftedAlert | OrgPointsTransferredAlert | VideoProcessingCompleteAlert | VideoProcessingFailedAlert | BugReportRejectedAlert | BugReportResolvedAlert | ChatterScoreStateChangedAlert | AnnouncementAlert | SubscriptionRenewalFailedAlert | OrgWebhookPausedAlert;
|
|
67
|
+
type Alert = CommunityInviteCreatedAlert | ReactionReplyCreatedAlert | ReactionThreadCreatedAlert | FollowCreatedAlert | KnowCreatedAlert | KnowBannedAlert | CommentCreatedAlert | ReactionCommentCreatedAlert | ReactionPublicationCreatedAlert | RelationshipRequestedAlert | RelationshipApprovedAlert | RelationshipRejectedAlert | RelationshipRemovedAlert | SadesAssignmentAlert | SadesTransactionAlert | MessengerApprovedAlert | MessengerRequestedAlert | ChatChannelDeletedAlert | ChannelInvitationCreatedAlert | FeedPublicationReactedAlert | FeedCommentReactedAlert | FeedCommentCreatedAlert | FeedPublicationMentionAlert | FeedPublicationModeratedAlert | CommunitiesThreadMentionAlert | FeedPublicationVoteAlert | RsvpBannedAlert | RsvpCreatedAlert | BankTransactionCreatedAlert | ChatRequestsRefilledAlert | ThreadAwardedAlert | ReplyAwardedAlert | PublicationSingleUnlockedAlert | PublicationCrowdUnlockedAlert | TagExpiredAlert | EventInviteAlert | EnrollmentApprovedAlert | TagsGiftedAlert | OrgPointsTransferredAlert | VideoProcessingCompleteAlert | VideoProcessingFailedAlert | BugReportRejectedAlert | BugReportResolvedAlert | ChatterScoreStateChangedAlert | AnnouncementAlert | SubscriptionRenewalFailedAlert | OrgWebhookPausedAlert | MercadopagoDisconnectedAlert;
|
|
68
68
|
interface AlertComment {
|
|
69
69
|
id: string;
|
|
70
70
|
content?: string;
|
|
@@ -1350,6 +1350,18 @@ interface Membership {
|
|
|
1350
1350
|
createdAt: string;
|
|
1351
1351
|
updatedAt: string;
|
|
1352
1352
|
}
|
|
1353
|
+
/**
|
|
1354
|
+
* The MercadoPago account linked to the account stopped working and has to be linked again to receive payments.
|
|
1355
|
+
*/
|
|
1356
|
+
interface MercadopagoDisconnectedAlert {
|
|
1357
|
+
id: string;
|
|
1358
|
+
type: "MERCADOPAGO_DISCONNECTED";
|
|
1359
|
+
payload: Record<string, never>;
|
|
1360
|
+
userId: number;
|
|
1361
|
+
read: boolean;
|
|
1362
|
+
createdAt: string;
|
|
1363
|
+
updatedAt: string;
|
|
1364
|
+
}
|
|
1353
1365
|
interface Messenger {
|
|
1354
1366
|
id: string;
|
|
1355
1367
|
participants: MessengerParticipant[];
|
|
@@ -1497,6 +1509,10 @@ interface OrganizationWebhookDelivery {
|
|
|
1497
1509
|
* The first 500 characters of the body the URL answered, or null when it answered none.
|
|
1498
1510
|
*/
|
|
1499
1511
|
response: string | null;
|
|
1512
|
+
/**
|
|
1513
|
+
* Whether it was a test delivery, requested by the organization, with made-up data.
|
|
1514
|
+
*/
|
|
1515
|
+
test: boolean;
|
|
1500
1516
|
}
|
|
1501
1517
|
interface OrganizationWebhookError {
|
|
1502
1518
|
/**
|
|
@@ -7180,6 +7196,20 @@ interface UsersSortTags {
|
|
|
7180
7196
|
}) | HiddenUser | ClosedUser;
|
|
7181
7197
|
error: ApiErrorOf<"BAD_REQUEST" | "VALIDATION_FAILED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "RATE_LIMITED" | "EMAIL_VERIFICATION_REQUIRED" | "INTERNAL_ERROR"> | ApiErrorOf<"INVALID_PARAMS">;
|
|
7182
7198
|
}
|
|
7199
|
+
/**
|
|
7200
|
+
* POST /users/organizationwebhooks/test
|
|
7201
|
+
*
|
|
7202
|
+
* Send a test delivery to a webhook
|
|
7203
|
+
*/
|
|
7204
|
+
interface UsersTestOrganizationWebhook {
|
|
7205
|
+
request: {
|
|
7206
|
+
body: {
|
|
7207
|
+
event: "channel.message" | "channel.join" | "channel.part" | "channel.ban" | "channel.unban";
|
|
7208
|
+
};
|
|
7209
|
+
};
|
|
7210
|
+
response: OrganizationWebhookDelivery;
|
|
7211
|
+
error: ApiErrorOf<"BAD_REQUEST" | "VALIDATION_FAILED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "RATE_LIMITED" | "EMAIL_VERIFICATION_REQUIRED" | "INTERNAL_ERROR"> | ApiErrorOf<"NOT_ORGANIZATION">;
|
|
7212
|
+
}
|
|
7183
7213
|
/**
|
|
7184
7214
|
* POST /users/orgpoints/transfer
|
|
7185
7215
|
*
|
|
@@ -8465,6 +8495,7 @@ type Endpoints = {
|
|
|
8465
8495
|
searchAdvancedUsers: UsersSearchAdvancedUsers;
|
|
8466
8496
|
searchUsers: UsersSearchUsers;
|
|
8467
8497
|
sortTags: UsersSortTags;
|
|
8498
|
+
testOrganizationWebhook: UsersTestOrganizationWebhook;
|
|
8468
8499
|
transferOrgPoints: UsersTransferOrgPoints;
|
|
8469
8500
|
updateAvatar: UsersUpdateAvatar;
|
|
8470
8501
|
updateCover: UsersUpdateCover;
|
package/dist/index.d.ts
CHANGED
|
@@ -64,7 +64,7 @@ interface AdminCoupon {
|
|
|
64
64
|
createdAt: string;
|
|
65
65
|
updatedAt: string;
|
|
66
66
|
}
|
|
67
|
-
type Alert = CommunityInviteCreatedAlert | ReactionReplyCreatedAlert | ReactionThreadCreatedAlert | FollowCreatedAlert | KnowCreatedAlert | KnowBannedAlert | CommentCreatedAlert | ReactionCommentCreatedAlert | ReactionPublicationCreatedAlert | RelationshipRequestedAlert | RelationshipApprovedAlert | RelationshipRejectedAlert | RelationshipRemovedAlert | SadesAssignmentAlert | SadesTransactionAlert | MessengerApprovedAlert | MessengerRequestedAlert | ChatChannelDeletedAlert | ChannelInvitationCreatedAlert | FeedPublicationReactedAlert | FeedCommentReactedAlert | FeedCommentCreatedAlert | FeedPublicationMentionAlert | FeedPublicationModeratedAlert | CommunitiesThreadMentionAlert | FeedPublicationVoteAlert | RsvpBannedAlert | RsvpCreatedAlert | BankTransactionCreatedAlert | ChatRequestsRefilledAlert | ThreadAwardedAlert | ReplyAwardedAlert | PublicationSingleUnlockedAlert | PublicationCrowdUnlockedAlert | TagExpiredAlert | EventInviteAlert | EnrollmentApprovedAlert | TagsGiftedAlert | OrgPointsTransferredAlert | VideoProcessingCompleteAlert | VideoProcessingFailedAlert | BugReportRejectedAlert | BugReportResolvedAlert | ChatterScoreStateChangedAlert | AnnouncementAlert | SubscriptionRenewalFailedAlert | OrgWebhookPausedAlert;
|
|
67
|
+
type Alert = CommunityInviteCreatedAlert | ReactionReplyCreatedAlert | ReactionThreadCreatedAlert | FollowCreatedAlert | KnowCreatedAlert | KnowBannedAlert | CommentCreatedAlert | ReactionCommentCreatedAlert | ReactionPublicationCreatedAlert | RelationshipRequestedAlert | RelationshipApprovedAlert | RelationshipRejectedAlert | RelationshipRemovedAlert | SadesAssignmentAlert | SadesTransactionAlert | MessengerApprovedAlert | MessengerRequestedAlert | ChatChannelDeletedAlert | ChannelInvitationCreatedAlert | FeedPublicationReactedAlert | FeedCommentReactedAlert | FeedCommentCreatedAlert | FeedPublicationMentionAlert | FeedPublicationModeratedAlert | CommunitiesThreadMentionAlert | FeedPublicationVoteAlert | RsvpBannedAlert | RsvpCreatedAlert | BankTransactionCreatedAlert | ChatRequestsRefilledAlert | ThreadAwardedAlert | ReplyAwardedAlert | PublicationSingleUnlockedAlert | PublicationCrowdUnlockedAlert | TagExpiredAlert | EventInviteAlert | EnrollmentApprovedAlert | TagsGiftedAlert | OrgPointsTransferredAlert | VideoProcessingCompleteAlert | VideoProcessingFailedAlert | BugReportRejectedAlert | BugReportResolvedAlert | ChatterScoreStateChangedAlert | AnnouncementAlert | SubscriptionRenewalFailedAlert | OrgWebhookPausedAlert | MercadopagoDisconnectedAlert;
|
|
68
68
|
interface AlertComment {
|
|
69
69
|
id: string;
|
|
70
70
|
content?: string;
|
|
@@ -1350,6 +1350,18 @@ interface Membership {
|
|
|
1350
1350
|
createdAt: string;
|
|
1351
1351
|
updatedAt: string;
|
|
1352
1352
|
}
|
|
1353
|
+
/**
|
|
1354
|
+
* The MercadoPago account linked to the account stopped working and has to be linked again to receive payments.
|
|
1355
|
+
*/
|
|
1356
|
+
interface MercadopagoDisconnectedAlert {
|
|
1357
|
+
id: string;
|
|
1358
|
+
type: "MERCADOPAGO_DISCONNECTED";
|
|
1359
|
+
payload: Record<string, never>;
|
|
1360
|
+
userId: number;
|
|
1361
|
+
read: boolean;
|
|
1362
|
+
createdAt: string;
|
|
1363
|
+
updatedAt: string;
|
|
1364
|
+
}
|
|
1353
1365
|
interface Messenger {
|
|
1354
1366
|
id: string;
|
|
1355
1367
|
participants: MessengerParticipant[];
|
|
@@ -1497,6 +1509,10 @@ interface OrganizationWebhookDelivery {
|
|
|
1497
1509
|
* The first 500 characters of the body the URL answered, or null when it answered none.
|
|
1498
1510
|
*/
|
|
1499
1511
|
response: string | null;
|
|
1512
|
+
/**
|
|
1513
|
+
* Whether it was a test delivery, requested by the organization, with made-up data.
|
|
1514
|
+
*/
|
|
1515
|
+
test: boolean;
|
|
1500
1516
|
}
|
|
1501
1517
|
interface OrganizationWebhookError {
|
|
1502
1518
|
/**
|
|
@@ -7180,6 +7196,20 @@ interface UsersSortTags {
|
|
|
7180
7196
|
}) | HiddenUser | ClosedUser;
|
|
7181
7197
|
error: ApiErrorOf<"BAD_REQUEST" | "VALIDATION_FAILED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "RATE_LIMITED" | "EMAIL_VERIFICATION_REQUIRED" | "INTERNAL_ERROR"> | ApiErrorOf<"INVALID_PARAMS">;
|
|
7182
7198
|
}
|
|
7199
|
+
/**
|
|
7200
|
+
* POST /users/organizationwebhooks/test
|
|
7201
|
+
*
|
|
7202
|
+
* Send a test delivery to a webhook
|
|
7203
|
+
*/
|
|
7204
|
+
interface UsersTestOrganizationWebhook {
|
|
7205
|
+
request: {
|
|
7206
|
+
body: {
|
|
7207
|
+
event: "channel.message" | "channel.join" | "channel.part" | "channel.ban" | "channel.unban";
|
|
7208
|
+
};
|
|
7209
|
+
};
|
|
7210
|
+
response: OrganizationWebhookDelivery;
|
|
7211
|
+
error: ApiErrorOf<"BAD_REQUEST" | "VALIDATION_FAILED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "RATE_LIMITED" | "EMAIL_VERIFICATION_REQUIRED" | "INTERNAL_ERROR"> | ApiErrorOf<"NOT_ORGANIZATION">;
|
|
7212
|
+
}
|
|
7183
7213
|
/**
|
|
7184
7214
|
* POST /users/orgpoints/transfer
|
|
7185
7215
|
*
|
|
@@ -8465,6 +8495,7 @@ type Endpoints = {
|
|
|
8465
8495
|
searchAdvancedUsers: UsersSearchAdvancedUsers;
|
|
8466
8496
|
searchUsers: UsersSearchUsers;
|
|
8467
8497
|
sortTags: UsersSortTags;
|
|
8498
|
+
testOrganizationWebhook: UsersTestOrganizationWebhook;
|
|
8468
8499
|
transferOrgPoints: UsersTransferOrgPoints;
|
|
8469
8500
|
updateAvatar: UsersUpdateAvatar;
|
|
8470
8501
|
updateCover: UsersUpdateCover;
|
package/dist/index.js
CHANGED
|
@@ -322,6 +322,7 @@ var routes = {
|
|
|
322
322
|
searchAdvancedUsers: { method: "GET", path: "/users/advanced-search" },
|
|
323
323
|
searchUsers: { method: "GET", path: "/users/search/:query" },
|
|
324
324
|
sortTags: { method: "PUT", path: "/users/tags/sort" },
|
|
325
|
+
testOrganizationWebhook: { method: "POST", path: "/users/organizationwebhooks/test" },
|
|
325
326
|
transferOrgPoints: { method: "POST", path: "/users/orgpoints/transfer" },
|
|
326
327
|
updateAvatar: { method: "PUT", path: "/users/avatar" },
|
|
327
328
|
updateCover: { method: "PUT", path: "/users/cover" },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mazmo/sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Typed client for the Mazmo API",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://docs.mazmo.net",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"node": ">=18"
|
|
34
34
|
},
|
|
35
35
|
"mazmo": {
|
|
36
|
-
"commit": "
|
|
37
|
-
"apiVersion": "7.7.
|
|
36
|
+
"commit": "554e9a6a719d1ed225aa3b85a6ac2e2dbfd380dd",
|
|
37
|
+
"apiVersion": "7.7.87"
|
|
38
38
|
}
|
|
39
39
|
}
|