ultracart_rest_api_v2_typescript 4.1.73 → 4.1.76
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/.openapi-generator/FILES +3 -0
- package/README.md +5 -2
- package/dist/apis/AutoOrderApi.d.ts +34 -1
- package/dist/apis/AutoOrderApi.js +67 -0
- package/dist/apis/ConversationEmbedApi.d.ts +140 -0
- package/dist/apis/ConversationEmbedApi.js +381 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AutoOrderItemCancelRequest.d.ts +45 -0
- package/dist/models/AutoOrderItemCancelRequest.js +59 -0
- package/dist/models/ConversationEmbedPbxAuthResponse.d.ts +61 -0
- package/dist/models/ConversationEmbedPbxAuthResponse.js +60 -0
- package/dist/models/OrderFormat.d.ts +6 -0
- package/dist/models/OrderFormat.js +2 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/apis/AutoOrderApi.ts +81 -0
- package/src/apis/ConversationEmbedApi.ts +379 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AutoOrderItemCancelRequest.ts +85 -0
- package/src/models/ConversationEmbedPbxAuthResponse.ts +107 -0
- package/src/models/OrderFormat.ts +8 -0
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -7,6 +7,7 @@ src/apis/AutoOrderApi.ts
|
|
|
7
7
|
src/apis/ChannelPartnerApi.ts
|
|
8
8
|
src/apis/CheckoutApi.ts
|
|
9
9
|
src/apis/ConversationApi.ts
|
|
10
|
+
src/apis/ConversationEmbedApi.ts
|
|
10
11
|
src/apis/CouponApi.ts
|
|
11
12
|
src/apis/CustomerApi.ts
|
|
12
13
|
src/apis/DatawarehouseApi.ts
|
|
@@ -52,6 +53,7 @@ src/models/AutoOrderAddonItemOption.ts
|
|
|
52
53
|
src/models/AutoOrderAddonItemsUpdateRequest.ts
|
|
53
54
|
src/models/AutoOrderConsolidate.ts
|
|
54
55
|
src/models/AutoOrderItem.ts
|
|
56
|
+
src/models/AutoOrderItemCancelRequest.ts
|
|
55
57
|
src/models/AutoOrderItemFutureSchedule.ts
|
|
56
58
|
src/models/AutoOrderItemOption.ts
|
|
57
59
|
src/models/AutoOrderItemSimpleSchedule.ts
|
|
@@ -174,6 +176,7 @@ src/models/ConversationDepartmentMember.ts
|
|
|
174
176
|
src/models/ConversationDepartmentMembersResponse.ts
|
|
175
177
|
src/models/ConversationDepartmentResponse.ts
|
|
176
178
|
src/models/ConversationDepartmentsResponse.ts
|
|
179
|
+
src/models/ConversationEmbedPbxAuthResponse.ts
|
|
177
180
|
src/models/ConversationEngagement.ts
|
|
178
181
|
src/models/ConversationEngagementEquation.ts
|
|
179
182
|
src/models/ConversationEngagementEquationFunction.ts
|
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# UltraCart Typescript SDK
|
|
2
|
-
## ultracart_rest_api_v2_typescript@4.1.
|
|
2
|
+
## ultracart_rest_api_v2_typescript@4.1.76
|
|
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.
|
|
9
|
+
npm install ultracart_rest_api_v2_typescript@4.1.76 --save
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
@@ -85,6 +85,9 @@ Not every change is committed to every SDK.
|
|
|
85
85
|
|
|
86
86
|
| Version | Date | Comments |
|
|
87
87
|
| --: | :-: | --- |
|
|
88
|
+
| 4.1.76 | 04/17/2026 | conversation - embed oauth methods |
|
|
89
|
+
| 4.1.75 | 04/17/2026 | conversation - embed oauth methods |
|
|
90
|
+
| 4.1.74 | 04/15/2026 | auto order - new method cancelAutoOrderItemByReferenceOrderId |
|
|
88
91
|
| 4.1.73 | 04/13/2026 | conversation pbx - queue configuration for ai summary and call record zoho desk |
|
|
89
92
|
| 4.1.72 | 04/11/2026 | conversation pbx - voicemail notification channels |
|
|
90
93
|
| 4.1.71 | 04/06/2026 | coupons - new percent_off_items_with_minimum_item_amount |
|
|
@@ -10,7 +10,13 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { AutoOrder, AutoOrderAddonItemsUpdateRequest, AutoOrderConsolidate, AutoOrderPropertiesUpdateRequest, AutoOrderQuery, AutoOrderQueryBatch, AutoOrderResponse, AutoOrdersRequest, AutoOrdersResponse } from '../models';
|
|
13
|
+
import { AutoOrder, AutoOrderAddonItemsUpdateRequest, AutoOrderConsolidate, AutoOrderItemCancelRequest, AutoOrderPropertiesUpdateRequest, AutoOrderQuery, AutoOrderQueryBatch, AutoOrderResponse, AutoOrdersRequest, AutoOrdersResponse } from '../models';
|
|
14
|
+
export interface CancelAutoOrderItemByReferenceOrderIdRequest {
|
|
15
|
+
referenceOrderId: string;
|
|
16
|
+
originalItemId: string;
|
|
17
|
+
expand?: string;
|
|
18
|
+
autoOrderItemCancelRequest?: AutoOrderItemCancelRequest;
|
|
19
|
+
}
|
|
14
20
|
export interface ConsolidateAutoOrdersRequest {
|
|
15
21
|
autoOrderOid: number;
|
|
16
22
|
autoOrderConsolidate: AutoOrderConsolidate;
|
|
@@ -109,6 +115,23 @@ export interface UpdateAutoOrdersBatchRequest {
|
|
|
109
115
|
* @interface AutoOrderApiInterface
|
|
110
116
|
*/
|
|
111
117
|
export interface AutoOrderApiInterface {
|
|
118
|
+
/**
|
|
119
|
+
* Cancels a single item on an auto order identified by the original order id and the item\'s original_item_id. The request body may specify mode=end (soft cancel by setting no_order_after_dts to the current time, preserving the row for reporting; this is the default when the body is omitted) or mode=remove (hard delete). Returns the updated auto order based upon expansion.
|
|
120
|
+
* @summary Cancel a single item on an auto order
|
|
121
|
+
* @param {string} referenceOrderId The reference order id (original_order_id) of the auto order.
|
|
122
|
+
* @param {string} originalItemId The original_item_id (SKU) of the item to cancel.
|
|
123
|
+
* @param {string} [expand] The object expansion to perform on the result. See documentation for examples
|
|
124
|
+
* @param {AutoOrderItemCancelRequest} [autoOrderItemCancelRequest] Cancel request. Body is optional; omit for default mode=end.
|
|
125
|
+
* @param {*} [options] Override http request option.
|
|
126
|
+
* @throws {RequiredError}
|
|
127
|
+
* @memberof AutoOrderApiInterface
|
|
128
|
+
*/
|
|
129
|
+
cancelAutoOrderItemByReferenceOrderIdRaw(requestParameters: CancelAutoOrderItemByReferenceOrderIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AutoOrderResponse>>;
|
|
130
|
+
/**
|
|
131
|
+
* Cancels a single item on an auto order identified by the original order id and the item\'s original_item_id. The request body may specify mode=end (soft cancel by setting no_order_after_dts to the current time, preserving the row for reporting; this is the default when the body is omitted) or mode=remove (hard delete). Returns the updated auto order based upon expansion.
|
|
132
|
+
* Cancel a single item on an auto order
|
|
133
|
+
*/
|
|
134
|
+
cancelAutoOrderItemByReferenceOrderId(requestParameters: CancelAutoOrderItemByReferenceOrderIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AutoOrderResponse>;
|
|
112
135
|
/**
|
|
113
136
|
* Consolidates mutliple auto orders on the UltraCart account.
|
|
114
137
|
* @summary Consolidates multiple auto orders
|
|
@@ -359,6 +382,16 @@ export interface AutoOrderApiInterface {
|
|
|
359
382
|
*
|
|
360
383
|
*/
|
|
361
384
|
export declare class AutoOrderApi extends runtime.BaseAPI implements AutoOrderApiInterface {
|
|
385
|
+
/**
|
|
386
|
+
* Cancels a single item on an auto order identified by the original order id and the item\'s original_item_id. The request body may specify mode=end (soft cancel by setting no_order_after_dts to the current time, preserving the row for reporting; this is the default when the body is omitted) or mode=remove (hard delete). Returns the updated auto order based upon expansion.
|
|
387
|
+
* Cancel a single item on an auto order
|
|
388
|
+
*/
|
|
389
|
+
cancelAutoOrderItemByReferenceOrderIdRaw(requestParameters: CancelAutoOrderItemByReferenceOrderIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AutoOrderResponse>>;
|
|
390
|
+
/**
|
|
391
|
+
* Cancels a single item on an auto order identified by the original order id and the item\'s original_item_id. The request body may specify mode=end (soft cancel by setting no_order_after_dts to the current time, preserving the row for reporting; this is the default when the body is omitted) or mode=remove (hard delete). Returns the updated auto order based upon expansion.
|
|
392
|
+
* Cancel a single item on an auto order
|
|
393
|
+
*/
|
|
394
|
+
cancelAutoOrderItemByReferenceOrderId(requestParameters: CancelAutoOrderItemByReferenceOrderIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AutoOrderResponse>;
|
|
362
395
|
/**
|
|
363
396
|
* Consolidates mutliple auto orders on the UltraCart account.
|
|
364
397
|
* Consolidates multiple auto orders
|
|
@@ -75,6 +75,73 @@ var AutoOrderApi = /** @class */ (function (_super) {
|
|
|
75
75
|
function AutoOrderApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* Cancels a single item on an auto order identified by the original order id and the item\'s original_item_id. The request body may specify mode=end (soft cancel by setting no_order_after_dts to the current time, preserving the row for reporting; this is the default when the body is omitted) or mode=remove (hard delete). Returns the updated auto order based upon expansion.
|
|
80
|
+
* Cancel a single item on an auto order
|
|
81
|
+
*/
|
|
82
|
+
AutoOrderApi.prototype.cancelAutoOrderItemByReferenceOrderIdRaw = function (requestParameters, initOverrides) {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
85
|
+
return __generator(this, function (_c) {
|
|
86
|
+
switch (_c.label) {
|
|
87
|
+
case 0:
|
|
88
|
+
if (requestParameters.referenceOrderId === null || requestParameters.referenceOrderId === undefined) {
|
|
89
|
+
throw new runtime.RequiredError('referenceOrderId', 'Required parameter requestParameters.referenceOrderId was null or undefined when calling cancelAutoOrderItemByReferenceOrderId.');
|
|
90
|
+
}
|
|
91
|
+
if (requestParameters.originalItemId === null || requestParameters.originalItemId === undefined) {
|
|
92
|
+
throw new runtime.RequiredError('originalItemId', 'Required parameter requestParameters.originalItemId was null or undefined when calling cancelAutoOrderItemByReferenceOrderId.');
|
|
93
|
+
}
|
|
94
|
+
queryParameters = {};
|
|
95
|
+
if (requestParameters.expand !== undefined) {
|
|
96
|
+
queryParameters['_expand'] = requestParameters.expand;
|
|
97
|
+
}
|
|
98
|
+
headerParameters = {};
|
|
99
|
+
headerParameters['Content-Type'] = 'application/json; charset=UTF-8';
|
|
100
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
101
|
+
// oauth required
|
|
102
|
+
_a = headerParameters;
|
|
103
|
+
_b = "Authorization";
|
|
104
|
+
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["auto_order_write"])];
|
|
105
|
+
case 1:
|
|
106
|
+
// oauth required
|
|
107
|
+
_a[_b] = _c.sent();
|
|
108
|
+
_c.label = 2;
|
|
109
|
+
case 2:
|
|
110
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
111
|
+
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
112
|
+
}
|
|
113
|
+
return [4 /*yield*/, this.request({
|
|
114
|
+
path: "/auto_order/auto_orders/reference_order_id/{reference_order_id}/items/original/{original_item_id}/cancel".replace("{".concat("reference_order_id", "}"), encodeURIComponent(String(requestParameters.referenceOrderId))).replace("{".concat("original_item_id", "}"), encodeURIComponent(String(requestParameters.originalItemId))),
|
|
115
|
+
method: 'POST',
|
|
116
|
+
headers: headerParameters,
|
|
117
|
+
query: queryParameters,
|
|
118
|
+
body: (0, models_1.AutoOrderItemCancelRequestToJSON)(requestParameters.autoOrderItemCancelRequest),
|
|
119
|
+
}, initOverrides)];
|
|
120
|
+
case 3:
|
|
121
|
+
response = _c.sent();
|
|
122
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.AutoOrderResponseFromJSON)(jsonValue); })];
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
});
|
|
126
|
+
};
|
|
127
|
+
/**
|
|
128
|
+
* Cancels a single item on an auto order identified by the original order id and the item\'s original_item_id. The request body may specify mode=end (soft cancel by setting no_order_after_dts to the current time, preserving the row for reporting; this is the default when the body is omitted) or mode=remove (hard delete). Returns the updated auto order based upon expansion.
|
|
129
|
+
* Cancel a single item on an auto order
|
|
130
|
+
*/
|
|
131
|
+
AutoOrderApi.prototype.cancelAutoOrderItemByReferenceOrderId = function (requestParameters, initOverrides) {
|
|
132
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
133
|
+
var response;
|
|
134
|
+
return __generator(this, function (_a) {
|
|
135
|
+
switch (_a.label) {
|
|
136
|
+
case 0: return [4 /*yield*/, this.cancelAutoOrderItemByReferenceOrderIdRaw(requestParameters, initOverrides)];
|
|
137
|
+
case 1:
|
|
138
|
+
response = _a.sent();
|
|
139
|
+
return [4 /*yield*/, response.value()];
|
|
140
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
});
|
|
144
|
+
};
|
|
78
145
|
/**
|
|
79
146
|
* Consolidates mutliple auto orders on the UltraCart account.
|
|
80
147
|
* Consolidates multiple auto orders
|
|
@@ -0,0 +1,140 @@
|
|
|
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
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import { ConversationEmbedPbxAuthResponse } from '../models';
|
|
14
|
+
export interface EmbedOauthDeviceAuthorizeRequest {
|
|
15
|
+
clientId: string;
|
|
16
|
+
scope: string;
|
|
17
|
+
}
|
|
18
|
+
export interface EmbedOauthRevokeRequest {
|
|
19
|
+
clientId: string;
|
|
20
|
+
token: string;
|
|
21
|
+
}
|
|
22
|
+
export interface EmbedOauthTokenRequest {
|
|
23
|
+
clientId: string;
|
|
24
|
+
grantType: string;
|
|
25
|
+
deviceCode?: string;
|
|
26
|
+
refreshToken?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* ConversationEmbedApi - interface
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface ConversationEmbedApiInterface
|
|
33
|
+
*/
|
|
34
|
+
export interface ConversationEmbedApiInterface {
|
|
35
|
+
/**
|
|
36
|
+
* RFC 8628 device authorization. Only the embed widget\'s client_id and the crm_embed scope are accepted.
|
|
37
|
+
* @summary Initiate a device authorization flow for an embed widget.
|
|
38
|
+
* @param {string} clientId The embed widget OAuth client_id.
|
|
39
|
+
* @param {string} scope The application-level scope (must be \\\'crm_embed\\\').
|
|
40
|
+
* @param {*} [options] Override http request option.
|
|
41
|
+
* @throws {RequiredError}
|
|
42
|
+
* @memberof ConversationEmbedApiInterface
|
|
43
|
+
*/
|
|
44
|
+
embedOauthDeviceAuthorizeRaw(requestParameters: EmbedOauthDeviceAuthorizeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
45
|
+
/**
|
|
46
|
+
* RFC 8628 device authorization. Only the embed widget\'s client_id and the crm_embed scope are accepted.
|
|
47
|
+
* Initiate a device authorization flow for an embed widget.
|
|
48
|
+
*/
|
|
49
|
+
embedOauthDeviceAuthorize(requestParameters: EmbedOauthDeviceAuthorizeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
50
|
+
/**
|
|
51
|
+
* RFC 7009 style — the token itself is proof of possession. Accepts either an access token or a refresh token in the \'token\' parameter.
|
|
52
|
+
* @summary Revoke an embed widget access or refresh token.
|
|
53
|
+
* @param {string} clientId The embed widget OAuth client_id.
|
|
54
|
+
* @param {string} token The token to revoke (access token or refresh token).
|
|
55
|
+
* @param {*} [options] Override http request option.
|
|
56
|
+
* @throws {RequiredError}
|
|
57
|
+
* @memberof ConversationEmbedApiInterface
|
|
58
|
+
*/
|
|
59
|
+
embedOauthRevokeRaw(requestParameters: EmbedOauthRevokeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
60
|
+
/**
|
|
61
|
+
* RFC 7009 style — the token itself is proof of possession. Accepts either an access token or a refresh token in the \'token\' parameter.
|
|
62
|
+
* Revoke an embed widget access or refresh token.
|
|
63
|
+
*/
|
|
64
|
+
embedOauthRevoke(requestParameters: EmbedOauthRevokeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
65
|
+
/**
|
|
66
|
+
* Accepts grant_type=urn:ietf:params:oauth:grant-type:device_code or grant_type=refresh_token. Other grant types are rejected. Access tokens issued here expire in 60 minutes.
|
|
67
|
+
* @summary Exchange a device_code or refresh_token for an access token (embed widget).
|
|
68
|
+
* @param {string} clientId The embed widget OAuth client_id.
|
|
69
|
+
* @param {string} grantType Grant type.
|
|
70
|
+
* @param {string} [deviceCode] The device code received from /oauth/device/authorize (required for device_code grant).
|
|
71
|
+
* @param {string} [refreshToken] The refresh token (required for refresh_token grant).
|
|
72
|
+
* @param {*} [options] Override http request option.
|
|
73
|
+
* @throws {RequiredError}
|
|
74
|
+
* @memberof ConversationEmbedApiInterface
|
|
75
|
+
*/
|
|
76
|
+
embedOauthTokenRaw(requestParameters: EmbedOauthTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
77
|
+
/**
|
|
78
|
+
* Accepts grant_type=urn:ietf:params:oauth:grant-type:device_code or grant_type=refresh_token. Other grant types are rejected. Access tokens issued here expire in 60 minutes.
|
|
79
|
+
* Exchange a device_code or refresh_token for an access token (embed widget).
|
|
80
|
+
*/
|
|
81
|
+
embedOauthToken(requestParameters: EmbedOauthTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
82
|
+
/**
|
|
83
|
+
* Returns a narrow subset of agent auth fields — only what the softphone widget needs to connect to the PBX relay. Twilio tokens, conversation JWTs, and chat/customer permissions are intentionally excluded.
|
|
84
|
+
* @summary Get PBX authorization for the embedded softphone widget.
|
|
85
|
+
* @param {*} [options] Override http request option.
|
|
86
|
+
* @throws {RequiredError}
|
|
87
|
+
* @memberof ConversationEmbedApiInterface
|
|
88
|
+
*/
|
|
89
|
+
getEmbedPbxAuthRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationEmbedPbxAuthResponse>>;
|
|
90
|
+
/**
|
|
91
|
+
* Returns a narrow subset of agent auth fields — only what the softphone widget needs to connect to the PBX relay. Twilio tokens, conversation JWTs, and chat/customer permissions are intentionally excluded.
|
|
92
|
+
* Get PBX authorization for the embedded softphone widget.
|
|
93
|
+
*/
|
|
94
|
+
getEmbedPbxAuth(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationEmbedPbxAuthResponse>;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
*/
|
|
99
|
+
export declare class ConversationEmbedApi extends runtime.BaseAPI implements ConversationEmbedApiInterface {
|
|
100
|
+
/**
|
|
101
|
+
* RFC 8628 device authorization. Only the embed widget\'s client_id and the crm_embed scope are accepted.
|
|
102
|
+
* Initiate a device authorization flow for an embed widget.
|
|
103
|
+
*/
|
|
104
|
+
embedOauthDeviceAuthorizeRaw(requestParameters: EmbedOauthDeviceAuthorizeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
105
|
+
/**
|
|
106
|
+
* RFC 8628 device authorization. Only the embed widget\'s client_id and the crm_embed scope are accepted.
|
|
107
|
+
* Initiate a device authorization flow for an embed widget.
|
|
108
|
+
*/
|
|
109
|
+
embedOauthDeviceAuthorize(requestParameters: EmbedOauthDeviceAuthorizeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
110
|
+
/**
|
|
111
|
+
* RFC 7009 style — the token itself is proof of possession. Accepts either an access token or a refresh token in the \'token\' parameter.
|
|
112
|
+
* Revoke an embed widget access or refresh token.
|
|
113
|
+
*/
|
|
114
|
+
embedOauthRevokeRaw(requestParameters: EmbedOauthRevokeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
115
|
+
/**
|
|
116
|
+
* RFC 7009 style — the token itself is proof of possession. Accepts either an access token or a refresh token in the \'token\' parameter.
|
|
117
|
+
* Revoke an embed widget access or refresh token.
|
|
118
|
+
*/
|
|
119
|
+
embedOauthRevoke(requestParameters: EmbedOauthRevokeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
120
|
+
/**
|
|
121
|
+
* Accepts grant_type=urn:ietf:params:oauth:grant-type:device_code or grant_type=refresh_token. Other grant types are rejected. Access tokens issued here expire in 60 minutes.
|
|
122
|
+
* Exchange a device_code or refresh_token for an access token (embed widget).
|
|
123
|
+
*/
|
|
124
|
+
embedOauthTokenRaw(requestParameters: EmbedOauthTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
125
|
+
/**
|
|
126
|
+
* Accepts grant_type=urn:ietf:params:oauth:grant-type:device_code or grant_type=refresh_token. Other grant types are rejected. Access tokens issued here expire in 60 minutes.
|
|
127
|
+
* Exchange a device_code or refresh_token for an access token (embed widget).
|
|
128
|
+
*/
|
|
129
|
+
embedOauthToken(requestParameters: EmbedOauthTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
130
|
+
/**
|
|
131
|
+
* Returns a narrow subset of agent auth fields — only what the softphone widget needs to connect to the PBX relay. Twilio tokens, conversation JWTs, and chat/customer permissions are intentionally excluded.
|
|
132
|
+
* Get PBX authorization for the embedded softphone widget.
|
|
133
|
+
*/
|
|
134
|
+
getEmbedPbxAuthRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationEmbedPbxAuthResponse>>;
|
|
135
|
+
/**
|
|
136
|
+
* Returns a narrow subset of agent auth fields — only what the softphone widget needs to connect to the PBX relay. Twilio tokens, conversation JWTs, and chat/customer permissions are intentionally excluded.
|
|
137
|
+
* Get PBX authorization for the embedded softphone widget.
|
|
138
|
+
*/
|
|
139
|
+
getEmbedPbxAuth(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationEmbedPbxAuthResponse>;
|
|
140
|
+
}
|