@oursprivacy/platform-sdk 1.28.0 → 1.30.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.
@@ -104,6 +104,7 @@ export interface DestinationListResponse {
104
104
  | 'Braze'
105
105
  | 'ConvertABTestingEvent'
106
106
  | 'Customerio'
107
+ | 'DatabricksWarehouse'
107
108
  | 'DomoWarehouse'
108
109
  | 'Everflow'
109
110
  | 'Facebook'
@@ -135,6 +136,7 @@ export interface DestinationListResponse {
135
136
  | 'NextdoorAds'
136
137
  | 'OpenAIAds'
137
138
  | 'OursSyntheticData'
139
+ | 'Outbrain'
138
140
  | 'Partnerize'
139
141
  | 'Pinterest'
140
142
  | 'Plausible'
@@ -158,6 +160,7 @@ export interface DestinationListResponse {
158
160
  | 'Vibe'
159
161
  | 'Woopra'
160
162
  | 'XAds'
163
+ | 'YelpCAPI'
161
164
  | 'Zendesk'
162
165
  | 'ZoomInfo';
163
166
 
@@ -206,6 +209,7 @@ export interface DestinationCreateResponse {
206
209
  | 'Braze'
207
210
  | 'ConvertABTestingEvent'
208
211
  | 'Customerio'
212
+ | 'DatabricksWarehouse'
209
213
  | 'DomoWarehouse'
210
214
  | 'Everflow'
211
215
  | 'Facebook'
@@ -237,6 +241,7 @@ export interface DestinationCreateResponse {
237
241
  | 'NextdoorAds'
238
242
  | 'OpenAIAds'
239
243
  | 'OursSyntheticData'
244
+ | 'Outbrain'
240
245
  | 'Partnerize'
241
246
  | 'Pinterest'
242
247
  | 'Plausible'
@@ -260,6 +265,7 @@ export interface DestinationCreateResponse {
260
265
  | 'Vibe'
261
266
  | 'Woopra'
262
267
  | 'XAds'
268
+ | 'YelpCAPI'
263
269
  | 'Zendesk'
264
270
  | 'ZoomInfo';
265
271
 
@@ -308,6 +314,7 @@ export interface DestinationRetrieveResponse {
308
314
  | 'Braze'
309
315
  | 'ConvertABTestingEvent'
310
316
  | 'Customerio'
317
+ | 'DatabricksWarehouse'
311
318
  | 'DomoWarehouse'
312
319
  | 'Everflow'
313
320
  | 'Facebook'
@@ -339,6 +346,7 @@ export interface DestinationRetrieveResponse {
339
346
  | 'NextdoorAds'
340
347
  | 'OpenAIAds'
341
348
  | 'OursSyntheticData'
349
+ | 'Outbrain'
342
350
  | 'Partnerize'
343
351
  | 'Pinterest'
344
352
  | 'Plausible'
@@ -362,6 +370,7 @@ export interface DestinationRetrieveResponse {
362
370
  | 'Vibe'
363
371
  | 'Woopra'
364
372
  | 'XAds'
373
+ | 'YelpCAPI'
365
374
  | 'Zendesk'
366
375
  | 'ZoomInfo';
367
376
 
@@ -410,6 +419,7 @@ export interface DestinationUpdateResponse {
410
419
  | 'Braze'
411
420
  | 'ConvertABTestingEvent'
412
421
  | 'Customerio'
422
+ | 'DatabricksWarehouse'
413
423
  | 'DomoWarehouse'
414
424
  | 'Everflow'
415
425
  | 'Facebook'
@@ -441,6 +451,7 @@ export interface DestinationUpdateResponse {
441
451
  | 'NextdoorAds'
442
452
  | 'OpenAIAds'
443
453
  | 'OursSyntheticData'
454
+ | 'Outbrain'
444
455
  | 'Partnerize'
445
456
  | 'Pinterest'
446
457
  | 'Plausible'
@@ -464,6 +475,7 @@ export interface DestinationUpdateResponse {
464
475
  | 'Vibe'
465
476
  | 'Woopra'
466
477
  | 'XAds'
478
+ | 'YelpCAPI'
467
479
  | 'Zendesk'
468
480
  | 'ZoomInfo';
469
481
 
@@ -489,6 +501,7 @@ export namespace DestinationTypesResponse {
489
501
  id:
490
502
  | 'Audiohook'
491
503
  | 'BasisPostback'
504
+ | 'Outbrain'
492
505
  | 'OursSyntheticData'
493
506
  | 'FullContact'
494
507
  | 'ZoomInfo'
@@ -518,6 +531,7 @@ export namespace DestinationTypesResponse {
518
531
  | 'Mailchimp'
519
532
  | 'AWSKinesis'
520
533
  | 'AWSLambda'
534
+ | 'AWSSNS'
521
535
  | 'GooglePubSub'
522
536
  | 'LinkedInAdsCAPI'
523
537
  | 'ActiveCampaignApi'
@@ -555,7 +569,8 @@ export namespace DestinationTypesResponse {
555
569
  | 'BeeswaxPostback'
556
570
  | 'AdobeAnalytics'
557
571
  | 'UniversalAds'
558
- | 'OpenAIAds';
572
+ | 'OpenAIAds'
573
+ | 'YelpCAPI';
559
574
 
560
575
  capabilities: Entity.Capabilities;
561
576
 
@@ -687,6 +702,7 @@ export interface DestinationListParams extends CursorParams {
687
702
  | 'Braze'
688
703
  | 'ConvertABTestingEvent'
689
704
  | 'Customerio'
705
+ | 'DatabricksWarehouse'
690
706
  | 'DomoWarehouse'
691
707
  | 'Everflow'
692
708
  | 'Facebook'
@@ -718,6 +734,7 @@ export interface DestinationListParams extends CursorParams {
718
734
  | 'NextdoorAds'
719
735
  | 'OpenAIAds'
720
736
  | 'OursSyntheticData'
737
+ | 'Outbrain'
721
738
  | 'Partnerize'
722
739
  | 'Pinterest'
723
740
  | 'Plausible'
@@ -741,6 +758,7 @@ export interface DestinationListParams extends CursorParams {
741
758
  | 'Vibe'
742
759
  | 'Woopra'
743
760
  | 'XAds'
761
+ | 'YelpCAPI'
744
762
  | 'Zendesk'
745
763
  | 'ZoomInfo';
746
764
  }
@@ -754,6 +772,7 @@ export interface DestinationCreateParams {
754
772
  type:
755
773
  | 'Audiohook'
756
774
  | 'BasisPostback'
775
+ | 'Outbrain'
757
776
  | 'OursSyntheticData'
758
777
  | 'FullContact'
759
778
  | 'ZoomInfo'
@@ -783,6 +802,7 @@ export interface DestinationCreateParams {
783
802
  | 'Mailchimp'
784
803
  | 'AWSKinesis'
785
804
  | 'AWSLambda'
805
+ | 'AWSSNS'
786
806
  | 'GooglePubSub'
787
807
  | 'LinkedInAdsCAPI'
788
808
  | 'ActiveCampaignApi'
@@ -820,7 +840,8 @@ export interface DestinationCreateParams {
820
840
  | 'BeeswaxPostback'
821
841
  | 'AdobeAnalytics'
822
842
  | 'UniversalAds'
823
- | 'OpenAIAds';
843
+ | 'OpenAIAds'
844
+ | 'YelpCAPI';
824
845
 
825
846
  name?: string | null;
826
847
 
@@ -659,9 +659,10 @@ export interface ExperimentVariantCreateParams {
659
659
  name: string;
660
660
 
661
661
  /**
662
- * Traffic weight to assign to this variant. Weights are relative shares; the
663
- * runtime normalizes by their sum. Must be a positive integer in the range
664
- * 1..1_000_000.
662
+ * Traffic weight for this variant as a percentage (0–100). Treatment weights are
663
+ * percentages of the split and must total 99% or less to leave room for the
664
+ * control; the control variant is the remainder (100 − Σ treatment weights, always
665
+ * ≥ 1%) and is maintained automatically.
665
666
  */
666
667
  weight: number;
667
668
 
@@ -673,11 +674,11 @@ export interface ExperimentVariantCreateParams {
673
674
 
674
675
  /**
675
676
  * Mark this variant as the experiment control. Defaults to `false`. The API
676
- * rejects the request with 409 if the experiment already has a control variant —
677
- * to swap controls, first PATCH the existing control to clear `isControl`, then
678
- * create or PATCH the new one with `isControl: true`. The auto-generated control
679
- * variant created with each new experiment can be replaced this way. DELETE on the
680
- * control returns 409.
677
+ * rejects the request with 409 if the experiment already has a control variant.
678
+ * Every experiment keeps exactly one control whose weight is the auto-derived
679
+ * remainder of the split, so the control cannot be cleared while it would leave
680
+ * the treatments at 100% (no room for a control). DELETE on the control
681
+ * returns 409.
681
682
  */
682
683
  isControl?: boolean | null;
683
684
 
@@ -776,8 +777,9 @@ export interface ExperimentVariantUpdateParams {
776
777
 
777
778
  /**
778
779
  * Promote or demote this variant as the control. Promoting a second variant while
779
- * another already has `isControl: true` is rejected with 409 — clear the existing
780
- * control first.
780
+ * another already has `isControl: true` is rejected with 409. Demoting the control
781
+ * (`isControl: false`) is rejected when it would leave the treatments at 100% —
782
+ * there must always be room for a control.
781
783
  */
782
784
  isControl?: boolean | null;
783
785
 
@@ -802,8 +804,9 @@ export interface ExperimentVariantUpdateParams {
802
804
  variantType?: 'dom_modifications' | 'redirect' | null;
803
805
 
804
806
  /**
805
- * Updated traffic weight relative to other variants. Must be a positive integer in
806
- * the range 1..1_000_000.
807
+ * Updated traffic weight as a percentage (0–100). The control variant weight is
808
+ * derived from the treatments (it is the remainder of the split) and cannot be set
809
+ * directly.
807
810
  */
808
811
  weight?: number | null;
809
812
  }
@@ -2186,6 +2186,15 @@ export interface ExperimentCreateParams {
2186
2186
  */
2187
2187
  name: string;
2188
2188
 
2189
+ /**
2190
+ * Weight of the auto-created control variant, as a percentage (1–100). Defaults to
2191
+ * 100 (a new experiment is all control until treatments are added). The control
2192
+ * must keep at least 1% — a 0% control leaves visitors with no bucket to assign at
2193
+ * runtime. As treatments are added the control is reconciled to the remainder (100
2194
+ * − Σ treatment weights), so it normally does not need to be set explicitly.
2195
+ */
2196
+ controlWeight?: number | null;
2197
+
2189
2198
  /**
2190
2199
  * Optional hypothesis or operator note.
2191
2200
  */
@@ -82,6 +82,7 @@ export interface SourceListResponse {
82
82
  type:
83
83
  | 'AlchemerWebhook'
84
84
  | 'AndroidNativeApi'
85
+ | 'Branch'
85
86
  | 'CSharpApi'
86
87
  | 'CalComWebhooks'
87
88
  | 'CalendlyWebhook'
@@ -171,6 +172,7 @@ export interface SourceCreateResponse {
171
172
  type:
172
173
  | 'AlchemerWebhook'
173
174
  | 'AndroidNativeApi'
175
+ | 'Branch'
174
176
  | 'CSharpApi'
175
177
  | 'CalComWebhooks'
176
178
  | 'CalendlyWebhook'
@@ -260,6 +262,7 @@ export interface SourceRetrieveResponse {
260
262
  type:
261
263
  | 'AlchemerWebhook'
262
264
  | 'AndroidNativeApi'
265
+ | 'Branch'
263
266
  | 'CSharpApi'
264
267
  | 'CalComWebhooks'
265
268
  | 'CalendlyWebhook'
@@ -349,6 +352,7 @@ export interface SourceUpdateResponse {
349
352
  type:
350
353
  | 'AlchemerWebhook'
351
354
  | 'AndroidNativeApi'
355
+ | 'Branch'
352
356
  | 'CSharpApi'
353
357
  | 'CalComWebhooks'
354
358
  | 'CalendlyWebhook'
@@ -517,6 +521,7 @@ export interface SourceListParams extends CursorParams {
517
521
  type?:
518
522
  | 'AlchemerWebhook'
519
523
  | 'AndroidNativeApi'
524
+ | 'Branch'
520
525
  | 'CSharpApi'
521
526
  | 'CalComWebhooks'
522
527
  | 'CalendlyWebhook'
@@ -552,6 +557,7 @@ export interface SourceCreateParams {
552
557
  type:
553
558
  | 'AlchemerWebhook'
554
559
  | 'AndroidNativeApi'
560
+ | 'Branch'
555
561
  | 'CSharpApi'
556
562
  | 'CalComWebhooks'
557
563
  | 'CalendlyWebhook'
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.28.0'; // x-release-please-version
1
+ export const VERSION = '1.30.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.28.0";
1
+ export declare const VERSION = "1.30.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.28.0";
1
+ export declare const VERSION = "1.30.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '1.28.0'; // x-release-please-version
4
+ exports.VERSION = '1.30.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '1.28.0'; // x-release-please-version
1
+ export const VERSION = '1.30.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map