@opencx/mcp 1.15.65 → 1.15.66

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/schema.d.ts CHANGED
@@ -668,12 +668,12 @@ export interface paths {
668
668
  };
669
669
  /**
670
670
  * Get session structured field values
671
- * @description Returns the Structured Field values recorded on a session, plus `applicable_field_ids`: the fields that currently apply to it once every "show when" rule is resolved. A field missing from that list is hidden for this session: it holds no value and rejects writes until its parent field matches.
671
+ * @description Returns the Structured Field values recorded on a session, each with its `field_key`, plus `applicable_field_ids`: the fields that currently apply to it once every "show when" rule is resolved. A field missing from that list is hidden for this session: it holds no value and rejects writes until its parent field matches.
672
672
  */
673
673
  get: operations["getSessionStructuredFieldValues"];
674
674
  /**
675
675
  * Set session structured field values
676
- * @description Upserts Structured Field values on a session; `null` clears a field. Every value is validated against its live field definition (an enum leaf choice, a user/team/tag of the organization, or a typed scalar), and a bad entry rejects the whole batch. A value on a field whose "show when" rule is unmet after the batch is rejected with 400; set the parent field in the same batch instead. Values whose field stops applying because a parent changed are cleared automatically. Returns the full current list with `applicable_field_ids`.
676
+ * @description Upserts Structured Field values on a session; `null` clears a field. Name each field by `field_id` or by its `field_key` (the API name); send Boolean and Number values as JSON `true`/`false` and numbers, or as strings. Every value is validated against its live field definition (an enum leaf choice, a user/team/tag of the organization, or a typed scalar), and a bad entry rejects the whole batch. A value on a field whose "show when" rule is unmet after the batch is rejected with 400; set the parent field in the same batch instead. Values whose field stops applying because a parent changed are cleared automatically. Returns the full current list with `applicable_field_ids`.
677
677
  */
678
678
  put: operations["setSessionStructuredFieldValues"];
679
679
  post?: never;
@@ -894,12 +894,12 @@ export interface paths {
894
894
  };
895
895
  /**
896
896
  * Get contact structured field values
897
- * @description Returns the Structured Field values recorded on a contact, plus `applicable_field_ids`: the fields that currently apply to it once every "show when" rule is resolved. A field missing from that list is hidden for this contact: it holds no value and rejects writes until its parent field matches.
897
+ * @description Returns the Structured Field values recorded on a contact, each with its `field_key`, plus `applicable_field_ids`: the fields that currently apply to it once every "show when" rule is resolved. A field missing from that list is hidden for this contact: it holds no value and rejects writes until its parent field matches.
898
898
  */
899
899
  get: operations["getContactStructuredFieldValues"];
900
900
  /**
901
901
  * Set contact structured field values
902
- * @description Upserts Structured Field values on a contact; `null` clears a field. Fields are the same definitions sessions use; a contact holds its own values. Every value is validated against its live field definition (an enum leaf choice, a user/team/tag of the organization, or a typed scalar), and a bad entry rejects the whole batch. A value on a field whose "show when" rule is unmet after the batch is rejected with 400; set the parent field in the same batch instead. Values whose field stops applying because a parent changed are cleared automatically. Returns the full current list with `applicable_field_ids`.
902
+ * @description Upserts Structured Field values on a contact; `null` clears a field. Name each field by `field_id` or by its `field_key` (the API name); send Boolean and Number values as JSON `true`/`false` and numbers, or as strings. Fields are the same definitions sessions use; a contact holds its own values. Every value is validated against its live field definition (an enum leaf choice, a user/team/tag of the organization, or a typed scalar), and a bad entry rejects the whole batch. A value on a field whose "show when" rule is unmet after the batch is rejected with 400; set the parent field in the same batch instead. Values whose field stops applying because a parent changed are cleared automatically. Returns the full current list with `applicable_field_ids`.
903
903
  */
904
904
  put: operations["setContactStructuredFieldValues"];
905
905
  post?: never;
@@ -7251,8 +7251,9 @@ export interface components {
7251
7251
  };
7252
7252
  SessionStructuredFieldValueInputDto: {
7253
7253
  /** Format: uuid */
7254
- field_id: string;
7255
- value: string | null;
7254
+ field_id?: string;
7255
+ field_key?: string;
7256
+ value: (string | number | boolean) | null;
7256
7257
  };
7257
7258
  SetSessionStructuredFieldValuesDto: {
7258
7259
  values: components["schemas"]["SessionStructuredFieldValueInputDto"][];
@@ -7336,6 +7337,10 @@ export interface components {
7336
7337
  /** @description Max 200. Default: 50. */
7337
7338
  limit?: number;
7338
7339
  };
7340
+ ContactStructuredFieldValueInputDto: components["schemas"]["SessionStructuredFieldValueInputDto"];
7341
+ SetContactStructuredFieldValuesDto: {
7342
+ values: components["schemas"]["ContactStructuredFieldValueInputDto"][];
7343
+ };
7339
7344
  UpdateCsatSettingsDto: {
7340
7345
  /** @description Whether CSAT collection is enabled for web channel */
7341
7346
  web_enabled?: boolean;
@@ -8608,10 +8613,6 @@ export interface components {
8608
8613
  and: components["schemas"]["PublicContactsFilter"][];
8609
8614
  }[];
8610
8615
  };
8611
- ContactStructuredFieldValueInputDto: components["schemas"]["SessionStructuredFieldValueInputDto"];
8612
- SetContactStructuredFieldValuesDto: {
8613
- values: components["schemas"]["ContactStructuredFieldValueInputDto"][];
8614
- };
8615
8616
  PublicAPIHttpOverrides: {
8616
8617
  query_params?: {
8617
8618
  [key: string]: string;
@@ -10735,7 +10736,7 @@ export interface components {
10735
10736
  /** Format: date-time */
10736
10737
  updated_at: string;
10737
10738
  };
10738
- SessionStructuredFieldValueDto: {
10739
+ SessionStructuredFieldValueListItemDto: {
10739
10740
  org_id: string;
10740
10741
  session_id: string;
10741
10742
  /** Format: uuid */
@@ -10745,9 +10746,10 @@ export interface components {
10745
10746
  created_at: string;
10746
10747
  /** Format: date-time */
10747
10748
  updated_at: string;
10749
+ field_key: string;
10748
10750
  };
10749
10751
  SessionStructuredFieldValueListDto: {
10750
- data: components["schemas"]["SessionStructuredFieldValueDto"][];
10752
+ data: components["schemas"]["SessionStructuredFieldValueListItemDto"][];
10751
10753
  applicable_field_ids: string[];
10752
10754
  };
10753
10755
  GenericResponseDto: {
@@ -10826,6 +10828,22 @@ export interface components {
10826
10828
  */
10827
10829
  outcome: "unlinked" | "unchanged";
10828
10830
  };
10831
+ ContactStructuredFieldValueListItemDto: {
10832
+ org_id: string;
10833
+ contact_id: string;
10834
+ /** Format: uuid */
10835
+ field_id: string;
10836
+ value: string;
10837
+ /** Format: date-time */
10838
+ created_at: string;
10839
+ /** Format: date-time */
10840
+ updated_at: string;
10841
+ field_key: string;
10842
+ };
10843
+ ContactStructuredFieldValueListDto: {
10844
+ data: components["schemas"]["ContactStructuredFieldValueListItemDto"][];
10845
+ applicable_field_ids: string[];
10846
+ };
10829
10847
  SalesforceCrmContactDetailsDto: {
10830
10848
  id: string;
10831
10849
  salesforce_record_id: string;
@@ -14369,21 +14387,6 @@ export interface components {
14369
14387
  }[];
14370
14388
  next: string | null;
14371
14389
  };
14372
- ContactStructuredFieldValueDto: {
14373
- org_id: string;
14374
- contact_id: string;
14375
- /** Format: uuid */
14376
- field_id: string;
14377
- value: string;
14378
- /** Format: date-time */
14379
- created_at: string;
14380
- /** Format: date-time */
14381
- updated_at: string;
14382
- };
14383
- ContactStructuredFieldValueListDto: {
14384
- data: components["schemas"]["ContactStructuredFieldValueDto"][];
14385
- applicable_field_ids: string[];
14386
- };
14387
14390
  SaveContactOutput: {
14388
14391
  /** Format: uuid */
14389
14392
  id?: string;