@superdurable/connector-amplitude 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { S as SearchUsersInput, U as UserSearchPage, C as Connection, O as Operations, a as Config, b as Credentials } from './connection-E9wVL-jD.js';
2
- export { c as ConfigSchema, d as CredentialSource, e as SearchUsersInputSchema, f as UserSearchPageSchema, g as decodeCredentials, n as newConnection, h as newConnectionWithOperations } from './connection-E9wVL-jD.js';
3
- import { QueryDefinition, QueryStepConfig, Query, QueryResult, QueryStep, CredentialProvider, Call, QueryAttempt } from '@superdurable/connectors-sdk';
1
+ import { A as ActiveUserCountsInput, a as ActiveUserCounts, C as Connection, G as GetUserActivityInput, U as UserActivity, I as IdentifyUserInput, b as IdentifiedUser, Q as QueryChartInput, c as ChartResult, S as SearchUsersInput, d as UserSearchPage, T as TrackEventInput, e as TrackedEvent, f as UnsetUserPropertyInput, O as Operations, g as Config, h as Credentials } from './connection-eJT7ivyf.js';
2
+ export { i as ActiveUserCountsInputSchema, j as ActiveUserCountsSchema, k as ChartResultSchema, l as ConfigSchema, m as CredentialMaterialError, n as CredentialSource, o as GetUserActivityInputSchema, p as IdentifiedUserSchema, q as IdentifyUserInputSchema, r as QueryChartInputSchema, s as SearchUsersInputSchema, t as TrackEventInputSchema, u as TrackedEventSchema, v as UnsetUserPropertyInputSchema, w as UserActivitySchema, x as UserSearchPageSchema, y as decodeCredentials, z as isCredentialMaterialError, B as newConnection, D as newConnectionWithOperations } from './connection-eJT7ivyf.js';
3
+ import { QueryDefinition, MutationDefinition, QueryStepConfig, Query, QueryResult, MutationStepConfig, Mutation, MutationResult, QueryStep, MutationStep, CredentialProvider, Call, QueryAttempt, MutationAttempt } from '@superdurable/connectors-sdk';
4
4
  import { StepTarget } from '@superdurable/dex';
5
5
  import { LoadedProject } from '@superdurable/connectors-sdk/projectconfig';
6
6
  import { ProviderRequest, ProviderResponse } from '@superdurable/connectors-sdk/providerhttp';
@@ -10,6 +10,141 @@ import 'zod';
10
10
  declare const ConnectorID = "amplitude";
11
11
  /** Provider identity for named connections. */
12
12
  declare const ProviderID = "amplitude";
13
+ /** Branch IDs for queryChart. */
14
+ declare const QueryChartBranch: {
15
+ readonly Found: "found";
16
+ readonly Missing: "missing";
17
+ readonly ProviderRejected: "providerRejected";
18
+ readonly InvalidResponse: "invalidResponse";
19
+ readonly Defect: "defect";
20
+ };
21
+ /** Amplitude returned chart results. */
22
+ declare const QueryChartBranchFound: "found";
23
+ /** The saved chart does not exist. */
24
+ declare const QueryChartBranchMissing: "missing";
25
+ /** Amplitude refused the chart query. */
26
+ declare const QueryChartBranchProviderRejected: "providerRejected";
27
+ /** Amplitude returned invalid chart JSON. */
28
+ declare const QueryChartBranchInvalidResponse: "invalidResponse";
29
+ /** The chart ID or credentials are invalid. */
30
+ declare const QueryChartBranchDefect: "defect";
31
+ /** Manifest definition for queryChart. */
32
+ declare const QueryChartDefinition: QueryDefinition;
33
+ /** Manifest metadata for queryChart. */
34
+ declare const QueryChartMetadata: {
35
+ readonly kind: "query";
36
+ readonly idempotency: "none";
37
+ readonly authorization: "required";
38
+ };
39
+ /** Branch IDs for getActiveUserCounts. */
40
+ declare const GetActiveUserCountsBranch: {
41
+ readonly Counted: "counted";
42
+ readonly ProviderRejected: "providerRejected";
43
+ readonly InvalidResponse: "invalidResponse";
44
+ readonly Defect: "defect";
45
+ };
46
+ /** Amplitude returned user count series. */
47
+ declare const GetActiveUserCountsBranchCounted: "counted";
48
+ /** Amplitude refused the metric query. */
49
+ declare const GetActiveUserCountsBranchProviderRejected: "providerRejected";
50
+ /** Amplitude returned invalid metric JSON. */
51
+ declare const GetActiveUserCountsBranchInvalidResponse: "invalidResponse";
52
+ /** Dates, metric, interval, or credentials are invalid. */
53
+ declare const GetActiveUserCountsBranchDefect: "defect";
54
+ /** Manifest definition for getActiveUserCounts. */
55
+ declare const GetActiveUserCountsDefinition: QueryDefinition;
56
+ /** Manifest metadata for getActiveUserCounts. */
57
+ declare const GetActiveUserCountsMetadata: {
58
+ readonly kind: "query";
59
+ readonly idempotency: "none";
60
+ readonly authorization: "required";
61
+ };
62
+ /** Branch IDs for getUserActivity. */
63
+ declare const GetUserActivityBranch: {
64
+ readonly Found: "found";
65
+ readonly Missing: "missing";
66
+ readonly ProviderRejected: "providerRejected";
67
+ readonly InvalidResponse: "invalidResponse";
68
+ readonly Defect: "defect";
69
+ };
70
+ /** Amplitude returned the user's activity summary. */
71
+ declare const GetUserActivityBranchFound: "found";
72
+ /** Amplitude has no activity for this user. */
73
+ declare const GetUserActivityBranchMissing: "missing";
74
+ /** Amplitude refused the activity read. */
75
+ declare const GetUserActivityBranchProviderRejected: "providerRejected";
76
+ /** Amplitude returned invalid activity JSON. */
77
+ declare const GetUserActivityBranchInvalidResponse: "invalidResponse";
78
+ /** The Amplitude ID or credentials are invalid. */
79
+ declare const GetUserActivityBranchDefect: "defect";
80
+ /** Manifest definition for getUserActivity. */
81
+ declare const GetUserActivityDefinition: QueryDefinition;
82
+ /** Manifest metadata for getUserActivity. */
83
+ declare const GetUserActivityMetadata: {
84
+ readonly kind: "query";
85
+ readonly idempotency: "none";
86
+ readonly authorization: "required";
87
+ };
88
+ /** Branch IDs for unsetUserProperty. */
89
+ declare const UnsetUserPropertyBranch: {
90
+ readonly Unset: "unset";
91
+ readonly ProviderRejected: "providerRejected";
92
+ readonly Defect: "defect";
93
+ };
94
+ /** Amplitude accepted the property removal. */
95
+ declare const UnsetUserPropertyBranchUnset: "unset";
96
+ /** Amplitude conclusively refused the removal. */
97
+ declare const UnsetUserPropertyBranchProviderRejected: "providerRejected";
98
+ /** The user, property, or connection is invalid. */
99
+ declare const UnsetUserPropertyBranchDefect: "defect";
100
+ /** Manifest definition for unsetUserProperty. */
101
+ declare const UnsetUserPropertyDefinition: MutationDefinition;
102
+ /** Manifest metadata for unsetUserProperty. */
103
+ declare const UnsetUserPropertyMetadata: {
104
+ readonly kind: "mutation";
105
+ readonly idempotency: "required";
106
+ readonly authorization: "required";
107
+ };
108
+ /** Branch IDs for trackEvent. */
109
+ declare const TrackEventBranch: {
110
+ readonly Tracked: "tracked";
111
+ readonly ProviderRejected: "providerRejected";
112
+ readonly Defect: "defect";
113
+ };
114
+ /** Amplitude ingested the event. */
115
+ declare const TrackEventBranchTracked: "tracked";
116
+ /** Amplitude conclusively rejected the event. */
117
+ declare const TrackEventBranchProviderRejected: "providerRejected";
118
+ /** The event or connection is invalid. */
119
+ declare const TrackEventBranchDefect: "defect";
120
+ /** Manifest definition for trackEvent. */
121
+ declare const TrackEventDefinition: MutationDefinition;
122
+ /** Manifest metadata for trackEvent. */
123
+ declare const TrackEventMetadata: {
124
+ readonly kind: "mutation";
125
+ readonly idempotency: "required";
126
+ readonly authorization: "required";
127
+ };
128
+ /** Branch IDs for identifyUser. */
129
+ declare const IdentifyUserBranch: {
130
+ readonly Identified: "identified";
131
+ readonly ProviderRejected: "providerRejected";
132
+ readonly Defect: "defect";
133
+ };
134
+ /** Amplitude accepted the property replacement. */
135
+ declare const IdentifyUserBranchIdentified: "identified";
136
+ /** Amplitude conclusively rejected the property update. */
137
+ declare const IdentifyUserBranchProviderRejected: "providerRejected";
138
+ /** The user, property, or connection is invalid. */
139
+ declare const IdentifyUserBranchDefect: "defect";
140
+ /** Manifest definition for identifyUser. */
141
+ declare const IdentifyUserDefinition: MutationDefinition;
142
+ /** Manifest metadata for identifyUser. */
143
+ declare const IdentifyUserMetadata: {
144
+ readonly kind: "mutation";
145
+ readonly idempotency: "required";
146
+ readonly authorization: "required";
147
+ };
13
148
  /** Branch IDs for searchUsers. */
14
149
  declare const SearchUsersBranch: {
15
150
  readonly Searched: "searched";
@@ -34,6 +169,124 @@ declare const SearchUsersMetadata: {
34
169
  readonly authorization: "required";
35
170
  };
36
171
 
172
+ /** Configuration for the queryChart connector Step. */
173
+ interface QueryChartStepConfig<StepInput, OperationInput = QueryChartInput, OperationOutput = ChartResult> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
174
+ /** Named connection supplying this operation. */
175
+ connection: Connection<{
176
+ queryChart(): Query<OperationInput, OperationOutput>;
177
+ }>;
178
+ /** Name matching the bound connection. */
179
+ connectionName: string;
180
+ /** Amplitude returned chart results. */
181
+ found: StepTarget<QueryResult<OperationOutput>>;
182
+ /** The saved chart does not exist. */
183
+ missing?: StepTarget<QueryResult<OperationOutput>>;
184
+ /** Amplitude refused the chart query. */
185
+ providerRejected?: StepTarget<QueryResult<OperationOutput>>;
186
+ /** Amplitude returned invalid chart JSON. */
187
+ invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
188
+ /** The chart ID or credentials are invalid. */
189
+ defect?: StepTarget<QueryResult<OperationOutput>>;
190
+ }
191
+ /** Build the queryChart Step from a named connection. */
192
+ declare function newQueryChartStep<StepInput, OperationInput = QueryChartInput, OperationOutput = ChartResult>(configuration: QueryChartStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
193
+ /** Configuration for the getActiveUserCounts connector Step. */
194
+ interface GetActiveUserCountsStepConfig<StepInput, OperationInput = ActiveUserCountsInput, OperationOutput = ActiveUserCounts> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
195
+ /** Named connection supplying this operation. */
196
+ connection: Connection<{
197
+ getActiveUserCounts(): Query<OperationInput, OperationOutput>;
198
+ }>;
199
+ /** Name matching the bound connection. */
200
+ connectionName: string;
201
+ /** Amplitude returned user count series. */
202
+ counted: StepTarget<QueryResult<OperationOutput>>;
203
+ /** Amplitude refused the metric query. */
204
+ providerRejected?: StepTarget<QueryResult<OperationOutput>>;
205
+ /** Amplitude returned invalid metric JSON. */
206
+ invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
207
+ /** Dates, metric, interval, or credentials are invalid. */
208
+ defect?: StepTarget<QueryResult<OperationOutput>>;
209
+ }
210
+ /** Build the getActiveUserCounts Step from a named connection. */
211
+ declare function newGetActiveUserCountsStep<StepInput, OperationInput = ActiveUserCountsInput, OperationOutput = ActiveUserCounts>(configuration: GetActiveUserCountsStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
212
+ /** Configuration for the getUserActivity connector Step. */
213
+ interface GetUserActivityStepConfig<StepInput, OperationInput = GetUserActivityInput, OperationOutput = UserActivity> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
214
+ /** Named connection supplying this operation. */
215
+ connection: Connection<{
216
+ getUserActivity(): Query<OperationInput, OperationOutput>;
217
+ }>;
218
+ /** Name matching the bound connection. */
219
+ connectionName: string;
220
+ /** Amplitude returned the user's activity summary. */
221
+ found: StepTarget<QueryResult<OperationOutput>>;
222
+ /** Amplitude has no activity for this user. */
223
+ missing?: StepTarget<QueryResult<OperationOutput>>;
224
+ /** Amplitude refused the activity read. */
225
+ providerRejected?: StepTarget<QueryResult<OperationOutput>>;
226
+ /** Amplitude returned invalid activity JSON. */
227
+ invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
228
+ /** The Amplitude ID or credentials are invalid. */
229
+ defect?: StepTarget<QueryResult<OperationOutput>>;
230
+ }
231
+ /** Build the getUserActivity Step from a named connection. */
232
+ declare function newGetUserActivityStep<StepInput, OperationInput = GetUserActivityInput, OperationOutput = UserActivity>(configuration: GetUserActivityStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
233
+ /** Configuration for the unsetUserProperty connector Step. */
234
+ interface UnsetUserPropertyStepConfig<StepInput, OperationInput = UnsetUserPropertyInput, OperationOutput = IdentifiedUser> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
235
+ /** Named connection supplying this operation. */
236
+ connection: Connection<{
237
+ unsetUserProperty(): Mutation<OperationInput, OperationOutput>;
238
+ }>;
239
+ /** Name matching the bound connection. */
240
+ connectionName: string;
241
+ /** Amplitude accepted the property removal. */
242
+ unset: StepTarget<MutationResult<OperationOutput>>;
243
+ /** Amplitude conclusively refused the removal. */
244
+ providerRejected?: StepTarget<MutationResult<OperationOutput>>;
245
+ /** The user, property, or connection is invalid. */
246
+ defect?: StepTarget<MutationResult<OperationOutput>>;
247
+ /** Accepted for compatibility; ignored because the operation is safe to repeat. */
248
+ maxSends?: number;
249
+ }
250
+ /** Build the unsetUserProperty Step from a named connection. */
251
+ declare function newUnsetUserPropertyStep<StepInput, OperationInput = UnsetUserPropertyInput, OperationOutput = IdentifiedUser>(configuration: UnsetUserPropertyStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
252
+ /** Configuration for the trackEvent connector Step. */
253
+ interface TrackEventStepConfig<StepInput, OperationInput = TrackEventInput, OperationOutput = TrackedEvent> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
254
+ /** Named connection supplying this operation. */
255
+ connection: Connection<{
256
+ trackEvent(): Mutation<OperationInput, OperationOutput>;
257
+ }>;
258
+ /** Name matching the bound connection. */
259
+ connectionName: string;
260
+ /** Amplitude ingested the event. */
261
+ tracked: StepTarget<MutationResult<OperationOutput>>;
262
+ /** Amplitude conclusively rejected the event. */
263
+ providerRejected?: StepTarget<MutationResult<OperationOutput>>;
264
+ /** The event or connection is invalid. */
265
+ defect?: StepTarget<MutationResult<OperationOutput>>;
266
+ /** Accepted for compatibility; ignored because the operation is safe to repeat. */
267
+ maxSends?: number;
268
+ }
269
+ /** Build the trackEvent Step from a named connection. */
270
+ declare function newTrackEventStep<StepInput, OperationInput = TrackEventInput, OperationOutput = TrackedEvent>(configuration: TrackEventStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
271
+ /** Configuration for the identifyUser connector Step. */
272
+ interface IdentifyUserStepConfig<StepInput, OperationInput = IdentifyUserInput, OperationOutput = IdentifiedUser> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
273
+ /** Named connection supplying this operation. */
274
+ connection: Connection<{
275
+ identifyUser(): Mutation<OperationInput, OperationOutput>;
276
+ }>;
277
+ /** Name matching the bound connection. */
278
+ connectionName: string;
279
+ /** Amplitude accepted the property replacement. */
280
+ identified: StepTarget<MutationResult<OperationOutput>>;
281
+ /** Amplitude conclusively rejected the property update. */
282
+ providerRejected?: StepTarget<MutationResult<OperationOutput>>;
283
+ /** The user, property, or connection is invalid. */
284
+ defect?: StepTarget<MutationResult<OperationOutput>>;
285
+ /** Accepted for compatibility; ignored because the operation is safe to repeat. */
286
+ maxSends?: number;
287
+ }
288
+ /** Build the identifyUser Step from a named connection. */
289
+ declare function newIdentifyUserStep<StepInput, OperationInput = IdentifyUserInput, OperationOutput = IdentifiedUser>(configuration: IdentifyUserStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
37
290
  /** Configuration for the searchUsers connector Step. */
38
291
  interface SearchUsersStepConfig<StepInput, OperationInput = SearchUsersInput, OperationOutput = UserSearchPage> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
39
292
  /** Named connection supplying this operation. */
@@ -65,21 +318,46 @@ interface Exchange {
65
318
  status: number;
66
319
  body: Uint8Array;
67
320
  retryAfterMs: number;
68
- error?: 'credential' | 'request' | 'tooLarge';
321
+ error?: 'credential' | 'request' | 'tooLarge' | 'credentialEcho';
69
322
  }
70
- /** Authenticated Amplitude Dashboard REST API client for user searches. */
323
+ /** Authenticated Amplitude Dashboard and ingestion API client. */
71
324
  declare class AmplitudeClient {
72
- private readonly credentials;
73
- private readonly baseURL;
74
- private readonly timeoutMs;
75
- private readonly maxResponseBytes;
76
- private readonly send;
325
+ private readonly transport;
77
326
  /** Validate provider configuration without contacting Amplitude. */
78
327
  constructor(config: Config, credentials: CredentialProvider<Credentials>, options?: AmplitudeClientOptions);
328
+ /** Bind the queryChart operation. */
329
+ queryChart(): QueryChartOperation;
330
+ /** Bind the getActiveUserCounts operation. */
331
+ getActiveUserCounts(): GetActiveUserCountsOperation;
332
+ /** Bind the getUserActivity operation. */
333
+ getUserActivity(): GetUserActivityOperation;
334
+ /** Bind the unsetUserProperty operation. */
335
+ unsetUserProperty(): UnsetUserPropertyOperation;
336
+ /** Bind the trackEvent operation. */
337
+ trackEvent(): TrackEventOperation;
338
+ /** Bind the identifyUser operation. */
339
+ identifyUser(): IdentifyUserOperation;
79
340
  /** Bind the searchUsers Query. */ searchUsers(): SearchUsersOperation;
80
341
  /** Resolve credentials and send one bounded user search. */
81
342
  get(call: Call, user: string): Promise<Exchange>;
82
343
  }
344
+ declare class AmplitudeTransport {
345
+ private readonly credentials;
346
+ private readonly baseURL;
347
+ private readonly ingestionURL;
348
+ private readonly timeoutMs;
349
+ private readonly maxResponseBytes;
350
+ private readonly send;
351
+ constructor(config: Config, credentials: CredentialProvider<Credentials>, options: AmplitudeClientOptions);
352
+ /** Resolve credentials and send a bounded Dashboard request. */
353
+ getDashboard(call: Call, path: string, parameters: Record<string, string[]>): Promise<Exchange>;
354
+ /** Send one bounded ingestion request to the configured region. */
355
+ postIngestion(call: Call, path: string, contentType: string, body: Uint8Array): Promise<Exchange>;
356
+ /** Resolve the API key used by the ingestion endpoints. */
357
+ ingestionKey(call: Call): Promise<string | undefined>;
358
+ private resolveKeys;
359
+ private sendRequest;
360
+ }
83
361
  /** Search project users by Amplitude or external identity. */
84
362
  declare class SearchUsersOperation implements Query<SearchUsersInput, UserSearchPage> {
85
363
  private readonly client;
@@ -88,5 +366,56 @@ declare class SearchUsersOperation implements Query<SearchUsersInput, UserSearch
88
366
  /** Classify provider outcomes consistently with Go. */
89
367
  invoke(call: Call, input: SearchUsersInput): Promise<QueryAttempt<UserSearchPage>>;
90
368
  }
369
+ /** Read a saved Amplitude chart's data. */
370
+ declare class QueryChartOperation implements Query<QueryChartInput, ChartResult> {
371
+ private readonly client;
372
+ /** Bind the provider client. */ constructor(client: AmplitudeTransport);
373
+ /** Return the saved chart Query definition. */ definition(): QueryDefinition;
374
+ /** Return the compact data object or array. */
375
+ invoke(call: Call, input: QueryChartInput): Promise<QueryAttempt<ChartResult>>;
376
+ }
377
+ /** Read active or new user count series for a date range. */
378
+ declare class GetActiveUserCountsOperation implements Query<ActiveUserCountsInput, ActiveUserCounts> {
379
+ private readonly client;
380
+ /** Bind the provider client. */ constructor(client: AmplitudeTransport);
381
+ /** Return the user counts Query definition. */ definition(): QueryDefinition;
382
+ /** Validate the date range and return the provider count series. */
383
+ invoke(call: Call, input: ActiveUserCountsInput): Promise<QueryAttempt<ActiveUserCounts>>;
384
+ }
385
+ /** Read bounded activity counts and event names for an Amplitude user. */
386
+ declare class GetUserActivityOperation implements Query<GetUserActivityInput, UserActivity> {
387
+ private readonly client;
388
+ /** Bind the provider client. */ constructor(client: AmplitudeTransport);
389
+ /** Return the user activity Query definition. */ definition(): QueryDefinition;
390
+ /** Validate the page selection and return an activity summary. */
391
+ invoke(call: Call, input: GetUserActivityInput): Promise<QueryAttempt<UserActivity>>;
392
+ }
393
+ /** Upload analytics events with a stable provider insert ID. */
394
+ declare class TrackEventOperation implements Mutation<TrackEventInput, TrackedEvent> {
395
+ private readonly client;
396
+ /** Bind the provider client. */ constructor(client: AmplitudeTransport);
397
+ /** Return the event upload Mutation definition. */ definition(): MutationDefinition;
398
+ /** Use the Dex call ID as the provider deduplication key. */ idempotencyKey(callId: string): string;
399
+ /** Upload one event and preserve the insert ID on retry. */
400
+ invoke(call: Call, input: TrackEventInput): Promise<MutationAttempt<TrackedEvent>>;
401
+ }
402
+ /** Absolutely replace an Amplitude user property with a string value. */
403
+ declare class IdentifyUserOperation implements Mutation<IdentifyUserInput, IdentifiedUser> {
404
+ private readonly client;
405
+ /** Bind the provider client. */ constructor(client: AmplitudeTransport);
406
+ /** Return the property replacement Mutation definition. */ definition(): MutationDefinition;
407
+ /** Use the Dex call ID to identify retries of the replacement. */ idempotencyKey(callId: string): string;
408
+ /** Set the named property, including to an empty string. */
409
+ invoke(call: Call, input: IdentifyUserInput): Promise<MutationAttempt<IdentifiedUser>>;
410
+ }
411
+ /** Remove an Amplitude user property from future events. */
412
+ declare class UnsetUserPropertyOperation implements Mutation<UnsetUserPropertyInput, IdentifiedUser> {
413
+ private readonly client;
414
+ /** Bind the provider client. */ constructor(client: AmplitudeTransport);
415
+ /** Return the property removal Mutation definition. */ definition(): MutationDefinition;
416
+ /** Use the Dex call ID to identify retries of the removal. */ idempotencyKey(callId: string): string;
417
+ /** Remove the named property through the Identify API. */
418
+ invoke(call: Call, input: UnsetUserPropertyInput): Promise<MutationAttempt<IdentifiedUser>>;
419
+ }
91
420
 
92
- export { AmplitudeClient, type AmplitudeClientOptions, Config, Connection, ConnectorID, Credentials, ProviderID, SearchUsersBranch, SearchUsersBranchDefect, SearchUsersBranchInvalidResponse, SearchUsersBranchProviderRejected, SearchUsersBranchSearched, SearchUsersDefinition, SearchUsersInput, SearchUsersMetadata, SearchUsersOperation, type SearchUsersStepConfig, UserSearchPage, newProjectConnection, newSearchUsersStep };
421
+ export { ActiveUserCounts, ActiveUserCountsInput, AmplitudeClient, type AmplitudeClientOptions, ChartResult, Config, Connection, ConnectorID, Credentials, GetActiveUserCountsBranch, GetActiveUserCountsBranchCounted, GetActiveUserCountsBranchDefect, GetActiveUserCountsBranchInvalidResponse, GetActiveUserCountsBranchProviderRejected, GetActiveUserCountsDefinition, GetActiveUserCountsMetadata, GetActiveUserCountsOperation, type GetActiveUserCountsStepConfig, GetUserActivityBranch, GetUserActivityBranchDefect, GetUserActivityBranchFound, GetUserActivityBranchInvalidResponse, GetUserActivityBranchMissing, GetUserActivityBranchProviderRejected, GetUserActivityDefinition, GetUserActivityInput, GetUserActivityMetadata, GetUserActivityOperation, type GetUserActivityStepConfig, IdentifiedUser, IdentifyUserBranch, IdentifyUserBranchDefect, IdentifyUserBranchIdentified, IdentifyUserBranchProviderRejected, IdentifyUserDefinition, IdentifyUserInput, IdentifyUserMetadata, IdentifyUserOperation, type IdentifyUserStepConfig, ProviderID, QueryChartBranch, QueryChartBranchDefect, QueryChartBranchFound, QueryChartBranchInvalidResponse, QueryChartBranchMissing, QueryChartBranchProviderRejected, QueryChartDefinition, QueryChartInput, QueryChartMetadata, QueryChartOperation, type QueryChartStepConfig, SearchUsersBranch, SearchUsersBranchDefect, SearchUsersBranchInvalidResponse, SearchUsersBranchProviderRejected, SearchUsersBranchSearched, SearchUsersDefinition, SearchUsersInput, SearchUsersMetadata, SearchUsersOperation, type SearchUsersStepConfig, TrackEventBranch, TrackEventBranchDefect, TrackEventBranchProviderRejected, TrackEventBranchTracked, TrackEventDefinition, TrackEventInput, TrackEventMetadata, TrackEventOperation, type TrackEventStepConfig, TrackedEvent, UnsetUserPropertyBranch, UnsetUserPropertyBranchDefect, UnsetUserPropertyBranchProviderRejected, UnsetUserPropertyBranchUnset, UnsetUserPropertyDefinition, UnsetUserPropertyInput, UnsetUserPropertyMetadata, UnsetUserPropertyOperation, type UnsetUserPropertyStepConfig, UserActivity, UserSearchPage, newGetActiveUserCountsStep, newGetUserActivityStep, newIdentifyUserStep, newProjectConnection, newQueryChartStep, newSearchUsersStep, newTrackEventStep, newUnsetUserPropertyStep };