@photon-ai/proto 0.0.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/LICENSE +21 -0
- package/README.md +37 -0
- package/gen/photon/slack/v1/common_pb.d.ts +329 -0
- package/gen/photon/slack/v1/common_pb.js +76 -0
- package/gen/photon/slack/v1/file_service_pb.d.ts +283 -0
- package/gen/photon/slack/v1/file_service_pb.js +80 -0
- package/gen/photon/slack/v1/message_service_pb.d.ts +300 -0
- package/gen/photon/slack/v1/message_service_pb.js +93 -0
- package/gen/photon/spectrum/v1/inbound_pb.d.ts +182 -0
- package/gen/photon/spectrum/v1/inbound_pb.js +54 -0
- package/package.json +33 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License Copyright (c) 2025 Photon AI
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted,
|
|
4
|
+
free of charge, to any person obtaining a copy of this software and associated
|
|
5
|
+
documentation files (the "Software"), to deal in the Software without
|
|
6
|
+
restriction, including without limitation the rights to use, copy, modify, merge,
|
|
7
|
+
publish, distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to the
|
|
9
|
+
following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice
|
|
12
|
+
(including the next paragraph) shall be included in all copies or substantial
|
|
13
|
+
portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
|
|
16
|
+
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
17
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
|
|
18
|
+
EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
19
|
+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
20
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# @photon-ai/proto
|
|
2
|
+
|
|
3
|
+
Generated TypeScript bindings for the public Photon gRPC contracts.
|
|
4
|
+
|
|
5
|
+
Wraps two proto packages:
|
|
6
|
+
|
|
7
|
+
- `photon.slack.v1` — Slack runtime contract (`MessageService`, `FileService`, inbound event variants, file metadata).
|
|
8
|
+
- `photon.spectrum.v1` — Cross-channel `RawInboundEvent` envelope.
|
|
9
|
+
|
|
10
|
+
Generated with [`@bufbuild/protoc-gen-es`](https://github.com/bufbuild/protobuf-es) (`target=js+dts`). Ships schemas + service descriptors only — pair with [`@connectrpc/connect-node`](https://www.npmjs.com/package/@connectrpc/connect-node), [`@connectrpc/connect-web`](https://www.npmjs.com/package/@connectrpc/connect-web), or [`@grpc/grpc-js`](https://www.npmjs.com/package/@grpc/grpc-js) for the transport layer.
|
|
11
|
+
|
|
12
|
+
## Install
|
|
13
|
+
|
|
14
|
+
```sh
|
|
15
|
+
npm install @photon-ai/proto
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
import { create } from "@bufbuild/protobuf";
|
|
22
|
+
import { InboundMessageSchema } from "@photon-ai/proto/photon/slack/v1/common_pb";
|
|
23
|
+
|
|
24
|
+
const msg = create(InboundMessageSchema, {
|
|
25
|
+
channel: "C012345",
|
|
26
|
+
user: "U67890",
|
|
27
|
+
text: "hello",
|
|
28
|
+
});
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Source
|
|
32
|
+
|
|
33
|
+
Definitions live in [`photon-hq/spectrum-slack-buf`](https://github.com/photon-hq/spectrum-slack-buf). Releases are cut from `public/v*` git tags.
|
|
34
|
+
|
|
35
|
+
## License
|
|
36
|
+
|
|
37
|
+
MIT — see [LICENSE](./LICENSE).
|
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
// Common message types for the photon.slack.v1 runtime contract.
|
|
2
|
+
//
|
|
3
|
+
// Mirrors photon.whatsapp.v1 in spirit so the spectrum-ts SDK can share its
|
|
4
|
+
// provider-agnostic stream/reconnect/swap machinery (see slack.md "Runtime
|
|
5
|
+
// contract"). When in doubt, prefer Slack semantics over WhatsApp semantics
|
|
6
|
+
// even where it deviates — the SDK adapts.
|
|
7
|
+
|
|
8
|
+
// @generated by protoc-gen-es v2.12.0 with parameter "target=js+dts,import_extension=js"
|
|
9
|
+
// @generated from file photon/slack/v1/common.proto (package photon.slack.v1, syntax proto3)
|
|
10
|
+
/* eslint-disable */
|
|
11
|
+
|
|
12
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
13
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
14
|
+
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Describes the file photon/slack/v1/common.proto.
|
|
18
|
+
*/
|
|
19
|
+
export declare const file_photon_slack_v1_common: GenFile;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Cursor returned with every streamed event and accepted by FetchMissedEvents.
|
|
23
|
+
* Opaque to clients. Internally encodes (installation_id, sequence) base64url.
|
|
24
|
+
*
|
|
25
|
+
* @generated from message photon.slack.v1.StreamCursor
|
|
26
|
+
*/
|
|
27
|
+
export declare type StreamCursor = Message<"photon.slack.v1.StreamCursor"> & {
|
|
28
|
+
/**
|
|
29
|
+
* @generated from field: string opaque = 1;
|
|
30
|
+
*/
|
|
31
|
+
opaque: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Describes the message photon.slack.v1.StreamCursor.
|
|
36
|
+
* Use `create(StreamCursorSchema)` to create a new message.
|
|
37
|
+
*/
|
|
38
|
+
export declare const StreamCursorSchema: GenMessage<StreamCursor>;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Idle keepalive emitted every HEARTBEAT_INTERVAL_MS (default 30 s) on
|
|
42
|
+
* long-lived streams.
|
|
43
|
+
*
|
|
44
|
+
* @generated from message photon.slack.v1.Heartbeat
|
|
45
|
+
*/
|
|
46
|
+
export declare type Heartbeat = Message<"photon.slack.v1.Heartbeat"> & {
|
|
47
|
+
/**
|
|
48
|
+
* @generated from field: google.protobuf.Timestamp at = 1;
|
|
49
|
+
*/
|
|
50
|
+
at?: Timestamp | undefined;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Describes the message photon.slack.v1.Heartbeat.
|
|
55
|
+
* Use `create(HeartbeatSchema)` to create a new message.
|
|
56
|
+
*/
|
|
57
|
+
export declare const HeartbeatSchema: GenMessage<Heartbeat>;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* A message posted to a channel, group, DM, or thread.
|
|
61
|
+
*
|
|
62
|
+
* @generated from message photon.slack.v1.InboundMessage
|
|
63
|
+
*/
|
|
64
|
+
export declare type InboundMessage = Message<"photon.slack.v1.InboundMessage"> & {
|
|
65
|
+
/**
|
|
66
|
+
* @generated from field: string channel = 1;
|
|
67
|
+
*/
|
|
68
|
+
channel: string;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @generated from field: string user = 2;
|
|
72
|
+
*/
|
|
73
|
+
user: string;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @generated from field: string text = 3;
|
|
77
|
+
*/
|
|
78
|
+
text: string;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @generated from field: string ts = 4;
|
|
82
|
+
*/
|
|
83
|
+
ts: string;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* @generated from field: optional string thread_ts = 5;
|
|
87
|
+
*/
|
|
88
|
+
threadTs?: string | undefined;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* @generated from field: optional string subtype = 6;
|
|
92
|
+
*/
|
|
93
|
+
subtype?: string | undefined;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* True when `user` is the installed bot's user id. Server-stamped so SDK
|
|
97
|
+
* consumers can filter self-echo without plumbing bot_user_id themselves.
|
|
98
|
+
*
|
|
99
|
+
* @generated from field: bool is_from_me = 7;
|
|
100
|
+
*/
|
|
101
|
+
isFromMe: boolean;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* @generated from field: repeated photon.slack.v1.File files = 10;
|
|
105
|
+
*/
|
|
106
|
+
files: File[];
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Describes the message photon.slack.v1.InboundMessage.
|
|
111
|
+
* Use `create(InboundMessageSchema)` to create a new message.
|
|
112
|
+
*/
|
|
113
|
+
export declare const InboundMessageSchema: GenMessage<InboundMessage>;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* A reaction (add/remove). `removed=true` for reaction_removed events.
|
|
117
|
+
*
|
|
118
|
+
* @generated from message photon.slack.v1.Reaction
|
|
119
|
+
*/
|
|
120
|
+
export declare type Reaction = Message<"photon.slack.v1.Reaction"> & {
|
|
121
|
+
/**
|
|
122
|
+
* @generated from field: string user = 1;
|
|
123
|
+
*/
|
|
124
|
+
user: string;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* @generated from field: string item_channel = 2;
|
|
128
|
+
*/
|
|
129
|
+
itemChannel: string;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* @generated from field: string item_ts = 3;
|
|
133
|
+
*/
|
|
134
|
+
itemTs: string;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* @generated from field: string name = 4;
|
|
138
|
+
*/
|
|
139
|
+
name: string;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* @generated from field: bool removed = 5;
|
|
143
|
+
*/
|
|
144
|
+
removed: boolean;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* True when the reactor is the installed bot's user id.
|
|
148
|
+
*
|
|
149
|
+
* @generated from field: bool is_from_me = 6;
|
|
150
|
+
*/
|
|
151
|
+
isFromMe: boolean;
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Describes the message photon.slack.v1.Reaction.
|
|
156
|
+
* Use `create(ReactionSchema)` to create a new message.
|
|
157
|
+
*/
|
|
158
|
+
export declare const ReactionSchema: GenMessage<Reaction>;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* User clicked a Block Kit element / submitted a view / etc.
|
|
162
|
+
*
|
|
163
|
+
* @generated from message photon.slack.v1.InteractiveCallback
|
|
164
|
+
*/
|
|
165
|
+
export declare type InteractiveCallback = Message<"photon.slack.v1.InteractiveCallback"> & {
|
|
166
|
+
/**
|
|
167
|
+
* block_actions | view_submission | shortcut | message_action ...
|
|
168
|
+
*
|
|
169
|
+
* @generated from field: string type = 1;
|
|
170
|
+
*/
|
|
171
|
+
type: string;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* @generated from field: string user = 2;
|
|
175
|
+
*/
|
|
176
|
+
user: string;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* True when the actor is the installed bot's user id. Almost always false
|
|
180
|
+
* in practice — Slack doesn't deliver bot-originated interactives — but
|
|
181
|
+
* present for symmetry with other event payloads.
|
|
182
|
+
*
|
|
183
|
+
* @generated from field: bool is_from_me = 3;
|
|
184
|
+
*/
|
|
185
|
+
isFromMe: boolean;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* JSON payload as Slack delivered it. Clients decode at their leisure.
|
|
189
|
+
*
|
|
190
|
+
* @generated from field: string raw_payload_json = 10;
|
|
191
|
+
*/
|
|
192
|
+
rawPayloadJson: string;
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Describes the message photon.slack.v1.InteractiveCallback.
|
|
197
|
+
* Use `create(InteractiveCallbackSchema)` to create a new message.
|
|
198
|
+
*/
|
|
199
|
+
export declare const InteractiveCallbackSchema: GenMessage<InteractiveCallback>;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Slash command.
|
|
203
|
+
*
|
|
204
|
+
* @generated from message photon.slack.v1.SlashCommand
|
|
205
|
+
*/
|
|
206
|
+
export declare type SlashCommand = Message<"photon.slack.v1.SlashCommand"> & {
|
|
207
|
+
/**
|
|
208
|
+
* @generated from field: string command = 1;
|
|
209
|
+
*/
|
|
210
|
+
command: string;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* @generated from field: string text = 2;
|
|
214
|
+
*/
|
|
215
|
+
text: string;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* @generated from field: string user = 3;
|
|
219
|
+
*/
|
|
220
|
+
user: string;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* @generated from field: string channel = 4;
|
|
224
|
+
*/
|
|
225
|
+
channel: string;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* @generated from field: string response_url = 5;
|
|
229
|
+
*/
|
|
230
|
+
responseUrl: string;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* @generated from field: string trigger_id = 6;
|
|
234
|
+
*/
|
|
235
|
+
triggerId: string;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* True when the invoker is the installed bot's user id. Almost always
|
|
239
|
+
* false — slash commands are user-driven — present for symmetry.
|
|
240
|
+
*
|
|
241
|
+
* @generated from field: bool is_from_me = 7;
|
|
242
|
+
*/
|
|
243
|
+
isFromMe: boolean;
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Describes the message photon.slack.v1.SlashCommand.
|
|
248
|
+
* Use `create(SlashCommandSchema)` to create a new message.
|
|
249
|
+
*/
|
|
250
|
+
export declare const SlashCommandSchema: GenMessage<SlashCommand>;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* @-mention of the app.
|
|
254
|
+
*
|
|
255
|
+
* @generated from message photon.slack.v1.AppMention
|
|
256
|
+
*/
|
|
257
|
+
export declare type AppMention = Message<"photon.slack.v1.AppMention"> & {
|
|
258
|
+
/**
|
|
259
|
+
* @generated from field: string channel = 1;
|
|
260
|
+
*/
|
|
261
|
+
channel: string;
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* @generated from field: string user = 2;
|
|
265
|
+
*/
|
|
266
|
+
user: string;
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* @generated from field: string text = 3;
|
|
270
|
+
*/
|
|
271
|
+
text: string;
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* @generated from field: string ts = 4;
|
|
275
|
+
*/
|
|
276
|
+
ts: string;
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* True when `user` is the installed bot's user id.
|
|
280
|
+
*
|
|
281
|
+
* @generated from field: bool is_from_me = 5;
|
|
282
|
+
*/
|
|
283
|
+
isFromMe: boolean;
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Describes the message photon.slack.v1.AppMention.
|
|
288
|
+
* Use `create(AppMentionSchema)` to create a new message.
|
|
289
|
+
*/
|
|
290
|
+
export declare const AppMentionSchema: GenMessage<AppMention>;
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* File metadata referenced from InboundMessage or returned by FileService.
|
|
294
|
+
*
|
|
295
|
+
* @generated from message photon.slack.v1.File
|
|
296
|
+
*/
|
|
297
|
+
export declare type File = Message<"photon.slack.v1.File"> & {
|
|
298
|
+
/**
|
|
299
|
+
* @generated from field: string id = 1;
|
|
300
|
+
*/
|
|
301
|
+
id: string;
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* @generated from field: string name = 2;
|
|
305
|
+
*/
|
|
306
|
+
name: string;
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* @generated from field: string mimetype = 3;
|
|
310
|
+
*/
|
|
311
|
+
mimetype: string;
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* @generated from field: int64 size = 4;
|
|
315
|
+
*/
|
|
316
|
+
size: bigint;
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* @generated from field: string url_private = 5;
|
|
320
|
+
*/
|
|
321
|
+
urlPrivate: string;
|
|
322
|
+
};
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* Describes the message photon.slack.v1.File.
|
|
326
|
+
* Use `create(FileSchema)` to create a new message.
|
|
327
|
+
*/
|
|
328
|
+
export declare const FileSchema: GenMessage<File>;
|
|
329
|
+
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
// Common message types for the photon.slack.v1 runtime contract.
|
|
2
|
+
//
|
|
3
|
+
// Mirrors photon.whatsapp.v1 in spirit so the spectrum-ts SDK can share its
|
|
4
|
+
// provider-agnostic stream/reconnect/swap machinery (see slack.md "Runtime
|
|
5
|
+
// contract"). When in doubt, prefer Slack semantics over WhatsApp semantics
|
|
6
|
+
// even where it deviates — the SDK adapts.
|
|
7
|
+
|
|
8
|
+
// @generated by protoc-gen-es v2.12.0 with parameter "target=js+dts,import_extension=js"
|
|
9
|
+
// @generated from file photon/slack/v1/common.proto (package photon.slack.v1, syntax proto3)
|
|
10
|
+
/* eslint-disable */
|
|
11
|
+
|
|
12
|
+
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
13
|
+
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Describes the file photon/slack/v1/common.proto.
|
|
17
|
+
*/
|
|
18
|
+
export const file_photon_slack_v1_common = /*@__PURE__*/
|
|
19
|
+
fileDesc("ChxwaG90b24vc2xhY2svdjEvY29tbW9uLnByb3RvEg9waG90b24uc2xhY2sudjEiHgoMU3RyZWFtQ3Vyc29yEg4KBm9wYXF1ZRgBIAEoCSIzCglIZWFydGJlYXQSJgoCYXQYASABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wIssBCg5JbmJvdW5kTWVzc2FnZRIPCgdjaGFubmVsGAEgASgJEgwKBHVzZXIYAiABKAkSDAoEdGV4dBgDIAEoCRIKCgJ0cxgEIAEoCRIWCgl0aHJlYWRfdHMYBSABKAlIAIgBARIUCgdzdWJ0eXBlGAYgASgJSAGIAQESEgoKaXNfZnJvbV9tZRgHIAEoCBIkCgVmaWxlcxgKIAMoCzIVLnBob3Rvbi5zbGFjay52MS5GaWxlQgwKCl90aHJlYWRfdHNCCgoIX3N1YnR5cGUicgoIUmVhY3Rpb24SDAoEdXNlchgBIAEoCRIUCgxpdGVtX2NoYW5uZWwYAiABKAkSDwoHaXRlbV90cxgDIAEoCRIMCgRuYW1lGAQgASgJEg8KB3JlbW92ZWQYBSABKAgSEgoKaXNfZnJvbV9tZRgGIAEoCCJfChNJbnRlcmFjdGl2ZUNhbGxiYWNrEgwKBHR5cGUYASABKAkSDAoEdXNlchgCIAEoCRISCgppc19mcm9tX21lGAMgASgIEhgKEHJhd19wYXlsb2FkX2pzb24YCiABKAkiigEKDFNsYXNoQ29tbWFuZBIPCgdjb21tYW5kGAEgASgJEgwKBHRleHQYAiABKAkSDAoEdXNlchgDIAEoCRIPCgdjaGFubmVsGAQgASgJEhQKDHJlc3BvbnNlX3VybBgFIAEoCRISCgp0cmlnZ2VyX2lkGAYgASgJEhIKCmlzX2Zyb21fbWUYByABKAgiWQoKQXBwTWVudGlvbhIPCgdjaGFubmVsGAEgASgJEgwKBHVzZXIYAiABKAkSDAoEdGV4dBgDIAEoCRIKCgJ0cxgEIAEoCRISCgppc19mcm9tX21lGAUgASgIIlUKBEZpbGUSCgoCaWQYASABKAkSDAoEbmFtZRgCIAEoCRIQCghtaW1ldHlwZRgDIAEoCRIMCgRzaXplGAQgASgDEhMKC3VybF9wcml2YXRlGAUgASgJYgZwcm90bzM", [file_google_protobuf_timestamp]);
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Describes the message photon.slack.v1.StreamCursor.
|
|
23
|
+
* Use `create(StreamCursorSchema)` to create a new message.
|
|
24
|
+
*/
|
|
25
|
+
export const StreamCursorSchema = /*@__PURE__*/
|
|
26
|
+
messageDesc(file_photon_slack_v1_common, 0);
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Describes the message photon.slack.v1.Heartbeat.
|
|
30
|
+
* Use `create(HeartbeatSchema)` to create a new message.
|
|
31
|
+
*/
|
|
32
|
+
export const HeartbeatSchema = /*@__PURE__*/
|
|
33
|
+
messageDesc(file_photon_slack_v1_common, 1);
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Describes the message photon.slack.v1.InboundMessage.
|
|
37
|
+
* Use `create(InboundMessageSchema)` to create a new message.
|
|
38
|
+
*/
|
|
39
|
+
export const InboundMessageSchema = /*@__PURE__*/
|
|
40
|
+
messageDesc(file_photon_slack_v1_common, 2);
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Describes the message photon.slack.v1.Reaction.
|
|
44
|
+
* Use `create(ReactionSchema)` to create a new message.
|
|
45
|
+
*/
|
|
46
|
+
export const ReactionSchema = /*@__PURE__*/
|
|
47
|
+
messageDesc(file_photon_slack_v1_common, 3);
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Describes the message photon.slack.v1.InteractiveCallback.
|
|
51
|
+
* Use `create(InteractiveCallbackSchema)` to create a new message.
|
|
52
|
+
*/
|
|
53
|
+
export const InteractiveCallbackSchema = /*@__PURE__*/
|
|
54
|
+
messageDesc(file_photon_slack_v1_common, 4);
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Describes the message photon.slack.v1.SlashCommand.
|
|
58
|
+
* Use `create(SlashCommandSchema)` to create a new message.
|
|
59
|
+
*/
|
|
60
|
+
export const SlashCommandSchema = /*@__PURE__*/
|
|
61
|
+
messageDesc(file_photon_slack_v1_common, 5);
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Describes the message photon.slack.v1.AppMention.
|
|
65
|
+
* Use `create(AppMentionSchema)` to create a new message.
|
|
66
|
+
*/
|
|
67
|
+
export const AppMentionSchema = /*@__PURE__*/
|
|
68
|
+
messageDesc(file_photon_slack_v1_common, 6);
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Describes the message photon.slack.v1.File.
|
|
72
|
+
* Use `create(FileSchema)` to create a new message.
|
|
73
|
+
*/
|
|
74
|
+
export const FileSchema = /*@__PURE__*/
|
|
75
|
+
messageDesc(file_photon_slack_v1_common, 7);
|
|
76
|
+
|