@streamlayer/sl-eslib 5.142.0 → 5.144.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamlayer/sl-eslib",
3
- "version": "5.142.0",
3
+ "version": "5.144.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -436,25 +436,26 @@ export declare class GetWebhookResponse extends Message<GetWebhookResponse> {
436
436
  */
437
437
  export declare class SendWebhookEventRequest extends Message<SendWebhookEventRequest> {
438
438
  /**
439
- * @generated from field: string organization_id = 1;
439
+ * [sets by grpc-proxy]
440
+ *
441
+ * @generated from field: optional string organization_id = 1;
440
442
  */
441
- organizationId: string;
443
+ organizationId?: string;
442
444
 
443
445
  /**
446
+ * [sets by SDK client]
447
+ *
444
448
  * @generated from field: optional uint64 event_id = 2;
445
449
  */
446
450
  eventId?: bigint;
447
451
 
448
452
  /**
453
+ * [sets by SDK client]
454
+ *
449
455
  * @generated from field: optional string question_id = 3;
450
456
  */
451
457
  questionId?: string;
452
458
 
453
- /**
454
- * @generated from field: string event_type = 4;
455
- */
456
- eventType: string;
457
-
458
459
  /**
459
460
  * @generated from field: streamlayer.sdkSettings.organization.webhooks.SendWebhookEventRequest.EventData data = 5;
460
461
  */
@@ -480,42 +481,51 @@ export declare class SendWebhookEventRequest extends Message<SendWebhookEventReq
480
481
  */
481
482
  export declare class SendWebhookEventRequest_EventData extends Message<SendWebhookEventRequest_EventData> {
482
483
  /**
483
- * External client user ID
484
+ * [sets by SDK client] (AD event context)
484
485
  *
485
- * @generated from field: string user_id = 1;
486
+ * @generated from field: streamlayer.sdkSettings.organization.webhooks.WebhookEvent event = 1;
486
487
  */
487
- userId: string;
488
+ event: WebhookEvent;
488
489
 
489
490
  /**
490
- * Action, e.g., CLICK_SECONDARY_BUTTON
491
+ * [sets by SDK client]
491
492
  *
492
- * @generated from field: optional string action = 2;
493
+ * @generated from field: streamlayer.sdkSettings.organization.webhooks.WebhookNotificationType notification_type = 2;
493
494
  */
494
- action?: string;
495
+ notificationType: WebhookNotificationType;
495
496
 
496
497
  /**
497
- * @generated from field: streamlayer.sdkSettings.organization.webhooks.WebhookNotificationType notification_type = 3;
498
+ * [sets by grpc-proxy] from JWT. External client user ID. SL bypass flow should be used: https://github.com/makeomatic/ms-users/blob/master/rfcs/streamlayer-bypass-provider.md#streamlayer-internal-bypass-provider
499
+ *
500
+ * @generated from field: optional string user_id = 3;
498
501
  */
499
- notificationType: WebhookNotificationType;
502
+ userId?: string;
500
503
 
501
504
  /**
502
- * Event description
505
+ * [sets by SDK client]. Action, e.g., CLICK_SECONDARY_BUTTON
503
506
  *
504
- * @generated from field: string description = 4;
507
+ * @generated from field: optional string action = 4;
508
+ */
509
+ action?: string;
510
+
511
+ /**
512
+ * [sets by SDK client]. Event description, e.g. "User clicked on a secondary button"
513
+ *
514
+ * @generated from field: string description = 5;
505
515
  */
506
516
  description: string;
507
517
 
508
518
  /**
509
- * Metadata for the event
519
+ * [sets by grpc-proxy] Metadata for the event
510
520
  *
511
- * @generated from field: map<string, string> metadata = 5;
521
+ * @generated from field: map<string, string> metadata = 6;
512
522
  */
513
523
  metadata: { [key: string]: string };
514
524
 
515
525
  /**
516
- * Custom fields for the event
526
+ * [sets by SDK client]. Clients custom fields for the AD event, e.g. { "promo_code": "SUMMER2024", "campaign": "BeachSale" }
517
527
  *
518
- * @generated from field: map<string, string> custom_fields = 6;
528
+ * @generated from field: map<string, string> custom_fields = 7;
519
529
  */
520
530
  customFields: { [key: string]: string };
521
531
 
@@ -148,10 +148,9 @@ export const GetWebhookResponse = /*@__PURE__*/ proto3.makeMessageType(
148
148
  export const SendWebhookEventRequest = /*@__PURE__*/ proto3.makeMessageType(
149
149
  "streamlayer.sdkSettings.organization.webhooks.SendWebhookEventRequest",
150
150
  () => [
151
- { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
151
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
152
152
  { no: 2, name: "event_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
153
153
  { no: 3, name: "question_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
154
- { no: 4, name: "event_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
155
154
  { no: 5, name: "data", kind: "message", T: SendWebhookEventRequest_EventData },
156
155
  ],
157
156
  );
@@ -162,12 +161,13 @@ export const SendWebhookEventRequest = /*@__PURE__*/ proto3.makeMessageType(
162
161
  export const SendWebhookEventRequest_EventData = /*@__PURE__*/ proto3.makeMessageType(
163
162
  "streamlayer.sdkSettings.organization.webhooks.SendWebhookEventRequest.EventData",
164
163
  () => [
165
- { no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
166
- { no: 2, name: "action", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
167
- { no: 3, name: "notification_type", kind: "enum", T: proto3.getEnumType(WebhookNotificationType) },
168
- { no: 4, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
169
- { no: 5, name: "metadata", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
170
- { no: 6, name: "custom_fields", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
164
+ { no: 1, name: "event", kind: "enum", T: proto3.getEnumType(WebhookEvent) },
165
+ { no: 2, name: "notification_type", kind: "enum", T: proto3.getEnumType(WebhookNotificationType) },
166
+ { no: 3, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
167
+ { no: 4, name: "action", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
168
+ { no: 5, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
169
+ { no: 6, name: "metadata", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
170
+ { no: 7, name: "custom_fields", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
171
171
  ],
172
172
  {localName: "SendWebhookEventRequest_EventData"},
173
173
  );