ultracart_rest_api_v2_typescript 4.1.77 → 4.1.78

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.
Files changed (42) hide show
  1. package/.openapi-generator/FILES +1 -0
  2. package/README.md +3 -2
  3. package/dist/models/ConversationAgentAuth.d.ts +13 -0
  4. package/dist/models/ConversationAgentAuth.js +5 -0
  5. package/dist/models/ConversationAgentAuthMerchant.d.ts +43 -0
  6. package/dist/models/ConversationAgentAuthMerchant.js +54 -0
  7. package/dist/models/ConversationPbxAudio.d.ts +6 -0
  8. package/dist/models/ConversationPbxAudio.js +2 -0
  9. package/dist/models/ConversationPbxCall.d.ts +6 -0
  10. package/dist/models/ConversationPbxCall.js +2 -0
  11. package/dist/models/ConversationPbxClassOfService.d.ts +6 -0
  12. package/dist/models/ConversationPbxClassOfService.js +2 -0
  13. package/dist/models/ConversationPbxCustomerSnapshotRequest.d.ts +6 -0
  14. package/dist/models/ConversationPbxCustomerSnapshotRequest.js +2 -0
  15. package/dist/models/ConversationPbxMenu.d.ts +6 -0
  16. package/dist/models/ConversationPbxMenu.js +2 -0
  17. package/dist/models/ConversationPbxPhoneNumber.d.ts +6 -0
  18. package/dist/models/ConversationPbxPhoneNumber.js +2 -0
  19. package/dist/models/ConversationPbxQueue.d.ts +6 -0
  20. package/dist/models/ConversationPbxQueue.js +2 -0
  21. package/dist/models/ConversationPbxTimeBased.d.ts +6 -0
  22. package/dist/models/ConversationPbxTimeBased.js +2 -0
  23. package/dist/models/ConversationPbxTimeRange.d.ts +6 -0
  24. package/dist/models/ConversationPbxTimeRange.js +2 -0
  25. package/dist/models/ConversationPbxVoicemailMailbox.d.ts +6 -0
  26. package/dist/models/ConversationPbxVoicemailMailbox.js +2 -0
  27. package/dist/models/index.d.ts +1 -0
  28. package/dist/models/index.js +1 -0
  29. package/package.json +1 -1
  30. package/src/models/ConversationAgentAuth.ts +22 -0
  31. package/src/models/ConversationAgentAuthMerchant.ts +83 -0
  32. package/src/models/ConversationPbxAudio.ts +8 -0
  33. package/src/models/ConversationPbxCall.ts +8 -0
  34. package/src/models/ConversationPbxClassOfService.ts +8 -0
  35. package/src/models/ConversationPbxCustomerSnapshotRequest.ts +8 -0
  36. package/src/models/ConversationPbxMenu.ts +8 -0
  37. package/src/models/ConversationPbxPhoneNumber.ts +8 -0
  38. package/src/models/ConversationPbxQueue.ts +8 -0
  39. package/src/models/ConversationPbxTimeBased.ts +8 -0
  40. package/src/models/ConversationPbxTimeRange.ts +8 -0
  41. package/src/models/ConversationPbxVoicemailMailbox.ts +8 -0
  42. package/src/models/index.ts +1 -0
@@ -159,6 +159,7 @@ src/models/CheckoutStateProvinceResponse.ts
159
159
  src/models/CityStateZip.ts
160
160
  src/models/Conversation.ts
161
161
  src/models/ConversationAgentAuth.ts
162
+ src/models/ConversationAgentAuthMerchant.ts
162
163
  src/models/ConversationAgentAuthResponse.ts
163
164
  src/models/ConversationAgentProfile.ts
164
165
  src/models/ConversationAgentProfileResponse.ts
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # UltraCart Typescript SDK
2
- ## ultracart_rest_api_v2_typescript@4.1.77
2
+ ## ultracart_rest_api_v2_typescript@4.1.78
3
3
 
4
4
  Every API method call has a sample for every language SDK. See https://github.com/UltraCart/sdk_samples
5
5
 
6
6
  Installation
7
7
 
8
8
  ```
9
- npm install ultracart_rest_api_v2_typescript@4.1.77 --save
9
+ npm install ultracart_rest_api_v2_typescript@4.1.78 --save
10
10
  ```
11
11
 
12
12
  ```typescript
@@ -85,6 +85,7 @@ Not every change is committed to every SDK.
85
85
 
86
86
  | Version | Date | Comments |
87
87
  | --: | :-: | --- |
88
+ | 4.1.78 | 04/20/2026 | conversation pbx - objects have context_merchant_id fields to linked account configs |
88
89
  | 4.1.77 | 04/17/2026 | conversation - embed oauth methods |
89
90
  | 4.1.76 | 04/17/2026 | conversation - embed oauth methods |
90
91
  | 4.1.75 | 04/17/2026 | conversation - embed oauth methods |
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { ConversationAgentAuthMerchant } from './ConversationAgentAuthMerchant';
12
13
  import { ConversationTwilioAccount } from './ConversationTwilioAccount';
13
14
  /**
14
15
  *
@@ -70,6 +71,18 @@ export interface ConversationAgentAuth {
70
71
  * @memberof ConversationAgentAuth
71
72
  */
72
73
  merchant_id?: string;
74
+ /**
75
+ * List of merchants in this linked merchant group
76
+ * @type {Array<ConversationAgentAuthMerchant>}
77
+ * @memberof ConversationAgentAuth
78
+ */
79
+ merchants?: Array<ConversationAgentAuthMerchant>;
80
+ /**
81
+ * The parent merchant ID for PBX. For non-linked merchants, equals merchant_id.
82
+ * @type {string}
83
+ * @memberof ConversationAgentAuth
84
+ */
85
+ parent_merchant_id?: string;
73
86
  /**
74
87
  *
75
88
  * @type {boolean}
@@ -15,6 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ConversationAgentAuthToJSON = exports.ConversationAgentAuthFromJSONTyped = exports.ConversationAgentAuthFromJSON = exports.instanceOfConversationAgentAuth = void 0;
17
17
  var runtime_1 = require("../runtime");
18
+ var ConversationAgentAuthMerchant_1 = require("./ConversationAgentAuthMerchant");
18
19
  var ConversationTwilioAccount_1 = require("./ConversationTwilioAccount");
19
20
  /**
20
21
  * Check if a given object implements the ConversationAgentAuth interface.
@@ -42,6 +43,8 @@ function ConversationAgentAuthFromJSONTyped(json, ignoreDiscriminator) {
42
43
  'group_ids': !(0, runtime_1.exists)(json, 'group_ids') ? undefined : json['group_ids'],
43
44
  'jwt': !(0, runtime_1.exists)(json, 'jwt') ? undefined : json['jwt'],
44
45
  'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
46
+ 'merchants': !(0, runtime_1.exists)(json, 'merchants') ? undefined : (json['merchants'].map(ConversationAgentAuthMerchant_1.ConversationAgentAuthMerchantFromJSON)),
47
+ 'parent_merchant_id': !(0, runtime_1.exists)(json, 'parent_merchant_id') ? undefined : json['parent_merchant_id'],
45
48
  'pbx_admin': !(0, runtime_1.exists)(json, 'pbx_admin') ? undefined : json['pbx_admin'],
46
49
  'pbx_jwt': !(0, runtime_1.exists)(json, 'pbx_jwt') ? undefined : json['pbx_jwt'],
47
50
  'pbx_supervisor': !(0, runtime_1.exists)(json, 'pbx_supervisor') ? undefined : json['pbx_supervisor'],
@@ -73,6 +76,8 @@ function ConversationAgentAuthToJSON(value) {
73
76
  'group_ids': value.group_ids,
74
77
  'jwt': value.jwt,
75
78
  'merchant_id': value.merchant_id,
79
+ 'merchants': value.merchants === undefined ? undefined : (value.merchants.map(ConversationAgentAuthMerchant_1.ConversationAgentAuthMerchantToJSON)),
80
+ 'parent_merchant_id': value.parent_merchant_id,
76
81
  'pbx_admin': value.pbx_admin,
77
82
  'pbx_jwt': value.pbx_jwt,
78
83
  'pbx_supervisor': value.pbx_supervisor,
@@ -0,0 +1,43 @@
1
+ /**
2
+ * UltraCart Rest API V2
3
+ * UltraCart REST API Version 2
4
+ *
5
+ * The version of the OpenAPI document: 2.0.0
6
+ * Contact: support@ultracart.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ConversationAgentAuthMerchant
16
+ */
17
+ export interface ConversationAgentAuthMerchant {
18
+ /**
19
+ * The company name for this merchant
20
+ * @type {string}
21
+ * @memberof ConversationAgentAuthMerchant
22
+ */
23
+ company?: string;
24
+ /**
25
+ * True if this is the parent merchant that owns the Twilio account
26
+ * @type {boolean}
27
+ * @memberof ConversationAgentAuthMerchant
28
+ */
29
+ is_parent?: boolean;
30
+ /**
31
+ * The merchant ID
32
+ * @type {string}
33
+ * @memberof ConversationAgentAuthMerchant
34
+ */
35
+ merchant_id?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the ConversationAgentAuthMerchant interface.
39
+ */
40
+ export declare function instanceOfConversationAgentAuthMerchant(value: object): boolean;
41
+ export declare function ConversationAgentAuthMerchantFromJSON(json: any): ConversationAgentAuthMerchant;
42
+ export declare function ConversationAgentAuthMerchantFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationAgentAuthMerchant;
43
+ export declare function ConversationAgentAuthMerchantToJSON(value?: ConversationAgentAuthMerchant | null): any;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * UltraCart Rest API V2
6
+ * UltraCart REST API Version 2
7
+ *
8
+ * The version of the OpenAPI document: 2.0.0
9
+ * Contact: support@ultracart.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ConversationAgentAuthMerchantToJSON = exports.ConversationAgentAuthMerchantFromJSONTyped = exports.ConversationAgentAuthMerchantFromJSON = exports.instanceOfConversationAgentAuthMerchant = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the ConversationAgentAuthMerchant interface.
20
+ */
21
+ function instanceOfConversationAgentAuthMerchant(value) {
22
+ var isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfConversationAgentAuthMerchant = instanceOfConversationAgentAuthMerchant;
26
+ function ConversationAgentAuthMerchantFromJSON(json) {
27
+ return ConversationAgentAuthMerchantFromJSONTyped(json, false);
28
+ }
29
+ exports.ConversationAgentAuthMerchantFromJSON = ConversationAgentAuthMerchantFromJSON;
30
+ function ConversationAgentAuthMerchantFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'company': !(0, runtime_1.exists)(json, 'company') ? undefined : json['company'],
36
+ 'is_parent': !(0, runtime_1.exists)(json, 'is_parent') ? undefined : json['is_parent'],
37
+ 'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
38
+ };
39
+ }
40
+ exports.ConversationAgentAuthMerchantFromJSONTyped = ConversationAgentAuthMerchantFromJSONTyped;
41
+ function ConversationAgentAuthMerchantToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'company': value.company,
50
+ 'is_parent': value.is_parent,
51
+ 'merchant_id': value.merchant_id,
52
+ };
53
+ }
54
+ exports.ConversationAgentAuthMerchantToJSON = ConversationAgentAuthMerchantToJSON;
@@ -21,6 +21,12 @@ export interface ConversationPbxAudio {
21
21
  * @memberof ConversationPbxAudio
22
22
  */
23
23
  audio_s3_listing_key?: string;
24
+ /**
25
+ * Optional child merchant ID this resource is assigned to. Null = shared across the linked merchant group.
26
+ * @type {string}
27
+ * @memberof ConversationPbxAudio
28
+ */
29
+ context_merchant_id?: string;
24
30
  /**
25
31
  * Conversation Pbx Audio UUID
26
32
  * @type {string}
@@ -33,6 +33,7 @@ function ConversationPbxAudioFromJSONTyped(json, ignoreDiscriminator) {
33
33
  }
34
34
  return {
35
35
  'audio_s3_listing_key': !(0, runtime_1.exists)(json, 'audio_s3_listing_key') ? undefined : json['audio_s3_listing_key'],
36
+ 'context_merchant_id': !(0, runtime_1.exists)(json, 'context_merchant_id') ? undefined : json['context_merchant_id'],
36
37
  'conversation_pbx_audio_uuid': !(0, runtime_1.exists)(json, 'conversation_pbx_audio_uuid') ? undefined : json['conversation_pbx_audio_uuid'],
37
38
  'default_hold_music': !(0, runtime_1.exists)(json, 'default_hold_music') ? undefined : json['default_hold_music'],
38
39
  'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
@@ -54,6 +55,7 @@ function ConversationPbxAudioToJSON(value) {
54
55
  }
55
56
  return {
56
57
  'audio_s3_listing_key': value.audio_s3_listing_key,
58
+ 'context_merchant_id': value.context_merchant_id,
57
59
  'conversation_pbx_audio_uuid': value.conversation_pbx_audio_uuid,
58
60
  'default_hold_music': value.default_hold_music,
59
61
  'description': value.description,
@@ -73,6 +73,12 @@ export interface ConversationPbxCall {
73
73
  * @memberof ConversationPbxCall
74
74
  */
75
75
  conference_sid?: string;
76
+ /**
77
+ * Optional child merchant ID this call is attributed to. Null = no child attribution (parent-level call).
78
+ * @type {string}
79
+ * @memberof ConversationPbxCall
80
+ */
81
+ context_merchant_id?: string;
76
82
  /**
77
83
  * Timestamp when the call record was created
78
84
  * @type {string}
@@ -50,6 +50,7 @@ function ConversationPbxCallFromJSONTyped(json, ignoreDiscriminator) {
50
50
  'call_uuid': !(0, runtime_1.exists)(json, 'call_uuid') ? undefined : json['call_uuid'],
51
51
  'caller': !(0, runtime_1.exists)(json, 'caller') ? undefined : (0, ConversationPbxCallCaller_1.ConversationPbxCallCallerFromJSON)(json['caller']),
52
52
  'conference_sid': !(0, runtime_1.exists)(json, 'conference_sid') ? undefined : json['conference_sid'],
53
+ 'context_merchant_id': !(0, runtime_1.exists)(json, 'context_merchant_id') ? undefined : json['context_merchant_id'],
53
54
  'created_at_dts': !(0, runtime_1.exists)(json, 'created_at_dts') ? undefined : json['created_at_dts'],
54
55
  'customer_name': !(0, runtime_1.exists)(json, 'customer_name') ? undefined : json['customer_name'],
55
56
  'customer_profile_oid': !(0, runtime_1.exists)(json, 'customer_profile_oid') ? undefined : json['customer_profile_oid'],
@@ -86,6 +87,7 @@ function ConversationPbxCallToJSON(value) {
86
87
  'call_uuid': value.call_uuid,
87
88
  'caller': (0, ConversationPbxCallCaller_1.ConversationPbxCallCallerToJSON)(value.caller),
88
89
  'conference_sid': value.conference_sid,
90
+ 'context_merchant_id': value.context_merchant_id,
89
91
  'created_at_dts': value.created_at_dts,
90
92
  'customer_name': value.customer_name,
91
93
  'customer_profile_oid': value.customer_profile_oid,
@@ -27,6 +27,12 @@ export interface ConversationPbxClassOfService {
27
27
  * @memberof ConversationPbxClassOfService
28
28
  */
29
29
  block_premium_numbers?: boolean;
30
+ /**
31
+ * Optional child merchant ID this resource is assigned to. Null = shared across the linked merchant group.
32
+ * @type {string}
33
+ * @memberof ConversationPbxClassOfService
34
+ */
35
+ context_merchant_id?: string;
30
36
  /**
31
37
  * Class of Service unique identifier
32
38
  * @type {string}
@@ -34,6 +34,7 @@ function ConversationPbxClassOfServiceFromJSONTyped(json, ignoreDiscriminator) {
34
34
  return {
35
35
  'allowed_countries': !(0, runtime_1.exists)(json, 'allowed_countries') ? undefined : json['allowed_countries'],
36
36
  'block_premium_numbers': !(0, runtime_1.exists)(json, 'block_premium_numbers') ? undefined : json['block_premium_numbers'],
37
+ 'context_merchant_id': !(0, runtime_1.exists)(json, 'context_merchant_id') ? undefined : json['context_merchant_id'],
37
38
  'conversation_pbx_class_of_service_uuid': !(0, runtime_1.exists)(json, 'conversation_pbx_class_of_service_uuid') ? undefined : json['conversation_pbx_class_of_service_uuid'],
38
39
  'default_flag': !(0, runtime_1.exists)(json, 'default_flag') ? undefined : json['default_flag'],
39
40
  'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
@@ -54,6 +55,7 @@ function ConversationPbxClassOfServiceToJSON(value) {
54
55
  return {
55
56
  'allowed_countries': value.allowed_countries,
56
57
  'block_premium_numbers': value.block_premium_numbers,
58
+ 'context_merchant_id': value.context_merchant_id,
57
59
  'conversation_pbx_class_of_service_uuid': value.conversation_pbx_class_of_service_uuid,
58
60
  'default_flag': value.default_flag,
59
61
  'description': value.description,
@@ -54,6 +54,12 @@ export interface ConversationPbxCustomerSnapshotRequest {
54
54
  * @memberof ConversationPbxCustomerSnapshotRequest
55
55
  */
56
56
  phone_number?: string;
57
+ /**
58
+ *
59
+ * @type {boolean}
60
+ * @memberof ConversationPbxCustomerSnapshotRequest
61
+ */
62
+ search_linked_accounts?: boolean;
57
63
  /**
58
64
  * Indicates if API call was successful
59
65
  * @type {boolean}
@@ -41,6 +41,7 @@ function ConversationPbxCustomerSnapshotRequestFromJSONTyped(json, ignoreDiscrim
41
41
  'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : (0, ResponseMetadata_1.ResponseMetadataFromJSON)(json['metadata']),
42
42
  'order_expand': !(0, runtime_1.exists)(json, 'order_expand') ? undefined : json['order_expand'],
43
43
  'phone_number': !(0, runtime_1.exists)(json, 'phone_number') ? undefined : json['phone_number'],
44
+ 'search_linked_accounts': !(0, runtime_1.exists)(json, 'search_linked_accounts') ? undefined : json['search_linked_accounts'],
44
45
  'success': !(0, runtime_1.exists)(json, 'success') ? undefined : json['success'],
45
46
  'warning': !(0, runtime_1.exists)(json, 'warning') ? undefined : (0, Warning_1.WarningFromJSON)(json['warning']),
46
47
  };
@@ -60,6 +61,7 @@ function ConversationPbxCustomerSnapshotRequestToJSON(value) {
60
61
  'metadata': (0, ResponseMetadata_1.ResponseMetadataToJSON)(value.metadata),
61
62
  'order_expand': value.order_expand,
62
63
  'phone_number': value.phone_number,
64
+ 'search_linked_accounts': value.search_linked_accounts,
63
65
  'success': value.success,
64
66
  'warning': (0, Warning_1.WarningToJSON)(value.warning),
65
67
  };
@@ -22,6 +22,12 @@ export interface ConversationPbxMenu {
22
22
  * @memberof ConversationPbxMenu
23
23
  */
24
24
  allow_direct_extensions?: boolean;
25
+ /**
26
+ * Optional child merchant ID this resource is assigned to. Null = shared across the linked merchant group.
27
+ * @type {string}
28
+ * @memberof ConversationPbxMenu
29
+ */
30
+ context_merchant_id?: string;
25
31
  /**
26
32
  * Conversation Pbx Menu UUID
27
33
  * @type {string}
@@ -41,6 +41,7 @@ function ConversationPbxMenuFromJSONTyped(json, ignoreDiscriminator) {
41
41
  }
42
42
  return {
43
43
  'allow_direct_extensions': !(0, runtime_1.exists)(json, 'allow_direct_extensions') ? undefined : json['allow_direct_extensions'],
44
+ 'context_merchant_id': !(0, runtime_1.exists)(json, 'context_merchant_id') ? undefined : json['context_merchant_id'],
44
45
  'conversation_pbx_menu_uuid': !(0, runtime_1.exists)(json, 'conversation_pbx_menu_uuid') ? undefined : json['conversation_pbx_menu_uuid'],
45
46
  'default_action': !(0, runtime_1.exists)(json, 'default_action') ? undefined : json['default_action'],
46
47
  'default_action_target': !(0, runtime_1.exists)(json, 'default_action_target') ? undefined : json['default_action_target'],
@@ -63,6 +64,7 @@ function ConversationPbxMenuToJSON(value) {
63
64
  }
64
65
  return {
65
66
  'allow_direct_extensions': value.allow_direct_extensions,
67
+ 'context_merchant_id': value.context_merchant_id,
66
68
  'conversation_pbx_menu_uuid': value.conversation_pbx_menu_uuid,
67
69
  'default_action': value.default_action,
68
70
  'default_action_target': value.default_action_target,
@@ -33,6 +33,12 @@ export interface ConversationPbxPhoneNumber {
33
33
  * @memberof ConversationPbxPhoneNumber
34
34
  */
35
35
  address_sid?: string;
36
+ /**
37
+ * Optional child merchant ID this resource is assigned to. Null = shared across the linked merchant group.
38
+ * @type {string}
39
+ * @memberof ConversationPbxPhoneNumber
40
+ */
41
+ context_merchant_id?: string;
36
42
  /**
37
43
  * Conversation Pbx Phone Number UUID
38
44
  * @type {string}
@@ -45,6 +45,7 @@ function ConversationPbxPhoneNumberFromJSONTyped(json, ignoreDiscriminator) {
45
45
  'action': !(0, runtime_1.exists)(json, 'action') ? undefined : json['action'],
46
46
  'action_target': !(0, runtime_1.exists)(json, 'action_target') ? undefined : json['action_target'],
47
47
  'address_sid': !(0, runtime_1.exists)(json, 'address_sid') ? undefined : json['address_sid'],
48
+ 'context_merchant_id': !(0, runtime_1.exists)(json, 'context_merchant_id') ? undefined : json['context_merchant_id'],
48
49
  'conversation_pbx_phone_number_uuid': !(0, runtime_1.exists)(json, 'conversation_pbx_phone_number_uuid') ? undefined : json['conversation_pbx_phone_number_uuid'],
49
50
  'default_phone_number': !(0, runtime_1.exists)(json, 'default_phone_number') ? undefined : json['default_phone_number'],
50
51
  'deletion_protected': !(0, runtime_1.exists)(json, 'deletion_protected') ? undefined : json['deletion_protected'],
@@ -64,6 +65,7 @@ function ConversationPbxPhoneNumberToJSON(value) {
64
65
  'action': value.action,
65
66
  'action_target': value.action_target,
66
67
  'address_sid': value.address_sid,
68
+ 'context_merchant_id': value.context_merchant_id,
67
69
  'conversation_pbx_phone_number_uuid': value.conversation_pbx_phone_number_uuid,
68
70
  'default_phone_number': value.default_phone_number,
69
71
  'deletion_protected': value.deletion_protected,
@@ -124,6 +124,12 @@ export interface ConversationPbxQueue {
124
124
  * @memberof ConversationPbxQueue
125
125
  */
126
126
  callback_retry_delay_seconds?: number;
127
+ /**
128
+ * Optional child merchant ID this resource is assigned to. Null = shared across the linked merchant group.
129
+ * @type {string}
130
+ * @memberof ConversationPbxQueue
131
+ */
132
+ context_merchant_id?: string;
127
133
  /**
128
134
  * Conversation Pbx Queue unique identifier
129
135
  * @type {string}
@@ -73,6 +73,7 @@ function ConversationPbxQueueFromJSONTyped(json, ignoreDiscriminator) {
73
73
  'callback_offer_after_seconds': !(0, runtime_1.exists)(json, 'callback_offer_after_seconds') ? undefined : json['callback_offer_after_seconds'],
74
74
  'callback_offer_interval_seconds': !(0, runtime_1.exists)(json, 'callback_offer_interval_seconds') ? undefined : json['callback_offer_interval_seconds'],
75
75
  'callback_retry_delay_seconds': !(0, runtime_1.exists)(json, 'callback_retry_delay_seconds') ? undefined : json['callback_retry_delay_seconds'],
76
+ 'context_merchant_id': !(0, runtime_1.exists)(json, 'context_merchant_id') ? undefined : json['context_merchant_id'],
76
77
  'conversation_pbx_queue_uuid': !(0, runtime_1.exists)(json, 'conversation_pbx_queue_uuid') ? undefined : json['conversation_pbx_queue_uuid'],
77
78
  'conversation_voicemail_mailbox_uuid': !(0, runtime_1.exists)(json, 'conversation_voicemail_mailbox_uuid') ? undefined : json['conversation_voicemail_mailbox_uuid'],
78
79
  'hold_conversation_pbx_audio_uuid': !(0, runtime_1.exists)(json, 'hold_conversation_pbx_audio_uuid') ? undefined : json['hold_conversation_pbx_audio_uuid'],
@@ -124,6 +125,7 @@ function ConversationPbxQueueToJSON(value) {
124
125
  'callback_offer_after_seconds': value.callback_offer_after_seconds,
125
126
  'callback_offer_interval_seconds': value.callback_offer_interval_seconds,
126
127
  'callback_retry_delay_seconds': value.callback_retry_delay_seconds,
128
+ 'context_merchant_id': value.context_merchant_id,
127
129
  'conversation_pbx_queue_uuid': value.conversation_pbx_queue_uuid,
128
130
  'conversation_voicemail_mailbox_uuid': value.conversation_voicemail_mailbox_uuid,
129
131
  'hold_conversation_pbx_audio_uuid': value.hold_conversation_pbx_audio_uuid,
@@ -16,6 +16,12 @@ import { ConversationPbxTimeBasedMappingConfig } from './ConversationPbxTimeBase
16
16
  * @interface ConversationPbxTimeBased
17
17
  */
18
18
  export interface ConversationPbxTimeBased {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof ConversationPbxTimeBased
23
+ */
24
+ context_merchant_id?: string;
19
25
  /**
20
26
  *
21
27
  * @type {string}
@@ -33,6 +33,7 @@ function ConversationPbxTimeBasedFromJSONTyped(json, ignoreDiscriminator) {
33
33
  return json;
34
34
  }
35
35
  return {
36
+ 'context_merchant_id': !(0, runtime_1.exists)(json, 'context_merchant_id') ? undefined : json['context_merchant_id'],
36
37
  'conversation_pbx_time_based_uuid': !(0, runtime_1.exists)(json, 'conversation_pbx_time_based_uuid') ? undefined : json['conversation_pbx_time_based_uuid'],
37
38
  'mapping_config': !(0, runtime_1.exists)(json, 'mapping_config') ? undefined : (0, ConversationPbxTimeBasedMappingConfig_1.ConversationPbxTimeBasedMappingConfigFromJSON)(json['mapping_config']),
38
39
  'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
@@ -48,6 +49,7 @@ function ConversationPbxTimeBasedToJSON(value) {
48
49
  return null;
49
50
  }
50
51
  return {
52
+ 'context_merchant_id': value.context_merchant_id,
51
53
  'conversation_pbx_time_based_uuid': value.conversation_pbx_time_based_uuid,
52
54
  'mapping_config': (0, ConversationPbxTimeBasedMappingConfig_1.ConversationPbxTimeBasedMappingConfigToJSON)(value.mapping_config),
53
55
  'merchant_id': value.merchant_id,
@@ -22,6 +22,12 @@ export interface ConversationPbxTimeRange {
22
22
  * @memberof ConversationPbxTimeRange
23
23
  */
24
24
  configs?: Array<ConversationPbxTimeRangeConfig>;
25
+ /**
26
+ * Optional child merchant ID this resource is assigned to. Null = shared across the linked merchant group.
27
+ * @type {string}
28
+ * @memberof ConversationPbxTimeRange
29
+ */
30
+ context_merchant_id?: string;
25
31
  /**
26
32
  * Conversation Pbx Time Range UUID
27
33
  * @type {string}
@@ -34,6 +34,7 @@ function ConversationPbxTimeRangeFromJSONTyped(json, ignoreDiscriminator) {
34
34
  }
35
35
  return {
36
36
  'configs': !(0, runtime_1.exists)(json, 'configs') ? undefined : (json['configs'].map(ConversationPbxTimeRangeConfig_1.ConversationPbxTimeRangeConfigFromJSON)),
37
+ 'context_merchant_id': !(0, runtime_1.exists)(json, 'context_merchant_id') ? undefined : json['context_merchant_id'],
37
38
  'conversation_pbx_time_range_uuid': !(0, runtime_1.exists)(json, 'conversation_pbx_time_range_uuid') ? undefined : json['conversation_pbx_time_range_uuid'],
38
39
  'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
39
40
  'time_range_name': !(0, runtime_1.exists)(json, 'time_range_name') ? undefined : json['time_range_name'],
@@ -50,6 +51,7 @@ function ConversationPbxTimeRangeToJSON(value) {
50
51
  }
51
52
  return {
52
53
  'configs': value.configs === undefined ? undefined : (value.configs.map(ConversationPbxTimeRangeConfig_1.ConversationPbxTimeRangeConfigToJSON)),
54
+ 'context_merchant_id': value.context_merchant_id,
53
55
  'conversation_pbx_time_range_uuid': value.conversation_pbx_time_range_uuid,
54
56
  'merchant_id': value.merchant_id,
55
57
  'time_range_name': value.time_range_name,
@@ -15,6 +15,12 @@
15
15
  * @interface ConversationPbxVoicemailMailbox
16
16
  */
17
17
  export interface ConversationPbxVoicemailMailbox {
18
+ /**
19
+ * Optional child merchant ID this resource is assigned to. Null = shared across the linked merchant group.
20
+ * @type {string}
21
+ * @memberof ConversationPbxVoicemailMailbox
22
+ */
23
+ context_merchant_id?: string;
18
24
  /**
19
25
  * Conversation Pbx Voicemail Mailbox UUID
20
26
  * @type {string}
@@ -62,6 +62,7 @@ function ConversationPbxVoicemailMailboxFromJSONTyped(json, ignoreDiscriminator)
62
62
  return json;
63
63
  }
64
64
  return {
65
+ 'context_merchant_id': !(0, runtime_1.exists)(json, 'context_merchant_id') ? undefined : json['context_merchant_id'],
65
66
  'conversation_pbx_voicemail_mailbox_uuid': !(0, runtime_1.exists)(json, 'conversation_pbx_voicemail_mailbox_uuid') ? undefined : json['conversation_pbx_voicemail_mailbox_uuid'],
66
67
  'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
67
68
  'send_notices_to_channel': !(0, runtime_1.exists)(json, 'send_notices_to_channel') ? undefined : json['send_notices_to_channel'],
@@ -87,6 +88,7 @@ function ConversationPbxVoicemailMailboxToJSON(value) {
87
88
  return null;
88
89
  }
89
90
  return {
91
+ 'context_merchant_id': value.context_merchant_id,
90
92
  'conversation_pbx_voicemail_mailbox_uuid': value.conversation_pbx_voicemail_mailbox_uuid,
91
93
  'merchant_id': value.merchant_id,
92
94
  'send_notices_to_channel': value.send_notices_to_channel,
@@ -132,6 +132,7 @@ export * from './CheckoutStateProvinceResponse';
132
132
  export * from './CityStateZip';
133
133
  export * from './Conversation';
134
134
  export * from './ConversationAgentAuth';
135
+ export * from './ConversationAgentAuthMerchant';
135
136
  export * from './ConversationAgentAuthResponse';
136
137
  export * from './ConversationAgentProfile';
137
138
  export * from './ConversationAgentProfileResponse';
@@ -150,6 +150,7 @@ __exportStar(require("./CheckoutStateProvinceResponse"), exports);
150
150
  __exportStar(require("./CityStateZip"), exports);
151
151
  __exportStar(require("./Conversation"), exports);
152
152
  __exportStar(require("./ConversationAgentAuth"), exports);
153
+ __exportStar(require("./ConversationAgentAuthMerchant"), exports);
153
154
  __exportStar(require("./ConversationAgentAuthResponse"), exports);
154
155
  __exportStar(require("./ConversationAgentProfile"), exports);
155
156
  __exportStar(require("./ConversationAgentProfileResponse"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "4.1.77",
3
+ "version": "4.1.78",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "repository": {
@@ -13,6 +13,12 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import {
17
+ ConversationAgentAuthMerchant,
18
+ ConversationAgentAuthMerchantFromJSON,
19
+ ConversationAgentAuthMerchantFromJSONTyped,
20
+ ConversationAgentAuthMerchantToJSON,
21
+ } from './ConversationAgentAuthMerchant';
16
22
  import {
17
23
  ConversationTwilioAccount,
18
24
  ConversationTwilioAccountFromJSON,
@@ -80,6 +86,18 @@ export interface ConversationAgentAuth {
80
86
  * @memberof ConversationAgentAuth
81
87
  */
82
88
  merchant_id?: string;
89
+ /**
90
+ * List of merchants in this linked merchant group
91
+ * @type {Array<ConversationAgentAuthMerchant>}
92
+ * @memberof ConversationAgentAuth
93
+ */
94
+ merchants?: Array<ConversationAgentAuthMerchant>;
95
+ /**
96
+ * The parent merchant ID for PBX. For non-linked merchants, equals merchant_id.
97
+ * @type {string}
98
+ * @memberof ConversationAgentAuth
99
+ */
100
+ parent_merchant_id?: string;
83
101
  /**
84
102
  *
85
103
  * @type {boolean}
@@ -178,6 +196,8 @@ export function ConversationAgentAuthFromJSONTyped(json: any, ignoreDiscriminato
178
196
  'group_ids': !exists(json, 'group_ids') ? undefined : json['group_ids'],
179
197
  'jwt': !exists(json, 'jwt') ? undefined : json['jwt'],
180
198
  'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
199
+ 'merchants': !exists(json, 'merchants') ? undefined : ((json['merchants'] as Array<any>).map(ConversationAgentAuthMerchantFromJSON)),
200
+ 'parent_merchant_id': !exists(json, 'parent_merchant_id') ? undefined : json['parent_merchant_id'],
181
201
  'pbx_admin': !exists(json, 'pbx_admin') ? undefined : json['pbx_admin'],
182
202
  'pbx_jwt': !exists(json, 'pbx_jwt') ? undefined : json['pbx_jwt'],
183
203
  'pbx_supervisor': !exists(json, 'pbx_supervisor') ? undefined : json['pbx_supervisor'],
@@ -210,6 +230,8 @@ export function ConversationAgentAuthToJSON(value?: ConversationAgentAuth | null
210
230
  'group_ids': value.group_ids,
211
231
  'jwt': value.jwt,
212
232
  'merchant_id': value.merchant_id,
233
+ 'merchants': value.merchants === undefined ? undefined : ((value.merchants as Array<any>).map(ConversationAgentAuthMerchantToJSON)),
234
+ 'parent_merchant_id': value.parent_merchant_id,
213
235
  'pbx_admin': value.pbx_admin,
214
236
  'pbx_jwt': value.pbx_jwt,
215
237
  'pbx_supervisor': value.pbx_supervisor,
@@ -0,0 +1,83 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * UltraCart Rest API V2
5
+ * UltraCart REST API Version 2
6
+ *
7
+ * The version of the OpenAPI document: 2.0.0
8
+ * Contact: support@ultracart.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ConversationAgentAuthMerchant
20
+ */
21
+ export interface ConversationAgentAuthMerchant {
22
+ /**
23
+ * The company name for this merchant
24
+ * @type {string}
25
+ * @memberof ConversationAgentAuthMerchant
26
+ */
27
+ company?: string;
28
+ /**
29
+ * True if this is the parent merchant that owns the Twilio account
30
+ * @type {boolean}
31
+ * @memberof ConversationAgentAuthMerchant
32
+ */
33
+ is_parent?: boolean;
34
+ /**
35
+ * The merchant ID
36
+ * @type {string}
37
+ * @memberof ConversationAgentAuthMerchant
38
+ */
39
+ merchant_id?: string;
40
+ }
41
+
42
+
43
+
44
+ /**
45
+ * Check if a given object implements the ConversationAgentAuthMerchant interface.
46
+ */
47
+ export function instanceOfConversationAgentAuthMerchant(value: object): boolean {
48
+ let isInstance = true;
49
+
50
+ return isInstance;
51
+ }
52
+
53
+ export function ConversationAgentAuthMerchantFromJSON(json: any): ConversationAgentAuthMerchant {
54
+ return ConversationAgentAuthMerchantFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function ConversationAgentAuthMerchantFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationAgentAuthMerchant {
58
+ if ((json === undefined) || (json === null)) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'company': !exists(json, 'company') ? undefined : json['company'],
64
+ 'is_parent': !exists(json, 'is_parent') ? undefined : json['is_parent'],
65
+ 'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
66
+ };
67
+ }
68
+
69
+ export function ConversationAgentAuthMerchantToJSON(value?: ConversationAgentAuthMerchant | null): any {
70
+ if (value === undefined) {
71
+ return undefined;
72
+ }
73
+ if (value === null) {
74
+ return null;
75
+ }
76
+ return {
77
+
78
+ 'company': value.company,
79
+ 'is_parent': value.is_parent,
80
+ 'merchant_id': value.merchant_id,
81
+ };
82
+ }
83
+
@@ -25,6 +25,12 @@ export interface ConversationPbxAudio {
25
25
  * @memberof ConversationPbxAudio
26
26
  */
27
27
  audio_s3_listing_key?: string;
28
+ /**
29
+ * Optional child merchant ID this resource is assigned to. Null = shared across the linked merchant group.
30
+ * @type {string}
31
+ * @memberof ConversationPbxAudio
32
+ */
33
+ context_merchant_id?: string;
28
34
  /**
29
35
  * Conversation Pbx Audio UUID
30
36
  * @type {string}
@@ -103,6 +109,7 @@ export function ConversationPbxAudioFromJSONTyped(json: any, ignoreDiscriminator
103
109
  return {
104
110
 
105
111
  'audio_s3_listing_key': !exists(json, 'audio_s3_listing_key') ? undefined : json['audio_s3_listing_key'],
112
+ 'context_merchant_id': !exists(json, 'context_merchant_id') ? undefined : json['context_merchant_id'],
106
113
  'conversation_pbx_audio_uuid': !exists(json, 'conversation_pbx_audio_uuid') ? undefined : json['conversation_pbx_audio_uuid'],
107
114
  'default_hold_music': !exists(json, 'default_hold_music') ? undefined : json['default_hold_music'],
108
115
  'description': !exists(json, 'description') ? undefined : json['description'],
@@ -125,6 +132,7 @@ export function ConversationPbxAudioToJSON(value?: ConversationPbxAudio | null):
125
132
  return {
126
133
 
127
134
  'audio_s3_listing_key': value.audio_s3_listing_key,
135
+ 'context_merchant_id': value.context_merchant_id,
128
136
  'conversation_pbx_audio_uuid': value.conversation_pbx_audio_uuid,
129
137
  'default_hold_music': value.default_hold_music,
130
138
  'description': value.description,
@@ -128,6 +128,12 @@ export interface ConversationPbxCall {
128
128
  * @memberof ConversationPbxCall
129
129
  */
130
130
  conference_sid?: string;
131
+ /**
132
+ * Optional child merchant ID this call is attributed to. Null = no child attribution (parent-level call).
133
+ * @type {string}
134
+ * @memberof ConversationPbxCall
135
+ */
136
+ context_merchant_id?: string;
131
137
  /**
132
138
  * Timestamp when the call record was created
133
139
  * @type {string}
@@ -261,6 +267,7 @@ export function ConversationPbxCallFromJSONTyped(json: any, ignoreDiscriminator:
261
267
  'call_uuid': !exists(json, 'call_uuid') ? undefined : json['call_uuid'],
262
268
  'caller': !exists(json, 'caller') ? undefined : ConversationPbxCallCallerFromJSON(json['caller']),
263
269
  'conference_sid': !exists(json, 'conference_sid') ? undefined : json['conference_sid'],
270
+ 'context_merchant_id': !exists(json, 'context_merchant_id') ? undefined : json['context_merchant_id'],
264
271
  'created_at_dts': !exists(json, 'created_at_dts') ? undefined : json['created_at_dts'],
265
272
  'customer_name': !exists(json, 'customer_name') ? undefined : json['customer_name'],
266
273
  'customer_profile_oid': !exists(json, 'customer_profile_oid') ? undefined : json['customer_profile_oid'],
@@ -298,6 +305,7 @@ export function ConversationPbxCallToJSON(value?: ConversationPbxCall | null): a
298
305
  'call_uuid': value.call_uuid,
299
306
  'caller': ConversationPbxCallCallerToJSON(value.caller),
300
307
  'conference_sid': value.conference_sid,
308
+ 'context_merchant_id': value.context_merchant_id,
301
309
  'created_at_dts': value.created_at_dts,
302
310
  'customer_name': value.customer_name,
303
311
  'customer_profile_oid': value.customer_profile_oid,
@@ -31,6 +31,12 @@ export interface ConversationPbxClassOfService {
31
31
  * @memberof ConversationPbxClassOfService
32
32
  */
33
33
  block_premium_numbers?: boolean;
34
+ /**
35
+ * Optional child merchant ID this resource is assigned to. Null = shared across the linked merchant group.
36
+ * @type {string}
37
+ * @memberof ConversationPbxClassOfService
38
+ */
39
+ context_merchant_id?: string;
34
40
  /**
35
41
  * Class of Service unique identifier
36
42
  * @type {string}
@@ -98,6 +104,7 @@ export function ConversationPbxClassOfServiceFromJSONTyped(json: any, ignoreDisc
98
104
 
99
105
  'allowed_countries': !exists(json, 'allowed_countries') ? undefined : json['allowed_countries'],
100
106
  'block_premium_numbers': !exists(json, 'block_premium_numbers') ? undefined : json['block_premium_numbers'],
107
+ 'context_merchant_id': !exists(json, 'context_merchant_id') ? undefined : json['context_merchant_id'],
101
108
  'conversation_pbx_class_of_service_uuid': !exists(json, 'conversation_pbx_class_of_service_uuid') ? undefined : json['conversation_pbx_class_of_service_uuid'],
102
109
  'default_flag': !exists(json, 'default_flag') ? undefined : json['default_flag'],
103
110
  'description': !exists(json, 'description') ? undefined : json['description'],
@@ -119,6 +126,7 @@ export function ConversationPbxClassOfServiceToJSON(value?: ConversationPbxClass
119
126
 
120
127
  'allowed_countries': value.allowed_countries,
121
128
  'block_premium_numbers': value.block_premium_numbers,
129
+ 'context_merchant_id': value.context_merchant_id,
122
130
  'conversation_pbx_class_of_service_uuid': value.conversation_pbx_class_of_service_uuid,
123
131
  'default_flag': value.default_flag,
124
132
  'description': value.description,
@@ -74,6 +74,12 @@ export interface ConversationPbxCustomerSnapshotRequest {
74
74
  * @memberof ConversationPbxCustomerSnapshotRequest
75
75
  */
76
76
  phone_number?: string;
77
+ /**
78
+ *
79
+ * @type {boolean}
80
+ * @memberof ConversationPbxCustomerSnapshotRequest
81
+ */
82
+ search_linked_accounts?: boolean;
77
83
  /**
78
84
  * Indicates if API call was successful
79
85
  * @type {boolean}
@@ -115,6 +121,7 @@ export function ConversationPbxCustomerSnapshotRequestFromJSONTyped(json: any, i
115
121
  'metadata': !exists(json, 'metadata') ? undefined : ResponseMetadataFromJSON(json['metadata']),
116
122
  'order_expand': !exists(json, 'order_expand') ? undefined : json['order_expand'],
117
123
  'phone_number': !exists(json, 'phone_number') ? undefined : json['phone_number'],
124
+ 'search_linked_accounts': !exists(json, 'search_linked_accounts') ? undefined : json['search_linked_accounts'],
118
125
  'success': !exists(json, 'success') ? undefined : json['success'],
119
126
  'warning': !exists(json, 'warning') ? undefined : WarningFromJSON(json['warning']),
120
127
  };
@@ -135,6 +142,7 @@ export function ConversationPbxCustomerSnapshotRequestToJSON(value?: Conversatio
135
142
  'metadata': ResponseMetadataToJSON(value.metadata),
136
143
  'order_expand': value.order_expand,
137
144
  'phone_number': value.phone_number,
145
+ 'search_linked_accounts': value.search_linked_accounts,
138
146
  'success': value.success,
139
147
  'warning': WarningToJSON(value.warning),
140
148
  };
@@ -32,6 +32,12 @@ export interface ConversationPbxMenu {
32
32
  * @memberof ConversationPbxMenu
33
33
  */
34
34
  allow_direct_extensions?: boolean;
35
+ /**
36
+ * Optional child merchant ID this resource is assigned to. Null = shared across the linked merchant group.
37
+ * @type {string}
38
+ * @memberof ConversationPbxMenu
39
+ */
40
+ context_merchant_id?: string;
35
41
  /**
36
42
  * Conversation Pbx Menu UUID
37
43
  * @type {string}
@@ -126,6 +132,7 @@ export function ConversationPbxMenuFromJSONTyped(json: any, ignoreDiscriminator:
126
132
  return {
127
133
 
128
134
  'allow_direct_extensions': !exists(json, 'allow_direct_extensions') ? undefined : json['allow_direct_extensions'],
135
+ 'context_merchant_id': !exists(json, 'context_merchant_id') ? undefined : json['context_merchant_id'],
129
136
  'conversation_pbx_menu_uuid': !exists(json, 'conversation_pbx_menu_uuid') ? undefined : json['conversation_pbx_menu_uuid'],
130
137
  'default_action': !exists(json, 'default_action') ? undefined : json['default_action'],
131
138
  'default_action_target': !exists(json, 'default_action_target') ? undefined : json['default_action_target'],
@@ -149,6 +156,7 @@ export function ConversationPbxMenuToJSON(value?: ConversationPbxMenu | null): a
149
156
  return {
150
157
 
151
158
  'allow_direct_extensions': value.allow_direct_extensions,
159
+ 'context_merchant_id': value.context_merchant_id,
152
160
  'conversation_pbx_menu_uuid': value.conversation_pbx_menu_uuid,
153
161
  'default_action': value.default_action,
154
162
  'default_action_target': value.default_action_target,
@@ -37,6 +37,12 @@ export interface ConversationPbxPhoneNumber {
37
37
  * @memberof ConversationPbxPhoneNumber
38
38
  */
39
39
  address_sid?: string;
40
+ /**
41
+ * Optional child merchant ID this resource is assigned to. Null = shared across the linked merchant group.
42
+ * @type {string}
43
+ * @memberof ConversationPbxPhoneNumber
44
+ */
45
+ context_merchant_id?: string;
40
46
  /**
41
47
  * Conversation Pbx Phone Number UUID
42
48
  * @type {string}
@@ -106,6 +112,7 @@ export function ConversationPbxPhoneNumberFromJSONTyped(json: any, ignoreDiscrim
106
112
  'action': !exists(json, 'action') ? undefined : json['action'],
107
113
  'action_target': !exists(json, 'action_target') ? undefined : json['action_target'],
108
114
  'address_sid': !exists(json, 'address_sid') ? undefined : json['address_sid'],
115
+ 'context_merchant_id': !exists(json, 'context_merchant_id') ? undefined : json['context_merchant_id'],
109
116
  'conversation_pbx_phone_number_uuid': !exists(json, 'conversation_pbx_phone_number_uuid') ? undefined : json['conversation_pbx_phone_number_uuid'],
110
117
  'default_phone_number': !exists(json, 'default_phone_number') ? undefined : json['default_phone_number'],
111
118
  'deletion_protected': !exists(json, 'deletion_protected') ? undefined : json['deletion_protected'],
@@ -126,6 +133,7 @@ export function ConversationPbxPhoneNumberToJSON(value?: ConversationPbxPhoneNum
126
133
  'action': value.action,
127
134
  'action_target': value.action_target,
128
135
  'address_sid': value.address_sid,
136
+ 'context_merchant_id': value.context_merchant_id,
129
137
  'conversation_pbx_phone_number_uuid': value.conversation_pbx_phone_number_uuid,
130
138
  'default_phone_number': value.default_phone_number,
131
139
  'deletion_protected': value.deletion_protected,
@@ -134,6 +134,12 @@ export interface ConversationPbxQueue {
134
134
  * @memberof ConversationPbxQueue
135
135
  */
136
136
  callback_retry_delay_seconds?: number;
137
+ /**
138
+ * Optional child merchant ID this resource is assigned to. Null = shared across the linked merchant group.
139
+ * @type {string}
140
+ * @memberof ConversationPbxQueue
141
+ */
142
+ context_merchant_id?: string;
137
143
  /**
138
144
  * Conversation Pbx Queue unique identifier
139
145
  * @type {string}
@@ -336,6 +342,7 @@ export function ConversationPbxQueueFromJSONTyped(json: any, ignoreDiscriminator
336
342
  'callback_offer_after_seconds': !exists(json, 'callback_offer_after_seconds') ? undefined : json['callback_offer_after_seconds'],
337
343
  'callback_offer_interval_seconds': !exists(json, 'callback_offer_interval_seconds') ? undefined : json['callback_offer_interval_seconds'],
338
344
  'callback_retry_delay_seconds': !exists(json, 'callback_retry_delay_seconds') ? undefined : json['callback_retry_delay_seconds'],
345
+ 'context_merchant_id': !exists(json, 'context_merchant_id') ? undefined : json['context_merchant_id'],
339
346
  'conversation_pbx_queue_uuid': !exists(json, 'conversation_pbx_queue_uuid') ? undefined : json['conversation_pbx_queue_uuid'],
340
347
  'conversation_voicemail_mailbox_uuid': !exists(json, 'conversation_voicemail_mailbox_uuid') ? undefined : json['conversation_voicemail_mailbox_uuid'],
341
348
  'hold_conversation_pbx_audio_uuid': !exists(json, 'hold_conversation_pbx_audio_uuid') ? undefined : json['hold_conversation_pbx_audio_uuid'],
@@ -388,6 +395,7 @@ export function ConversationPbxQueueToJSON(value?: ConversationPbxQueue | null):
388
395
  'callback_offer_after_seconds': value.callback_offer_after_seconds,
389
396
  'callback_offer_interval_seconds': value.callback_offer_interval_seconds,
390
397
  'callback_retry_delay_seconds': value.callback_retry_delay_seconds,
398
+ 'context_merchant_id': value.context_merchant_id,
391
399
  'conversation_pbx_queue_uuid': value.conversation_pbx_queue_uuid,
392
400
  'conversation_voicemail_mailbox_uuid': value.conversation_voicemail_mailbox_uuid,
393
401
  'hold_conversation_pbx_audio_uuid': value.hold_conversation_pbx_audio_uuid,
@@ -26,6 +26,12 @@ import {
26
26
  * @interface ConversationPbxTimeBased
27
27
  */
28
28
  export interface ConversationPbxTimeBased {
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof ConversationPbxTimeBased
33
+ */
34
+ context_merchant_id?: string;
29
35
  /**
30
36
  *
31
37
  * @type {string}
@@ -73,6 +79,7 @@ export function ConversationPbxTimeBasedFromJSONTyped(json: any, ignoreDiscrimin
73
79
  }
74
80
  return {
75
81
 
82
+ 'context_merchant_id': !exists(json, 'context_merchant_id') ? undefined : json['context_merchant_id'],
76
83
  'conversation_pbx_time_based_uuid': !exists(json, 'conversation_pbx_time_based_uuid') ? undefined : json['conversation_pbx_time_based_uuid'],
77
84
  'mapping_config': !exists(json, 'mapping_config') ? undefined : ConversationPbxTimeBasedMappingConfigFromJSON(json['mapping_config']),
78
85
  'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
@@ -89,6 +96,7 @@ export function ConversationPbxTimeBasedToJSON(value?: ConversationPbxTimeBased
89
96
  }
90
97
  return {
91
98
 
99
+ 'context_merchant_id': value.context_merchant_id,
92
100
  'conversation_pbx_time_based_uuid': value.conversation_pbx_time_based_uuid,
93
101
  'mapping_config': ConversationPbxTimeBasedMappingConfigToJSON(value.mapping_config),
94
102
  'merchant_id': value.merchant_id,
@@ -32,6 +32,12 @@ export interface ConversationPbxTimeRange {
32
32
  * @memberof ConversationPbxTimeRange
33
33
  */
34
34
  configs?: Array<ConversationPbxTimeRangeConfig>;
35
+ /**
36
+ * Optional child merchant ID this resource is assigned to. Null = shared across the linked merchant group.
37
+ * @type {string}
38
+ * @memberof ConversationPbxTimeRange
39
+ */
40
+ context_merchant_id?: string;
35
41
  /**
36
42
  * Conversation Pbx Time Range UUID
37
43
  * @type {string}
@@ -80,6 +86,7 @@ export function ConversationPbxTimeRangeFromJSONTyped(json: any, ignoreDiscrimin
80
86
  return {
81
87
 
82
88
  'configs': !exists(json, 'configs') ? undefined : ((json['configs'] as Array<any>).map(ConversationPbxTimeRangeConfigFromJSON)),
89
+ 'context_merchant_id': !exists(json, 'context_merchant_id') ? undefined : json['context_merchant_id'],
83
90
  'conversation_pbx_time_range_uuid': !exists(json, 'conversation_pbx_time_range_uuid') ? undefined : json['conversation_pbx_time_range_uuid'],
84
91
  'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
85
92
  'time_range_name': !exists(json, 'time_range_name') ? undefined : json['time_range_name'],
@@ -97,6 +104,7 @@ export function ConversationPbxTimeRangeToJSON(value?: ConversationPbxTimeRange
97
104
  return {
98
105
 
99
106
  'configs': value.configs === undefined ? undefined : ((value.configs as Array<any>).map(ConversationPbxTimeRangeConfigToJSON)),
107
+ 'context_merchant_id': value.context_merchant_id,
100
108
  'conversation_pbx_time_range_uuid': value.conversation_pbx_time_range_uuid,
101
109
  'merchant_id': value.merchant_id,
102
110
  'time_range_name': value.time_range_name,
@@ -19,6 +19,12 @@ import { exists, mapValues } from '../runtime';
19
19
  * @interface ConversationPbxVoicemailMailbox
20
20
  */
21
21
  export interface ConversationPbxVoicemailMailbox {
22
+ /**
23
+ * Optional child merchant ID this resource is assigned to. Null = shared across the linked merchant group.
24
+ * @type {string}
25
+ * @memberof ConversationPbxVoicemailMailbox
26
+ */
27
+ context_merchant_id?: string;
22
28
  /**
23
29
  * Conversation Pbx Voicemail Mailbox UUID
24
30
  * @type {string}
@@ -165,6 +171,7 @@ export function ConversationPbxVoicemailMailboxFromJSONTyped(json: any, ignoreDi
165
171
  }
166
172
  return {
167
173
 
174
+ 'context_merchant_id': !exists(json, 'context_merchant_id') ? undefined : json['context_merchant_id'],
168
175
  'conversation_pbx_voicemail_mailbox_uuid': !exists(json, 'conversation_pbx_voicemail_mailbox_uuid') ? undefined : json['conversation_pbx_voicemail_mailbox_uuid'],
169
176
  'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
170
177
  'send_notices_to_channel': !exists(json, 'send_notices_to_channel') ? undefined : json['send_notices_to_channel'],
@@ -191,6 +198,7 @@ export function ConversationPbxVoicemailMailboxToJSON(value?: ConversationPbxVoi
191
198
  }
192
199
  return {
193
200
 
201
+ 'context_merchant_id': value.context_merchant_id,
194
202
  'conversation_pbx_voicemail_mailbox_uuid': value.conversation_pbx_voicemail_mailbox_uuid,
195
203
  'merchant_id': value.merchant_id,
196
204
  'send_notices_to_channel': value.send_notices_to_channel,
@@ -134,6 +134,7 @@ export * from './CheckoutStateProvinceResponse';
134
134
  export * from './CityStateZip';
135
135
  export * from './Conversation';
136
136
  export * from './ConversationAgentAuth';
137
+ export * from './ConversationAgentAuthMerchant';
137
138
  export * from './ConversationAgentAuthResponse';
138
139
  export * from './ConversationAgentProfile';
139
140
  export * from './ConversationAgentProfileResponse';