samva 0.46.1 → 0.47.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 +13 -7
- package/README.md +106 -8
- package/dist/agent/index.d.ts +56 -0
- package/dist/agent/index.js +52 -0
- package/dist/agent/runtime.d.ts +3 -0
- package/dist/agent/runtime.js +74 -0
- package/dist/agent/test.d.ts +31 -0
- package/dist/agent/test.js +66 -0
- package/dist/agent/types.d.ts +123 -0
- package/dist/client/sdk.gen.d.ts +40 -160
- package/dist/client/sdk.gen.js +1302 -1598
- package/dist/client/types.gen.d.ts +377 -966
- package/dist/effect/agents.d.ts +340 -8
- package/dist/effect/agents.js +4 -2
- package/dist/effect/campaigns.d.ts +160 -160
- package/dist/effect/contacts.d.ts +8 -0
- package/dist/effect/contacts.js +5 -1
- package/dist/effect/descriptors/agents.d.ts +12 -2
- package/dist/effect/descriptors/agents.js +12 -2
- package/dist/effect/descriptors/contacts.d.ts +20 -0
- package/dist/effect/descriptors/contacts.js +20 -0
- package/dist/effect/generated/accounts.d.ts +10 -0
- package/dist/effect/generated/accounts.js +1 -0
- package/dist/effect/generated/agents.d.ts +2967 -690
- package/dist/effect/generated/agents.js +54 -13
- package/dist/effect/generated/contacts.d.ts +859 -1
- package/dist/effect/generated/contacts.js +62 -3
- package/dist/effect/generated/index.d.ts +1 -5
- package/dist/effect/generated/journeys.d.ts +255 -15
- package/dist/effect/generated/journeys.js +3 -1
- package/dist/effect/generated/mailboxes.d.ts +93 -95
- package/dist/effect/generated/mailboxes.js +21 -25
- package/dist/effect/generated/shared.d.ts +407 -101
- package/dist/effect/generated/shared.js +80 -36
- package/dist/effect/generated/template-registrations.d.ts +1 -4
- package/dist/effect/generated/template-registrations.js +2 -6
- package/dist/effect/generated-metadata.d.ts +18 -84
- package/dist/effect/generated-metadata.js +362 -415
- package/dist/effect/index.d.ts +0 -2
- package/dist/effect/index.js +1 -3
- package/dist/effect/internal/client.js +1 -1
- package/dist/effect/internal/operation.js +4 -1
- package/dist/effect/journeys.d.ts +26 -2
- package/dist/effect/mailboxes.d.ts +41 -41
- package/dist/effect/scheduled-messages.d.ts +350 -350
- package/dist/effect/topics.d.ts +2 -2
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +1 -5
- package/dist/promises/client.js +3 -7
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +18 -75
- package/package.json +10 -22
- package/dist/effect/descriptors/extension-installations.d.ts +0 -90
- package/dist/effect/descriptors/extension-installations.js +0 -90
- package/dist/effect/descriptors/extensions.d.ts +0 -50
- package/dist/effect/descriptors/extensions.js +0 -50
- package/dist/effect/extension-installations.d.ts +0 -132
- package/dist/effect/extension-installations.js +0 -29
- package/dist/effect/extensions.d.ts +0 -102
- package/dist/effect/extensions.js +0 -21
- package/dist/effect/generated/extension-installations.d.ts +0 -2761
- package/dist/effect/generated/extension-installations.js +0 -405
- package/dist/effect/generated/extensions.d.ts +0 -1037
- package/dist/effect/generated/extensions.js +0 -214
- package/dist/mailbox/dispatch.d.ts +0 -10
- package/dist/mailbox/dispatch.js +0 -66
- package/dist/mailbox/index.d.ts +0 -17
- package/dist/mailbox/index.js +0 -30
- package/dist/mailbox/test.d.ts +0 -25
- package/dist/mailbox/test.js +0 -181
- package/dist/mailbox/types.d.ts +0 -221
- package/dist/mailbox/webhook.d.ts +0 -10
- package/dist/mailbox/webhook.js +0 -41
|
@@ -85,10 +85,6 @@ const AgentToolScope = /* @__PURE__ */ (() => Schema.Union([
|
|
|
85
85
|
names: Schema.Array(Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z][a-z0-9_.]{0,63}$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z][a-z0-9_.]{0,63}$" }))).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" }))
|
|
86
86
|
})
|
|
87
87
|
]).annotate({ identifier: "AgentToolScope" }))();
|
|
88
|
-
const TemplateId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^tmpl_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
89
|
-
expected: "a string matching the RegExp ^tmpl_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
90
|
-
identifier: "TemplateId"
|
|
91
|
-
})).pipe(Schema.brand("TemplateId")))();
|
|
92
88
|
const PolicyEffect = /* @__PURE__ */ (() => Schema.Union([
|
|
93
89
|
Schema.Literal("read"),
|
|
94
90
|
Schema.Literal("write"),
|
|
@@ -133,6 +129,10 @@ const ClockTime = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(ne
|
|
|
133
129
|
expected: "a string matching the RegExp ^(?:[01]\\d|2[0-3]):[0-5]\\d$",
|
|
134
130
|
identifier: "ClockTime"
|
|
135
131
|
})))();
|
|
132
|
+
const TemplateId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^tmpl_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
133
|
+
expected: "a string matching the RegExp ^tmpl_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
134
|
+
identifier: "TemplateId"
|
|
135
|
+
})).pipe(Schema.brand("TemplateId")))();
|
|
136
136
|
var PaymentRequiredError = class extends Schema.TaggedError()("PaymentRequiredError", Schema.Struct({
|
|
137
137
|
message: Schema.String,
|
|
138
138
|
resource: Schema.String,
|
|
@@ -408,14 +408,6 @@ const EmailSenderId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPatter
|
|
|
408
408
|
expected: "a string matching the RegExp ^sender_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
409
409
|
identifier: "EmailSenderId"
|
|
410
410
|
})).pipe(Schema.brand("EmailSenderId")))();
|
|
411
|
-
const ExtensionId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^ext_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
412
|
-
expected: "a string matching the RegExp ^ext_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
413
|
-
identifier: "ExtensionId"
|
|
414
|
-
})).pipe(Schema.brand("ExtensionId")))();
|
|
415
|
-
const ExtensionVersionId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^extver_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
416
|
-
expected: "a string matching the RegExp ^extver_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
417
|
-
identifier: "ExtensionVersionId"
|
|
418
|
-
})).pipe(Schema.brand("ExtensionVersionId")))();
|
|
419
411
|
const FeedbackContext = /* @__PURE__ */ (() => Schema.Struct({
|
|
420
412
|
operation: Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "The operation the report is about, as an SDK method, MCP tool, CLI command, or `METHOD /path` (for example `POST /v1/messages`)." }).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(200).annotate({ expected: "a string with at most 200 code points" })).check(Schema.isMaxLength(200).annotate({ expected: "a value with a length of at most 200" })), Schema.Null])),
|
|
421
413
|
resourceId: Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "The id of the resource involved, such as a message or domain id." }).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(200).annotate({ expected: "a string with at most 200 code points" })).check(Schema.isMaxLength(200).annotate({ expected: "a value with a length of at most 200" })), Schema.Null]))
|
|
@@ -451,6 +443,14 @@ const JourneyNodeId = /* @__PURE__ */ (() => Schema.String.check(Schema.isMinLen
|
|
|
451
443
|
expected: "a value with a length of at least 1",
|
|
452
444
|
identifier: "JourneyNodeId"
|
|
453
445
|
})))();
|
|
446
|
+
const TemplateRegistrationId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^treg_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
447
|
+
expected: "a string matching the RegExp ^treg_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
448
|
+
identifier: "TemplateRegistrationId"
|
|
449
|
+
})).pipe(Schema.brand("TemplateRegistrationId")))();
|
|
450
|
+
const TemplateChannelVariantId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^tvar_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
451
|
+
expected: "a string matching the RegExp ^tvar_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
452
|
+
identifier: "TemplateChannelVariantId"
|
|
453
|
+
})).pipe(Schema.brand("TemplateChannelVariantId")))();
|
|
454
454
|
const JourneyWaitConfig = /* @__PURE__ */ (() => Schema.Struct({ durationSeconds: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(7776e3).annotate({ expected: "a value less than or equal to 7776000" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })) }).annotate({ identifier: "JourneyWaitConfig" }))();
|
|
455
455
|
const JourneyEmptyConfig = /* @__PURE__ */ (() => Schema.Record(Schema.String, Schema.Never).annotate({ identifier: "JourneyEmptyConfig" }))();
|
|
456
456
|
const JourneyTagPredicate = /* @__PURE__ */ (() => Schema.Struct({
|
|
@@ -505,6 +505,10 @@ const JourneyUpdateTagsConfig = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
505
505
|
add: Schema.Array(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" }))),
|
|
506
506
|
remove: Schema.Array(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })))
|
|
507
507
|
}).annotate({ identifier: "JourneyUpdateTagsConfig" }))();
|
|
508
|
+
const ShopifyShop = /* @__PURE__ */ (() => Schema.String.check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9][a-z0-9-]*\\.myshopify\\.com$(?![\\s\\S])", "u")).annotate({
|
|
509
|
+
expected: "a string matching the RegExp ^[a-z0-9][a-z0-9-]*\\.myshopify\\.com$(?![\\s\\S])",
|
|
510
|
+
identifier: "ShopifyShop"
|
|
511
|
+
})).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })))();
|
|
508
512
|
const MailboxChannel = /* @__PURE__ */ (() => Schema.Union([
|
|
509
513
|
Schema.Literal("sms"),
|
|
510
514
|
Schema.Literal("whatsapp"),
|
|
@@ -913,19 +917,6 @@ const AgentIntegrationGrant = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
913
917
|
subject: Schema.optionalKey(Schema.Union([Schema.Literal("org"), Schema.Literal("contact")])),
|
|
914
918
|
tools: AgentToolScope
|
|
915
919
|
}).annotate({ identifier: "AgentIntegrationGrant" }))();
|
|
916
|
-
const SendMailboxChatPayload = /* @__PURE__ */ (() => Schema.Struct({
|
|
917
|
-
channel: Schema.Union([Schema.Literal("whatsapp"), Schema.Literal("sms")]),
|
|
918
|
-
to: Schema.String,
|
|
919
|
-
text: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema.Null])),
|
|
920
|
-
templateId: Schema.optionalKey(Schema.Union([TemplateId, Schema.Null])),
|
|
921
|
-
templateData: Schema.optionalKey(Schema.Union([JsonObject, Schema.Null]))
|
|
922
|
-
}).annotate({ identifier: "SendMailboxChatPayload" }))();
|
|
923
|
-
const ReplyMailboxChatPayload = /* @__PURE__ */ (() => Schema.Struct({
|
|
924
|
-
channel: Schema.Union([Schema.Literal("whatsapp"), Schema.Literal("sms")]),
|
|
925
|
-
text: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema.Null])),
|
|
926
|
-
templateId: Schema.optionalKey(Schema.Union([TemplateId, Schema.Null])),
|
|
927
|
-
templateData: Schema.optionalKey(Schema.Union([JsonObject, Schema.Null]))
|
|
928
|
-
}).annotate({ identifier: "ReplyMailboxChatPayload" }))();
|
|
929
920
|
const PolicySubject = /* @__PURE__ */ (() => Schema.Union([
|
|
930
921
|
Schema.Struct({
|
|
931
922
|
kind: Schema.Literal("agent"),
|
|
@@ -944,12 +935,31 @@ const PolicySubject = /* @__PURE__ */ (() => Schema.Union([
|
|
|
944
935
|
id: ExtensionInstallationId
|
|
945
936
|
})
|
|
946
937
|
]).annotate({ identifier: "PolicySubject" }))();
|
|
938
|
+
const AgentModuleTool = /* @__PURE__ */ (() => Schema.Struct({
|
|
939
|
+
description: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(2e3).annotate({ expected: "a string with at most 2000 code points" })).check(Schema.isMaxLength(2e3).annotate({ expected: "a value with a length of at most 2000" })),
|
|
940
|
+
input: JsonObject,
|
|
941
|
+
approval: Schema.optionalKey(PolicyRequirement),
|
|
942
|
+
replay: Schema.Union([Schema.Literal("safe"), Schema.Literal("unsafe")])
|
|
943
|
+
}).annotate({ identifier: "AgentModuleTool" }))();
|
|
947
944
|
const AgentModelChoice = /* @__PURE__ */ (() => Schema.Union([AgentModel, CatalogModelId]).annotate({ identifier: "AgentModelChoice" }))();
|
|
948
945
|
const WorkingHoursRange = /* @__PURE__ */ (() => Schema.Struct({
|
|
949
946
|
day: Weekday,
|
|
950
947
|
opens: ClockTime,
|
|
951
948
|
closes: ClockTime
|
|
952
949
|
}).annotate({ identifier: "WorkingHoursRange" }))();
|
|
950
|
+
const SendMailboxChatPayload = /* @__PURE__ */ (() => Schema.Struct({
|
|
951
|
+
channel: Schema.Union([Schema.Literal("whatsapp"), Schema.Literal("sms")]),
|
|
952
|
+
to: Schema.String,
|
|
953
|
+
text: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema.Null])),
|
|
954
|
+
templateId: Schema.optionalKey(Schema.Union([TemplateId, Schema.Null])),
|
|
955
|
+
templateData: Schema.optionalKey(Schema.Union([JsonObject, Schema.Null]))
|
|
956
|
+
}).annotate({ identifier: "SendMailboxChatPayload" }))();
|
|
957
|
+
const ReplyMailboxChatPayload = /* @__PURE__ */ (() => Schema.Struct({
|
|
958
|
+
channel: Schema.Union([Schema.Literal("whatsapp"), Schema.Literal("sms")]),
|
|
959
|
+
text: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema.Null])),
|
|
960
|
+
templateId: Schema.optionalKey(Schema.Union([TemplateId, Schema.Null])),
|
|
961
|
+
templateData: Schema.optionalKey(Schema.Union([JsonObject, Schema.Null]))
|
|
962
|
+
}).annotate({ identifier: "ReplyMailboxChatPayload" }))();
|
|
953
963
|
const ApiKeyMailboxAccess = /* @__PURE__ */ (() => Schema.Struct({
|
|
954
964
|
permissions: Schema.TupleWithRest(Schema.Tuple([Schema.Union([
|
|
955
965
|
Schema.Literal("read"),
|
|
@@ -1228,13 +1238,10 @@ const MessageSummary = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1228
1238
|
}).annotate({ identifier: "MessageSummary" }))();
|
|
1229
1239
|
const JourneySendEmailConfig = /* @__PURE__ */ (() => Schema.Struct({
|
|
1230
1240
|
template: Schema.Union([TemplateId, Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" }))]),
|
|
1241
|
+
publicationId: Schema.optionalKey(TemplatePublicationId),
|
|
1231
1242
|
senderId: Schema.optionalKey(EmailSenderId),
|
|
1232
1243
|
templateData: Schema.optionalKey(JsonObject)
|
|
1233
1244
|
}).annotate({ identifier: "JourneySendEmailConfig" }))();
|
|
1234
|
-
const ExtensionVersionRef = /* @__PURE__ */ (() => Schema.Struct({
|
|
1235
|
-
id: ExtensionVersionId,
|
|
1236
|
-
version: Schema.String
|
|
1237
|
-
}).annotate({ identifier: "ExtensionVersionRef" }))();
|
|
1238
1245
|
const SendFeedback = /* @__PURE__ */ (() => Schema.Struct({
|
|
1239
1246
|
message: Schema.String.annotate({ description: "What happened and what you expected, in plain language (at most 4000 characters)." }).check(Schema.isMaxCodePoints(4e3).annotate({ expected: "a string with at most 4000 code points" })).check(Schema.isPattern(new globalThis.RegExp("\\S", "u")).annotate({ expected: "a string matching the RegExp \\S" })).check(Schema.isMaxLength(4e3).annotate({ expected: "a value with a length of at most 4000" })),
|
|
1240
1247
|
category: Schema.optionalKey(Schema.Union([Schema.Union([
|
|
@@ -1496,7 +1503,7 @@ const PolicyRuleMatch = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1496
1503
|
Schema.Literal("email")
|
|
1497
1504
|
]), Schema.Null])),
|
|
1498
1505
|
integration: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema.Null])),
|
|
1499
|
-
tool: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[
|
|
1506
|
+
tool: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[A-Za-z][A-Za-z0-9_-]*(?:\\.[A-Za-z][A-Za-z0-9_-]*)*(?:\\.\\*)?$", "u")).annotate({ expected: "a string matching the RegExp ^[A-Za-z][A-Za-z0-9_-]*(?:\\.[A-Za-z][A-Za-z0-9_-]*)*(?:\\.\\*)?$" })), Schema.Null])),
|
|
1500
1507
|
subject: Schema.optionalKey(Schema.Union([
|
|
1501
1508
|
Schema.Union([
|
|
1502
1509
|
Schema.Literal("agent"),
|
|
@@ -1774,6 +1781,17 @@ const WhatsAppTemplateDispatch = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1774
1781
|
bindings: Schema.optionalKey(WhatsAppTemplateBindings),
|
|
1775
1782
|
businessAccountId: Schema.optionalKey(WhatsAppBusinessAccountId)
|
|
1776
1783
|
}).annotate({ identifier: "WhatsAppTemplateDispatch" }))();
|
|
1784
|
+
const JourneySendWhatsAppConfig = /* @__PURE__ */ (() => Schema.Struct({
|
|
1785
|
+
template: Schema.Union([TemplateId, Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" }))]),
|
|
1786
|
+
templateData: Schema.optionalKey(WhatsAppTemplateDispatchData),
|
|
1787
|
+
bindings: Schema.optionalKey(WhatsAppTemplateBindings),
|
|
1788
|
+
businessAccountId: Schema.optionalKey(WhatsAppBusinessAccountId),
|
|
1789
|
+
pinnedRegistration: Schema.optionalKey(Schema.Struct({
|
|
1790
|
+
registrationId: TemplateRegistrationId,
|
|
1791
|
+
templateChannelVariantId: TemplateChannelVariantId
|
|
1792
|
+
})),
|
|
1793
|
+
eventBindings: Schema.optionalKey(Schema.Record(Schema.String, Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isPattern(new globalThis.RegExp("^[a-zA-Z0-9_]+(?:\\.[a-zA-Z0-9_]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^[a-zA-Z0-9_]+(?:\\.[a-zA-Z0-9_]+)*$" }))).check(Schema.isPropertyNames(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" }))).annotate({ expected: "an object with property names matching the schema" })))
|
|
1794
|
+
}).annotate({ identifier: "JourneySendWhatsAppConfig" }))();
|
|
1777
1795
|
const JourneyWaitForEventNode = /* @__PURE__ */ (() => Schema.Struct({
|
|
1778
1796
|
type: Schema.Literal("wait_for_event"),
|
|
1779
1797
|
config: JourneyWaitForEventConfig,
|
|
@@ -1846,7 +1864,7 @@ const WhatsAppCampaignContentInput = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1846
1864
|
}).annotate({ identifier: "WhatsAppCampaignContentInput" }))();
|
|
1847
1865
|
const WhatsAppJourneySendNode = /* @__PURE__ */ (() => Schema.Struct({
|
|
1848
1866
|
type: Schema.Literal("send_whatsapp"),
|
|
1849
|
-
config:
|
|
1867
|
+
config: JourneySendWhatsAppConfig,
|
|
1850
1868
|
next: Schema.Tuple([JourneyNextEdge])
|
|
1851
1869
|
}).annotate({ identifier: "WhatsAppJourneySendNode" }))();
|
|
1852
1870
|
const JourneyCondition = /* @__PURE__ */ (() => Schema.Struct({
|
|
@@ -1859,14 +1877,32 @@ const AgentDefinition = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1859
1877
|
knowledgeSourceIds: Schema.optionalKey(Schema.Array(KnowledgeSourceId).check(Schema.isMaxLength(25).annotate({ expected: "a value with a length of at most 25" }))),
|
|
1860
1878
|
endpointIds: Schema.Array(MailboxEndpointId).check(Schema.isMaxLength(20).annotate({ expected: "a value with a length of at most 20" })),
|
|
1861
1879
|
integrations: Schema.Array(AgentIntegrationGrant).check(Schema.isMaxLength(20).annotate({ expected: "a value with a length of at most 20" })),
|
|
1862
|
-
eventTriggers: Schema.optionalKey(Schema.Array(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isPattern(new globalThis.RegExp("^[A-Za-z][A-Za-z0-9_.-]*$", "u")).annotate({ expected: "a string matching the RegExp ^[A-Za-z][A-Za-z0-9_.-]*$" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })))),
|
|
1863
|
-
followUpTemplate: Schema.optionalKey(Schema.Union([TemplateId, Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" }))])),
|
|
1864
1880
|
policy: PolicyConfiguration,
|
|
1865
1881
|
model: AgentModelChoice,
|
|
1866
1882
|
reasoning: AgentReasoning,
|
|
1867
1883
|
workingHours: Schema.Union([WorkingHours, Schema.Null]),
|
|
1868
|
-
takeoverTimeoutMinutes: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(10080).annotate({ expected: "a value less than or equal to 10080" }))
|
|
1884
|
+
takeoverTimeoutMinutes: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(10080).annotate({ expected: "a value less than or equal to 10080" })),
|
|
1885
|
+
eventTriggers: Schema.optionalKey(Schema.Array(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isPattern(new globalThis.RegExp("^[A-Za-z][A-Za-z0-9_.-]*$", "u")).annotate({ expected: "a string matching the RegExp ^[A-Za-z][A-Za-z0-9_.-]*$" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })))),
|
|
1886
|
+
followUpTemplate: Schema.optionalKey(Schema.Union([TemplateId, Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" }))]))
|
|
1869
1887
|
}).annotate({ identifier: "AgentDefinition" }))();
|
|
1888
|
+
const AgentModuleManifest = /* @__PURE__ */ (() => Schema.Struct({
|
|
1889
|
+
name: AgentName,
|
|
1890
|
+
version: Schema.String.check(Schema.isPattern(new globalThis.RegExp("^\\d{1,6}\\.\\d{1,6}\\.\\d{1,6}(?:-[0-9A-Za-z.-]{1,64})?$", "u")).annotate({ expected: "a string matching the RegExp ^\\d{1,6}\\.\\d{1,6}\\.\\d{1,6}(?:-[0-9A-Za-z.-]{1,64})?$" })),
|
|
1891
|
+
knowledgeSourceIds: Schema.optionalKey(Schema.Array(KnowledgeSourceId).check(Schema.isMaxLength(25).annotate({ expected: "a value with a length of at most 25" }))),
|
|
1892
|
+
endpointIds: Schema.Array(MailboxEndpointId).check(Schema.isMaxLength(20).annotate({ expected: "a value with a length of at most 20" })),
|
|
1893
|
+
integrations: Schema.Array(AgentIntegrationGrant).check(Schema.isMaxLength(20).annotate({ expected: "a value with a length of at most 20" })),
|
|
1894
|
+
policy: PolicyConfiguration,
|
|
1895
|
+
model: AgentModelChoice,
|
|
1896
|
+
reasoning: AgentReasoning,
|
|
1897
|
+
workingHours: Schema.Union([WorkingHours, Schema.Null]),
|
|
1898
|
+
takeoverTimeoutMinutes: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(10080).annotate({ expected: "a value less than or equal to 10080" })),
|
|
1899
|
+
eventTriggers: Schema.optionalKey(Schema.Array(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isPattern(new globalThis.RegExp("^[A-Za-z][A-Za-z0-9_.-]*$", "u")).annotate({ expected: "a string matching the RegExp ^[A-Za-z][A-Za-z0-9_.-]*$" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })))),
|
|
1900
|
+
followUpTemplate: Schema.optionalKey(Schema.Union([TemplateId, Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" }))])),
|
|
1901
|
+
tools: Schema.Record(Schema.String, AgentModuleTool),
|
|
1902
|
+
skills: Schema.Array(Schema.String.check(Schema.isPattern(new globalThis.RegExp("^[A-Za-z][A-Za-z0-9_-]{0,63}$", "u")).annotate({ expected: "a string matching the RegExp ^[A-Za-z][A-Za-z0-9_-]{0,63}$" }))).check(Schema.isMaxLength(100).annotate({ expected: "a value with a length of at most 100" })),
|
|
1903
|
+
events: Schema.Array(Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isPattern(new globalThis.RegExp("^[A-Za-z][A-Za-z0-9_.-]*$", "u")).annotate({ expected: "a string matching the RegExp ^[A-Za-z][A-Za-z0-9_.-]*$" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))).check(Schema.isMaxLength(100).annotate({ expected: "a value with a length of at most 100" })),
|
|
1904
|
+
schedules: Schema.Array(Schema.String.check(Schema.isMaxCodePoints(200).annotate({ expected: "a string with at most 200 code points" })).check(Schema.isPattern(new globalThis.RegExp("^\\S+\\s+\\S+\\s+\\S+\\s+\\S+\\s+\\S+$", "u")).annotate({ expected: "a string matching the RegExp ^\\S+\\s+\\S+\\s+\\S+\\s+\\S+\\s+\\S+$" })).check(Schema.isMaxLength(200).annotate({ expected: "a value with a length of at most 200" }))).check(Schema.isMaxLength(100).annotate({ expected: "a value with a length of at most 100" }))
|
|
1905
|
+
}).annotate({ identifier: "AgentModuleManifest" }))();
|
|
1870
1906
|
const WhatsAppInteractive = /* @__PURE__ */ (() => Schema.Union([
|
|
1871
1907
|
WhatsAppButtonsMessage,
|
|
1872
1908
|
WhatsAppListMessage,
|
|
@@ -1882,6 +1918,10 @@ const JourneyBranchEdge = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1882
1918
|
nodeId: JourneyNodeId,
|
|
1883
1919
|
condition: Schema.optionalKey(JourneyCondition)
|
|
1884
1920
|
}).annotate({ identifier: "JourneyBranchEdge" }))();
|
|
1921
|
+
const AgentModuleBundle = /* @__PURE__ */ (() => Schema.Struct({
|
|
1922
|
+
source: Schema.String,
|
|
1923
|
+
manifest: AgentModuleManifest
|
|
1924
|
+
}).annotate({ identifier: "AgentModuleBundle" }))();
|
|
1885
1925
|
const WhatsAppInteractiveContent = /* @__PURE__ */ (() => Schema.Struct({ interactive: WhatsAppInteractive }).annotate({ identifier: "WhatsAppInteractiveContent" }))();
|
|
1886
1926
|
const JourneyBranchNode = /* @__PURE__ */ (() => Schema.Struct({
|
|
1887
1927
|
type: Schema.Literal("branch"),
|
|
@@ -1926,7 +1966,11 @@ const JourneyDefinition = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
1926
1966
|
rootNodeId: JourneyNodeId,
|
|
1927
1967
|
nodes: Schema.Record(Schema.String, JourneyNode).check(Schema.isMinProperties(1).annotate({ expected: "a value with at least 1 entry" })).check(Schema.isMaxProperties(200).annotate({ expected: "a value with at most 200 entries" })),
|
|
1928
1968
|
goal: Schema.optionalKey(JourneyGoal),
|
|
1929
|
-
reentry: Schema.optionalKey(Schema.Boolean)
|
|
1969
|
+
reentry: Schema.optionalKey(Schema.Boolean),
|
|
1970
|
+
enrollment: Schema.optionalKey(Schema.Struct({
|
|
1971
|
+
type: Schema.Literal("shopify_order"),
|
|
1972
|
+
shop: ShopifyShop
|
|
1973
|
+
}))
|
|
1930
1974
|
}).annotate({ identifier: "JourneyDefinition" }))();
|
|
1931
1975
|
const __recursive_JsonValue = Schema.Union([
|
|
1932
1976
|
Schema.String,
|
|
@@ -1941,6 +1985,6 @@ const ApiKeySecurity = HttpApiSecurity.apiKey({
|
|
|
1941
1985
|
in: "header"
|
|
1942
1986
|
});
|
|
1943
1987
|
var ApiKeySecurityMiddleware = class extends HttpApiMiddleware.Service()("apiKey security", { security: { apiKey: ApiKeySecurity } }) {};
|
|
1944
|
-
export { AccountLinks, AgentDefinition, AgentId, AgentIntegrationGrant, AgentModel, AgentModelChoice, AgentName, AgentReasoning, AgentSetupJob, AgentToolScope, AnalyticsQueryError, AnswerWithoutApproval, ApiKeyAccess, ApiKeyId, ApiKeyMailboxAccess, ApiKeyResourceAccess, ApiKeySecurity, ApiKeySecurityMiddleware, AttachmentId, BillingProviderError, BrandAddress, BrandAddressRequiredError, BrandAssets, BrandFooter, BrandSocialLink, CampaignAudience, CampaignContentInput, CampaignContentMetadata, CampaignConversationRef, CampaignEmailInput, CampaignFooterRequiredError, CampaignFromInput, CampaignId, CampaignLatestRun, CampaignReplyMailbox, CampaignRunId, CatalogModelId, ClockTime, ConflictError, ContactConsent, ContactEvent, ContactEventReference, ContactGroupId, ContactId, ContactIdentity, ContactIdentityChannel, ContactIdentityId, ConversationId, CreateBrand, CreateEventPayload, CreateMailboxChatDraftPayload, CreateMailboxEmailDraftPayload, CreateMailboxEndpointPayload, CreateTemplatePayload, CreateWebhookPayload, CredentialsError, DeliveryUnavailableError, EmailAttachment, EmailAttachments, EmailBccRecipients, EmailCampaignContentInput, EmailCcRecipients, EmailChannelError, EmailContent, EmailCustomHeaders, EmailDomainId, EmailFooterOverride, EmailRecipient, EmailRecipients, EmailSendMessagePayload, EmailSender, EmailSenderId, EmailTrackingOverrideV1,
|
|
1988
|
+
export { AccountLinks, AgentDefinition, AgentId, AgentIntegrationGrant, AgentModel, AgentModelChoice, AgentModuleBundle, AgentModuleManifest, AgentModuleTool, AgentName, AgentReasoning, AgentSetupJob, AgentToolScope, AnalyticsQueryError, AnswerWithoutApproval, ApiKeyAccess, ApiKeyId, ApiKeyMailboxAccess, ApiKeyResourceAccess, ApiKeySecurity, ApiKeySecurityMiddleware, AttachmentId, BillingProviderError, BrandAddress, BrandAddressRequiredError, BrandAssets, BrandFooter, BrandSocialLink, CampaignAudience, CampaignContentInput, CampaignContentMetadata, CampaignConversationRef, CampaignEmailInput, CampaignFooterRequiredError, CampaignFromInput, CampaignId, CampaignLatestRun, CampaignReplyMailbox, CampaignRunId, CatalogModelId, ClockTime, ConflictError, ContactConsent, ContactEvent, ContactEventReference, ContactGroupId, ContactId, ContactIdentity, ContactIdentityChannel, ContactIdentityId, ConversationId, CreateBrand, CreateEventPayload, CreateMailboxChatDraftPayload, CreateMailboxEmailDraftPayload, CreateMailboxEndpointPayload, CreateTemplatePayload, CreateWebhookPayload, CredentialsError, DeliveryUnavailableError, EmailAttachment, EmailAttachments, EmailBccRecipients, EmailCampaignContentInput, EmailCcRecipients, EmailChannelError, EmailContent, EmailCustomHeaders, EmailDomainId, EmailFooterOverride, EmailRecipient, EmailRecipients, EmailSendMessagePayload, EmailSender, EmailSenderId, EmailTrackingOverrideV1, ExtensionInstallationId, ExternalServiceError, FeedbackContext, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, IanaTimezone, IntegrationAccountId, IntegrationId, IntegrationKey, IntegrationReturnTo, IntegrationStatus, IntegrationTool, InternalError, JourneyBranchEdge, JourneyBranchNode, JourneyComparison, JourneyCondition, JourneyContactCreatedTrigger, JourneyContactProperty, JourneyCustomEventName, JourneyCustomEventTrigger, JourneyCustomFieldPredicate, JourneyDefinition, JourneyEmptyConfig, JourneyEqualityComparison, JourneyEventName, JourneyEventPredicate, JourneyExitNode, JourneyGoal, JourneyGroupJoinedTrigger, JourneyId, JourneyName, JourneyNextEdge, JourneyNode, JourneyNodeId, JourneyNumericComparison, JourneyPredicate, JourneyPresenceComparison, JourneyPropertyPredicate, JourneySendEmailConfig, JourneySendEmailNode, JourneySendWhatsAppConfig, JourneyStringComparison, JourneyTagAddedTrigger, JourneyTagPredicate, JourneyTrigger, JourneyUpdateTagsConfig, JourneyUpdateTagsNode, JourneyWaitConfig, JourneyWaitEventEdge, JourneyWaitForEventConfig, JourneyWaitForEventNode, JourneyWaitNode, JourneyWebhookConfig, JourneyWebhookNode, JsonObject, JsonValue, KnowledgeSourceId, MailboxActionDecision, MailboxActionId, MailboxChannel, MailboxDraftId, MailboxEndpointId, MailboxGrantRole, MailboxId, MailboxLabelId, MailboxMetadata, MailboxMetadataPatch, MailboxSendConflictError, MailboxSendError, MailboxSendOutcome, MailboxSendReceipt, MailboxSendRefusedError, MailboxThreadFolder, MailboxThreadId, MailboxThreadPriority, MalformedRequestError, MediaId, MessageDeliveryId, MessageId, MessageMetadata, MessagePage, MessageSummary, MonthlySpendCapDollars, NamespaceId, NamespaceMetadata, NamespacePortalLinkMetadata, NamespaceResourceType, NewsletterId, OnboardingReviewRequiredError, Operation, OperationAccepted, OperationId, OperationResource, OperationResourceLink, OrganizationId, PaymentRequiredError, PolicyConfiguration, PolicyDecider, PolicyDecisionId, PolicyEffect, PolicyRequirement, PolicyReviewRound, PolicyRule, PolicyRuleMatch, PolicySubject, PolicyVersion, RateLimitedError, RenderLocale, RenderTimeZone, ReplyMailboxChatPayload, ReplyMailboxEmailPayload, ReplyToAddresses, ResourceNotFoundError, SendFeedback, SendMailboxChatPayload, SendMailboxEmailPayload, SenderNotReadyError, SendsSeries, ServiceUnavailableError, ShareLinkUnavailable, ShopifyShop, SkippedRecipient, SlugTaken, SmsCampaignContentInput, SmsContent, SmsDispatchContent, SmsRecipient, SmsRecipients, SmsSendMessagePayload, SmsTemplateData, StoredEmailAttachments, StoredReplyToAddresses, SuccessResponse, TemplateChannelVariantId, TemplateData, TemplateFromDefaultInput, TemplateId, TemplateInUseError, TemplateInputContractId, TemplateProjectId, TemplatePublicationId, TemplateRegistrationId, TemplateSourceError, TemplateTrackingDefault, TestWebhookPayload, TimeZone, TopicContactByEmail, TopicContactById, TopicContactByPhone, TopicContactRef, TopicId, UnauthorizedError, UpdateBrand, UpdateTemplatePayload, UpdateWebhookPayload, UserId, ValidationError, WebhookEndpointId, Weekday, WhatsAppAudio, WhatsAppAudioLink, WhatsAppAudioUpload, WhatsAppBusinessAccountId, WhatsAppButtonsMessage, WhatsAppCampaignContentInput, WhatsAppChannelError, WhatsAppContactCard, WhatsAppContactsContent, WhatsAppContent, WhatsAppCtaUrlMessage, WhatsAppDocument, WhatsAppDocumentHeader, WhatsAppDocumentHeaderLink, WhatsAppDocumentHeaderUpload, WhatsAppDocumentLink, WhatsAppDocumentUpload, WhatsAppFlowId, WhatsAppFlowMessage, WhatsAppFlowVersionId, WhatsAppImage, WhatsAppImageHeader, WhatsAppImageHeaderLink, WhatsAppImageHeaderUpload, WhatsAppImageLink, WhatsAppImageUpload, WhatsAppInteractive, WhatsAppInteractiveContent, WhatsAppInteractiveHeader, WhatsAppJourneySendNode, WhatsAppListMessage, WhatsAppListRow, WhatsAppListSection, WhatsAppLocation, WhatsAppLocationContent, WhatsAppMediaContent, WhatsAppOutboundMedia, WhatsAppReaction, WhatsAppReactionContent, WhatsAppRecipient, WhatsAppRecipients, WhatsAppReplyButton, WhatsAppSendMessagePayload, WhatsAppServiceWindowClosedError, WhatsAppSetupLinkMetadata, WhatsAppSetupLinkRedirectUrl, WhatsAppSetupLinkUnavailableError, WhatsAppSticker, WhatsAppStickerLink, WhatsAppStickerUpload, WhatsAppTemplateBinding, WhatsAppTemplateBindings, WhatsAppTemplateContactBinding, WhatsAppTemplateCustomFieldBinding, WhatsAppTemplateData, WhatsAppTemplateDispatch, WhatsAppTemplateDispatchData, WhatsAppTemplateIdContent, WhatsAppTemplateSlugContent, WhatsAppTextContent, WhatsAppTextHeader, WhatsAppVideo, WhatsAppVideoHeader, WhatsAppVideoHeaderLink, WhatsAppVideoHeaderUpload, WhatsAppVideoLink, WhatsAppVideoUpload, WorkingHours, WorkingHoursRange, AbsoluteInstant as __SamvaRuntimeAbsoluteInstant, NonEmptySensitiveString as __SamvaRuntimeNonEmptySensitiveString, SensitiveString as __SamvaRuntimeSensitiveString };
|
|
1945
1989
|
|
|
1946
1990
|
//# sourceMappingURL=shared.js.map
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import type * as EffectBrand from "effect/Brand";
|
|
2
1
|
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
3
2
|
import * as Schema from "effect/Schema";
|
|
4
|
-
import { ApiKeySecurityMiddleware, ConflictError, CredentialsError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, ResourceNotFoundError, TemplateId, TemplatePublicationId, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId, WhatsAppChannelError } from "./shared.js";
|
|
5
|
-
export type TemplateRegistrationId = string & EffectBrand.Brand<"TemplateRegistrationId">;
|
|
6
|
-
export declare const TemplateRegistrationId: Schema.brand<Schema.String, "TemplateRegistrationId">;
|
|
3
|
+
import { ApiKeySecurityMiddleware, ConflictError, CredentialsError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, ResourceNotFoundError, TemplateId, TemplatePublicationId, TemplateRegistrationId, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId, WhatsAppChannelError } from "./shared.js";
|
|
7
4
|
export type WhatsAppRegistrationTarget = {
|
|
8
5
|
readonly provider: "whatsapp";
|
|
9
6
|
readonly wabaId: string;
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import { ApiKeySecurityMiddleware, ConflictError, CredentialsError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, ResourceNotFoundError, TemplateId, TemplatePublicationId, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId, WhatsAppChannelError } from "./shared.js";
|
|
1
|
+
import { ApiKeySecurityMiddleware, ConflictError, CredentialsError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, ResourceNotFoundError, TemplateId, TemplatePublicationId, TemplateRegistrationId, UnauthorizedError, ValidationError, WhatsAppBusinessAccountId, WhatsAppChannelError } 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/template-registrations.ts
|
|
5
|
-
const TemplateRegistrationId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(new globalThis.RegExp("^treg_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
6
|
-
expected: "a string matching the RegExp ^treg_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
7
|
-
identifier: "TemplateRegistrationId"
|
|
8
|
-
})).pipe(Schema.brand("TemplateRegistrationId")))();
|
|
9
5
|
const WhatsAppRegistrationTarget = /* @__PURE__ */ (() => Schema.Struct({
|
|
10
6
|
provider: Schema.Literal("whatsapp"),
|
|
11
7
|
wabaId: Schema.String
|
|
@@ -133,6 +129,6 @@ var TemplateRegistrationsGroup = class extends HttpApiGroup.make("Template regis
|
|
|
133
129
|
TemplateRegistrationsGet504.pipe(HttpApiSchema.status(504))
|
|
134
130
|
]
|
|
135
131
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templateRegistrations.get").annotate(OpenApi.Summary, "Get a template registration").annotate(OpenApi.Description, "Returns one registration: its status, the category the provider assigned, and why the provider rejected, paused, or disabled it.")).annotate(OpenApi.Description, "Provider review of template content: submission, status, and category.") {};
|
|
136
|
-
export { DltRegistrationTarget, TemplateRegistration,
|
|
132
|
+
export { DltRegistrationTarget, TemplateRegistration, TemplateRegistrationList, TemplateRegistrationTarget, TemplateRegistrationsGet200, TemplateRegistrationsGet400, TemplateRegistrationsGet401, TemplateRegistrationsGet403, TemplateRegistrationsGet404, TemplateRegistrationsGet422, TemplateRegistrationsGet500, TemplateRegistrationsGet504, TemplateRegistrationsGetPathParams, TemplateRegistrationsGroup, TemplateRegistrationsList200, TemplateRegistrationsList400, TemplateRegistrationsList401, TemplateRegistrationsList403, TemplateRegistrationsList404, TemplateRegistrationsList422, TemplateRegistrationsList500, TemplateRegistrationsList504, TemplateRegistrationsListPathParams, TemplateRegistrationsSubmit201, TemplateRegistrationsSubmit400, TemplateRegistrationsSubmit401, TemplateRegistrationsSubmit403, TemplateRegistrationsSubmit404, TemplateRegistrationsSubmit409, TemplateRegistrationsSubmit422, TemplateRegistrationsSubmit500, TemplateRegistrationsSubmit502, TemplateRegistrationsSubmit504, TemplateRegistrationsSubmitPathParams, TemplateRegistrationsSubmitRequestJson, WhatsAppRegistrationTarget };
|
|
137
133
|
|
|
138
134
|
//# sourceMappingURL=template-registrations.js.map
|
|
@@ -284,6 +284,12 @@ export declare const SamvaOperations: {
|
|
|
284
284
|
readonly idempotent: false;
|
|
285
285
|
readonly paginated: true;
|
|
286
286
|
};
|
|
287
|
+
readonly agentsPublishVersion: {
|
|
288
|
+
readonly group: "Agents";
|
|
289
|
+
readonly method: "POST";
|
|
290
|
+
readonly idempotent: false;
|
|
291
|
+
readonly paginated: false;
|
|
292
|
+
};
|
|
287
293
|
readonly agentsGetVersion: {
|
|
288
294
|
readonly group: "Agents";
|
|
289
295
|
readonly method: "GET";
|
|
@@ -686,6 +692,18 @@ export declare const SamvaOperations: {
|
|
|
686
692
|
readonly idempotent: false;
|
|
687
693
|
readonly paginated: false;
|
|
688
694
|
};
|
|
695
|
+
readonly contactsMerge: {
|
|
696
|
+
readonly group: "Contacts";
|
|
697
|
+
readonly method: "POST";
|
|
698
|
+
readonly idempotent: false;
|
|
699
|
+
readonly paginated: false;
|
|
700
|
+
};
|
|
701
|
+
readonly contactsMergeByConnection: {
|
|
702
|
+
readonly group: "Contacts";
|
|
703
|
+
readonly method: "POST";
|
|
704
|
+
readonly idempotent: false;
|
|
705
|
+
readonly paginated: false;
|
|
706
|
+
};
|
|
689
707
|
readonly contactsAddTags: {
|
|
690
708
|
readonly group: "Contacts";
|
|
691
709
|
readonly method: "POST";
|
|
@@ -1242,90 +1260,6 @@ export declare const SamvaOperations: {
|
|
|
1242
1260
|
readonly idempotent: true;
|
|
1243
1261
|
readonly paginated: false;
|
|
1244
1262
|
};
|
|
1245
|
-
readonly extensionInstallationsList: {
|
|
1246
|
-
readonly group: "Extension installations";
|
|
1247
|
-
readonly method: "GET";
|
|
1248
|
-
readonly idempotent: false;
|
|
1249
|
-
readonly paginated: true;
|
|
1250
|
-
};
|
|
1251
|
-
readonly extensionInstallationsInstall: {
|
|
1252
|
-
readonly group: "Extension installations";
|
|
1253
|
-
readonly method: "POST";
|
|
1254
|
-
readonly idempotent: false;
|
|
1255
|
-
readonly paginated: false;
|
|
1256
|
-
};
|
|
1257
|
-
readonly extensionInstallationsGet: {
|
|
1258
|
-
readonly group: "Extension installations";
|
|
1259
|
-
readonly method: "GET";
|
|
1260
|
-
readonly idempotent: false;
|
|
1261
|
-
readonly paginated: false;
|
|
1262
|
-
};
|
|
1263
|
-
readonly extensionInstallationsUninstall: {
|
|
1264
|
-
readonly group: "Extension installations";
|
|
1265
|
-
readonly method: "DELETE";
|
|
1266
|
-
readonly idempotent: false;
|
|
1267
|
-
readonly paginated: false;
|
|
1268
|
-
};
|
|
1269
|
-
readonly extensionInstallationsDisable: {
|
|
1270
|
-
readonly group: "Extension installations";
|
|
1271
|
-
readonly method: "POST";
|
|
1272
|
-
readonly idempotent: false;
|
|
1273
|
-
readonly paginated: false;
|
|
1274
|
-
};
|
|
1275
|
-
readonly extensionInstallationsEnable: {
|
|
1276
|
-
readonly group: "Extension installations";
|
|
1277
|
-
readonly method: "POST";
|
|
1278
|
-
readonly idempotent: false;
|
|
1279
|
-
readonly paginated: false;
|
|
1280
|
-
};
|
|
1281
|
-
readonly extensionInstallationsListRuns: {
|
|
1282
|
-
readonly group: "Extension installations";
|
|
1283
|
-
readonly method: "GET";
|
|
1284
|
-
readonly idempotent: false;
|
|
1285
|
-
readonly paginated: false;
|
|
1286
|
-
};
|
|
1287
|
-
readonly extensionInstallationsGetRun: {
|
|
1288
|
-
readonly group: "Extension installations";
|
|
1289
|
-
readonly method: "GET";
|
|
1290
|
-
readonly idempotent: false;
|
|
1291
|
-
readonly paginated: false;
|
|
1292
|
-
};
|
|
1293
|
-
readonly extensionInstallationsUpgrade: {
|
|
1294
|
-
readonly group: "Extension installations";
|
|
1295
|
-
readonly method: "POST";
|
|
1296
|
-
readonly idempotent: false;
|
|
1297
|
-
readonly paginated: false;
|
|
1298
|
-
};
|
|
1299
|
-
readonly extensionsList: {
|
|
1300
|
-
readonly group: "Extensions";
|
|
1301
|
-
readonly method: "GET";
|
|
1302
|
-
readonly idempotent: false;
|
|
1303
|
-
readonly paginated: true;
|
|
1304
|
-
};
|
|
1305
|
-
readonly extensionsPublish: {
|
|
1306
|
-
readonly group: "Extensions";
|
|
1307
|
-
readonly method: "POST";
|
|
1308
|
-
readonly idempotent: false;
|
|
1309
|
-
readonly paginated: false;
|
|
1310
|
-
};
|
|
1311
|
-
readonly extensionsGet: {
|
|
1312
|
-
readonly group: "Extensions";
|
|
1313
|
-
readonly method: "GET";
|
|
1314
|
-
readonly idempotent: false;
|
|
1315
|
-
readonly paginated: false;
|
|
1316
|
-
};
|
|
1317
|
-
readonly extensionsListVersions: {
|
|
1318
|
-
readonly group: "Extensions";
|
|
1319
|
-
readonly method: "GET";
|
|
1320
|
-
readonly idempotent: false;
|
|
1321
|
-
readonly paginated: true;
|
|
1322
|
-
};
|
|
1323
|
-
readonly extensionsGetVersion: {
|
|
1324
|
-
readonly group: "Extensions";
|
|
1325
|
-
readonly method: "GET";
|
|
1326
|
-
readonly idempotent: false;
|
|
1327
|
-
readonly paginated: false;
|
|
1328
|
-
};
|
|
1329
1263
|
readonly feedbackSend: {
|
|
1330
1264
|
readonly group: "Feedback";
|
|
1331
1265
|
readonly method: "POST";
|