@streamlayer/sl-eslib 5.139.1 → 5.139.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamlayer/sl-eslib",
3
- "version": "5.139.1",
3
+ "version": "5.139.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -195,6 +195,11 @@ export declare class CreateWebhookRequest extends Message<CreateWebhookRequest>
195
195
  */
196
196
  limit: number;
197
197
 
198
+ /**
199
+ * @generated from field: bool is_disabled = 11;
200
+ */
201
+ isDisabled: boolean;
202
+
198
203
  constructor(data?: PartialMessage<CreateWebhookRequest>);
199
204
 
200
205
  static readonly runtime: typeof proto3;
@@ -431,21 +436,27 @@ export declare class GetWebhookResponse extends Message<GetWebhookResponse> {
431
436
  */
432
437
  export declare class SendWebhookEventRequest extends Message<SendWebhookEventRequest> {
433
438
  /**
434
- * Target webhook endpoint_id
435
- *
436
- * @generated from field: string id = 1;
439
+ * @generated from field: string organization_id = 1;
437
440
  */
438
- id: string;
441
+ organizationId: string;
439
442
 
440
443
  /**
441
- * Event type
442
- *
443
- * @generated from field: string event_type = 2;
444
+ * @generated from field: optional uint64 event_id = 2;
445
+ */
446
+ eventId?: bigint;
447
+
448
+ /**
449
+ * @generated from field: optional string question_id = 3;
450
+ */
451
+ questionId?: string;
452
+
453
+ /**
454
+ * @generated from field: string event_type = 4;
444
455
  */
445
456
  eventType: string;
446
457
 
447
458
  /**
448
- * @generated from field: streamlayer.sdkSettings.organization.webhooks.SendWebhookEventRequest.EventData data = 3;
459
+ * @generated from field: streamlayer.sdkSettings.organization.webhooks.SendWebhookEventRequest.EventData data = 5;
449
460
  */
450
461
  data?: SendWebhookEventRequest_EventData;
451
462
 
@@ -468,48 +479,43 @@ export declare class SendWebhookEventRequest extends Message<SendWebhookEventReq
468
479
  * @generated from message streamlayer.sdkSettings.organization.webhooks.SendWebhookEventRequest.EventData
469
480
  */
470
481
  export declare class SendWebhookEventRequest_EventData extends Message<SendWebhookEventRequest_EventData> {
471
- /**
472
- * @generated from field: uint64 event_id = 1;
473
- */
474
- eventId: bigint;
475
-
476
482
  /**
477
483
  * External client user ID
478
484
  *
479
- * @generated from field: string user_id = 2;
485
+ * @generated from field: string user_id = 1;
480
486
  */
481
487
  userId: string;
482
488
 
483
489
  /**
484
490
  * Action, e.g., CLICK_SECONDARY_BUTTON
485
491
  *
486
- * @generated from field: optional string action = 3;
492
+ * @generated from field: optional string action = 2;
487
493
  */
488
494
  action?: string;
489
495
 
490
496
  /**
491
- * @generated from field: streamlayer.sdkSettings.organization.webhooks.WebhookNotificationType notification_type = 4;
497
+ * @generated from field: streamlayer.sdkSettings.organization.webhooks.WebhookNotificationType notification_type = 3;
492
498
  */
493
499
  notificationType: WebhookNotificationType;
494
500
 
495
501
  /**
496
502
  * Event description
497
503
  *
498
- * @generated from field: string description = 5;
504
+ * @generated from field: string description = 4;
499
505
  */
500
506
  description: string;
501
507
 
502
508
  /**
503
509
  * Metadata for the event
504
510
  *
505
- * @generated from field: map<string, string> metadata = 6;
511
+ * @generated from field: map<string, string> metadata = 5;
506
512
  */
507
513
  metadata: { [key: string]: string };
508
514
 
509
515
  /**
510
516
  * Custom fields for the event
511
517
  *
512
- * @generated from field: map<string, string> custom_fields = 7;
518
+ * @generated from field: map<string, string> custom_fields = 6;
513
519
  */
514
520
  customFields: { [key: string]: string };
515
521
 
@@ -533,82 +539,73 @@ export declare class SendWebhookEventRequest_EventData extends Message<SendWebho
533
539
  */
534
540
  export declare class UpdateWebhookRequest extends Message<UpdateWebhookRequest> {
535
541
  /**
536
- * Target endpoint_id to update
537
- *
538
- * @generated from field: string id = 1;
539
- */
540
- id: string;
541
-
542
- /**
543
- * @generated from field: string organization_id = 2;
542
+ * @generated from field: string organization_id = 1;
544
543
  */
545
544
  organizationId: string;
546
545
 
547
546
  /**
548
- * @generated from field: optional uint64 event_id = 3;
547
+ * @generated from field: optional uint64 event_id = 2;
549
548
  */
550
549
  eventId?: bigint;
551
550
 
552
551
  /**
553
- * @generated from field: optional string question_id = 4;
552
+ * @generated from field: optional string question_id = 3;
554
553
  */
555
554
  questionId?: string;
556
555
 
557
556
  /**
558
557
  * Webhook name
559
558
  *
560
- * @generated from field: string name = 5;
559
+ * @generated from field: string name = 4;
561
560
  */
562
561
  name: string;
563
562
 
564
563
  /**
565
564
  * Webhook description
566
565
  *
567
- * @generated from field: string description = 6;
566
+ * @generated from field: string description = 5;
568
567
  */
569
568
  description: string;
570
569
 
571
570
  /**
572
571
  * Events to trigger the webhook
573
572
  *
574
- * @generated from field: repeated streamlayer.sdkSettings.organization.webhooks.WebhookEvent events = 7;
573
+ * @generated from field: repeated streamlayer.sdkSettings.organization.webhooks.WebhookEvent events = 6;
575
574
  */
576
575
  events: WebhookEvent[];
577
576
 
578
577
  /**
579
578
  * Target endpoint for webhook delivery
580
579
  *
581
- * @generated from field: string target_url = 8;
580
+ * @generated from field: string target_url = 7;
582
581
  */
583
582
  targetUrl: string;
584
583
 
585
584
  /**
586
585
  * Target endpoint authentication
587
586
  *
588
- * @generated from field: streamlayer.sdkSettings.organization.webhooks.ApiKey api_key = 9;
587
+ * @generated from field: streamlayer.sdkSettings.organization.webhooks.ApiKey api_key = 8;
589
588
  */
590
589
  apiKey?: ApiKey;
591
590
 
592
591
  /**
593
592
  * Duration in seconds for which the webhook is valid
594
593
  *
595
- * @generated from field: uint32 duration = 10;
594
+ * @generated from field: uint32 duration = 9;
596
595
  */
597
596
  duration: number;
598
597
 
599
598
  /**
600
599
  * Rate limit for webhook requests
601
600
  *
602
- * @generated from field: uint32 limit = 11;
601
+ * @generated from field: uint32 limit = 10;
603
602
  */
604
603
  limit: number;
605
604
 
606
605
  /**
607
- * Webhook status
608
- *
609
- * @generated from field: streamlayer.sdkSettings.organization.webhooks.WebhookStatus status = 12;
606
+ * @generated from field: bool is_disabled = 11;
610
607
  */
611
- status: WebhookStatus;
608
+ isDisabled: boolean;
612
609
 
613
610
  constructor(data?: PartialMessage<UpdateWebhookRequest>);
614
611
 
@@ -72,6 +72,7 @@ export const CreateWebhookRequest = /*@__PURE__*/ proto3.makeMessageType(
72
72
  { no: 8, name: "api_key", kind: "message", T: ApiKey },
73
73
  { no: 9, name: "duration", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
74
74
  { no: 10, name: "limit", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
75
+ { no: 11, name: "is_disabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
75
76
  ],
76
77
  );
77
78
 
@@ -147,9 +148,11 @@ export const GetWebhookResponse = /*@__PURE__*/ proto3.makeMessageType(
147
148
  export const SendWebhookEventRequest = /*@__PURE__*/ proto3.makeMessageType(
148
149
  "streamlayer.sdkSettings.organization.webhooks.SendWebhookEventRequest",
149
150
  () => [
150
- { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
151
- { no: 2, name: "event_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
152
- { no: 3, name: "data", kind: "message", T: SendWebhookEventRequest_EventData },
151
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
152
+ { no: 2, name: "event_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
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
+ { no: 5, name: "data", kind: "message", T: SendWebhookEventRequest_EventData },
153
156
  ],
154
157
  );
155
158
 
@@ -159,13 +162,12 @@ export const SendWebhookEventRequest = /*@__PURE__*/ proto3.makeMessageType(
159
162
  export const SendWebhookEventRequest_EventData = /*@__PURE__*/ proto3.makeMessageType(
160
163
  "streamlayer.sdkSettings.organization.webhooks.SendWebhookEventRequest.EventData",
161
164
  () => [
162
- { no: 1, name: "event_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
163
- { no: 2, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
164
- { no: 3, name: "action", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
165
- { no: 4, name: "notification_type", kind: "enum", T: proto3.getEnumType(WebhookNotificationType) },
166
- { no: 5, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
167
- { no: 6, name: "metadata", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
168
- { no: 7, name: "custom_fields", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
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 */} },
169
171
  ],
170
172
  {localName: "SendWebhookEventRequest_EventData"},
171
173
  );
@@ -176,18 +178,17 @@ export const SendWebhookEventRequest_EventData = /*@__PURE__*/ proto3.makeMessag
176
178
  export const UpdateWebhookRequest = /*@__PURE__*/ proto3.makeMessageType(
177
179
  "streamlayer.sdkSettings.organization.webhooks.UpdateWebhookRequest",
178
180
  () => [
179
- { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
180
- { no: 2, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
181
- { no: 3, name: "event_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
182
- { no: 4, name: "question_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
183
- { no: 5, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
184
- { no: 6, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
185
- { no: 7, name: "events", kind: "enum", T: proto3.getEnumType(WebhookEvent), repeated: true },
186
- { no: 8, name: "target_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
187
- { no: 9, name: "api_key", kind: "message", T: ApiKey },
188
- { no: 10, name: "duration", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
189
- { no: 11, name: "limit", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
190
- { no: 12, name: "status", kind: "enum", T: proto3.getEnumType(WebhookStatus) },
181
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
182
+ { no: 2, name: "event_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
183
+ { no: 3, name: "question_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
184
+ { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
185
+ { no: 5, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
186
+ { no: 6, name: "events", kind: "enum", T: proto3.getEnumType(WebhookEvent), repeated: true },
187
+ { no: 7, name: "target_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
188
+ { no: 8, name: "api_key", kind: "message", T: ApiKey },
189
+ { no: 9, name: "duration", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
190
+ { no: 10, name: "limit", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
191
+ { no: 11, name: "is_disabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
191
192
  ],
192
193
  );
193
194