samva 0.44.0 → 0.45.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/AGENTS.md +3 -0
- package/README.md +4 -0
- package/dist/client/sdk.gen.d.ts +281 -1
- package/dist/client/sdk.gen.js +856 -1
- package/dist/client/types.gen.d.ts +1850 -46
- package/dist/effect/agents.d.ts +86 -86
- package/dist/effect/agents.js +2 -2
- package/dist/effect/api-keys.d.ts +36 -36
- package/dist/effect/api-keys.js +2 -2
- package/dist/effect/attachments.d.ts +3 -3
- package/dist/effect/attachments.js +1 -1
- package/dist/effect/campaigns.d.ts +250 -250
- package/dist/effect/campaigns.js +3 -3
- package/dist/effect/categories.d.ts +23 -5
- package/dist/effect/categories.js +11 -20
- package/dist/effect/contact-groups.d.ts +44 -44
- package/dist/effect/contact-groups.js +3 -3
- package/dist/effect/contacts.d.ts +3 -3
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.d.ts +53 -53
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/email.d.ts +97 -97
- package/dist/effect/email.js +21 -21
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/extension-installations.d.ts +6 -6
- package/dist/effect/extension-installations.js +1 -1
- package/dist/effect/generated/index.d.ts +9 -1
- package/dist/effect/generated/journeys.d.ts +1 -3
- package/dist/effect/generated/journeys.js +2 -6
- package/dist/effect/generated/messages.d.ts +1 -5
- package/dist/effect/generated/messages.js +2 -10
- package/dist/effect/generated/shared.d.ts +92 -2
- package/dist/effect/generated/shared.js +43 -2
- package/dist/effect/generated/template-registrations.d.ts +651 -0
- package/dist/effect/generated/template-registrations.js +138 -0
- package/dist/effect/generated/whats-app-flows.d.ts +1838 -0
- package/dist/effect/generated/whats-app-flows.js +338 -0
- package/dist/effect/generated/whats-app-setup-links.d.ts +705 -0
- package/dist/effect/generated/whats-app-setup-links.js +150 -0
- package/dist/effect/generated/whats-app.d.ts +2089 -0
- package/dist/effect/generated/whats-app.js +633 -0
- package/dist/effect/generated-metadata.d.ts +245 -0
- package/dist/effect/generated-metadata.js +221 -48
- package/dist/effect/index.d.ts +4 -0
- package/dist/effect/index.js +6 -2
- package/dist/effect/mailboxes.d.ts +298 -298
- package/dist/effect/mailboxes.js +3 -3
- package/dist/effect/media.d.ts +4 -4
- package/dist/effect/media.js +2 -2
- package/dist/effect/messages.d.ts +17 -17
- package/dist/effect/messages.js +4 -4
- package/dist/effect/namespaces.d.ts +5 -5
- package/dist/effect/namespaces.js +1 -1
- package/dist/effect/newsletter-issues.d.ts +8 -8
- package/dist/effect/newsletter-issues.js +2 -2
- package/dist/effect/newsletters.d.ts +3 -3
- package/dist/effect/newsletters.js +1 -1
- package/dist/effect/organizations.d.ts +10 -10
- package/dist/effect/organizations.js +1 -1
- package/dist/effect/runtime.d.ts +2 -0
- package/dist/effect/runtime.js +2 -1
- package/dist/effect/scheduled-messages.d.ts +839 -839
- package/dist/effect/scheduled-messages.js +1 -1
- package/dist/effect/template-registrations.d.ts +12 -0
- package/dist/effect/template-registrations.js +16 -0
- package/dist/effect/templates.d.ts +66 -66
- package/dist/effect/templates.js +13 -13
- package/dist/effect/topic-forms.d.ts +4 -4
- package/dist/effect/topic-forms.js +1 -1
- package/dist/effect/topics.d.ts +11 -11
- package/dist/effect/topics.js +2 -2
- package/dist/effect/webhooks.d.ts +18 -18
- package/dist/effect/webhooks.js +3 -3
- package/dist/effect/whatsapp-flows.d.ts +34 -0
- package/dist/effect/whatsapp-flows.js +30 -0
- package/dist/effect/whatsapp-setup-links.d.ts +66 -0
- package/dist/effect/whatsapp-setup-links.js +18 -0
- package/dist/effect/whatsapp.d.ts +51 -0
- package/dist/effect/whatsapp.js +34 -0
- package/dist/index.js +2 -2
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +9 -1
- package/dist/promises/client.js +11 -3
- package/dist/promises/errors.gen.d.ts +38 -2
- package/dist/promises/errors.gen.js +160 -3
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +917 -736
- package/dist/service-map.js +288 -235
- package/package.json +19 -3
|
@@ -0,0 +1,1838 @@
|
|
|
1
|
+
import type * as EffectBrand from "effect/Brand";
|
|
2
|
+
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
3
|
+
import * as Schema from "effect/Schema";
|
|
4
|
+
import { ApiKeySecurityMiddleware, ConflictError, CredentialsError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, ResourceNotFoundError, ServiceUnavailableError, TemplateProjectId, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId, WhatsAppChannelError, WhatsAppFlowId, WhatsAppFlowVersionId, __SamvaRuntimeSensitiveString } from "./shared";
|
|
5
|
+
export type WhatsAppFlowEndpoint = {
|
|
6
|
+
readonly url: string;
|
|
7
|
+
readonly updatedAt: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const WhatsAppFlowEndpoint: Schema.Struct<{
|
|
10
|
+
readonly url: Schema.String;
|
|
11
|
+
readonly updatedAt: Schema.String;
|
|
12
|
+
}>;
|
|
13
|
+
export type WhatsAppFlowRegistrationId = string & EffectBrand.Brand<"WhatsAppFlowRegistrationId">;
|
|
14
|
+
export declare const WhatsAppFlowRegistrationId: Schema.brand<Schema.String, "WhatsAppFlowRegistrationId">;
|
|
15
|
+
export type WhatsAppFlowValidationError = {
|
|
16
|
+
readonly error: string;
|
|
17
|
+
readonly message: string;
|
|
18
|
+
readonly path?: string;
|
|
19
|
+
readonly line?: number;
|
|
20
|
+
readonly column?: number;
|
|
21
|
+
};
|
|
22
|
+
export declare const WhatsAppFlowValidationError: Schema.Struct<{
|
|
23
|
+
readonly error: Schema.String;
|
|
24
|
+
readonly message: Schema.String;
|
|
25
|
+
readonly path: Schema.optionalKey<Schema.String>;
|
|
26
|
+
readonly line: Schema.optionalKey<Schema.Finite>;
|
|
27
|
+
readonly column: Schema.optionalKey<Schema.Finite>;
|
|
28
|
+
}>;
|
|
29
|
+
export type WhatsAppFlowEndpointAlert = {
|
|
30
|
+
readonly kind: string;
|
|
31
|
+
readonly message: string;
|
|
32
|
+
readonly value: number | null;
|
|
33
|
+
readonly threshold: number | null;
|
|
34
|
+
readonly activatedAt: string;
|
|
35
|
+
};
|
|
36
|
+
export declare const WhatsAppFlowEndpointAlert: Schema.Struct<{
|
|
37
|
+
readonly kind: Schema.String;
|
|
38
|
+
readonly message: Schema.String;
|
|
39
|
+
readonly value: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
40
|
+
readonly threshold: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
41
|
+
readonly activatedAt: Schema.String;
|
|
42
|
+
}>;
|
|
43
|
+
export type WhatsAppFlowEncryptionKey = {
|
|
44
|
+
readonly wabaId: string;
|
|
45
|
+
readonly publicKey: string;
|
|
46
|
+
readonly phoneNumberIds: ReadonlyArray<string>;
|
|
47
|
+
readonly createdAt: string;
|
|
48
|
+
};
|
|
49
|
+
export declare const WhatsAppFlowEncryptionKey: Schema.Struct<{
|
|
50
|
+
readonly wabaId: Schema.String;
|
|
51
|
+
readonly publicKey: Schema.String;
|
|
52
|
+
readonly phoneNumberIds: Schema.$Array<Schema.String>;
|
|
53
|
+
readonly createdAt: Schema.String;
|
|
54
|
+
}>;
|
|
55
|
+
export type WhatsAppFlowEndpointSettings = {
|
|
56
|
+
readonly url: string;
|
|
57
|
+
readonly updatedAt: string;
|
|
58
|
+
readonly secret?: __SamvaRuntimeSensitiveString;
|
|
59
|
+
};
|
|
60
|
+
export declare const WhatsAppFlowEndpointSettings: Schema.Struct<{
|
|
61
|
+
readonly url: Schema.String;
|
|
62
|
+
readonly updatedAt: Schema.String;
|
|
63
|
+
readonly secret: Schema.optionalKey<Schema.RedactedFromValue<Schema.Codec<string, string, never, never>>>;
|
|
64
|
+
}>;
|
|
65
|
+
export type WhatsAppFlowVersion = {
|
|
66
|
+
readonly id: WhatsAppFlowVersionId;
|
|
67
|
+
readonly flowId: WhatsAppFlowId;
|
|
68
|
+
readonly number: number;
|
|
69
|
+
readonly commitSha: string;
|
|
70
|
+
readonly digest: string;
|
|
71
|
+
readonly jsonVersion: string;
|
|
72
|
+
readonly screens: ReadonlyArray<string>;
|
|
73
|
+
readonly dataExchange: boolean;
|
|
74
|
+
readonly createdAt: string;
|
|
75
|
+
};
|
|
76
|
+
export declare const WhatsAppFlowVersion: Schema.Struct<{
|
|
77
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowVersionId">;
|
|
78
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
79
|
+
readonly number: Schema.Finite;
|
|
80
|
+
readonly commitSha: Schema.String;
|
|
81
|
+
readonly digest: Schema.String;
|
|
82
|
+
readonly jsonVersion: Schema.String;
|
|
83
|
+
readonly screens: Schema.$Array<Schema.String>;
|
|
84
|
+
readonly dataExchange: Schema.Boolean;
|
|
85
|
+
readonly createdAt: Schema.String;
|
|
86
|
+
}>;
|
|
87
|
+
export type WhatsAppFlowRegistration = {
|
|
88
|
+
readonly id: WhatsAppFlowRegistrationId;
|
|
89
|
+
readonly flowId: WhatsAppFlowId;
|
|
90
|
+
readonly versionId: WhatsAppFlowVersionId;
|
|
91
|
+
readonly versionNumber: number;
|
|
92
|
+
readonly wabaId: string;
|
|
93
|
+
readonly providerFlowId: string | null;
|
|
94
|
+
readonly name: string;
|
|
95
|
+
readonly status: "draft" | "published" | "throttled" | "blocked" | "deprecated";
|
|
96
|
+
readonly validationErrors: ReadonlyArray<WhatsAppFlowValidationError>;
|
|
97
|
+
readonly endpointAlerts: ReadonlyArray<WhatsAppFlowEndpointAlert>;
|
|
98
|
+
readonly publishedAt: string | null;
|
|
99
|
+
readonly statusChangedAt: string;
|
|
100
|
+
readonly createdAt: string;
|
|
101
|
+
readonly updatedAt: string;
|
|
102
|
+
};
|
|
103
|
+
export declare const WhatsAppFlowRegistration: Schema.Struct<{
|
|
104
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowRegistrationId">;
|
|
105
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
106
|
+
readonly versionId: Schema.brand<Schema.String, "WhatsAppFlowVersionId">;
|
|
107
|
+
readonly versionNumber: Schema.Finite;
|
|
108
|
+
readonly wabaId: Schema.String;
|
|
109
|
+
readonly providerFlowId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
110
|
+
readonly name: Schema.String;
|
|
111
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"published">, Schema.Literal<"throttled">, Schema.Literal<"blocked">, Schema.Literal<"deprecated">]>;
|
|
112
|
+
readonly validationErrors: Schema.$Array<Schema.Struct<{
|
|
113
|
+
readonly error: Schema.String;
|
|
114
|
+
readonly message: Schema.String;
|
|
115
|
+
readonly path: Schema.optionalKey<Schema.String>;
|
|
116
|
+
readonly line: Schema.optionalKey<Schema.Finite>;
|
|
117
|
+
readonly column: Schema.optionalKey<Schema.Finite>;
|
|
118
|
+
}>>;
|
|
119
|
+
readonly endpointAlerts: Schema.$Array<Schema.Struct<{
|
|
120
|
+
readonly kind: Schema.String;
|
|
121
|
+
readonly message: Schema.String;
|
|
122
|
+
readonly value: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
123
|
+
readonly threshold: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
124
|
+
readonly activatedAt: Schema.String;
|
|
125
|
+
}>>;
|
|
126
|
+
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
127
|
+
readonly statusChangedAt: Schema.String;
|
|
128
|
+
readonly createdAt: Schema.String;
|
|
129
|
+
readonly updatedAt: Schema.String;
|
|
130
|
+
}>;
|
|
131
|
+
export type WhatsAppFlow = {
|
|
132
|
+
readonly id: WhatsAppFlowId;
|
|
133
|
+
readonly projectId: TemplateProjectId;
|
|
134
|
+
readonly handle: string;
|
|
135
|
+
readonly path: string;
|
|
136
|
+
readonly categories: ReadonlyArray<"SIGN_UP" | "SIGN_IN" | "APPOINTMENT_BOOKING" | "LEAD_GENERATION" | "CONTACT_US" | "CUSTOMER_SUPPORT" | "SURVEY" | "OTHER">;
|
|
137
|
+
readonly endpoint: WhatsAppFlowEndpoint | null;
|
|
138
|
+
readonly currentVersion: WhatsAppFlowVersion | null;
|
|
139
|
+
readonly createdAt: string;
|
|
140
|
+
readonly updatedAt: string;
|
|
141
|
+
};
|
|
142
|
+
export declare const WhatsAppFlow: Schema.Struct<{
|
|
143
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
144
|
+
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
145
|
+
readonly handle: Schema.String;
|
|
146
|
+
readonly path: Schema.String;
|
|
147
|
+
readonly categories: Schema.$Array<Schema.Union<readonly [Schema.Literal<"SIGN_UP">, Schema.Literal<"SIGN_IN">, Schema.Literal<"APPOINTMENT_BOOKING">, Schema.Literal<"LEAD_GENERATION">, Schema.Literal<"CONTACT_US">, Schema.Literal<"CUSTOMER_SUPPORT">, Schema.Literal<"SURVEY">, Schema.Literal<"OTHER">]>>;
|
|
148
|
+
readonly endpoint: Schema.Union<readonly [Schema.Struct<{
|
|
149
|
+
readonly url: Schema.String;
|
|
150
|
+
readonly updatedAt: Schema.String;
|
|
151
|
+
}>, Schema.Null]>;
|
|
152
|
+
readonly currentVersion: Schema.Union<readonly [Schema.Struct<{
|
|
153
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowVersionId">;
|
|
154
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
155
|
+
readonly number: Schema.Finite;
|
|
156
|
+
readonly commitSha: Schema.String;
|
|
157
|
+
readonly digest: Schema.String;
|
|
158
|
+
readonly jsonVersion: Schema.String;
|
|
159
|
+
readonly screens: Schema.$Array<Schema.String>;
|
|
160
|
+
readonly dataExchange: Schema.Boolean;
|
|
161
|
+
readonly createdAt: Schema.String;
|
|
162
|
+
}>, Schema.Null]>;
|
|
163
|
+
readonly createdAt: Schema.String;
|
|
164
|
+
readonly updatedAt: Schema.String;
|
|
165
|
+
}>;
|
|
166
|
+
export type WhatsAppFlowVersionList = {
|
|
167
|
+
readonly data: ReadonlyArray<WhatsAppFlowVersion>;
|
|
168
|
+
};
|
|
169
|
+
export declare const WhatsAppFlowVersionList: Schema.Struct<{
|
|
170
|
+
readonly data: Schema.$Array<Schema.Struct<{
|
|
171
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowVersionId">;
|
|
172
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
173
|
+
readonly number: Schema.Finite;
|
|
174
|
+
readonly commitSha: Schema.String;
|
|
175
|
+
readonly digest: Schema.String;
|
|
176
|
+
readonly jsonVersion: Schema.String;
|
|
177
|
+
readonly screens: Schema.$Array<Schema.String>;
|
|
178
|
+
readonly dataExchange: Schema.Boolean;
|
|
179
|
+
readonly createdAt: Schema.String;
|
|
180
|
+
}>>;
|
|
181
|
+
}>;
|
|
182
|
+
export type WhatsAppFlowRegistrationList = {
|
|
183
|
+
readonly data: ReadonlyArray<WhatsAppFlowRegistration>;
|
|
184
|
+
};
|
|
185
|
+
export declare const WhatsAppFlowRegistrationList: Schema.Struct<{
|
|
186
|
+
readonly data: Schema.$Array<Schema.Struct<{
|
|
187
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowRegistrationId">;
|
|
188
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
189
|
+
readonly versionId: Schema.brand<Schema.String, "WhatsAppFlowVersionId">;
|
|
190
|
+
readonly versionNumber: Schema.Finite;
|
|
191
|
+
readonly wabaId: Schema.String;
|
|
192
|
+
readonly providerFlowId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
193
|
+
readonly name: Schema.String;
|
|
194
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"published">, Schema.Literal<"throttled">, Schema.Literal<"blocked">, Schema.Literal<"deprecated">]>;
|
|
195
|
+
readonly validationErrors: Schema.$Array<Schema.Struct<{
|
|
196
|
+
readonly error: Schema.String;
|
|
197
|
+
readonly message: Schema.String;
|
|
198
|
+
readonly path: Schema.optionalKey<Schema.String>;
|
|
199
|
+
readonly line: Schema.optionalKey<Schema.Finite>;
|
|
200
|
+
readonly column: Schema.optionalKey<Schema.Finite>;
|
|
201
|
+
}>>;
|
|
202
|
+
readonly endpointAlerts: Schema.$Array<Schema.Struct<{
|
|
203
|
+
readonly kind: Schema.String;
|
|
204
|
+
readonly message: Schema.String;
|
|
205
|
+
readonly value: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
206
|
+
readonly threshold: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
207
|
+
readonly activatedAt: Schema.String;
|
|
208
|
+
}>>;
|
|
209
|
+
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
210
|
+
readonly statusChangedAt: Schema.String;
|
|
211
|
+
readonly createdAt: Schema.String;
|
|
212
|
+
readonly updatedAt: Schema.String;
|
|
213
|
+
}>>;
|
|
214
|
+
}>;
|
|
215
|
+
export type WhatsAppFlowList = {
|
|
216
|
+
readonly data: ReadonlyArray<WhatsAppFlow>;
|
|
217
|
+
};
|
|
218
|
+
export declare const WhatsAppFlowList: Schema.Struct<{
|
|
219
|
+
readonly data: Schema.$Array<Schema.Struct<{
|
|
220
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
221
|
+
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
222
|
+
readonly handle: Schema.String;
|
|
223
|
+
readonly path: Schema.String;
|
|
224
|
+
readonly categories: Schema.$Array<Schema.Union<readonly [Schema.Literal<"SIGN_UP">, Schema.Literal<"SIGN_IN">, Schema.Literal<"APPOINTMENT_BOOKING">, Schema.Literal<"LEAD_GENERATION">, Schema.Literal<"CONTACT_US">, Schema.Literal<"CUSTOMER_SUPPORT">, Schema.Literal<"SURVEY">, Schema.Literal<"OTHER">]>>;
|
|
225
|
+
readonly endpoint: Schema.Union<readonly [Schema.Struct<{
|
|
226
|
+
readonly url: Schema.String;
|
|
227
|
+
readonly updatedAt: Schema.String;
|
|
228
|
+
}>, Schema.Null]>;
|
|
229
|
+
readonly currentVersion: Schema.Union<readonly [Schema.Struct<{
|
|
230
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowVersionId">;
|
|
231
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
232
|
+
readonly number: Schema.Finite;
|
|
233
|
+
readonly commitSha: Schema.String;
|
|
234
|
+
readonly digest: Schema.String;
|
|
235
|
+
readonly jsonVersion: Schema.String;
|
|
236
|
+
readonly screens: Schema.$Array<Schema.String>;
|
|
237
|
+
readonly dataExchange: Schema.Boolean;
|
|
238
|
+
readonly createdAt: Schema.String;
|
|
239
|
+
}>, Schema.Null]>;
|
|
240
|
+
readonly createdAt: Schema.String;
|
|
241
|
+
readonly updatedAt: Schema.String;
|
|
242
|
+
}>>;
|
|
243
|
+
}>;
|
|
244
|
+
export type WhatsappFlowsList200 = WhatsAppFlowList;
|
|
245
|
+
export declare const WhatsappFlowsList200: Schema.Struct<{
|
|
246
|
+
readonly data: Schema.$Array<Schema.Struct<{
|
|
247
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
248
|
+
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
249
|
+
readonly handle: Schema.String;
|
|
250
|
+
readonly path: Schema.String;
|
|
251
|
+
readonly categories: Schema.$Array<Schema.Union<readonly [Schema.Literal<"SIGN_UP">, Schema.Literal<"SIGN_IN">, Schema.Literal<"APPOINTMENT_BOOKING">, Schema.Literal<"LEAD_GENERATION">, Schema.Literal<"CONTACT_US">, Schema.Literal<"CUSTOMER_SUPPORT">, Schema.Literal<"SURVEY">, Schema.Literal<"OTHER">]>>;
|
|
252
|
+
readonly endpoint: Schema.Union<readonly [Schema.Struct<{
|
|
253
|
+
readonly url: Schema.String;
|
|
254
|
+
readonly updatedAt: Schema.String;
|
|
255
|
+
}>, Schema.Null]>;
|
|
256
|
+
readonly currentVersion: Schema.Union<readonly [Schema.Struct<{
|
|
257
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowVersionId">;
|
|
258
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
259
|
+
readonly number: Schema.Finite;
|
|
260
|
+
readonly commitSha: Schema.String;
|
|
261
|
+
readonly digest: Schema.String;
|
|
262
|
+
readonly jsonVersion: Schema.String;
|
|
263
|
+
readonly screens: Schema.$Array<Schema.String>;
|
|
264
|
+
readonly dataExchange: Schema.Boolean;
|
|
265
|
+
readonly createdAt: Schema.String;
|
|
266
|
+
}>, Schema.Null]>;
|
|
267
|
+
readonly createdAt: Schema.String;
|
|
268
|
+
readonly updatedAt: Schema.String;
|
|
269
|
+
}>>;
|
|
270
|
+
}>;
|
|
271
|
+
export type WhatsappFlowsList400 = MalformedRequestError;
|
|
272
|
+
export declare const WhatsappFlowsList400: typeof MalformedRequestError;
|
|
273
|
+
export type WhatsappFlowsList401 = UnauthorizedError;
|
|
274
|
+
export declare const WhatsappFlowsList401: typeof UnauthorizedError;
|
|
275
|
+
export type WhatsappFlowsList403 = FlagDisabledError | ForbiddenError;
|
|
276
|
+
export declare const WhatsappFlowsList403: Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]>;
|
|
277
|
+
export type WhatsappFlowsList422 = ValidationError;
|
|
278
|
+
export declare const WhatsappFlowsList422: typeof ValidationError;
|
|
279
|
+
export type WhatsappFlowsList500 = InternalError;
|
|
280
|
+
export declare const WhatsappFlowsList500: typeof InternalError;
|
|
281
|
+
export type WhatsappFlowsList504 = GatewayTimeoutError;
|
|
282
|
+
export declare const WhatsappFlowsList504: typeof GatewayTimeoutError;
|
|
283
|
+
export type WhatsappFlowsCreateRequestJson = {
|
|
284
|
+
readonly projectId: TemplateProjectId;
|
|
285
|
+
readonly handle: string;
|
|
286
|
+
readonly categories: ReadonlyArray<"SIGN_UP" | "SIGN_IN" | "APPOINTMENT_BOOKING" | "LEAD_GENERATION" | "CONTACT_US" | "CUSTOMER_SUPPORT" | "SURVEY" | "OTHER">;
|
|
287
|
+
};
|
|
288
|
+
export declare const WhatsappFlowsCreateRequestJson: Schema.Struct<{
|
|
289
|
+
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
290
|
+
readonly handle: Schema.String;
|
|
291
|
+
readonly categories: Schema.$Array<Schema.Union<readonly [Schema.Literal<"SIGN_UP">, Schema.Literal<"SIGN_IN">, Schema.Literal<"APPOINTMENT_BOOKING">, Schema.Literal<"LEAD_GENERATION">, Schema.Literal<"CONTACT_US">, Schema.Literal<"CUSTOMER_SUPPORT">, Schema.Literal<"SURVEY">, Schema.Literal<"OTHER">]>>;
|
|
292
|
+
}>;
|
|
293
|
+
export type WhatsappFlowsCreate201 = WhatsAppFlow;
|
|
294
|
+
export declare const WhatsappFlowsCreate201: Schema.Struct<{
|
|
295
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
296
|
+
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
297
|
+
readonly handle: Schema.String;
|
|
298
|
+
readonly path: Schema.String;
|
|
299
|
+
readonly categories: Schema.$Array<Schema.Union<readonly [Schema.Literal<"SIGN_UP">, Schema.Literal<"SIGN_IN">, Schema.Literal<"APPOINTMENT_BOOKING">, Schema.Literal<"LEAD_GENERATION">, Schema.Literal<"CONTACT_US">, Schema.Literal<"CUSTOMER_SUPPORT">, Schema.Literal<"SURVEY">, Schema.Literal<"OTHER">]>>;
|
|
300
|
+
readonly endpoint: Schema.Union<readonly [Schema.Struct<{
|
|
301
|
+
readonly url: Schema.String;
|
|
302
|
+
readonly updatedAt: Schema.String;
|
|
303
|
+
}>, Schema.Null]>;
|
|
304
|
+
readonly currentVersion: Schema.Union<readonly [Schema.Struct<{
|
|
305
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowVersionId">;
|
|
306
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
307
|
+
readonly number: Schema.Finite;
|
|
308
|
+
readonly commitSha: Schema.String;
|
|
309
|
+
readonly digest: Schema.String;
|
|
310
|
+
readonly jsonVersion: Schema.String;
|
|
311
|
+
readonly screens: Schema.$Array<Schema.String>;
|
|
312
|
+
readonly dataExchange: Schema.Boolean;
|
|
313
|
+
readonly createdAt: Schema.String;
|
|
314
|
+
}>, Schema.Null]>;
|
|
315
|
+
readonly createdAt: Schema.String;
|
|
316
|
+
readonly updatedAt: Schema.String;
|
|
317
|
+
}>;
|
|
318
|
+
export type WhatsappFlowsCreate400 = MalformedRequestError;
|
|
319
|
+
export declare const WhatsappFlowsCreate400: typeof MalformedRequestError;
|
|
320
|
+
export type WhatsappFlowsCreate401 = UnauthorizedError;
|
|
321
|
+
export declare const WhatsappFlowsCreate401: typeof UnauthorizedError;
|
|
322
|
+
export type WhatsappFlowsCreate403 = FlagDisabledError | ForbiddenError;
|
|
323
|
+
export declare const WhatsappFlowsCreate403: Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]>;
|
|
324
|
+
export type WhatsappFlowsCreate404 = ResourceNotFoundError;
|
|
325
|
+
export declare const WhatsappFlowsCreate404: typeof ResourceNotFoundError;
|
|
326
|
+
export type WhatsappFlowsCreate409 = ConflictError;
|
|
327
|
+
export declare const WhatsappFlowsCreate409: typeof ConflictError;
|
|
328
|
+
export type WhatsappFlowsCreate422 = ValidationError;
|
|
329
|
+
export declare const WhatsappFlowsCreate422: typeof ValidationError;
|
|
330
|
+
export type WhatsappFlowsCreate500 = InternalError;
|
|
331
|
+
export declare const WhatsappFlowsCreate500: typeof InternalError;
|
|
332
|
+
export type WhatsappFlowsCreate504 = GatewayTimeoutError;
|
|
333
|
+
export declare const WhatsappFlowsCreate504: typeof GatewayTimeoutError;
|
|
334
|
+
export type WhatsappFlowsGetPathParams = {
|
|
335
|
+
readonly id: WhatsAppFlowId;
|
|
336
|
+
};
|
|
337
|
+
export declare const WhatsappFlowsGetPathParams: Schema.Struct<{
|
|
338
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
339
|
+
}>;
|
|
340
|
+
export type WhatsappFlowsGet200 = WhatsAppFlow;
|
|
341
|
+
export declare const WhatsappFlowsGet200: Schema.Struct<{
|
|
342
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
343
|
+
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
344
|
+
readonly handle: Schema.String;
|
|
345
|
+
readonly path: Schema.String;
|
|
346
|
+
readonly categories: Schema.$Array<Schema.Union<readonly [Schema.Literal<"SIGN_UP">, Schema.Literal<"SIGN_IN">, Schema.Literal<"APPOINTMENT_BOOKING">, Schema.Literal<"LEAD_GENERATION">, Schema.Literal<"CONTACT_US">, Schema.Literal<"CUSTOMER_SUPPORT">, Schema.Literal<"SURVEY">, Schema.Literal<"OTHER">]>>;
|
|
347
|
+
readonly endpoint: Schema.Union<readonly [Schema.Struct<{
|
|
348
|
+
readonly url: Schema.String;
|
|
349
|
+
readonly updatedAt: Schema.String;
|
|
350
|
+
}>, Schema.Null]>;
|
|
351
|
+
readonly currentVersion: Schema.Union<readonly [Schema.Struct<{
|
|
352
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowVersionId">;
|
|
353
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
354
|
+
readonly number: Schema.Finite;
|
|
355
|
+
readonly commitSha: Schema.String;
|
|
356
|
+
readonly digest: Schema.String;
|
|
357
|
+
readonly jsonVersion: Schema.String;
|
|
358
|
+
readonly screens: Schema.$Array<Schema.String>;
|
|
359
|
+
readonly dataExchange: Schema.Boolean;
|
|
360
|
+
readonly createdAt: Schema.String;
|
|
361
|
+
}>, Schema.Null]>;
|
|
362
|
+
readonly createdAt: Schema.String;
|
|
363
|
+
readonly updatedAt: Schema.String;
|
|
364
|
+
}>;
|
|
365
|
+
export type WhatsappFlowsGet400 = MalformedRequestError;
|
|
366
|
+
export declare const WhatsappFlowsGet400: typeof MalformedRequestError;
|
|
367
|
+
export type WhatsappFlowsGet401 = UnauthorizedError;
|
|
368
|
+
export declare const WhatsappFlowsGet401: typeof UnauthorizedError;
|
|
369
|
+
export type WhatsappFlowsGet403 = FlagDisabledError | ForbiddenError;
|
|
370
|
+
export declare const WhatsappFlowsGet403: Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]>;
|
|
371
|
+
export type WhatsappFlowsGet404 = ResourceNotFoundError;
|
|
372
|
+
export declare const WhatsappFlowsGet404: typeof ResourceNotFoundError;
|
|
373
|
+
export type WhatsappFlowsGet422 = ValidationError;
|
|
374
|
+
export declare const WhatsappFlowsGet422: typeof ValidationError;
|
|
375
|
+
export type WhatsappFlowsGet500 = InternalError;
|
|
376
|
+
export declare const WhatsappFlowsGet500: typeof InternalError;
|
|
377
|
+
export type WhatsappFlowsGet504 = GatewayTimeoutError;
|
|
378
|
+
export declare const WhatsappFlowsGet504: typeof GatewayTimeoutError;
|
|
379
|
+
export type WhatsappFlowsSetEndpointPathParams = {
|
|
380
|
+
readonly id: WhatsAppFlowId;
|
|
381
|
+
};
|
|
382
|
+
export declare const WhatsappFlowsSetEndpointPathParams: Schema.Struct<{
|
|
383
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
384
|
+
}>;
|
|
385
|
+
export type WhatsappFlowsSetEndpointRequestJson = {
|
|
386
|
+
readonly url: string;
|
|
387
|
+
};
|
|
388
|
+
export declare const WhatsappFlowsSetEndpointRequestJson: Schema.Struct<{
|
|
389
|
+
readonly url: Schema.String;
|
|
390
|
+
}>;
|
|
391
|
+
export type WhatsappFlowsSetEndpoint200 = WhatsAppFlowEndpointSettings;
|
|
392
|
+
export declare const WhatsappFlowsSetEndpoint200: Schema.Struct<{
|
|
393
|
+
readonly url: Schema.String;
|
|
394
|
+
readonly updatedAt: Schema.String;
|
|
395
|
+
readonly secret: Schema.optionalKey<Schema.RedactedFromValue<Schema.Codec<string, string, never, never>>>;
|
|
396
|
+
}>;
|
|
397
|
+
export type WhatsappFlowsSetEndpoint400 = MalformedRequestError;
|
|
398
|
+
export declare const WhatsappFlowsSetEndpoint400: typeof MalformedRequestError;
|
|
399
|
+
export type WhatsappFlowsSetEndpoint401 = UnauthorizedError;
|
|
400
|
+
export declare const WhatsappFlowsSetEndpoint401: typeof UnauthorizedError;
|
|
401
|
+
export type WhatsappFlowsSetEndpoint403 = FlagDisabledError | ForbiddenError;
|
|
402
|
+
export declare const WhatsappFlowsSetEndpoint403: Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]>;
|
|
403
|
+
export type WhatsappFlowsSetEndpoint404 = ResourceNotFoundError;
|
|
404
|
+
export declare const WhatsappFlowsSetEndpoint404: typeof ResourceNotFoundError;
|
|
405
|
+
export type WhatsappFlowsSetEndpoint422 = ValidationError;
|
|
406
|
+
export declare const WhatsappFlowsSetEndpoint422: typeof ValidationError;
|
|
407
|
+
export type WhatsappFlowsSetEndpoint500 = CredentialsError | InternalError;
|
|
408
|
+
export declare const WhatsappFlowsSetEndpoint500: Schema.Union<readonly [typeof CredentialsError, typeof InternalError]>;
|
|
409
|
+
export type WhatsappFlowsSetEndpoint504 = GatewayTimeoutError;
|
|
410
|
+
export declare const WhatsappFlowsSetEndpoint504: typeof GatewayTimeoutError;
|
|
411
|
+
export type WhatsappFlowsRotateEndpointSecretPathParams = {
|
|
412
|
+
readonly id: WhatsAppFlowId;
|
|
413
|
+
};
|
|
414
|
+
export declare const WhatsappFlowsRotateEndpointSecretPathParams: Schema.Struct<{
|
|
415
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
416
|
+
}>;
|
|
417
|
+
export type WhatsappFlowsRotateEndpointSecret200 = WhatsAppFlowEndpointSettings;
|
|
418
|
+
export declare const WhatsappFlowsRotateEndpointSecret200: Schema.Struct<{
|
|
419
|
+
readonly url: Schema.String;
|
|
420
|
+
readonly updatedAt: Schema.String;
|
|
421
|
+
readonly secret: Schema.optionalKey<Schema.RedactedFromValue<Schema.Codec<string, string, never, never>>>;
|
|
422
|
+
}>;
|
|
423
|
+
export type WhatsappFlowsRotateEndpointSecret400 = MalformedRequestError;
|
|
424
|
+
export declare const WhatsappFlowsRotateEndpointSecret400: typeof MalformedRequestError;
|
|
425
|
+
export type WhatsappFlowsRotateEndpointSecret401 = UnauthorizedError;
|
|
426
|
+
export declare const WhatsappFlowsRotateEndpointSecret401: typeof UnauthorizedError;
|
|
427
|
+
export type WhatsappFlowsRotateEndpointSecret403 = FlagDisabledError | ForbiddenError;
|
|
428
|
+
export declare const WhatsappFlowsRotateEndpointSecret403: Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]>;
|
|
429
|
+
export type WhatsappFlowsRotateEndpointSecret404 = ResourceNotFoundError;
|
|
430
|
+
export declare const WhatsappFlowsRotateEndpointSecret404: typeof ResourceNotFoundError;
|
|
431
|
+
export type WhatsappFlowsRotateEndpointSecret422 = ValidationError;
|
|
432
|
+
export declare const WhatsappFlowsRotateEndpointSecret422: typeof ValidationError;
|
|
433
|
+
export type WhatsappFlowsRotateEndpointSecret500 = CredentialsError | InternalError;
|
|
434
|
+
export declare const WhatsappFlowsRotateEndpointSecret500: Schema.Union<readonly [typeof CredentialsError, typeof InternalError]>;
|
|
435
|
+
export type WhatsappFlowsRotateEndpointSecret504 = GatewayTimeoutError;
|
|
436
|
+
export declare const WhatsappFlowsRotateEndpointSecret504: typeof GatewayTimeoutError;
|
|
437
|
+
export type WhatsappFlowsListRegistrationsPathParams = {
|
|
438
|
+
readonly id: WhatsAppFlowId;
|
|
439
|
+
};
|
|
440
|
+
export declare const WhatsappFlowsListRegistrationsPathParams: Schema.Struct<{
|
|
441
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
442
|
+
}>;
|
|
443
|
+
export type WhatsappFlowsListRegistrations200 = WhatsAppFlowRegistrationList;
|
|
444
|
+
export declare const WhatsappFlowsListRegistrations200: Schema.Struct<{
|
|
445
|
+
readonly data: Schema.$Array<Schema.Struct<{
|
|
446
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowRegistrationId">;
|
|
447
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
448
|
+
readonly versionId: Schema.brand<Schema.String, "WhatsAppFlowVersionId">;
|
|
449
|
+
readonly versionNumber: Schema.Finite;
|
|
450
|
+
readonly wabaId: Schema.String;
|
|
451
|
+
readonly providerFlowId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
452
|
+
readonly name: Schema.String;
|
|
453
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"published">, Schema.Literal<"throttled">, Schema.Literal<"blocked">, Schema.Literal<"deprecated">]>;
|
|
454
|
+
readonly validationErrors: Schema.$Array<Schema.Struct<{
|
|
455
|
+
readonly error: Schema.String;
|
|
456
|
+
readonly message: Schema.String;
|
|
457
|
+
readonly path: Schema.optionalKey<Schema.String>;
|
|
458
|
+
readonly line: Schema.optionalKey<Schema.Finite>;
|
|
459
|
+
readonly column: Schema.optionalKey<Schema.Finite>;
|
|
460
|
+
}>>;
|
|
461
|
+
readonly endpointAlerts: Schema.$Array<Schema.Struct<{
|
|
462
|
+
readonly kind: Schema.String;
|
|
463
|
+
readonly message: Schema.String;
|
|
464
|
+
readonly value: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
465
|
+
readonly threshold: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
466
|
+
readonly activatedAt: Schema.String;
|
|
467
|
+
}>>;
|
|
468
|
+
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
469
|
+
readonly statusChangedAt: Schema.String;
|
|
470
|
+
readonly createdAt: Schema.String;
|
|
471
|
+
readonly updatedAt: Schema.String;
|
|
472
|
+
}>>;
|
|
473
|
+
}>;
|
|
474
|
+
export type WhatsappFlowsListRegistrations400 = MalformedRequestError;
|
|
475
|
+
export declare const WhatsappFlowsListRegistrations400: typeof MalformedRequestError;
|
|
476
|
+
export type WhatsappFlowsListRegistrations401 = UnauthorizedError;
|
|
477
|
+
export declare const WhatsappFlowsListRegistrations401: typeof UnauthorizedError;
|
|
478
|
+
export type WhatsappFlowsListRegistrations403 = FlagDisabledError | ForbiddenError;
|
|
479
|
+
export declare const WhatsappFlowsListRegistrations403: Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]>;
|
|
480
|
+
export type WhatsappFlowsListRegistrations404 = ResourceNotFoundError;
|
|
481
|
+
export declare const WhatsappFlowsListRegistrations404: typeof ResourceNotFoundError;
|
|
482
|
+
export type WhatsappFlowsListRegistrations422 = ValidationError;
|
|
483
|
+
export declare const WhatsappFlowsListRegistrations422: typeof ValidationError;
|
|
484
|
+
export type WhatsappFlowsListRegistrations500 = InternalError;
|
|
485
|
+
export declare const WhatsappFlowsListRegistrations500: typeof InternalError;
|
|
486
|
+
export type WhatsappFlowsListRegistrations504 = GatewayTimeoutError;
|
|
487
|
+
export declare const WhatsappFlowsListRegistrations504: typeof GatewayTimeoutError;
|
|
488
|
+
export type WhatsappFlowsRegisterPathParams = {
|
|
489
|
+
readonly id: WhatsAppFlowId;
|
|
490
|
+
};
|
|
491
|
+
export declare const WhatsappFlowsRegisterPathParams: Schema.Struct<{
|
|
492
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
493
|
+
}>;
|
|
494
|
+
export type WhatsappFlowsRegisterRequestJson = {
|
|
495
|
+
readonly businessAccountId?: WhatsAppBusinessAccountId;
|
|
496
|
+
};
|
|
497
|
+
export declare const WhatsappFlowsRegisterRequestJson: Schema.Struct<{
|
|
498
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
499
|
+
}>;
|
|
500
|
+
export type WhatsappFlowsRegister201 = WhatsAppFlowRegistration;
|
|
501
|
+
export declare const WhatsappFlowsRegister201: Schema.Struct<{
|
|
502
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowRegistrationId">;
|
|
503
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
504
|
+
readonly versionId: Schema.brand<Schema.String, "WhatsAppFlowVersionId">;
|
|
505
|
+
readonly versionNumber: Schema.Finite;
|
|
506
|
+
readonly wabaId: Schema.String;
|
|
507
|
+
readonly providerFlowId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
508
|
+
readonly name: Schema.String;
|
|
509
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"published">, Schema.Literal<"throttled">, Schema.Literal<"blocked">, Schema.Literal<"deprecated">]>;
|
|
510
|
+
readonly validationErrors: Schema.$Array<Schema.Struct<{
|
|
511
|
+
readonly error: Schema.String;
|
|
512
|
+
readonly message: Schema.String;
|
|
513
|
+
readonly path: Schema.optionalKey<Schema.String>;
|
|
514
|
+
readonly line: Schema.optionalKey<Schema.Finite>;
|
|
515
|
+
readonly column: Schema.optionalKey<Schema.Finite>;
|
|
516
|
+
}>>;
|
|
517
|
+
readonly endpointAlerts: Schema.$Array<Schema.Struct<{
|
|
518
|
+
readonly kind: Schema.String;
|
|
519
|
+
readonly message: Schema.String;
|
|
520
|
+
readonly value: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
521
|
+
readonly threshold: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
522
|
+
readonly activatedAt: Schema.String;
|
|
523
|
+
}>>;
|
|
524
|
+
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
525
|
+
readonly statusChangedAt: Schema.String;
|
|
526
|
+
readonly createdAt: Schema.String;
|
|
527
|
+
readonly updatedAt: Schema.String;
|
|
528
|
+
}>;
|
|
529
|
+
export type WhatsappFlowsRegister400 = MalformedRequestError;
|
|
530
|
+
export declare const WhatsappFlowsRegister400: typeof MalformedRequestError;
|
|
531
|
+
export type WhatsappFlowsRegister401 = UnauthorizedError;
|
|
532
|
+
export declare const WhatsappFlowsRegister401: typeof UnauthorizedError;
|
|
533
|
+
export type WhatsappFlowsRegister403 = FlagDisabledError | ForbiddenError;
|
|
534
|
+
export declare const WhatsappFlowsRegister403: Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]>;
|
|
535
|
+
export type WhatsappFlowsRegister404 = ResourceNotFoundError;
|
|
536
|
+
export declare const WhatsappFlowsRegister404: typeof ResourceNotFoundError;
|
|
537
|
+
export type WhatsappFlowsRegister409 = ConflictError;
|
|
538
|
+
export declare const WhatsappFlowsRegister409: typeof ConflictError;
|
|
539
|
+
export type WhatsappFlowsRegister422 = ValidationError;
|
|
540
|
+
export declare const WhatsappFlowsRegister422: typeof ValidationError;
|
|
541
|
+
export type WhatsappFlowsRegister500 = CredentialsError | InternalError;
|
|
542
|
+
export declare const WhatsappFlowsRegister500: Schema.Union<readonly [typeof CredentialsError, typeof InternalError]>;
|
|
543
|
+
export type WhatsappFlowsRegister502 = WhatsAppChannelError;
|
|
544
|
+
export declare const WhatsappFlowsRegister502: typeof WhatsAppChannelError;
|
|
545
|
+
export type WhatsappFlowsRegister504 = GatewayTimeoutError;
|
|
546
|
+
export declare const WhatsappFlowsRegister504: typeof GatewayTimeoutError;
|
|
547
|
+
export type WhatsappFlowsListVersionsPathParams = {
|
|
548
|
+
readonly id: WhatsAppFlowId;
|
|
549
|
+
};
|
|
550
|
+
export declare const WhatsappFlowsListVersionsPathParams: Schema.Struct<{
|
|
551
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
552
|
+
}>;
|
|
553
|
+
export type WhatsappFlowsListVersions200 = WhatsAppFlowVersionList;
|
|
554
|
+
export declare const WhatsappFlowsListVersions200: Schema.Struct<{
|
|
555
|
+
readonly data: Schema.$Array<Schema.Struct<{
|
|
556
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowVersionId">;
|
|
557
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
558
|
+
readonly number: Schema.Finite;
|
|
559
|
+
readonly commitSha: Schema.String;
|
|
560
|
+
readonly digest: Schema.String;
|
|
561
|
+
readonly jsonVersion: Schema.String;
|
|
562
|
+
readonly screens: Schema.$Array<Schema.String>;
|
|
563
|
+
readonly dataExchange: Schema.Boolean;
|
|
564
|
+
readonly createdAt: Schema.String;
|
|
565
|
+
}>>;
|
|
566
|
+
}>;
|
|
567
|
+
export type WhatsappFlowsListVersions400 = MalformedRequestError;
|
|
568
|
+
export declare const WhatsappFlowsListVersions400: typeof MalformedRequestError;
|
|
569
|
+
export type WhatsappFlowsListVersions401 = UnauthorizedError;
|
|
570
|
+
export declare const WhatsappFlowsListVersions401: typeof UnauthorizedError;
|
|
571
|
+
export type WhatsappFlowsListVersions403 = FlagDisabledError | ForbiddenError;
|
|
572
|
+
export declare const WhatsappFlowsListVersions403: Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]>;
|
|
573
|
+
export type WhatsappFlowsListVersions404 = ResourceNotFoundError;
|
|
574
|
+
export declare const WhatsappFlowsListVersions404: typeof ResourceNotFoundError;
|
|
575
|
+
export type WhatsappFlowsListVersions422 = ValidationError;
|
|
576
|
+
export declare const WhatsappFlowsListVersions422: typeof ValidationError;
|
|
577
|
+
export type WhatsappFlowsListVersions500 = InternalError;
|
|
578
|
+
export declare const WhatsappFlowsListVersions500: typeof InternalError;
|
|
579
|
+
export type WhatsappFlowsListVersions504 = GatewayTimeoutError;
|
|
580
|
+
export declare const WhatsappFlowsListVersions504: typeof GatewayTimeoutError;
|
|
581
|
+
export type WhatsappFlowsRecordVersionPathParams = {
|
|
582
|
+
readonly id: WhatsAppFlowId;
|
|
583
|
+
};
|
|
584
|
+
export declare const WhatsappFlowsRecordVersionPathParams: Schema.Struct<{
|
|
585
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
586
|
+
}>;
|
|
587
|
+
export type WhatsappFlowsRecordVersionRequestJson = {
|
|
588
|
+
readonly commitSha: string;
|
|
589
|
+
readonly expectedWorkspaceRevision: string;
|
|
590
|
+
};
|
|
591
|
+
export declare const WhatsappFlowsRecordVersionRequestJson: Schema.Struct<{
|
|
592
|
+
readonly commitSha: Schema.String;
|
|
593
|
+
readonly expectedWorkspaceRevision: Schema.String;
|
|
594
|
+
}>;
|
|
595
|
+
export type WhatsappFlowsRecordVersion201 = WhatsAppFlowVersion;
|
|
596
|
+
export declare const WhatsappFlowsRecordVersion201: Schema.Struct<{
|
|
597
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowVersionId">;
|
|
598
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
599
|
+
readonly number: Schema.Finite;
|
|
600
|
+
readonly commitSha: Schema.String;
|
|
601
|
+
readonly digest: Schema.String;
|
|
602
|
+
readonly jsonVersion: Schema.String;
|
|
603
|
+
readonly screens: Schema.$Array<Schema.String>;
|
|
604
|
+
readonly dataExchange: Schema.Boolean;
|
|
605
|
+
readonly createdAt: Schema.String;
|
|
606
|
+
}>;
|
|
607
|
+
export type WhatsappFlowsRecordVersion400 = MalformedRequestError;
|
|
608
|
+
export declare const WhatsappFlowsRecordVersion400: typeof MalformedRequestError;
|
|
609
|
+
export type WhatsappFlowsRecordVersion401 = UnauthorizedError;
|
|
610
|
+
export declare const WhatsappFlowsRecordVersion401: typeof UnauthorizedError;
|
|
611
|
+
export type WhatsappFlowsRecordVersion403 = FlagDisabledError | ForbiddenError;
|
|
612
|
+
export declare const WhatsappFlowsRecordVersion403: Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]>;
|
|
613
|
+
export type WhatsappFlowsRecordVersion404 = ResourceNotFoundError;
|
|
614
|
+
export declare const WhatsappFlowsRecordVersion404: typeof ResourceNotFoundError;
|
|
615
|
+
export type WhatsappFlowsRecordVersion409 = ConflictError;
|
|
616
|
+
export declare const WhatsappFlowsRecordVersion409: typeof ConflictError;
|
|
617
|
+
export type WhatsappFlowsRecordVersion422 = ValidationError;
|
|
618
|
+
export declare const WhatsappFlowsRecordVersion422: typeof ValidationError;
|
|
619
|
+
export type WhatsappFlowsRecordVersion500 = InternalError;
|
|
620
|
+
export declare const WhatsappFlowsRecordVersion500: typeof InternalError;
|
|
621
|
+
export type WhatsappFlowsRecordVersion503 = ServiceUnavailableError;
|
|
622
|
+
export declare const WhatsappFlowsRecordVersion503: typeof ServiceUnavailableError;
|
|
623
|
+
export type WhatsappFlowsRecordVersion504 = GatewayTimeoutError;
|
|
624
|
+
export declare const WhatsappFlowsRecordVersion504: typeof GatewayTimeoutError;
|
|
625
|
+
export type WhatsappFlowsRotateEncryptionKeyRequestJson = {
|
|
626
|
+
readonly businessAccountId?: WhatsAppBusinessAccountId;
|
|
627
|
+
};
|
|
628
|
+
export declare const WhatsappFlowsRotateEncryptionKeyRequestJson: Schema.Struct<{
|
|
629
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
630
|
+
}>;
|
|
631
|
+
export type WhatsappFlowsRotateEncryptionKey200 = WhatsAppFlowEncryptionKey;
|
|
632
|
+
export declare const WhatsappFlowsRotateEncryptionKey200: Schema.Struct<{
|
|
633
|
+
readonly wabaId: Schema.String;
|
|
634
|
+
readonly publicKey: Schema.String;
|
|
635
|
+
readonly phoneNumberIds: Schema.$Array<Schema.String>;
|
|
636
|
+
readonly createdAt: Schema.String;
|
|
637
|
+
}>;
|
|
638
|
+
export type WhatsappFlowsRotateEncryptionKey400 = MalformedRequestError;
|
|
639
|
+
export declare const WhatsappFlowsRotateEncryptionKey400: typeof MalformedRequestError;
|
|
640
|
+
export type WhatsappFlowsRotateEncryptionKey401 = UnauthorizedError;
|
|
641
|
+
export declare const WhatsappFlowsRotateEncryptionKey401: typeof UnauthorizedError;
|
|
642
|
+
export type WhatsappFlowsRotateEncryptionKey403 = FlagDisabledError | ForbiddenError;
|
|
643
|
+
export declare const WhatsappFlowsRotateEncryptionKey403: Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]>;
|
|
644
|
+
export type WhatsappFlowsRotateEncryptionKey404 = ResourceNotFoundError;
|
|
645
|
+
export declare const WhatsappFlowsRotateEncryptionKey404: typeof ResourceNotFoundError;
|
|
646
|
+
export type WhatsappFlowsRotateEncryptionKey422 = ValidationError;
|
|
647
|
+
export declare const WhatsappFlowsRotateEncryptionKey422: typeof ValidationError;
|
|
648
|
+
export type WhatsappFlowsRotateEncryptionKey500 = CredentialsError | InternalError;
|
|
649
|
+
export declare const WhatsappFlowsRotateEncryptionKey500: Schema.Union<readonly [typeof CredentialsError, typeof InternalError]>;
|
|
650
|
+
export type WhatsappFlowsRotateEncryptionKey502 = WhatsAppChannelError;
|
|
651
|
+
export declare const WhatsappFlowsRotateEncryptionKey502: typeof WhatsAppChannelError;
|
|
652
|
+
export type WhatsappFlowsRotateEncryptionKey504 = GatewayTimeoutError;
|
|
653
|
+
export declare const WhatsappFlowsRotateEncryptionKey504: typeof GatewayTimeoutError;
|
|
654
|
+
declare const WhatsAppFlowsGroup_base: HttpApiGroup.HttpApiGroup<"WhatsApp flows", HttpApiEndpoint.HttpApiEndpoint<"whatsappFlowsCreate", "POST", "/v1/whatsapp/flows", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
655
|
+
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
656
|
+
readonly handle: Schema.String;
|
|
657
|
+
readonly categories: Schema.$Array<Schema.Union<readonly [Schema.Literal<"SIGN_UP">, Schema.Literal<"SIGN_IN">, Schema.Literal<"APPOINTMENT_BOOKING">, Schema.Literal<"LEAD_GENERATION">, Schema.Literal<"CONTACT_US">, Schema.Literal<"CUSTOMER_SUPPORT">, Schema.Literal<"SURVEY">, Schema.Literal<"OTHER">]>>;
|
|
658
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
659
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
660
|
+
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
661
|
+
readonly handle: Schema.String;
|
|
662
|
+
readonly path: Schema.String;
|
|
663
|
+
readonly categories: Schema.$Array<Schema.Union<readonly [Schema.Literal<"SIGN_UP">, Schema.Literal<"SIGN_IN">, Schema.Literal<"APPOINTMENT_BOOKING">, Schema.Literal<"LEAD_GENERATION">, Schema.Literal<"CONTACT_US">, Schema.Literal<"CUSTOMER_SUPPORT">, Schema.Literal<"SURVEY">, Schema.Literal<"OTHER">]>>;
|
|
664
|
+
readonly endpoint: Schema.Union<readonly [Schema.Struct<{
|
|
665
|
+
readonly url: Schema.String;
|
|
666
|
+
readonly updatedAt: Schema.String;
|
|
667
|
+
}>, Schema.Null]>;
|
|
668
|
+
readonly currentVersion: Schema.Union<readonly [Schema.Struct<{
|
|
669
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowVersionId">;
|
|
670
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
671
|
+
readonly number: Schema.Finite;
|
|
672
|
+
readonly commitSha: Schema.String;
|
|
673
|
+
readonly digest: Schema.String;
|
|
674
|
+
readonly jsonVersion: Schema.String;
|
|
675
|
+
readonly screens: Schema.$Array<Schema.String>;
|
|
676
|
+
readonly dataExchange: Schema.Boolean;
|
|
677
|
+
readonly createdAt: Schema.String;
|
|
678
|
+
}>, Schema.Null]>;
|
|
679
|
+
readonly createdAt: Schema.String;
|
|
680
|
+
readonly updatedAt: Schema.String;
|
|
681
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
682
|
+
readonly _tag: "ConflictError";
|
|
683
|
+
readonly message: string;
|
|
684
|
+
readonly resource: string;
|
|
685
|
+
readonly id?: string | null;
|
|
686
|
+
}, readonly [Schema.Struct<{
|
|
687
|
+
readonly _tag: Schema.tag<"ConflictError">;
|
|
688
|
+
readonly message: Schema.String;
|
|
689
|
+
readonly resource: Schema.String;
|
|
690
|
+
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
691
|
+
}>], {
|
|
692
|
+
readonly _tag: "ConflictError";
|
|
693
|
+
readonly message: string;
|
|
694
|
+
readonly resource: string;
|
|
695
|
+
readonly id?: string | null;
|
|
696
|
+
}>, Schema.Struct<{
|
|
697
|
+
readonly _tag: Schema.tag<"ConflictError">;
|
|
698
|
+
readonly message: Schema.String;
|
|
699
|
+
readonly resource: Schema.String;
|
|
700
|
+
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
701
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
702
|
+
readonly _tag: "GatewayTimeoutError";
|
|
703
|
+
readonly message: string;
|
|
704
|
+
readonly retryAfterSeconds: number;
|
|
705
|
+
}, readonly [Schema.Struct<{
|
|
706
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
707
|
+
readonly message: Schema.String;
|
|
708
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
709
|
+
}>], {
|
|
710
|
+
readonly _tag: "GatewayTimeoutError";
|
|
711
|
+
readonly message: string;
|
|
712
|
+
readonly retryAfterSeconds: number;
|
|
713
|
+
}>, Schema.Struct<{
|
|
714
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
715
|
+
readonly message: Schema.String;
|
|
716
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
717
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
718
|
+
readonly _tag: "MalformedRequestError";
|
|
719
|
+
readonly message: string;
|
|
720
|
+
readonly fields: {
|
|
721
|
+
readonly [x: string]: readonly string[];
|
|
722
|
+
};
|
|
723
|
+
}, readonly [Schema.Struct<{
|
|
724
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
725
|
+
readonly message: Schema.String;
|
|
726
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
727
|
+
}>], {
|
|
728
|
+
readonly _tag: "MalformedRequestError";
|
|
729
|
+
readonly message: string;
|
|
730
|
+
readonly fields: {
|
|
731
|
+
readonly [x: string]: readonly string[];
|
|
732
|
+
};
|
|
733
|
+
}>, Schema.Struct<{
|
|
734
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
735
|
+
readonly message: Schema.String;
|
|
736
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
737
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
738
|
+
readonly _tag: "ResourceNotFoundError";
|
|
739
|
+
readonly resource: string;
|
|
740
|
+
readonly id: string;
|
|
741
|
+
readonly message: string;
|
|
742
|
+
}, readonly [Schema.Struct<{
|
|
743
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
744
|
+
readonly resource: Schema.String;
|
|
745
|
+
readonly id: Schema.String;
|
|
746
|
+
readonly message: Schema.String;
|
|
747
|
+
}>], {
|
|
748
|
+
readonly _tag: "ResourceNotFoundError";
|
|
749
|
+
readonly resource: string;
|
|
750
|
+
readonly id: string;
|
|
751
|
+
readonly message: string;
|
|
752
|
+
}>, Schema.Struct<{
|
|
753
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
754
|
+
readonly resource: Schema.String;
|
|
755
|
+
readonly id: Schema.String;
|
|
756
|
+
readonly message: Schema.String;
|
|
757
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
758
|
+
readonly _tag: "UnauthorizedError";
|
|
759
|
+
readonly message: string;
|
|
760
|
+
}, readonly [Schema.Struct<{
|
|
761
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
762
|
+
readonly message: Schema.String;
|
|
763
|
+
}>], {
|
|
764
|
+
readonly _tag: "UnauthorizedError";
|
|
765
|
+
readonly message: string;
|
|
766
|
+
}>, Schema.Struct<{
|
|
767
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
768
|
+
readonly message: Schema.String;
|
|
769
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
770
|
+
readonly _tag: "ValidationError";
|
|
771
|
+
readonly message: string;
|
|
772
|
+
readonly fields?: {
|
|
773
|
+
readonly [x: string]: readonly string[];
|
|
774
|
+
} | null;
|
|
775
|
+
}, readonly [Schema.Struct<{
|
|
776
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
777
|
+
readonly message: Schema.String;
|
|
778
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
779
|
+
}>], {
|
|
780
|
+
readonly _tag: "ValidationError";
|
|
781
|
+
readonly message: string;
|
|
782
|
+
readonly fields?: {
|
|
783
|
+
readonly [x: string]: readonly string[];
|
|
784
|
+
} | null;
|
|
785
|
+
}>, Schema.Struct<{
|
|
786
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
787
|
+
readonly message: Schema.String;
|
|
788
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
789
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"whatsappFlowsGet", "GET", "/v1/whatsapp/flows/:id", Schema.toCodecStringTree<Schema.Struct<{
|
|
790
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
791
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
792
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
793
|
+
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
794
|
+
readonly handle: Schema.String;
|
|
795
|
+
readonly path: Schema.String;
|
|
796
|
+
readonly categories: Schema.$Array<Schema.Union<readonly [Schema.Literal<"SIGN_UP">, Schema.Literal<"SIGN_IN">, Schema.Literal<"APPOINTMENT_BOOKING">, Schema.Literal<"LEAD_GENERATION">, Schema.Literal<"CONTACT_US">, Schema.Literal<"CUSTOMER_SUPPORT">, Schema.Literal<"SURVEY">, Schema.Literal<"OTHER">]>>;
|
|
797
|
+
readonly endpoint: Schema.Union<readonly [Schema.Struct<{
|
|
798
|
+
readonly url: Schema.String;
|
|
799
|
+
readonly updatedAt: Schema.String;
|
|
800
|
+
}>, Schema.Null]>;
|
|
801
|
+
readonly currentVersion: Schema.Union<readonly [Schema.Struct<{
|
|
802
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowVersionId">;
|
|
803
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
804
|
+
readonly number: Schema.Finite;
|
|
805
|
+
readonly commitSha: Schema.String;
|
|
806
|
+
readonly digest: Schema.String;
|
|
807
|
+
readonly jsonVersion: Schema.String;
|
|
808
|
+
readonly screens: Schema.$Array<Schema.String>;
|
|
809
|
+
readonly dataExchange: Schema.Boolean;
|
|
810
|
+
readonly createdAt: Schema.String;
|
|
811
|
+
}>, Schema.Null]>;
|
|
812
|
+
readonly createdAt: Schema.String;
|
|
813
|
+
readonly updatedAt: Schema.String;
|
|
814
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
815
|
+
readonly _tag: "GatewayTimeoutError";
|
|
816
|
+
readonly message: string;
|
|
817
|
+
readonly retryAfterSeconds: number;
|
|
818
|
+
}, readonly [Schema.Struct<{
|
|
819
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
820
|
+
readonly message: Schema.String;
|
|
821
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
822
|
+
}>], {
|
|
823
|
+
readonly _tag: "GatewayTimeoutError";
|
|
824
|
+
readonly message: string;
|
|
825
|
+
readonly retryAfterSeconds: number;
|
|
826
|
+
}>, Schema.Struct<{
|
|
827
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
828
|
+
readonly message: Schema.String;
|
|
829
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
830
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
831
|
+
readonly _tag: "MalformedRequestError";
|
|
832
|
+
readonly message: string;
|
|
833
|
+
readonly fields: {
|
|
834
|
+
readonly [x: string]: readonly string[];
|
|
835
|
+
};
|
|
836
|
+
}, readonly [Schema.Struct<{
|
|
837
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
838
|
+
readonly message: Schema.String;
|
|
839
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
840
|
+
}>], {
|
|
841
|
+
readonly _tag: "MalformedRequestError";
|
|
842
|
+
readonly message: string;
|
|
843
|
+
readonly fields: {
|
|
844
|
+
readonly [x: string]: readonly string[];
|
|
845
|
+
};
|
|
846
|
+
}>, Schema.Struct<{
|
|
847
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
848
|
+
readonly message: Schema.String;
|
|
849
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
850
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
851
|
+
readonly _tag: "ResourceNotFoundError";
|
|
852
|
+
readonly resource: string;
|
|
853
|
+
readonly id: string;
|
|
854
|
+
readonly message: string;
|
|
855
|
+
}, readonly [Schema.Struct<{
|
|
856
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
857
|
+
readonly resource: Schema.String;
|
|
858
|
+
readonly id: Schema.String;
|
|
859
|
+
readonly message: Schema.String;
|
|
860
|
+
}>], {
|
|
861
|
+
readonly _tag: "ResourceNotFoundError";
|
|
862
|
+
readonly resource: string;
|
|
863
|
+
readonly id: string;
|
|
864
|
+
readonly message: string;
|
|
865
|
+
}>, Schema.Struct<{
|
|
866
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
867
|
+
readonly resource: Schema.String;
|
|
868
|
+
readonly id: Schema.String;
|
|
869
|
+
readonly message: Schema.String;
|
|
870
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
871
|
+
readonly _tag: "UnauthorizedError";
|
|
872
|
+
readonly message: string;
|
|
873
|
+
}, readonly [Schema.Struct<{
|
|
874
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
875
|
+
readonly message: Schema.String;
|
|
876
|
+
}>], {
|
|
877
|
+
readonly _tag: "UnauthorizedError";
|
|
878
|
+
readonly message: string;
|
|
879
|
+
}>, Schema.Struct<{
|
|
880
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
881
|
+
readonly message: Schema.String;
|
|
882
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
883
|
+
readonly _tag: "ValidationError";
|
|
884
|
+
readonly message: string;
|
|
885
|
+
readonly fields?: {
|
|
886
|
+
readonly [x: string]: readonly string[];
|
|
887
|
+
} | null;
|
|
888
|
+
}, readonly [Schema.Struct<{
|
|
889
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
890
|
+
readonly message: Schema.String;
|
|
891
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
892
|
+
}>], {
|
|
893
|
+
readonly _tag: "ValidationError";
|
|
894
|
+
readonly message: string;
|
|
895
|
+
readonly fields?: {
|
|
896
|
+
readonly [x: string]: readonly string[];
|
|
897
|
+
} | null;
|
|
898
|
+
}>, Schema.Struct<{
|
|
899
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
900
|
+
readonly message: Schema.String;
|
|
901
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
902
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"whatsappFlowsList", "GET", "/v1/whatsapp/flows", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
903
|
+
readonly data: Schema.$Array<Schema.Struct<{
|
|
904
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
905
|
+
readonly projectId: Schema.brand<Schema.String, "TemplateProjectId">;
|
|
906
|
+
readonly handle: Schema.String;
|
|
907
|
+
readonly path: Schema.String;
|
|
908
|
+
readonly categories: Schema.$Array<Schema.Union<readonly [Schema.Literal<"SIGN_UP">, Schema.Literal<"SIGN_IN">, Schema.Literal<"APPOINTMENT_BOOKING">, Schema.Literal<"LEAD_GENERATION">, Schema.Literal<"CONTACT_US">, Schema.Literal<"CUSTOMER_SUPPORT">, Schema.Literal<"SURVEY">, Schema.Literal<"OTHER">]>>;
|
|
909
|
+
readonly endpoint: Schema.Union<readonly [Schema.Struct<{
|
|
910
|
+
readonly url: Schema.String;
|
|
911
|
+
readonly updatedAt: Schema.String;
|
|
912
|
+
}>, Schema.Null]>;
|
|
913
|
+
readonly currentVersion: Schema.Union<readonly [Schema.Struct<{
|
|
914
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowVersionId">;
|
|
915
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
916
|
+
readonly number: Schema.Finite;
|
|
917
|
+
readonly commitSha: Schema.String;
|
|
918
|
+
readonly digest: Schema.String;
|
|
919
|
+
readonly jsonVersion: Schema.String;
|
|
920
|
+
readonly screens: Schema.$Array<Schema.String>;
|
|
921
|
+
readonly dataExchange: Schema.Boolean;
|
|
922
|
+
readonly createdAt: Schema.String;
|
|
923
|
+
}>, Schema.Null]>;
|
|
924
|
+
readonly createdAt: Schema.String;
|
|
925
|
+
readonly updatedAt: Schema.String;
|
|
926
|
+
}>>;
|
|
927
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
928
|
+
readonly _tag: "GatewayTimeoutError";
|
|
929
|
+
readonly message: string;
|
|
930
|
+
readonly retryAfterSeconds: number;
|
|
931
|
+
}, readonly [Schema.Struct<{
|
|
932
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
933
|
+
readonly message: Schema.String;
|
|
934
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
935
|
+
}>], {
|
|
936
|
+
readonly _tag: "GatewayTimeoutError";
|
|
937
|
+
readonly message: string;
|
|
938
|
+
readonly retryAfterSeconds: number;
|
|
939
|
+
}>, Schema.Struct<{
|
|
940
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
941
|
+
readonly message: Schema.String;
|
|
942
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
943
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
944
|
+
readonly _tag: "MalformedRequestError";
|
|
945
|
+
readonly message: string;
|
|
946
|
+
readonly fields: {
|
|
947
|
+
readonly [x: string]: readonly string[];
|
|
948
|
+
};
|
|
949
|
+
}, readonly [Schema.Struct<{
|
|
950
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
951
|
+
readonly message: Schema.String;
|
|
952
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
953
|
+
}>], {
|
|
954
|
+
readonly _tag: "MalformedRequestError";
|
|
955
|
+
readonly message: string;
|
|
956
|
+
readonly fields: {
|
|
957
|
+
readonly [x: string]: readonly string[];
|
|
958
|
+
};
|
|
959
|
+
}>, Schema.Struct<{
|
|
960
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
961
|
+
readonly message: Schema.String;
|
|
962
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
963
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
964
|
+
readonly _tag: "UnauthorizedError";
|
|
965
|
+
readonly message: string;
|
|
966
|
+
}, readonly [Schema.Struct<{
|
|
967
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
968
|
+
readonly message: Schema.String;
|
|
969
|
+
}>], {
|
|
970
|
+
readonly _tag: "UnauthorizedError";
|
|
971
|
+
readonly message: string;
|
|
972
|
+
}>, Schema.Struct<{
|
|
973
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
974
|
+
readonly message: Schema.String;
|
|
975
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
976
|
+
readonly _tag: "ValidationError";
|
|
977
|
+
readonly message: string;
|
|
978
|
+
readonly fields?: {
|
|
979
|
+
readonly [x: string]: readonly string[];
|
|
980
|
+
} | null;
|
|
981
|
+
}, readonly [Schema.Struct<{
|
|
982
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
983
|
+
readonly message: Schema.String;
|
|
984
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
985
|
+
}>], {
|
|
986
|
+
readonly _tag: "ValidationError";
|
|
987
|
+
readonly message: string;
|
|
988
|
+
readonly fields?: {
|
|
989
|
+
readonly [x: string]: readonly string[];
|
|
990
|
+
} | null;
|
|
991
|
+
}>, Schema.Struct<{
|
|
992
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
993
|
+
readonly message: Schema.String;
|
|
994
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
995
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"whatsappFlowsListRegistrations", "GET", "/v1/whatsapp/flows/:id/registrations", Schema.toCodecStringTree<Schema.Struct<{
|
|
996
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
997
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
998
|
+
readonly data: Schema.$Array<Schema.Struct<{
|
|
999
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowRegistrationId">;
|
|
1000
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
1001
|
+
readonly versionId: Schema.brand<Schema.String, "WhatsAppFlowVersionId">;
|
|
1002
|
+
readonly versionNumber: Schema.Finite;
|
|
1003
|
+
readonly wabaId: Schema.String;
|
|
1004
|
+
readonly providerFlowId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1005
|
+
readonly name: Schema.String;
|
|
1006
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"published">, Schema.Literal<"throttled">, Schema.Literal<"blocked">, Schema.Literal<"deprecated">]>;
|
|
1007
|
+
readonly validationErrors: Schema.$Array<Schema.Struct<{
|
|
1008
|
+
readonly error: Schema.String;
|
|
1009
|
+
readonly message: Schema.String;
|
|
1010
|
+
readonly path: Schema.optionalKey<Schema.String>;
|
|
1011
|
+
readonly line: Schema.optionalKey<Schema.Finite>;
|
|
1012
|
+
readonly column: Schema.optionalKey<Schema.Finite>;
|
|
1013
|
+
}>>;
|
|
1014
|
+
readonly endpointAlerts: Schema.$Array<Schema.Struct<{
|
|
1015
|
+
readonly kind: Schema.String;
|
|
1016
|
+
readonly message: Schema.String;
|
|
1017
|
+
readonly value: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
1018
|
+
readonly threshold: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
1019
|
+
readonly activatedAt: Schema.String;
|
|
1020
|
+
}>>;
|
|
1021
|
+
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1022
|
+
readonly statusChangedAt: Schema.String;
|
|
1023
|
+
readonly createdAt: Schema.String;
|
|
1024
|
+
readonly updatedAt: Schema.String;
|
|
1025
|
+
}>>;
|
|
1026
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
1027
|
+
readonly _tag: "GatewayTimeoutError";
|
|
1028
|
+
readonly message: string;
|
|
1029
|
+
readonly retryAfterSeconds: number;
|
|
1030
|
+
}, readonly [Schema.Struct<{
|
|
1031
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1032
|
+
readonly message: Schema.String;
|
|
1033
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
1034
|
+
}>], {
|
|
1035
|
+
readonly _tag: "GatewayTimeoutError";
|
|
1036
|
+
readonly message: string;
|
|
1037
|
+
readonly retryAfterSeconds: number;
|
|
1038
|
+
}>, Schema.Struct<{
|
|
1039
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1040
|
+
readonly message: Schema.String;
|
|
1041
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
1042
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
1043
|
+
readonly _tag: "MalformedRequestError";
|
|
1044
|
+
readonly message: string;
|
|
1045
|
+
readonly fields: {
|
|
1046
|
+
readonly [x: string]: readonly string[];
|
|
1047
|
+
};
|
|
1048
|
+
}, readonly [Schema.Struct<{
|
|
1049
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1050
|
+
readonly message: Schema.String;
|
|
1051
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1052
|
+
}>], {
|
|
1053
|
+
readonly _tag: "MalformedRequestError";
|
|
1054
|
+
readonly message: string;
|
|
1055
|
+
readonly fields: {
|
|
1056
|
+
readonly [x: string]: readonly string[];
|
|
1057
|
+
};
|
|
1058
|
+
}>, Schema.Struct<{
|
|
1059
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1060
|
+
readonly message: Schema.String;
|
|
1061
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1062
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
1063
|
+
readonly _tag: "ResourceNotFoundError";
|
|
1064
|
+
readonly resource: string;
|
|
1065
|
+
readonly id: string;
|
|
1066
|
+
readonly message: string;
|
|
1067
|
+
}, readonly [Schema.Struct<{
|
|
1068
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
1069
|
+
readonly resource: Schema.String;
|
|
1070
|
+
readonly id: Schema.String;
|
|
1071
|
+
readonly message: Schema.String;
|
|
1072
|
+
}>], {
|
|
1073
|
+
readonly _tag: "ResourceNotFoundError";
|
|
1074
|
+
readonly resource: string;
|
|
1075
|
+
readonly id: string;
|
|
1076
|
+
readonly message: string;
|
|
1077
|
+
}>, Schema.Struct<{
|
|
1078
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
1079
|
+
readonly resource: Schema.String;
|
|
1080
|
+
readonly id: Schema.String;
|
|
1081
|
+
readonly message: Schema.String;
|
|
1082
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
1083
|
+
readonly _tag: "UnauthorizedError";
|
|
1084
|
+
readonly message: string;
|
|
1085
|
+
}, readonly [Schema.Struct<{
|
|
1086
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
1087
|
+
readonly message: Schema.String;
|
|
1088
|
+
}>], {
|
|
1089
|
+
readonly _tag: "UnauthorizedError";
|
|
1090
|
+
readonly message: string;
|
|
1091
|
+
}>, Schema.Struct<{
|
|
1092
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
1093
|
+
readonly message: Schema.String;
|
|
1094
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
1095
|
+
readonly _tag: "ValidationError";
|
|
1096
|
+
readonly message: string;
|
|
1097
|
+
readonly fields?: {
|
|
1098
|
+
readonly [x: string]: readonly string[];
|
|
1099
|
+
} | null;
|
|
1100
|
+
}, readonly [Schema.Struct<{
|
|
1101
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
1102
|
+
readonly message: Schema.String;
|
|
1103
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1104
|
+
}>], {
|
|
1105
|
+
readonly _tag: "ValidationError";
|
|
1106
|
+
readonly message: string;
|
|
1107
|
+
readonly fields?: {
|
|
1108
|
+
readonly [x: string]: readonly string[];
|
|
1109
|
+
} | null;
|
|
1110
|
+
}>, Schema.Struct<{
|
|
1111
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
1112
|
+
readonly message: Schema.String;
|
|
1113
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1114
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"whatsappFlowsListVersions", "GET", "/v1/whatsapp/flows/:id/versions", Schema.toCodecStringTree<Schema.Struct<{
|
|
1115
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
1116
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1117
|
+
readonly data: Schema.$Array<Schema.Struct<{
|
|
1118
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowVersionId">;
|
|
1119
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
1120
|
+
readonly number: Schema.Finite;
|
|
1121
|
+
readonly commitSha: Schema.String;
|
|
1122
|
+
readonly digest: Schema.String;
|
|
1123
|
+
readonly jsonVersion: Schema.String;
|
|
1124
|
+
readonly screens: Schema.$Array<Schema.String>;
|
|
1125
|
+
readonly dataExchange: Schema.Boolean;
|
|
1126
|
+
readonly createdAt: Schema.String;
|
|
1127
|
+
}>>;
|
|
1128
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
1129
|
+
readonly _tag: "GatewayTimeoutError";
|
|
1130
|
+
readonly message: string;
|
|
1131
|
+
readonly retryAfterSeconds: number;
|
|
1132
|
+
}, readonly [Schema.Struct<{
|
|
1133
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1134
|
+
readonly message: Schema.String;
|
|
1135
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
1136
|
+
}>], {
|
|
1137
|
+
readonly _tag: "GatewayTimeoutError";
|
|
1138
|
+
readonly message: string;
|
|
1139
|
+
readonly retryAfterSeconds: number;
|
|
1140
|
+
}>, Schema.Struct<{
|
|
1141
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1142
|
+
readonly message: Schema.String;
|
|
1143
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
1144
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
1145
|
+
readonly _tag: "MalformedRequestError";
|
|
1146
|
+
readonly message: string;
|
|
1147
|
+
readonly fields: {
|
|
1148
|
+
readonly [x: string]: readonly string[];
|
|
1149
|
+
};
|
|
1150
|
+
}, readonly [Schema.Struct<{
|
|
1151
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1152
|
+
readonly message: Schema.String;
|
|
1153
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1154
|
+
}>], {
|
|
1155
|
+
readonly _tag: "MalformedRequestError";
|
|
1156
|
+
readonly message: string;
|
|
1157
|
+
readonly fields: {
|
|
1158
|
+
readonly [x: string]: readonly string[];
|
|
1159
|
+
};
|
|
1160
|
+
}>, Schema.Struct<{
|
|
1161
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1162
|
+
readonly message: Schema.String;
|
|
1163
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1164
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
1165
|
+
readonly _tag: "ResourceNotFoundError";
|
|
1166
|
+
readonly resource: string;
|
|
1167
|
+
readonly id: string;
|
|
1168
|
+
readonly message: string;
|
|
1169
|
+
}, readonly [Schema.Struct<{
|
|
1170
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
1171
|
+
readonly resource: Schema.String;
|
|
1172
|
+
readonly id: Schema.String;
|
|
1173
|
+
readonly message: Schema.String;
|
|
1174
|
+
}>], {
|
|
1175
|
+
readonly _tag: "ResourceNotFoundError";
|
|
1176
|
+
readonly resource: string;
|
|
1177
|
+
readonly id: string;
|
|
1178
|
+
readonly message: string;
|
|
1179
|
+
}>, Schema.Struct<{
|
|
1180
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
1181
|
+
readonly resource: Schema.String;
|
|
1182
|
+
readonly id: Schema.String;
|
|
1183
|
+
readonly message: Schema.String;
|
|
1184
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
1185
|
+
readonly _tag: "UnauthorizedError";
|
|
1186
|
+
readonly message: string;
|
|
1187
|
+
}, readonly [Schema.Struct<{
|
|
1188
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
1189
|
+
readonly message: Schema.String;
|
|
1190
|
+
}>], {
|
|
1191
|
+
readonly _tag: "UnauthorizedError";
|
|
1192
|
+
readonly message: string;
|
|
1193
|
+
}>, Schema.Struct<{
|
|
1194
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
1195
|
+
readonly message: Schema.String;
|
|
1196
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
1197
|
+
readonly _tag: "ValidationError";
|
|
1198
|
+
readonly message: string;
|
|
1199
|
+
readonly fields?: {
|
|
1200
|
+
readonly [x: string]: readonly string[];
|
|
1201
|
+
} | null;
|
|
1202
|
+
}, readonly [Schema.Struct<{
|
|
1203
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
1204
|
+
readonly message: Schema.String;
|
|
1205
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1206
|
+
}>], {
|
|
1207
|
+
readonly _tag: "ValidationError";
|
|
1208
|
+
readonly message: string;
|
|
1209
|
+
readonly fields?: {
|
|
1210
|
+
readonly [x: string]: readonly string[];
|
|
1211
|
+
} | null;
|
|
1212
|
+
}>, Schema.Struct<{
|
|
1213
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
1214
|
+
readonly message: Schema.String;
|
|
1215
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1216
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"whatsappFlowsRecordVersion", "POST", "/v1/whatsapp/flows/:id/versions", Schema.toCodecStringTree<Schema.Struct<{
|
|
1217
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
1218
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1219
|
+
readonly commitSha: Schema.String;
|
|
1220
|
+
readonly expectedWorkspaceRevision: Schema.String;
|
|
1221
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1222
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowVersionId">;
|
|
1223
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
1224
|
+
readonly number: Schema.Finite;
|
|
1225
|
+
readonly commitSha: Schema.String;
|
|
1226
|
+
readonly digest: Schema.String;
|
|
1227
|
+
readonly jsonVersion: Schema.String;
|
|
1228
|
+
readonly screens: Schema.$Array<Schema.String>;
|
|
1229
|
+
readonly dataExchange: Schema.Boolean;
|
|
1230
|
+
readonly createdAt: Schema.String;
|
|
1231
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
1232
|
+
readonly _tag: "ConflictError";
|
|
1233
|
+
readonly message: string;
|
|
1234
|
+
readonly resource: string;
|
|
1235
|
+
readonly id?: string | null;
|
|
1236
|
+
}, readonly [Schema.Struct<{
|
|
1237
|
+
readonly _tag: Schema.tag<"ConflictError">;
|
|
1238
|
+
readonly message: Schema.String;
|
|
1239
|
+
readonly resource: Schema.String;
|
|
1240
|
+
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1241
|
+
}>], {
|
|
1242
|
+
readonly _tag: "ConflictError";
|
|
1243
|
+
readonly message: string;
|
|
1244
|
+
readonly resource: string;
|
|
1245
|
+
readonly id?: string | null;
|
|
1246
|
+
}>, Schema.Struct<{
|
|
1247
|
+
readonly _tag: Schema.tag<"ConflictError">;
|
|
1248
|
+
readonly message: Schema.String;
|
|
1249
|
+
readonly resource: Schema.String;
|
|
1250
|
+
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1251
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
1252
|
+
readonly _tag: "GatewayTimeoutError";
|
|
1253
|
+
readonly message: string;
|
|
1254
|
+
readonly retryAfterSeconds: number;
|
|
1255
|
+
}, readonly [Schema.Struct<{
|
|
1256
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1257
|
+
readonly message: Schema.String;
|
|
1258
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
1259
|
+
}>], {
|
|
1260
|
+
readonly _tag: "GatewayTimeoutError";
|
|
1261
|
+
readonly message: string;
|
|
1262
|
+
readonly retryAfterSeconds: number;
|
|
1263
|
+
}>, Schema.Struct<{
|
|
1264
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1265
|
+
readonly message: Schema.String;
|
|
1266
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
1267
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
1268
|
+
readonly _tag: "MalformedRequestError";
|
|
1269
|
+
readonly message: string;
|
|
1270
|
+
readonly fields: {
|
|
1271
|
+
readonly [x: string]: readonly string[];
|
|
1272
|
+
};
|
|
1273
|
+
}, readonly [Schema.Struct<{
|
|
1274
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1275
|
+
readonly message: Schema.String;
|
|
1276
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1277
|
+
}>], {
|
|
1278
|
+
readonly _tag: "MalformedRequestError";
|
|
1279
|
+
readonly message: string;
|
|
1280
|
+
readonly fields: {
|
|
1281
|
+
readonly [x: string]: readonly string[];
|
|
1282
|
+
};
|
|
1283
|
+
}>, Schema.Struct<{
|
|
1284
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1285
|
+
readonly message: Schema.String;
|
|
1286
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1287
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
1288
|
+
readonly _tag: "ResourceNotFoundError";
|
|
1289
|
+
readonly resource: string;
|
|
1290
|
+
readonly id: string;
|
|
1291
|
+
readonly message: string;
|
|
1292
|
+
}, readonly [Schema.Struct<{
|
|
1293
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
1294
|
+
readonly resource: Schema.String;
|
|
1295
|
+
readonly id: Schema.String;
|
|
1296
|
+
readonly message: Schema.String;
|
|
1297
|
+
}>], {
|
|
1298
|
+
readonly _tag: "ResourceNotFoundError";
|
|
1299
|
+
readonly resource: string;
|
|
1300
|
+
readonly id: string;
|
|
1301
|
+
readonly message: string;
|
|
1302
|
+
}>, Schema.Struct<{
|
|
1303
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
1304
|
+
readonly resource: Schema.String;
|
|
1305
|
+
readonly id: Schema.String;
|
|
1306
|
+
readonly message: Schema.String;
|
|
1307
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ServiceUnavailableError, {
|
|
1308
|
+
readonly _tag: "ServiceUnavailableError";
|
|
1309
|
+
readonly message: string;
|
|
1310
|
+
readonly retryAfterSeconds: number;
|
|
1311
|
+
}, readonly [Schema.Struct<{
|
|
1312
|
+
readonly _tag: Schema.tag<"ServiceUnavailableError">;
|
|
1313
|
+
readonly message: Schema.String;
|
|
1314
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
1315
|
+
}>], {
|
|
1316
|
+
readonly _tag: "ServiceUnavailableError";
|
|
1317
|
+
readonly message: string;
|
|
1318
|
+
readonly retryAfterSeconds: number;
|
|
1319
|
+
}>, Schema.Struct<{
|
|
1320
|
+
readonly _tag: Schema.tag<"ServiceUnavailableError">;
|
|
1321
|
+
readonly message: Schema.String;
|
|
1322
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
1323
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
1324
|
+
readonly _tag: "UnauthorizedError";
|
|
1325
|
+
readonly message: string;
|
|
1326
|
+
}, readonly [Schema.Struct<{
|
|
1327
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
1328
|
+
readonly message: Schema.String;
|
|
1329
|
+
}>], {
|
|
1330
|
+
readonly _tag: "UnauthorizedError";
|
|
1331
|
+
readonly message: string;
|
|
1332
|
+
}>, Schema.Struct<{
|
|
1333
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
1334
|
+
readonly message: Schema.String;
|
|
1335
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
1336
|
+
readonly _tag: "ValidationError";
|
|
1337
|
+
readonly message: string;
|
|
1338
|
+
readonly fields?: {
|
|
1339
|
+
readonly [x: string]: readonly string[];
|
|
1340
|
+
} | null;
|
|
1341
|
+
}, readonly [Schema.Struct<{
|
|
1342
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
1343
|
+
readonly message: Schema.String;
|
|
1344
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1345
|
+
}>], {
|
|
1346
|
+
readonly _tag: "ValidationError";
|
|
1347
|
+
readonly message: string;
|
|
1348
|
+
readonly fields?: {
|
|
1349
|
+
readonly [x: string]: readonly string[];
|
|
1350
|
+
} | null;
|
|
1351
|
+
}>, Schema.Struct<{
|
|
1352
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
1353
|
+
readonly message: Schema.String;
|
|
1354
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1355
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"whatsappFlowsRegister", "POST", "/v1/whatsapp/flows/:id/registrations", Schema.toCodecStringTree<Schema.Struct<{
|
|
1356
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
1357
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1358
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
1359
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1360
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowRegistrationId">;
|
|
1361
|
+
readonly flowId: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
1362
|
+
readonly versionId: Schema.brand<Schema.String, "WhatsAppFlowVersionId">;
|
|
1363
|
+
readonly versionNumber: Schema.Finite;
|
|
1364
|
+
readonly wabaId: Schema.String;
|
|
1365
|
+
readonly providerFlowId: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1366
|
+
readonly name: Schema.String;
|
|
1367
|
+
readonly status: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"published">, Schema.Literal<"throttled">, Schema.Literal<"blocked">, Schema.Literal<"deprecated">]>;
|
|
1368
|
+
readonly validationErrors: Schema.$Array<Schema.Struct<{
|
|
1369
|
+
readonly error: Schema.String;
|
|
1370
|
+
readonly message: Schema.String;
|
|
1371
|
+
readonly path: Schema.optionalKey<Schema.String>;
|
|
1372
|
+
readonly line: Schema.optionalKey<Schema.Finite>;
|
|
1373
|
+
readonly column: Schema.optionalKey<Schema.Finite>;
|
|
1374
|
+
}>>;
|
|
1375
|
+
readonly endpointAlerts: Schema.$Array<Schema.Struct<{
|
|
1376
|
+
readonly kind: Schema.String;
|
|
1377
|
+
readonly message: Schema.String;
|
|
1378
|
+
readonly value: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
1379
|
+
readonly threshold: Schema.Union<readonly [Schema.Finite, Schema.Null]>;
|
|
1380
|
+
readonly activatedAt: Schema.String;
|
|
1381
|
+
}>>;
|
|
1382
|
+
readonly publishedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1383
|
+
readonly statusChangedAt: Schema.String;
|
|
1384
|
+
readonly createdAt: Schema.String;
|
|
1385
|
+
readonly updatedAt: Schema.String;
|
|
1386
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.Union<readonly [typeof CredentialsError, typeof InternalError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
1387
|
+
readonly _tag: "ConflictError";
|
|
1388
|
+
readonly message: string;
|
|
1389
|
+
readonly resource: string;
|
|
1390
|
+
readonly id?: string | null;
|
|
1391
|
+
}, readonly [Schema.Struct<{
|
|
1392
|
+
readonly _tag: Schema.tag<"ConflictError">;
|
|
1393
|
+
readonly message: Schema.String;
|
|
1394
|
+
readonly resource: Schema.String;
|
|
1395
|
+
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1396
|
+
}>], {
|
|
1397
|
+
readonly _tag: "ConflictError";
|
|
1398
|
+
readonly message: string;
|
|
1399
|
+
readonly resource: string;
|
|
1400
|
+
readonly id?: string | null;
|
|
1401
|
+
}>, Schema.Struct<{
|
|
1402
|
+
readonly _tag: Schema.tag<"ConflictError">;
|
|
1403
|
+
readonly message: Schema.String;
|
|
1404
|
+
readonly resource: Schema.String;
|
|
1405
|
+
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1406
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
1407
|
+
readonly _tag: "GatewayTimeoutError";
|
|
1408
|
+
readonly message: string;
|
|
1409
|
+
readonly retryAfterSeconds: number;
|
|
1410
|
+
}, readonly [Schema.Struct<{
|
|
1411
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1412
|
+
readonly message: Schema.String;
|
|
1413
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
1414
|
+
}>], {
|
|
1415
|
+
readonly _tag: "GatewayTimeoutError";
|
|
1416
|
+
readonly message: string;
|
|
1417
|
+
readonly retryAfterSeconds: number;
|
|
1418
|
+
}>, Schema.Struct<{
|
|
1419
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1420
|
+
readonly message: Schema.String;
|
|
1421
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
1422
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
1423
|
+
readonly _tag: "MalformedRequestError";
|
|
1424
|
+
readonly message: string;
|
|
1425
|
+
readonly fields: {
|
|
1426
|
+
readonly [x: string]: readonly string[];
|
|
1427
|
+
};
|
|
1428
|
+
}, readonly [Schema.Struct<{
|
|
1429
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1430
|
+
readonly message: Schema.String;
|
|
1431
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1432
|
+
}>], {
|
|
1433
|
+
readonly _tag: "MalformedRequestError";
|
|
1434
|
+
readonly message: string;
|
|
1435
|
+
readonly fields: {
|
|
1436
|
+
readonly [x: string]: readonly string[];
|
|
1437
|
+
};
|
|
1438
|
+
}>, Schema.Struct<{
|
|
1439
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1440
|
+
readonly message: Schema.String;
|
|
1441
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1442
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
1443
|
+
readonly _tag: "ResourceNotFoundError";
|
|
1444
|
+
readonly resource: string;
|
|
1445
|
+
readonly id: string;
|
|
1446
|
+
readonly message: string;
|
|
1447
|
+
}, readonly [Schema.Struct<{
|
|
1448
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
1449
|
+
readonly resource: Schema.String;
|
|
1450
|
+
readonly id: Schema.String;
|
|
1451
|
+
readonly message: Schema.String;
|
|
1452
|
+
}>], {
|
|
1453
|
+
readonly _tag: "ResourceNotFoundError";
|
|
1454
|
+
readonly resource: string;
|
|
1455
|
+
readonly id: string;
|
|
1456
|
+
readonly message: string;
|
|
1457
|
+
}>, Schema.Struct<{
|
|
1458
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
1459
|
+
readonly resource: Schema.String;
|
|
1460
|
+
readonly id: Schema.String;
|
|
1461
|
+
readonly message: Schema.String;
|
|
1462
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
1463
|
+
readonly _tag: "UnauthorizedError";
|
|
1464
|
+
readonly message: string;
|
|
1465
|
+
}, readonly [Schema.Struct<{
|
|
1466
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
1467
|
+
readonly message: Schema.String;
|
|
1468
|
+
}>], {
|
|
1469
|
+
readonly _tag: "UnauthorizedError";
|
|
1470
|
+
readonly message: string;
|
|
1471
|
+
}>, Schema.Struct<{
|
|
1472
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
1473
|
+
readonly message: Schema.String;
|
|
1474
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
1475
|
+
readonly _tag: "ValidationError";
|
|
1476
|
+
readonly message: string;
|
|
1477
|
+
readonly fields?: {
|
|
1478
|
+
readonly [x: string]: readonly string[];
|
|
1479
|
+
} | null;
|
|
1480
|
+
}, readonly [Schema.Struct<{
|
|
1481
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
1482
|
+
readonly message: Schema.String;
|
|
1483
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1484
|
+
}>], {
|
|
1485
|
+
readonly _tag: "ValidationError";
|
|
1486
|
+
readonly message: string;
|
|
1487
|
+
readonly fields?: {
|
|
1488
|
+
readonly [x: string]: readonly string[];
|
|
1489
|
+
} | null;
|
|
1490
|
+
}>, Schema.Struct<{
|
|
1491
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
1492
|
+
readonly message: Schema.String;
|
|
1493
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1494
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<WhatsAppChannelError, {
|
|
1495
|
+
readonly _tag: "WhatsAppChannelError";
|
|
1496
|
+
readonly reason: "auth" | "rate_limited" | "rejected" | "transport" | "unsupported";
|
|
1497
|
+
readonly message: string;
|
|
1498
|
+
readonly provider: string;
|
|
1499
|
+
readonly providerCode?: string | null;
|
|
1500
|
+
readonly statusCode?: number | null;
|
|
1501
|
+
}, readonly [Schema.Struct<{
|
|
1502
|
+
readonly _tag: Schema.tag<"WhatsAppChannelError">;
|
|
1503
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"transport">, Schema.Literal<"rejected">, Schema.Literal<"rate_limited">, Schema.Literal<"auth">, Schema.Literal<"unsupported">]>;
|
|
1504
|
+
readonly message: Schema.String;
|
|
1505
|
+
readonly provider: Schema.String;
|
|
1506
|
+
readonly providerCode: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1507
|
+
readonly statusCode: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
1508
|
+
}>], {
|
|
1509
|
+
readonly _tag: "WhatsAppChannelError";
|
|
1510
|
+
readonly reason: "auth" | "rate_limited" | "rejected" | "transport" | "unsupported";
|
|
1511
|
+
readonly message: string;
|
|
1512
|
+
readonly provider: string;
|
|
1513
|
+
readonly providerCode?: string | null;
|
|
1514
|
+
readonly statusCode?: number | null;
|
|
1515
|
+
}>, Schema.Struct<{
|
|
1516
|
+
readonly _tag: Schema.tag<"WhatsAppChannelError">;
|
|
1517
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"transport">, Schema.Literal<"rejected">, Schema.Literal<"rate_limited">, Schema.Literal<"auth">, Schema.Literal<"unsupported">]>;
|
|
1518
|
+
readonly message: Schema.String;
|
|
1519
|
+
readonly provider: Schema.String;
|
|
1520
|
+
readonly providerCode: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1521
|
+
readonly statusCode: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
1522
|
+
}>, never, never>>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"whatsappFlowsRotateEncryptionKey", "POST", "/v1/whatsapp/flows/encryption-key/rotate", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1523
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
1524
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1525
|
+
readonly wabaId: Schema.String;
|
|
1526
|
+
readonly publicKey: Schema.String;
|
|
1527
|
+
readonly phoneNumberIds: Schema.$Array<Schema.String>;
|
|
1528
|
+
readonly createdAt: Schema.String;
|
|
1529
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.Union<readonly [typeof CredentialsError, typeof InternalError]> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
1530
|
+
readonly _tag: "GatewayTimeoutError";
|
|
1531
|
+
readonly message: string;
|
|
1532
|
+
readonly retryAfterSeconds: number;
|
|
1533
|
+
}, readonly [Schema.Struct<{
|
|
1534
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1535
|
+
readonly message: Schema.String;
|
|
1536
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
1537
|
+
}>], {
|
|
1538
|
+
readonly _tag: "GatewayTimeoutError";
|
|
1539
|
+
readonly message: string;
|
|
1540
|
+
readonly retryAfterSeconds: number;
|
|
1541
|
+
}>, Schema.Struct<{
|
|
1542
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1543
|
+
readonly message: Schema.String;
|
|
1544
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
1545
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
1546
|
+
readonly _tag: "MalformedRequestError";
|
|
1547
|
+
readonly message: string;
|
|
1548
|
+
readonly fields: {
|
|
1549
|
+
readonly [x: string]: readonly string[];
|
|
1550
|
+
};
|
|
1551
|
+
}, readonly [Schema.Struct<{
|
|
1552
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1553
|
+
readonly message: Schema.String;
|
|
1554
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1555
|
+
}>], {
|
|
1556
|
+
readonly _tag: "MalformedRequestError";
|
|
1557
|
+
readonly message: string;
|
|
1558
|
+
readonly fields: {
|
|
1559
|
+
readonly [x: string]: readonly string[];
|
|
1560
|
+
};
|
|
1561
|
+
}>, Schema.Struct<{
|
|
1562
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1563
|
+
readonly message: Schema.String;
|
|
1564
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1565
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
1566
|
+
readonly _tag: "ResourceNotFoundError";
|
|
1567
|
+
readonly resource: string;
|
|
1568
|
+
readonly id: string;
|
|
1569
|
+
readonly message: string;
|
|
1570
|
+
}, readonly [Schema.Struct<{
|
|
1571
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
1572
|
+
readonly resource: Schema.String;
|
|
1573
|
+
readonly id: Schema.String;
|
|
1574
|
+
readonly message: Schema.String;
|
|
1575
|
+
}>], {
|
|
1576
|
+
readonly _tag: "ResourceNotFoundError";
|
|
1577
|
+
readonly resource: string;
|
|
1578
|
+
readonly id: string;
|
|
1579
|
+
readonly message: string;
|
|
1580
|
+
}>, Schema.Struct<{
|
|
1581
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
1582
|
+
readonly resource: Schema.String;
|
|
1583
|
+
readonly id: Schema.String;
|
|
1584
|
+
readonly message: Schema.String;
|
|
1585
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
1586
|
+
readonly _tag: "UnauthorizedError";
|
|
1587
|
+
readonly message: string;
|
|
1588
|
+
}, readonly [Schema.Struct<{
|
|
1589
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
1590
|
+
readonly message: Schema.String;
|
|
1591
|
+
}>], {
|
|
1592
|
+
readonly _tag: "UnauthorizedError";
|
|
1593
|
+
readonly message: string;
|
|
1594
|
+
}>, Schema.Struct<{
|
|
1595
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
1596
|
+
readonly message: Schema.String;
|
|
1597
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
1598
|
+
readonly _tag: "ValidationError";
|
|
1599
|
+
readonly message: string;
|
|
1600
|
+
readonly fields?: {
|
|
1601
|
+
readonly [x: string]: readonly string[];
|
|
1602
|
+
} | null;
|
|
1603
|
+
}, readonly [Schema.Struct<{
|
|
1604
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
1605
|
+
readonly message: Schema.String;
|
|
1606
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1607
|
+
}>], {
|
|
1608
|
+
readonly _tag: "ValidationError";
|
|
1609
|
+
readonly message: string;
|
|
1610
|
+
readonly fields?: {
|
|
1611
|
+
readonly [x: string]: readonly string[];
|
|
1612
|
+
} | null;
|
|
1613
|
+
}>, Schema.Struct<{
|
|
1614
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
1615
|
+
readonly message: Schema.String;
|
|
1616
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1617
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<WhatsAppChannelError, {
|
|
1618
|
+
readonly _tag: "WhatsAppChannelError";
|
|
1619
|
+
readonly reason: "auth" | "rate_limited" | "rejected" | "transport" | "unsupported";
|
|
1620
|
+
readonly message: string;
|
|
1621
|
+
readonly provider: string;
|
|
1622
|
+
readonly providerCode?: string | null;
|
|
1623
|
+
readonly statusCode?: number | null;
|
|
1624
|
+
}, readonly [Schema.Struct<{
|
|
1625
|
+
readonly _tag: Schema.tag<"WhatsAppChannelError">;
|
|
1626
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"transport">, Schema.Literal<"rejected">, Schema.Literal<"rate_limited">, Schema.Literal<"auth">, Schema.Literal<"unsupported">]>;
|
|
1627
|
+
readonly message: Schema.String;
|
|
1628
|
+
readonly provider: Schema.String;
|
|
1629
|
+
readonly providerCode: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1630
|
+
readonly statusCode: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
1631
|
+
}>], {
|
|
1632
|
+
readonly _tag: "WhatsAppChannelError";
|
|
1633
|
+
readonly reason: "auth" | "rate_limited" | "rejected" | "transport" | "unsupported";
|
|
1634
|
+
readonly message: string;
|
|
1635
|
+
readonly provider: string;
|
|
1636
|
+
readonly providerCode?: string | null;
|
|
1637
|
+
readonly statusCode?: number | null;
|
|
1638
|
+
}>, Schema.Struct<{
|
|
1639
|
+
readonly _tag: Schema.tag<"WhatsAppChannelError">;
|
|
1640
|
+
readonly reason: Schema.Union<readonly [Schema.Literal<"transport">, Schema.Literal<"rejected">, Schema.Literal<"rate_limited">, Schema.Literal<"auth">, Schema.Literal<"unsupported">]>;
|
|
1641
|
+
readonly message: Schema.String;
|
|
1642
|
+
readonly provider: Schema.String;
|
|
1643
|
+
readonly providerCode: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1644
|
+
readonly statusCode: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
1645
|
+
}>, never, never>>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"whatsappFlowsRotateEndpointSecret", "POST", "/v1/whatsapp/flows/:id/endpoint/rotate-secret", Schema.toCodecStringTree<Schema.Struct<{
|
|
1646
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
1647
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1648
|
+
readonly url: Schema.String;
|
|
1649
|
+
readonly updatedAt: Schema.String;
|
|
1650
|
+
readonly secret: Schema.optionalKey<Schema.RedactedFromValue<Schema.Codec<string, string, never, never>>>;
|
|
1651
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.Union<readonly [typeof CredentialsError, typeof InternalError]> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
1652
|
+
readonly _tag: "GatewayTimeoutError";
|
|
1653
|
+
readonly message: string;
|
|
1654
|
+
readonly retryAfterSeconds: number;
|
|
1655
|
+
}, readonly [Schema.Struct<{
|
|
1656
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1657
|
+
readonly message: Schema.String;
|
|
1658
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
1659
|
+
}>], {
|
|
1660
|
+
readonly _tag: "GatewayTimeoutError";
|
|
1661
|
+
readonly message: string;
|
|
1662
|
+
readonly retryAfterSeconds: number;
|
|
1663
|
+
}>, Schema.Struct<{
|
|
1664
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1665
|
+
readonly message: Schema.String;
|
|
1666
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
1667
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
1668
|
+
readonly _tag: "MalformedRequestError";
|
|
1669
|
+
readonly message: string;
|
|
1670
|
+
readonly fields: {
|
|
1671
|
+
readonly [x: string]: readonly string[];
|
|
1672
|
+
};
|
|
1673
|
+
}, readonly [Schema.Struct<{
|
|
1674
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1675
|
+
readonly message: Schema.String;
|
|
1676
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1677
|
+
}>], {
|
|
1678
|
+
readonly _tag: "MalformedRequestError";
|
|
1679
|
+
readonly message: string;
|
|
1680
|
+
readonly fields: {
|
|
1681
|
+
readonly [x: string]: readonly string[];
|
|
1682
|
+
};
|
|
1683
|
+
}>, Schema.Struct<{
|
|
1684
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1685
|
+
readonly message: Schema.String;
|
|
1686
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1687
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
1688
|
+
readonly _tag: "ResourceNotFoundError";
|
|
1689
|
+
readonly resource: string;
|
|
1690
|
+
readonly id: string;
|
|
1691
|
+
readonly message: string;
|
|
1692
|
+
}, readonly [Schema.Struct<{
|
|
1693
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
1694
|
+
readonly resource: Schema.String;
|
|
1695
|
+
readonly id: Schema.String;
|
|
1696
|
+
readonly message: Schema.String;
|
|
1697
|
+
}>], {
|
|
1698
|
+
readonly _tag: "ResourceNotFoundError";
|
|
1699
|
+
readonly resource: string;
|
|
1700
|
+
readonly id: string;
|
|
1701
|
+
readonly message: string;
|
|
1702
|
+
}>, Schema.Struct<{
|
|
1703
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
1704
|
+
readonly resource: Schema.String;
|
|
1705
|
+
readonly id: Schema.String;
|
|
1706
|
+
readonly message: Schema.String;
|
|
1707
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
1708
|
+
readonly _tag: "UnauthorizedError";
|
|
1709
|
+
readonly message: string;
|
|
1710
|
+
}, readonly [Schema.Struct<{
|
|
1711
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
1712
|
+
readonly message: Schema.String;
|
|
1713
|
+
}>], {
|
|
1714
|
+
readonly _tag: "UnauthorizedError";
|
|
1715
|
+
readonly message: string;
|
|
1716
|
+
}>, Schema.Struct<{
|
|
1717
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
1718
|
+
readonly message: Schema.String;
|
|
1719
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
1720
|
+
readonly _tag: "ValidationError";
|
|
1721
|
+
readonly message: string;
|
|
1722
|
+
readonly fields?: {
|
|
1723
|
+
readonly [x: string]: readonly string[];
|
|
1724
|
+
} | null;
|
|
1725
|
+
}, readonly [Schema.Struct<{
|
|
1726
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
1727
|
+
readonly message: Schema.String;
|
|
1728
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1729
|
+
}>], {
|
|
1730
|
+
readonly _tag: "ValidationError";
|
|
1731
|
+
readonly message: string;
|
|
1732
|
+
readonly fields?: {
|
|
1733
|
+
readonly [x: string]: readonly string[];
|
|
1734
|
+
} | null;
|
|
1735
|
+
}>, Schema.Struct<{
|
|
1736
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
1737
|
+
readonly message: Schema.String;
|
|
1738
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1739
|
+
}>, never, never>>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"whatsappFlowsSetEndpoint", "PUT", "/v1/whatsapp/flows/:id/endpoint", Schema.toCodecStringTree<Schema.Struct<{
|
|
1740
|
+
readonly id: Schema.brand<Schema.String, "WhatsAppFlowId">;
|
|
1741
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1742
|
+
readonly url: Schema.String;
|
|
1743
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1744
|
+
readonly url: Schema.String;
|
|
1745
|
+
readonly updatedAt: Schema.String;
|
|
1746
|
+
readonly secret: Schema.optionalKey<Schema.RedactedFromValue<Schema.Codec<string, string, never, never>>>;
|
|
1747
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof FlagDisabledError, typeof ForbiddenError]> | Schema.Union<readonly [typeof CredentialsError, typeof InternalError]> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
1748
|
+
readonly _tag: "GatewayTimeoutError";
|
|
1749
|
+
readonly message: string;
|
|
1750
|
+
readonly retryAfterSeconds: number;
|
|
1751
|
+
}, readonly [Schema.Struct<{
|
|
1752
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1753
|
+
readonly message: Schema.String;
|
|
1754
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
1755
|
+
}>], {
|
|
1756
|
+
readonly _tag: "GatewayTimeoutError";
|
|
1757
|
+
readonly message: string;
|
|
1758
|
+
readonly retryAfterSeconds: number;
|
|
1759
|
+
}>, Schema.Struct<{
|
|
1760
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1761
|
+
readonly message: Schema.String;
|
|
1762
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
1763
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
1764
|
+
readonly _tag: "MalformedRequestError";
|
|
1765
|
+
readonly message: string;
|
|
1766
|
+
readonly fields: {
|
|
1767
|
+
readonly [x: string]: readonly string[];
|
|
1768
|
+
};
|
|
1769
|
+
}, readonly [Schema.Struct<{
|
|
1770
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1771
|
+
readonly message: Schema.String;
|
|
1772
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1773
|
+
}>], {
|
|
1774
|
+
readonly _tag: "MalformedRequestError";
|
|
1775
|
+
readonly message: string;
|
|
1776
|
+
readonly fields: {
|
|
1777
|
+
readonly [x: string]: readonly string[];
|
|
1778
|
+
};
|
|
1779
|
+
}>, Schema.Struct<{
|
|
1780
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
1781
|
+
readonly message: Schema.String;
|
|
1782
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
1783
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
1784
|
+
readonly _tag: "ResourceNotFoundError";
|
|
1785
|
+
readonly resource: string;
|
|
1786
|
+
readonly id: string;
|
|
1787
|
+
readonly message: string;
|
|
1788
|
+
}, readonly [Schema.Struct<{
|
|
1789
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
1790
|
+
readonly resource: Schema.String;
|
|
1791
|
+
readonly id: Schema.String;
|
|
1792
|
+
readonly message: Schema.String;
|
|
1793
|
+
}>], {
|
|
1794
|
+
readonly _tag: "ResourceNotFoundError";
|
|
1795
|
+
readonly resource: string;
|
|
1796
|
+
readonly id: string;
|
|
1797
|
+
readonly message: string;
|
|
1798
|
+
}>, Schema.Struct<{
|
|
1799
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
1800
|
+
readonly resource: Schema.String;
|
|
1801
|
+
readonly id: Schema.String;
|
|
1802
|
+
readonly message: Schema.String;
|
|
1803
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
1804
|
+
readonly _tag: "UnauthorizedError";
|
|
1805
|
+
readonly message: string;
|
|
1806
|
+
}, readonly [Schema.Struct<{
|
|
1807
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
1808
|
+
readonly message: Schema.String;
|
|
1809
|
+
}>], {
|
|
1810
|
+
readonly _tag: "UnauthorizedError";
|
|
1811
|
+
readonly message: string;
|
|
1812
|
+
}>, Schema.Struct<{
|
|
1813
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
1814
|
+
readonly message: Schema.String;
|
|
1815
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
1816
|
+
readonly _tag: "ValidationError";
|
|
1817
|
+
readonly message: string;
|
|
1818
|
+
readonly fields?: {
|
|
1819
|
+
readonly [x: string]: readonly string[];
|
|
1820
|
+
} | null;
|
|
1821
|
+
}, readonly [Schema.Struct<{
|
|
1822
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
1823
|
+
readonly message: Schema.String;
|
|
1824
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1825
|
+
}>], {
|
|
1826
|
+
readonly _tag: "ValidationError";
|
|
1827
|
+
readonly message: string;
|
|
1828
|
+
readonly fields?: {
|
|
1829
|
+
readonly [x: string]: readonly string[];
|
|
1830
|
+
} | null;
|
|
1831
|
+
}>, Schema.Struct<{
|
|
1832
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
1833
|
+
readonly message: Schema.String;
|
|
1834
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1835
|
+
}>, never, never>>, ApiKeySecurityMiddleware, never>, false>;
|
|
1836
|
+
export declare class WhatsAppFlowsGroup extends WhatsAppFlowsGroup_base {
|
|
1837
|
+
}
|
|
1838
|
+
export {};
|