@streamlayer/sl-eslib 5.133.1 → 5.134.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 +32 -0
- package/streamlayer/organizations/studio/webhooks/organizations.studio.webhooks-Webhooks_connectquery.js +35 -0
- package/streamlayer/organizations/studio/webhooks/organizations.studio.webhooks_connect.d.ts +35 -0
- package/streamlayer/organizations/studio/webhooks/organizations.studio.webhooks_connect.js +35 -0
- package/streamlayer/organizations/studio/webhooks/organizations.studio.webhooks_pb.d.ts +371 -0
- package/streamlayer/organizations/studio/webhooks/organizations.studio.webhooks_pb.js +124 -0
package/package.json
CHANGED
|
@@ -0,0 +1,32 @@
|
|
|
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 } from "./organizations.studio.webhooks_pb.js";
|
|
7
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @generated from rpc streamlayer.organizations.studio.webhooks.Webhooks.Get
|
|
11
|
+
*/
|
|
12
|
+
export const get: {
|
|
13
|
+
readonly name: "Get",
|
|
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.Create
|
|
23
|
+
*/
|
|
24
|
+
export const create: {
|
|
25
|
+
readonly name: "Create",
|
|
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
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
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 } from "./organizations.studio.webhooks_pb.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @generated from rpc streamlayer.organizations.studio.webhooks.Webhooks.Get
|
|
11
|
+
*/
|
|
12
|
+
export const get = {
|
|
13
|
+
localName: "get",
|
|
14
|
+
name: "Get",
|
|
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.Create
|
|
25
|
+
*/
|
|
26
|
+
export const create = {
|
|
27
|
+
localName: "create",
|
|
28
|
+
name: "Create",
|
|
29
|
+
kind: MethodKind.Unary,
|
|
30
|
+
I: CreateWebhookRequest,
|
|
31
|
+
O: CreateWebhookResponse,
|
|
32
|
+
service: {
|
|
33
|
+
typeName: "streamlayer.organizations.studio.webhooks.Webhooks"
|
|
34
|
+
}
|
|
35
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
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 } 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.Get
|
|
17
|
+
*/
|
|
18
|
+
readonly get: {
|
|
19
|
+
readonly name: "Get",
|
|
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.Create
|
|
26
|
+
*/
|
|
27
|
+
readonly create: {
|
|
28
|
+
readonly name: "Create",
|
|
29
|
+
readonly I: typeof CreateWebhookRequest,
|
|
30
|
+
readonly O: typeof CreateWebhookResponse,
|
|
31
|
+
readonly kind: MethodKind.Unary,
|
|
32
|
+
},
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
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 } 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.Get
|
|
17
|
+
*/
|
|
18
|
+
get: {
|
|
19
|
+
name: "Get",
|
|
20
|
+
I: GetWebhookRequest,
|
|
21
|
+
O: GetWebhookResponse,
|
|
22
|
+
kind: MethodKind.Unary,
|
|
23
|
+
},
|
|
24
|
+
/**
|
|
25
|
+
* @generated from rpc streamlayer.organizations.studio.webhooks.Webhooks.Create
|
|
26
|
+
*/
|
|
27
|
+
create: {
|
|
28
|
+
name: "Create",
|
|
29
|
+
I: CreateWebhookRequest,
|
|
30
|
+
O: CreateWebhookResponse,
|
|
31
|
+
kind: MethodKind.Unary,
|
|
32
|
+
},
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
|
|
@@ -0,0 +1,371 @@
|
|
|
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 type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
7
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @generated from enum streamlayer.organizations.studio.webhooks.WebhookStatus
|
|
11
|
+
*/
|
|
12
|
+
export declare enum WebhookStatus {
|
|
13
|
+
/**
|
|
14
|
+
* @generated from enum value: WEBHOOK_STATUS_UNSET = 0;
|
|
15
|
+
*/
|
|
16
|
+
UNSET = 0,
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* active
|
|
20
|
+
*
|
|
21
|
+
* @generated from enum value: WEBHOOK_STATUS_ACTIVE = 1;
|
|
22
|
+
*/
|
|
23
|
+
ACTIVE = 1,
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* inactive
|
|
27
|
+
*
|
|
28
|
+
* @generated from enum value: WEBHOOK_STATUS_INACTIVE = 2;
|
|
29
|
+
*/
|
|
30
|
+
INACTIVE = 2,
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* pending
|
|
34
|
+
*
|
|
35
|
+
* @generated from enum value: WEBHOOK_STATUS_PENDING = 3;
|
|
36
|
+
*/
|
|
37
|
+
PENDING = 3,
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* paused
|
|
41
|
+
*
|
|
42
|
+
* @generated from enum value: WEBHOOK_STATUS_PAUSED = 4;
|
|
43
|
+
*/
|
|
44
|
+
PAUSED = 4,
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @generated from enum streamlayer.organizations.studio.webhooks.WebhookEvent
|
|
49
|
+
*/
|
|
50
|
+
export declare enum WebhookEvent {
|
|
51
|
+
/**
|
|
52
|
+
* @generated from enum value: WEBHOOK_EVENT_UNSET = 0;
|
|
53
|
+
*/
|
|
54
|
+
UNSET = 0,
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @generated from enum value: WEBHOOK_EVENT_CLICK_BANNER = 1;
|
|
58
|
+
*/
|
|
59
|
+
CLICK_BANNER = 1,
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @generated from enum value: WEBHOOK_EVENT_CLICK_ADDITIONAL_BANNER = 2;
|
|
63
|
+
*/
|
|
64
|
+
CLICK_ADDITIONAL_BANNER = 2,
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @generated from enum value: WEBHOOK_EVENT_CLICK_BUTTON = 3;
|
|
68
|
+
*/
|
|
69
|
+
CLICK_BUTTON = 3,
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* @generated from enum value: WEBHOOK_EVENT_CLICK_SECONDARY_BUTTON = 4;
|
|
73
|
+
*/
|
|
74
|
+
CLICK_SECONDARY_BUTTON = 4,
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* @generated from message streamlayer.organizations.studio.webhooks.ApiKey
|
|
79
|
+
*/
|
|
80
|
+
export declare class ApiKey extends Message<ApiKey> {
|
|
81
|
+
/**
|
|
82
|
+
* API key header
|
|
83
|
+
*
|
|
84
|
+
* @generated from field: string header_name = 1;
|
|
85
|
+
*/
|
|
86
|
+
headerName: string;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* API key
|
|
90
|
+
*
|
|
91
|
+
* @generated from field: string header_value = 2;
|
|
92
|
+
*/
|
|
93
|
+
headerValue: string;
|
|
94
|
+
|
|
95
|
+
constructor(data?: PartialMessage<ApiKey>);
|
|
96
|
+
|
|
97
|
+
static readonly runtime: typeof proto3;
|
|
98
|
+
static readonly typeName = "streamlayer.organizations.studio.webhooks.ApiKey";
|
|
99
|
+
static readonly fields: FieldList;
|
|
100
|
+
|
|
101
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ApiKey;
|
|
102
|
+
|
|
103
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ApiKey;
|
|
104
|
+
|
|
105
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ApiKey;
|
|
106
|
+
|
|
107
|
+
static equals(a: ApiKey | PlainMessage<ApiKey> | undefined, b: ApiKey | PlainMessage<ApiKey> | undefined): boolean;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* @generated from message streamlayer.organizations.studio.webhooks.Webhook
|
|
112
|
+
*/
|
|
113
|
+
export declare class Webhook extends Message<Webhook> {
|
|
114
|
+
/**
|
|
115
|
+
* ID of the created webhook
|
|
116
|
+
*
|
|
117
|
+
* @generated from field: string id = 1;
|
|
118
|
+
*/
|
|
119
|
+
id: string;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Convoy project_id
|
|
123
|
+
*
|
|
124
|
+
* @generated from field: string project_id = 2;
|
|
125
|
+
*/
|
|
126
|
+
projectId: string;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Webhook name
|
|
130
|
+
*
|
|
131
|
+
* @generated from field: string title = 3;
|
|
132
|
+
*/
|
|
133
|
+
title: string;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Webhook description
|
|
137
|
+
*
|
|
138
|
+
* @generated from field: string description = 4;
|
|
139
|
+
*/
|
|
140
|
+
description: string;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* owner_id
|
|
144
|
+
*
|
|
145
|
+
* @generated from field: string organization_id = 5;
|
|
146
|
+
*/
|
|
147
|
+
organizationId: string;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* webhook target EP
|
|
151
|
+
*
|
|
152
|
+
* @generated from field: string target_url = 6;
|
|
153
|
+
*/
|
|
154
|
+
targetUrl: string;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* @generated from field: uint32 http_timeout = 7;
|
|
158
|
+
*/
|
|
159
|
+
httpTimeout: number;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* @generated from field: uint32 rate_limit = 8;
|
|
163
|
+
*/
|
|
164
|
+
rateLimit: number;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* @generated from field: uint32 rate_limit_duration = 9;
|
|
168
|
+
*/
|
|
169
|
+
rateLimitDuration: number;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* @generated from field: streamlayer.organizations.studio.webhooks.WebhookStatus status = 10;
|
|
173
|
+
*/
|
|
174
|
+
status: WebhookStatus;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Target URL authentication
|
|
178
|
+
*
|
|
179
|
+
* @generated from field: streamlayer.organizations.studio.webhooks.ApiKey api_key = 11;
|
|
180
|
+
*/
|
|
181
|
+
apiKey?: ApiKey;
|
|
182
|
+
|
|
183
|
+
constructor(data?: PartialMessage<Webhook>);
|
|
184
|
+
|
|
185
|
+
static readonly runtime: typeof proto3;
|
|
186
|
+
static readonly typeName = "streamlayer.organizations.studio.webhooks.Webhook";
|
|
187
|
+
static readonly fields: FieldList;
|
|
188
|
+
|
|
189
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Webhook;
|
|
190
|
+
|
|
191
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Webhook;
|
|
192
|
+
|
|
193
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Webhook;
|
|
194
|
+
|
|
195
|
+
static equals(a: Webhook | PlainMessage<Webhook> | undefined, b: Webhook | PlainMessage<Webhook> | undefined): boolean;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* @generated from message streamlayer.organizations.studio.webhooks.WebhookData
|
|
200
|
+
*/
|
|
201
|
+
export declare class WebhookData extends Message<WebhookData> {
|
|
202
|
+
/**
|
|
203
|
+
* @generated from field: string id = 1;
|
|
204
|
+
*/
|
|
205
|
+
id: string;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* @generated from field: string type = 2;
|
|
209
|
+
*/
|
|
210
|
+
type: string;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* @generated from field: streamlayer.organizations.studio.webhooks.Webhook attributes = 3;
|
|
214
|
+
*/
|
|
215
|
+
attributes?: Webhook;
|
|
216
|
+
|
|
217
|
+
constructor(data?: PartialMessage<WebhookData>);
|
|
218
|
+
|
|
219
|
+
static readonly runtime: typeof proto3;
|
|
220
|
+
static readonly typeName = "streamlayer.organizations.studio.webhooks.WebhookData";
|
|
221
|
+
static readonly fields: FieldList;
|
|
222
|
+
|
|
223
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WebhookData;
|
|
224
|
+
|
|
225
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WebhookData;
|
|
226
|
+
|
|
227
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WebhookData;
|
|
228
|
+
|
|
229
|
+
static equals(a: WebhookData | PlainMessage<WebhookData> | undefined, b: WebhookData | PlainMessage<WebhookData> | undefined): boolean;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* @generated from message streamlayer.organizations.studio.webhooks.GetWebhookRequest
|
|
234
|
+
*/
|
|
235
|
+
export declare class GetWebhookRequest extends Message<GetWebhookRequest> {
|
|
236
|
+
/**
|
|
237
|
+
* @generated from field: string organization_id = 1;
|
|
238
|
+
*/
|
|
239
|
+
organizationId: string;
|
|
240
|
+
|
|
241
|
+
constructor(data?: PartialMessage<GetWebhookRequest>);
|
|
242
|
+
|
|
243
|
+
static readonly runtime: typeof proto3;
|
|
244
|
+
static readonly typeName = "streamlayer.organizations.studio.webhooks.GetWebhookRequest";
|
|
245
|
+
static readonly fields: FieldList;
|
|
246
|
+
|
|
247
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetWebhookRequest;
|
|
248
|
+
|
|
249
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetWebhookRequest;
|
|
250
|
+
|
|
251
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetWebhookRequest;
|
|
252
|
+
|
|
253
|
+
static equals(a: GetWebhookRequest | PlainMessage<GetWebhookRequest> | undefined, b: GetWebhookRequest | PlainMessage<GetWebhookRequest> | undefined): boolean;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* @generated from message streamlayer.organizations.studio.webhooks.GetWebhookResponse
|
|
258
|
+
*/
|
|
259
|
+
export declare class GetWebhookResponse extends Message<GetWebhookResponse> {
|
|
260
|
+
/**
|
|
261
|
+
* @generated from field: streamlayer.organizations.studio.webhooks.WebhookData data = 1;
|
|
262
|
+
*/
|
|
263
|
+
data?: WebhookData;
|
|
264
|
+
|
|
265
|
+
constructor(data?: PartialMessage<GetWebhookResponse>);
|
|
266
|
+
|
|
267
|
+
static readonly runtime: typeof proto3;
|
|
268
|
+
static readonly typeName = "streamlayer.organizations.studio.webhooks.GetWebhookResponse";
|
|
269
|
+
static readonly fields: FieldList;
|
|
270
|
+
|
|
271
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetWebhookResponse;
|
|
272
|
+
|
|
273
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetWebhookResponse;
|
|
274
|
+
|
|
275
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetWebhookResponse;
|
|
276
|
+
|
|
277
|
+
static equals(a: GetWebhookResponse | PlainMessage<GetWebhookResponse> | undefined, b: GetWebhookResponse | PlainMessage<GetWebhookResponse> | undefined): boolean;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* @generated from message streamlayer.organizations.studio.webhooks.CreateWebhookRequest
|
|
282
|
+
*/
|
|
283
|
+
export declare class CreateWebhookRequest extends Message<CreateWebhookRequest> {
|
|
284
|
+
/**
|
|
285
|
+
* Webhook name
|
|
286
|
+
*
|
|
287
|
+
* @generated from field: string name = 1;
|
|
288
|
+
*/
|
|
289
|
+
name: string;
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Webhook description
|
|
293
|
+
*
|
|
294
|
+
* @generated from field: string description = 2;
|
|
295
|
+
*/
|
|
296
|
+
description: string;
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* events to trigger the webhook
|
|
300
|
+
*
|
|
301
|
+
* @generated from field: repeated streamlayer.organizations.studio.webhooks.WebhookEvent events = 3;
|
|
302
|
+
*/
|
|
303
|
+
events: WebhookEvent[];
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Target EP for webhook delivery
|
|
307
|
+
*
|
|
308
|
+
* @generated from field: string target_url = 4;
|
|
309
|
+
*/
|
|
310
|
+
targetUrl: string;
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Target EP authentication
|
|
314
|
+
*
|
|
315
|
+
* @generated from field: streamlayer.organizations.studio.webhooks.ApiKey api_key = 5;
|
|
316
|
+
*/
|
|
317
|
+
apiKey?: ApiKey;
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Duration in seconds for which the webhook is valid
|
|
321
|
+
*
|
|
322
|
+
* @generated from field: uint32 duration = 6;
|
|
323
|
+
*/
|
|
324
|
+
duration: number;
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Rate limit for webhook requests
|
|
328
|
+
*
|
|
329
|
+
* @generated from field: uint32 limit = 7;
|
|
330
|
+
*/
|
|
331
|
+
limit: number;
|
|
332
|
+
|
|
333
|
+
constructor(data?: PartialMessage<CreateWebhookRequest>);
|
|
334
|
+
|
|
335
|
+
static readonly runtime: typeof proto3;
|
|
336
|
+
static readonly typeName = "streamlayer.organizations.studio.webhooks.CreateWebhookRequest";
|
|
337
|
+
static readonly fields: FieldList;
|
|
338
|
+
|
|
339
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateWebhookRequest;
|
|
340
|
+
|
|
341
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateWebhookRequest;
|
|
342
|
+
|
|
343
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateWebhookRequest;
|
|
344
|
+
|
|
345
|
+
static equals(a: CreateWebhookRequest | PlainMessage<CreateWebhookRequest> | undefined, b: CreateWebhookRequest | PlainMessage<CreateWebhookRequest> | undefined): boolean;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* @generated from message streamlayer.organizations.studio.webhooks.CreateWebhookResponse
|
|
350
|
+
*/
|
|
351
|
+
export declare class CreateWebhookResponse extends Message<CreateWebhookResponse> {
|
|
352
|
+
/**
|
|
353
|
+
* @generated from field: streamlayer.organizations.studio.webhooks.WebhookData data = 1;
|
|
354
|
+
*/
|
|
355
|
+
data?: WebhookData;
|
|
356
|
+
|
|
357
|
+
constructor(data?: PartialMessage<CreateWebhookResponse>);
|
|
358
|
+
|
|
359
|
+
static readonly runtime: typeof proto3;
|
|
360
|
+
static readonly typeName = "streamlayer.organizations.studio.webhooks.CreateWebhookResponse";
|
|
361
|
+
static readonly fields: FieldList;
|
|
362
|
+
|
|
363
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateWebhookResponse;
|
|
364
|
+
|
|
365
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateWebhookResponse;
|
|
366
|
+
|
|
367
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateWebhookResponse;
|
|
368
|
+
|
|
369
|
+
static equals(a: CreateWebhookResponse | PlainMessage<CreateWebhookResponse> | undefined, b: CreateWebhookResponse | PlainMessage<CreateWebhookResponse> | undefined): boolean;
|
|
370
|
+
}
|
|
371
|
+
|
|
@@ -0,0 +1,124 @@
|
|
|
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
|
+
|