@pushwoosh/rpc-v2-http-api-data 0.2.426 → 0.2.428

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/data.js CHANGED
@@ -18380,6 +18380,7 @@ export const data = {
18380
18380
  "OVERRIDE_UNKNOWN_PROPERTY",
18381
18381
  "SEGMENT_NOT_FOUND",
18382
18382
  "INVALID_SEGMENT_TYPE",
18383
+ "FLAG_DEPENDENCY",
18383
18384
  "CONFIRM_REQUIRED",
18384
18385
  "TAG_CONFLICT"
18385
18386
  ],
@@ -18414,6 +18415,9 @@ export const data = {
18414
18415
  "INVALID_SEGMENT_TYPE": [
18415
18416
  "leaf"
18416
18417
  ],
18418
+ "FLAG_DEPENDENCY": [
18419
+ "filter_code"
18420
+ ],
18417
18421
  "TAG_CONFLICT": [
18418
18422
  "tag"
18419
18423
  ]
@@ -28345,6 +28349,32 @@ export const data = {
28345
28349
  }
28346
28350
  }
28347
28351
  },
28352
+ "pushwoosh.objects.filters.v1.FilterExpression.FeatureFlag.State": {
28353
+ "type": "E",
28354
+ "values": [
28355
+ "STATE_UNSPECIFIED",
28356
+ "STATE_ENABLED",
28357
+ "STATE_DISABLED",
28358
+ "STATE_IN_RULE"
28359
+ ]
28360
+ },
28361
+ "pushwoosh.objects.filters.v1.FilterExpression.FeatureFlag": {
28362
+ "type": "I",
28363
+ "fields": {
28364
+ "application": {
28365
+ "type": "string"
28366
+ },
28367
+ "key": {
28368
+ "type": "string"
28369
+ },
28370
+ "state": {
28371
+ "type": "pushwoosh.objects.filters.v1.FilterExpression.FeatureFlag.State"
28372
+ },
28373
+ "ruleId": {
28374
+ "type": "string"
28375
+ }
28376
+ }
28377
+ },
28348
28378
  "pushwoosh.objects.filters.v1.FilterExpression": {
28349
28379
  "type": "I",
28350
28380
  "fields": {
@@ -28383,6 +28413,9 @@ export const data = {
28383
28413
  },
28384
28414
  "externalSegment": {
28385
28415
  "type": "pushwoosh.objects.filters.v1.FilterExpression.ExternalSegment"
28416
+ },
28417
+ "featureFlag": {
28418
+ "type": "pushwoosh.objects.filters.v1.FilterExpression.FeatureFlag"
28386
28419
  }
28387
28420
  },
28388
28421
  "oneofs": {
@@ -28399,7 +28432,8 @@ export const data = {
28399
28432
  "tagDateMatch",
28400
28433
  "segment",
28401
28434
  "list",
28402
- "externalSegment"
28435
+ "externalSegment",
28436
+ "featureFlag"
28403
28437
  ]
28404
28438
  }
28405
28439
  }
@@ -29392,6 +29426,21 @@ export const data = {
29392
29426
  }
29393
29427
  }
29394
29428
  },
29429
+ "pushwoosh.objects.restrictionValues.v1.LogicExpression.Field.MaxAIImagesPerDay": {
29430
+ "type": "I",
29431
+ "fields": {
29432
+ "operator": {
29433
+ "type": "pushwoosh.objects.restrictionValues.v1.LogicExpression.Field.Operator"
29434
+ },
29435
+ "value": {
29436
+ "type": "number"
29437
+ },
29438
+ "values": {
29439
+ "type": "number",
29440
+ "array": true
29441
+ }
29442
+ }
29443
+ },
29395
29444
  "pushwoosh.objects.restrictionValues.v1.LogicExpression.Field": {
29396
29445
  "type": "I",
29397
29446
  "fields": {
@@ -29580,6 +29629,9 @@ export const data = {
29580
29629
  },
29581
29630
  "CondMaxFeatureFlags": {
29582
29631
  "type": "pushwoosh.objects.restrictionValues.v1.LogicExpression.Field.MaxFeatureFlags"
29632
+ },
29633
+ "CondMaxAIImagesPerDay": {
29634
+ "type": "pushwoosh.objects.restrictionValues.v1.LogicExpression.Field.MaxAIImagesPerDay"
29583
29635
  }
29584
29636
  },
29585
29637
  "oneofs": {
@@ -29646,7 +29698,8 @@ export const data = {
29646
29698
  "CondAllowCaseInsensitiveUserID",
29647
29699
  "CondAllowJourneyLoopPoint",
29648
29700
  "CondAllowFeatureFlags",
29649
- "CondMaxFeatureFlags"
29701
+ "CondMaxFeatureFlags",
29702
+ "CondMaxAIImagesPerDay"
29650
29703
  ]
29651
29704
  }
29652
29705
  }
@@ -30174,6 +30227,12 @@ export const data = {
30174
30227
  "response": "{}",
30175
30228
  "method": "patch",
30176
30229
  "path": "/v1/objects/restrictionValues/ID/{ID}/update/MaxFeatureFlags"
30230
+ },
30231
+ "UpdateMaxAIImagesPerDay": {
30232
+ "request": "pushwoosh.objects.restrictionValues.v1.UpdateMaxAIImagesPerDayRequest",
30233
+ "response": "{}",
30234
+ "method": "patch",
30235
+ "path": "/v1/objects/restrictionValues/ID/{ID}/update/MaxAIImagesPerDay"
30177
30236
  }
30178
30237
  }
30179
30238
  },
@@ -30362,6 +30421,9 @@ export const data = {
30362
30421
  },
30363
30422
  "MaxFeatureFlags": {
30364
30423
  "type": "number"
30424
+ },
30425
+ "MaxAIImagesPerDay": {
30426
+ "type": "number"
30365
30427
  }
30366
30428
  }
30367
30429
  },
@@ -31202,6 +31264,17 @@ export const data = {
31202
31264
  }
31203
31265
  }
31204
31266
  },
31267
+ "pushwoosh.objects.restrictionValues.v1.UpdateMaxAIImagesPerDayRequest": {
31268
+ "type": "I",
31269
+ "fields": {
31270
+ "ID": {
31271
+ "type": "number"
31272
+ },
31273
+ "value": {
31274
+ "type": "number"
31275
+ }
31276
+ }
31277
+ },
31205
31278
  "pushwoosh.objects.restrictionValues.v1.GetRequest": {
31206
31279
  "type": "I",
31207
31280
  "fields": {
@@ -31417,6 +31490,9 @@ export const data = {
31417
31490
  },
31418
31491
  "MaxFeatureFlags": {
31419
31492
  "type": "number"
31493
+ },
31494
+ "MaxAIImagesPerDay": {
31495
+ "type": "number"
31420
31496
  }
31421
31497
  }
31422
31498
  },
@@ -34972,7 +35048,8 @@ export const data = {
34972
35048
  "FILTER_EXPRESSION_HIGH_SPEED_NO_DAYS_AGO",
34973
35049
  "FILTER_EXPRESSION_INVALID_COUNTRY_TAG_VALUE",
34974
35050
  "FILTER_EXPRESSION_INVALID_LANGUAGE_TAG_VALUE",
34975
- "FILTER_EXPRESSION_EXTERNAL_SEGMENT_NOT_ALLOWED"
35051
+ "FILTER_EXPRESSION_EXTERNAL_SEGMENT_NOT_ALLOWED",
35052
+ "FILTER_EXPRESSION_FEATURE_FLAG_NOT_FOUND"
34976
35053
  ],
34977
35054
  "valuesArgs": {
34978
35055
  "NAME_TOO_LONG": [
@@ -34995,6 +35072,9 @@ export const data = {
34995
35072
  ],
34996
35073
  "FILTER_EXPRESSION_INVALID_LANGUAGE_TAG_VALUE": [
34997
35074
  "value"
35075
+ ],
35076
+ "FILTER_EXPRESSION_FEATURE_FLAG_NOT_FOUND": [
35077
+ "reason"
34998
35078
  ]
34999
35079
  }
35000
35080
  },
@@ -93,6 +93,13 @@ export type FeatureFlagsService_FieldViolations = {
93
93
  args: {
94
94
  leaf: string;
95
95
  };
96
+ } | {
97
+ reason: 'FLAG_DEPENDENCY';
98
+ field: string;
99
+ description: string;
100
+ args: {
101
+ filter_code: string;
102
+ };
96
103
  } | {
97
104
  reason: 'CONFIRM_REQUIRED';
98
105
  field: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.426",
3
+ "version": "0.2.428",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -1407,6 +1407,14 @@ export type FilterExpression_TagDateMatch = {
1407
1407
  day: number;
1408
1408
  addDays: number;
1409
1409
  };
1410
+ export type FilterExpression_FeatureFlag_State = 'STATE_UNSPECIFIED' | 'STATE_ENABLED' | 'STATE_DISABLED' | 'STATE_IN_RULE';
1411
+ /** FeatureFlag specifies devices by their last feature flag assignment */
1412
+ export type FilterExpression_FeatureFlag = {
1413
+ application: string;
1414
+ key: string;
1415
+ state: FilterExpression_FeatureFlag_State;
1416
+ ruleId: string;
1417
+ };
1410
1418
  export type FilterExpression_kind_operation = {
1411
1419
  type: 'operation';
1412
1420
  data: FilterExpression_Operation;
@@ -1455,7 +1463,11 @@ export type FilterExpression_kind_externalSegment = {
1455
1463
  type: 'externalSegment';
1456
1464
  data: FilterExpression_ExternalSegment;
1457
1465
  };
1458
- export type FilterExpression_kind = FilterExpression_kind_operation | FilterExpression_kind_application | FilterExpression_kind_tag | FilterExpression_kind_geo | FilterExpression_kind_static | FilterExpression_kind_event | FilterExpression_kind_updated | FilterExpression_kind_bestTimeToSend | FilterExpression_kind_tagDateMatch | FilterExpression_kind_segment | FilterExpression_kind_list | FilterExpression_kind_externalSegment;
1466
+ export type FilterExpression_kind_featureFlag = {
1467
+ type: 'featureFlag';
1468
+ data: FilterExpression_FeatureFlag;
1469
+ };
1470
+ export type FilterExpression_kind = FilterExpression_kind_operation | FilterExpression_kind_application | FilterExpression_kind_tag | FilterExpression_kind_geo | FilterExpression_kind_static | FilterExpression_kind_event | FilterExpression_kind_updated | FilterExpression_kind_bestTimeToSend | FilterExpression_kind_tagDateMatch | FilterExpression_kind_segment | FilterExpression_kind_list | FilterExpression_kind_externalSegment | FilterExpression_kind_featureFlag;
1459
1471
  /** FilterExpression describes structures for querying devices from the database */
1460
1472
  export type FilterExpression = {
1461
1473
  kind: FilterExpression_kind;
@@ -362,6 +362,11 @@ export type LogicExpression_Field_MaxFeatureFlags = {
362
362
  value: number;
363
363
  values: number[];
364
364
  };
365
+ export type LogicExpression_Field_MaxAIImagesPerDay = {
366
+ operator: LogicExpression_Field_Operator;
367
+ value: number;
368
+ values: number[];
369
+ };
365
370
  export type LogicExpression_Field_kind_CondID = {
366
371
  type: 'CondID';
367
372
  data: LogicExpression_Field_ID;
@@ -610,7 +615,11 @@ export type LogicExpression_Field_kind_CondMaxFeatureFlags = {
610
615
  type: 'CondMaxFeatureFlags';
611
616
  data: LogicExpression_Field_MaxFeatureFlags;
612
617
  };
613
- export type LogicExpression_Field_kind = LogicExpression_Field_kind_CondID | LogicExpression_Field_kind_CondIsLocked | LogicExpression_Field_kind_CondMaxDevices | LogicExpression_Field_kind_CondMaxUsers | LogicExpression_Field_kind_CondMaxPreparedFilters | LogicExpression_Field_kind_CondDevicesInactivityLimit | LogicExpression_Field_kind_CondAllowApi | LogicExpression_Field_kind_CondMinSendRate | LogicExpression_Field_kind_CondMaxSendRate | LogicExpression_Field_kind_CondAllowIePlatformUsage | LogicExpression_Field_kind_CondMaxVerifyingEmails | LogicExpression_Field_kind_CondMaxVerifyingDomains | LogicExpression_Field_kind_CondAllowMetadata | LogicExpression_Field_kind_CondMaxPushOnEventDelayInDays | LogicExpression_Field_kind_CondAllowEventStatisticsApi | LogicExpression_Field_kind_CondAllowTagNotSetFilter | LogicExpression_Field_kind_CondAllowTrackUninstalls | LogicExpression_Field_kind_CondEmailRateCounterAggregatePeriod | LogicExpression_Field_kind_CondEmailBounceRateLimit | LogicExpression_Field_kind_CondEmailComplaintRateLimit | LogicExpression_Field_kind_CondAllowFrequencyCapping | LogicExpression_Field_kind_CondEmailsFreeLimit | LogicExpression_Field_kind_CondEmailsLimited | LogicExpression_Field_kind_CondAllowContentTemplates | LogicExpression_Field_kind_CondAllowBaiduAndroidPlatformUsage | LogicExpression_Field_kind_CondMaxInboxTtlDays | LogicExpression_Field_kind_CondMessageHistoryStorePeriod | LogicExpression_Field_kind_CondAllowApiGetMessageLog | LogicExpression_Field_kind_CondDetailActionHistoryStorePeriod | LogicExpression_Field_kind_CondAllowShowDeliveryStatistics | LogicExpression_Field_kind_CondAllowRFMSegments | LogicExpression_Field_kind_CondAllowBestTimeToSend | LogicExpression_Field_kind_CondAllowEventSegmentation | LogicExpression_Field_kind_CondAllowSegmentsGroups | LogicExpression_Field_kind_CondAllowCjSMS | LogicExpression_Field_kind_CondAllowCjDynamicSetTagsInUpdateProfile | LogicExpression_Field_kind_CondAllowCjAddBranchesInWaitForTrigger | LogicExpression_Field_kind_CondAllowEventsFunnel | LogicExpression_Field_kind_CondAllowChannelsSection | LogicExpression_Field_kind_CondAllowCjEmailBcc | LogicExpression_Field_kind_CondEmailFileStorePeriod | LogicExpression_Field_kind_CondAllowWhatsApp | LogicExpression_Field_kind_CondAllowCjAlternativeGoalsStats | LogicExpression_Field_kind_CondAllowCjListenUserIdChanged | LogicExpression_Field_kind_CondAllowLine | LogicExpression_Field_kind_CondAllowPostEventInApp | LogicExpression_Field_kind_CondAllowAIAssistant | LogicExpression_Field_kind_CondAllowKeepUserWithoutDevice | LogicExpression_Field_kind_CondAllowCJSplitterDeviceCheck | LogicExpression_Field_kind_CondAllowTagsAutoCreation | LogicExpression_Field_kind_CondAllowAIWalletBilling | LogicExpression_Field_kind_CondApplicationSpecificFilters | LogicExpression_Field_kind_CondAllowCloudPages | LogicExpression_Field_kind_CondAllowLaoDeletePolicy | LogicExpression_Field_kind_CondAllowJourneyVersioning | LogicExpression_Field_kind_CondAllowJourneyPointTemplates | LogicExpression_Field_kind_CondRequireContentApproval | LogicExpression_Field_kind_CondAllowEmailAds | LogicExpression_Field_kind_CondAllowCaseInsensitiveUserID | LogicExpression_Field_kind_CondAllowJourneyLoopPoint | LogicExpression_Field_kind_CondAllowFeatureFlags | LogicExpression_Field_kind_CondMaxFeatureFlags;
618
+ export type LogicExpression_Field_kind_CondMaxAIImagesPerDay = {
619
+ type: 'CondMaxAIImagesPerDay';
620
+ data: LogicExpression_Field_MaxAIImagesPerDay;
621
+ };
622
+ export type LogicExpression_Field_kind = LogicExpression_Field_kind_CondID | LogicExpression_Field_kind_CondIsLocked | LogicExpression_Field_kind_CondMaxDevices | LogicExpression_Field_kind_CondMaxUsers | LogicExpression_Field_kind_CondMaxPreparedFilters | LogicExpression_Field_kind_CondDevicesInactivityLimit | LogicExpression_Field_kind_CondAllowApi | LogicExpression_Field_kind_CondMinSendRate | LogicExpression_Field_kind_CondMaxSendRate | LogicExpression_Field_kind_CondAllowIePlatformUsage | LogicExpression_Field_kind_CondMaxVerifyingEmails | LogicExpression_Field_kind_CondMaxVerifyingDomains | LogicExpression_Field_kind_CondAllowMetadata | LogicExpression_Field_kind_CondMaxPushOnEventDelayInDays | LogicExpression_Field_kind_CondAllowEventStatisticsApi | LogicExpression_Field_kind_CondAllowTagNotSetFilter | LogicExpression_Field_kind_CondAllowTrackUninstalls | LogicExpression_Field_kind_CondEmailRateCounterAggregatePeriod | LogicExpression_Field_kind_CondEmailBounceRateLimit | LogicExpression_Field_kind_CondEmailComplaintRateLimit | LogicExpression_Field_kind_CondAllowFrequencyCapping | LogicExpression_Field_kind_CondEmailsFreeLimit | LogicExpression_Field_kind_CondEmailsLimited | LogicExpression_Field_kind_CondAllowContentTemplates | LogicExpression_Field_kind_CondAllowBaiduAndroidPlatformUsage | LogicExpression_Field_kind_CondMaxInboxTtlDays | LogicExpression_Field_kind_CondMessageHistoryStorePeriod | LogicExpression_Field_kind_CondAllowApiGetMessageLog | LogicExpression_Field_kind_CondDetailActionHistoryStorePeriod | LogicExpression_Field_kind_CondAllowShowDeliveryStatistics | LogicExpression_Field_kind_CondAllowRFMSegments | LogicExpression_Field_kind_CondAllowBestTimeToSend | LogicExpression_Field_kind_CondAllowEventSegmentation | LogicExpression_Field_kind_CondAllowSegmentsGroups | LogicExpression_Field_kind_CondAllowCjSMS | LogicExpression_Field_kind_CondAllowCjDynamicSetTagsInUpdateProfile | LogicExpression_Field_kind_CondAllowCjAddBranchesInWaitForTrigger | LogicExpression_Field_kind_CondAllowEventsFunnel | LogicExpression_Field_kind_CondAllowChannelsSection | LogicExpression_Field_kind_CondAllowCjEmailBcc | LogicExpression_Field_kind_CondEmailFileStorePeriod | LogicExpression_Field_kind_CondAllowWhatsApp | LogicExpression_Field_kind_CondAllowCjAlternativeGoalsStats | LogicExpression_Field_kind_CondAllowCjListenUserIdChanged | LogicExpression_Field_kind_CondAllowLine | LogicExpression_Field_kind_CondAllowPostEventInApp | LogicExpression_Field_kind_CondAllowAIAssistant | LogicExpression_Field_kind_CondAllowKeepUserWithoutDevice | LogicExpression_Field_kind_CondAllowCJSplitterDeviceCheck | LogicExpression_Field_kind_CondAllowTagsAutoCreation | LogicExpression_Field_kind_CondAllowAIWalletBilling | LogicExpression_Field_kind_CondApplicationSpecificFilters | LogicExpression_Field_kind_CondAllowCloudPages | LogicExpression_Field_kind_CondAllowLaoDeletePolicy | LogicExpression_Field_kind_CondAllowJourneyVersioning | LogicExpression_Field_kind_CondAllowJourneyPointTemplates | LogicExpression_Field_kind_CondRequireContentApproval | LogicExpression_Field_kind_CondAllowEmailAds | LogicExpression_Field_kind_CondAllowCaseInsensitiveUserID | LogicExpression_Field_kind_CondAllowJourneyLoopPoint | LogicExpression_Field_kind_CondAllowFeatureFlags | LogicExpression_Field_kind_CondMaxFeatureFlags | LogicExpression_Field_kind_CondMaxAIImagesPerDay;
614
623
  export type LogicExpression_Field = {
615
624
  kind: LogicExpression_Field_kind;
616
625
  };
@@ -722,6 +731,7 @@ export type RestrictionValuesCrudService_UpdateAllowCaseInsensitiveUserID = RpcM
722
731
  export type RestrictionValuesCrudService_UpdateAllowJourneyLoopPoint = RpcMethod<UpdateAllowJourneyLoopPointRequest, {}>;
723
732
  export type RestrictionValuesCrudService_UpdateAllowFeatureFlags = RpcMethod<UpdateAllowFeatureFlagsRequest, {}>;
724
733
  export type RestrictionValuesCrudService_UpdateMaxFeatureFlags = RpcMethod<UpdateMaxFeatureFlagsRequest, {}>;
734
+ export type RestrictionValuesCrudService_UpdateMaxAIImagesPerDay = RpcMethod<UpdateMaxAIImagesPerDayRequest, {}>;
725
735
  export interface RestrictionValuesCrudService {
726
736
  Create: RestrictionValuesCrudService_Create;
727
737
  CreateMany: RestrictionValuesCrudService_CreateMany;
@@ -798,6 +808,7 @@ export interface RestrictionValuesCrudService {
798
808
  UpdateAllowJourneyLoopPoint: RestrictionValuesCrudService_UpdateAllowJourneyLoopPoint;
799
809
  UpdateAllowFeatureFlags: RestrictionValuesCrudService_UpdateAllowFeatureFlags;
800
810
  UpdateMaxFeatureFlags: RestrictionValuesCrudService_UpdateMaxFeatureFlags;
811
+ UpdateMaxAIImagesPerDay: RestrictionValuesCrudService_UpdateMaxAIImagesPerDay;
801
812
  }
802
813
  export type CreateRequest = {
803
814
  IsLocked?: boolean;
@@ -861,6 +872,7 @@ export type CreateRequest = {
861
872
  AllowJourneyLoopPoint?: boolean;
862
873
  AllowFeatureFlags?: boolean;
863
874
  MaxFeatureFlags?: number;
875
+ MaxAIImagesPerDay?: number;
864
876
  };
865
877
  export type CreateResponse = {
866
878
  restrictionValue: RestrictionValue;
@@ -1165,6 +1177,10 @@ export type UpdateMaxFeatureFlagsRequest = {
1165
1177
  ID?: number;
1166
1178
  value?: number;
1167
1179
  };
1180
+ export type UpdateMaxAIImagesPerDayRequest = {
1181
+ ID?: number;
1182
+ value?: number;
1183
+ };
1168
1184
  export type GetRequest = {
1169
1185
  ID?: number;
1170
1186
  };
@@ -1243,4 +1259,5 @@ export type RestrictionValue = {
1243
1259
  AllowJourneyLoopPoint: boolean;
1244
1260
  AllowFeatureFlags: boolean;
1245
1261
  MaxFeatureFlags: number;
1262
+ MaxAIImagesPerDay: number;
1246
1263
  };
@@ -82,6 +82,13 @@ export type SegmentsService_Create_FieldViolations = {
82
82
  reason: 'FILTER_EXPRESSION_EXTERNAL_SEGMENT_NOT_ALLOWED';
83
83
  field: string;
84
84
  description: string;
85
+ } | {
86
+ reason: 'FILTER_EXPRESSION_FEATURE_FLAG_NOT_FOUND';
87
+ field: string;
88
+ description: string;
89
+ args: {
90
+ reason: string;
91
+ };
85
92
  };
86
93
  export type SegmentsService_Delete_FailedPreconditions = {
87
94
  type: 'FP_DELETE_UNSPECIFIED';