@datocms/cma-client 5.1.29 → 5.1.30

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.
@@ -88,7 +88,7 @@ class Client {
88
88
  return this.config.baseUrl || Client.defaultBaseUrl;
89
89
  }
90
90
  request(options) {
91
- return (0, rest_client_utils_1.request)(Object.assign(Object.assign(Object.assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v5.1.29', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: Object.assign(Object.assign(Object.assign({}, (this.config.extraHeaders || {})), (this.config.environment
91
+ return (0, rest_client_utils_1.request)(Object.assign(Object.assign(Object.assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v5.1.30', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: Object.assign(Object.assign(Object.assign({}, (this.config.extraHeaders || {})), (this.config.environment
92
92
  ? { 'X-Environment': this.config.environment }
93
93
  : {})), { 'X-API-Version': '3' }), fetchJobResult: (jobId) => {
94
94
  return this.jobResultsFetcher
@@ -815,19 +815,19 @@ export type ItemInstancesHrefSchema<D extends ItemTypeDefinition = ItemTypeDefin
815
815
  */
816
816
  filter?: {
817
817
  /**
818
- * Record (or block record) IDs to fetch, comma separated. If you use this filter, you _must not_ use `filter[type]` or `filter[fields]`
818
+ * Record (or block record) IDs to fetch, comma separated. If you use this filter, you _must not_ use `filter[type]`. You can combine it with meta fields (like `_published_at`, `_status`), but _must not_ use model-specific fields
819
819
  */
820
820
  ids?: string;
821
821
  /**
822
- * Model ID or `api_key` to filter. If you use this filter, you _must not_ use `filter[ids]`. Comma separated values are accepted, but you _must not_ use `filter[fields]` in this case
822
+ * Model/Block model ID or `api_key` to filter. If you use this filter, you _must not_ use `filter[ids]`. When passing a single element, you can use both meta fields and model-specific fields (note: model-specific fields only work with models, not block models). When passing multiple comma-separated values, you can use meta fields but _must not_ use model-specific fields
823
823
  */
824
824
  type?: string;
825
825
  /**
826
- * Textual query to match. You _must not_ use `filter[ids]`. If `locale` is defined, search within that locale. Otherwise environment's main locale will be used.
826
+ * Textual query to match. Can be combined with other filters. When used, only records (not blocks) are returned. If `locale` is defined, search within that locale. Otherwise environment's main locale will be used.
827
827
  */
828
828
  query?: string;
829
829
  /**
830
- * Same as [GraphQL API records filters](/docs/content-delivery-api/filtering-records): you must use square brackets to indicate nesting levels. E.g. if you wanna [filter by parent record](/docs/content-delivery-api/filtering-records#parent) in a tree of records, you must use `filter[fields][parent][eq]=<ID_VALUE>`. Use snake_case for fields names. If `locale` is defined, search within that locale. Otherwise environment's main locale will be used.
830
+ * Filter by record fields. Meta fields (like `_published_at`, `_status`) can be used in most cases. Model-specific fields (like `title`, `name`) require `filter[type]` to specify a single model, and only work with models (not block models). Same syntax as [GraphQL API records filters](/docs/content-delivery-api/filtering-records): use square brackets to indicate nesting levels. E.g. `filter[fields][parent][eq]=<ID_VALUE>`. Use snake_case for field names. If `locale` is defined, search within that locale. Otherwise environment's main locale will be used.
831
831
  */
832
832
  fields?: ToItemHrefSchemaField<D>;
833
833
  /**
@@ -893,7 +893,7 @@ export type ItemSelfHrefSchema = {
893
893
  */
894
894
  nested?: boolean;
895
895
  /**
896
- * Whether you want the currently published versions (`published`, default) of your records, or the latest available (`current`)
896
+ * Whether you want the currently published versions (`published`) of your records, or the latest available (`current`, default)
897
897
  */
898
898
  version?: string;
899
899
  [k: string]: unknown;
@@ -3566,6 +3566,10 @@ export type SitePlan = {
3566
3566
  * The number of available encoding seconds to Mux.com
3567
3567
  */
3568
3568
  mux_encoding_seconds: null | number;
3569
+ /**
3570
+ * The number of images you can analyze for smart tags detections
3571
+ */
3572
+ smart_tags_detections: null | number;
3569
3573
  /**
3570
3574
  * The number of different API tokens you can generate, each which different permissions
3571
3575
  */
@@ -3802,6 +3806,10 @@ export type SitePlanAttributes = {
3802
3806
  * The number of available encoding seconds to Mux.com
3803
3807
  */
3804
3808
  mux_encoding_seconds: null | number;
3809
+ /**
3810
+ * The number of images you can analyze for smart tags detections
3811
+ */
3812
+ smart_tags_detections: null | number;
3805
3813
  /**
3806
3814
  * The number of different API tokens you can generate, each which different permissions
3807
3815
  */
@@ -9892,6 +9900,10 @@ export type DailyUsage = {
9892
9900
  * Video encoding seconds
9893
9901
  */
9894
9902
  mux_encoded_seconds: number;
9903
+ /**
9904
+ * Number of images analyzed for smart tags
9905
+ */
9906
+ smart_tags_detections: number;
9895
9907
  };
9896
9908
  /**
9897
9909
  * JSON API data
@@ -9946,6 +9958,10 @@ export type DailyUsageAttributes = {
9946
9958
  * Video encoding seconds
9947
9959
  */
9948
9960
  mux_encoded_seconds: number;
9961
+ /**
9962
+ * Number of images analyzed for smart tags
9963
+ */
9964
+ smart_tags_detections: number;
9949
9965
  };
9950
9966
  /**
9951
9967
  * You can use counters to analyze your project's data consumption over a period of time. Counters are especially useful if your project is exceeding its API calls/traffic quota limits, to better understand where and how requests are originating. Counters are updated every minute, so you can debug in real-time the results of your changes.
@@ -62,7 +62,7 @@ export class Client {
62
62
  return this.config.baseUrl || Client.defaultBaseUrl;
63
63
  }
64
64
  request(options) {
65
- return request(Object.assign(Object.assign(Object.assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v5.1.29', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: Object.assign(Object.assign(Object.assign({}, (this.config.extraHeaders || {})), (this.config.environment
65
+ return request(Object.assign(Object.assign(Object.assign({}, this.config), options), { logFn: this.config.logFn || console.log, userAgent: '@datocms/cma-client v5.1.30', baseUrl: this.baseUrl, preCallStack: new Error().stack, extraHeaders: Object.assign(Object.assign(Object.assign({}, (this.config.extraHeaders || {})), (this.config.environment
66
66
  ? { 'X-Environment': this.config.environment }
67
67
  : {})), { 'X-API-Version': '3' }), fetchJobResult: (jobId) => {
68
68
  return this.jobResultsFetcher
@@ -634,19 +634,19 @@ export type ItemInstancesHrefSchema<D extends ItemTypeDefinition = ItemTypeDefin
634
634
  */
635
635
  filter?: {
636
636
  /**
637
- * Record (or block record) IDs to fetch, comma separated. If you use this filter, you _must not_ use `filter[type]` or `filter[fields]`
637
+ * Record (or block record) IDs to fetch, comma separated. If you use this filter, you _must not_ use `filter[type]`. You can combine it with meta fields (like `_published_at`, `_status`), but _must not_ use model-specific fields
638
638
  */
639
639
  ids?: string;
640
640
  /**
641
- * Model ID or `api_key` to filter. If you use this filter, you _must not_ use `filter[ids]`. Comma separated values are accepted, but you _must not_ use `filter[fields]` in this case
641
+ * Model/Block model ID or `api_key` to filter. If you use this filter, you _must not_ use `filter[ids]`. When passing a single element, you can use both meta fields and model-specific fields (note: model-specific fields only work with models, not block models). When passing multiple comma-separated values, you can use meta fields but _must not_ use model-specific fields
642
642
  */
643
643
  type?: string;
644
644
  /**
645
- * Textual query to match. You _must not_ use `filter[ids]`. If `locale` is defined, search within that locale. Otherwise environment's main locale will be used.
645
+ * Textual query to match. Can be combined with other filters. When used, only records (not blocks) are returned. If `locale` is defined, search within that locale. Otherwise environment's main locale will be used.
646
646
  */
647
647
  query?: string;
648
648
  /**
649
- * Same as [GraphQL API records filters](/docs/content-delivery-api/filtering-records): you must use square brackets to indicate nesting levels. E.g. if you wanna [filter by parent record](/docs/content-delivery-api/filtering-records#parent) in a tree of records, you must use `filter[fields][parent][eq]=<ID_VALUE>`. Use snake_case for fields names. If `locale` is defined, search within that locale. Otherwise environment's main locale will be used.
649
+ * Filter by record fields. Meta fields (like `_published_at`, `_status`) can be used in most cases. Model-specific fields (like `title`, `name`) require `filter[type]` to specify a single model, and only work with models (not block models). Same syntax as [GraphQL API records filters](/docs/content-delivery-api/filtering-records): use square brackets to indicate nesting levels. E.g. `filter[fields][parent][eq]=<ID_VALUE>`. Use snake_case for field names. If `locale` is defined, search within that locale. Otherwise environment's main locale will be used.
650
650
  */
651
651
  fields?: ToItemHrefSchemaField<D>;
652
652
  /**
@@ -707,7 +707,7 @@ export type ItemSelfHrefSchema = {
707
707
  */
708
708
  nested?: boolean;
709
709
  /**
710
- * Whether you want the currently published versions (`published`, default) of your records, or the latest available (`current`)
710
+ * Whether you want the currently published versions (`published`) of your records, or the latest available (`current`, default)
711
711
  */
712
712
  version?: string;
713
713
  [k: string]: unknown;
@@ -3123,6 +3123,10 @@ export type SitePlanAttributes = {
3123
3123
  * The number of available encoding seconds to Mux.com
3124
3124
  */
3125
3125
  mux_encoding_seconds: null | number;
3126
+ /**
3127
+ * The number of images you can analyze for smart tags detections
3128
+ */
3129
+ smart_tags_detections: null | number;
3126
3130
  /**
3127
3131
  * The number of different API tokens you can generate, each which different permissions
3128
3132
  */
@@ -10389,6 +10393,10 @@ export type DailyUsageAttributes = {
10389
10393
  * Video encoding seconds
10390
10394
  */
10391
10395
  mux_encoded_seconds: number;
10396
+ /**
10397
+ * Number of images analyzed for smart tags
10398
+ */
10399
+ smart_tags_detections: number;
10392
10400
  };
10393
10401
  /**
10394
10402
  * JSON API data
@@ -815,19 +815,19 @@ export type ItemInstancesHrefSchema<D extends ItemTypeDefinition = ItemTypeDefin
815
815
  */
816
816
  filter?: {
817
817
  /**
818
- * Record (or block record) IDs to fetch, comma separated. If you use this filter, you _must not_ use `filter[type]` or `filter[fields]`
818
+ * Record (or block record) IDs to fetch, comma separated. If you use this filter, you _must not_ use `filter[type]`. You can combine it with meta fields (like `_published_at`, `_status`), but _must not_ use model-specific fields
819
819
  */
820
820
  ids?: string;
821
821
  /**
822
- * Model ID or `api_key` to filter. If you use this filter, you _must not_ use `filter[ids]`. Comma separated values are accepted, but you _must not_ use `filter[fields]` in this case
822
+ * Model/Block model ID or `api_key` to filter. If you use this filter, you _must not_ use `filter[ids]`. When passing a single element, you can use both meta fields and model-specific fields (note: model-specific fields only work with models, not block models). When passing multiple comma-separated values, you can use meta fields but _must not_ use model-specific fields
823
823
  */
824
824
  type?: string;
825
825
  /**
826
- * Textual query to match. You _must not_ use `filter[ids]`. If `locale` is defined, search within that locale. Otherwise environment's main locale will be used.
826
+ * Textual query to match. Can be combined with other filters. When used, only records (not blocks) are returned. If `locale` is defined, search within that locale. Otherwise environment's main locale will be used.
827
827
  */
828
828
  query?: string;
829
829
  /**
830
- * Same as [GraphQL API records filters](/docs/content-delivery-api/filtering-records): you must use square brackets to indicate nesting levels. E.g. if you wanna [filter by parent record](/docs/content-delivery-api/filtering-records#parent) in a tree of records, you must use `filter[fields][parent][eq]=<ID_VALUE>`. Use snake_case for fields names. If `locale` is defined, search within that locale. Otherwise environment's main locale will be used.
830
+ * Filter by record fields. Meta fields (like `_published_at`, `_status`) can be used in most cases. Model-specific fields (like `title`, `name`) require `filter[type]` to specify a single model, and only work with models (not block models). Same syntax as [GraphQL API records filters](/docs/content-delivery-api/filtering-records): use square brackets to indicate nesting levels. E.g. `filter[fields][parent][eq]=<ID_VALUE>`. Use snake_case for field names. If `locale` is defined, search within that locale. Otherwise environment's main locale will be used.
831
831
  */
832
832
  fields?: ToItemHrefSchemaField<D>;
833
833
  /**
@@ -893,7 +893,7 @@ export type ItemSelfHrefSchema = {
893
893
  */
894
894
  nested?: boolean;
895
895
  /**
896
- * Whether you want the currently published versions (`published`, default) of your records, or the latest available (`current`)
896
+ * Whether you want the currently published versions (`published`) of your records, or the latest available (`current`, default)
897
897
  */
898
898
  version?: string;
899
899
  [k: string]: unknown;
@@ -3566,6 +3566,10 @@ export type SitePlan = {
3566
3566
  * The number of available encoding seconds to Mux.com
3567
3567
  */
3568
3568
  mux_encoding_seconds: null | number;
3569
+ /**
3570
+ * The number of images you can analyze for smart tags detections
3571
+ */
3572
+ smart_tags_detections: null | number;
3569
3573
  /**
3570
3574
  * The number of different API tokens you can generate, each which different permissions
3571
3575
  */
@@ -3802,6 +3806,10 @@ export type SitePlanAttributes = {
3802
3806
  * The number of available encoding seconds to Mux.com
3803
3807
  */
3804
3808
  mux_encoding_seconds: null | number;
3809
+ /**
3810
+ * The number of images you can analyze for smart tags detections
3811
+ */
3812
+ smart_tags_detections: null | number;
3805
3813
  /**
3806
3814
  * The number of different API tokens you can generate, each which different permissions
3807
3815
  */
@@ -9892,6 +9900,10 @@ export type DailyUsage = {
9892
9900
  * Video encoding seconds
9893
9901
  */
9894
9902
  mux_encoded_seconds: number;
9903
+ /**
9904
+ * Number of images analyzed for smart tags
9905
+ */
9906
+ smart_tags_detections: number;
9895
9907
  };
9896
9908
  /**
9897
9909
  * JSON API data
@@ -9946,6 +9958,10 @@ export type DailyUsageAttributes = {
9946
9958
  * Video encoding seconds
9947
9959
  */
9948
9960
  mux_encoded_seconds: number;
9961
+ /**
9962
+ * Number of images analyzed for smart tags
9963
+ */
9964
+ smart_tags_detections: number;
9949
9965
  };
9950
9966
  /**
9951
9967
  * You can use counters to analyze your project's data consumption over a period of time. Counters are especially useful if your project is exceeding its API calls/traffic quota limits, to better understand where and how requests are originating. Counters are updated every minute, so you can debug in real-time the results of your changes.
@@ -634,19 +634,19 @@ export type ItemInstancesHrefSchema<D extends ItemTypeDefinition = ItemTypeDefin
634
634
  */
635
635
  filter?: {
636
636
  /**
637
- * Record (or block record) IDs to fetch, comma separated. If you use this filter, you _must not_ use `filter[type]` or `filter[fields]`
637
+ * Record (or block record) IDs to fetch, comma separated. If you use this filter, you _must not_ use `filter[type]`. You can combine it with meta fields (like `_published_at`, `_status`), but _must not_ use model-specific fields
638
638
  */
639
639
  ids?: string;
640
640
  /**
641
- * Model ID or `api_key` to filter. If you use this filter, you _must not_ use `filter[ids]`. Comma separated values are accepted, but you _must not_ use `filter[fields]` in this case
641
+ * Model/Block model ID or `api_key` to filter. If you use this filter, you _must not_ use `filter[ids]`. When passing a single element, you can use both meta fields and model-specific fields (note: model-specific fields only work with models, not block models). When passing multiple comma-separated values, you can use meta fields but _must not_ use model-specific fields
642
642
  */
643
643
  type?: string;
644
644
  /**
645
- * Textual query to match. You _must not_ use `filter[ids]`. If `locale` is defined, search within that locale. Otherwise environment's main locale will be used.
645
+ * Textual query to match. Can be combined with other filters. When used, only records (not blocks) are returned. If `locale` is defined, search within that locale. Otherwise environment's main locale will be used.
646
646
  */
647
647
  query?: string;
648
648
  /**
649
- * Same as [GraphQL API records filters](/docs/content-delivery-api/filtering-records): you must use square brackets to indicate nesting levels. E.g. if you wanna [filter by parent record](/docs/content-delivery-api/filtering-records#parent) in a tree of records, you must use `filter[fields][parent][eq]=<ID_VALUE>`. Use snake_case for fields names. If `locale` is defined, search within that locale. Otherwise environment's main locale will be used.
649
+ * Filter by record fields. Meta fields (like `_published_at`, `_status`) can be used in most cases. Model-specific fields (like `title`, `name`) require `filter[type]` to specify a single model, and only work with models (not block models). Same syntax as [GraphQL API records filters](/docs/content-delivery-api/filtering-records): use square brackets to indicate nesting levels. E.g. `filter[fields][parent][eq]=<ID_VALUE>`. Use snake_case for field names. If `locale` is defined, search within that locale. Otherwise environment's main locale will be used.
650
650
  */
651
651
  fields?: ToItemHrefSchemaField<D>;
652
652
  /**
@@ -707,7 +707,7 @@ export type ItemSelfHrefSchema = {
707
707
  */
708
708
  nested?: boolean;
709
709
  /**
710
- * Whether you want the currently published versions (`published`, default) of your records, or the latest available (`current`)
710
+ * Whether you want the currently published versions (`published`) of your records, or the latest available (`current`, default)
711
711
  */
712
712
  version?: string;
713
713
  [k: string]: unknown;
@@ -3123,6 +3123,10 @@ export type SitePlanAttributes = {
3123
3123
  * The number of available encoding seconds to Mux.com
3124
3124
  */
3125
3125
  mux_encoding_seconds: null | number;
3126
+ /**
3127
+ * The number of images you can analyze for smart tags detections
3128
+ */
3129
+ smart_tags_detections: null | number;
3126
3130
  /**
3127
3131
  * The number of different API tokens you can generate, each which different permissions
3128
3132
  */
@@ -10389,6 +10393,10 @@ export type DailyUsageAttributes = {
10389
10393
  * Video encoding seconds
10390
10394
  */
10391
10395
  mux_encoded_seconds: number;
10396
+ /**
10397
+ * Number of images analyzed for smart tags
10398
+ */
10399
+ smart_tags_detections: number;
10392
10400
  };
10393
10401
  /**
10394
10402
  * JSON API data
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datocms/cma-client",
3
- "version": "5.1.29",
3
+ "version": "5.1.30",
4
4
  "description": "JS client for DatoCMS REST Content Management API",
5
5
  "keywords": [
6
6
  "datocms",
@@ -42,8 +42,8 @@
42
42
  "uuid": "^9.0.1"
43
43
  },
44
44
  "devDependencies": {
45
- "@datocms/dashboard-client": "^5.1.26",
45
+ "@datocms/dashboard-client": "^5.1.30",
46
46
  "@types/uuid": "^9.0.7"
47
47
  },
48
- "gitHead": "fa3ca9702ed3ca75e637fa97a1c5dee6ce351bec"
48
+ "gitHead": "4c56e2499a17130288db21877cc8e221e8e824d5"
49
49
  }
@@ -872,19 +872,19 @@ export type ItemInstancesHrefSchema<
872
872
  */
873
873
  filter?: {
874
874
  /**
875
- * Record (or block record) IDs to fetch, comma separated. If you use this filter, you _must not_ use `filter[type]` or `filter[fields]`
875
+ * Record (or block record) IDs to fetch, comma separated. If you use this filter, you _must not_ use `filter[type]`. You can combine it with meta fields (like `_published_at`, `_status`), but _must not_ use model-specific fields
876
876
  */
877
877
  ids?: string;
878
878
  /**
879
- * Model ID or `api_key` to filter. If you use this filter, you _must not_ use `filter[ids]`. Comma separated values are accepted, but you _must not_ use `filter[fields]` in this case
879
+ * Model/Block model ID or `api_key` to filter. If you use this filter, you _must not_ use `filter[ids]`. When passing a single element, you can use both meta fields and model-specific fields (note: model-specific fields only work with models, not block models). When passing multiple comma-separated values, you can use meta fields but _must not_ use model-specific fields
880
880
  */
881
881
  type?: string;
882
882
  /**
883
- * Textual query to match. You _must not_ use `filter[ids]`. If `locale` is defined, search within that locale. Otherwise environment's main locale will be used.
883
+ * Textual query to match. Can be combined with other filters. When used, only records (not blocks) are returned. If `locale` is defined, search within that locale. Otherwise environment's main locale will be used.
884
884
  */
885
885
  query?: string;
886
886
  /**
887
- * Same as [GraphQL API records filters](/docs/content-delivery-api/filtering-records): you must use square brackets to indicate nesting levels. E.g. if you wanna [filter by parent record](/docs/content-delivery-api/filtering-records#parent) in a tree of records, you must use `filter[fields][parent][eq]=<ID_VALUE>`. Use snake_case for fields names. If `locale` is defined, search within that locale. Otherwise environment's main locale will be used.
887
+ * Filter by record fields. Meta fields (like `_published_at`, `_status`) can be used in most cases. Model-specific fields (like `title`, `name`) require `filter[type]` to specify a single model, and only work with models (not block models). Same syntax as [GraphQL API records filters](/docs/content-delivery-api/filtering-records): use square brackets to indicate nesting levels. E.g. `filter[fields][parent][eq]=<ID_VALUE>`. Use snake_case for field names. If `locale` is defined, search within that locale. Otherwise environment's main locale will be used.
888
888
  */
889
889
  fields?: ToItemHrefSchemaField<D>;
890
890
  /**
@@ -953,7 +953,7 @@ export type ItemSelfHrefSchema = {
953
953
  */
954
954
  nested?: boolean;
955
955
  /**
956
- * Whether you want the currently published versions (`published`, default) of your records, or the latest available (`current`)
956
+ * Whether you want the currently published versions (`published`) of your records, or the latest available (`current`, default)
957
957
  */
958
958
  version?: string;
959
959
  [k: string]: unknown;
@@ -3856,6 +3856,10 @@ export type SitePlan = {
3856
3856
  * The number of available encoding seconds to Mux.com
3857
3857
  */
3858
3858
  mux_encoding_seconds: null | number;
3859
+ /**
3860
+ * The number of images you can analyze for smart tags detections
3861
+ */
3862
+ smart_tags_detections: null | number;
3859
3863
  /**
3860
3864
  * The number of different API tokens you can generate, each which different permissions
3861
3865
  */
@@ -4092,6 +4096,10 @@ export type SitePlanAttributes = {
4092
4096
  * The number of available encoding seconds to Mux.com
4093
4097
  */
4094
4098
  mux_encoding_seconds: null | number;
4099
+ /**
4100
+ * The number of images you can analyze for smart tags detections
4101
+ */
4102
+ smart_tags_detections: null | number;
4095
4103
  /**
4096
4104
  * The number of different API tokens you can generate, each which different permissions
4097
4105
  */
@@ -10643,6 +10651,10 @@ export type DailyUsage = {
10643
10651
  * Video encoding seconds
10644
10652
  */
10645
10653
  mux_encoded_seconds: number;
10654
+ /**
10655
+ * Number of images analyzed for smart tags
10656
+ */
10657
+ smart_tags_detections: number;
10646
10658
  };
10647
10659
  /**
10648
10660
  * JSON API data
@@ -10697,6 +10709,10 @@ export type DailyUsageAttributes = {
10697
10709
  * Video encoding seconds
10698
10710
  */
10699
10711
  mux_encoded_seconds: number;
10712
+ /**
10713
+ * Number of images analyzed for smart tags
10714
+ */
10715
+ smart_tags_detections: number;
10700
10716
  };
10701
10717
  /**
10702
10718
  * You can use counters to analyze your project's data consumption over a period of time. Counters are especially useful if your project is exceeding its API calls/traffic quota limits, to better understand where and how requests are originating. Counters are updated every minute, so you can debug in real-time the results of your changes.
@@ -147,7 +147,7 @@ export class Client {
147
147
  ...this.config,
148
148
  ...options,
149
149
  logFn: this.config.logFn || console.log,
150
- userAgent: '@datocms/cma-client v5.1.29',
150
+ userAgent: '@datocms/cma-client v5.1.30',
151
151
  baseUrl: this.baseUrl,
152
152
  preCallStack: new Error().stack,
153
153
  extraHeaders: {
@@ -679,19 +679,19 @@ export type ItemInstancesHrefSchema<
679
679
  */
680
680
  filter?: {
681
681
  /**
682
- * Record (or block record) IDs to fetch, comma separated. If you use this filter, you _must not_ use `filter[type]` or `filter[fields]`
682
+ * Record (or block record) IDs to fetch, comma separated. If you use this filter, you _must not_ use `filter[type]`. You can combine it with meta fields (like `_published_at`, `_status`), but _must not_ use model-specific fields
683
683
  */
684
684
  ids?: string;
685
685
  /**
686
- * Model ID or `api_key` to filter. If you use this filter, you _must not_ use `filter[ids]`. Comma separated values are accepted, but you _must not_ use `filter[fields]` in this case
686
+ * Model/Block model ID or `api_key` to filter. If you use this filter, you _must not_ use `filter[ids]`. When passing a single element, you can use both meta fields and model-specific fields (note: model-specific fields only work with models, not block models). When passing multiple comma-separated values, you can use meta fields but _must not_ use model-specific fields
687
687
  */
688
688
  type?: string;
689
689
  /**
690
- * Textual query to match. You _must not_ use `filter[ids]`. If `locale` is defined, search within that locale. Otherwise environment's main locale will be used.
690
+ * Textual query to match. Can be combined with other filters. When used, only records (not blocks) are returned. If `locale` is defined, search within that locale. Otherwise environment's main locale will be used.
691
691
  */
692
692
  query?: string;
693
693
  /**
694
- * Same as [GraphQL API records filters](/docs/content-delivery-api/filtering-records): you must use square brackets to indicate nesting levels. E.g. if you wanna [filter by parent record](/docs/content-delivery-api/filtering-records#parent) in a tree of records, you must use `filter[fields][parent][eq]=<ID_VALUE>`. Use snake_case for fields names. If `locale` is defined, search within that locale. Otherwise environment's main locale will be used.
694
+ * Filter by record fields. Meta fields (like `_published_at`, `_status`) can be used in most cases. Model-specific fields (like `title`, `name`) require `filter[type]` to specify a single model, and only work with models (not block models). Same syntax as [GraphQL API records filters](/docs/content-delivery-api/filtering-records): use square brackets to indicate nesting levels. E.g. `filter[fields][parent][eq]=<ID_VALUE>`. Use snake_case for field names. If `locale` is defined, search within that locale. Otherwise environment's main locale will be used.
695
695
  */
696
696
  fields?: ToItemHrefSchemaField<D>;
697
697
  /**
@@ -752,7 +752,7 @@ export type ItemSelfHrefSchema = {
752
752
  */
753
753
  nested?: boolean;
754
754
  /**
755
- * Whether you want the currently published versions (`published`, default) of your records, or the latest available (`current`)
755
+ * Whether you want the currently published versions (`published`) of your records, or the latest available (`current`, default)
756
756
  */
757
757
  version?: string;
758
758
  [k: string]: unknown;
@@ -3350,6 +3350,10 @@ export type SitePlanAttributes = {
3350
3350
  * The number of available encoding seconds to Mux.com
3351
3351
  */
3352
3352
  mux_encoding_seconds: null | number;
3353
+ /**
3354
+ * The number of images you can analyze for smart tags detections
3355
+ */
3356
+ smart_tags_detections: null | number;
3353
3357
  /**
3354
3358
  * The number of different API tokens you can generate, each which different permissions
3355
3359
  */
@@ -11005,6 +11009,10 @@ export type DailyUsageAttributes = {
11005
11009
  * Video encoding seconds
11006
11010
  */
11007
11011
  mux_encoded_seconds: number;
11012
+ /**
11013
+ * Number of images analyzed for smart tags
11014
+ */
11015
+ smart_tags_detections: number;
11008
11016
  };
11009
11017
  /**
11010
11018
  * JSON API data