@productcraft/social 0.3.0 → 0.4.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.d.ts CHANGED
@@ -321,7 +321,7 @@ interface paths {
321
321
  path?: never;
322
322
  cookie?: never;
323
323
  };
324
- /** List the actor's currently-active muted terms. */
324
+ /** List the actor's currently-active muted terms, newest-first. Cursor-paginated (task 008 / G13 — previously an unbounded bare array). */
325
325
  get: operations["MutedTermController_list"];
326
326
  put?: never;
327
327
  /** Add (or refresh) a muted term for the actor. Re-posting the same `term` updates the scope + expires_at. */
@@ -723,7 +723,7 @@ interface paths {
723
723
  get: operations["ConversationController_getById"];
724
724
  put?: never;
725
725
  post?: never;
726
- /** Leave the conversation. Drops the caller's participant row; the conversation is hard-deleted when the last participant leaves. */
726
+ /** Leave the conversation. Drops the caller's participant row; the conversation is hard-deleted when the last participant leaves. Pass the actor via `?actor_id=` (task 008 / G12 — the request body is deprecated). */
727
727
  delete: operations["ConversationController_leave"];
728
728
  options?: never;
729
729
  head?: never;
@@ -794,7 +794,7 @@ interface paths {
794
794
  get?: never;
795
795
  put?: never;
796
796
  post?: never;
797
- /** Soft-delete a message. Reserved to the sender; the row stays so the conversation timeline doesn't orphan replies. Reads return body `"(deleted)"`. */
797
+ /** Soft-delete a message. Reserved to the sender; the row stays so the conversation timeline doesn't orphan replies. Reads return body `"(deleted)"`. Pass the sender via `?actor_id=` (task 008 / G12 — the request body is deprecated). */
798
798
  delete: operations["ConversationController_deleteMessage"];
799
799
  options?: never;
800
800
  head?: never;
@@ -1053,7 +1053,7 @@ interface paths {
1053
1053
  get: operations["ActorListController_getById"];
1054
1054
  put?: never;
1055
1055
  post?: never;
1056
- /** Delete a list. Owner-only. */
1056
+ /** Delete a list. Owner-only. Pass the caller via `?actor_id=` (task 008 / G12 — the request body is deprecated). */
1057
1057
  delete: operations["ActorListController_delete"];
1058
1058
  options?: never;
1059
1059
  head?: never;
@@ -1106,7 +1106,7 @@ interface paths {
1106
1106
  get?: never;
1107
1107
  put?: never;
1108
1108
  post?: never;
1109
- /** Remove a member from a list. Owner-only. Idempotent — 204 either way. */
1109
+ /** Remove a member from a list. Owner-only. Idempotent — 204 either way. Pass the caller via `?actor_id=` (task 008 / G12 — the request body is deprecated). */
1110
1110
  delete: operations["ActorListController_removeMember"];
1111
1111
  options?: never;
1112
1112
  head?: never;
@@ -1165,6 +1165,23 @@ interface paths {
1165
1165
  patch?: never;
1166
1166
  trace?: never;
1167
1167
  };
1168
+ "/v1/communities/{communityId}/posts/impressions": {
1169
+ parameters: {
1170
+ query?: never;
1171
+ header?: never;
1172
+ path?: never;
1173
+ cookie?: never;
1174
+ };
1175
+ get?: never;
1176
+ put?: never;
1177
+ /** Batch-increment impression (`view_count`) counters on a list of posts. Client-side debounced; missing post ids are silently skipped (so a deleted post mid-batch doesn’t fail the rest). Renamed from `POST /posts/views` (task 008 / G14) to disambiguate from the story-side per-post `/posts/:postId/views` route. */
1178
+ post: operations["PostController_recordImpressions"];
1179
+ delete?: never;
1180
+ options?: never;
1181
+ head?: never;
1182
+ patch?: never;
1183
+ trace?: never;
1184
+ };
1168
1185
  "/v1/communities/{communityId}/posts/views": {
1169
1186
  parameters: {
1170
1187
  query?: never;
@@ -1174,8 +1191,11 @@ interface paths {
1174
1191
  };
1175
1192
  get?: never;
1176
1193
  put?: never;
1177
- /** Batch-increment view counts on a list of posts. Client-side debounced; missing post ids are silently skipped (so a deleted post mid-batch doesn’t fail the rest). */
1178
- post: operations["PostController_recordViews"];
1194
+ /**
1195
+ * DEPRECATED — use `POST /posts/impressions`. Batch-increment impression counters. This alias will be removed in a future version.
1196
+ * @deprecated
1197
+ */
1198
+ post: operations["PostController_recordViewsDeprecated"];
1179
1199
  delete?: never;
1180
1200
  options?: never;
1181
1201
  head?: never;
@@ -1218,7 +1238,7 @@ interface paths {
1218
1238
  * @description Visibility-aware: the actor must be allowed to read the post. If they can't, returns 404 (opaque), matching the read-path opacity rule used everywhere else in Social.
1219
1239
  */
1220
1240
  post: operations["BookmarkController_create"];
1221
- /** Remove a bookmark on behalf of an actor. Idempotent — 204 either way. */
1241
+ /** Remove a bookmark on behalf of an actor. Idempotent — 204 either way. Pass the actor via `?actor_id=` (task 008 / G12 — the request body is deprecated). */
1222
1242
  delete: operations["BookmarkController_delete"];
1223
1243
  options?: never;
1224
1244
  head?: never;
@@ -1403,7 +1423,7 @@ interface paths {
1403
1423
  * @description Visibility is inherited from the source. The reposter must be allowed to read the source (else 404). Self-repost 422; private-source repost 422. Bumps `source.repost_count` and the reposter's `post_count`. Fires a `repost` notification to the source author (subject to per-kind preferences from task 021).
1404
1424
  */
1405
1425
  post: operations["RepostController_create"];
1406
- /** Undo my repost of a source post. Idempotent — 204 either way. */
1426
+ /** Undo my repost of a source post. Idempotent — 204 either way. Pass the actor via `?actor_id=` (task 008 / G12 — the request body is deprecated). */
1407
1427
  delete: operations["RepostController_delete"];
1408
1428
  options?: never;
1409
1429
  head?: never;
@@ -1730,7 +1750,7 @@ interface paths {
1730
1750
  path?: never;
1731
1751
  cookie?: never;
1732
1752
  };
1733
- /** List communities in a workspace */
1753
+ /** List communities in a workspace, newest-first. Cursor-paginated as of task 008 / G13 (previously a bare array). */
1734
1754
  get: operations["CommunityController_list"];
1735
1755
  put?: never;
1736
1756
  /** Create an social community. `app_id` is optional — when supplied Social connects the community to an Auth app and refuses if the app belongs to a different workspace (cross-tenant gate) or is already connected. Omit `app_id` for a standalone community (no Auth integration; the customer manages actor identity). Pass an `Idempotency-Key` header to make retries safe. */
@@ -1949,6 +1969,11 @@ interface components {
1949
1969
  updated_at: string;
1950
1970
  };
1951
1971
  ActorEdgeDto: {
1972
+ /**
1973
+ * @description Acting social actor UUID (the one performing the follow / mute / block / restrict). Standardized name (task 008 / G11).
1974
+ * @example aaaaaaaa-0000-0000-0000-000000000001
1975
+ */
1976
+ actor_id?: string;
1952
1977
  /**
1953
1978
  * @description Destination social actor UUID (the one being followed / muted / blocked / restricted).
1954
1979
  * @example aaaaaaaa-0000-0000-0000-000000000002
@@ -1957,10 +1982,11 @@ interface components {
1957
1982
  /** @description Optional free-form payload stored on the edge (e.g. mute reason). */
1958
1983
  payload?: Record<string, never>;
1959
1984
  /**
1960
- * @description Source social actor UUID (the one performing the follow / mute / block / restrict).
1985
+ * @deprecated
1986
+ * @description DEPRECATED alias of `actor_id` (task 008 / G11). Accepted for one more version.
1961
1987
  * @example aaaaaaaa-0000-0000-0000-000000000001
1962
1988
  */
1963
- src_actor_id: string;
1989
+ src_actor_id?: string;
1964
1990
  };
1965
1991
  ActorListListResponseDto: {
1966
1992
  data: components["schemas"]["ActorListResponseDto"][];
@@ -2105,6 +2131,8 @@ interface components {
2105
2131
  ActorSearchResponseDto: {
2106
2132
  /** @description Up to `limit` (default 20, max 50) ranked hits. Not paginated in v1; results are bounded by `limit`. */
2107
2133
  data: components["schemas"]["ActorSearchHitDto"][];
2134
+ /** @description Always `null` — this lane returns a single bounded, ranked page (no cursor in v1). Present for envelope consistency. */
2135
+ pagination: components["schemas"]["PaginationResponseDto"] | null;
2108
2136
  };
2109
2137
  ActorsByExternalBatchResponseDto: {
2110
2138
  /** @description Actors found, in request order (after de-duplication). */
@@ -2524,6 +2552,10 @@ interface components {
2524
2552
  */
2525
2553
  total_posts: number;
2526
2554
  };
2555
+ CommunityListResponseDto: {
2556
+ data: components["schemas"]["CommunityResponseDto"][];
2557
+ pagination: components["schemas"]["PaginationResponseDto"];
2558
+ };
2527
2559
  CommunityRankingSettingsDto: {
2528
2560
  /**
2529
2561
  * @description Ranked-feed candidate window in days — posts older than this are not scored. Strictly positive finite number.
@@ -2832,10 +2864,16 @@ interface components {
2832
2864
  };
2833
2865
  CreateCommentReactionDto: {
2834
2866
  /**
2835
- * @description Reactor actor UUID.
2867
+ * @description Reactor actor UUID. Standardized name (task 008 / G11).
2836
2868
  * @example aaaaaaaa-0000-0000-0000-000000000001
2837
2869
  */
2838
- src_actor_id: string;
2870
+ actor_id?: string;
2871
+ /**
2872
+ * @deprecated
2873
+ * @description DEPRECATED alias of `actor_id` (task 008 / G11).
2874
+ * @example aaaaaaaa-0000-0000-0000-000000000001
2875
+ */
2876
+ src_actor_id?: string;
2839
2877
  /**
2840
2878
  * @description Reaction type (free-form short label, e.g. `like`, `fire`, `heart`).
2841
2879
  * @example like
@@ -2896,10 +2934,16 @@ interface components {
2896
2934
  };
2897
2935
  CreateDirectMessageReactionDto: {
2898
2936
  /**
2899
- * @description The reactor — social actor UUID.
2937
+ * @description The reactor — social actor UUID. Standardized name (task 008 / G11).
2900
2938
  * @example aaaaaaaa-0000-0000-0000-000000000001
2901
2939
  */
2902
- src_actor_id: string;
2940
+ actor_id?: string;
2941
+ /**
2942
+ * @deprecated
2943
+ * @description DEPRECATED alias of `actor_id` (task 008 / G11).
2944
+ * @example aaaaaaaa-0000-0000-0000-000000000001
2945
+ */
2946
+ src_actor_id?: string;
2903
2947
  /**
2904
2948
  * @description Reaction type (emoji or label, 1..64 chars).
2905
2949
  * @example heart
@@ -3031,10 +3075,16 @@ interface components {
3031
3075
  };
3032
3076
  CreateReactionDto: {
3033
3077
  /**
3034
- * @description Reactor — social actor UUID.
3078
+ * @description Reactor — social actor UUID. Standardized name (task 008 / G11).
3035
3079
  * @example aaaaaaaa-0000-0000-0000-000000000001
3036
3080
  */
3037
- src_actor_id: string;
3081
+ actor_id?: string;
3082
+ /**
3083
+ * @deprecated
3084
+ * @description DEPRECATED alias of `actor_id` (task 008 / G11).
3085
+ * @example aaaaaaaa-0000-0000-0000-000000000001
3086
+ */
3087
+ src_actor_id?: string;
3038
3088
  /**
3039
3089
  * @description Reaction type (1..64 chars).
3040
3090
  * @example like
@@ -3146,17 +3196,29 @@ interface components {
3146
3196
  };
3147
3197
  DeleteActorListDto: {
3148
3198
  /**
3149
- * @description Caller — social actor UUID. Must equal the list owner.
3199
+ * @deprecated
3200
+ * @description DEPRECATED — use `?actor_id=`. Caller social actor UUID (must equal the list owner).
3150
3201
  * @example aaaaaaaa-0000-0000-0000-000000000001
3151
3202
  */
3152
- caller_actor_id: string;
3203
+ actor_id?: string;
3204
+ /**
3205
+ * @deprecated
3206
+ * @description DEPRECATED alias of `actor_id` (task 008 / G11).
3207
+ */
3208
+ caller_actor_id?: string;
3153
3209
  };
3154
3210
  DeleteMessageDto: {
3155
3211
  /**
3156
- * @description The sender — must match the message's sender_id.
3212
+ * @deprecated
3213
+ * @description DEPRECATED — use `?actor_id=`. The sender (must match the message's sender_id).
3157
3214
  * @example aaaaaaaa-0000-0000-0000-000000000001
3158
3215
  */
3159
- sender_id: string;
3216
+ actor_id?: string;
3217
+ /**
3218
+ * @deprecated
3219
+ * @description DEPRECATED alias of `actor_id` (task 008 / G11).
3220
+ */
3221
+ sender_id?: string;
3160
3222
  };
3161
3223
  DeliveryJobResponseDto: {
3162
3224
  /**
@@ -3265,6 +3327,14 @@ interface components {
3265
3327
  /** @description Webhook UUID. */
3266
3328
  webhook_id: string;
3267
3329
  };
3330
+ DeprecatedActorIdBodyDto: {
3331
+ /**
3332
+ * @deprecated
3333
+ * @description DEPRECATED — pass the actor via the `?actor_id=` query parameter instead. Accepted from the body for one more version.
3334
+ * @example aaaaaaaa-0000-0000-0000-000000000001
3335
+ */
3336
+ actor_id?: string;
3337
+ };
3268
3338
  DirectMessageAdminListResponseDto: {
3269
3339
  data: components["schemas"]["DirectMessageAdminResponseDto"][];
3270
3340
  pagination: components["schemas"]["PaginationResponseDto"];
@@ -3639,6 +3709,8 @@ interface components {
3639
3709
  };
3640
3710
  HashtagAutocompleteResponseDto: {
3641
3711
  data: components["schemas"]["HashtagResponseDto"][];
3712
+ /** @description Always `null` — autocomplete returns a single bounded, ranked page (no cursor). Present for envelope consistency (task 008 / G13). */
3713
+ pagination: components["schemas"]["PaginationResponseDto"] | null;
3642
3714
  };
3643
3715
  HashtagDetailResponseDto: {
3644
3716
  /**
@@ -3720,10 +3792,11 @@ interface components {
3720
3792
  };
3721
3793
  LeaveConversationDto: {
3722
3794
  /**
3723
- * @description The participant leaving.
3795
+ * @deprecated
3796
+ * @description DEPRECATED — use `?actor_id=`. The participant leaving.
3724
3797
  * @example aaaaaaaa-0000-0000-0000-000000000001
3725
3798
  */
3726
- actor_id: string;
3799
+ actor_id?: string;
3727
3800
  };
3728
3801
  MarkAllReadDto: {
3729
3802
  /**
@@ -3905,6 +3978,10 @@ interface components {
3905
3978
  */
3906
3979
  updated_at: string;
3907
3980
  };
3981
+ MutedTermListResponseDto: {
3982
+ data: components["schemas"]["MutedTermResponseDto"][];
3983
+ pagination: components["schemas"]["PaginationResponseDto"];
3984
+ };
3908
3985
  MutedTermResponseDto: {
3909
3986
  /**
3910
3987
  * @description Owning actor UUID.
@@ -4082,7 +4159,7 @@ interface components {
4082
4159
  };
4083
4160
  PaginationResponseDto: {
4084
4161
  /**
4085
- * @description `true` when at least one more page exists. Mirrors `next_cursor !== null`; published as a separate field so SDKs can drive a `while` loop without parsing the cursor.
4162
+ * @description `true` when at least one more page exists. Mirrors `next_cursor !== null`; published as a separate field so SDKs can drive a `while` loop without parsing the cursor. A short or empty `data` array does NOT imply the end of the list when a lane post-filters — always page until this is `false`.
4086
4163
  * @example true
4087
4164
  */
4088
4165
  has_more: boolean;
@@ -4353,6 +4430,8 @@ interface components {
4353
4430
  PostSearchResponseDto: {
4354
4431
  /** @description Up to `limit` (default 20, max 50) hits. Not paginated in v1. */
4355
4432
  data: components["schemas"]["PostSearchHitDto"][];
4433
+ /** @description Always `null` — this lane returns a single bounded, ranked page (no cursor in v1). Present for envelope consistency. */
4434
+ pagination: components["schemas"]["PaginationResponseDto"] | null;
4356
4435
  };
4357
4436
  PostStateRequestDto: {
4358
4437
  /**
@@ -4467,10 +4546,16 @@ interface components {
4467
4546
  };
4468
4547
  RecordViewDto: {
4469
4548
  /**
4470
- * @description Viewer social actor UUID.
4549
+ * @description Viewer social actor UUID. Standardized name (task 008 / G11).
4471
4550
  * @example aaaaaaaa-0000-0000-0000-000000000002
4472
4551
  */
4473
- viewer_actor_id: string;
4552
+ actor_id?: string;
4553
+ /**
4554
+ * @deprecated
4555
+ * @description DEPRECATED alias of `actor_id` (task 008 / G11).
4556
+ * @example aaaaaaaa-0000-0000-0000-000000000002
4557
+ */
4558
+ viewer_actor_id?: string;
4474
4559
  };
4475
4560
  RecordViewsDto: {
4476
4561
  /**
@@ -4530,17 +4615,29 @@ interface components {
4530
4615
  };
4531
4616
  RemoveListMemberDto: {
4532
4617
  /**
4533
- * @description Caller — social actor UUID. Must equal the list owner.
4618
+ * @deprecated
4619
+ * @description DEPRECATED — use `?actor_id=`. Caller social actor UUID (must equal the list owner).
4534
4620
  * @example aaaaaaaa-0000-0000-0000-000000000001
4535
4621
  */
4536
- caller_actor_id: string;
4622
+ actor_id?: string;
4623
+ /**
4624
+ * @deprecated
4625
+ * @description DEPRECATED alias of `actor_id` (task 008 / G11).
4626
+ */
4627
+ caller_actor_id?: string;
4537
4628
  };
4538
4629
  RemoveMemberDto: {
4539
4630
  /**
4540
- * @description Social actor UUID of the acting party. Equal to the target for self-leave.
4631
+ * @deprecated
4632
+ * @description DEPRECATED — use `?actor_id=`. Acting actor UUID (equal to the target for self-leave).
4541
4633
  * @example aaaaaaaa-0000-0000-0000-000000000001
4542
4634
  */
4543
- caller_actor_id: string;
4635
+ actor_id?: string;
4636
+ /**
4637
+ * @deprecated
4638
+ * @description DEPRECATED alias of `actor_id` (task 008 / G11).
4639
+ */
4640
+ caller_actor_id?: string;
4544
4641
  };
4545
4642
  RenameGroupDto: {
4546
4643
  /**
@@ -4557,6 +4654,11 @@ interface components {
4557
4654
  pagination: components["schemas"]["PaginationResponseDto"];
4558
4655
  };
4559
4656
  SendMessageDto: {
4657
+ /**
4658
+ * @description The sender — social actor UUID. Standardized name (task 008 / G11); the persisted `sender_id` defaults from it.
4659
+ * @example aaaaaaaa-0000-0000-0000-000000000001
4660
+ */
4661
+ actor_id?: string;
4560
4662
  attachments?: components["schemas"]["DirectMessageAttachmentDto"][];
4561
4663
  /**
4562
4664
  * @description Message body. Required when `kind="text"`. 1..10000 chars after trim.
@@ -4571,10 +4673,11 @@ interface components {
4571
4673
  /** @description Threaded inline reply target. */
4572
4674
  reply_to_id?: string | null;
4573
4675
  /**
4574
- * @description The sender — social actor UUID.
4676
+ * @deprecated
4677
+ * @description DEPRECATED alias of `actor_id` (task 008 / G11).
4575
4678
  * @example aaaaaaaa-0000-0000-0000-000000000001
4576
4679
  */
4577
- sender_id: string;
4680
+ sender_id?: string;
4578
4681
  };
4579
4682
  StoryTrayEntryResponse: {
4580
4683
  /**
@@ -4615,6 +4718,8 @@ interface components {
4615
4718
  };
4616
4719
  StoryTrayResponse: {
4617
4720
  data: components["schemas"]["StoryTrayEntryResponse"][];
4721
+ /** @description Always `null` — the tray is a single bounded page (≤200 entries, no cursor in v1). The key is present for envelope consistency with cursor-paginated lists (task 008 / G13). */
4722
+ pagination: components["schemas"]["PaginationResponseDto"] | null;
4618
4723
  };
4619
4724
  StoryViewerResponse: {
4620
4725
  /**
@@ -4664,6 +4769,8 @@ interface components {
4664
4769
  SuggestedFollowsListResponseDto: {
4665
4770
  /** @description Ordered candidates. FoF candidates are returned first (highest count first); cold-start fallbacks fill any remaining slots up to the requested limit. */
4666
4771
  data: components["schemas"]["SuggestedFollowResponseDto"][];
4772
+ /** @description Always `null` — suggestions are a single bounded, scored page (no cursor in v1). Present for envelope consistency (task 008 / G13). */
4773
+ pagination: components["schemas"]["PaginationResponseDto"] | null;
4667
4774
  };
4668
4775
  UnreadCountResponse: {
4669
4776
  /**
@@ -4747,16 +4854,22 @@ interface components {
4747
4854
  role: "member" | "admin";
4748
4855
  };
4749
4856
  UpdateMessageDto: {
4857
+ /**
4858
+ * @description The sender — must match the message's sender_id. Standardized name (task 008 / G11).
4859
+ * @example aaaaaaaa-0000-0000-0000-000000000001
4860
+ */
4861
+ actor_id?: string;
4750
4862
  /**
4751
4863
  * @description Updated body.
4752
4864
  * @example edited
4753
4865
  */
4754
4866
  body: string;
4755
4867
  /**
4756
- * @description The sender — must match the message's sender_id.
4868
+ * @deprecated
4869
+ * @description DEPRECATED alias of `actor_id` (task 008 / G11).
4757
4870
  * @example aaaaaaaa-0000-0000-0000-000000000001
4758
4871
  */
4759
- sender_id: string;
4872
+ sender_id?: string;
4760
4873
  };
4761
4874
  UpdateNotificationDto: {
4762
4875
  /**
@@ -5901,6 +6014,11 @@ interface operations {
5901
6014
  /** @description Cursor from the prior page. */
5902
6015
  cursor?: string;
5903
6016
  /** @description Requester social actor UUID. Without it, only public pinned posts surface. */
6017
+ actor_id?: string;
6018
+ /**
6019
+ * @deprecated
6020
+ * @description DEPRECATED alias of `actor_id` (task 008 / G11).
6021
+ */
5904
6022
  requester_id?: string;
5905
6023
  };
5906
6024
  header?: never;
@@ -5992,7 +6110,12 @@ interface operations {
5992
6110
  };
5993
6111
  MutedTermController_list: {
5994
6112
  parameters: {
5995
- query?: never;
6113
+ query?: {
6114
+ /** @description Page size (default 50, max 200). */
6115
+ limit?: string;
6116
+ /** @description Opaque cursor from a prior page's `pagination.next_cursor`. */
6117
+ cursor?: string;
6118
+ };
5996
6119
  header?: never;
5997
6120
  path: {
5998
6121
  /** @description Social community UUID. */
@@ -6004,13 +6127,13 @@ interface operations {
6004
6127
  };
6005
6128
  requestBody?: never;
6006
6129
  responses: {
6007
- /** @description Active muted terms. */
6130
+ /** @description Active muted terms, paginated. */
6008
6131
  200: {
6009
6132
  headers: {
6010
6133
  [name: string]: unknown;
6011
6134
  };
6012
6135
  content: {
6013
- "application/json": components["schemas"]["MutedTermResponseDto"][];
6136
+ "application/json": components["schemas"]["MutedTermListResponseDto"];
6014
6137
  };
6015
6138
  };
6016
6139
  /** @description PAK lacks `social.list`. */
@@ -7225,7 +7348,10 @@ interface operations {
7225
7348
  };
7226
7349
  ConversationController_leave: {
7227
7350
  parameters: {
7228
- query?: never;
7351
+ query: {
7352
+ /** @description The leaving participant — social actor UUID. */
7353
+ actor_id: string;
7354
+ };
7229
7355
  header?: never;
7230
7356
  path: {
7231
7357
  /** @description Social community UUID. Must belong to the PAK's workspace. */
@@ -7248,6 +7374,15 @@ interface operations {
7248
7374
  };
7249
7375
  content?: never;
7250
7376
  };
7377
+ /** @description Missing/invalid actor_id. */
7378
+ 400: {
7379
+ headers: {
7380
+ [name: string]: unknown;
7381
+ };
7382
+ content: {
7383
+ "application/json": components["schemas"]["ErrorResponseDto"];
7384
+ };
7385
+ };
7251
7386
  /** @description PAK lacks `social.delete`. */
7252
7387
  403: {
7253
7388
  headers: {
@@ -7391,7 +7526,10 @@ interface operations {
7391
7526
  };
7392
7527
  ConversationController_removeMember: {
7393
7528
  parameters: {
7394
- query?: never;
7529
+ query: {
7530
+ /** @description Acting actor UUID (equal to the target for self-leave). */
7531
+ actor_id: string;
7532
+ };
7395
7533
  header?: never;
7396
7534
  path: {
7397
7535
  /** @description Social community UUID. Must belong to the PAK's workspace. */
@@ -7416,6 +7554,15 @@ interface operations {
7416
7554
  };
7417
7555
  content?: never;
7418
7556
  };
7557
+ /** @description Missing/invalid actor_id. */
7558
+ 400: {
7559
+ headers: {
7560
+ [name: string]: unknown;
7561
+ };
7562
+ content: {
7563
+ "application/json": components["schemas"]["ErrorResponseDto"];
7564
+ };
7565
+ };
7419
7566
  /** @description Caller is not an admin and not the target. */
7420
7567
  403: {
7421
7568
  headers: {
@@ -7623,7 +7770,10 @@ interface operations {
7623
7770
  };
7624
7771
  ConversationController_deleteMessage: {
7625
7772
  parameters: {
7626
- query?: never;
7773
+ query: {
7774
+ /** @description The sender — must match the message's sender_id. */
7775
+ actor_id: string;
7776
+ };
7627
7777
  header?: never;
7628
7778
  path: {
7629
7779
  /** @description Social community UUID. Must belong to the PAK's workspace. */
@@ -7648,6 +7798,15 @@ interface operations {
7648
7798
  };
7649
7799
  content?: never;
7650
7800
  };
7801
+ /** @description Missing/invalid actor_id. */
7802
+ 400: {
7803
+ headers: {
7804
+ [name: string]: unknown;
7805
+ };
7806
+ content: {
7807
+ "application/json": components["schemas"]["ErrorResponseDto"];
7808
+ };
7809
+ };
7651
7810
  /** @description Caller is not the sender, or PAK lacks `social.delete`. */
7652
7811
  403: {
7653
7812
  headers: {
@@ -8076,6 +8235,12 @@ interface operations {
8076
8235
  FeedController_getDiscoverFeed: {
8077
8236
  parameters: {
8078
8237
  query?: {
8238
+ /** @description Viewer actor UUID. */
8239
+ actor_id?: string;
8240
+ /**
8241
+ * @deprecated
8242
+ * @description DEPRECATED alias of `actor_id` (task 008 / G11).
8243
+ */
8079
8244
  viewer_actor_id?: string;
8080
8245
  limit?: number;
8081
8246
  /** @description Opaque ranked cursor; encodes (score, id). */
@@ -8514,7 +8679,12 @@ interface operations {
8514
8679
  ActorListController_list: {
8515
8680
  parameters: {
8516
8681
  query?: {
8517
- /** @description Surface the viewer's own private lists alongside the public catalog. */
8682
+ /** @description Viewer actor UUID — surfaces the viewer's own private lists alongside the public catalog. */
8683
+ actor_id?: string;
8684
+ /**
8685
+ * @deprecated
8686
+ * @description DEPRECATED alias of `actor_id` (task 008 / G11).
8687
+ */
8518
8688
  viewer_actor_id?: string;
8519
8689
  /** @description Filter to lists owned by this actor. */
8520
8690
  owner_actor_id?: string;
@@ -8619,7 +8789,12 @@ interface operations {
8619
8789
  ActorListController_getById: {
8620
8790
  parameters: {
8621
8791
  query?: {
8622
- /** @description Required to see a private list (must equal owner). */
8792
+ /** @description Viewer actor UUID — required to see a private list (must equal owner). */
8793
+ actor_id?: string;
8794
+ /**
8795
+ * @deprecated
8796
+ * @description DEPRECATED alias of `actor_id` (task 008 / G11).
8797
+ */
8623
8798
  viewer_actor_id?: string;
8624
8799
  };
8625
8800
  header?: never;
@@ -8664,7 +8839,10 @@ interface operations {
8664
8839
  };
8665
8840
  ActorListController_delete: {
8666
8841
  parameters: {
8667
- query?: never;
8842
+ query: {
8843
+ /** @description Caller social actor UUID (must equal the list owner). */
8844
+ actor_id: string;
8845
+ };
8668
8846
  header?: never;
8669
8847
  path: {
8670
8848
  /** @description Social community UUID. */
@@ -8687,6 +8865,15 @@ interface operations {
8687
8865
  };
8688
8866
  content?: never;
8689
8867
  };
8868
+ /** @description Missing/invalid actor_id. */
8869
+ 400: {
8870
+ headers: {
8871
+ [name: string]: unknown;
8872
+ };
8873
+ content: {
8874
+ "application/json": components["schemas"]["ErrorResponseDto"];
8875
+ };
8876
+ };
8690
8877
  /** @description Caller is not the owner. */
8691
8878
  403: {
8692
8879
  headers: {
@@ -8767,7 +8954,12 @@ interface operations {
8767
8954
  parameters: {
8768
8955
  query: {
8769
8956
  /** @description Viewer — required for visibility checks + block-filter. */
8770
- viewer_actor_id: string;
8957
+ actor_id: string;
8958
+ /**
8959
+ * @deprecated
8960
+ * @description DEPRECATED alias of `actor_id` (task 008 / G11).
8961
+ */
8962
+ viewer_actor_id?: string;
8771
8963
  limit?: number;
8772
8964
  /** @description Opaque cursor; differs in shape between ranked and chronological. */
8773
8965
  cursor?: string;
@@ -8793,7 +8985,7 @@ interface operations {
8793
8985
  "application/json": components["schemas"]["FeedResponseDto"];
8794
8986
  };
8795
8987
  };
8796
- /** @description INVALID_ORDER or INVALID_CURSOR. */
8988
+ /** @description Missing/invalid actor_id, INVALID_ORDER, or INVALID_CURSOR. */
8797
8989
  400: {
8798
8990
  headers: {
8799
8991
  [name: string]: unknown;
@@ -8825,6 +9017,12 @@ interface operations {
8825
9017
  ActorListController_listMembers: {
8826
9018
  parameters: {
8827
9019
  query?: {
9020
+ /** @description Viewer actor UUID. */
9021
+ actor_id?: string;
9022
+ /**
9023
+ * @deprecated
9024
+ * @description DEPRECATED alias of `actor_id` (task 008 / G11).
9025
+ */
8828
9026
  viewer_actor_id?: string;
8829
9027
  limit?: number;
8830
9028
  cursor?: string;
@@ -8927,7 +9125,10 @@ interface operations {
8927
9125
  };
8928
9126
  ActorListController_removeMember: {
8929
9127
  parameters: {
8930
- query?: never;
9128
+ query: {
9129
+ /** @description Caller social actor UUID (must equal the list owner). */
9130
+ actor_id: string;
9131
+ };
8931
9132
  header?: never;
8932
9133
  path: {
8933
9134
  /** @description Social community UUID. */
@@ -8952,6 +9153,15 @@ interface operations {
8952
9153
  };
8953
9154
  content?: never;
8954
9155
  };
9156
+ /** @description Missing/invalid actor_id. */
9157
+ 400: {
9158
+ headers: {
9159
+ [name: string]: unknown;
9160
+ };
9161
+ content: {
9162
+ "application/json": components["schemas"]["ErrorResponseDto"];
9163
+ };
9164
+ };
8955
9165
  /** @description Caller is not the owner. */
8956
9166
  403: {
8957
9167
  headers: {
@@ -9207,7 +9417,49 @@ interface operations {
9207
9417
  };
9208
9418
  };
9209
9419
  };
9210
- PostController_recordViews: {
9420
+ PostController_recordImpressions: {
9421
+ parameters: {
9422
+ query?: never;
9423
+ header?: never;
9424
+ path: {
9425
+ communityId: string;
9426
+ };
9427
+ cookie?: never;
9428
+ };
9429
+ requestBody: {
9430
+ content: {
9431
+ "application/json": components["schemas"]["RecordViewsDto"];
9432
+ };
9433
+ };
9434
+ responses: {
9435
+ /** @description Impressions recorded (or no-op if every id was missing). */
9436
+ 204: {
9437
+ headers: {
9438
+ [name: string]: unknown;
9439
+ };
9440
+ content?: never;
9441
+ };
9442
+ /** @description Empty `post_ids`, more than 200 ids, or a non-UUID in the list. */
9443
+ 400: {
9444
+ headers: {
9445
+ [name: string]: unknown;
9446
+ };
9447
+ content: {
9448
+ "application/json": components["schemas"]["ErrorResponseDto"];
9449
+ };
9450
+ };
9451
+ /** @description PAK lacks `social.view` on the community URN. */
9452
+ 403: {
9453
+ headers: {
9454
+ [name: string]: unknown;
9455
+ };
9456
+ content: {
9457
+ "application/json": components["schemas"]["ErrorResponseDto"];
9458
+ };
9459
+ };
9460
+ };
9461
+ };
9462
+ PostController_recordViewsDeprecated: {
9211
9463
  parameters: {
9212
9464
  query?: never;
9213
9465
  header?: never;
@@ -9222,7 +9474,7 @@ interface operations {
9222
9474
  };
9223
9475
  };
9224
9476
  responses: {
9225
- /** @description Views recorded (or no-op if every id was missing). */
9477
+ /** @description Impressions recorded (or no-op if every id was missing). */
9226
9478
  204: {
9227
9479
  headers: {
9228
9480
  [name: string]: unknown;
@@ -9238,7 +9490,7 @@ interface operations {
9238
9490
  "application/json": components["schemas"]["ErrorResponseDto"];
9239
9491
  };
9240
9492
  };
9241
- /** @description PAK lacks `social.list` on the community URN. */
9493
+ /** @description PAK lacks `social.view` on the community URN. */
9242
9494
  403: {
9243
9495
  headers: {
9244
9496
  [name: string]: unknown;
@@ -9253,6 +9505,11 @@ interface operations {
9253
9505
  parameters: {
9254
9506
  query?: {
9255
9507
  /** @description Social actor UUID of the viewer. Surfaces non-public posts they are entitled to see. */
9508
+ actor_id?: string;
9509
+ /**
9510
+ * @deprecated
9511
+ * @description DEPRECATED alias of `actor_id` (task 008 / G11). Removed in a future version.
9512
+ */
9256
9513
  requester_id?: string;
9257
9514
  };
9258
9515
  header?: never;
@@ -9456,7 +9713,10 @@ interface operations {
9456
9713
  };
9457
9714
  BookmarkController_delete: {
9458
9715
  parameters: {
9459
- query?: never;
9716
+ query: {
9717
+ /** @description Acting actor UUID. */
9718
+ actor_id: string;
9719
+ };
9460
9720
  header?: never;
9461
9721
  path: {
9462
9722
  /** @description Social community UUID. Must belong to the PAK's workspace. */
@@ -9466,9 +9726,9 @@ interface operations {
9466
9726
  };
9467
9727
  cookie?: never;
9468
9728
  };
9469
- requestBody: {
9729
+ requestBody?: {
9470
9730
  content: {
9471
- "application/json": components["schemas"]["CreateBookmarkDto"];
9731
+ "application/json": components["schemas"]["DeprecatedActorIdBodyDto"];
9472
9732
  };
9473
9733
  };
9474
9734
  responses: {
@@ -9479,7 +9739,7 @@ interface operations {
9479
9739
  };
9480
9740
  content?: never;
9481
9741
  };
9482
- /** @description Validation failure. */
9742
+ /** @description Validation failure (missing/invalid actor_id). */
9483
9743
  400: {
9484
9744
  headers: {
9485
9745
  [name: string]: unknown;
@@ -9516,6 +9776,11 @@ interface operations {
9516
9776
  /** @description List replies of this parent comment instead of top-level. */
9517
9777
  parent_id?: string;
9518
9778
  /** @description Viewer actor UUID — surfaces author_only replies they're entitled to see. */
9779
+ actor_id?: string;
9780
+ /**
9781
+ * @deprecated
9782
+ * @description DEPRECATED alias of `actor_id` (task 008 / G11).
9783
+ */
9519
9784
  requester_id?: string;
9520
9785
  };
9521
9786
  header?: never;
@@ -9629,6 +9894,12 @@ interface operations {
9629
9894
  CommentController_getById: {
9630
9895
  parameters: {
9631
9896
  query?: {
9897
+ /** @description Viewer actor UUID. */
9898
+ actor_id?: string;
9899
+ /**
9900
+ * @deprecated
9901
+ * @description DEPRECATED alias of `actor_id` (task 008 / G11).
9902
+ */
9632
9903
  requester_id?: string;
9633
9904
  };
9634
9905
  header?: never;
@@ -10356,7 +10627,10 @@ interface operations {
10356
10627
  };
10357
10628
  RepostController_delete: {
10358
10629
  parameters: {
10359
- query?: never;
10630
+ query: {
10631
+ /** @description Acting actor UUID. */
10632
+ actor_id: string;
10633
+ };
10360
10634
  header?: never;
10361
10635
  path: {
10362
10636
  /** @description Social community UUID. Must belong to the PAK's workspace. */
@@ -10366,9 +10640,9 @@ interface operations {
10366
10640
  };
10367
10641
  cookie?: never;
10368
10642
  };
10369
- requestBody: {
10643
+ requestBody?: {
10370
10644
  content: {
10371
- "application/json": components["schemas"]["CreateRepostDto"];
10645
+ "application/json": components["schemas"]["DeprecatedActorIdBodyDto"];
10372
10646
  };
10373
10647
  };
10374
10648
  responses: {
@@ -10379,7 +10653,7 @@ interface operations {
10379
10653
  };
10380
10654
  content?: never;
10381
10655
  };
10382
- /** @description Validation failure. */
10656
+ /** @description Validation failure (missing/invalid actor_id). */
10383
10657
  400: {
10384
10658
  headers: {
10385
10659
  [name: string]: unknown;
@@ -10503,7 +10777,12 @@ interface operations {
10503
10777
  parameters: {
10504
10778
  query: {
10505
10779
  /** @description Requester social actor UUID — must resolve to the post author. */
10506
- requester_id: string;
10780
+ actor_id: string;
10781
+ /**
10782
+ * @deprecated
10783
+ * @description DEPRECATED alias of `actor_id` (task 008 / G11).
10784
+ */
10785
+ requester_id?: string;
10507
10786
  limit?: number;
10508
10787
  /** @description Cursor from the prior page. */
10509
10788
  cursor?: string;
@@ -10528,6 +10807,15 @@ interface operations {
10528
10807
  "application/json": components["schemas"]["StoryViewersResponse"];
10529
10808
  };
10530
10809
  };
10810
+ /** @description Missing/invalid actor_id (author-only endpoint). */
10811
+ 400: {
10812
+ headers: {
10813
+ [name: string]: unknown;
10814
+ };
10815
+ content: {
10816
+ "application/json": components["schemas"]["ErrorResponseDto"];
10817
+ };
10818
+ };
10531
10819
  /** @description PAK lacks `social.list` OR requester is not the post author. */
10532
10820
  403: {
10533
10821
  headers: {
@@ -10806,6 +11094,11 @@ interface operations {
10806
11094
  /** @description Max hits to return. */
10807
11095
  limit?: number;
10808
11096
  /** @description Viewer social actor UUID — filters out blocked / muted actors. */
11097
+ actor_id?: string;
11098
+ /**
11099
+ * @deprecated
11100
+ * @description DEPRECATED alias of `actor_id` (task 008 / G11).
11101
+ */
10809
11102
  requester_id?: string;
10810
11103
  };
10811
11104
  header?: never;
@@ -10915,6 +11208,12 @@ interface operations {
10915
11208
  q: string;
10916
11209
  limit?: number;
10917
11210
  order?: "relevance" | "recent";
11211
+ /** @description Viewer social actor UUID. */
11212
+ actor_id?: string;
11213
+ /**
11214
+ * @deprecated
11215
+ * @description DEPRECATED alias of `actor_id` (task 008 / G11).
11216
+ */
10918
11217
  requester_id?: string;
10919
11218
  };
10920
11219
  header?: never;
@@ -11377,7 +11676,12 @@ interface operations {
11377
11676
  };
11378
11677
  CommunityController_list: {
11379
11678
  parameters: {
11380
- query?: never;
11679
+ query?: {
11680
+ /** @description Page size (default 50, max 200). */
11681
+ limit?: string;
11682
+ /** @description Opaque cursor from a prior page's `pagination.next_cursor`. */
11683
+ cursor?: string;
11684
+ };
11381
11685
  header?: never;
11382
11686
  path: {
11383
11687
  /** @description ProductCraft workspace UUID owning the community. */
@@ -11387,13 +11691,13 @@ interface operations {
11387
11691
  };
11388
11692
  requestBody?: never;
11389
11693
  responses: {
11390
- /** @description Bare array of communities; not paginated (workspaces have a small handful). */
11694
+ /** @description Paginated communities. */
11391
11695
  200: {
11392
11696
  headers: {
11393
11697
  [name: string]: unknown;
11394
11698
  };
11395
11699
  content: {
11396
- "application/json": components["schemas"]["CommunityResponseDto"][];
11700
+ "application/json": components["schemas"]["CommunityListResponseDto"];
11397
11701
  };
11398
11702
  };
11399
11703
  /** @description Caller lacks `social.list`, or the workspace has not enabled the `social` service. */