@streamlayer/sl-eslib 5.136.0 → 5.137.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 +1 -1
- package/streamlayer/organizations/studio/webhooks/organizations.studio.webhooks-Webhooks_connectquery.d.ts +13 -1
- package/streamlayer/organizations/studio/webhooks/organizations.studio.webhooks-Webhooks_connectquery.js +15 -1
- package/streamlayer/organizations/studio/webhooks/organizations.studio.webhooks_connect.d.ts +10 -1
- package/streamlayer/organizations/studio/webhooks/organizations.studio.webhooks_connect.js +10 -1
- package/streamlayer/organizations/studio/webhooks/organizations.studio.webhooks_pb.d.ts +94 -0
- package/streamlayer/organizations/studio/webhooks/organizations.studio.webhooks_pb.js +26 -0
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
|
|
6
|
-
import { CreateWebhookRequest, CreateWebhookResponse, GetWebhookRequest, GetWebhookResponse } from "./organizations.studio.webhooks_pb.js";
|
|
6
|
+
import { CreateWebhookRequest, CreateWebhookResponse, GetWebhookRequest, GetWebhookResponse, SendWebhookEventRequest, SendWebhookEventResponse } from "./organizations.studio.webhooks_pb.js";
|
|
7
7
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -30,3 +30,15 @@ export const createWebhook: {
|
|
|
30
30
|
readonly typeName: "streamlayer.organizations.studio.webhooks.Webhooks"
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
|
+
/**
|
|
34
|
+
* @generated from rpc streamlayer.organizations.studio.webhooks.Webhooks.SendWebhookEvent
|
|
35
|
+
*/
|
|
36
|
+
export const sendWebhookEvent: {
|
|
37
|
+
readonly name: "SendWebhookEvent",
|
|
38
|
+
readonly I: typeof SendWebhookEventRequest,
|
|
39
|
+
readonly O: typeof SendWebhookEventResponse,
|
|
40
|
+
readonly kind: MethodKind.Unary,
|
|
41
|
+
readonly service: {
|
|
42
|
+
readonly typeName: "streamlayer.organizations.studio.webhooks.Webhooks"
|
|
43
|
+
}
|
|
44
|
+
};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
|
|
6
6
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
7
|
-
import { CreateWebhookRequest, CreateWebhookResponse, GetWebhookRequest, GetWebhookResponse } from "./organizations.studio.webhooks_pb.js";
|
|
7
|
+
import { CreateWebhookRequest, CreateWebhookResponse, GetWebhookRequest, GetWebhookResponse, SendWebhookEventRequest, SendWebhookEventResponse } from "./organizations.studio.webhooks_pb.js";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @generated from rpc streamlayer.organizations.studio.webhooks.Webhooks.GetWebhook
|
|
@@ -33,3 +33,17 @@ export const createWebhook = {
|
|
|
33
33
|
typeName: "streamlayer.organizations.studio.webhooks.Webhooks"
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @generated from rpc streamlayer.organizations.studio.webhooks.Webhooks.SendWebhookEvent
|
|
39
|
+
*/
|
|
40
|
+
export const sendWebhookEvent = {
|
|
41
|
+
localName: "sendWebhookEvent",
|
|
42
|
+
name: "SendWebhookEvent",
|
|
43
|
+
kind: MethodKind.Unary,
|
|
44
|
+
I: SendWebhookEventRequest,
|
|
45
|
+
O: SendWebhookEventResponse,
|
|
46
|
+
service: {
|
|
47
|
+
typeName: "streamlayer.organizations.studio.webhooks.Webhooks"
|
|
48
|
+
}
|
|
49
|
+
};
|
package/streamlayer/organizations/studio/webhooks/organizations.studio.webhooks_connect.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
|
|
6
|
-
import { CreateWebhookRequest, CreateWebhookResponse, GetWebhookRequest, GetWebhookResponse } from "./organizations.studio.webhooks_pb.js";
|
|
6
|
+
import { CreateWebhookRequest, CreateWebhookResponse, GetWebhookRequest, GetWebhookResponse, SendWebhookEventRequest, SendWebhookEventResponse } from "./organizations.studio.webhooks_pb.js";
|
|
7
7
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -30,6 +30,15 @@ export declare const Webhooks: {
|
|
|
30
30
|
readonly O: typeof CreateWebhookResponse,
|
|
31
31
|
readonly kind: MethodKind.Unary,
|
|
32
32
|
},
|
|
33
|
+
/**
|
|
34
|
+
* @generated from rpc streamlayer.organizations.studio.webhooks.Webhooks.SendWebhookEvent
|
|
35
|
+
*/
|
|
36
|
+
readonly sendWebhookEvent: {
|
|
37
|
+
readonly name: "SendWebhookEvent",
|
|
38
|
+
readonly I: typeof SendWebhookEventRequest,
|
|
39
|
+
readonly O: typeof SendWebhookEventResponse,
|
|
40
|
+
readonly kind: MethodKind.Unary,
|
|
41
|
+
},
|
|
33
42
|
}
|
|
34
43
|
};
|
|
35
44
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
|
|
6
|
-
import { CreateWebhookRequest, CreateWebhookResponse, GetWebhookRequest, GetWebhookResponse } from "./organizations.studio.webhooks_pb.js";
|
|
6
|
+
import { CreateWebhookRequest, CreateWebhookResponse, GetWebhookRequest, GetWebhookResponse, SendWebhookEventRequest, SendWebhookEventResponse } from "./organizations.studio.webhooks_pb.js";
|
|
7
7
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -30,6 +30,15 @@ export const Webhooks = {
|
|
|
30
30
|
O: CreateWebhookResponse,
|
|
31
31
|
kind: MethodKind.Unary,
|
|
32
32
|
},
|
|
33
|
+
/**
|
|
34
|
+
* @generated from rpc streamlayer.organizations.studio.webhooks.Webhooks.SendWebhookEvent
|
|
35
|
+
*/
|
|
36
|
+
sendWebhookEvent: {
|
|
37
|
+
name: "SendWebhookEvent",
|
|
38
|
+
I: SendWebhookEventRequest,
|
|
39
|
+
O: SendWebhookEventResponse,
|
|
40
|
+
kind: MethodKind.Unary,
|
|
41
|
+
},
|
|
33
42
|
}
|
|
34
43
|
};
|
|
35
44
|
|
|
@@ -369,3 +369,97 @@ export declare class CreateWebhookResponse extends Message<CreateWebhookResponse
|
|
|
369
369
|
static equals(a: CreateWebhookResponse | PlainMessage<CreateWebhookResponse> | undefined, b: CreateWebhookResponse | PlainMessage<CreateWebhookResponse> | undefined): boolean;
|
|
370
370
|
}
|
|
371
371
|
|
|
372
|
+
/**
|
|
373
|
+
* @generated from message streamlayer.organizations.studio.webhooks.SendWebhookEventRequest
|
|
374
|
+
*/
|
|
375
|
+
export declare class SendWebhookEventRequest extends Message<SendWebhookEventRequest> {
|
|
376
|
+
/**
|
|
377
|
+
* Target endpoint ID
|
|
378
|
+
*
|
|
379
|
+
* @generated from field: string id = 1;
|
|
380
|
+
*/
|
|
381
|
+
id: string;
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Event type to trigger
|
|
385
|
+
*
|
|
386
|
+
* @generated from field: string event_type = 2;
|
|
387
|
+
*/
|
|
388
|
+
eventType: string;
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* Metadata for the event, e.g. device_type = 'ios', user_agent, ip, location = 'Los Angeles', topic_subtype, banner_url
|
|
392
|
+
*
|
|
393
|
+
* @generated from field: map<string, string> metadata = 3;
|
|
394
|
+
*/
|
|
395
|
+
metadata: { [key: string]: string };
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* AD context. Client custom fields for the event, e.g. promo_code = 'SUMMER2024', campaign = 'BeachSale', brand = 'Nike', model, etc
|
|
399
|
+
*
|
|
400
|
+
* @generated from field: map<string, string> custom_fields = 4;
|
|
401
|
+
*/
|
|
402
|
+
customFields: { [key: string]: string };
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* Event description, e.g. "User clicked on a secondary button"
|
|
406
|
+
*
|
|
407
|
+
* @generated from field: string description = 5;
|
|
408
|
+
*/
|
|
409
|
+
description: string;
|
|
410
|
+
|
|
411
|
+
constructor(data?: PartialMessage<SendWebhookEventRequest>);
|
|
412
|
+
|
|
413
|
+
static readonly runtime: typeof proto3;
|
|
414
|
+
static readonly typeName = "streamlayer.organizations.studio.webhooks.SendWebhookEventRequest";
|
|
415
|
+
static readonly fields: FieldList;
|
|
416
|
+
|
|
417
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SendWebhookEventRequest;
|
|
418
|
+
|
|
419
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SendWebhookEventRequest;
|
|
420
|
+
|
|
421
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SendWebhookEventRequest;
|
|
422
|
+
|
|
423
|
+
static equals(a: SendWebhookEventRequest | PlainMessage<SendWebhookEventRequest> | undefined, b: SendWebhookEventRequest | PlainMessage<SendWebhookEventRequest> | undefined): boolean;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* @generated from message streamlayer.organizations.studio.webhooks.SendWebhookEventResponse
|
|
428
|
+
*/
|
|
429
|
+
export declare class SendWebhookEventResponse extends Message<SendWebhookEventResponse> {
|
|
430
|
+
/**
|
|
431
|
+
* Delivery status
|
|
432
|
+
*
|
|
433
|
+
* @generated from field: bool status = 1;
|
|
434
|
+
*/
|
|
435
|
+
status: boolean;
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* Response message, "Event queued successfully"
|
|
439
|
+
*
|
|
440
|
+
* @generated from field: string message = 2;
|
|
441
|
+
*/
|
|
442
|
+
message: string;
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* HTTP response code
|
|
446
|
+
*
|
|
447
|
+
* @generated from field: uint32 http_code = 3;
|
|
448
|
+
*/
|
|
449
|
+
httpCode: number;
|
|
450
|
+
|
|
451
|
+
constructor(data?: PartialMessage<SendWebhookEventResponse>);
|
|
452
|
+
|
|
453
|
+
static readonly runtime: typeof proto3;
|
|
454
|
+
static readonly typeName = "streamlayer.organizations.studio.webhooks.SendWebhookEventResponse";
|
|
455
|
+
static readonly fields: FieldList;
|
|
456
|
+
|
|
457
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SendWebhookEventResponse;
|
|
458
|
+
|
|
459
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SendWebhookEventResponse;
|
|
460
|
+
|
|
461
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SendWebhookEventResponse;
|
|
462
|
+
|
|
463
|
+
static equals(a: SendWebhookEventResponse | PlainMessage<SendWebhookEventResponse> | undefined, b: SendWebhookEventResponse | PlainMessage<SendWebhookEventResponse> | undefined): boolean;
|
|
464
|
+
}
|
|
465
|
+
|
|
@@ -122,3 +122,29 @@ export const CreateWebhookResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
122
122
|
],
|
|
123
123
|
);
|
|
124
124
|
|
|
125
|
+
/**
|
|
126
|
+
* @generated from message streamlayer.organizations.studio.webhooks.SendWebhookEventRequest
|
|
127
|
+
*/
|
|
128
|
+
export const SendWebhookEventRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
129
|
+
"streamlayer.organizations.studio.webhooks.SendWebhookEventRequest",
|
|
130
|
+
() => [
|
|
131
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
132
|
+
{ no: 2, name: "event_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
133
|
+
{ no: 3, name: "metadata", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
134
|
+
{ no: 4, name: "custom_fields", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
135
|
+
{ no: 5, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
136
|
+
],
|
|
137
|
+
);
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @generated from message streamlayer.organizations.studio.webhooks.SendWebhookEventResponse
|
|
141
|
+
*/
|
|
142
|
+
export const SendWebhookEventResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
143
|
+
"streamlayer.organizations.studio.webhooks.SendWebhookEventResponse",
|
|
144
|
+
() => [
|
|
145
|
+
{ no: 1, name: "status", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
146
|
+
{ no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
147
|
+
{ no: 3, name: "http_code", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
148
|
+
],
|
|
149
|
+
);
|
|
150
|
+
|