@streamlayer/sl-eslib 5.137.0 → 5.139.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.
@@ -0,0 +1,215 @@
1
+ // @generated by protoc-gen-es v1.10.0 with parameter "target=js+dts"
2
+ // @generated from file streamlayer/sdkSettings/organization/webhooks/organization.webhooks.proto (package streamlayer.sdkSettings.organization.webhooks, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import { proto3 } from "@bufbuild/protobuf";
7
+
8
+ /**
9
+ * @generated from enum streamlayer.sdkSettings.organization.webhooks.WebhookStatus
10
+ */
11
+ export const WebhookStatus = /*@__PURE__*/ proto3.makeEnum(
12
+ "streamlayer.sdkSettings.organization.webhooks.WebhookStatus",
13
+ [
14
+ {no: 0, name: "WEBHOOK_STATUS_UNSET", localName: "UNSET"},
15
+ {no: 1, name: "WEBHOOK_STATUS_ACTIVE", localName: "ACTIVE"},
16
+ {no: 2, name: "WEBHOOK_STATUS_INACTIVE", localName: "INACTIVE"},
17
+ {no: 3, name: "WEBHOOK_STATUS_PENDING", localName: "PENDING"},
18
+ {no: 4, name: "WEBHOOK_STATUS_PAUSED", localName: "PAUSED"},
19
+ ],
20
+ );
21
+
22
+ /**
23
+ * @generated from enum streamlayer.sdkSettings.organization.webhooks.WebhookEvent
24
+ */
25
+ export const WebhookEvent = /*@__PURE__*/ proto3.makeEnum(
26
+ "streamlayer.sdkSettings.organization.webhooks.WebhookEvent",
27
+ [
28
+ {no: 0, name: "WEBHOOK_EVENT_UNSET", localName: "UNSET"},
29
+ {no: 1, name: "WEBHOOK_EVENT_CLICK_BANNER", localName: "CLICK_BANNER"},
30
+ {no: 2, name: "WEBHOOK_EVENT_CLICK_ADDITIONAL_BANNER", localName: "CLICK_ADDITIONAL_BANNER"},
31
+ {no: 3, name: "WEBHOOK_EVENT_CLICK_BUTTON", localName: "CLICK_BUTTON"},
32
+ {no: 4, name: "WEBHOOK_EVENT_CLICK_SECONDARY_BUTTON", localName: "CLICK_SECONDARY_BUTTON"},
33
+ ],
34
+ );
35
+
36
+ /**
37
+ * @generated from enum streamlayer.sdkSettings.organization.webhooks.WebhookNotificationType
38
+ */
39
+ export const WebhookNotificationType = /*@__PURE__*/ proto3.makeEnum(
40
+ "streamlayer.sdkSettings.organization.webhooks.WebhookNotificationType",
41
+ [
42
+ {no: 0, name: "WEBHOOK_NOTIFICATION_TYPE_UNSET", localName: "UNSET"},
43
+ {no: 1, name: "WEBHOOK_NOTIFICATION_TYPE_PHONE", localName: "PHONE"},
44
+ {no: 2, name: "WEBHOOK_NOTIFICATION_TYPE_MAIL", localName: "MAIL"},
45
+ ],
46
+ );
47
+
48
+ /**
49
+ * @generated from message streamlayer.sdkSettings.organization.webhooks.ApiKey
50
+ */
51
+ export const ApiKey = /*@__PURE__*/ proto3.makeMessageType(
52
+ "streamlayer.sdkSettings.organization.webhooks.ApiKey",
53
+ () => [
54
+ { no: 1, name: "header_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
55
+ { no: 2, name: "header_value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
56
+ ],
57
+ );
58
+
59
+ /**
60
+ * @generated from message streamlayer.sdkSettings.organization.webhooks.CreateWebhookRequest
61
+ */
62
+ export const CreateWebhookRequest = /*@__PURE__*/ proto3.makeMessageType(
63
+ "streamlayer.sdkSettings.organization.webhooks.CreateWebhookRequest",
64
+ () => [
65
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
66
+ { no: 2, name: "event_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
67
+ { no: 3, name: "question_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
68
+ { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
69
+ { no: 5, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
70
+ { no: 6, name: "events", kind: "enum", T: proto3.getEnumType(WebhookEvent), repeated: true },
71
+ { no: 7, name: "target_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
72
+ { no: 8, name: "api_key", kind: "message", T: ApiKey },
73
+ { no: 9, name: "duration", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
74
+ { no: 10, name: "limit", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
75
+ ],
76
+ );
77
+
78
+ /**
79
+ * @generated from message streamlayer.sdkSettings.organization.webhooks.Webhook
80
+ */
81
+ export const Webhook = /*@__PURE__*/ proto3.makeMessageType(
82
+ "streamlayer.sdkSettings.organization.webhooks.Webhook",
83
+ () => [
84
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
85
+ { no: 2, name: "project_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
86
+ { no: 3, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
87
+ { no: 4, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
88
+ { no: 5, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
89
+ { no: 6, name: "target_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
90
+ { no: 7, name: "http_timeout", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
91
+ { no: 8, name: "rate_limit", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
92
+ { no: 9, name: "rate_limit_duration", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
93
+ { no: 10, name: "status", kind: "enum", T: proto3.getEnumType(WebhookStatus) },
94
+ { no: 11, name: "api_key", kind: "message", T: ApiKey },
95
+ { no: 12, name: "event_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
96
+ { no: 13, name: "question_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
97
+ ],
98
+ );
99
+
100
+ /**
101
+ * @generated from message streamlayer.sdkSettings.organization.webhooks.WebhookData
102
+ */
103
+ export const WebhookData = /*@__PURE__*/ proto3.makeMessageType(
104
+ "streamlayer.sdkSettings.organization.webhooks.WebhookData",
105
+ () => [
106
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
107
+ { no: 2, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
108
+ { no: 3, name: "attributes", kind: "message", T: Webhook },
109
+ ],
110
+ );
111
+
112
+ /**
113
+ * @generated from message streamlayer.sdkSettings.organization.webhooks.CreateWebhookResponse
114
+ */
115
+ export const CreateWebhookResponse = /*@__PURE__*/ proto3.makeMessageType(
116
+ "streamlayer.sdkSettings.organization.webhooks.CreateWebhookResponse",
117
+ () => [
118
+ { no: 1, name: "data", kind: "message", T: WebhookData },
119
+ ],
120
+ );
121
+
122
+ /**
123
+ * @generated from message streamlayer.sdkSettings.organization.webhooks.GetWebhookRequest
124
+ */
125
+ export const GetWebhookRequest = /*@__PURE__*/ proto3.makeMessageType(
126
+ "streamlayer.sdkSettings.organization.webhooks.GetWebhookRequest",
127
+ () => [
128
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
129
+ { no: 2, name: "event_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
130
+ { no: 3, name: "question_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
131
+ ],
132
+ );
133
+
134
+ /**
135
+ * @generated from message streamlayer.sdkSettings.organization.webhooks.GetWebhookResponse
136
+ */
137
+ export const GetWebhookResponse = /*@__PURE__*/ proto3.makeMessageType(
138
+ "streamlayer.sdkSettings.organization.webhooks.GetWebhookResponse",
139
+ () => [
140
+ { no: 1, name: "data", kind: "message", T: WebhookData },
141
+ ],
142
+ );
143
+
144
+ /**
145
+ * @generated from message streamlayer.sdkSettings.organization.webhooks.SendWebhookEventRequest
146
+ */
147
+ export const SendWebhookEventRequest = /*@__PURE__*/ proto3.makeMessageType(
148
+ "streamlayer.sdkSettings.organization.webhooks.SendWebhookEventRequest",
149
+ () => [
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 },
153
+ ],
154
+ );
155
+
156
+ /**
157
+ * @generated from message streamlayer.sdkSettings.organization.webhooks.SendWebhookEventRequest.EventData
158
+ */
159
+ export const SendWebhookEventRequest_EventData = /*@__PURE__*/ proto3.makeMessageType(
160
+ "streamlayer.sdkSettings.organization.webhooks.SendWebhookEventRequest.EventData",
161
+ () => [
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 */} },
169
+ ],
170
+ {localName: "SendWebhookEventRequest_EventData"},
171
+ );
172
+
173
+ /**
174
+ * @generated from message streamlayer.sdkSettings.organization.webhooks.UpdateWebhookRequest
175
+ */
176
+ export const UpdateWebhookRequest = /*@__PURE__*/ proto3.makeMessageType(
177
+ "streamlayer.sdkSettings.organization.webhooks.UpdateWebhookRequest",
178
+ () => [
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) },
191
+ ],
192
+ );
193
+
194
+ /**
195
+ * @generated from message streamlayer.sdkSettings.organization.webhooks.UpdateWebhookResponse
196
+ */
197
+ export const UpdateWebhookResponse = /*@__PURE__*/ proto3.makeMessageType(
198
+ "streamlayer.sdkSettings.organization.webhooks.UpdateWebhookResponse",
199
+ () => [
200
+ { no: 1, name: "data", kind: "message", T: WebhookData },
201
+ ],
202
+ );
203
+
204
+ /**
205
+ * @generated from message streamlayer.sdkSettings.organization.webhooks.SendWebhookEventResponse
206
+ */
207
+ export const SendWebhookEventResponse = /*@__PURE__*/ proto3.makeMessageType(
208
+ "streamlayer.sdkSettings.organization.webhooks.SendWebhookEventResponse",
209
+ () => [
210
+ { no: 1, name: "status", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
211
+ { no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
212
+ { no: 3, name: "http_code", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
213
+ ],
214
+ );
215
+
@@ -1,44 +0,0 @@
1
- // @generated by protoc-gen-connect-query v1.3.1 with parameter "target=js+dts"
2
- // @generated from file streamlayer/organizations/studio/webhooks/organizations.studio.webhooks.proto (package streamlayer.organizations.studio.webhooks, syntax proto3)
3
- /* eslint-disable */
4
- // @ts-nocheck
5
-
6
- import { CreateWebhookRequest, CreateWebhookResponse, GetWebhookRequest, GetWebhookResponse, SendWebhookEventRequest, SendWebhookEventResponse } from "./organizations.studio.webhooks_pb.js";
7
- import { MethodKind } from "@bufbuild/protobuf";
8
-
9
- /**
10
- * @generated from rpc streamlayer.organizations.studio.webhooks.Webhooks.GetWebhook
11
- */
12
- export const getWebhook: {
13
- readonly name: "GetWebhook",
14
- readonly I: typeof GetWebhookRequest,
15
- readonly O: typeof GetWebhookResponse,
16
- readonly kind: MethodKind.Unary,
17
- readonly service: {
18
- readonly typeName: "streamlayer.organizations.studio.webhooks.Webhooks"
19
- }
20
- };
21
- /**
22
- * @generated from rpc streamlayer.organizations.studio.webhooks.Webhooks.CreateWebhook
23
- */
24
- export const createWebhook: {
25
- readonly name: "CreateWebhook",
26
- readonly I: typeof CreateWebhookRequest,
27
- readonly O: typeof CreateWebhookResponse,
28
- readonly kind: MethodKind.Unary,
29
- readonly service: {
30
- readonly typeName: "streamlayer.organizations.studio.webhooks.Webhooks"
31
- }
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
- };
@@ -1,49 +0,0 @@
1
- // @generated by protoc-gen-connect-query v1.3.1 with parameter "target=js+dts"
2
- // @generated from file streamlayer/organizations/studio/webhooks/organizations.studio.webhooks.proto (package streamlayer.organizations.studio.webhooks, syntax proto3)
3
- /* eslint-disable */
4
- // @ts-nocheck
5
-
6
- import { MethodKind } from "@bufbuild/protobuf";
7
- import { CreateWebhookRequest, CreateWebhookResponse, GetWebhookRequest, GetWebhookResponse, SendWebhookEventRequest, SendWebhookEventResponse } from "./organizations.studio.webhooks_pb.js";
8
-
9
- /**
10
- * @generated from rpc streamlayer.organizations.studio.webhooks.Webhooks.GetWebhook
11
- */
12
- export const getWebhook = {
13
- localName: "getWebhook",
14
- name: "GetWebhook",
15
- kind: MethodKind.Unary,
16
- I: GetWebhookRequest,
17
- O: GetWebhookResponse,
18
- service: {
19
- typeName: "streamlayer.organizations.studio.webhooks.Webhooks"
20
- }
21
- };
22
-
23
- /**
24
- * @generated from rpc streamlayer.organizations.studio.webhooks.Webhooks.CreateWebhook
25
- */
26
- export const createWebhook = {
27
- localName: "createWebhook",
28
- name: "CreateWebhook",
29
- kind: MethodKind.Unary,
30
- I: CreateWebhookRequest,
31
- O: CreateWebhookResponse,
32
- service: {
33
- typeName: "streamlayer.organizations.studio.webhooks.Webhooks"
34
- }
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
- };
@@ -1,44 +0,0 @@
1
- // @generated by protoc-gen-connect-es v1.4.0 with parameter "target=js+dts"
2
- // @generated from file streamlayer/organizations/studio/webhooks/organizations.studio.webhooks.proto (package streamlayer.organizations.studio.webhooks, syntax proto3)
3
- /* eslint-disable */
4
- // @ts-nocheck
5
-
6
- import { CreateWebhookRequest, CreateWebhookResponse, GetWebhookRequest, GetWebhookResponse, SendWebhookEventRequest, SendWebhookEventResponse } from "./organizations.studio.webhooks_pb.js";
7
- import { MethodKind } from "@bufbuild/protobuf";
8
-
9
- /**
10
- * @generated from service streamlayer.organizations.studio.webhooks.Webhooks
11
- */
12
- export declare const Webhooks: {
13
- readonly typeName: "streamlayer.organizations.studio.webhooks.Webhooks",
14
- readonly methods: {
15
- /**
16
- * @generated from rpc streamlayer.organizations.studio.webhooks.Webhooks.GetWebhook
17
- */
18
- readonly getWebhook: {
19
- readonly name: "GetWebhook",
20
- readonly I: typeof GetWebhookRequest,
21
- readonly O: typeof GetWebhookResponse,
22
- readonly kind: MethodKind.Unary,
23
- },
24
- /**
25
- * @generated from rpc streamlayer.organizations.studio.webhooks.Webhooks.CreateWebhook
26
- */
27
- readonly createWebhook: {
28
- readonly name: "CreateWebhook",
29
- readonly I: typeof CreateWebhookRequest,
30
- readonly O: typeof CreateWebhookResponse,
31
- readonly kind: MethodKind.Unary,
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
- },
42
- }
43
- };
44
-
@@ -1,44 +0,0 @@
1
- // @generated by protoc-gen-connect-es v1.4.0 with parameter "target=js+dts"
2
- // @generated from file streamlayer/organizations/studio/webhooks/organizations.studio.webhooks.proto (package streamlayer.organizations.studio.webhooks, syntax proto3)
3
- /* eslint-disable */
4
- // @ts-nocheck
5
-
6
- import { CreateWebhookRequest, CreateWebhookResponse, GetWebhookRequest, GetWebhookResponse, SendWebhookEventRequest, SendWebhookEventResponse } from "./organizations.studio.webhooks_pb.js";
7
- import { MethodKind } from "@bufbuild/protobuf";
8
-
9
- /**
10
- * @generated from service streamlayer.organizations.studio.webhooks.Webhooks
11
- */
12
- export const Webhooks = {
13
- typeName: "streamlayer.organizations.studio.webhooks.Webhooks",
14
- methods: {
15
- /**
16
- * @generated from rpc streamlayer.organizations.studio.webhooks.Webhooks.GetWebhook
17
- */
18
- getWebhook: {
19
- name: "GetWebhook",
20
- I: GetWebhookRequest,
21
- O: GetWebhookResponse,
22
- kind: MethodKind.Unary,
23
- },
24
- /**
25
- * @generated from rpc streamlayer.organizations.studio.webhooks.Webhooks.CreateWebhook
26
- */
27
- createWebhook: {
28
- name: "CreateWebhook",
29
- I: CreateWebhookRequest,
30
- O: CreateWebhookResponse,
31
- kind: MethodKind.Unary,
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
- },
42
- }
43
- };
44
-
@@ -1,150 +0,0 @@
1
- // @generated by protoc-gen-es v1.10.0 with parameter "target=js+dts"
2
- // @generated from file streamlayer/organizations/studio/webhooks/organizations.studio.webhooks.proto (package streamlayer.organizations.studio.webhooks, syntax proto3)
3
- /* eslint-disable */
4
- // @ts-nocheck
5
-
6
- import { proto3 } from "@bufbuild/protobuf";
7
-
8
- /**
9
- * @generated from enum streamlayer.organizations.studio.webhooks.WebhookStatus
10
- */
11
- export const WebhookStatus = /*@__PURE__*/ proto3.makeEnum(
12
- "streamlayer.organizations.studio.webhooks.WebhookStatus",
13
- [
14
- {no: 0, name: "WEBHOOK_STATUS_UNSET", localName: "UNSET"},
15
- {no: 1, name: "WEBHOOK_STATUS_ACTIVE", localName: "ACTIVE"},
16
- {no: 2, name: "WEBHOOK_STATUS_INACTIVE", localName: "INACTIVE"},
17
- {no: 3, name: "WEBHOOK_STATUS_PENDING", localName: "PENDING"},
18
- {no: 4, name: "WEBHOOK_STATUS_PAUSED", localName: "PAUSED"},
19
- ],
20
- );
21
-
22
- /**
23
- * @generated from enum streamlayer.organizations.studio.webhooks.WebhookEvent
24
- */
25
- export const WebhookEvent = /*@__PURE__*/ proto3.makeEnum(
26
- "streamlayer.organizations.studio.webhooks.WebhookEvent",
27
- [
28
- {no: 0, name: "WEBHOOK_EVENT_UNSET", localName: "UNSET"},
29
- {no: 1, name: "WEBHOOK_EVENT_CLICK_BANNER", localName: "CLICK_BANNER"},
30
- {no: 2, name: "WEBHOOK_EVENT_CLICK_ADDITIONAL_BANNER", localName: "CLICK_ADDITIONAL_BANNER"},
31
- {no: 3, name: "WEBHOOK_EVENT_CLICK_BUTTON", localName: "CLICK_BUTTON"},
32
- {no: 4, name: "WEBHOOK_EVENT_CLICK_SECONDARY_BUTTON", localName: "CLICK_SECONDARY_BUTTON"},
33
- ],
34
- );
35
-
36
- /**
37
- * @generated from message streamlayer.organizations.studio.webhooks.ApiKey
38
- */
39
- export const ApiKey = /*@__PURE__*/ proto3.makeMessageType(
40
- "streamlayer.organizations.studio.webhooks.ApiKey",
41
- () => [
42
- { no: 1, name: "header_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
43
- { no: 2, name: "header_value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
44
- ],
45
- );
46
-
47
- /**
48
- * @generated from message streamlayer.organizations.studio.webhooks.Webhook
49
- */
50
- export const Webhook = /*@__PURE__*/ proto3.makeMessageType(
51
- "streamlayer.organizations.studio.webhooks.Webhook",
52
- () => [
53
- { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
54
- { no: 2, name: "project_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
55
- { no: 3, name: "title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
56
- { no: 4, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
57
- { no: 5, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
58
- { no: 6, name: "target_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
59
- { no: 7, name: "http_timeout", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
60
- { no: 8, name: "rate_limit", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
61
- { no: 9, name: "rate_limit_duration", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
62
- { no: 10, name: "status", kind: "enum", T: proto3.getEnumType(WebhookStatus) },
63
- { no: 11, name: "api_key", kind: "message", T: ApiKey },
64
- ],
65
- );
66
-
67
- /**
68
- * @generated from message streamlayer.organizations.studio.webhooks.WebhookData
69
- */
70
- export const WebhookData = /*@__PURE__*/ proto3.makeMessageType(
71
- "streamlayer.organizations.studio.webhooks.WebhookData",
72
- () => [
73
- { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
74
- { no: 2, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
75
- { no: 3, name: "attributes", kind: "message", T: Webhook },
76
- ],
77
- );
78
-
79
- /**
80
- * @generated from message streamlayer.organizations.studio.webhooks.GetWebhookRequest
81
- */
82
- export const GetWebhookRequest = /*@__PURE__*/ proto3.makeMessageType(
83
- "streamlayer.organizations.studio.webhooks.GetWebhookRequest",
84
- () => [
85
- { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
86
- ],
87
- );
88
-
89
- /**
90
- * @generated from message streamlayer.organizations.studio.webhooks.GetWebhookResponse
91
- */
92
- export const GetWebhookResponse = /*@__PURE__*/ proto3.makeMessageType(
93
- "streamlayer.organizations.studio.webhooks.GetWebhookResponse",
94
- () => [
95
- { no: 1, name: "data", kind: "message", T: WebhookData },
96
- ],
97
- );
98
-
99
- /**
100
- * @generated from message streamlayer.organizations.studio.webhooks.CreateWebhookRequest
101
- */
102
- export const CreateWebhookRequest = /*@__PURE__*/ proto3.makeMessageType(
103
- "streamlayer.organizations.studio.webhooks.CreateWebhookRequest",
104
- () => [
105
- { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
106
- { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
107
- { no: 3, name: "events", kind: "enum", T: proto3.getEnumType(WebhookEvent), repeated: true },
108
- { no: 4, name: "target_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
109
- { no: 5, name: "api_key", kind: "message", T: ApiKey },
110
- { no: 6, name: "duration", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
111
- { no: 7, name: "limit", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
112
- ],
113
- );
114
-
115
- /**
116
- * @generated from message streamlayer.organizations.studio.webhooks.CreateWebhookResponse
117
- */
118
- export const CreateWebhookResponse = /*@__PURE__*/ proto3.makeMessageType(
119
- "streamlayer.organizations.studio.webhooks.CreateWebhookResponse",
120
- () => [
121
- { no: 1, name: "data", kind: "message", T: WebhookData },
122
- ],
123
- );
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
-