@open-wa/wa-automate 4.76.0 → 5.0.0-alpha.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.
Files changed (125) hide show
  1. package/README.md +14 -165
  2. package/dist/cli-runtime-B7_3MM0c.cjs +798 -0
  3. package/dist/cli-runtime-B7_3MM0c.cjs.map +1 -0
  4. package/dist/cli-runtime-CmpYxFCk.d.cts +31 -0
  5. package/dist/cli-runtime-CmpYxFCk.d.cts.map +1 -0
  6. package/dist/cli.cjs +17 -0
  7. package/dist/cli.cjs.map +1 -0
  8. package/dist/cli.d.cts +2 -0
  9. package/dist/index.cjs +224 -0
  10. package/dist/index.cjs.map +1 -0
  11. package/dist/index.d.cts +81 -0
  12. package/dist/index.d.cts.map +1 -0
  13. package/package.json +34 -177
  14. package/CNAME +0 -1
  15. package/_tsconfig.docs.json +0 -140
  16. package/bin/config-schema.json +0 -1
  17. package/bin/oas-type-schemas.json +0 -1
  18. package/bin/server.js +0 -45
  19. package/build/build-config-json-for-bin.ts +0 -56
  20. package/build/generate-oas-types.ts +0 -31
  21. package/dist/api/Client.d.ts +0 -2255
  22. package/dist/api/Client.js +0 -4358
  23. package/dist/api/functions/exposed.enum.d.ts +0 -7
  24. package/dist/api/functions/exposed.enum.js +0 -11
  25. package/dist/api/model/aliases.d.ts +0 -110
  26. package/dist/api/model/aliases.js +0 -3
  27. package/dist/api/model/button.d.ts +0 -24
  28. package/dist/api/model/button.js +0 -2
  29. package/dist/api/model/call.d.ts +0 -51
  30. package/dist/api/model/call.js +0 -18
  31. package/dist/api/model/chat.d.ts +0 -221
  32. package/dist/api/model/chat.js +0 -52
  33. package/dist/api/model/config.d.ts +0 -836
  34. package/dist/api/model/config.js +0 -111
  35. package/dist/api/model/contact.d.ts +0 -143
  36. package/dist/api/model/contact.js +0 -2
  37. package/dist/api/model/errors.d.ts +0 -90
  38. package/dist/api/model/errors.js +0 -117
  39. package/dist/api/model/events.d.ts +0 -120
  40. package/dist/api/model/events.js +0 -127
  41. package/dist/api/model/group-metadata.d.ts +0 -124
  42. package/dist/api/model/group-metadata.js +0 -25
  43. package/dist/api/model/id.d.ts +0 -5
  44. package/dist/api/model/id.js +0 -2
  45. package/dist/api/model/index.d.ts +0 -110
  46. package/dist/api/model/index.js +0 -128
  47. package/dist/api/model/label.d.ts +0 -24
  48. package/dist/api/model/label.js +0 -2
  49. package/dist/api/model/media.d.ts +0 -93
  50. package/dist/api/model/media.js +0 -12
  51. package/dist/api/model/message.d.ts +0 -422
  52. package/dist/api/model/message.js +0 -40
  53. package/dist/api/model/product.d.ts +0 -141
  54. package/dist/api/model/product.js +0 -2
  55. package/dist/api/model/reactions.d.ts +0 -76
  56. package/dist/api/model/reactions.js +0 -2
  57. package/dist/api/model/sessionInfo.d.ts +0 -77
  58. package/dist/api/model/sessionInfo.js +0 -2
  59. package/dist/build/build-postman.d.ts +0 -1
  60. package/dist/build/build-postman.js +0 -262
  61. package/dist/cli/cli-options.d.ts +0 -9
  62. package/dist/cli/cli-options.js +0 -289
  63. package/dist/cli/collections.d.ts +0 -2
  64. package/dist/cli/collections.js +0 -251
  65. package/dist/cli/file-utils.d.ts +0 -1
  66. package/dist/cli/file-utils.js +0 -71
  67. package/dist/cli/index.d.ts +0 -1
  68. package/dist/cli/index.js +0 -231
  69. package/dist/cli/integrations/chatwoot.d.ts +0 -49
  70. package/dist/cli/integrations/chatwoot.js +0 -672
  71. package/dist/cli/integrations/cloudflare.d.ts +0 -6
  72. package/dist/cli/integrations/cloudflare.js +0 -76
  73. package/dist/cli/logo.d.ts +0 -1
  74. package/dist/cli/logo.js +0 -49
  75. package/dist/cli/server.d.ts +0 -24
  76. package/dist/cli/server.js +0 -540
  77. package/dist/cli/setup.d.ts +0 -30
  78. package/dist/cli/setup.js +0 -308
  79. package/dist/config/puppeteer.config.d.ts +0 -11
  80. package/dist/config/puppeteer.config.js +0 -65
  81. package/dist/controllers/auth.d.ts +0 -36
  82. package/dist/controllers/auth.js +0 -322
  83. package/dist/controllers/browser.d.ts +0 -17
  84. package/dist/controllers/browser.js +0 -603
  85. package/dist/controllers/events.d.ts +0 -82
  86. package/dist/controllers/events.js +0 -173
  87. package/dist/controllers/init_patch.d.ts +0 -13
  88. package/dist/controllers/init_patch.js +0 -42
  89. package/dist/controllers/initializer.d.ts +0 -22
  90. package/dist/controllers/initializer.js +0 -511
  91. package/dist/controllers/launch_checks.d.ts +0 -8
  92. package/dist/controllers/launch_checks.js +0 -130
  93. package/dist/controllers/patch_manager.d.ts +0 -37
  94. package/dist/controllers/patch_manager.js +0 -231
  95. package/dist/controllers/popup/index.d.ts +0 -3
  96. package/dist/controllers/popup/index.html +0 -168
  97. package/dist/controllers/popup/index.js +0 -148
  98. package/dist/controllers/script_preloader.d.ts +0 -17
  99. package/dist/controllers/script_preloader.js +0 -88
  100. package/dist/index.d.ts +0 -13
  101. package/dist/index.js +0 -36
  102. package/dist/lib/README.md +0 -5
  103. package/dist/lib/base64.js +0 -1
  104. package/dist/lib/hash.js +0 -1
  105. package/dist/lib/jsSha.min.js +0 -1
  106. package/dist/lib/launch.js +0 -1
  107. package/dist/lib/qr.min.js +0 -1
  108. package/dist/lib/wapi.js +0 -2163
  109. package/dist/logging/custom_transport.d.ts +0 -9
  110. package/dist/logging/custom_transport.js +0 -35
  111. package/dist/logging/logging.d.ts +0 -50
  112. package/dist/logging/logging.js +0 -196
  113. package/dist/structures/Collector.d.ts +0 -202
  114. package/dist/structures/Collector.js +0 -391
  115. package/dist/structures/Dialog.d.ts +0 -55
  116. package/dist/structures/Dialog.js +0 -21
  117. package/dist/structures/MessageCollector.d.ts +0 -78
  118. package/dist/structures/MessageCollector.js +0 -145
  119. package/dist/structures/preProcessors.d.ts +0 -58
  120. package/dist/structures/preProcessors.js +0 -181
  121. package/dist/utils/pid_utils.d.ts +0 -1
  122. package/dist/utils/pid_utils.js +0 -26
  123. package/dist/utils/tools.d.ts +0 -152
  124. package/dist/utils/tools.js +0 -494
  125. package/tos.md +0 -77
@@ -1,7 +0,0 @@
1
- export declare enum ExposedFn {
2
- OnMessage = "onMessage",
3
- OnAnyMessage = "onAnyMessage",
4
- onAck = "onAck",
5
- onParticipantsChanged = "onParticipantsChanged",
6
- onStateChanged = "onStateChanged"
7
- }
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ExposedFn = void 0;
4
- var ExposedFn;
5
- (function (ExposedFn) {
6
- ExposedFn["OnMessage"] = "onMessage";
7
- ExposedFn["OnAnyMessage"] = "onAnyMessage";
8
- ExposedFn["onAck"] = "onAck";
9
- ExposedFn["onParticipantsChanged"] = "onParticipantsChanged";
10
- ExposedFn["onStateChanged"] = "onStateChanged";
11
- })(ExposedFn = exports.ExposedFn || (exports.ExposedFn = {}));
@@ -1,110 +0,0 @@
1
- type Brand<K, T> = K & {
2
- __brand?: T;
3
- };
4
- /**
5
- * The suffix used to identify a non-group chat id
6
- */
7
- export type ChatServer = 'c.us';
8
- /**
9
- * The suffix used to identify a group chat id
10
- */
11
- export type GroupChatServer = 'g.us';
12
- /**
13
- * A type alias for all available "servers"
14
- */
15
- export type WaServers = ChatServer | GroupChatServer;
16
- /**
17
- * Type alias representing all available country codes
18
- */
19
- export type CountryCode = 1 | 7 | 20 | 27 | 30 | 31 | 32 | 33 | 34 | 36 | 39 | 40 | 41 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 81 | 82 | 84 | 86 | 90 | 91 | 92 | 93 | 94 | 95 | 98 | 211 | 212 | 213 | 216 | 218 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 290 | 291 | 297 | 298 | 299 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 380 | 381 | 382 | 383 | 385 | 386 | 387 | 389 | 420 | 421 | 423 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 509 | 590 | 591 | 592 | 593 | 594 | 595 | 596 | 597 | 598 | 599 | 670 | 672 | 673 | 674 | 675 | 676 | 677 | 678 | 679 | 680 | 681 | 682 | 683 | 685 | 686 | 687 | 688 | 689 | 690 | 691 | 692 | 850 | 852 | 853 | 855 | 856 | 880 | 886 | 960 | 961 | 962 | 963 | 964 | 965 | 966 | 967 | 968 | 970 | 971 | 972 | 973 | 974 | 975 | 976 | 977 | 992 | 993 | 994 | 995 | 996 | 998;
20
- /**
21
- * The account number. It is made up of a country code and then the local number without the preceeding 0. For example, if a UK (+44) wa account is linked to the number 07123456789 then the account number will be 447123456789.
22
- */
23
- export type AccountNumber = `${number}`;
24
- /**
25
- * A new group or community has the format of a random number followed by `@g.us`
26
- */
27
- export type GroupId = `${number}@${GroupChatServer}`;
28
- /**
29
- * A group chat ends with `@g.us` and usually has two parts, the timestamp of when it was created, and the user id of the number that created the group. For example `[creator number]-[timestamp]@g.us`
30
- *
31
- * Example:
32
- *
33
- * `"447123456789-1445627445@g.us"`
34
- */
35
- export type GroupChatId = `${AccountNumber}-${number}@${GroupChatServer}` | GroupId;
36
- /**
37
- * A contact id ends with `@c.us` and only contains the number of the contact. For example, if the country code of a contact is `44` and their number is `7123456789` then the contact id would be `447123456789@c.us`
38
- *
39
- * Example:
40
- *
41
- * `"447123456789@c.us"`
42
- */
43
- export type ContactId = Brand<`${AccountNumber}@${ChatServer}`, "ContactId">;
44
- /**
45
- * A chat id ends with `@c.us` or `@g.us` for group chats.
46
- *
47
- * Example:
48
- *
49
- * A group chat: `"447123456789-1445627445@g.us"`
50
- * A group chat: `"447123456789@g.us"`
51
- *
52
- */
53
- export type ChatId = ContactId | GroupChatId;
54
- /**
55
- * The id of a message. The format is `[boolean]_[ChatId]_[random character string]`
56
- *
57
- * Example:
58
- *
59
- * `"false_447123456789@c.us_9C4D0965EA5C09D591334AB6BDB07FEB"`
60
- */
61
- export type MessageId = Brand<`${boolean}_${ChatId}_${string}`, "MessageId">;
62
- /**
63
- * This is a generic type alias for the content of a message
64
- *
65
- * Example:
66
- *
67
- * `"hello!"`
68
- */
69
- export type Content = Brand<string, "Content">;
70
- export type NonSerializedId = {
71
- server: WaServers;
72
- user: AccountNumber;
73
- _serialized: ContactId;
74
- };
75
- /**
76
- *
77
- * Data URLs, URLs prefixed with the data: scheme, allow content creators to embed small files inline in documents. They were formerly known as "data URIs" until that name was retired by the WHATWG.
78
- *
79
- *
80
- * Data URLs are composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself:
81
- *
82
- * Example:
83
- * `"data:[<mediatype>][;base64],<data>"`
84
- *
85
- * Learn more here: https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs
86
- */
87
- export type DataURL = Brand<`data:${string};base64,${Base64}`, "DataURL">;
88
- /**
89
- * Base64 is basically a file encoded as a string.
90
- *
91
- * Base64 is a group of similar binary-to-text encoding schemes that represent binary data in an ASCII string format by translating it into a radix-64 representation. The term Base64 originates from a specific MIME content transfer encoding.
92
- *
93
- * Learn more here: https://developer.mozilla.org/en-US/docs/Glossary/Base64
94
- */
95
- export type Base64 = Brand<string, "Base64">;
96
- /**
97
- * The relative or absolute path of a file
98
- *
99
- * Learn more here: https://www.w3schools.com/html/html_filepaths.asp
100
- */
101
- export type FilePath = Brand<string, "FilePath">;
102
- /**
103
- * A URL of a file used with a GET request
104
- */
105
- export type GetURL = Brand<string, "GetURL">;
106
- /**
107
- * Some file based actions in open-wa are powerful enough to take a dataurl, url or filepath
108
- */
109
- export type AdvancedFile = DataURL | FilePath | GetURL;
110
- export {};
@@ -1,3 +0,0 @@
1
- "use strict";
2
- // declare const tag: unique symbol
3
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,24 +0,0 @@
1
- export interface Button {
2
- id: string;
3
- text: string;
4
- }
5
- export interface AdvancedButton {
6
- id?: string;
7
- text: string;
8
- url?: string;
9
- number?: string;
10
- }
11
- export interface Row {
12
- title: string;
13
- description: string;
14
- rowId: string;
15
- }
16
- export interface Section {
17
- title: string;
18
- rows: Row[];
19
- }
20
- export interface LocationButtonBody {
21
- lat: number;
22
- lng: number;
23
- caption: string;
24
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,51 +0,0 @@
1
- import { ContactId } from "./aliases";
2
- export declare enum CallState {
3
- INCOMING_RING = "INCOMING_RING",
4
- OUTGOING_RING = "OUTGOING_RING",
5
- OUTGOING_CALLING = "OUTGOING_CALLING",
6
- CONNECTING = "CONNECTING",
7
- CONNECTION_LOST = "CONNECTION_LOST",
8
- ACTIVE = "ACTIVE",
9
- HANDLED_REMOTELY = "HANDLED_REMOTELY",
10
- ENDED = "ENDED",
11
- REJECTED = "REJECTED",
12
- REMOTE_CALL_IN_PROGRESS = "REMOTE_CALL_IN_PROGRESS",
13
- FAILED = "FAILED",
14
- NOT_ANSWERED = "NOT_ANSWERED"
15
- }
16
- export interface Call {
17
- /**
18
- * The id of the call
19
- */
20
- id: string;
21
- /**
22
- * The id of the account calling
23
- */
24
- peerJid: ContactId;
25
- /**
26
- * The epoch timestamp of the call. You will have to multiply this by 1000 to get the actual epoch timestamp
27
- */
28
- offerTime: number;
29
- /**
30
- * Whether or not the call is a video call
31
- */
32
- isVideo: boolean;
33
- /**
34
- * Whether or not the call is a group call
35
- */
36
- isGroup: boolean;
37
- canHandleLocally: boolean;
38
- /**
39
- * The direction of the call.
40
- */
41
- outgoing: boolean;
42
- webClientShouldHandle: boolean;
43
- /**
44
- * The other participants on a group call
45
- */
46
- participants: ContactId[];
47
- /**
48
- * State of the call
49
- */
50
- State: CallState;
51
- }
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CallState = void 0;
4
- var CallState;
5
- (function (CallState) {
6
- CallState["INCOMING_RING"] = "INCOMING_RING";
7
- CallState["OUTGOING_RING"] = "OUTGOING_RING";
8
- CallState["OUTGOING_CALLING"] = "OUTGOING_CALLING";
9
- CallState["CONNECTING"] = "CONNECTING";
10
- CallState["CONNECTION_LOST"] = "CONNECTION_LOST";
11
- CallState["ACTIVE"] = "ACTIVE";
12
- CallState["HANDLED_REMOTELY"] = "HANDLED_REMOTELY";
13
- CallState["ENDED"] = "ENDED";
14
- CallState["REJECTED"] = "REJECTED";
15
- CallState["REMOTE_CALL_IN_PROGRESS"] = "REMOTE_CALL_IN_PROGRESS";
16
- CallState["FAILED"] = "FAILED";
17
- CallState["NOT_ANSWERED"] = "NOT_ANSWERED";
18
- })(CallState = exports.CallState || (exports.CallState = {}));
@@ -1,221 +0,0 @@
1
- import { ContactId, GroupChatId } from './aliases';
2
- import { Contact } from './contact';
3
- import { GroupMetadata } from './group-metadata';
4
- export interface BaseChat {
5
- archive: boolean;
6
- changeNumberNewJid: any;
7
- changeNumberOldJid: any;
8
- /**
9
- * The contact related to this chat
10
- */
11
- contact: Contact;
12
- /**
13
- * Group metadata for this chat
14
- */
15
- groupMetadata: GroupMetadata;
16
- /**
17
- * If the chat is a group chat is restricted
18
- */
19
- isAnnounceGrpRestrict: any;
20
- /**
21
- * The title of the chat
22
- */
23
- formattedTitle?: string;
24
- /**
25
- * Whether your host account is able to send messages to this chat
26
- */
27
- canSend?: boolean;
28
- /**
29
- * Whether the chat is a group chat and the group is restricted
30
- */
31
- isReadOnly: boolean;
32
- kind: string;
33
- /**
34
- * The labels attached to this chat.
35
- */
36
- labels: any;
37
- /**
38
- * The ID of the last message received in this chat
39
- */
40
- lastReceivedKey: any;
41
- modifyTag: number;
42
- /**
43
- * The messages in the chat
44
- */
45
- msgs: any;
46
- /**
47
- * The expiration timestamp of the chat mute
48
- */
49
- muteExpiration: number;
50
- /**
51
- * The name of the chat
52
- */
53
- name: string;
54
- /**
55
- * Whether the chat is marked as spam
56
- */
57
- notSpam: boolean;
58
- /**
59
- * Messages that are pending to be sent
60
- */
61
- pendingMsgs: boolean;
62
- /**
63
- * Whether the chat is pinned
64
- */
65
- pin: number;
66
- /**
67
- * The presence state of the chat participant
68
- */
69
- presence: any;
70
- /**
71
- * The timestamp of the last interaction in the chat
72
- */
73
- t: number;
74
- /**
75
- * The number of undread messages in this chat
76
- */
77
- unreadCount: number;
78
- ack?: any;
79
- /**
80
- * @deprecated This is unreliable. Use the method [`isChatOnline`](https://open-wa.github.io/wa-automate-nodejs/classes/client.html#ischatonline) instead.
81
- */
82
- isOnline?: any;
83
- /**
84
- * @deprecated This is unreliable. Use the method [`getLastSeen`](https://open-wa.github.io/wa-automate-nodejs/classes/client.html#getlastseen) instead.
85
- */
86
- lastSeen?: any;
87
- /**
88
- * URL of the chat picture if available
89
- */
90
- pic?: string;
91
- }
92
- export interface SingleChat extends BaseChat {
93
- /**
94
- * The id of the chat
95
- */
96
- id: ContactId;
97
- /**
98
- * Whether the chat is a group chat
99
- */
100
- isGroup: false;
101
- }
102
- export interface GroupChat extends BaseChat {
103
- /**
104
- * The id of the chat
105
- */
106
- id: GroupChatId;
107
- /**
108
- * Whether the chat is a group chat
109
- */
110
- isGroup: true;
111
- /**
112
- * The type of the group
113
- */
114
- groupType: 'DEFAULT' | 'COMMUNITY' | 'LINKED_ANNOUNCEMENT_GROUP' | 'LINKED_GENERAL_GROUP' | 'LINKED_SUBGROUP';
115
- }
116
- export type Chat = SingleChat | GroupChat;
117
- export interface LiveLocationChangedEvent {
118
- id: string;
119
- lat: number;
120
- lng: number;
121
- speed: number;
122
- lastUpdated: number;
123
- accuracy: number;
124
- degrees: any;
125
- /**
126
- * The message id that was sent when the liveLocation session was started.
127
- */
128
- msgId?: string;
129
- }
130
- /**
131
- * The ChatState represents the state you'd normally see represented under the chat name in the app.
132
- */
133
- export declare enum ChatState {
134
- /**
135
- * `typing...`
136
- */
137
- TYPING = 0,
138
- /**
139
- * `recording audio...`
140
- */
141
- RECORDING = 1,
142
- /**
143
- * `online`
144
- */
145
- PAUSED = 2
146
- }
147
- /**
148
- * Chat types
149
- * @readonly
150
- * @enum {string}
151
- */
152
- export declare enum ChatTypes {
153
- SOLO = "solo",
154
- GROUP = "group",
155
- UNKNOWN = "unknown"
156
- }
157
- /**
158
- * Valid durations for muting a chat using [[muteChat]]
159
- *
160
- * @readonly
161
- */
162
- export declare enum ChatMuteDuration {
163
- /**
164
- * Mutes chat for 8 hours
165
- */
166
- EIGHT_HOURS = "EIGHT_HOURS",
167
- /**
168
- * Mutes chat for 1 week
169
- */
170
- ONE_WEEK = "ONE_WEEK",
171
- /**
172
- * Mutes chat forever
173
- */
174
- FOREVER = "FOREVER"
175
- }
176
- export interface GroupChatCreationParticipantAddResponse {
177
- /**
178
- * The resultant status code for adding the participant.
179
- *
180
- * 200 if the participant was added successfully during the creation of the group.
181
- *
182
- * 403 if the participant does not allow their account to be added to group chats. If you receive a 403, you will also get an `invite_code` and `invite_code_exp`
183
- */
184
- code: 200 | 400 | 403;
185
- /**
186
- * If the participant is not allowed to be added to group chats due to their privacy settings, you will receive an `invite_code` which you can send to them via a text.
187
- */
188
- invite_code?: string;
189
- /**
190
- * The expiry ts of the invite_code. It is a number wrapped in a string, in order to get the proper time you can use this:
191
- *
192
- * ```javascript
193
- * new Date(Number(invite_code_exp)*1000)
194
- * ```
195
- */
196
- invite_code_exp?: string;
197
- }
198
- export interface GroupChatCreationResponse {
199
- /**
200
- * The resultant status code of the group chat creation.
201
- *
202
- * 200 if the group was created successfully.
203
- *
204
- * 400 if the initial participant does not exist
205
- */
206
- status: 200 | 400;
207
- /**
208
- * The group chat id
209
- */
210
- gid: GroupChatId;
211
- /**
212
- * The initial requested participants and their corresponding add responses
213
- */
214
- participants: {
215
- ContactId?: GroupChatCreationParticipantAddResponse;
216
- }[];
217
- }
218
- /**
219
- * Ephemeral duration can be 1 day, 7 days or 90 days. The default is 1 day.
220
- */
221
- export type EphemeralDuration = 86400 | 604800 | 7776000;
@@ -1,52 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChatMuteDuration = exports.ChatTypes = exports.ChatState = void 0;
4
- /**
5
- * The ChatState represents the state you'd normally see represented under the chat name in the app.
6
- */
7
- var ChatState;
8
- (function (ChatState) {
9
- /**
10
- * `typing...`
11
- */
12
- ChatState[ChatState["TYPING"] = 0] = "TYPING";
13
- /**
14
- * `recording audio...`
15
- */
16
- ChatState[ChatState["RECORDING"] = 1] = "RECORDING";
17
- /**
18
- * `online`
19
- */
20
- ChatState[ChatState["PAUSED"] = 2] = "PAUSED";
21
- })(ChatState = exports.ChatState || (exports.ChatState = {}));
22
- /**
23
- * Chat types
24
- * @readonly
25
- * @enum {string}
26
- */
27
- var ChatTypes;
28
- (function (ChatTypes) {
29
- ChatTypes["SOLO"] = "solo";
30
- ChatTypes["GROUP"] = "group";
31
- ChatTypes["UNKNOWN"] = "unknown";
32
- })(ChatTypes = exports.ChatTypes || (exports.ChatTypes = {}));
33
- /**
34
- * Valid durations for muting a chat using [[muteChat]]
35
- *
36
- * @readonly
37
- */
38
- var ChatMuteDuration;
39
- (function (ChatMuteDuration) {
40
- /**
41
- * Mutes chat for 8 hours
42
- */
43
- ChatMuteDuration["EIGHT_HOURS"] = "EIGHT_HOURS";
44
- /**
45
- * Mutes chat for 1 week
46
- */
47
- ChatMuteDuration["ONE_WEEK"] = "ONE_WEEK";
48
- /**
49
- * Mutes chat forever
50
- */
51
- ChatMuteDuration["FOREVER"] = "FOREVER";
52
- })(ChatMuteDuration = exports.ChatMuteDuration || (exports.ChatMuteDuration = {}));