@stream-io/node-sdk 0.7.64 → 0.8.1

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.
@@ -110,7 +110,7 @@ export class ModerationApi {
110
110
  StreamResponse<GetActionConfigResponse>
111
111
  >('GET', '/api/v2/moderation/action_config', undefined, queryParams);
112
112
 
113
- decoders.GetActionConfigResponse?.(response.body);
113
+ decoders['GetActionConfigResponse']?.(response.body);
114
114
 
115
115
  return { ...response.body, metadata: response.metadata };
116
116
  }
@@ -142,7 +142,7 @@ export class ModerationApi {
142
142
  'application/json',
143
143
  );
144
144
 
145
- decoders.UpsertActionConfigResponse?.(response.body);
145
+ decoders['UpsertActionConfigResponse']?.(response.body);
146
146
 
147
147
  return { ...response.body, metadata: response.metadata };
148
148
  }
@@ -167,7 +167,7 @@ export class ModerationApi {
167
167
  'application/json',
168
168
  );
169
169
 
170
- decoders.BulkUpsertActionConfigResponse?.(response.body);
170
+ decoders['BulkUpsertActionConfigResponse']?.(response.body);
171
171
 
172
172
  return { ...response.body, metadata: response.metadata };
173
173
  }
@@ -192,7 +192,7 @@ export class ModerationApi {
192
192
  'application/json',
193
193
  );
194
194
 
195
- decoders.BulkDeleteActionConfigResponse?.(response.body);
195
+ decoders['BulkDeleteActionConfigResponse']?.(response.body);
196
196
 
197
197
  return { ...response.body, metadata: response.metadata };
198
198
  }
@@ -217,7 +217,7 @@ export class ModerationApi {
217
217
  queryParams,
218
218
  );
219
219
 
220
- decoders.DeleteActionConfigResponse?.(response.body);
220
+ decoders['DeleteActionConfigResponse']?.(response.body);
221
221
 
222
222
  return { ...response.body, metadata: response.metadata };
223
223
  }
@@ -247,7 +247,7 @@ export class ModerationApi {
247
247
  'application/json',
248
248
  );
249
249
 
250
- decoders.InsertActionLogResponse?.(response.body);
250
+ decoders['InsertActionLogResponse']?.(response.body);
251
251
 
252
252
  return { ...response.body, metadata: response.metadata };
253
253
  }
@@ -280,7 +280,7 @@ export class ModerationApi {
280
280
  'application/json',
281
281
  );
282
282
 
283
- decoders.AnalyzeResponse?.(response.body);
283
+ decoders['AnalyzeResponse']?.(response.body);
284
284
 
285
285
  return { ...response.body, metadata: response.metadata };
286
286
  }
@@ -309,7 +309,7 @@ export class ModerationApi {
309
309
  'application/json',
310
310
  );
311
311
 
312
- decoders.AppealResponse?.(response.body);
312
+ decoders['AppealResponse']?.(response.body);
313
313
 
314
314
  return { ...response.body, metadata: response.metadata };
315
315
  }
@@ -325,7 +325,7 @@ export class ModerationApi {
325
325
  StreamResponse<GetAppealResponse>
326
326
  >('GET', '/api/v2/moderation/appeal/{id}', pathParams, undefined);
327
327
 
328
- decoders.GetAppealResponse?.(response.body);
328
+ decoders['GetAppealResponse']?.(response.body);
329
329
 
330
330
  return { ...response.body, metadata: response.metadata };
331
331
  }
@@ -354,7 +354,7 @@ export class ModerationApi {
354
354
  'application/json',
355
355
  );
356
356
 
357
- decoders.QueryAppealsResponse?.(response.body);
357
+ decoders['QueryAppealsResponse']?.(response.body);
358
358
 
359
359
  return { ...response.body, metadata: response.metadata };
360
360
  }
@@ -385,7 +385,7 @@ export class ModerationApi {
385
385
  'application/json',
386
386
  );
387
387
 
388
- decoders.BulkActionAppealsResponse?.(response.body);
388
+ decoders['BulkActionAppealsResponse']?.(response.body);
389
389
 
390
390
  return { ...response.body, metadata: response.metadata };
391
391
  }
@@ -416,7 +416,7 @@ export class ModerationApi {
416
416
  'application/json',
417
417
  );
418
418
 
419
- decoders.ModerationBanResponse?.(response.body);
419
+ decoders['ModerationBanResponse']?.(response.body);
420
420
 
421
421
  return { ...response.body, metadata: response.metadata };
422
422
  }
@@ -439,7 +439,7 @@ export class ModerationApi {
439
439
  'application/json',
440
440
  );
441
441
 
442
- decoders.BulkImageModerationResponse?.(response.body);
442
+ decoders['BulkImageModerationResponse']?.(response.body);
443
443
 
444
444
  return { ...response.body, metadata: response.metadata };
445
445
  }
@@ -463,7 +463,7 @@ export class ModerationApi {
463
463
  'application/json',
464
464
  );
465
465
 
466
- decoders.BypassResponse?.(response.body);
466
+ decoders['BypassResponse']?.(response.body);
467
467
 
468
468
  return { ...response.body, metadata: response.metadata };
469
469
  }
@@ -495,7 +495,7 @@ export class ModerationApi {
495
495
  'application/json',
496
496
  );
497
497
 
498
- decoders.CheckResponse?.(response.body);
498
+ decoders['CheckResponse']?.(response.body);
499
499
 
500
500
  return { ...response.body, metadata: response.metadata };
501
501
  }
@@ -518,7 +518,7 @@ export class ModerationApi {
518
518
  'application/json',
519
519
  );
520
520
 
521
- decoders.CheckS3AccessResponse?.(response.body);
521
+ decoders['CheckS3AccessResponse']?.(response.body);
522
522
 
523
523
  return { ...response.body, metadata: response.metadata };
524
524
  }
@@ -562,7 +562,7 @@ export class ModerationApi {
562
562
  'application/json',
563
563
  );
564
564
 
565
- decoders.UpsertConfigResponse?.(response.body);
565
+ decoders['UpsertConfigResponse']?.(response.body);
566
566
 
567
567
  return { ...response.body, metadata: response.metadata };
568
568
  }
@@ -584,7 +584,7 @@ export class ModerationApi {
584
584
  StreamResponse<DeleteModerationConfigResponse>
585
585
  >('DELETE', '/api/v2/moderation/config/{key}', pathParams, queryParams);
586
586
 
587
- decoders.DeleteModerationConfigResponse?.(response.body);
587
+ decoders['DeleteModerationConfigResponse']?.(response.body);
588
588
 
589
589
  return { ...response.body, metadata: response.metadata };
590
590
  }
@@ -604,7 +604,7 @@ export class ModerationApi {
604
604
  StreamResponse<GetConfigResponse>
605
605
  >('GET', '/api/v2/moderation/config/{key}', pathParams, queryParams);
606
606
 
607
- decoders.GetConfigResponse?.(response.body);
607
+ decoders['GetConfigResponse']?.(response.body);
608
608
 
609
609
  return { ...response.body, metadata: response.metadata };
610
610
  }
@@ -633,7 +633,7 @@ export class ModerationApi {
633
633
  'application/json',
634
634
  );
635
635
 
636
- decoders.QueryModerationConfigsResponse?.(response.body);
636
+ decoders['QueryModerationConfigsResponse']?.(response.body);
637
637
 
638
638
  return { ...response.body, metadata: response.metadata };
639
639
  }
@@ -662,7 +662,7 @@ export class ModerationApi {
662
662
  'application/json',
663
663
  );
664
664
 
665
- decoders.CustomCheckResponse?.(response.body);
665
+ decoders['CustomCheckResponse']?.(response.body);
666
666
 
667
667
  return { ...response.body, metadata: response.metadata };
668
668
  }
@@ -679,7 +679,7 @@ export class ModerationApi {
679
679
  undefined,
680
680
  );
681
681
 
682
- decoders.DeleteModerationTemplateResponse?.(response.body);
682
+ decoders['DeleteModerationTemplateResponse']?.(response.body);
683
683
 
684
684
  return { ...response.body, metadata: response.metadata };
685
685
  }
@@ -696,7 +696,7 @@ export class ModerationApi {
696
696
  undefined,
697
697
  );
698
698
 
699
- decoders.QueryFeedModerationTemplatesResponse?.(response.body);
699
+ decoders['QueryFeedModerationTemplatesResponse']?.(response.body);
700
700
 
701
701
  return { ...response.body, metadata: response.metadata };
702
702
  }
@@ -720,7 +720,7 @@ export class ModerationApi {
720
720
  'application/json',
721
721
  );
722
722
 
723
- decoders.UpsertModerationTemplateResponse?.(response.body);
723
+ decoders['UpsertModerationTemplateResponse']?.(response.body);
724
724
 
725
725
  return { ...response.body, metadata: response.metadata };
726
726
  }
@@ -748,7 +748,7 @@ export class ModerationApi {
748
748
  'application/json',
749
749
  );
750
750
 
751
- decoders.FlagItemResponse?.(response.body);
751
+ decoders['FlagItemResponse']?.(response.body);
752
752
 
753
753
  return { ...response.body, metadata: response.metadata };
754
754
  }
@@ -772,7 +772,7 @@ export class ModerationApi {
772
772
  'application/json',
773
773
  );
774
774
 
775
- decoders.GetFlagCountResponse?.(response.body);
775
+ decoders['GetFlagCountResponse']?.(response.body);
776
776
 
777
777
  return { ...response.body, metadata: response.metadata };
778
778
  }
@@ -799,7 +799,7 @@ export class ModerationApi {
799
799
  'application/json',
800
800
  );
801
801
 
802
- decoders.QueryModerationFlagsResponse?.(response.body);
802
+ decoders['QueryModerationFlagsResponse']?.(response.body);
803
803
 
804
804
  return { ...response.body, metadata: response.metadata };
805
805
  }
@@ -828,7 +828,7 @@ export class ModerationApi {
828
828
  'application/json',
829
829
  );
830
830
 
831
- decoders.LabelsResponse?.(response.body);
831
+ decoders['LabelsResponse']?.(response.body);
832
832
 
833
833
  return { ...response.body, metadata: response.metadata };
834
834
  }
@@ -857,7 +857,7 @@ export class ModerationApi {
857
857
  'application/json',
858
858
  );
859
859
 
860
- decoders.QueryLabelResultsResponse?.(response.body);
860
+ decoders['QueryLabelResultsResponse']?.(response.body);
861
861
 
862
862
  return { ...response.body, metadata: response.metadata };
863
863
  }
@@ -886,7 +886,7 @@ export class ModerationApi {
886
886
  'application/json',
887
887
  );
888
888
 
889
- decoders.QueryModerationLogsResponse?.(response.body);
889
+ decoders['QueryModerationLogsResponse']?.(response.body);
890
890
 
891
891
  return { ...response.body, metadata: response.metadata };
892
892
  }
@@ -922,7 +922,7 @@ export class ModerationApi {
922
922
  'application/json',
923
923
  );
924
924
 
925
- decoders.UpsertModerationRuleResponse?.(response.body);
925
+ decoders['UpsertModerationRuleResponse']?.(response.body);
926
926
 
927
927
  return { ...response.body, metadata: response.metadata };
928
928
  }
@@ -947,7 +947,7 @@ export class ModerationApi {
947
947
  queryParams,
948
948
  );
949
949
 
950
- decoders.DeleteModerationRuleResponse?.(response.body);
950
+ decoders['DeleteModerationRuleResponse']?.(response.body);
951
951
 
952
952
  return { ...response.body, metadata: response.metadata };
953
953
  }
@@ -963,7 +963,7 @@ export class ModerationApi {
963
963
  StreamResponse<GetModerationRuleResponse>
964
964
  >('GET', '/api/v2/moderation/moderation_rule/{id}', pathParams, undefined);
965
965
 
966
- decoders.GetModerationRuleResponse?.(response.body);
966
+ decoders['GetModerationRuleResponse']?.(response.body);
967
967
 
968
968
  return { ...response.body, metadata: response.metadata };
969
969
  }
@@ -992,7 +992,7 @@ export class ModerationApi {
992
992
  'application/json',
993
993
  );
994
994
 
995
- decoders.QueryModerationRulesResponse?.(response.body);
995
+ decoders['QueryModerationRulesResponse']?.(response.body);
996
996
 
997
997
  return { ...response.body, metadata: response.metadata };
998
998
  }
@@ -1016,7 +1016,7 @@ export class ModerationApi {
1016
1016
  'application/json',
1017
1017
  );
1018
1018
 
1019
- decoders.MuteResponse?.(response.body);
1019
+ decoders['MuteResponse']?.(response.body);
1020
1020
 
1021
1021
  return { ...response.body, metadata: response.metadata };
1022
1022
  }
@@ -1037,7 +1037,7 @@ export class ModerationApi {
1037
1037
  undefined,
1038
1038
  );
1039
1039
 
1040
- decoders.PolicyTestRunResponse?.(response.body);
1040
+ decoders['PolicyTestRunResponse']?.(response.body);
1041
1041
 
1042
1042
  return { ...response.body, metadata: response.metadata };
1043
1043
  }
@@ -1049,7 +1049,7 @@ export class ModerationApi {
1049
1049
  StreamResponse<PolicyTestSetListResponse>
1050
1050
  >('GET', '/api/v2/moderation/policy_tests/sets', undefined, undefined);
1051
1051
 
1052
- decoders.PolicyTestSetListResponse?.(response.body);
1052
+ decoders['PolicyTestSetListResponse']?.(response.body);
1053
1053
 
1054
1054
  return { ...response.body, metadata: response.metadata };
1055
1055
  }
@@ -1077,7 +1077,7 @@ export class ModerationApi {
1077
1077
  'application/json',
1078
1078
  );
1079
1079
 
1080
- decoders.PolicyTestSetResponse?.(response.body);
1080
+ decoders['PolicyTestSetResponse']?.(response.body);
1081
1081
 
1082
1082
  return { ...response.body, metadata: response.metadata };
1083
1083
  }
@@ -1096,7 +1096,7 @@ export class ModerationApi {
1096
1096
  undefined,
1097
1097
  );
1098
1098
 
1099
- decoders.Response?.(response.body);
1099
+ decoders['Response']?.(response.body);
1100
1100
 
1101
1101
  return { ...response.body, metadata: response.metadata };
1102
1102
  }
@@ -1117,7 +1117,7 @@ export class ModerationApi {
1117
1117
  undefined,
1118
1118
  );
1119
1119
 
1120
- decoders.PolicyTestSetResponse?.(response.body);
1120
+ decoders['PolicyTestSetResponse']?.(response.body);
1121
1121
 
1122
1122
  return { ...response.body, metadata: response.metadata };
1123
1123
  }
@@ -1138,7 +1138,7 @@ export class ModerationApi {
1138
1138
  undefined,
1139
1139
  );
1140
1140
 
1141
- decoders.PolicyTestRunResponse?.(response.body);
1141
+ decoders['PolicyTestRunResponse']?.(response.body);
1142
1142
 
1143
1143
  return { ...response.body, metadata: response.metadata };
1144
1144
  }
@@ -1154,7 +1154,7 @@ export class ModerationApi {
1154
1154
  StreamResponse<ListQueuesResponse>
1155
1155
  >('GET', '/api/v2/moderation/queues', undefined, queryParams);
1156
1156
 
1157
- decoders.ListQueuesResponse?.(response.body);
1157
+ decoders['ListQueuesResponse']?.(response.body);
1158
1158
 
1159
1159
  return { ...response.body, metadata: response.metadata };
1160
1160
  }
@@ -1183,7 +1183,7 @@ export class ModerationApi {
1183
1183
  'application/json',
1184
1184
  );
1185
1185
 
1186
- decoders.QueueResponse?.(response.body);
1186
+ decoders['QueueResponse']?.(response.body);
1187
1187
 
1188
1188
  return { ...response.body, metadata: response.metadata };
1189
1189
  }
@@ -1203,7 +1203,7 @@ export class ModerationApi {
1203
1203
  StreamResponse<QueueResponse>
1204
1204
  >('GET', '/api/v2/moderation/queues/{id}', pathParams, queryParams);
1205
1205
 
1206
- decoders.QueueResponse?.(response.body);
1206
+ decoders['QueueResponse']?.(response.body);
1207
1207
 
1208
1208
  return { ...response.body, metadata: response.metadata };
1209
1209
  }
@@ -1234,7 +1234,7 @@ export class ModerationApi {
1234
1234
  'application/json',
1235
1235
  );
1236
1236
 
1237
- decoders.QueueResponse?.(response.body);
1237
+ decoders['QueueResponse']?.(response.body);
1238
1238
 
1239
1239
  return { ...response.body, metadata: response.metadata };
1240
1240
  }
@@ -1261,7 +1261,7 @@ export class ModerationApi {
1261
1261
  'application/json',
1262
1262
  );
1263
1263
 
1264
- decoders.QueueResponse?.(response.body);
1264
+ decoders['QueueResponse']?.(response.body);
1265
1265
 
1266
1266
  return { ...response.body, metadata: response.metadata };
1267
1267
  }
@@ -1295,7 +1295,7 @@ export class ModerationApi {
1295
1295
  'application/json',
1296
1296
  );
1297
1297
 
1298
- decoders.QueryReviewQueueResponse?.(response.body);
1298
+ decoders['QueryReviewQueueResponse']?.(response.body);
1299
1299
 
1300
1300
  return { ...response.body, metadata: response.metadata };
1301
1301
  }
@@ -1311,7 +1311,7 @@ export class ModerationApi {
1311
1311
  StreamResponse<GetReviewQueueItemResponse>
1312
1312
  >('GET', '/api/v2/moderation/review_queue/{id}', pathParams, undefined);
1313
1313
 
1314
- decoders.GetReviewQueueItemResponse?.(response.body);
1314
+ decoders['GetReviewQueueItemResponse']?.(response.body);
1315
1315
 
1316
1316
  return { ...response.body, metadata: response.metadata };
1317
1317
  }
@@ -1321,7 +1321,7 @@ export class ModerationApi {
1321
1321
  StreamResponse<GetSetupSessionResponse>
1322
1322
  >('GET', '/api/v2/moderation/setup', undefined, undefined);
1323
1323
 
1324
- decoders.GetSetupSessionResponse?.(response.body);
1324
+ decoders['GetSetupSessionResponse']?.(response.body);
1325
1325
 
1326
1326
  return { ...response.body, metadata: response.metadata };
1327
1327
  }
@@ -1346,7 +1346,7 @@ export class ModerationApi {
1346
1346
  'application/json',
1347
1347
  );
1348
1348
 
1349
- decoders.UpsertSetupSessionResponse?.(response.body);
1349
+ decoders['UpsertSetupSessionResponse']?.(response.body);
1350
1350
 
1351
1351
  return { ...response.body, metadata: response.metadata };
1352
1352
  }
@@ -1391,7 +1391,7 @@ export class ModerationApi {
1391
1391
  'application/json',
1392
1392
  );
1393
1393
 
1394
- decoders.SubmitActionResponse?.(response.body);
1394
+ decoders['SubmitActionResponse']?.(response.body);
1395
1395
 
1396
1396
  return { ...response.body, metadata: response.metadata };
1397
1397
  }
@@ -1422,7 +1422,7 @@ export class ModerationApi {
1422
1422
  'application/json',
1423
1423
  );
1424
1424
 
1425
- decoders.SubmitModerationFeedbackResponse?.(response.body);
1425
+ decoders['SubmitModerationFeedbackResponse']?.(response.body);
1426
1426
 
1427
1427
  return { ...response.body, metadata: response.metadata };
1428
1428
  }
@@ -1455,7 +1455,7 @@ export class ModerationApi {
1455
1455
  'application/json',
1456
1456
  );
1457
1457
 
1458
- decoders.UnbanResponse?.(response.body);
1458
+ decoders['UnbanResponse']?.(response.body);
1459
1459
 
1460
1460
  return { ...response.body, metadata: response.metadata };
1461
1461
  }
@@ -1480,7 +1480,7 @@ export class ModerationApi {
1480
1480
  'application/json',
1481
1481
  );
1482
1482
 
1483
- decoders.UnmuteResponse?.(response.body);
1483
+ decoders['UnmuteResponse']?.(response.body);
1484
1484
 
1485
1485
  return { ...response.body, metadata: response.metadata };
1486
1486
  }