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,229 @@
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.IdentityResolutionSettingInstance = exports.IdentityResolutionSettingContextImpl = exports.IdentityResolutionSettingsCore = exports.IdentifierConfig = void 0;
17
+ exports.IdentityResolutionSettingListInstance = IdentityResolutionSettingListInstance;
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 IdentifierConfig {
23
+ constructor(payload) {
24
+ this.idType = payload["idType"];
25
+ this.matchingAlgo = payload["matchingAlgo"];
26
+ this.matchingThreshold = payload["matchingThreshold"];
27
+ this.limit = payload["limit"];
28
+ this.limitPolicy = payload["limitPolicy"];
29
+ this.enforceUnique = payload["enforceUnique"];
30
+ this.normalization = payload["normalization"];
31
+ }
32
+ }
33
+ exports.IdentifierConfig = IdentifierConfig;
34
+ /**
35
+ * Identity Resolution settings help determine if a new profile should be created, or if the incoming conversation should be added to an existing profile. These settings resolve how profiles are looked up and which profiles should merge together.
36
+ */
37
+ class IdentityResolutionSettingsCore {
38
+ constructor(payload) {
39
+ this.identifierConfigs = payload["identifierConfigs"];
40
+ this.matchingRules = payload["matchingRules"];
41
+ }
42
+ }
43
+ exports.IdentityResolutionSettingsCore = IdentityResolutionSettingsCore;
44
+ class IdentityResolutionSettingContextImpl {
45
+ constructor(_version, storeId) {
46
+ this._version = _version;
47
+ if (!(0, utility_1.isValidPathParam)(storeId)) {
48
+ throw new Error("Parameter 'storeId' is not valid.");
49
+ }
50
+ this._solution = { storeId };
51
+ this._uri = `/ControlPlane/Stores/${storeId}/IdentityResolutionSettings`;
52
+ }
53
+ fetch(callback) {
54
+ const headers = {};
55
+ headers["Accept"] = "application/json";
56
+ const instance = this;
57
+ let operationVersion = instance._version, operationPromise = operationVersion.fetch({
58
+ uri: instance._uri,
59
+ method: "get",
60
+ headers,
61
+ });
62
+ operationPromise = operationPromise.then((payload) => new IdentityResolutionSettingInstance(operationVersion, payload, instance._solution.storeId));
63
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
64
+ return operationPromise;
65
+ }
66
+ fetchWithHttpInfo(callback) {
67
+ const headers = {};
68
+ headers["Accept"] = "application/json";
69
+ const instance = this;
70
+ let operationVersion = instance._version;
71
+ // CREATE, FETCH, UPDATE operations
72
+ let operationPromise = operationVersion
73
+ .fetchWithResponseInfo({
74
+ uri: instance._uri,
75
+ method: "get",
76
+ headers,
77
+ })
78
+ .then((response) => ({
79
+ ...response,
80
+ body: new IdentityResolutionSettingInstance(operationVersion, response.body, instance._solution.storeId),
81
+ }));
82
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
83
+ return operationPromise;
84
+ }
85
+ update(params, headers, callback) {
86
+ if (params === null || params === undefined) {
87
+ throw new Error('Required parameter "params" missing.');
88
+ }
89
+ let data = {};
90
+ data = params;
91
+ if (headers === null || headers === undefined) {
92
+ headers = {};
93
+ }
94
+ headers["Content-Type"] = "application/json";
95
+ headers["Accept"] = "application/json";
96
+ const instance = this;
97
+ let operationVersion = instance._version, operationPromise = operationVersion.update({
98
+ uri: instance._uri,
99
+ method: "put",
100
+ data,
101
+ headers,
102
+ });
103
+ operationPromise = operationPromise.then((payload) => new IdentityResolutionSettingInstance(operationVersion, payload, instance._solution.storeId));
104
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
105
+ return operationPromise;
106
+ }
107
+ updateWithHttpInfo(params, headers, callback) {
108
+ if (params === null || params === undefined) {
109
+ throw new Error('Required parameter "params" missing.');
110
+ }
111
+ let data = {};
112
+ data = params;
113
+ if (headers === null || headers === undefined) {
114
+ headers = {};
115
+ }
116
+ headers["Content-Type"] = "application/json";
117
+ headers["Accept"] = "application/json";
118
+ const instance = this;
119
+ let operationVersion = instance._version;
120
+ // CREATE, FETCH, UPDATE operations
121
+ let operationPromise = operationVersion
122
+ .updateWithResponseInfo({
123
+ uri: instance._uri,
124
+ method: "put",
125
+ data,
126
+ headers,
127
+ })
128
+ .then((response) => ({
129
+ ...response,
130
+ body: new IdentityResolutionSettingInstance(operationVersion, response.body, instance._solution.storeId),
131
+ }));
132
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
133
+ return operationPromise;
134
+ }
135
+ /**
136
+ * Provide a user-friendly representation
137
+ *
138
+ * @returns Object
139
+ */
140
+ toJSON() {
141
+ return this._solution;
142
+ }
143
+ [util_1.inspect.custom](_depth, options) {
144
+ return (0, util_1.inspect)(this.toJSON(), options);
145
+ }
146
+ }
147
+ exports.IdentityResolutionSettingContextImpl = IdentityResolutionSettingContextImpl;
148
+ class IdentityResolutionSettingInstance {
149
+ constructor(_version, _payload, storeId) {
150
+ this._version = _version;
151
+ const payload = _payload;
152
+ this.identifierConfigs =
153
+ payload.identifierConfigs !== null &&
154
+ payload.identifierConfigs !== undefined
155
+ ? payload.identifierConfigs.map((payload) => new IdentifierConfig(payload))
156
+ : null;
157
+ this.matchingRules = payload.matchingRules;
158
+ this.version = deserialize.integer(payload.version);
159
+ this.message = payload.message;
160
+ this.statusUrl = payload.statusUrl;
161
+ this._solution = { storeId: storeId };
162
+ }
163
+ get _proxy() {
164
+ this._context =
165
+ this._context ||
166
+ new IdentityResolutionSettingContextImpl(this._version, this._solution.storeId);
167
+ return this._context;
168
+ }
169
+ /**
170
+ * Fetch a IdentityResolutionSettingInstance
171
+ *
172
+ * @param callback - Callback to handle processed record
173
+ *
174
+ * @returns Resolves to processed IdentityResolutionSettingInstance
175
+ */
176
+ fetch(callback) {
177
+ return this._proxy.fetch(callback);
178
+ }
179
+ /**
180
+ * Fetch a IdentityResolutionSettingInstance and return HTTP info
181
+ *
182
+ * @param callback - Callback to handle processed record
183
+ *
184
+ * @returns Resolves to processed IdentityResolutionSettingInstance with HTTP metadata
185
+ */
186
+ fetchWithHttpInfo(callback) {
187
+ return this._proxy.fetchWithHttpInfo(callback);
188
+ }
189
+ update(params, callback) {
190
+ return this._proxy.update(params, callback);
191
+ }
192
+ updateWithHttpInfo(params, callback) {
193
+ return this._proxy.updateWithHttpInfo(params, callback);
194
+ }
195
+ /**
196
+ * Provide a user-friendly representation
197
+ *
198
+ * @returns Object
199
+ */
200
+ toJSON() {
201
+ return {
202
+ identifierConfigs: this.identifierConfigs,
203
+ matchingRules: this.matchingRules,
204
+ version: this.version,
205
+ message: this.message,
206
+ statusUrl: this.statusUrl,
207
+ };
208
+ }
209
+ [util_1.inspect.custom](_depth, options) {
210
+ return (0, util_1.inspect)(this.toJSON(), options);
211
+ }
212
+ }
213
+ exports.IdentityResolutionSettingInstance = IdentityResolutionSettingInstance;
214
+ function IdentityResolutionSettingListInstance(version) {
215
+ const instance = ((storeId) => instance.get(storeId));
216
+ instance.get = function get(storeId) {
217
+ return new IdentityResolutionSettingContextImpl(version, storeId);
218
+ };
219
+ instance._version = version;
220
+ instance._solution = {};
221
+ instance._uri = ``;
222
+ instance.toJSON = function toJSON() {
223
+ return instance._solution;
224
+ };
225
+ instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
226
+ return (0, util_1.inspect)(instance.toJSON(), options);
227
+ };
228
+ return instance;
229
+ }
@@ -0,0 +1,292 @@
1
+ import { inspect, InspectOptions } from "util";
2
+ import V1 from "../V1";
3
+ import { ApiResponse } from "../../../base/ApiResponse";
4
+ /**
5
+ * Mapping of a CSV header column to the trait fields
6
+ */
7
+ export declare class ColumnMappingItem {
8
+ /**
9
+ * The name of the column in the CSV header
10
+ */
11
+ "columnName": string;
12
+ /**
13
+ * The trait group to which this trait belongs
14
+ */
15
+ "traitGroup": string;
16
+ /**
17
+ * The name of the trait in the trait group
18
+ */
19
+ "traitName": string;
20
+ constructor(payload: any);
21
+ }
22
+ export declare class CreateProfilesImportV2Request {
23
+ /**
24
+ * The name of the file to generate a presigned URL
25
+ */
26
+ "filename": string;
27
+ /**
28
+ * The size of the file in bytes (1 byte to 100 MiB)
29
+ */
30
+ "fileSize": number;
31
+ /**
32
+ * Mappings of CSV header columns to traits\' fields
33
+ */
34
+ "columnMappings": Array<ColumnMappingItem>;
35
+ constructor(payload: any);
36
+ }
37
+ /**
38
+ * Summary statistics of the import operation
39
+ */
40
+ export declare class FetchProfileImportV2200ResponseSummary {
41
+ /**
42
+ * Total count of errors encountered during import
43
+ */
44
+ "errors"?: number;
45
+ /**
46
+ * Total count of warnings encountered during import
47
+ */
48
+ "warnings"?: number;
49
+ constructor(payload: any);
50
+ }
51
+ /**
52
+ * Options to pass to create a ImportInstance
53
+ */
54
+ export interface ImportListInstanceCreateOptions {
55
+ /** */
56
+ createProfilesImportV2Request: CreateProfilesImportV2Request;
57
+ }
58
+ /**
59
+ * Options to pass to list
60
+ */
61
+ export interface ImportListInstanceOptions {
62
+ /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
63
+ limit?: number;
64
+ }
65
+ export interface ImportContext {
66
+ /**
67
+ * Fetch a ImportInstance
68
+ *
69
+ * @param callback - Callback to handle processed record
70
+ *
71
+ * @returns Resolves to processed ImportInstance
72
+ */
73
+ fetch(callback?: (error: Error | null, item?: ImportInstance) => any): Promise<ImportInstance>;
74
+ /**
75
+ * Fetch a ImportInstance and return HTTP info
76
+ *
77
+ * @param callback - Callback to handle processed record
78
+ *
79
+ * @returns Resolves to processed ImportInstance with HTTP metadata
80
+ */
81
+ fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<ImportInstance>) => any): Promise<ApiResponse<ImportInstance>>;
82
+ /**
83
+ * Provide a user-friendly representation
84
+ */
85
+ toJSON(): any;
86
+ [inspect.custom](_depth: any, options: InspectOptions): any;
87
+ }
88
+ export interface ImportContextSolution {
89
+ storeId: string;
90
+ importId: string;
91
+ }
92
+ export declare class ImportContextImpl implements ImportContext {
93
+ protected _version: V1;
94
+ protected _solution: ImportContextSolution;
95
+ protected _uri: string;
96
+ constructor(_version: V1, storeId: string, importId: string);
97
+ fetch(callback?: (error: Error | null, item?: ImportInstance) => any): Promise<ImportInstance>;
98
+ fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<ImportInstance>) => any): Promise<ApiResponse<ImportInstance>>;
99
+ /**
100
+ * Provide a user-friendly representation
101
+ *
102
+ * @returns Object
103
+ */
104
+ toJSON(): ImportContextSolution;
105
+ [inspect.custom](_depth: any, options: InspectOptions): string;
106
+ }
107
+ /**
108
+ * Nested model for ColumnMappingItem
109
+ */
110
+ export interface ColumnMappingItem {
111
+ columnName: string;
112
+ traitGroup: string;
113
+ traitName: string;
114
+ }
115
+ /**
116
+ * Nested model for CreateProfilesImportV2Request
117
+ */
118
+ export interface CreateProfilesImportV2Request {
119
+ filename: string;
120
+ fileSize: number;
121
+ columnMappings: Array<ColumnMappingItem>;
122
+ }
123
+ /**
124
+ * Nested model for FetchProfileImportV2200ResponseSummary
125
+ */
126
+ export interface FetchProfileImportV2200ResponseSummary {
127
+ errors?: number;
128
+ warnings?: number;
129
+ }
130
+ /**
131
+ * Response model for FetchProfileImportV2200Response operations
132
+ */
133
+ interface FetchProfileImportV2200Response_ResponseResource {
134
+ status: string;
135
+ filename: string;
136
+ createdAt: Date;
137
+ updatedAt?: Date;
138
+ fileSize?: number;
139
+ columnMappings?: Array<ColumnMappingItem>;
140
+ summary?: FetchProfileImportV2200ResponseSummary;
141
+ }
142
+ /**
143
+ * Response model for CreateProfilesImportV2201Response operations
144
+ */
145
+ interface CreateProfilesImportV2201Response_ResponseResource {
146
+ importId: string;
147
+ url: string;
148
+ }
149
+ /**
150
+ * Response model for ListProfileImportsV2200Response operations
151
+ */
152
+ interface ListProfileImportsV2200Response_ResponseResource {
153
+ imports?: Array<string>;
154
+ }
155
+ /**
156
+ * Union type for all possible response models
157
+ */
158
+ type ImportResource = FetchProfileImportV2200Response_ResponseResource | CreateProfilesImportV2201Response_ResponseResource | ListProfileImportsV2200Response_ResponseResource;
159
+ export declare class ImportInstance {
160
+ protected _version: V1;
161
+ protected _solution: ImportContextSolution;
162
+ protected _context?: ImportContext;
163
+ constructor(_version: V1, _payload: ImportResource, storeId: string, importId?: string);
164
+ /**
165
+ * Current processing status of the import task
166
+ */
167
+ status?: string;
168
+ /**
169
+ * Original filename of the uploaded CSV
170
+ */
171
+ filename?: string;
172
+ /**
173
+ * Timestamp when the import was created
174
+ */
175
+ createdAt?: Date;
176
+ /**
177
+ * Timestamp when the import was last updated
178
+ */
179
+ updatedAt?: Date;
180
+ /**
181
+ * Size of the uploaded file in bytes (1 byte to 100 MiB)
182
+ */
183
+ fileSize?: number;
184
+ /**
185
+ * Mappings of CSV header columns to traits\' fields
186
+ */
187
+ columnMappings?: Array<ColumnMappingItem>;
188
+ summary?: FetchProfileImportV2200ResponseSummary;
189
+ /**
190
+ * ID of the import task.
191
+ */
192
+ importId?: string;
193
+ /**
194
+ * Pre-signed URL to upload the CSV via a single PUT request.
195
+ */
196
+ url?: string;
197
+ imports?: Array<string>;
198
+ private get _proxy();
199
+ /**
200
+ * Fetch a ImportInstance
201
+ *
202
+ * @param callback - Callback to handle processed record
203
+ *
204
+ * @returns Resolves to processed ImportInstance
205
+ */
206
+ fetch(callback?: (error: Error | null, item?: ImportInstance) => any): Promise<ImportInstance>;
207
+ /**
208
+ * Fetch a ImportInstance and return HTTP info
209
+ *
210
+ * @param callback - Callback to handle processed record
211
+ *
212
+ * @returns Resolves to processed ImportInstance with HTTP metadata
213
+ */
214
+ fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<ImportInstance>) => any): Promise<ApiResponse<ImportInstance>>;
215
+ /**
216
+ * Provide a user-friendly representation
217
+ *
218
+ * @returns Object
219
+ */
220
+ toJSON(): {
221
+ status: string;
222
+ filename: string;
223
+ createdAt: Date;
224
+ updatedAt: Date;
225
+ fileSize: number;
226
+ columnMappings: ColumnMappingItem[];
227
+ summary: FetchProfileImportV2200ResponseSummary;
228
+ importId: string;
229
+ url: string;
230
+ imports: string[];
231
+ };
232
+ [inspect.custom](_depth: any, options: InspectOptions): string;
233
+ }
234
+ export interface ImportSolution {
235
+ storeId: string;
236
+ }
237
+ export interface ImportListInstance {
238
+ _version: V1;
239
+ _solution: ImportSolution;
240
+ _uri: string;
241
+ (importId: string): ImportContext;
242
+ get(importId: string): ImportContext;
243
+ /**
244
+ * Create a ImportInstance
245
+ *
246
+ * @param params - Body for request
247
+ * @param headers - header params for request
248
+ * @param callback - Callback to handle processed record
249
+ *
250
+ * @returns Resolves to processed ImportInstance
251
+ */
252
+ create(params: CreateProfilesImportV2Request, headers?: any, callback?: (error: Error | null, item?: ImportInstance) => any): Promise<ImportInstance>;
253
+ /**
254
+ * Create a ImportInstance and return HTTP info
255
+ *
256
+ * @param params - Body for request
257
+ * @param headers - header params for request
258
+ * @param callback - Callback to handle processed record
259
+ *
260
+ * @returns Resolves to processed ImportInstance with HTTP metadata
261
+ */
262
+ createWithHttpInfo(params: CreateProfilesImportV2Request, headers?: any, callback?: (error: Error | null, item?: ApiResponse<ImportInstance>) => any): Promise<ApiResponse<ImportInstance>>;
263
+ /**
264
+ * Lists ImportInstance records from the API as a list.
265
+ *
266
+ * If a function is passed as the first argument, it will be used as the callback
267
+ * function.
268
+ *
269
+ * @param { ImportListInstanceOptions } [params] - Options for request
270
+ * @param { function } [callback] - Callback to handle list of records
271
+ */
272
+ list(callback?: (error: Error | null, items: string[]) => any): Promise<string[]>;
273
+ /**
274
+ * Lists ImportInstance records from the API as a list with HTTP metadata.
275
+ *
276
+ * Returns all records along with HTTP metadata from the first page fetched.
277
+ *
278
+ * If a function is passed as the first argument, it will be used as the callback
279
+ * function.
280
+ *
281
+ * @param { ImportListInstanceOptions } [params] - Options for request
282
+ * @param { function } [callback] - Callback to handle list of records with metadata
283
+ */
284
+ listWithHttpInfo(callback?: (error: Error | null, items: ApiResponse<string[]>) => any): Promise<ApiResponse<string[]>>;
285
+ /**
286
+ * Provide a user-friendly representation
287
+ */
288
+ toJSON(): any;
289
+ [inspect.custom](_depth: any, options: InspectOptions): any;
290
+ }
291
+ export declare function ImportListInstance(version: V1, storeId: string): ImportListInstance;
292
+ export {};