@mazmo/sdk 3.1.0 → 4.1.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 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.85 of the Mazmo API.
55
+ Built against version 7.7.96 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;
@@ -187,6 +187,10 @@ interface BankTransactionCreatedAlert {
187
187
  createdAt: string;
188
188
  updatedAt: string;
189
189
  }
190
+ interface BirthdateCorrection {
191
+ at: string;
192
+ reason: "underage-at-signup" | "import-placeholder";
193
+ }
190
194
  /**
191
195
  * A bug the account reported was rejected.
192
196
  */
@@ -1350,6 +1354,18 @@ interface Membership {
1350
1354
  createdAt: string;
1351
1355
  updatedAt: string;
1352
1356
  }
1357
+ /**
1358
+ * The MercadoPago account linked to the account stopped working and has to be linked again to receive payments.
1359
+ */
1360
+ interface MercadopagoDisconnectedAlert {
1361
+ id: string;
1362
+ type: "MERCADOPAGO_DISCONNECTED";
1363
+ payload: Record<string, never>;
1364
+ userId: number;
1365
+ read: boolean;
1366
+ createdAt: string;
1367
+ updatedAt: string;
1368
+ }
1353
1369
  interface Messenger {
1354
1370
  id: string;
1355
1371
  participants: MessengerParticipant[];
@@ -1497,6 +1513,10 @@ interface OrganizationWebhookDelivery {
1497
1513
  * The first 500 characters of the body the URL answered, or null when it answered none.
1498
1514
  */
1499
1515
  response: string | null;
1516
+ /**
1517
+ * Whether it was a test delivery, requested by the organization, with made-up data.
1518
+ */
1519
+ test: boolean;
1500
1520
  }
1501
1521
  interface OrganizationWebhookError {
1502
1522
  /**
@@ -2287,6 +2307,10 @@ interface SignedInUser {
2287
2307
  lastActivity: string | null;
2288
2308
  lastContentCreatorActivity: string | null;
2289
2309
  legal: LegalAcceptance;
2310
+ /**
2311
+ * Present when Mazmo changed the birthdate of the account and the account has not acknowledged it yet: when, and why.
2312
+ */
2313
+ birthdateCorrection?: BirthdateCorrection;
2290
2314
  };
2291
2315
  canReportPublications: boolean;
2292
2316
  checklist: {
@@ -5909,6 +5933,10 @@ interface UsersAddOrganizationAdmin {
5909
5933
  lastActivity: string | null;
5910
5934
  lastContentCreatorActivity: string | null;
5911
5935
  legal: LegalAcceptance;
5936
+ /**
5937
+ * Present when Mazmo changed the birthdate of the account and the account has not acknowledged it yet: when, and why.
5938
+ */
5939
+ birthdateCorrection?: BirthdateCorrection;
5912
5940
  };
5913
5941
  canReportPublications: boolean;
5914
5942
  checklist: {
@@ -6028,6 +6056,10 @@ interface UsersAddTag {
6028
6056
  lastActivity: string | null;
6029
6057
  lastContentCreatorActivity: string | null;
6030
6058
  legal: LegalAcceptance;
6059
+ /**
6060
+ * Present when Mazmo changed the birthdate of the account and the account has not acknowledged it yet: when, and why.
6061
+ */
6062
+ birthdateCorrection?: BirthdateCorrection;
6031
6063
  };
6032
6064
  canReportPublications: boolean;
6033
6065
  checklist: {
@@ -6744,6 +6776,10 @@ interface UsersRemoveOrganizationAdmin {
6744
6776
  lastActivity: string | null;
6745
6777
  lastContentCreatorActivity: string | null;
6746
6778
  legal: LegalAcceptance;
6779
+ /**
6780
+ * Present when Mazmo changed the birthdate of the account and the account has not acknowledged it yet: when, and why.
6781
+ */
6782
+ birthdateCorrection?: BirthdateCorrection;
6747
6783
  };
6748
6784
  canReportPublications: boolean;
6749
6785
  checklist: {
@@ -6877,6 +6913,10 @@ interface UsersRemoveTag {
6877
6913
  lastActivity: string | null;
6878
6914
  lastContentCreatorActivity: string | null;
6879
6915
  legal: LegalAcceptance;
6916
+ /**
6917
+ * Present when Mazmo changed the birthdate of the account and the account has not acknowledged it yet: when, and why.
6918
+ */
6919
+ birthdateCorrection?: BirthdateCorrection;
6880
6920
  };
6881
6921
  canReportPublications: boolean;
6882
6922
  checklist: {
@@ -7153,6 +7193,10 @@ interface UsersSortTags {
7153
7193
  lastActivity: string | null;
7154
7194
  lastContentCreatorActivity: string | null;
7155
7195
  legal: LegalAcceptance;
7196
+ /**
7197
+ * Present when Mazmo changed the birthdate of the account and the account has not acknowledged it yet: when, and why.
7198
+ */
7199
+ birthdateCorrection?: BirthdateCorrection;
7156
7200
  };
7157
7201
  canReportPublications: boolean;
7158
7202
  checklist: {
@@ -7180,6 +7224,20 @@ interface UsersSortTags {
7180
7224
  }) | HiddenUser | ClosedUser;
7181
7225
  error: ApiErrorOf<"BAD_REQUEST" | "VALIDATION_FAILED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "RATE_LIMITED" | "EMAIL_VERIFICATION_REQUIRED" | "INTERNAL_ERROR"> | ApiErrorOf<"INVALID_PARAMS">;
7182
7226
  }
7227
+ /**
7228
+ * POST /users/organizationwebhooks/test
7229
+ *
7230
+ * Send a test delivery to a webhook
7231
+ */
7232
+ interface UsersTestOrganizationWebhook {
7233
+ request: {
7234
+ body: {
7235
+ event: "channel.message" | "channel.join" | "channel.part" | "channel.ban" | "channel.unban";
7236
+ };
7237
+ };
7238
+ response: OrganizationWebhookDelivery;
7239
+ error: ApiErrorOf<"BAD_REQUEST" | "VALIDATION_FAILED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "RATE_LIMITED" | "EMAIL_VERIFICATION_REQUIRED" | "INTERNAL_ERROR"> | ApiErrorOf<"NOT_ORGANIZATION">;
7240
+ }
7183
7241
  /**
7184
7242
  * POST /users/orgpoints/transfer
7185
7243
  *
@@ -7289,6 +7347,10 @@ interface UsersUpdateAvatar {
7289
7347
  lastActivity: string | null;
7290
7348
  lastContentCreatorActivity: string | null;
7291
7349
  legal: LegalAcceptance;
7350
+ /**
7351
+ * Present when Mazmo changed the birthdate of the account and the account has not acknowledged it yet: when, and why.
7352
+ */
7353
+ birthdateCorrection?: BirthdateCorrection;
7292
7354
  };
7293
7355
  canReportPublications: boolean;
7294
7356
  checklist: {
@@ -7404,6 +7466,10 @@ interface UsersUpdateCover {
7404
7466
  lastActivity: string | null;
7405
7467
  lastContentCreatorActivity: string | null;
7406
7468
  legal: LegalAcceptance;
7469
+ /**
7470
+ * Present when Mazmo changed the birthdate of the account and the account has not acknowledged it yet: when, and why.
7471
+ */
7472
+ birthdateCorrection?: BirthdateCorrection;
7407
7473
  };
7408
7474
  canReportPublications: boolean;
7409
7475
  checklist: {
@@ -7526,6 +7592,10 @@ interface UsersUpdateExcludeFromAdvancedSearch {
7526
7592
  lastActivity: string | null;
7527
7593
  lastContentCreatorActivity: string | null;
7528
7594
  legal: LegalAcceptance;
7595
+ /**
7596
+ * Present when Mazmo changed the birthdate of the account and the account has not acknowledged it yet: when, and why.
7597
+ */
7598
+ birthdateCorrection?: BirthdateCorrection;
7529
7599
  };
7530
7600
  canReportPublications: boolean;
7531
7601
  checklist: {
@@ -7647,6 +7717,10 @@ interface UsersUpdateFollowPublicationOnComment {
7647
7717
  lastActivity: string | null;
7648
7718
  lastContentCreatorActivity: string | null;
7649
7719
  legal: LegalAcceptance;
7720
+ /**
7721
+ * Present when Mazmo changed the birthdate of the account and the account has not acknowledged it yet: when, and why.
7722
+ */
7723
+ birthdateCorrection?: BirthdateCorrection;
7650
7724
  };
7651
7725
  canReportPublications: boolean;
7652
7726
  checklist: {
@@ -7787,6 +7861,10 @@ interface UsersUpdateMe {
7787
7861
  lastActivity: string | null;
7788
7862
  lastContentCreatorActivity: string | null;
7789
7863
  legal: LegalAcceptance;
7864
+ /**
7865
+ * Present when Mazmo changed the birthdate of the account and the account has not acknowledged it yet: when, and why.
7866
+ */
7867
+ birthdateCorrection?: BirthdateCorrection;
7790
7868
  };
7791
7869
  canReportPublications: boolean;
7792
7870
  checklist: {
@@ -7908,6 +7986,10 @@ interface UsersUpdateOrganization {
7908
7986
  lastActivity: string | null;
7909
7987
  lastContentCreatorActivity: string | null;
7910
7988
  legal: LegalAcceptance;
7989
+ /**
7990
+ * Present when Mazmo changed the birthdate of the account and the account has not acknowledged it yet: when, and why.
7991
+ */
7992
+ birthdateCorrection?: BirthdateCorrection;
7911
7993
  };
7912
7994
  canReportPublications: boolean;
7913
7995
  checklist: {
@@ -8070,6 +8152,10 @@ interface UsersUpdateProfile {
8070
8152
  lastActivity: string | null;
8071
8153
  lastContentCreatorActivity: string | null;
8072
8154
  legal: LegalAcceptance;
8155
+ /**
8156
+ * Present when Mazmo changed the birthdate of the account and the account has not acknowledged it yet: when, and why.
8157
+ */
8158
+ birthdateCorrection?: BirthdateCorrection;
8073
8159
  };
8074
8160
  canReportPublications: boolean;
8075
8161
  checklist: {
@@ -8095,7 +8181,7 @@ interface UsersUpdateProfile {
8095
8181
  initial: Onboarding;
8096
8182
  };
8097
8183
  }) | HiddenUser | ClosedUser;
8098
- error: ApiErrorOf<"BAD_REQUEST" | "VALIDATION_FAILED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "RATE_LIMITED" | "EMAIL_VERIFICATION_REQUIRED" | "INTERNAL_ERROR">;
8184
+ error: ApiErrorOf<"BAD_REQUEST" | "VALIDATION_FAILED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "RATE_LIMITED" | "EMAIL_VERIFICATION_REQUIRED" | "INTERNAL_ERROR"> | ApiErrorOf<"INVALID_PARAMS"> | ApiErrorOf<"UNDERAGE_AT_SIGNUP">;
8099
8185
  }
8100
8186
  /**
8101
8187
  * PUT /users/starMode
@@ -8189,6 +8275,10 @@ interface UsersUpdateStarMode {
8189
8275
  lastActivity: string | null;
8190
8276
  lastContentCreatorActivity: string | null;
8191
8277
  legal: LegalAcceptance;
8278
+ /**
8279
+ * Present when Mazmo changed the birthdate of the account and the account has not acknowledged it yet: when, and why.
8280
+ */
8281
+ birthdateCorrection?: BirthdateCorrection;
8192
8282
  };
8193
8283
  canReportPublications: boolean;
8194
8284
  checklist: {
@@ -8465,6 +8555,7 @@ type Endpoints = {
8465
8555
  searchAdvancedUsers: UsersSearchAdvancedUsers;
8466
8556
  searchUsers: UsersSearchUsers;
8467
8557
  sortTags: UsersSortTags;
8558
+ testOrganizationWebhook: UsersTestOrganizationWebhook;
8468
8559
  transferOrgPoints: UsersTransferOrgPoints;
8469
8560
  updateAvatar: UsersUpdateAvatar;
8470
8561
  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;
@@ -187,6 +187,10 @@ interface BankTransactionCreatedAlert {
187
187
  createdAt: string;
188
188
  updatedAt: string;
189
189
  }
190
+ interface BirthdateCorrection {
191
+ at: string;
192
+ reason: "underage-at-signup" | "import-placeholder";
193
+ }
190
194
  /**
191
195
  * A bug the account reported was rejected.
192
196
  */
@@ -1350,6 +1354,18 @@ interface Membership {
1350
1354
  createdAt: string;
1351
1355
  updatedAt: string;
1352
1356
  }
1357
+ /**
1358
+ * The MercadoPago account linked to the account stopped working and has to be linked again to receive payments.
1359
+ */
1360
+ interface MercadopagoDisconnectedAlert {
1361
+ id: string;
1362
+ type: "MERCADOPAGO_DISCONNECTED";
1363
+ payload: Record<string, never>;
1364
+ userId: number;
1365
+ read: boolean;
1366
+ createdAt: string;
1367
+ updatedAt: string;
1368
+ }
1353
1369
  interface Messenger {
1354
1370
  id: string;
1355
1371
  participants: MessengerParticipant[];
@@ -1497,6 +1513,10 @@ interface OrganizationWebhookDelivery {
1497
1513
  * The first 500 characters of the body the URL answered, or null when it answered none.
1498
1514
  */
1499
1515
  response: string | null;
1516
+ /**
1517
+ * Whether it was a test delivery, requested by the organization, with made-up data.
1518
+ */
1519
+ test: boolean;
1500
1520
  }
1501
1521
  interface OrganizationWebhookError {
1502
1522
  /**
@@ -2287,6 +2307,10 @@ interface SignedInUser {
2287
2307
  lastActivity: string | null;
2288
2308
  lastContentCreatorActivity: string | null;
2289
2309
  legal: LegalAcceptance;
2310
+ /**
2311
+ * Present when Mazmo changed the birthdate of the account and the account has not acknowledged it yet: when, and why.
2312
+ */
2313
+ birthdateCorrection?: BirthdateCorrection;
2290
2314
  };
2291
2315
  canReportPublications: boolean;
2292
2316
  checklist: {
@@ -5909,6 +5933,10 @@ interface UsersAddOrganizationAdmin {
5909
5933
  lastActivity: string | null;
5910
5934
  lastContentCreatorActivity: string | null;
5911
5935
  legal: LegalAcceptance;
5936
+ /**
5937
+ * Present when Mazmo changed the birthdate of the account and the account has not acknowledged it yet: when, and why.
5938
+ */
5939
+ birthdateCorrection?: BirthdateCorrection;
5912
5940
  };
5913
5941
  canReportPublications: boolean;
5914
5942
  checklist: {
@@ -6028,6 +6056,10 @@ interface UsersAddTag {
6028
6056
  lastActivity: string | null;
6029
6057
  lastContentCreatorActivity: string | null;
6030
6058
  legal: LegalAcceptance;
6059
+ /**
6060
+ * Present when Mazmo changed the birthdate of the account and the account has not acknowledged it yet: when, and why.
6061
+ */
6062
+ birthdateCorrection?: BirthdateCorrection;
6031
6063
  };
6032
6064
  canReportPublications: boolean;
6033
6065
  checklist: {
@@ -6744,6 +6776,10 @@ interface UsersRemoveOrganizationAdmin {
6744
6776
  lastActivity: string | null;
6745
6777
  lastContentCreatorActivity: string | null;
6746
6778
  legal: LegalAcceptance;
6779
+ /**
6780
+ * Present when Mazmo changed the birthdate of the account and the account has not acknowledged it yet: when, and why.
6781
+ */
6782
+ birthdateCorrection?: BirthdateCorrection;
6747
6783
  };
6748
6784
  canReportPublications: boolean;
6749
6785
  checklist: {
@@ -6877,6 +6913,10 @@ interface UsersRemoveTag {
6877
6913
  lastActivity: string | null;
6878
6914
  lastContentCreatorActivity: string | null;
6879
6915
  legal: LegalAcceptance;
6916
+ /**
6917
+ * Present when Mazmo changed the birthdate of the account and the account has not acknowledged it yet: when, and why.
6918
+ */
6919
+ birthdateCorrection?: BirthdateCorrection;
6880
6920
  };
6881
6921
  canReportPublications: boolean;
6882
6922
  checklist: {
@@ -7153,6 +7193,10 @@ interface UsersSortTags {
7153
7193
  lastActivity: string | null;
7154
7194
  lastContentCreatorActivity: string | null;
7155
7195
  legal: LegalAcceptance;
7196
+ /**
7197
+ * Present when Mazmo changed the birthdate of the account and the account has not acknowledged it yet: when, and why.
7198
+ */
7199
+ birthdateCorrection?: BirthdateCorrection;
7156
7200
  };
7157
7201
  canReportPublications: boolean;
7158
7202
  checklist: {
@@ -7180,6 +7224,20 @@ interface UsersSortTags {
7180
7224
  }) | HiddenUser | ClosedUser;
7181
7225
  error: ApiErrorOf<"BAD_REQUEST" | "VALIDATION_FAILED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "RATE_LIMITED" | "EMAIL_VERIFICATION_REQUIRED" | "INTERNAL_ERROR"> | ApiErrorOf<"INVALID_PARAMS">;
7182
7226
  }
7227
+ /**
7228
+ * POST /users/organizationwebhooks/test
7229
+ *
7230
+ * Send a test delivery to a webhook
7231
+ */
7232
+ interface UsersTestOrganizationWebhook {
7233
+ request: {
7234
+ body: {
7235
+ event: "channel.message" | "channel.join" | "channel.part" | "channel.ban" | "channel.unban";
7236
+ };
7237
+ };
7238
+ response: OrganizationWebhookDelivery;
7239
+ error: ApiErrorOf<"BAD_REQUEST" | "VALIDATION_FAILED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "RATE_LIMITED" | "EMAIL_VERIFICATION_REQUIRED" | "INTERNAL_ERROR"> | ApiErrorOf<"NOT_ORGANIZATION">;
7240
+ }
7183
7241
  /**
7184
7242
  * POST /users/orgpoints/transfer
7185
7243
  *
@@ -7289,6 +7347,10 @@ interface UsersUpdateAvatar {
7289
7347
  lastActivity: string | null;
7290
7348
  lastContentCreatorActivity: string | null;
7291
7349
  legal: LegalAcceptance;
7350
+ /**
7351
+ * Present when Mazmo changed the birthdate of the account and the account has not acknowledged it yet: when, and why.
7352
+ */
7353
+ birthdateCorrection?: BirthdateCorrection;
7292
7354
  };
7293
7355
  canReportPublications: boolean;
7294
7356
  checklist: {
@@ -7404,6 +7466,10 @@ interface UsersUpdateCover {
7404
7466
  lastActivity: string | null;
7405
7467
  lastContentCreatorActivity: string | null;
7406
7468
  legal: LegalAcceptance;
7469
+ /**
7470
+ * Present when Mazmo changed the birthdate of the account and the account has not acknowledged it yet: when, and why.
7471
+ */
7472
+ birthdateCorrection?: BirthdateCorrection;
7407
7473
  };
7408
7474
  canReportPublications: boolean;
7409
7475
  checklist: {
@@ -7526,6 +7592,10 @@ interface UsersUpdateExcludeFromAdvancedSearch {
7526
7592
  lastActivity: string | null;
7527
7593
  lastContentCreatorActivity: string | null;
7528
7594
  legal: LegalAcceptance;
7595
+ /**
7596
+ * Present when Mazmo changed the birthdate of the account and the account has not acknowledged it yet: when, and why.
7597
+ */
7598
+ birthdateCorrection?: BirthdateCorrection;
7529
7599
  };
7530
7600
  canReportPublications: boolean;
7531
7601
  checklist: {
@@ -7647,6 +7717,10 @@ interface UsersUpdateFollowPublicationOnComment {
7647
7717
  lastActivity: string | null;
7648
7718
  lastContentCreatorActivity: string | null;
7649
7719
  legal: LegalAcceptance;
7720
+ /**
7721
+ * Present when Mazmo changed the birthdate of the account and the account has not acknowledged it yet: when, and why.
7722
+ */
7723
+ birthdateCorrection?: BirthdateCorrection;
7650
7724
  };
7651
7725
  canReportPublications: boolean;
7652
7726
  checklist: {
@@ -7787,6 +7861,10 @@ interface UsersUpdateMe {
7787
7861
  lastActivity: string | null;
7788
7862
  lastContentCreatorActivity: string | null;
7789
7863
  legal: LegalAcceptance;
7864
+ /**
7865
+ * Present when Mazmo changed the birthdate of the account and the account has not acknowledged it yet: when, and why.
7866
+ */
7867
+ birthdateCorrection?: BirthdateCorrection;
7790
7868
  };
7791
7869
  canReportPublications: boolean;
7792
7870
  checklist: {
@@ -7908,6 +7986,10 @@ interface UsersUpdateOrganization {
7908
7986
  lastActivity: string | null;
7909
7987
  lastContentCreatorActivity: string | null;
7910
7988
  legal: LegalAcceptance;
7989
+ /**
7990
+ * Present when Mazmo changed the birthdate of the account and the account has not acknowledged it yet: when, and why.
7991
+ */
7992
+ birthdateCorrection?: BirthdateCorrection;
7911
7993
  };
7912
7994
  canReportPublications: boolean;
7913
7995
  checklist: {
@@ -8070,6 +8152,10 @@ interface UsersUpdateProfile {
8070
8152
  lastActivity: string | null;
8071
8153
  lastContentCreatorActivity: string | null;
8072
8154
  legal: LegalAcceptance;
8155
+ /**
8156
+ * Present when Mazmo changed the birthdate of the account and the account has not acknowledged it yet: when, and why.
8157
+ */
8158
+ birthdateCorrection?: BirthdateCorrection;
8073
8159
  };
8074
8160
  canReportPublications: boolean;
8075
8161
  checklist: {
@@ -8095,7 +8181,7 @@ interface UsersUpdateProfile {
8095
8181
  initial: Onboarding;
8096
8182
  };
8097
8183
  }) | HiddenUser | ClosedUser;
8098
- error: ApiErrorOf<"BAD_REQUEST" | "VALIDATION_FAILED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "RATE_LIMITED" | "EMAIL_VERIFICATION_REQUIRED" | "INTERNAL_ERROR">;
8184
+ error: ApiErrorOf<"BAD_REQUEST" | "VALIDATION_FAILED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "RATE_LIMITED" | "EMAIL_VERIFICATION_REQUIRED" | "INTERNAL_ERROR"> | ApiErrorOf<"INVALID_PARAMS"> | ApiErrorOf<"UNDERAGE_AT_SIGNUP">;
8099
8185
  }
8100
8186
  /**
8101
8187
  * PUT /users/starMode
@@ -8189,6 +8275,10 @@ interface UsersUpdateStarMode {
8189
8275
  lastActivity: string | null;
8190
8276
  lastContentCreatorActivity: string | null;
8191
8277
  legal: LegalAcceptance;
8278
+ /**
8279
+ * Present when Mazmo changed the birthdate of the account and the account has not acknowledged it yet: when, and why.
8280
+ */
8281
+ birthdateCorrection?: BirthdateCorrection;
8192
8282
  };
8193
8283
  canReportPublications: boolean;
8194
8284
  checklist: {
@@ -8465,6 +8555,7 @@ type Endpoints = {
8465
8555
  searchAdvancedUsers: UsersSearchAdvancedUsers;
8466
8556
  searchUsers: UsersSearchUsers;
8467
8557
  sortTags: UsersSortTags;
8558
+ testOrganizationWebhook: UsersTestOrganizationWebhook;
8468
8559
  transferOrgPoints: UsersTransferOrgPoints;
8469
8560
  updateAvatar: UsersUpdateAvatar;
8470
8561
  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.1.0",
3
+ "version": "4.1.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": "2a14e9bf74372e764d5bdab5cb2fea41c5d7a144",
37
- "apiVersion": "7.7.85"
36
+ "commit": "42bef6e8a7d3bfbcb6fc0c75049fa3f31338fb31",
37
+ "apiVersion": "7.7.96"
38
38
  }
39
39
  }