@svta/cml-cmcd 1.0.1 → 1.0.2

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/dist/index.d.ts CHANGED
@@ -10,8 +10,7 @@ import { Request, ValueOf, ValueOrArray } from "@svta/cml-utils";
10
10
  * revisions to this specification. Clients SHOULD use a reverse-DNS
11
11
  * syntax when defining their own prefix.
12
12
  *
13
- *
14
- * @beta
13
+ * @public
15
14
  */
16
15
  type CmcdCustomKey = `${string}-${string}`;
17
16
  //#endregion
@@ -19,14 +18,13 @@ type CmcdCustomKey = `${string}-${string}`;
19
18
  /**
20
19
  * Common Media Client Data Object Type
21
20
  *
22
- *
23
- * @beta
21
+ * @public
24
22
  *
25
23
  * @enum
26
24
  */
27
25
  declare const CmcdObjectType: typeof CmObjectType;
28
26
  /**
29
- * @beta
27
+ * @public
30
28
  */
31
29
  type CmcdObjectType = CmObjectType;
32
30
  //#endregion
@@ -37,11 +35,11 @@ type CmcdObjectType = CmObjectType;
37
35
  *
38
36
  * @enum
39
37
  *
40
- * @beta
38
+ * @public
41
39
  */
42
40
  declare const CmcdStreamType: typeof CmStreamType;
43
41
  /**
44
- * @beta
42
+ * @public
45
43
  */
46
44
  type CmcdStreamType = CmStreamType;
47
45
  //#endregion
@@ -52,11 +50,11 @@ type CmcdStreamType = CmStreamType;
52
50
  *
53
51
  * @enum
54
52
  *
55
- * @beta
53
+ * @public
56
54
  */
57
55
  declare const CmcdStreamingFormat: typeof CmStreamingFormat;
58
56
  /**
59
- * @beta
57
+ * @public
60
58
  */
61
59
  type CmcdStreamingFormat = CmStreamingFormat;
62
60
  //#endregion
@@ -64,8 +62,7 @@ type CmcdStreamingFormat = CmStreamingFormat;
64
62
  /**
65
63
  * CMCD Value
66
64
  *
67
- *
68
- * @beta
65
+ * @public
69
66
  */
70
67
  type CmcdValue = CmcdObjectType | CmcdStreamingFormat | CmcdStreamType | string | string[] | number | number[] | boolean | symbol | SfToken | SfItem | SfItem[];
71
68
  //#endregion
@@ -75,8 +72,7 @@ type CmcdValue = CmcdObjectType | CmcdStreamingFormat | CmcdStreamType | string
75
72
  *
76
73
  * @see {@link https://cdn.cta.tech/cta/media/media/resources/standards/pdfs/cta-5004-final.pdf|CMCD Spec}
77
74
  *
78
- *
79
- * @beta
75
+ * @public
80
76
  */
81
77
  type Cmcd = {
82
78
  /**
@@ -281,8 +277,7 @@ type Cmcd = {
281
277
  /**
282
278
  * CMCD event mode variable name.
283
279
  *
284
- *
285
- * @beta
280
+ * @public
286
281
  */
287
282
  declare const CMCD_EVENT_MODE = "event";
288
283
  //#endregion
@@ -290,8 +285,7 @@ declare const CMCD_EVENT_MODE = "event";
290
285
  /**
291
286
  * CMCD request mode variable name.
292
287
  *
293
- *
294
- * @beta
288
+ * @public
295
289
  */
296
290
  declare const CMCD_REQUEST_MODE = "request";
297
291
  //#endregion
@@ -302,7 +296,7 @@ declare const CMCD_REQUEST_MODE = "request";
302
296
  *
303
297
  * @enum
304
298
  *
305
- * @beta
299
+ * @public
306
300
  */
307
301
  declare const CmcdReportingMode: {
308
302
  /**
@@ -315,7 +309,7 @@ declare const CmcdReportingMode: {
315
309
  readonly EVENT: typeof CMCD_EVENT_MODE;
316
310
  };
317
311
  /**
318
- * @beta
312
+ * @public
319
313
  */
320
314
  type CmcdReportingMode = ValueOf<typeof CmcdReportingMode>;
321
315
  //#endregion
@@ -323,8 +317,7 @@ type CmcdReportingMode = ValueOf<typeof CmcdReportingMode>;
323
317
  /**
324
318
  * Options for formatting CMCD data values.
325
319
  *
326
- *
327
- * @beta
320
+ * @public
328
321
  */
329
322
  type CmcdFormatterOptions = {
330
323
  /**
@@ -349,8 +342,7 @@ type CmcdFormatterOptions = {
349
342
  *
350
343
  * @returns The formatted value.
351
344
  *
352
- *
353
- * @beta
345
+ * @public
354
346
  */
355
347
  type CmcdFormatter = (value: CmcdValue, options: CmcdFormatterOptions) => number | ValueOrArray<string> | ValueOrArray<SfItem>;
356
348
  //#endregion
@@ -358,8 +350,7 @@ type CmcdFormatter = (value: CmcdValue, options: CmcdFormatterOptions) => number
358
350
  /**
359
351
  * Keys that are excluded from CMCD event mode.
360
352
  *
361
- *
362
- * @beta
353
+ * @public
363
354
  */
364
355
  type CmcdEventExcludedKeys = "bsd" | "d" | "dl" | "nor" | "ot" | "rtp" | "sid" | "su";
365
356
  //#endregion
@@ -370,7 +361,7 @@ type CmcdEventExcludedKeys = "bsd" | "d" | "dl" | "nor" | "ot" | "rtp" | "sid" |
370
361
  *
371
362
  * @enum
372
363
  *
373
- * @beta
364
+ * @public
374
365
  */
375
366
  declare const CmcdEventType: {
376
367
  /**
@@ -415,7 +406,7 @@ declare const CmcdEventType: {
415
406
  readonly RESPONSE_RECEIVED: "rr";
416
407
  };
417
408
  /**
418
- * @beta
409
+ * @public
419
410
  */
420
411
  type CmcdEventType = ValueOf<typeof CmcdEventType>;
421
412
  //#endregion
@@ -426,7 +417,7 @@ type CmcdEventType = ValueOf<typeof CmcdEventType>;
426
417
  *
427
418
  * @enum
428
419
  *
429
- * @beta
420
+ * @public
430
421
  */
431
422
  declare const CmcdPlayerState: {
432
423
  /**
@@ -471,7 +462,7 @@ declare const CmcdPlayerState: {
471
462
  readonly PRELOADING: "d";
472
463
  };
473
464
  /**
474
- * @beta
465
+ * @public
475
466
  */
476
467
  type CmcdPlayerState = ValueOf<typeof CmcdPlayerState>;
477
468
  //#endregion
@@ -479,8 +470,7 @@ type CmcdPlayerState = ValueOf<typeof CmcdPlayerState>;
479
470
  /**
480
471
  * Common Media Client Data (CMCD) is a standardized set of HTTP request header fields and query string parameters.
481
472
  *
482
- *
483
- * @beta
473
+ * @public
484
474
  */
485
475
  type CmcdRequest = Omit<Cmcd, "nrr"> & {
486
476
  /**
@@ -706,8 +696,7 @@ type CmcdRequest = Omit<Cmcd, "nrr"> & {
706
696
  * Common Media Client Data (CMCD) version 2 specification. It encapsulates
707
697
  * the reporting event token.
708
698
  *
709
- *
710
- * @beta
699
+ * @public
711
700
  */
712
701
  type CmcdEvent = Omit<CmcdRequest, CmcdEventExcludedKeys> & {
713
702
  /**
@@ -749,8 +738,7 @@ type CmcdEvent = Omit<CmcdRequest, CmcdEventExcludedKeys> & {
749
738
  *
750
739
  * Defines the keys for the CMCD (Common Media Client Data) v2 Response group.
751
740
  *
752
- *
753
- * @beta
741
+ * @public
754
742
  */
755
743
  type CmcdResponse = CmcdRequest & {
756
744
  /**
@@ -831,8 +819,7 @@ type CmcdResponse = CmcdRequest & {
831
819
  /**
832
820
  * All CMCD data types combined.
833
821
  *
834
- *
835
- * @beta
822
+ * @public
836
823
  */
837
824
  type CmcdData = Cmcd & CmcdRequest & CmcdEvent & CmcdResponse;
838
825
  //#endregion
@@ -840,8 +827,7 @@ type CmcdData = Cmcd & CmcdRequest & CmcdEvent & CmcdResponse;
840
827
  /**
841
828
  * A CMCD key.
842
829
  *
843
- *
844
- * @beta
830
+ * @public
845
831
  */
846
832
  type CmcdKey = keyof CmcdData;
847
833
  //#endregion
@@ -849,8 +835,7 @@ type CmcdKey = keyof CmcdData;
849
835
  /**
850
836
  * A map of CMCD keys to format functions.
851
837
  *
852
- *
853
- * @beta
838
+ * @public
854
839
  */
855
840
  type CmcdFormatterMap = Record<CmcdKey, CmcdFormatter>;
856
841
  //#endregion
@@ -858,8 +843,7 @@ type CmcdFormatterMap = Record<CmcdKey, CmcdFormatter>;
858
843
  /**
859
844
  * CMCD object header name.
860
845
  *
861
- *
862
- * @beta
846
+ * @public
863
847
  */
864
848
  declare const CMCD_OBJECT = "CMCD-Object";
865
849
  //#endregion
@@ -867,8 +851,7 @@ declare const CMCD_OBJECT = "CMCD-Object";
867
851
  /**
868
852
  * CMCD request header name.
869
853
  *
870
- *
871
- * @beta
854
+ * @public
872
855
  */
873
856
  declare const CMCD_REQUEST = "CMCD-Request";
874
857
  //#endregion
@@ -876,8 +859,7 @@ declare const CMCD_REQUEST = "CMCD-Request";
876
859
  /**
877
860
  * CMCD session header name.
878
861
  *
879
- *
880
- * @beta
862
+ * @public
881
863
  */
882
864
  declare const CMCD_SESSION = "CMCD-Session";
883
865
  //#endregion
@@ -885,8 +867,7 @@ declare const CMCD_SESSION = "CMCD-Session";
885
867
  /**
886
868
  * CMCD status header name.
887
869
  *
888
- *
889
- * @beta
870
+ * @public
890
871
  */
891
872
  declare const CMCD_STATUS = "CMCD-Status";
892
873
  //#endregion
@@ -897,7 +878,7 @@ declare const CMCD_STATUS = "CMCD-Status";
897
878
  *
898
879
  * @enum
899
880
  *
900
- * @beta
881
+ * @public
901
882
  */
902
883
  declare const CmcdHeaderField: {
903
884
  /**
@@ -918,7 +899,7 @@ declare const CmcdHeaderField: {
918
899
  readonly STATUS: typeof CMCD_STATUS;
919
900
  };
920
901
  /**
921
- * @beta
902
+ * @public
922
903
  */
923
904
  type CmcdHeaderField = ValueOf<typeof CmcdHeaderField>;
924
905
  //#endregion
@@ -926,8 +907,7 @@ type CmcdHeaderField = ValueOf<typeof CmcdHeaderField>;
926
907
  /**
927
908
  * A map of CMCD header fields to CMCD keys.
928
909
  *
929
- *
930
- * @beta
910
+ * @public
931
911
  */
932
912
  type CmcdHeaderMap = Record<CmcdHeaderField, CmcdKey[]>;
933
913
  //#endregion
@@ -935,8 +915,7 @@ type CmcdHeaderMap = Record<CmcdHeaderField, CmcdKey[]>;
935
915
  /**
936
916
  * Options for encoding CMCD values.
937
917
  *
938
- *
939
- * @beta
918
+ * @public
940
919
  */
941
920
  type CmcdEncodeOptions = {
942
921
  /**
@@ -987,8 +966,7 @@ type CmcdEncodeOptions = {
987
966
  *
988
967
  * @returns The headers with the CMCD header shards appended.
989
968
  *
990
- *
991
- * @beta
969
+ * @public
992
970
  *
993
971
  * @example
994
972
  * {@includeCode ../test/appendCmcdHeaders.test.ts#example}
@@ -1005,8 +983,7 @@ declare function appendCmcdHeaders(headers: Record<string, string>, cmcd: Cmcd,
1005
983
  *
1006
984
  * @returns The URL with the CMCD query args appended.
1007
985
  *
1008
- *
1009
- * @beta
986
+ * @public
1010
987
  *
1011
988
  * @example
1012
989
  * {@includeCode ../test/appendCmcdQuery.test.ts#example}
@@ -1017,8 +994,7 @@ declare function appendCmcdQuery(url: string, cmcd: Cmcd, options?: CmcdEncodeOp
1017
994
  /**
1018
995
  * Defines the common keys for CMCD (Common Media Client Data) version 2.
1019
996
  *
1020
- *
1021
- * @beta
997
+ * @public
1022
998
  */
1023
999
  declare const CMCD_COMMON_KEYS: readonly ["ab", "bg", "bl", "br", "bs", "bsd", "cdn", "cid", "cs", "df", "ec", "lab", "lb", "ltc", "msd", "mtp", "pb", "pr", "pt", "sf", "sid", "sn", "st", "sta", "tab", "tb", "tbl", "tpb", "ts", "v"];
1024
1000
  //#endregion
@@ -1026,8 +1002,7 @@ declare const CMCD_COMMON_KEYS: readonly ["ab", "bg", "bl", "br", "bs", "bsd", "
1026
1002
  /**
1027
1003
  * The default time interval in secondswhen using using event mode
1028
1004
  *
1029
- *
1030
- * @beta
1005
+ * @public
1031
1006
  */
1032
1007
  declare const CMCD_DEFAULT_TIME_INTERVAL = 30;
1033
1008
  //#endregion
@@ -1035,8 +1010,7 @@ declare const CMCD_DEFAULT_TIME_INTERVAL = 30;
1035
1010
  /**
1036
1011
  * Defines the event-specific keys for CMCD (Common Media Client Data) version 2.
1037
1012
  *
1038
- *
1039
- * @beta
1013
+ * @public
1040
1014
  */
1041
1015
  declare const CMCD_EVENT_KEYS: readonly ["e"];
1042
1016
  //#endregion
@@ -1044,8 +1018,7 @@ declare const CMCD_EVENT_KEYS: readonly ["e"];
1044
1018
  /**
1045
1019
  * The default formatters for CMCD values.
1046
1020
  *
1047
- *
1048
- * @beta
1021
+ * @public
1049
1022
  */
1050
1023
  declare const CMCD_FORMATTER_MAP: Record<string, CmcdFormatter>;
1051
1024
  //#endregion
@@ -1053,8 +1026,7 @@ declare const CMCD_FORMATTER_MAP: Record<string, CmcdFormatter>;
1053
1026
  /**
1054
1027
  * CMCD `headers` transmission mode.
1055
1028
  *
1056
- *
1057
- * @beta
1029
+ * @public
1058
1030
  */
1059
1031
  declare const CMCD_HEADERS = "headers";
1060
1032
  //#endregion
@@ -1062,8 +1034,7 @@ declare const CMCD_HEADERS = "headers";
1062
1034
  /**
1063
1035
  * CMCD `json` transmission mode.
1064
1036
  *
1065
- *
1066
- * @beta
1037
+ * @public
1067
1038
  *
1068
1039
  * @deprecated JSON transmission mode is deprecated and will be removed in future versions.
1069
1040
  */
@@ -1073,8 +1044,7 @@ declare const CMCD_JSON = "json";
1073
1044
  /**
1074
1045
  * A list of all CMCD keys.
1075
1046
  *
1076
- *
1077
- * @beta
1047
+ * @public
1078
1048
  */
1079
1049
  declare const CMCD_KEYS: CmcdKey[];
1080
1050
  //#endregion
@@ -1082,8 +1052,7 @@ declare const CMCD_KEYS: CmcdKey[];
1082
1052
  /**
1083
1053
  * CMCD parameter name.
1084
1054
  *
1085
- *
1086
- * @beta
1055
+ * @public
1087
1056
  */
1088
1057
  declare const CMCD_PARAM = "CMCD";
1089
1058
  //#endregion
@@ -1091,8 +1060,7 @@ declare const CMCD_PARAM = "CMCD";
1091
1060
  /**
1092
1061
  * CMCD `query` transmission mode.
1093
1062
  *
1094
- *
1095
- * @beta
1063
+ * @public
1096
1064
  */
1097
1065
  declare const CMCD_QUERY = "query";
1098
1066
  //#endregion
@@ -1100,8 +1068,7 @@ declare const CMCD_QUERY = "query";
1100
1068
  /**
1101
1069
  * Defines the request-specific keys for CMCD (Common Media Client Data) version 2.
1102
1070
  *
1103
- *
1104
- * @beta
1071
+ * @public
1105
1072
  */
1106
1073
  declare const CMCD_REQUEST_KEYS: readonly ["d", "dl", "nor", "ot", "rtp", "su"];
1107
1074
  //#endregion
@@ -1109,8 +1076,7 @@ declare const CMCD_REQUEST_KEYS: readonly ["d", "dl", "nor", "ot", "rtp", "su"];
1109
1076
  /**
1110
1077
  * CMCD v2 - Response-only and timing keys.
1111
1078
  *
1112
- *
1113
- * @beta
1079
+ * @public
1114
1080
  */
1115
1081
  declare const CMCD_RESPONSE_KEYS: readonly ["cmsdd", "cmsds", "rc", "smrt", "ttfb", "ttfbb", "ttlb", "url"];
1116
1082
  //#endregion
@@ -1118,8 +1084,7 @@ declare const CMCD_RESPONSE_KEYS: readonly ["cmsdd", "cmsds", "rc", "smrt", "ttf
1118
1084
  /**
1119
1085
  * CMCD response mode variable name.
1120
1086
  *
1121
- *
1122
- * @beta
1087
+ * @public
1123
1088
  */
1124
1089
  declare const CMCD_RESPONSE_MODE = "response";
1125
1090
  //#endregion
@@ -1127,8 +1092,7 @@ declare const CMCD_RESPONSE_MODE = "response";
1127
1092
  /**
1128
1093
  * CMCD Version 1
1129
1094
  *
1130
- *
1131
- * @beta
1095
+ * @public
1132
1096
  */
1133
1097
  declare const CMCD_V1 = 1;
1134
1098
  //#endregion
@@ -1136,8 +1100,7 @@ declare const CMCD_V1 = 1;
1136
1100
  /**
1137
1101
  * Defines the keys for CMCD (Common Media Client Data) version 1.
1138
1102
  *
1139
- *
1140
- * @beta
1103
+ * @public
1141
1104
  */
1142
1105
  declare const CMCD_V1_KEYS: readonly ["bl", "br", "bs", "cid", "d", "dl", "mtp", "nor", "nrr", "ot", "pr", "rtp", "sf", "sid", "st", "su", "tb", "v"];
1143
1106
  //#endregion
@@ -1145,8 +1108,7 @@ declare const CMCD_V1_KEYS: readonly ["bl", "br", "bs", "cid", "d", "dl", "mtp",
1145
1108
  /**
1146
1109
  * CMCD Version 2
1147
1110
  *
1148
- *
1149
- * @beta
1111
+ * @public
1150
1112
  */
1151
1113
  declare const CMCD_V2 = 2;
1152
1114
  //#endregion
@@ -1157,7 +1119,7 @@ declare const CMCD_V2 = 2;
1157
1119
  *
1158
1120
  * @enum
1159
1121
  *
1160
- * @beta
1122
+ * @public
1161
1123
  */
1162
1124
  declare const CmcdTransmissionMode: {
1163
1125
  /**
@@ -1176,7 +1138,7 @@ declare const CmcdTransmissionMode: {
1176
1138
  readonly HEADERS: typeof CMCD_HEADERS;
1177
1139
  };
1178
1140
  /**
1179
- * @beta
1141
+ * @public
1180
1142
  */
1181
1143
  type CmcdTransmissionMode = ValueOf<typeof CmcdTransmissionMode>;
1182
1144
  //#endregion
@@ -1187,7 +1149,7 @@ type CmcdTransmissionMode = ValueOf<typeof CmcdTransmissionMode>;
1187
1149
  *
1188
1150
  * @enum
1189
1151
  *
1190
- * @beta
1152
+ * @public
1191
1153
  *
1192
1154
  * @deprecated Use {@link CmcdTransmissionMode} instead.
1193
1155
  *
@@ -1195,7 +1157,7 @@ type CmcdTransmissionMode = ValueOf<typeof CmcdTransmissionMode>;
1195
1157
  */
1196
1158
  declare const CmcdEncoding: typeof CmcdTransmissionMode;
1197
1159
  /**
1198
- * @beta
1160
+ * @public
1199
1161
  */
1200
1162
  type CmcdEncoding = ValueOf<typeof CmcdEncoding>;
1201
1163
  //#endregion
@@ -1203,8 +1165,7 @@ type CmcdEncoding = ValueOf<typeof CmcdEncoding>;
1203
1165
  /**
1204
1166
  * The default formatters for CMCD values.
1205
1167
  *
1206
- *
1207
- * @beta
1168
+ * @public
1208
1169
  *
1209
1170
  * @deprecated Use `CMCD_FORMATTER_MAP` instead.
1210
1171
  */
@@ -1214,8 +1175,7 @@ declare const CmcdFormatters: Record<string, CmcdFormatter>;
1214
1175
  /**
1215
1176
  * A map of CMCD header fields to CMCD keys.
1216
1177
  *
1217
- *
1218
- * @beta
1178
+ * @public
1219
1179
  *
1220
1180
  * @deprecated Use `CmcdHeaderMap` instead.
1221
1181
  */
@@ -1225,8 +1185,7 @@ type CmcdHeadersMap = Record<CmcdHeaderField, CmcdKey[]>;
1225
1185
  /**
1226
1186
  * A CMCD report target configuration.
1227
1187
  *
1228
- *
1229
- * @beta
1188
+ * @public
1230
1189
  */
1231
1190
  type CmcdReportTarget = {
1232
1191
  /**
@@ -1271,8 +1230,7 @@ type CmcdReportTarget = {
1271
1230
  *
1272
1231
  * @returns The decoded CMCD object.
1273
1232
  *
1274
- *
1275
- * @beta
1233
+ * @public
1276
1234
  *
1277
1235
  * @example
1278
1236
  * {@includeCode ../test/decodeCmcd.test.ts#example}
@@ -1288,8 +1246,7 @@ declare function decodeCmcd<T extends CmcdData = CmcdData>(cmcd: string): T;
1288
1246
  *
1289
1247
  * @returns The encoded CMCD string.
1290
1248
  *
1291
- *
1292
- * @beta
1249
+ * @public
1293
1250
  *
1294
1251
  * @example
1295
1252
  * {@includeCode ../test/encodeCmcd.test.ts#example}
@@ -1304,8 +1261,7 @@ declare function encodeCmcd(cmcd: CmcdData, options?: CmcdEncodeOptions): string
1304
1261
  *
1305
1262
  * @returns The decoded CMCD data.
1306
1263
  *
1307
- *
1308
- * @beta
1264
+ * @public
1309
1265
  *
1310
1266
  * @example
1311
1267
  * {@includeCode ../test/fromCmcdHeaders.test.ts#example}
@@ -1320,8 +1276,7 @@ declare function fromCmcdHeaders(headers: Record<string, string> | Headers): Cmc
1320
1276
  *
1321
1277
  * @returns The decoded CMCD data.
1322
1278
  *
1323
- *
1324
- * @beta
1279
+ * @public
1325
1280
  *
1326
1281
  * @example
1327
1282
  * {@includeCode ../test/fromCmcdQuery.test.ts#example}
@@ -1336,8 +1291,7 @@ declare function fromCmcdQuery(query: string | URLSearchParams): Cmcd;
1336
1291
  *
1337
1292
  * @returns The decoded CMCD data.
1338
1293
  *
1339
- *
1340
- * @beta
1294
+ * @public
1341
1295
  *
1342
1296
  * @example
1343
1297
  * {@includeCode ../test/fromCmcdUrl.test.ts#example}
@@ -1353,8 +1307,7 @@ declare function fromCmcdUrl(url: string): Cmcd;
1353
1307
  *
1354
1308
  * @returns The CMCD header shards.
1355
1309
  *
1356
- *
1357
- * @beta
1310
+ * @public
1358
1311
  */
1359
1312
  declare function groupCmcdHeaders(cmcd: CmcdData, customHeaderMap?: Partial<CmcdHeaderMap>): Record<CmcdHeaderField, CmcdData>;
1360
1313
  //#endregion
@@ -1366,8 +1319,7 @@ declare function groupCmcdHeaders(cmcd: CmcdData, customHeaderMap?: Partial<Cmcd
1366
1319
  *
1367
1320
  * @returns `true` if the key is a custom key, `false` otherwise.
1368
1321
  *
1369
- *
1370
- * @beta
1322
+ * @public
1371
1323
  */
1372
1324
  declare function isCmcdCustomKey(key: CmcdKey): boolean;
1373
1325
  //#endregion
@@ -1379,8 +1331,7 @@ declare function isCmcdCustomKey(key: CmcdKey): boolean;
1379
1331
  *
1380
1332
  * @returns `true` if the key is a valid CMCD event key, `false` otherwise.
1381
1333
  *
1382
- *
1383
- * @beta
1334
+ * @public
1384
1335
  *
1385
1336
  * @example
1386
1337
  * {@includeCode ../test/isCmcdEventKey.test.ts#example}
@@ -1395,8 +1346,7 @@ declare function isCmcdEventKey(key: string): key is keyof CmcdEvent;
1395
1346
  *
1396
1347
  * @returns `true` if the key is a valid CMCD request key, `false` otherwise.
1397
1348
  *
1398
- *
1399
- * @beta
1349
+ * @public
1400
1350
  *
1401
1351
  * @example
1402
1352
  * {@includeCode ../test/isCmcdRequestKey.test.ts#example}
@@ -1413,7 +1363,7 @@ declare function isCmcdRequestKey(key: string): key is keyof CmcdRequest;
1413
1363
  *
1414
1364
  * @group CMCD
1415
1365
  *
1416
- * @beta
1366
+ * @public
1417
1367
  *
1418
1368
  * @example
1419
1369
  * {@includeCode ../../test/cmcd/isCmcdResponseReceivedKey.test.ts#example}
@@ -1428,8 +1378,7 @@ declare function isCmcdResponseReceivedKey(key: string): key is keyof CmcdRespon
1428
1378
  *
1429
1379
  * @returns `true` if the key should be included, `false` otherwise.
1430
1380
  *
1431
- *
1432
- * @beta
1381
+ * @public
1433
1382
  *
1434
1383
  * @example
1435
1384
  * {@includeCode ../test/isCmcdV1Key.test.ts#example}
@@ -1443,8 +1392,7 @@ declare function isCmcdV1Key(key: string): key is keyof Cmcd;
1443
1392
  * @param obj - The CMCD object to process.
1444
1393
  * @param options - Options for encoding.
1445
1394
  *
1446
- *
1447
- * @beta
1395
+ * @public
1448
1396
  */
1449
1397
  declare function prepareCmcdData(obj: Record<string, any>, options?: CmcdEncodeOptions): CmcdData;
1450
1398
  //#endregion
@@ -1457,8 +1405,7 @@ declare function prepareCmcdData(obj: Record<string, any>, options?: CmcdEncodeO
1457
1405
  *
1458
1406
  * @returns The CMCD header shards.
1459
1407
  *
1460
- *
1461
- * @beta
1408
+ * @public
1462
1409
  *
1463
1410
  * @example
1464
1411
  * {@includeCode ../test/toCmcdHeaders.test.ts#example}
@@ -1474,8 +1421,7 @@ declare function toCmcdHeaders(cmcd: CmcdData, options?: CmcdEncodeOptions): Rec
1474
1421
  *
1475
1422
  * @returns The CMCD JSON.
1476
1423
  *
1477
- *
1478
- * @beta
1424
+ * @public
1479
1425
  *
1480
1426
  * @deprecated Sending CMCD as JSON objects is deprecated. Use `toCmcdUrl` to create an array of url strings instead.
1481
1427
  */
@@ -1490,8 +1436,7 @@ declare function toCmcdJson(cmcd: Cmcd, options?: CmcdEncodeOptions): string;
1490
1436
  *
1491
1437
  * @returns The CMCD query arg.
1492
1438
  *
1493
- *
1494
- * @beta
1439
+ * @public
1495
1440
  *
1496
1441
  * @example
1497
1442
  * {@includeCode ../test/toCmcdQuery.test.ts#example}
@@ -1507,8 +1452,7 @@ declare function toCmcdQuery(cmcd: Cmcd, options?: CmcdEncodeOptions): string;
1507
1452
  *
1508
1453
  * @return A CMCD report object
1509
1454
  *
1510
- *
1511
- * @beta
1455
+ * @public
1512
1456
  *
1513
1457
  * @example
1514
1458
  * {@includeCode ../test/toCmcdReport.test.ts#example}
@@ -1526,8 +1470,7 @@ declare function toCmcdReport(data: CmcdData, target: CmcdReportTarget): Request
1526
1470
  *
1527
1471
  * @returns The URL encoded CMCD data.
1528
1472
  *
1529
- *
1530
- * @beta
1473
+ * @public
1531
1474
  */
1532
1475
  declare function toCmcdUrl(cmcd: Cmcd, options?: CmcdEncodeOptions): string;
1533
1476
  //#endregion