@stream-io/node-sdk 0.9.4 → 0.9.6
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/CHANGELOG.md +14 -0
- package/dist/index.cjs.js +87 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +87 -1
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/feeds/FeedsApi.d.ts +16 -1
- package/dist/src/gen/models/index.d.ts +366 -0
- package/package.json +1 -1
- package/src/gen/feeds/FeedsApi.ts +192 -0
- package/src/gen/models/index.ts +396 -0
package/dist/index.es.mjs
CHANGED
|
@@ -4824,7 +4824,7 @@ var ApiClient = class {
|
|
|
4824
4824
|
const headers = {
|
|
4825
4825
|
Authorization: this.apiConfig.token,
|
|
4826
4826
|
"stream-auth-type": "jwt",
|
|
4827
|
-
"X-Stream-Client": "stream-node-0.9.
|
|
4827
|
+
"X-Stream-Client": "stream-node-0.9.6",
|
|
4828
4828
|
"Accept-Encoding": "gzip",
|
|
4829
4829
|
"x-client-request-id": clientRequestId
|
|
4830
4830
|
};
|
|
@@ -6271,6 +6271,20 @@ var FeedsApi = class {
|
|
|
6271
6271
|
decoders["UpdateMembershipLevelResponse"]?.(response);
|
|
6272
6272
|
return response;
|
|
6273
6273
|
}
|
|
6274
|
+
async queryFeedsReactions(request) {
|
|
6275
|
+
const body = {
|
|
6276
|
+
object_type: request?.object_type,
|
|
6277
|
+
user_id: request?.user_id,
|
|
6278
|
+
limit: request?.limit,
|
|
6279
|
+
next: request?.next,
|
|
6280
|
+
prev: request?.prev,
|
|
6281
|
+
sort: request?.sort,
|
|
6282
|
+
filter: request?.filter
|
|
6283
|
+
};
|
|
6284
|
+
const response = await this.apiClient.sendRequest("POST", "/api/v2/feeds/reactions/query", void 0, void 0, body);
|
|
6285
|
+
decoders["QueryFeedsReactionsResponse"]?.(response);
|
|
6286
|
+
return response;
|
|
6287
|
+
}
|
|
6274
6288
|
async feedsGetRetentionPolicy() {
|
|
6275
6289
|
const response = await this.apiClient.sendRequest("GET", "/api/v2/feeds/retention_policy", void 0, void 0);
|
|
6276
6290
|
decoders["GetFeedsRetentionPolicyResponse"]?.(response);
|
|
@@ -6317,6 +6331,78 @@ var FeedsApi = class {
|
|
|
6317
6331
|
decoders["QueryRevisionHistoryResponse"]?.(response);
|
|
6318
6332
|
return response;
|
|
6319
6333
|
}
|
|
6334
|
+
async scheduleActivity(request) {
|
|
6335
|
+
const body = {
|
|
6336
|
+
type: request?.type,
|
|
6337
|
+
feeds: request?.feeds,
|
|
6338
|
+
copy_custom_to_notification: request?.copy_custom_to_notification,
|
|
6339
|
+
create_notification_activity: request?.create_notification_activity,
|
|
6340
|
+
create_users: request?.create_users,
|
|
6341
|
+
expires_at: request?.expires_at,
|
|
6342
|
+
force_moderation: request?.force_moderation,
|
|
6343
|
+
id: request?.id,
|
|
6344
|
+
parent_id: request?.parent_id,
|
|
6345
|
+
poll_id: request?.poll_id,
|
|
6346
|
+
restrict_replies: request?.restrict_replies,
|
|
6347
|
+
scheduled_at: request?.scheduled_at,
|
|
6348
|
+
skip_enrich_url: request?.skip_enrich_url,
|
|
6349
|
+
skip_push: request?.skip_push,
|
|
6350
|
+
text: request?.text,
|
|
6351
|
+
user_id: request?.user_id,
|
|
6352
|
+
visibility: request?.visibility,
|
|
6353
|
+
visibility_tag: request?.visibility_tag,
|
|
6354
|
+
attachments: request?.attachments,
|
|
6355
|
+
collection_refs: request?.collection_refs,
|
|
6356
|
+
collections: request?.collections,
|
|
6357
|
+
filter_tags: request?.filter_tags,
|
|
6358
|
+
interest_tags: request?.interest_tags,
|
|
6359
|
+
mentioned_user_ids: request?.mentioned_user_ids,
|
|
6360
|
+
custom: request?.custom,
|
|
6361
|
+
location: request?.location,
|
|
6362
|
+
search_data: request?.search_data
|
|
6363
|
+
};
|
|
6364
|
+
const response = await this.apiClient.sendRequest("POST", "/api/v2/feeds/scheduled_activities", void 0, void 0, body);
|
|
6365
|
+
decoders["ScheduleActivityResponse"]?.(response);
|
|
6366
|
+
return response;
|
|
6367
|
+
}
|
|
6368
|
+
async queryScheduledActivities(request) {
|
|
6369
|
+
const body = {
|
|
6370
|
+
limit: request?.limit,
|
|
6371
|
+
next: request?.next,
|
|
6372
|
+
filter: request?.filter
|
|
6373
|
+
};
|
|
6374
|
+
const response = await this.apiClient.sendRequest("POST", "/api/v2/feeds/scheduled_activities/query", void 0, void 0, body);
|
|
6375
|
+
decoders["QueryScheduledActivitiesResponse"]?.(response);
|
|
6376
|
+
return response;
|
|
6377
|
+
}
|
|
6378
|
+
async deleteScheduledActivity(request) {
|
|
6379
|
+
const pathParams = { id: request?.id };
|
|
6380
|
+
const response = await this.apiClient.sendRequest("DELETE", "/api/v2/feeds/scheduled_activities/{id}", pathParams, void 0);
|
|
6381
|
+
decoders["DeleteScheduledActivityResponse"]?.(response);
|
|
6382
|
+
return response;
|
|
6383
|
+
}
|
|
6384
|
+
async getScheduledActivity(request) {
|
|
6385
|
+
const pathParams = { id: request?.id };
|
|
6386
|
+
const response = await this.apiClient.sendRequest("GET", "/api/v2/feeds/scheduled_activities/{id}", pathParams, void 0);
|
|
6387
|
+
decoders["GetScheduledActivityResponse"]?.(response);
|
|
6388
|
+
return response;
|
|
6389
|
+
}
|
|
6390
|
+
async updateScheduledActivity(request) {
|
|
6391
|
+
const pathParams = { id: request?.id };
|
|
6392
|
+
const body = {
|
|
6393
|
+
scheduled_at: request?.scheduled_at,
|
|
6394
|
+
activity: request?.activity
|
|
6395
|
+
};
|
|
6396
|
+
const response = await this.apiClient.sendRequest("PATCH", "/api/v2/feeds/scheduled_activities/{id}", pathParams, void 0, body);
|
|
6397
|
+
decoders["UpdateScheduledActivityResponse"]?.(response);
|
|
6398
|
+
return response;
|
|
6399
|
+
}
|
|
6400
|
+
async publishScheduledActivityNow(request) {
|
|
6401
|
+
const pathParams = { id: request?.id };
|
|
6402
|
+
const response = await this.apiClient.sendRequest("POST", "/api/v2/feeds/scheduled_activities/{id}/publish_now", pathParams, void 0);
|
|
6403
|
+
decoders["PublishScheduledActivityNowResponse"]?.(response);
|
|
6404
|
+
return response;
|
|
6405
|
+
}
|
|
6320
6406
|
async queryFeedsUsageStats(request) {
|
|
6321
6407
|
const body = {
|
|
6322
6408
|
from: request?.from,
|