@superdurable/connector-braze 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 { G as GetUserProfileInput, U as UserProfile, C as Connection, O as Operations, a as Config, b as Credentials } from './connection-CJqjLDg0.js';
2
- export { c as ConfigSchema, d as CredentialSource, e as GetUserProfileInputSchema, f as UserProfileSchema, g as decodeCredentials, n as newConnection, h as newConnectionWithOperations } from './connection-CJqjLDg0.js';
3
- import { QueryDefinition, QueryStepConfig, Query, QueryResult, QueryStep, CredentialProvider, Call, QueryAttempt } from '@superdurable/connectors-sdk';
1
+ import { D as DeleteUserProfileInput, U as UserDeleteResult, C as Connection, G as GetUserProfileInput, a as UserProfile, L as ListCampaignsInput, b as CampaignsList, c as ListCanvasesInput, d as CanvasesList, e as ListSegmentsInput, S as SegmentsList, T as TriggerCampaignSendInput, f as TargetedSendResult, g as TriggerCanvasSendInput, h as UpdateUserProfileInput, i as UserWriteResult, O as Operations, j as Config, k as Credentials } from './connection-DIkDjeJK.js';
2
+ export { l as CampaignIdentity, m as CampaignIdentitySchema, n as CampaignsListSchema, o as CanvasIdentity, p as CanvasIdentitySchema, q as CanvasesListSchema, r as ConfigSchema, s as CredentialMaterialError, t as CredentialSource, u as DeleteUserProfileInputSchema, v as GetUserProfileInputSchema, w as ListCampaignsInputSchema, x as ListCanvasesInputSchema, y as ListSegmentsInputSchema, z as SegmentIdentity, A as SegmentIdentitySchema, B as SegmentsListSchema, E as TargetedSendResultSchema, F as TriggerCampaignSendInputSchema, H as TriggerCanvasSendInputSchema, I as UpdateUserProfileInputSchema, J as UserDeleteResultSchema, K as UserProfileSchema, M as UserWriteResultSchema, N as decodeCredentials, P as isCredentialMaterialError, Q as newConnection, R as newConnectionWithOperations } from './connection-DIkDjeJK.js';
3
+ import { MutationDefinition, QueryDefinition, MutationStepConfig, Mutation, MutationResult, QueryStepConfig, Query, QueryResult, MutationStep, QueryStep, 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,167 @@ import 'zod';
10
10
  declare const ConnectorID = "braze";
11
11
  /** Provider identity for named connections. */
12
12
  declare const ProviderID = "braze";
13
+ /** Branch IDs for triggerCampaignSend. */
14
+ declare const TriggerCampaignSendBranch: {
15
+ readonly Sent: "sent";
16
+ readonly ProviderRejected: "providerRejected";
17
+ readonly Defect: "defect";
18
+ readonly Uncertain: "uncertain";
19
+ };
20
+ /** Braze accepted the targeted campaign dispatch. */
21
+ declare const TriggerCampaignSendBranchSent: "sent";
22
+ /** Braze conclusively rejected the dispatch. */
23
+ declare const TriggerCampaignSendBranchProviderRejected: "providerRejected";
24
+ /** Local input or connection credentials are invalid. */
25
+ declare const TriggerCampaignSendBranchDefect: "defect";
26
+ /** The campaign may have been dispatched after the send cap. */
27
+ declare const TriggerCampaignSendBranchUncertain: "uncertain";
28
+ /** Manifest definition for triggerCampaignSend. */
29
+ declare const TriggerCampaignSendDefinition: MutationDefinition;
30
+ /** Manifest metadata for triggerCampaignSend. */
31
+ declare const TriggerCampaignSendMetadata: {
32
+ readonly kind: "mutation";
33
+ readonly idempotency: "required";
34
+ readonly authorization: "required";
35
+ };
36
+ /** Branch IDs for triggerCanvasSend. */
37
+ declare const TriggerCanvasSendBranch: {
38
+ readonly Sent: "sent";
39
+ readonly ProviderRejected: "providerRejected";
40
+ readonly Defect: "defect";
41
+ readonly Uncertain: "uncertain";
42
+ };
43
+ /** Braze accepted the targeted Canvas dispatch. */
44
+ declare const TriggerCanvasSendBranchSent: "sent";
45
+ /** Braze conclusively rejected the dispatch. */
46
+ declare const TriggerCanvasSendBranchProviderRejected: "providerRejected";
47
+ /** Local input or connection credentials are invalid. */
48
+ declare const TriggerCanvasSendBranchDefect: "defect";
49
+ /** The Canvas may have been dispatched after the send cap. */
50
+ declare const TriggerCanvasSendBranchUncertain: "uncertain";
51
+ /** Manifest definition for triggerCanvasSend. */
52
+ declare const TriggerCanvasSendDefinition: MutationDefinition;
53
+ /** Manifest metadata for triggerCanvasSend. */
54
+ declare const TriggerCanvasSendMetadata: {
55
+ readonly kind: "mutation";
56
+ readonly idempotency: "required";
57
+ readonly authorization: "required";
58
+ };
59
+ /** Branch IDs for updateUserProfile. */
60
+ declare const UpdateUserProfileBranch: {
61
+ readonly Accepted: "accepted";
62
+ readonly ProviderRejected: "providerRejected";
63
+ readonly InvalidResponse: "invalidResponse";
64
+ readonly Defect: "defect";
65
+ };
66
+ /** Braze queued the profile update. */
67
+ declare const UpdateUserProfileBranchAccepted: "accepted";
68
+ /** Braze conclusively rejected the update. */
69
+ declare const UpdateUserProfileBranchProviderRejected: "providerRejected";
70
+ /** Braze returned malformed or oversized JSON. */
71
+ declare const UpdateUserProfileBranchInvalidResponse: "invalidResponse";
72
+ /** Local input or connection credentials are invalid. */
73
+ declare const UpdateUserProfileBranchDefect: "defect";
74
+ /** Manifest definition for updateUserProfile. */
75
+ declare const UpdateUserProfileDefinition: MutationDefinition;
76
+ /** Manifest metadata for updateUserProfile. */
77
+ declare const UpdateUserProfileMetadata: {
78
+ readonly kind: "mutation";
79
+ readonly idempotency: "required";
80
+ readonly authorization: "required";
81
+ };
82
+ /** Branch IDs for deleteUserProfile. */
83
+ declare const DeleteUserProfileBranch: {
84
+ readonly Deleted: "deleted";
85
+ readonly ProviderRejected: "providerRejected";
86
+ readonly InvalidResponse: "invalidResponse";
87
+ readonly Defect: "defect";
88
+ };
89
+ /** Braze queued the user deletion. */
90
+ declare const DeleteUserProfileBranchDeleted: "deleted";
91
+ /** Braze conclusively rejected the deletion. */
92
+ declare const DeleteUserProfileBranchProviderRejected: "providerRejected";
93
+ /** Braze returned malformed or oversized JSON. */
94
+ declare const DeleteUserProfileBranchInvalidResponse: "invalidResponse";
95
+ /** Local input or connection credentials are invalid. */
96
+ declare const DeleteUserProfileBranchDefect: "defect";
97
+ /** Manifest definition for deleteUserProfile. */
98
+ declare const DeleteUserProfileDefinition: MutationDefinition;
99
+ /** Manifest metadata for deleteUserProfile. */
100
+ declare const DeleteUserProfileMetadata: {
101
+ readonly kind: "mutation";
102
+ readonly idempotency: "required";
103
+ readonly authorization: "required";
104
+ };
105
+ /** Branch IDs for listCampaigns. */
106
+ declare const ListCampaignsBranch: {
107
+ readonly Listed: "listed";
108
+ readonly ProviderRejected: "providerRejected";
109
+ readonly InvalidResponse: "invalidResponse";
110
+ readonly Defect: "defect";
111
+ };
112
+ /** Braze returned campaign identities. */
113
+ declare const ListCampaignsBranchListed: "listed";
114
+ /** Braze conclusively rejected the request. */
115
+ declare const ListCampaignsBranchProviderRejected: "providerRejected";
116
+ /** Braze returned malformed or oversized JSON. */
117
+ declare const ListCampaignsBranchInvalidResponse: "invalidResponse";
118
+ /** Local input or connection credentials are invalid. */
119
+ declare const ListCampaignsBranchDefect: "defect";
120
+ /** Manifest definition for listCampaigns. */
121
+ declare const ListCampaignsDefinition: QueryDefinition;
122
+ /** Manifest metadata for listCampaigns. */
123
+ declare const ListCampaignsMetadata: {
124
+ readonly kind: "query";
125
+ readonly idempotency: "none";
126
+ readonly authorization: "required";
127
+ };
128
+ /** Branch IDs for listCanvases. */
129
+ declare const ListCanvasesBranch: {
130
+ readonly Listed: "listed";
131
+ readonly ProviderRejected: "providerRejected";
132
+ readonly InvalidResponse: "invalidResponse";
133
+ readonly Defect: "defect";
134
+ };
135
+ /** Braze returned Canvas identities. */
136
+ declare const ListCanvasesBranchListed: "listed";
137
+ /** Braze conclusively rejected the request. */
138
+ declare const ListCanvasesBranchProviderRejected: "providerRejected";
139
+ /** Braze returned malformed or oversized JSON. */
140
+ declare const ListCanvasesBranchInvalidResponse: "invalidResponse";
141
+ /** Local input or connection credentials are invalid. */
142
+ declare const ListCanvasesBranchDefect: "defect";
143
+ /** Manifest definition for listCanvases. */
144
+ declare const ListCanvasesDefinition: QueryDefinition;
145
+ /** Manifest metadata for listCanvases. */
146
+ declare const ListCanvasesMetadata: {
147
+ readonly kind: "query";
148
+ readonly idempotency: "none";
149
+ readonly authorization: "required";
150
+ };
151
+ /** Branch IDs for listSegments. */
152
+ declare const ListSegmentsBranch: {
153
+ readonly Listed: "listed";
154
+ readonly ProviderRejected: "providerRejected";
155
+ readonly InvalidResponse: "invalidResponse";
156
+ readonly Defect: "defect";
157
+ };
158
+ /** Braze returned segment identities. */
159
+ declare const ListSegmentsBranchListed: "listed";
160
+ /** Braze conclusively rejected the request. */
161
+ declare const ListSegmentsBranchProviderRejected: "providerRejected";
162
+ /** Braze returned malformed or oversized JSON. */
163
+ declare const ListSegmentsBranchInvalidResponse: "invalidResponse";
164
+ /** Local input or connection credentials are invalid. */
165
+ declare const ListSegmentsBranchDefect: "defect";
166
+ /** Manifest definition for listSegments. */
167
+ declare const ListSegmentsDefinition: QueryDefinition;
168
+ /** Manifest metadata for listSegments. */
169
+ declare const ListSegmentsMetadata: {
170
+ readonly kind: "query";
171
+ readonly idempotency: "none";
172
+ readonly authorization: "required";
173
+ };
13
174
  /** Branch IDs for getUserProfile. */
14
175
  declare const GetUserProfileBranch: {
15
176
  readonly Found: "found";
@@ -37,6 +198,143 @@ declare const GetUserProfileMetadata: {
37
198
  readonly authorization: "required";
38
199
  };
39
200
 
201
+ /** Configuration for the triggerCampaignSend connector Step. */
202
+ interface TriggerCampaignSendStepConfig<StepInput, OperationInput = TriggerCampaignSendInput, OperationOutput = TargetedSendResult> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
203
+ /** Named connection supplying this operation. */
204
+ connection: Connection<{
205
+ triggerCampaignSend(): Mutation<OperationInput, OperationOutput>;
206
+ }>;
207
+ /** Name matching the bound connection. */
208
+ connectionName: string;
209
+ /** Braze accepted the targeted campaign dispatch. */
210
+ sent: StepTarget<MutationResult<OperationOutput>>;
211
+ /** Braze conclusively rejected the dispatch. */
212
+ providerRejected?: StepTarget<MutationResult<OperationOutput>>;
213
+ /** Local input or connection credentials are invalid. */
214
+ defect?: StepTarget<MutationResult<OperationOutput>>;
215
+ /** The campaign may have been dispatched after the send cap. */
216
+ uncertain?: StepTarget<MutationResult<OperationOutput>>;
217
+ }
218
+ /** Build the triggerCampaignSend Step from a named connection. */
219
+ declare function newTriggerCampaignSendStep<StepInput, OperationInput = TriggerCampaignSendInput, OperationOutput = TargetedSendResult>(configuration: TriggerCampaignSendStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
220
+ /** Configuration for the triggerCanvasSend connector Step. */
221
+ interface TriggerCanvasSendStepConfig<StepInput, OperationInput = TriggerCanvasSendInput, OperationOutput = TargetedSendResult> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
222
+ /** Named connection supplying this operation. */
223
+ connection: Connection<{
224
+ triggerCanvasSend(): Mutation<OperationInput, OperationOutput>;
225
+ }>;
226
+ /** Name matching the bound connection. */
227
+ connectionName: string;
228
+ /** Braze accepted the targeted Canvas dispatch. */
229
+ sent: StepTarget<MutationResult<OperationOutput>>;
230
+ /** Braze conclusively rejected the dispatch. */
231
+ providerRejected?: StepTarget<MutationResult<OperationOutput>>;
232
+ /** Local input or connection credentials are invalid. */
233
+ defect?: StepTarget<MutationResult<OperationOutput>>;
234
+ /** The Canvas may have been dispatched after the send cap. */
235
+ uncertain?: StepTarget<MutationResult<OperationOutput>>;
236
+ }
237
+ /** Build the triggerCanvasSend Step from a named connection. */
238
+ declare function newTriggerCanvasSendStep<StepInput, OperationInput = TriggerCanvasSendInput, OperationOutput = TargetedSendResult>(configuration: TriggerCanvasSendStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
239
+ /** Configuration for the updateUserProfile connector Step. */
240
+ interface UpdateUserProfileStepConfig<StepInput, OperationInput = UpdateUserProfileInput, OperationOutput = UserWriteResult> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
241
+ /** Named connection supplying this operation. */
242
+ connection: Connection<{
243
+ updateUserProfile(): Mutation<OperationInput, OperationOutput>;
244
+ }>;
245
+ /** Name matching the bound connection. */
246
+ connectionName: string;
247
+ /** Braze queued the profile update. */
248
+ accepted: StepTarget<MutationResult<OperationOutput>>;
249
+ /** Braze conclusively rejected the update. */
250
+ providerRejected?: StepTarget<MutationResult<OperationOutput>>;
251
+ /** Braze returned malformed or oversized JSON. */
252
+ invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
253
+ /** Local input or connection credentials are invalid. */
254
+ defect?: StepTarget<MutationResult<OperationOutput>>;
255
+ /** Accepted for compatibility; ignored because the operation is safe to repeat. */
256
+ maxSends?: number;
257
+ }
258
+ /** Build the updateUserProfile Step from a named connection. */
259
+ declare function newUpdateUserProfileStep<StepInput, OperationInput = UpdateUserProfileInput, OperationOutput = UserWriteResult>(configuration: UpdateUserProfileStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
260
+ /** Configuration for the deleteUserProfile connector Step. */
261
+ interface DeleteUserProfileStepConfig<StepInput, OperationInput = DeleteUserProfileInput, OperationOutput = UserDeleteResult> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
262
+ /** Named connection supplying this operation. */
263
+ connection: Connection<{
264
+ deleteUserProfile(): Mutation<OperationInput, OperationOutput>;
265
+ }>;
266
+ /** Name matching the bound connection. */
267
+ connectionName: string;
268
+ /** Braze queued the user deletion. */
269
+ deleted: StepTarget<MutationResult<OperationOutput>>;
270
+ /** Braze conclusively rejected the deletion. */
271
+ providerRejected?: StepTarget<MutationResult<OperationOutput>>;
272
+ /** Braze returned malformed or oversized JSON. */
273
+ invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
274
+ /** Local input or connection credentials are invalid. */
275
+ defect?: StepTarget<MutationResult<OperationOutput>>;
276
+ /** Accepted for compatibility; ignored because the operation is safe to repeat. */
277
+ maxSends?: number;
278
+ }
279
+ /** Build the deleteUserProfile Step from a named connection. */
280
+ declare function newDeleteUserProfileStep<StepInput, OperationInput = DeleteUserProfileInput, OperationOutput = UserDeleteResult>(configuration: DeleteUserProfileStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
281
+ /** Configuration for the listCampaigns connector Step. */
282
+ interface ListCampaignsStepConfig<StepInput, OperationInput = ListCampaignsInput, OperationOutput = CampaignsList> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
283
+ /** Named connection supplying this operation. */
284
+ connection: Connection<{
285
+ listCampaigns(): Query<OperationInput, OperationOutput>;
286
+ }>;
287
+ /** Name matching the bound connection. */
288
+ connectionName: string;
289
+ /** Braze returned campaign identities. */
290
+ listed: StepTarget<QueryResult<OperationOutput>>;
291
+ /** Braze conclusively rejected the request. */
292
+ providerRejected?: StepTarget<QueryResult<OperationOutput>>;
293
+ /** Braze returned malformed or oversized JSON. */
294
+ invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
295
+ /** Local input or connection credentials are invalid. */
296
+ defect?: StepTarget<QueryResult<OperationOutput>>;
297
+ }
298
+ /** Build the listCampaigns Step from a named connection. */
299
+ declare function newListCampaignsStep<StepInput, OperationInput = ListCampaignsInput, OperationOutput = CampaignsList>(configuration: ListCampaignsStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
300
+ /** Configuration for the listCanvases connector Step. */
301
+ interface ListCanvasesStepConfig<StepInput, OperationInput = ListCanvasesInput, OperationOutput = CanvasesList> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
302
+ /** Named connection supplying this operation. */
303
+ connection: Connection<{
304
+ listCanvases(): Query<OperationInput, OperationOutput>;
305
+ }>;
306
+ /** Name matching the bound connection. */
307
+ connectionName: string;
308
+ /** Braze returned Canvas identities. */
309
+ listed: StepTarget<QueryResult<OperationOutput>>;
310
+ /** Braze conclusively rejected the request. */
311
+ providerRejected?: StepTarget<QueryResult<OperationOutput>>;
312
+ /** Braze returned malformed or oversized JSON. */
313
+ invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
314
+ /** Local input or connection credentials are invalid. */
315
+ defect?: StepTarget<QueryResult<OperationOutput>>;
316
+ }
317
+ /** Build the listCanvases Step from a named connection. */
318
+ declare function newListCanvasesStep<StepInput, OperationInput = ListCanvasesInput, OperationOutput = CanvasesList>(configuration: ListCanvasesStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
319
+ /** Configuration for the listSegments connector Step. */
320
+ interface ListSegmentsStepConfig<StepInput, OperationInput = ListSegmentsInput, OperationOutput = SegmentsList> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
321
+ /** Named connection supplying this operation. */
322
+ connection: Connection<{
323
+ listSegments(): Query<OperationInput, OperationOutput>;
324
+ }>;
325
+ /** Name matching the bound connection. */
326
+ connectionName: string;
327
+ /** Braze returned segment identities. */
328
+ listed: StepTarget<QueryResult<OperationOutput>>;
329
+ /** Braze conclusively rejected the request. */
330
+ providerRejected?: StepTarget<QueryResult<OperationOutput>>;
331
+ /** Braze returned malformed or oversized JSON. */
332
+ invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
333
+ /** Local input or connection credentials are invalid. */
334
+ defect?: StepTarget<QueryResult<OperationOutput>>;
335
+ }
336
+ /** Build the listSegments Step from a named connection. */
337
+ declare function newListSegmentsStep<StepInput, OperationInput = ListSegmentsInput, OperationOutput = SegmentsList>(configuration: ListSegmentsStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
40
338
  /** Configuration for the getUserProfile connector Step. */
41
339
  interface GetUserProfileStepConfig<StepInput, OperationInput = GetUserProfileInput, OperationOutput = UserProfile> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
42
340
  /** Named connection supplying this operation. */
@@ -70,9 +368,11 @@ interface Exchange {
70
368
  status: number;
71
369
  body: Uint8Array;
72
370
  retryAfterMs: number;
73
- error?: 'credential' | 'request' | 'tooLarge';
371
+ error?: 'credential' | 'request' | 'interrupted' | 'tooLarge';
74
372
  }
75
- /** Authenticated Braze REST client for selected user profile exports. */
373
+ declare const providerRequest: unique symbol;
374
+ declare const prepareTargetedSend: unique symbol;
375
+ /** Authenticated Braze REST client for bounded provider requests. */
76
376
  declare class BrazeClient {
77
377
  private readonly credentials;
78
378
  private readonly baseURL;
@@ -82,8 +382,26 @@ declare class BrazeClient {
82
382
  /** Validate account endpoint and request limits without contacting Braze. */
83
383
  constructor(config: Config, credentials: CredentialProvider<Credentials>, options?: BrazeClientOptions);
84
384
  /** Bind the getUserProfile Query. */ getUserProfile(): GetUserProfileOperation;
385
+ /** Submit absolute attributes for one Braze profile. */
386
+ updateUserProfile(): UpdateUserProfileOperation;
387
+ /** Queue deletion of one Braze profile. */
388
+ deleteUserProfile(): DeleteUserProfileOperation;
389
+ /** List one page of Braze campaign identities. */
390
+ listCampaigns(): ListCampaignsOperation;
391
+ /** List one page of Braze Canvas identities. */
392
+ listCanvases(): ListCanvasesOperation;
393
+ /** List one page of Braze segment identities. */
394
+ listSegments(): ListSegmentsOperation;
395
+ /** Dispatch one Braze campaign to an existing user. */
396
+ triggerCampaignSend(): TriggerCampaignSendOperation;
397
+ /** Dispatch one Braze Canvas to an existing user. */
398
+ triggerCanvasSend(): TriggerCanvasSendOperation;
85
399
  /** Resolve the key and send one bounded profile export request. */
86
400
  post(call: Call, externalID: string): Promise<Exchange>;
401
+ private resolveToken;
402
+ [providerRequest](call: Call, method: 'GET' | 'POST', path: string, payload?: Uint8Array): Promise<Exchange>;
403
+ [prepareTargetedSend](call: Call, path: string, payload: Uint8Array): Promise<((signal: AbortSignal) => Promise<Exchange>) | undefined>;
404
+ private sendRequest;
87
405
  }
88
406
  /** Read one Braze user's selected identity and contact fields. */
89
407
  declare class GetUserProfileOperation implements Query<GetUserProfileInput, UserProfile> {
@@ -93,5 +411,65 @@ declare class GetUserProfileOperation implements Query<GetUserProfileInput, User
93
411
  /** Classify provider outcomes consistently with the Go implementation. */
94
412
  invoke(call: Call, input: GetUserProfileInput): Promise<QueryAttempt<UserProfile>>;
95
413
  }
414
+ /** Submit absolute attributes for one Braze profile. */
415
+ declare class UpdateUserProfileOperation implements Mutation<UpdateUserProfileInput, UserWriteResult> {
416
+ private readonly client;
417
+ /** Bind the provider client. */ constructor(client: BrazeClient);
418
+ /** Return the safe profile update contract. */ definition(): MutationDefinition;
419
+ /** Identify the logical update across attempts. */ idempotencyKey(callId: string): string;
420
+ /** Send only supplied attributes and require a successful acknowledgment. */
421
+ invoke(call: Call, input: UpdateUserProfileInput): Promise<MutationAttempt<UserWriteResult>>;
422
+ }
423
+ /** Queue permanent deletion of one profile. */
424
+ declare class DeleteUserProfileOperation implements Mutation<DeleteUserProfileInput, UserDeleteResult> {
425
+ private readonly client;
426
+ /** Bind the provider client. */ constructor(client: BrazeClient);
427
+ /** Return the safe profile deletion contract. */ definition(): MutationDefinition;
428
+ /** Identify the logical deletion across attempts. */ idempotencyKey(callId: string): string;
429
+ /** Request deletion and report whether Braze matched the profile. */
430
+ invoke(call: Call, input: DeleteUserProfileInput): Promise<MutationAttempt<UserDeleteResult>>;
431
+ }
432
+ /** Read one page of campaign identities. */
433
+ declare class ListCampaignsOperation implements Query<ListCampaignsInput, CampaignsList> {
434
+ private readonly client;
435
+ /** Bind the provider client. */ constructor(client: BrazeClient);
436
+ /** Return the campaign list Query contract. */ definition(): QueryDefinition;
437
+ /** Fetch the specified zero-based page. */
438
+ invoke(call: Call, input: ListCampaignsInput): Promise<QueryAttempt<CampaignsList>>;
439
+ }
440
+ /** Read one page of Canvas identities. */
441
+ declare class ListCanvasesOperation implements Query<ListCanvasesInput, CanvasesList> {
442
+ private readonly client;
443
+ /** Bind the provider client. */ constructor(client: BrazeClient);
444
+ /** Return the Canvas list Query contract. */ definition(): QueryDefinition;
445
+ /** Fetch the specified zero-based page. */
446
+ invoke(call: Call, input: ListCanvasesInput): Promise<QueryAttempt<CanvasesList>>;
447
+ }
448
+ /** Read segment identities and tracking settings. */
449
+ declare class ListSegmentsOperation implements Query<ListSegmentsInput, SegmentsList> {
450
+ private readonly client;
451
+ /** Bind the provider client. */ constructor(client: BrazeClient);
452
+ /** Return the segment list Query contract. */ definition(): QueryDefinition;
453
+ /** Fetch the specified zero-based page. */
454
+ invoke(call: Call, input: ListSegmentsInput): Promise<QueryAttempt<SegmentsList>>;
455
+ }
456
+ /** Send one dashboard-configured campaign to an existing user. */
457
+ declare class TriggerCampaignSendOperation implements Mutation<TriggerCampaignSendInput, TargetedSendResult> {
458
+ private readonly client;
459
+ /** Bind the provider client. */ constructor(client: BrazeClient);
460
+ /** Return the limited-send campaign contract. */ definition(): MutationDefinition;
461
+ /** Identify the logical dispatch across attempts. */ idempotencyKey(callId: string): string;
462
+ /** Dispatch the campaign to the specified existing external user. */
463
+ invoke(call: Call, input: TriggerCampaignSendInput): Promise<MutationAttempt<TargetedSendResult>>;
464
+ }
465
+ /** Send one dashboard-configured Canvas to an existing user. */
466
+ declare class TriggerCanvasSendOperation implements Mutation<TriggerCanvasSendInput, TargetedSendResult> {
467
+ private readonly client;
468
+ /** Bind the provider client. */ constructor(client: BrazeClient);
469
+ /** Return the limited-send Canvas contract. */ definition(): MutationDefinition;
470
+ /** Identify the logical dispatch across attempts. */ idempotencyKey(callId: string): string;
471
+ /** Dispatch the Canvas to the specified external user. */
472
+ invoke(call: Call, input: TriggerCanvasSendInput): Promise<MutationAttempt<TargetedSendResult>>;
473
+ }
96
474
 
97
- export { BrazeClient, type BrazeClientOptions, Config, Connection, ConnectorID, Credentials, GetUserProfileBranch, GetUserProfileBranchDefect, GetUserProfileBranchFound, GetUserProfileBranchInvalidResponse, GetUserProfileBranchNotFound, GetUserProfileBranchProviderRejected, GetUserProfileDefinition, GetUserProfileInput, GetUserProfileMetadata, GetUserProfileOperation, type GetUserProfileStepConfig, ProviderID, UserProfile, newGetUserProfileStep, newProjectConnection };
475
+ export { BrazeClient, type BrazeClientOptions, CampaignsList, CanvasesList, Config, Connection, ConnectorID, Credentials, DeleteUserProfileBranch, DeleteUserProfileBranchDefect, DeleteUserProfileBranchDeleted, DeleteUserProfileBranchInvalidResponse, DeleteUserProfileBranchProviderRejected, DeleteUserProfileDefinition, DeleteUserProfileInput, DeleteUserProfileMetadata, DeleteUserProfileOperation, type DeleteUserProfileStepConfig, GetUserProfileBranch, GetUserProfileBranchDefect, GetUserProfileBranchFound, GetUserProfileBranchInvalidResponse, GetUserProfileBranchNotFound, GetUserProfileBranchProviderRejected, GetUserProfileDefinition, GetUserProfileInput, GetUserProfileMetadata, GetUserProfileOperation, type GetUserProfileStepConfig, ListCampaignsBranch, ListCampaignsBranchDefect, ListCampaignsBranchInvalidResponse, ListCampaignsBranchListed, ListCampaignsBranchProviderRejected, ListCampaignsDefinition, ListCampaignsInput, ListCampaignsMetadata, ListCampaignsOperation, type ListCampaignsStepConfig, ListCanvasesBranch, ListCanvasesBranchDefect, ListCanvasesBranchInvalidResponse, ListCanvasesBranchListed, ListCanvasesBranchProviderRejected, ListCanvasesDefinition, ListCanvasesInput, ListCanvasesMetadata, ListCanvasesOperation, type ListCanvasesStepConfig, ListSegmentsBranch, ListSegmentsBranchDefect, ListSegmentsBranchInvalidResponse, ListSegmentsBranchListed, ListSegmentsBranchProviderRejected, ListSegmentsDefinition, ListSegmentsInput, ListSegmentsMetadata, ListSegmentsOperation, type ListSegmentsStepConfig, ProviderID, SegmentsList, TargetedSendResult, TriggerCampaignSendBranch, TriggerCampaignSendBranchDefect, TriggerCampaignSendBranchProviderRejected, TriggerCampaignSendBranchSent, TriggerCampaignSendBranchUncertain, TriggerCampaignSendDefinition, TriggerCampaignSendInput, TriggerCampaignSendMetadata, TriggerCampaignSendOperation, type TriggerCampaignSendStepConfig, TriggerCanvasSendBranch, TriggerCanvasSendBranchDefect, TriggerCanvasSendBranchProviderRejected, TriggerCanvasSendBranchSent, TriggerCanvasSendBranchUncertain, TriggerCanvasSendDefinition, TriggerCanvasSendInput, TriggerCanvasSendMetadata, TriggerCanvasSendOperation, type TriggerCanvasSendStepConfig, UpdateUserProfileBranch, UpdateUserProfileBranchAccepted, UpdateUserProfileBranchDefect, UpdateUserProfileBranchInvalidResponse, UpdateUserProfileBranchProviderRejected, UpdateUserProfileDefinition, UpdateUserProfileInput, UpdateUserProfileMetadata, UpdateUserProfileOperation, type UpdateUserProfileStepConfig, UserDeleteResult, UserProfile, UserWriteResult, newDeleteUserProfileStep, newGetUserProfileStep, newListCampaignsStep, newListCanvasesStep, newListSegmentsStep, newProjectConnection, newTriggerCampaignSendStep, newTriggerCanvasSendStep, newUpdateUserProfileStep };