samva 0.52.0 → 0.53.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.
@@ -1,4 +1,4 @@
1
- import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactId, ForbiddenError, GatewayTimeoutError, InternalError, JourneyDefinition, JourneyId, JourneyName, JourneyNodeId, JourneyStatus, JsonObject, MalformedRequestError, MessageId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
1
+ import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactId, ForbiddenError, GatewayTimeoutError, InternalError, JourneyDefinition, JourneyId, JourneyName, JourneyNodeId, JourneyStatus, JsonObject, MalformedRequestError, MessageId, NamespaceId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
2
2
  import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
3
3
  import * as Schema from "effect/Schema";
4
4
  // src/effect/generated/journeys.ts
@@ -44,6 +44,7 @@ const DeleteJourneyResponse = /* @__PURE__ */ (() => Schema.Struct({
44
44
  }).annotate({ identifier: "DeleteJourneyResponse" }))();
45
45
  const JourneyListItem = /* @__PURE__ */ (() => Schema.Struct({
46
46
  id: JourneyId,
47
+ namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null])),
47
48
  name: Schema.String,
48
49
  status: JourneyStatus,
49
50
  publishedVersion: Schema.Union([Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })), Schema.Null]),
@@ -68,6 +69,7 @@ const JourneyRunStep = /* @__PURE__ */ (() => Schema.Struct({
68
69
  }).annotate({ identifier: "JourneyRunStep" }))();
69
70
  const JourneyRun = /* @__PURE__ */ (() => Schema.Struct({
70
71
  id: JourneyRunId,
72
+ namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null])),
71
73
  journeyId: JourneyId,
72
74
  version: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
73
75
  contactId: ContactId,
@@ -93,6 +95,7 @@ const JourneyStats = /* @__PURE__ */ (() => Schema.Struct({
93
95
  }).annotate({ identifier: "JourneyStats" }))();
94
96
  const JourneyRunDetail = /* @__PURE__ */ (() => Schema.Struct({
95
97
  id: JourneyRunId,
98
+ namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null])),
96
99
  journeyId: JourneyId,
97
100
  version: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
98
101
  contactId: ContactId,
@@ -113,6 +116,7 @@ const JourneyRunPage = /* @__PURE__ */ (() => Schema.Struct({
113
116
  }).annotate({ identifier: "JourneyRunPage" }))();
114
117
  const Journey = /* @__PURE__ */ (() => Schema.Struct({
115
118
  id: JourneyId,
119
+ namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null])),
116
120
  name: Schema.String,
117
121
  status: JourneyStatus,
118
122
  revision: Schema.String,
@@ -129,6 +133,7 @@ const JourneyVersion = /* @__PURE__ */ (() => Schema.Struct({
129
133
  publishedAt: Schema.String
130
134
  }).annotate({ identifier: "JourneyVersion" }))();
131
135
  const JourneysListQuery = /* @__PURE__ */ (() => Schema.Struct({
136
+ namespaceId: Schema.optionalKey(NamespaceId),
132
137
  status: Schema.optionalKey(JourneyStatus),
133
138
  limit: Schema.optionalKey(Schema.Union([Schema.Finite.annotate({ description: "Items per page, at most 100." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(100).annotate({ expected: "a value less than or equal to 100" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema.Null])),
134
139
  cursor: Schema.optionalKey(Schema.String)
@@ -142,6 +147,7 @@ const JourneysList500 = InternalError;
142
147
  const JourneysList504 = GatewayTimeoutError;
143
148
  const JourneysCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
144
149
  name: JourneyName,
150
+ namespaceId: Schema.optionalKey(NamespaceId),
145
151
  definition: JourneyDefinition
146
152
  }))();
147
153
  const JourneysCreate201 = Journey;
@@ -305,7 +311,7 @@ var JourneysGroup = class extends HttpApiGroup.make("Journeys").add(HttpApiEndpo
305
311
  JourneysList500,
306
312
  JourneysList504.pipe(HttpApiSchema.status(504))
307
313
  ]
308
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "journeys.list").annotate(OpenApi.Summary, "List journeys").annotate(OpenApi.Description, "Returns the organization's journeys, newest first, optionally filtered by status. Pass nextCursor back as cursor for the next page."), HttpApiEndpoint.post("journeysCreate", "/v1/journeys", {
314
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "journeys.list").annotate(OpenApi.Summary, "List journeys").annotate(OpenApi.Description, "Returns the journeys the caller can access, newest first. Filter by namespaceId or status. Pass nextCursor back as cursor for the next page."), HttpApiEndpoint.post("journeysCreate", "/v1/journeys", {
309
315
  payload: JourneysCreateRequestJson,
310
316
  success: JourneysCreate201.pipe(HttpApiSchema.status(201)),
311
317
  error: [
@@ -320,7 +326,7 @@ var JourneysGroup = class extends HttpApiGroup.make("Journeys").add(HttpApiEndpo
320
326
  JourneysCreate502.pipe(HttpApiSchema.status(502)),
321
327
  JourneysCreate504.pipe(HttpApiSchema.status(504))
322
328
  ]
323
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "journeys.create").annotate(OpenApi.Summary, "Create a journey").annotate(OpenApi.Description, "Creates a draft journey from a definition: a trigger, a root node, and a graph of at most 200 nodes that is acyclic and fully reachable. Templates, senders, and groups the definition names must belong to the organization. Requires a plan that includes journeys."), HttpApiEndpoint.get("journeysGet", "/v1/journeys/:id", {
329
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "journeys.create").annotate(OpenApi.Summary, "Create a journey").annotate(OpenApi.Description, "Creates a draft journey from a definition: a trigger, a root node, and a graph of at most 200 nodes that is acyclic and fully reachable. A namespace key creates in its own namespace. An organization key can pass namespaceId to place the journey in a namespace. The journey can use resources available in its scope. Requires a plan that includes journeys."), HttpApiEndpoint.get("journeysGet", "/v1/journeys/:id", {
324
330
  params: JourneysGetPathParams,
325
331
  success: JourneysGet200,
326
332
  error: [
@@ -481,7 +487,7 @@ var JourneysGroup = class extends HttpApiGroup.make("Journeys").add(HttpApiEndpo
481
487
  JourneysGetVersion500,
482
488
  JourneysGetVersion504.pipe(HttpApiSchema.status(504))
483
489
  ]
484
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "journeys.getVersion").annotate(OpenApi.Summary, "Get a published journey version").annotate(OpenApi.Description, "Returns the immutable definition of one published version.")).annotate(OpenApi.Description, "Event-triggered, per-contact email flows defined as versioned node graphs") {};
490
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "journeys.getVersion").annotate(OpenApi.Summary, "Get a published journey version").annotate(OpenApi.Description, "Returns the immutable definition of one published version.")).annotate(OpenApi.Description, "Versioned event-triggered automations that send email and WhatsApp, wait for events, and publish webhooks") {};
485
491
  export { DeleteJourneyResponse, Journey, JourneyListItem, JourneyNodeStats, JourneyPage, JourneyRun, JourneyRunCounts, JourneyRunDetail, JourneyRunExitReason, JourneyRunId, JourneyRunPage, JourneyRunStatus, JourneyRunStep, JourneyRunStepOutcome, JourneyRunTrigger, JourneyStats, JourneyVersion, JourneysArchive200, JourneysArchive400, JourneysArchive401, JourneysArchive403, JourneysArchive404, JourneysArchive409, JourneysArchive422, JourneysArchive500, JourneysArchive504, JourneysArchivePathParams, JourneysCreate201, JourneysCreate400, JourneysCreate401, JourneysCreate402, JourneysCreate403, JourneysCreate404, JourneysCreate409, JourneysCreate422, JourneysCreate500, JourneysCreate502, JourneysCreate504, JourneysCreateRequestJson, JourneysGet200, JourneysGet400, JourneysGet401, JourneysGet403, JourneysGet404, JourneysGet422, JourneysGet500, JourneysGet504, JourneysGetPathParams, JourneysGetRun200, JourneysGetRun400, JourneysGetRun401, JourneysGetRun403, JourneysGetRun404, JourneysGetRun422, JourneysGetRun500, JourneysGetRun504, JourneysGetRunPathParams, JourneysGetVersion200, JourneysGetVersion400, JourneysGetVersion401, JourneysGetVersion403, JourneysGetVersion404, JourneysGetVersion422, JourneysGetVersion500, JourneysGetVersion504, JourneysGetVersionPathParams, JourneysGroup, JourneysList200, JourneysList400, JourneysList401, JourneysList403, JourneysList422, JourneysList500, JourneysList504, JourneysListQuery, JourneysListRuns200, JourneysListRuns400, JourneysListRuns401, JourneysListRuns403, JourneysListRuns404, JourneysListRuns422, JourneysListRuns500, JourneysListRuns504, JourneysListRunsPathParams, JourneysListRunsQuery, JourneysPause200, JourneysPause400, JourneysPause401, JourneysPause403, JourneysPause404, JourneysPause409, JourneysPause422, JourneysPause500, JourneysPause504, JourneysPausePathParams, JourneysPublish200, JourneysPublish400, JourneysPublish401, JourneysPublish402, JourneysPublish403, JourneysPublish404, JourneysPublish409, JourneysPublish422, JourneysPublish500, JourneysPublish502, JourneysPublish504, JourneysPublishPathParams, JourneysPublishRequestJson, JourneysRemove200, JourneysRemove400, JourneysRemove401, JourneysRemove403, JourneysRemove404, JourneysRemove409, JourneysRemove422, JourneysRemove500, JourneysRemove504, JourneysRemovePathParams, JourneysReplaceDraft200, JourneysReplaceDraft400, JourneysReplaceDraft401, JourneysReplaceDraft402, JourneysReplaceDraft403, JourneysReplaceDraft404, JourneysReplaceDraft409, JourneysReplaceDraft422, JourneysReplaceDraft500, JourneysReplaceDraft502, JourneysReplaceDraft504, JourneysReplaceDraftPathParams, JourneysReplaceDraftRequestJson, JourneysResume200, JourneysResume400, JourneysResume401, JourneysResume402, JourneysResume403, JourneysResume404, JourneysResume409, JourneysResume422, JourneysResume500, JourneysResume502, JourneysResume504, JourneysResumePathParams, JourneysStats200, JourneysStats400, JourneysStats401, JourneysStats403, JourneysStats404, JourneysStats422, JourneysStats500, JourneysStats504, JourneysStatsPathParams, JourneysStatsQuery, JourneysUpdate200, JourneysUpdate400, JourneysUpdate401, JourneysUpdate403, JourneysUpdate404, JourneysUpdate422, JourneysUpdate500, JourneysUpdate504, JourneysUpdatePathParams, JourneysUpdateRequestJson };
486
492
 
487
493
  //# sourceMappingURL=journeys.js.map
@@ -447,6 +447,7 @@ export declare const MessageLogDetail: Schema.Struct<{
447
447
  readonly parts: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
448
448
  }>, Schema.Null]>>;
449
449
  readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
450
+ readonly appHandlesFlowSubmission: Schema.optionalKey<Schema.Literal<true>>;
450
451
  readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
451
452
  readonly template: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
452
453
  readonly name: Schema.String;
@@ -479,6 +480,7 @@ export declare const MessageLogDetail: Schema.Struct<{
479
480
  readonly coupon_code: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
480
481
  readonly action: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
481
482
  readonly flow_token: Schema.String;
483
+ readonly flow_action_data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
482
484
  }>, Schema.Null]>>;
483
485
  }>>;
484
486
  }>>;
@@ -654,6 +656,7 @@ export declare const MessageLogDetail: Schema.Struct<{
654
656
  }>>;
655
657
  readonly flowResponse: Schema.optionalKey<Schema.Struct<{
656
658
  readonly flowToken: Schema.Union<readonly [Schema.String, Schema.Null]>;
659
+ readonly submissionHandler: Schema.optionalKey<Schema.Literal<"app">>;
657
660
  readonly response: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
658
661
  readonly body: Schema.optionalKey<Schema.String>;
659
662
  }>>;
@@ -804,6 +807,7 @@ export declare const LogDetail: Schema.Union<readonly [Schema.Struct<{
804
807
  readonly parts: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
805
808
  }>, Schema.Null]>>;
806
809
  readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
810
+ readonly appHandlesFlowSubmission: Schema.optionalKey<Schema.Literal<true>>;
807
811
  readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
808
812
  readonly template: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
809
813
  readonly name: Schema.String;
@@ -836,6 +840,7 @@ export declare const LogDetail: Schema.Union<readonly [Schema.Struct<{
836
840
  readonly coupon_code: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
837
841
  readonly action: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
838
842
  readonly flow_token: Schema.String;
843
+ readonly flow_action_data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
839
844
  }>, Schema.Null]>>;
840
845
  }>>;
841
846
  }>>;
@@ -1011,6 +1016,7 @@ export declare const LogDetail: Schema.Union<readonly [Schema.Struct<{
1011
1016
  }>>;
1012
1017
  readonly flowResponse: Schema.optionalKey<Schema.Struct<{
1013
1018
  readonly flowToken: Schema.Union<readonly [Schema.String, Schema.Null]>;
1019
+ readonly submissionHandler: Schema.optionalKey<Schema.Literal<"app">>;
1014
1020
  readonly response: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
1015
1021
  readonly body: Schema.optionalKey<Schema.String>;
1016
1022
  }>>;
@@ -1320,6 +1326,7 @@ export declare const LogsGet200: Schema.Union<readonly [Schema.Struct<{
1320
1326
  readonly parts: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
1321
1327
  }>, Schema.Null]>>;
1322
1328
  readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1329
+ readonly appHandlesFlowSubmission: Schema.optionalKey<Schema.Literal<true>>;
1323
1330
  readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1324
1331
  readonly template: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1325
1332
  readonly name: Schema.String;
@@ -1352,6 +1359,7 @@ export declare const LogsGet200: Schema.Union<readonly [Schema.Struct<{
1352
1359
  readonly coupon_code: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1353
1360
  readonly action: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1354
1361
  readonly flow_token: Schema.String;
1362
+ readonly flow_action_data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
1355
1363
  }>, Schema.Null]>>;
1356
1364
  }>>;
1357
1365
  }>>;
@@ -1527,6 +1535,7 @@ export declare const LogsGet200: Schema.Union<readonly [Schema.Struct<{
1527
1535
  }>>;
1528
1536
  readonly flowResponse: Schema.optionalKey<Schema.Struct<{
1529
1537
  readonly flowToken: Schema.Union<readonly [Schema.String, Schema.Null]>;
1538
+ readonly submissionHandler: Schema.optionalKey<Schema.Literal<"app">>;
1530
1539
  readonly response: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
1531
1540
  readonly body: Schema.optionalKey<Schema.String>;
1532
1541
  }>>;
@@ -1748,6 +1757,7 @@ declare const LogsGroup_base: HttpApiGroup.HttpApiGroup<"Logs", HttpApiEndpoint.
1748
1757
  readonly parts: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
1749
1758
  }>, Schema.Null]>>;
1750
1759
  readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1760
+ readonly appHandlesFlowSubmission: Schema.optionalKey<Schema.Literal<true>>;
1751
1761
  readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1752
1762
  readonly template: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1753
1763
  readonly name: Schema.String;
@@ -1780,6 +1790,7 @@ declare const LogsGroup_base: HttpApiGroup.HttpApiGroup<"Logs", HttpApiEndpoint.
1780
1790
  readonly coupon_code: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1781
1791
  readonly action: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1782
1792
  readonly flow_token: Schema.String;
1793
+ readonly flow_action_data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
1783
1794
  }>, Schema.Null]>>;
1784
1795
  }>>;
1785
1796
  }>>;
@@ -1955,6 +1966,7 @@ declare const LogsGroup_base: HttpApiGroup.HttpApiGroup<"Logs", HttpApiEndpoint.
1955
1966
  }>>;
1956
1967
  readonly flowResponse: Schema.optionalKey<Schema.Struct<{
1957
1968
  readonly flowToken: Schema.Union<readonly [Schema.String, Schema.Null]>;
1969
+ readonly submissionHandler: Schema.optionalKey<Schema.Literal<"app">>;
1958
1970
  readonly response: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>;
1959
1971
  readonly body: Schema.optionalKey<Schema.String>;
1960
1972
  }>>;
@@ -827,6 +827,7 @@ export type MailboxChatMessage = {
827
827
  readonly template: MailboxChatMessageTemplate | null;
828
828
  readonly summary: string | null;
829
829
  readonly contextMessageId: MessageId | null;
830
+ readonly flowSubmissionHandledBy?: "app";
830
831
  };
831
832
  export declare const MailboxChatMessage: Schema.Struct<{
832
833
  readonly id: Schema.brand<Schema.String, "MessageId">;
@@ -867,6 +868,7 @@ export declare const MailboxChatMessage: Schema.Struct<{
867
868
  }>, Schema.Null]>;
868
869
  readonly summary: Schema.Union<readonly [Schema.String, Schema.Null]>;
869
870
  readonly contextMessageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
871
+ readonly flowSubmissionHandledBy: Schema.optionalKey<Schema.Literal<"app">>;
870
872
  }>;
871
873
  export type MailboxThreadSummary = {
872
874
  readonly id: MailboxThreadId;
@@ -1933,6 +1935,7 @@ export declare const MailboxMessage: Schema.Union<readonly [Schema.Struct<{
1933
1935
  }>, Schema.Null]>;
1934
1936
  readonly summary: Schema.Union<readonly [Schema.String, Schema.Null]>;
1935
1937
  readonly contextMessageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
1938
+ readonly flowSubmissionHandledBy: Schema.optionalKey<Schema.Literal<"app">>;
1936
1939
  }>]>;
1937
1940
  export type MailboxThreadPage = {
1938
1941
  readonly items: ReadonlyArray<MailboxThreadSummary>;
@@ -2453,6 +2456,7 @@ export declare const MailboxThreadContentPage: Schema.Struct<{
2453
2456
  }>, Schema.Null]>;
2454
2457
  readonly summary: Schema.Union<readonly [Schema.String, Schema.Null]>;
2455
2458
  readonly contextMessageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
2459
+ readonly flowSubmissionHandledBy: Schema.optionalKey<Schema.Literal<"app">>;
2456
2460
  }>]>>;
2457
2461
  readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
2458
2462
  }>;
@@ -8094,6 +8098,7 @@ export declare const MailboxesGetMessage200: Schema.Union<readonly [Schema.Struc
8094
8098
  }>, Schema.Null]>;
8095
8099
  readonly summary: Schema.Union<readonly [Schema.String, Schema.Null]>;
8096
8100
  readonly contextMessageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
8101
+ readonly flowSubmissionHandledBy: Schema.optionalKey<Schema.Literal<"app">>;
8097
8102
  }>]>;
8098
8103
  export type MailboxesGetMessage400 = MalformedRequestError;
8099
8104
  export declare const MailboxesGetMessage400: typeof MalformedRequestError;
@@ -10085,6 +10090,7 @@ export declare const MailboxesGetThreadContent200: Schema.Struct<{
10085
10090
  }>, Schema.Null]>;
10086
10091
  readonly summary: Schema.Union<readonly [Schema.String, Schema.Null]>;
10087
10092
  readonly contextMessageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
10093
+ readonly flowSubmissionHandledBy: Schema.optionalKey<Schema.Literal<"app">>;
10088
10094
  }>]>>;
10089
10095
  readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
10090
10096
  }>;
@@ -16318,6 +16324,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
16318
16324
  }>, Schema.Null]>;
16319
16325
  readonly summary: Schema.Union<readonly [Schema.String, Schema.Null]>;
16320
16326
  readonly contextMessageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
16327
+ readonly flowSubmissionHandledBy: Schema.optionalKey<Schema.Literal<"app">>;
16321
16328
  }>]>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
16322
16329
  readonly _tag: "ForbiddenError";
16323
16330
  readonly message: string;
@@ -17144,6 +17151,7 @@ declare const MailboxesGroup_base: HttpApiGroup.HttpApiGroup<"Mailboxes", HttpAp
17144
17151
  }>, Schema.Null]>;
17145
17152
  readonly summary: Schema.Union<readonly [Schema.String, Schema.Null]>;
17146
17153
  readonly contextMessageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
17154
+ readonly flowSubmissionHandledBy: Schema.optionalKey<Schema.Literal<"app">>;
17147
17155
  }>]>>;
17148
17156
  readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
17149
17157
  }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
@@ -634,7 +634,8 @@ const MailboxChatMessage = /* @__PURE__ */ (() => Schema.Struct({
634
634
  media: Schema.Array(MailboxChatMedia),
635
635
  template: Schema.Union([MailboxChatMessageTemplate, Schema.Null]),
636
636
  summary: Schema.Union([Schema.String, Schema.Null]),
637
- contextMessageId: Schema.Union([MessageId, Schema.Null])
637
+ contextMessageId: Schema.Union([MessageId, Schema.Null]),
638
+ flowSubmissionHandledBy: Schema.optionalKey(Schema.Literal("app"))
638
639
  }).annotate({ identifier: "MailboxChatMessage" }))();
639
640
  const MailboxThreadSummary = /* @__PURE__ */ (() => Schema.Struct({
640
641
  id: MailboxThreadId,
@@ -539,10 +539,12 @@ export declare const MessagesSendRequestJson: Schema.Union<readonly [Schema.Stru
539
539
  readonly templateId: Schema.brand<Schema.String, "TemplateId">;
540
540
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
541
541
  readonly flowToken: Schema.optionalKey<Schema.String>;
542
+ readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
542
543
  }>, Schema.Struct<{
543
544
  readonly templateSlug: Schema.String;
544
545
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
545
546
  readonly flowToken: Schema.optionalKey<Schema.String>;
547
+ readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
546
548
  }>, Schema.Struct<{
547
549
  readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
548
550
  readonly type: Schema.Literal<"image">;
@@ -897,6 +899,7 @@ export declare const MessagesGetContent200: Schema.Struct<{
897
899
  readonly parts: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
898
900
  }>, Schema.Null]>>;
899
901
  readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
902
+ readonly appHandlesFlowSubmission: Schema.optionalKey<Schema.Literal<true>>;
900
903
  readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
901
904
  readonly template: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
902
905
  readonly name: Schema.String;
@@ -929,6 +932,7 @@ export declare const MessagesGetContent200: Schema.Struct<{
929
932
  readonly coupon_code: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
930
933
  readonly action: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
931
934
  readonly flow_token: Schema.String;
935
+ readonly flow_action_data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
932
936
  }>, Schema.Null]>>;
933
937
  }>>;
934
938
  }>>;
@@ -1104,6 +1108,7 @@ export declare const MessagesGetContent200: Schema.Struct<{
1104
1108
  }>>;
1105
1109
  readonly flowResponse: Schema.optionalKey<Schema.Struct<{
1106
1110
  readonly flowToken: Schema.Union<readonly [Schema.String, Schema.Null]>;
1111
+ readonly submissionHandler: Schema.optionalKey<Schema.Literal<"app">>;
1107
1112
  readonly response: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
1108
1113
  readonly body: Schema.optionalKey<Schema.String>;
1109
1114
  }>>;
@@ -1775,6 +1780,7 @@ declare const MessagesGroup_base: HttpApiGroup.HttpApiGroup<"Messages", HttpApiE
1775
1780
  readonly parts: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
1776
1781
  }>, Schema.Null]>>;
1777
1782
  readonly whatsapp: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1783
+ readonly appHandlesFlowSubmission: Schema.optionalKey<Schema.Literal<true>>;
1778
1784
  readonly text: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1779
1785
  readonly template: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1780
1786
  readonly name: Schema.String;
@@ -1807,6 +1813,7 @@ declare const MessagesGroup_base: HttpApiGroup.HttpApiGroup<"Messages", HttpApiE
1807
1813
  readonly coupon_code: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1808
1814
  readonly action: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1809
1815
  readonly flow_token: Schema.String;
1816
+ readonly flow_action_data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
1810
1817
  }>, Schema.Null]>>;
1811
1818
  }>>;
1812
1819
  }>>;
@@ -1982,6 +1989,7 @@ declare const MessagesGroup_base: HttpApiGroup.HttpApiGroup<"Messages", HttpApiE
1982
1989
  }>>;
1983
1990
  readonly flowResponse: Schema.optionalKey<Schema.Struct<{
1984
1991
  readonly flowToken: Schema.Union<readonly [Schema.String, Schema.Null]>;
1992
+ readonly submissionHandler: Schema.optionalKey<Schema.Literal<"app">>;
1985
1993
  readonly response: Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>;
1986
1994
  readonly body: Schema.optionalKey<Schema.String>;
1987
1995
  }>>;
@@ -3006,10 +3014,12 @@ declare const MessagesGroup_base: HttpApiGroup.HttpApiGroup<"Messages", HttpApiE
3006
3014
  readonly templateId: Schema.brand<Schema.String, "TemplateId">;
3007
3015
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
3008
3016
  readonly flowToken: Schema.optionalKey<Schema.String>;
3017
+ readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
3009
3018
  }>, Schema.Struct<{
3010
3019
  readonly templateSlug: Schema.String;
3011
3020
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
3012
3021
  readonly flowToken: Schema.optionalKey<Schema.String>;
3022
+ readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<JsonValue, JsonValue, never, never>>>>;
3013
3023
  }>, Schema.Struct<{
3014
3024
  readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
3015
3025
  readonly type: Schema.Literal<"image">;
@@ -347,10 +347,12 @@ export declare const StoredWhatsAppSendMessage: Schema.Struct<{
347
347
  readonly templateId: Schema.brand<Schema.String, "TemplateId">;
348
348
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
349
349
  readonly flowToken: Schema.optionalKey<Schema.String>;
350
+ readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
350
351
  }>, Schema.Struct<{
351
352
  readonly templateSlug: Schema.String;
352
353
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
353
354
  readonly flowToken: Schema.optionalKey<Schema.String>;
355
+ readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
354
356
  }>, Schema.Struct<{
355
357
  readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
356
358
  readonly type: Schema.Literal<"image">;
@@ -563,10 +565,12 @@ export declare const WhatsAppDispatchSendMessagePayload: Schema.Struct<{
563
565
  readonly templateId: Schema.brand<Schema.String, "TemplateId">;
564
566
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
565
567
  readonly flowToken: Schema.optionalKey<Schema.String>;
568
+ readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
566
569
  }>, Schema.Struct<{
567
570
  readonly templateSlug: Schema.String;
568
571
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
569
572
  readonly flowToken: Schema.optionalKey<Schema.String>;
573
+ readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
570
574
  }>, Schema.Struct<{
571
575
  readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
572
576
  readonly type: Schema.Literal<"image">;
@@ -849,10 +853,12 @@ export declare const StoredSendMessagePayload: Schema.Union<readonly [Schema.Str
849
853
  readonly templateId: Schema.brand<Schema.String, "TemplateId">;
850
854
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
851
855
  readonly flowToken: Schema.optionalKey<Schema.String>;
856
+ readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
852
857
  }>, Schema.Struct<{
853
858
  readonly templateSlug: Schema.String;
854
859
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
855
860
  readonly flowToken: Schema.optionalKey<Schema.String>;
861
+ readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
856
862
  }>, Schema.Struct<{
857
863
  readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
858
864
  readonly type: Schema.Literal<"image">;
@@ -1135,10 +1141,12 @@ export declare const DispatchSendMessagePayload: Schema.Union<readonly [Schema.S
1135
1141
  readonly templateId: Schema.brand<Schema.String, "TemplateId">;
1136
1142
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
1137
1143
  readonly flowToken: Schema.optionalKey<Schema.String>;
1144
+ readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
1138
1145
  }>, Schema.Struct<{
1139
1146
  readonly templateSlug: Schema.String;
1140
1147
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
1141
1148
  readonly flowToken: Schema.optionalKey<Schema.String>;
1149
+ readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
1142
1150
  }>, Schema.Struct<{
1143
1151
  readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
1144
1152
  readonly type: Schema.Literal<"image">;
@@ -1442,10 +1450,12 @@ export declare const ScheduledMessage: Schema.Struct<{
1442
1450
  readonly templateId: Schema.brand<Schema.String, "TemplateId">;
1443
1451
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
1444
1452
  readonly flowToken: Schema.optionalKey<Schema.String>;
1453
+ readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
1445
1454
  }>, Schema.Struct<{
1446
1455
  readonly templateSlug: Schema.String;
1447
1456
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
1448
1457
  readonly flowToken: Schema.optionalKey<Schema.String>;
1458
+ readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
1449
1459
  }>, Schema.Struct<{
1450
1460
  readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
1451
1461
  readonly type: Schema.Literal<"image">;
@@ -1747,10 +1757,12 @@ export declare const ScheduledMessagePage: Schema.Struct<{
1747
1757
  readonly templateId: Schema.brand<Schema.String, "TemplateId">;
1748
1758
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
1749
1759
  readonly flowToken: Schema.optionalKey<Schema.String>;
1760
+ readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
1750
1761
  }>, Schema.Struct<{
1751
1762
  readonly templateSlug: Schema.String;
1752
1763
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
1753
1764
  readonly flowToken: Schema.optionalKey<Schema.String>;
1765
+ readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
1754
1766
  }>, Schema.Struct<{
1755
1767
  readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
1756
1768
  readonly type: Schema.Literal<"image">;
@@ -2063,10 +2075,12 @@ export declare const ScheduledMessagesList200: Schema.Struct<{
2063
2075
  readonly templateId: Schema.brand<Schema.String, "TemplateId">;
2064
2076
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
2065
2077
  readonly flowToken: Schema.optionalKey<Schema.String>;
2078
+ readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
2066
2079
  }>, Schema.Struct<{
2067
2080
  readonly templateSlug: Schema.String;
2068
2081
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
2069
2082
  readonly flowToken: Schema.optionalKey<Schema.String>;
2083
+ readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
2070
2084
  }>, Schema.Struct<{
2071
2085
  readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
2072
2086
  readonly type: Schema.Literal<"image">;
@@ -2386,10 +2400,12 @@ export declare const ScheduledMessagesCreateRequestJson: Schema.Struct<{
2386
2400
  readonly templateId: Schema.brand<Schema.String, "TemplateId">;
2387
2401
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
2388
2402
  readonly flowToken: Schema.optionalKey<Schema.String>;
2403
+ readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
2389
2404
  }>, Schema.Struct<{
2390
2405
  readonly templateSlug: Schema.String;
2391
2406
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
2392
2407
  readonly flowToken: Schema.optionalKey<Schema.String>;
2408
+ readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
2393
2409
  }>, Schema.Struct<{
2394
2410
  readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
2395
2411
  readonly type: Schema.Literal<"image">;
@@ -2682,10 +2698,12 @@ export declare const ScheduledMessagesCreate201: Schema.Struct<{
2682
2698
  readonly templateId: Schema.brand<Schema.String, "TemplateId">;
2683
2699
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
2684
2700
  readonly flowToken: Schema.optionalKey<Schema.String>;
2701
+ readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
2685
2702
  }>, Schema.Struct<{
2686
2703
  readonly templateSlug: Schema.String;
2687
2704
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
2688
2705
  readonly flowToken: Schema.optionalKey<Schema.String>;
2706
+ readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
2689
2707
  }>, Schema.Struct<{
2690
2708
  readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
2691
2709
  readonly type: Schema.Literal<"image">;
@@ -3007,10 +3025,12 @@ export declare const ScheduledMessagesGet200: Schema.Struct<{
3007
3025
  readonly templateId: Schema.brand<Schema.String, "TemplateId">;
3008
3026
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
3009
3027
  readonly flowToken: Schema.optionalKey<Schema.String>;
3028
+ readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
3010
3029
  }>, Schema.Struct<{
3011
3030
  readonly templateSlug: Schema.String;
3012
3031
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
3013
3032
  readonly flowToken: Schema.optionalKey<Schema.String>;
3033
+ readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
3014
3034
  }>, Schema.Struct<{
3015
3035
  readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
3016
3036
  readonly type: Schema.Literal<"image">;
@@ -3333,10 +3353,12 @@ export declare const ScheduledMessagesCancel200: Schema.Struct<{
3333
3353
  readonly templateId: Schema.brand<Schema.String, "TemplateId">;
3334
3354
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
3335
3355
  readonly flowToken: Schema.optionalKey<Schema.String>;
3356
+ readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
3336
3357
  }>, Schema.Struct<{
3337
3358
  readonly templateSlug: Schema.String;
3338
3359
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
3339
3360
  readonly flowToken: Schema.optionalKey<Schema.String>;
3361
+ readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
3340
3362
  }>, Schema.Struct<{
3341
3363
  readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
3342
3364
  readonly type: Schema.Literal<"image">;
@@ -3669,10 +3691,12 @@ export declare const ScheduledMessagesResume200: Schema.Struct<{
3669
3691
  readonly templateId: Schema.brand<Schema.String, "TemplateId">;
3670
3692
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
3671
3693
  readonly flowToken: Schema.optionalKey<Schema.String>;
3694
+ readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
3672
3695
  }>, Schema.Struct<{
3673
3696
  readonly templateSlug: Schema.String;
3674
3697
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
3675
3698
  readonly flowToken: Schema.optionalKey<Schema.String>;
3699
+ readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
3676
3700
  }>, Schema.Struct<{
3677
3701
  readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
3678
3702
  readonly type: Schema.Literal<"image">;
@@ -3993,10 +4017,12 @@ declare const ScheduledMessagesGroup_base: HttpApiGroup.HttpApiGroup<"Scheduled
3993
4017
  readonly templateId: Schema.brand<Schema.String, "TemplateId">;
3994
4018
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
3995
4019
  readonly flowToken: Schema.optionalKey<Schema.String>;
4020
+ readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
3996
4021
  }>, Schema.Struct<{
3997
4022
  readonly templateSlug: Schema.String;
3998
4023
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
3999
4024
  readonly flowToken: Schema.optionalKey<Schema.String>;
4025
+ readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
4000
4026
  }>, Schema.Struct<{
4001
4027
  readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
4002
4028
  readonly type: Schema.Literal<"image">;
@@ -4409,10 +4435,12 @@ declare const ScheduledMessagesGroup_base: HttpApiGroup.HttpApiGroup<"Scheduled
4409
4435
  readonly templateId: Schema.brand<Schema.String, "TemplateId">;
4410
4436
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
4411
4437
  readonly flowToken: Schema.optionalKey<Schema.String>;
4438
+ readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
4412
4439
  }>, Schema.Struct<{
4413
4440
  readonly templateSlug: Schema.String;
4414
4441
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
4415
4442
  readonly flowToken: Schema.optionalKey<Schema.String>;
4443
+ readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
4416
4444
  }>, Schema.Struct<{
4417
4445
  readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
4418
4446
  readonly type: Schema.Literal<"image">;
@@ -4705,10 +4733,12 @@ declare const ScheduledMessagesGroup_base: HttpApiGroup.HttpApiGroup<"Scheduled
4705
4733
  readonly templateId: Schema.brand<Schema.String, "TemplateId">;
4706
4734
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
4707
4735
  readonly flowToken: Schema.optionalKey<Schema.String>;
4736
+ readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
4708
4737
  }>, Schema.Struct<{
4709
4738
  readonly templateSlug: Schema.String;
4710
4739
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
4711
4740
  readonly flowToken: Schema.optionalKey<Schema.String>;
4741
+ readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
4712
4742
  }>, Schema.Struct<{
4713
4743
  readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
4714
4744
  readonly type: Schema.Literal<"image">;
@@ -5126,10 +5156,12 @@ declare const ScheduledMessagesGroup_base: HttpApiGroup.HttpApiGroup<"Scheduled
5126
5156
  readonly templateId: Schema.brand<Schema.String, "TemplateId">;
5127
5157
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
5128
5158
  readonly flowToken: Schema.optionalKey<Schema.String>;
5159
+ readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
5129
5160
  }>, Schema.Struct<{
5130
5161
  readonly templateSlug: Schema.String;
5131
5162
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
5132
5163
  readonly flowToken: Schema.optionalKey<Schema.String>;
5164
+ readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
5133
5165
  }>, Schema.Struct<{
5134
5166
  readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
5135
5167
  readonly type: Schema.Literal<"image">;
@@ -5531,10 +5563,12 @@ declare const ScheduledMessagesGroup_base: HttpApiGroup.HttpApiGroup<"Scheduled
5531
5563
  readonly templateId: Schema.brand<Schema.String, "TemplateId">;
5532
5564
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
5533
5565
  readonly flowToken: Schema.optionalKey<Schema.String>;
5566
+ readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
5534
5567
  }>, Schema.Struct<{
5535
5568
  readonly templateSlug: Schema.String;
5536
5569
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
5537
5570
  readonly flowToken: Schema.optionalKey<Schema.String>;
5571
+ readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
5538
5572
  }>, Schema.Struct<{
5539
5573
  readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
5540
5574
  readonly type: Schema.Literal<"image">;
@@ -5919,10 +5953,12 @@ declare const ScheduledMessagesGroup_base: HttpApiGroup.HttpApiGroup<"Scheduled
5919
5953
  readonly templateId: Schema.brand<Schema.String, "TemplateId">;
5920
5954
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
5921
5955
  readonly flowToken: Schema.optionalKey<Schema.String>;
5956
+ readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
5922
5957
  }>, Schema.Struct<{
5923
5958
  readonly templateSlug: Schema.String;
5924
5959
  readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
5925
5960
  readonly flowToken: Schema.optionalKey<Schema.String>;
5961
+ readonly flowActionData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared.js").JsonValue, import("./shared.js").JsonValue, never, never>>>>;
5926
5962
  }>, Schema.Struct<{
5927
5963
  readonly media: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
5928
5964
  readonly type: Schema.Literal<"image">;