twilio 6.0.0 → 6.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/lib/rest/ConversationsBase.d.ts +3 -0
  2. package/lib/rest/ConversationsBase.js +5 -0
  3. package/lib/rest/InsightsBase.d.ts +3 -0
  4. package/lib/rest/InsightsBase.js +5 -0
  5. package/lib/rest/IntelligenceBase.d.ts +3 -0
  6. package/lib/rest/IntelligenceBase.js +5 -0
  7. package/lib/rest/KnowledgeBase.d.ts +3 -0
  8. package/lib/rest/KnowledgeBase.js +5 -0
  9. package/lib/rest/Memory.d.ts +4 -0
  10. package/lib/rest/Memory.js +8 -0
  11. package/lib/rest/MemoryBase.d.ts +13 -0
  12. package/lib/rest/MemoryBase.js +31 -0
  13. package/lib/rest/Twilio.d.ts +5 -0
  14. package/lib/rest/Twilio.js +5 -0
  15. package/lib/rest/VoiceBase.d.ts +3 -0
  16. package/lib/rest/VoiceBase.js +5 -0
  17. package/lib/rest/api/v2010/account/call/recording.d.ts +2 -0
  18. package/lib/rest/api/v2010/account/call/recording.js +4 -0
  19. package/lib/rest/api/v2010/account/call/transcription.d.ts +1 -1
  20. package/lib/rest/api/v2010/account/call/transcription.js +6 -4
  21. package/lib/rest/api/v2010/account/call.d.ts +2 -0
  22. package/lib/rest/api/v2010/account/call.js +4 -0
  23. package/lib/rest/api/v2010/account/conference/participant.d.ts +2 -0
  24. package/lib/rest/api/v2010/account/conference/participant.js +4 -0
  25. package/lib/rest/conversations/V2.d.ts +38 -0
  26. package/lib/rest/conversations/V2.js +72 -0
  27. package/lib/rest/conversations/v2/action.d.ts +241 -0
  28. package/lib/rest/conversations/v2/action.js +246 -0
  29. package/lib/rest/conversations/v2/communication.d.ts +479 -0
  30. package/lib/rest/conversations/v2/communication.js +436 -0
  31. package/lib/rest/conversations/v2/configuration.d.ts +906 -0
  32. package/lib/rest/conversations/v2/configuration.js +619 -0
  33. package/lib/rest/conversations/v2/conversation.d.ts +936 -0
  34. package/lib/rest/conversations/v2/conversation.js +664 -0
  35. package/lib/rest/conversations/v2/operation.d.ts +167 -0
  36. package/lib/rest/conversations/v2/operation.js +170 -0
  37. package/lib/rest/conversations/v2/participant.d.ts +469 -0
  38. package/lib/rest/conversations/v2/participant.js +442 -0
  39. package/lib/rest/flexApi/v1/plugin/pluginVersions.d.ts +1 -1
  40. package/lib/rest/flexApi/v1/plugin/pluginVersions.js +8 -6
  41. package/lib/rest/insights/V3.d.ts +20 -0
  42. package/lib/rest/insights/V3.js +42 -0
  43. package/lib/rest/insights/v1/call/callSummary.d.ts +10 -10
  44. package/lib/rest/insights/v1/call/event.d.ts +4 -4
  45. package/lib/rest/insights/v1/callSummaries.d.ts +12 -9
  46. package/lib/rest/insights/v3/metadata.d.ts +115 -0
  47. package/lib/rest/insights/v3/metadata.js +118 -0
  48. package/lib/rest/insights/v3/query.d.ts +180 -0
  49. package/lib/rest/insights/v3/query.js +214 -0
  50. package/lib/rest/intelligence/V3.d.ts +35 -0
  51. package/lib/rest/intelligence/V3.js +65 -0
  52. package/lib/rest/intelligence/v3/configuration.d.ts +693 -0
  53. package/lib/rest/intelligence/v3/configuration.js +528 -0
  54. package/lib/rest/intelligence/v3/conversation.d.ts +478 -0
  55. package/lib/rest/intelligence/v3/conversation.js +342 -0
  56. package/lib/rest/intelligence/v3/operator.d.ts +619 -0
  57. package/lib/rest/intelligence/v3/operator.js +493 -0
  58. package/lib/rest/intelligence/v3/operatorResult.d.ts +543 -0
  59. package/lib/rest/intelligence/v3/operatorResult.js +478 -0
  60. package/lib/rest/intelligence/v3/version.d.ts +469 -0
  61. package/lib/rest/intelligence/v3/version.js +341 -0
  62. package/lib/rest/knowledge/V2.d.ts +31 -0
  63. package/lib/rest/knowledge/V2.js +62 -0
  64. package/lib/rest/knowledge/v2/chunk.d.ts +209 -0
  65. package/lib/rest/knowledge/v2/chunk.js +178 -0
  66. package/lib/rest/knowledge/v2/knowledge.d.ts +507 -0
  67. package/lib/rest/knowledge/v2/knowledge.js +466 -0
  68. package/lib/rest/knowledge/v2/knowledgeBasis.d.ts +484 -0
  69. package/lib/rest/knowledge/v2/knowledgeBasis.js +441 -0
  70. package/lib/rest/knowledge/v2/operation.d.ts +162 -0
  71. package/lib/rest/knowledge/v2/operation.js +175 -0
  72. package/lib/rest/knowledge/v2/search.d.ts +180 -0
  73. package/lib/rest/knowledge/v2/search.js +174 -0
  74. package/lib/rest/memory/V1.d.ts +76 -0
  75. package/lib/rest/memory/V1.js +140 -0
  76. package/lib/rest/memory/v1/bulk.d.ts +129 -0
  77. package/lib/rest/memory/v1/bulk.js +158 -0
  78. package/lib/rest/memory/v1/conversationSummary.d.ts +531 -0
  79. package/lib/rest/memory/v1/conversationSummary.js +473 -0
  80. package/lib/rest/memory/v1/dataMapping.d.ts +630 -0
  81. package/lib/rest/memory/v1/dataMapping.js +512 -0
  82. package/lib/rest/memory/v1/event.d.ts +153 -0
  83. package/lib/rest/memory/v1/event.js +159 -0
  84. package/lib/rest/memory/v1/identifier.d.ts +362 -0
  85. package/lib/rest/memory/v1/identifier.js +369 -0
  86. package/lib/rest/memory/v1/identityResolutionSetting.d.ts +247 -0
  87. package/lib/rest/memory/v1/identityResolutionSetting.js +229 -0
  88. package/lib/rest/memory/v1/import.d.ts +292 -0
  89. package/lib/rest/memory/v1/import.js +280 -0
  90. package/lib/rest/memory/v1/lookup.d.ts +82 -0
  91. package/lib/rest/memory/v1/lookup.js +118 -0
  92. package/lib/rest/memory/v1/observation.d.ts +521 -0
  93. package/lib/rest/memory/v1/observation.js +477 -0
  94. package/lib/rest/memory/v1/operation.d.ts +162 -0
  95. package/lib/rest/memory/v1/operation.js +175 -0
  96. package/lib/rest/memory/v1/profile.d.ts +548 -0
  97. package/lib/rest/memory/v1/profile.js +531 -0
  98. package/lib/rest/memory/v1/recall.d.ts +306 -0
  99. package/lib/rest/memory/v1/recall.js +234 -0
  100. package/lib/rest/memory/v1/revision.d.ts +246 -0
  101. package/lib/rest/memory/v1/revision.js +195 -0
  102. package/lib/rest/memory/v1/store.d.ts +544 -0
  103. package/lib/rest/memory/v1/store.js +534 -0
  104. package/lib/rest/memory/v1/trait.d.ts +233 -0
  105. package/lib/rest/memory/v1/trait.js +190 -0
  106. package/lib/rest/memory/v1/traitGroup.d.ts +758 -0
  107. package/lib/rest/memory/v1/traitGroup.js +555 -0
  108. package/lib/rest/messaging/v2/channelsSender.d.ts +8 -0
  109. package/lib/rest/messaging/v2/channelsSender.js +2 -0
  110. package/lib/rest/previewIam/versionless/organization/roleAssignment.d.ts +32 -0
  111. package/lib/rest/previewIam/versionless/organization/roleAssignment.js +14 -0
  112. package/lib/rest/studio/v2/flow.d.ts +4 -0
  113. package/lib/rest/studio/v2/flow.js +8 -0
  114. package/lib/rest/verify/v2/service/webhook.d.ts +2 -2
  115. package/lib/rest/verify/v2/service/webhook.js +8 -8
  116. package/lib/rest/voice/V3.d.ts +15 -0
  117. package/lib/rest/voice/V3.js +37 -0
  118. package/lib/rest/voice/v3/transcription.d.ts +378 -0
  119. package/lib/rest/voice/v3/transcription.js +264 -0
  120. package/lib/twiml/VoiceResponse.d.ts +8 -0
  121. package/package.json +1 -1
@@ -0,0 +1,159 @@
1
+ "use strict";
2
+ /*
3
+ * This code was generated by
4
+ * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
5
+ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
6
+ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
7
+ *
8
+ * Twilio Memory API
9
+ * APIs for managing memory stores, profiles, events, and conversational intelligence capabilities.
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator.
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.EventInstance = exports.ProfileEventRequestEvents = exports.ProfileEventRequest = exports.CommunicationLifecycleEventSender = exports.CommunicationLifecycleEventRecipient = void 0;
17
+ exports.EventListInstance = EventListInstance;
18
+ const util_1 = require("util");
19
+ const deserialize = require("../../../base/deserialize");
20
+ const serialize = require("../../../base/serialize");
21
+ const utility_1 = require("../../../base/utility");
22
+ class CommunicationLifecycleEventRecipient {
23
+ constructor(payload) {
24
+ this.address = payload["address"];
25
+ this.participantId = payload["participantId"];
26
+ }
27
+ }
28
+ exports.CommunicationLifecycleEventRecipient = CommunicationLifecycleEventRecipient;
29
+ class CommunicationLifecycleEventSender {
30
+ constructor(payload) {
31
+ this.address = payload["address"];
32
+ this.participantId = payload["participantId"];
33
+ }
34
+ }
35
+ exports.CommunicationLifecycleEventSender = CommunicationLifecycleEventSender;
36
+ /**
37
+ * Request body for adding events to a specific profile. This request can contain multiple events.
38
+ */
39
+ class ProfileEventRequest {
40
+ constructor(payload) {
41
+ this.type = payload["type"];
42
+ this.events = payload["events"];
43
+ }
44
+ }
45
+ exports.ProfileEventRequest = ProfileEventRequest;
46
+ class ProfileEventRequestEvents {
47
+ constructor(payload) {
48
+ this.timestamp = payload["timestamp"];
49
+ this.lifecycle = payload["lifecycle"];
50
+ this.conversationId = payload["conversationId"];
51
+ this.communicationId = payload["communicationId"];
52
+ this.communicationType = payload["communicationType"];
53
+ this.communicationStatus = payload["communicationStatus"];
54
+ this.direction = payload["direction"];
55
+ this.sender = payload["sender"];
56
+ this.recipient = payload["recipient"];
57
+ this.errorCode = payload["errorCode"];
58
+ this.errorMessage = payload["errorMessage"];
59
+ }
60
+ }
61
+ exports.ProfileEventRequestEvents = ProfileEventRequestEvents;
62
+ function EventListInstance(version, storeId, profileId) {
63
+ if (!(0, utility_1.isValidPathParam)(storeId)) {
64
+ throw new Error("Parameter 'storeId' is not valid.");
65
+ }
66
+ if (!(0, utility_1.isValidPathParam)(profileId)) {
67
+ throw new Error("Parameter 'profileId' is not valid.");
68
+ }
69
+ const instance = {};
70
+ instance._version = version;
71
+ instance._solution = { storeId, profileId };
72
+ instance._uri = `/Stores/${storeId}/Profiles/${profileId}/Events`;
73
+ instance.create = function create(params, headers, callback) {
74
+ if (params instanceof Function) {
75
+ callback = params;
76
+ params = {};
77
+ }
78
+ else {
79
+ params =
80
+ params || {};
81
+ }
82
+ let data = {};
83
+ data = params;
84
+ if (headers === null || headers === undefined) {
85
+ headers = {};
86
+ }
87
+ headers["Content-Type"] = "application/json";
88
+ headers["Accept"] = "application/json";
89
+ let operationVersion = version, operationPromise = operationVersion.create({
90
+ uri: instance._uri,
91
+ method: "post",
92
+ data,
93
+ headers,
94
+ });
95
+ operationPromise = operationPromise.then((payload) => new EventInstance(operationVersion, payload, instance._solution.storeId, instance._solution.profileId));
96
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
97
+ return operationPromise;
98
+ };
99
+ instance.createWithHttpInfo = function createWithHttpInfo(params, headers, callback) {
100
+ if (params instanceof Function) {
101
+ callback = params;
102
+ params = {};
103
+ }
104
+ else {
105
+ params =
106
+ params || {};
107
+ }
108
+ let data = {};
109
+ data = params;
110
+ if (headers === null || headers === undefined) {
111
+ headers = {};
112
+ }
113
+ headers["Content-Type"] = "application/json";
114
+ headers["Accept"] = "application/json";
115
+ let operationVersion = version;
116
+ // CREATE, FETCH, UPDATE operations
117
+ let operationPromise = operationVersion
118
+ .createWithResponseInfo({
119
+ uri: instance._uri,
120
+ method: "post",
121
+ data,
122
+ headers,
123
+ })
124
+ .then((response) => ({
125
+ ...response,
126
+ body: new EventInstance(operationVersion, response.body, instance._solution.storeId, instance._solution.profileId),
127
+ }));
128
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
129
+ return operationPromise;
130
+ };
131
+ instance.toJSON = function toJSON() {
132
+ return instance._solution;
133
+ };
134
+ instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
135
+ return (0, util_1.inspect)(instance.toJSON(), options);
136
+ };
137
+ return instance;
138
+ }
139
+ class EventInstance {
140
+ constructor(_version, _payload, storeId, profileId) {
141
+ this._version = _version;
142
+ const payload = _payload;
143
+ this.message = payload.message;
144
+ }
145
+ /**
146
+ * Provide a user-friendly representation
147
+ *
148
+ * @returns Object
149
+ */
150
+ toJSON() {
151
+ return {
152
+ message: this.message,
153
+ };
154
+ }
155
+ [util_1.inspect.custom](_depth, options) {
156
+ return (0, util_1.inspect)(this.toJSON(), options);
157
+ }
158
+ }
159
+ exports.EventInstance = EventInstance;
@@ -0,0 +1,362 @@
1
+ import { inspect, InspectOptions } from "util";
2
+ import V1 from "../V1";
3
+ import { ApiResponse } from "../../../base/ApiResponse";
4
+ /**
5
+ * Represents a single identifier value paired with its `idType`. Write operations obey limits, uniqueness, and normalization rules configured via identifier settings.
6
+ */
7
+ export declare class Identifier {
8
+ /**
9
+ * Identifier type as configured in the service\'s Identity Resolution Settings.
10
+ */
11
+ "idType": string;
12
+ /**
13
+ * Raw value captured for the identifier. The service may normalize this value according to the `normalization` rule defined in the identifier settings before storage or matching (for example E.164 formatting for phone numbers).
14
+ */
15
+ "value": string;
16
+ constructor(payload: any);
17
+ }
18
+ export declare class IdentifierUpdate {
19
+ /**
20
+ * The identifier type to update (e.g., email, phone).
21
+ */
22
+ "idType": string;
23
+ /**
24
+ * Existing stored value to replace.
25
+ */
26
+ "oldValue": string;
27
+ /**
28
+ * New value to store for the identifier. Normalization rules from the corresponding identifier settings apply.
29
+ */
30
+ "newValue": string;
31
+ constructor(payload: any);
32
+ }
33
+ /**
34
+ * Options to pass to remove a IdentifierInstance
35
+ */
36
+ export interface IdentifierContextRemoveOptions {
37
+ /** When true, removes every stored value for the identifier type in a single operation. Defaults to false. */
38
+ removeAll?: boolean;
39
+ }
40
+ /**
41
+ * Options to pass to patch a IdentifierInstance
42
+ */
43
+ export interface IdentifierContextPatchOptions {
44
+ /** */
45
+ identifierUpdate: IdentifierUpdate;
46
+ }
47
+ /**
48
+ * Options to pass to create a IdentifierInstance
49
+ */
50
+ export interface IdentifierListInstanceCreateOptions {
51
+ /** */
52
+ identifier: Identifier;
53
+ }
54
+ /**
55
+ * Options to pass to list
56
+ */
57
+ export interface IdentifierListInstanceOptions {
58
+ /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
59
+ limit?: number;
60
+ }
61
+ export interface IdentifierContext {
62
+ /**
63
+ * Remove a IdentifierInstance
64
+ *
65
+ * @param callback - Callback to handle processed record
66
+ *
67
+ * @returns Resolves to processed IdentifierInstance
68
+ */
69
+ remove(callback?: (error: Error | null, item?: IdentifierInstance) => any): Promise<IdentifierInstance>;
70
+ /**
71
+ * Remove a IdentifierInstance
72
+ *
73
+ * @param params - Parameter for request
74
+ * @param callback - Callback to handle processed record
75
+ *
76
+ * @returns Resolves to processed IdentifierInstance
77
+ */
78
+ remove(params: IdentifierContextRemoveOptions, callback?: (error: Error | null, item?: IdentifierInstance) => any): Promise<IdentifierInstance>;
79
+ /**
80
+ * Remove a IdentifierInstance and return HTTP info
81
+ *
82
+ * @param callback - Callback to handle processed record
83
+ *
84
+ * @returns Resolves to processed IdentifierInstance with HTTP metadata
85
+ */
86
+ removeWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<IdentifierInstance>) => any): Promise<ApiResponse<IdentifierInstance>>;
87
+ /**
88
+ * Remove a IdentifierInstance and return HTTP info
89
+ *
90
+ * @param params - Parameter for request
91
+ * @param callback - Callback to handle processed record
92
+ *
93
+ * @returns Resolves to processed IdentifierInstance with HTTP metadata
94
+ */
95
+ removeWithHttpInfo(params: IdentifierContextRemoveOptions, callback?: (error: Error | null, item?: ApiResponse<IdentifierInstance>) => any): Promise<ApiResponse<IdentifierInstance>>;
96
+ /**
97
+ * Fetch a IdentifierInstance
98
+ *
99
+ * @param callback - Callback to handle processed record
100
+ *
101
+ * @returns Resolves to processed IdentifierInstance
102
+ */
103
+ fetch(callback?: (error: Error | null, item?: IdentifierInstance) => any): Promise<IdentifierInstance>;
104
+ /**
105
+ * Fetch a IdentifierInstance and return HTTP info
106
+ *
107
+ * @param callback - Callback to handle processed record
108
+ *
109
+ * @returns Resolves to processed IdentifierInstance with HTTP metadata
110
+ */
111
+ fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<IdentifierInstance>) => any): Promise<ApiResponse<IdentifierInstance>>;
112
+ /**
113
+ * Patch a IdentifierInstance
114
+ *
115
+ * @param params - Body for request
116
+ * @param headers - header params for request
117
+ * @param callback - Callback to handle processed record
118
+ *
119
+ * @returns Resolves to processed IdentifierInstance
120
+ */
121
+ patch(params: IdentifierUpdate, headers?: any, callback?: (error: Error | null, item?: IdentifierInstance) => any): Promise<IdentifierInstance>;
122
+ /**
123
+ * Patch a IdentifierInstance and return HTTP info
124
+ *
125
+ * @param params - Body for request
126
+ * @param headers - header params for request
127
+ * @param callback - Callback to handle processed record
128
+ *
129
+ * @returns Resolves to processed IdentifierInstance with HTTP metadata
130
+ */
131
+ patchWithHttpInfo(params: IdentifierUpdate, headers?: any, callback?: (error: Error | null, item?: ApiResponse<IdentifierInstance>) => any): Promise<ApiResponse<IdentifierInstance>>;
132
+ /**
133
+ * Provide a user-friendly representation
134
+ */
135
+ toJSON(): any;
136
+ [inspect.custom](_depth: any, options: InspectOptions): any;
137
+ }
138
+ export interface IdentifierContextSolution {
139
+ storeId: string;
140
+ profileId: string;
141
+ idType: string;
142
+ }
143
+ export declare class IdentifierContextImpl implements IdentifierContext {
144
+ protected _version: V1;
145
+ protected _solution: IdentifierContextSolution;
146
+ protected _uri: string;
147
+ constructor(_version: V1, storeId: string, profileId: string, idType: string);
148
+ remove(params?: IdentifierContextRemoveOptions | ((error: Error | null, item?: IdentifierInstance) => any), callback?: (error: Error | null, item?: IdentifierInstance) => any): Promise<IdentifierInstance>;
149
+ removeWithHttpInfo(params?: IdentifierContextRemoveOptions | ((error: Error | null, item?: ApiResponse<IdentifierInstance>) => any), callback?: (error: Error | null, item?: ApiResponse<IdentifierInstance>) => any): Promise<ApiResponse<IdentifierInstance>>;
150
+ fetch(callback?: (error: Error | null, item?: IdentifierInstance) => any): Promise<IdentifierInstance>;
151
+ fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<IdentifierInstance>) => any): Promise<ApiResponse<IdentifierInstance>>;
152
+ patch(params: IdentifierUpdate, headers?: any, callback?: (error: Error | null, item?: IdentifierInstance) => any): Promise<IdentifierInstance>;
153
+ patchWithHttpInfo(params: IdentifierUpdate, headers?: any, callback?: (error: Error | null, item?: ApiResponse<IdentifierInstance>) => any): Promise<ApiResponse<IdentifierInstance>>;
154
+ /**
155
+ * Provide a user-friendly representation
156
+ *
157
+ * @returns Object
158
+ */
159
+ toJSON(): IdentifierContextSolution;
160
+ [inspect.custom](_depth: any, options: InspectOptions): string;
161
+ }
162
+ /**
163
+ * Nested model for Identifier
164
+ */
165
+ export interface Identifier {
166
+ idType: string;
167
+ value: string;
168
+ }
169
+ /**
170
+ * Nested model for IdentifierUpdate
171
+ */
172
+ export interface IdentifierUpdate {
173
+ idType: string;
174
+ oldValue: string;
175
+ newValue: string;
176
+ }
177
+ /**
178
+ * Response model for CreateProfileIdentifier202Response operations
179
+ */
180
+ interface CreateProfileIdentifier202Response_ResponseResource {
181
+ message: string;
182
+ }
183
+ /**
184
+ * Response model for IdentifierSet operations
185
+ */
186
+ interface IdentifierSet_ResponseResource {
187
+ idType: string;
188
+ values: Array<string>;
189
+ }
190
+ /**
191
+ * Response model for DeleteProfileIdentifier202Response operations
192
+ */
193
+ interface DeleteProfileIdentifier202Response_ResponseResource {
194
+ message: string;
195
+ }
196
+ /**
197
+ * Response model for PatchProfileIdentifier202Response operations
198
+ */
199
+ interface PatchProfileIdentifier202Response_ResponseResource {
200
+ message: string;
201
+ }
202
+ /**
203
+ * Union type for all possible response models
204
+ */
205
+ type IdentifierResource = CreateProfileIdentifier202Response_ResponseResource | IdentifierSet_ResponseResource | DeleteProfileIdentifier202Response_ResponseResource | PatchProfileIdentifier202Response_ResponseResource;
206
+ export declare class IdentifierInstance {
207
+ protected _version: V1;
208
+ protected _solution: IdentifierContextSolution;
209
+ protected _context?: IdentifierContext;
210
+ constructor(_version: V1, _payload: IdentifierResource, storeId: string, profileId: string, idType?: string);
211
+ message?: string;
212
+ /**
213
+ * Identifier type defined in Identity Resolution Settings.
214
+ */
215
+ idType?: string;
216
+ /**
217
+ * Server managed collection of stored values for the identifier type. Identifier values are normalized according to the corresponding identifier settings and ordered chronologically.
218
+ */
219
+ values?: Array<string>;
220
+ private get _proxy();
221
+ /**
222
+ * Remove a IdentifierInstance
223
+ *
224
+ * @param callback - Callback to handle processed record
225
+ *
226
+ * @returns Resolves to processed IdentifierInstance
227
+ */
228
+ remove(callback?: (error: Error | null, item?: IdentifierInstance) => any): Promise<IdentifierInstance>;
229
+ /**
230
+ * Remove a IdentifierInstance
231
+ *
232
+ * @param params - Parameter for request
233
+ * @param callback - Callback to handle processed record
234
+ *
235
+ * @returns Resolves to processed IdentifierInstance
236
+ */
237
+ remove(params: IdentifierContextRemoveOptions, callback?: (error: Error | null, item?: IdentifierInstance) => any): Promise<IdentifierInstance>;
238
+ /**
239
+ * Remove a IdentifierInstance and return HTTP info
240
+ *
241
+ * @param callback - Callback to handle processed record
242
+ *
243
+ * @returns Resolves to processed IdentifierInstance with HTTP metadata
244
+ */
245
+ removeWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<IdentifierInstance>) => any): Promise<ApiResponse<IdentifierInstance>>;
246
+ /**
247
+ * Remove a IdentifierInstance and return HTTP info
248
+ *
249
+ * @param params - Parameter for request
250
+ * @param callback - Callback to handle processed record
251
+ *
252
+ * @returns Resolves to processed IdentifierInstance with HTTP metadata
253
+ */
254
+ removeWithHttpInfo(params: IdentifierContextRemoveOptions, callback?: (error: Error | null, item?: ApiResponse<IdentifierInstance>) => any): Promise<ApiResponse<IdentifierInstance>>;
255
+ /**
256
+ * Fetch a IdentifierInstance
257
+ *
258
+ * @param callback - Callback to handle processed record
259
+ *
260
+ * @returns Resolves to processed IdentifierInstance
261
+ */
262
+ fetch(callback?: (error: Error | null, item?: IdentifierInstance) => any): Promise<IdentifierInstance>;
263
+ /**
264
+ * Fetch a IdentifierInstance and return HTTP info
265
+ *
266
+ * @param callback - Callback to handle processed record
267
+ *
268
+ * @returns Resolves to processed IdentifierInstance with HTTP metadata
269
+ */
270
+ fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<IdentifierInstance>) => any): Promise<ApiResponse<IdentifierInstance>>;
271
+ /**
272
+ * Patch a IdentifierInstance
273
+ *
274
+ * @param params - Body for request
275
+ * @param headers - header params for request
276
+ * @param callback - Callback to handle processed record
277
+ *
278
+ * @returns Resolves to processed IdentifierInstance
279
+ */
280
+ patch(params: IdentifierUpdate, headers?: any, callback?: (error: Error | null, item?: IdentifierInstance) => any): Promise<IdentifierInstance>;
281
+ /**
282
+ * Patch a IdentifierInstance and return HTTP info
283
+ *
284
+ * @param params - Body for request
285
+ * @param headers - header params for request
286
+ * @param callback - Callback to handle processed record
287
+ *
288
+ * @returns Resolves to processed IdentifierInstance with HTTP metadata
289
+ */
290
+ patchWithHttpInfo(params: IdentifierUpdate, headers?: any, callback?: (error: Error | null, item?: ApiResponse<IdentifierInstance>) => any): Promise<ApiResponse<IdentifierInstance>>;
291
+ /**
292
+ * Provide a user-friendly representation
293
+ *
294
+ * @returns Object
295
+ */
296
+ toJSON(): {
297
+ message: string;
298
+ idType: string;
299
+ values: string[];
300
+ };
301
+ [inspect.custom](_depth: any, options: InspectOptions): string;
302
+ }
303
+ export interface IdentifierSolution {
304
+ storeId: string;
305
+ profileId: string;
306
+ }
307
+ export interface IdentifierListInstance {
308
+ _version: V1;
309
+ _solution: IdentifierSolution;
310
+ _uri: string;
311
+ (idType: string): IdentifierContext;
312
+ get(idType: string): IdentifierContext;
313
+ /**
314
+ * Create a IdentifierInstance
315
+ *
316
+ * @param params - Body for request
317
+ * @param headers - header params for request
318
+ * @param callback - Callback to handle processed record
319
+ *
320
+ * @returns Resolves to processed IdentifierInstance
321
+ */
322
+ create(params: Identifier, headers?: any, callback?: (error: Error | null, item?: IdentifierInstance) => any): Promise<IdentifierInstance>;
323
+ /**
324
+ * Create a IdentifierInstance and return HTTP info
325
+ *
326
+ * @param params - Body for request
327
+ * @param headers - header params for request
328
+ * @param callback - Callback to handle processed record
329
+ *
330
+ * @returns Resolves to processed IdentifierInstance with HTTP metadata
331
+ */
332
+ createWithHttpInfo(params: Identifier, headers?: any, callback?: (error: Error | null, item?: ApiResponse<IdentifierInstance>) => any): Promise<ApiResponse<IdentifierInstance>>;
333
+ /**
334
+ * Lists IdentifierInstance records from the API as a list.
335
+ *
336
+ * If a function is passed as the first argument, it will be used as the callback
337
+ * function.
338
+ *
339
+ * @param { IdentifierListInstanceOptions } [params] - Options for request
340
+ * @param { function } [callback] - Callback to handle list of records
341
+ */
342
+ list(callback?: (error: Error | null, items: IdentifierInstance[]) => any): Promise<IdentifierInstance[]>;
343
+ /**
344
+ * Lists IdentifierInstance records from the API as a list with HTTP metadata.
345
+ *
346
+ * Returns all records along with HTTP metadata from the first page fetched.
347
+ *
348
+ * If a function is passed as the first argument, it will be used as the callback
349
+ * function.
350
+ *
351
+ * @param { IdentifierListInstanceOptions } [params] - Options for request
352
+ * @param { function } [callback] - Callback to handle list of records with metadata
353
+ */
354
+ listWithHttpInfo(callback?: (error: Error | null, items: ApiResponse<IdentifierInstance[]>) => any): Promise<ApiResponse<IdentifierInstance[]>>;
355
+ /**
356
+ * Provide a user-friendly representation
357
+ */
358
+ toJSON(): any;
359
+ [inspect.custom](_depth: any, options: InspectOptions): any;
360
+ }
361
+ export declare function IdentifierListInstance(version: V1, storeId: string, profileId: string): IdentifierListInstance;
362
+ export {};