Skip to content

Commit 8cbe31c

Browse files
authored
Merge pull request #16 from GetStream/FEEDS-852
sdk update
2 parents 465564a + 476b658 commit 8cbe31c

7 files changed

Lines changed: 18 additions & 4 deletions

File tree

src/GeneratedModels/ActivityResponse.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ public function __construct(
6868
/** @var array<Attachment>|null Media attachments for the activity */
6969
#[ArrayOf(Attachment::class)]
7070
public ?array $attachments = null, // Media attachments for the activity
71-
/** @var array<CommentResponse>|null Comments on this activity */
71+
/** @var array<CommentResponse>|null Latest 5 comments of this activity (comment replies excluded) */
7272
#[ArrayOf(CommentResponse::class)]
73-
public ?array $comments = null, // Comments on this activity
73+
public ?array $comments = null, // Latest 5 comments of this activity (comment replies excluded)
7474
public ?array $feeds = null, // List of feed IDs containing this activity
7575
public ?array $filterTags = null, // Tags for filtering
7676
public ?array $interestTags = null, // Tags for user interests

src/GeneratedModels/FeedResponse.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
/**
77
*
88
*
9+
* @property int $activityCount
910
* @property \DateTime $createdAt
1011
* @property string $description
1112
* @property string $feed
@@ -29,6 +30,7 @@
2930
class FeedResponse extends BaseModel
3031
{
3132
public function __construct(
33+
public ?int $activityCount = null,
3234
public ?\DateTime $createdAt = null, // When the feed was created
3335
public ?string $description = null, // Description of the feed
3436
public ?string $feed = null, // Fully qualified feed ID (group_id:id)

src/GeneratedModels/FeedSuggestionResponse.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
/**
77
*
88
*
9+
* @property int $activityCount
910
* @property \DateTime $createdAt
1011
* @property string $description
1112
* @property string $feed
@@ -32,6 +33,7 @@
3233
class FeedSuggestionResponse extends BaseModel
3334
{
3435
public function __construct(
36+
public ?int $activityCount = null,
3537
public ?\DateTime $createdAt = null, // When the feed was created
3638
public ?string $description = null, // Description of the feed
3739
public ?string $feed = null, // Fully qualified feed ID (group_id:id)

src/GeneratedModels/FollowBatchResponse.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,19 @@
77
*
88
*
99
* @property string $duration
10+
* @property array<FollowResponse> $created
1011
* @property array<FollowResponse> $follows
1112
*/
1213
class FollowBatchResponse extends BaseModel
1314
{
1415
public function __construct(
1516
public ?string $duration = null,
16-
/** @var array<FollowResponse>|null List of created follow relationships */
17+
/** @var array<FollowResponse>|null List of newly created follow relationships */
1718
#[ArrayOf(FollowResponse::class)]
18-
public ?array $follows = null, // List of created follow relationships
19+
public ?array $created = null, // List of newly created follow relationships
20+
/** @var array<FollowResponse>|null List of current follow relationships */
21+
#[ArrayOf(FollowResponse::class)]
22+
public ?array $follows = null, // List of current follow relationships
1923
) {
2024
}
2125

src/GeneratedModels/SearchPayload.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
*
88
*
99
* @property object $filterConditions
10+
* @property bool|null $forceDefaultSearch
1011
* @property int|null $limit
1112
* @property string|null $next
1213
* @property int|null $offset
@@ -19,6 +20,7 @@ class SearchPayload extends BaseModel
1920
{
2021
public function __construct(
2122
public ?object $filterConditions = null, // Channel filter conditions
23+
public ?bool $forceDefaultSearch = null,
2224
public ?int $limit = null, // Number of messages to return
2325
public ?string $next = null, // Pagination parameter. Cannot be used with non-zero offset.
2426
public ?int $offset = null, // Pagination offset. Cannot be used with sort or next.

src/GeneratedModels/SortParam.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@
88
*
99
* @property int|null $direction
1010
* @property string|null $field
11+
* @property string|null $type
1112
*/
1213
class SortParam extends BaseModel
1314
{
1415
public function __construct(
1516
public ?int $direction = null,
1617
public ?string $field = null,
18+
public ?string $type = null,
1719
) {
1820
}
1921

src/GeneratedModels/SortParamRequest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@
88
*
99
* @property int|null $direction
1010
* @property string|null $field
11+
* @property string|null $type
1112
*/
1213
class SortParamRequest extends BaseModel
1314
{
1415
public function __construct(
1516
public ?int $direction = null, // Direction of sorting, 1 for Ascending, -1 for Descending, default is 1
1617
public ?string $field = null, // Name of field to sort by
18+
public ?string $type = null, // Type of field to sort by (default is string)
1719
) {
1820
}
1921

0 commit comments

Comments
 (0)