@contractspec/bundle.library 2.9.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/.turbo/turbo-build.log +129 -115
  2. package/CHANGELOG.md +53 -0
  3. package/dist/components/docs/DocsIndexPage.js +1 -1
  4. package/dist/components/docs/architecture/ArchitectureControlPlanePage.d.ts +1 -0
  5. package/dist/components/docs/architecture/ArchitectureControlPlanePage.js +204 -0
  6. package/dist/components/docs/architecture/ArchitectureOverviewPage.js +17 -1
  7. package/dist/components/docs/architecture/index.d.ts +1 -0
  8. package/dist/components/docs/architecture/index.js +507 -289
  9. package/dist/components/docs/ecosystem/IntegrationsPage.js +6 -3
  10. package/dist/components/docs/ecosystem/PluginsPage.js +98 -98
  11. package/dist/components/docs/ecosystem/RegistryPage.js +39 -42
  12. package/dist/components/docs/ecosystem/TemplatesPage.js +26 -21
  13. package/dist/components/docs/ecosystem/ecosystem.docblocks.js +10 -10
  14. package/dist/components/docs/ecosystem/index.js +179 -174
  15. package/dist/components/docs/index.js +6795 -5376
  16. package/dist/components/docs/integrations/IntegrationsElevenLabsPage.js +2 -2
  17. package/dist/components/docs/integrations/IntegrationsGithubPage.d.ts +1 -0
  18. package/dist/components/docs/integrations/IntegrationsGithubPage.js +155 -0
  19. package/dist/components/docs/integrations/IntegrationsHealthRoutingPage.d.ts +1 -0
  20. package/dist/components/docs/integrations/IntegrationsHealthRoutingPage.js +168 -0
  21. package/dist/components/docs/integrations/IntegrationsMistralPage.d.ts +1 -0
  22. package/dist/components/docs/integrations/IntegrationsMistralPage.js +203 -0
  23. package/dist/components/docs/integrations/IntegrationsOpenAIPage.js +2 -2
  24. package/dist/components/docs/integrations/IntegrationsOverviewPage.js +136 -9
  25. package/dist/components/docs/integrations/IntegrationsSlackPage.d.ts +1 -0
  26. package/dist/components/docs/integrations/IntegrationsSlackPage.js +161 -0
  27. package/dist/components/docs/integrations/IntegrationsSpecModelPage.js +72 -0
  28. package/dist/components/docs/integrations/IntegrationsTwilioPage.js +2 -2
  29. package/dist/components/docs/integrations/IntegrationsWhatsappMetaPage.d.ts +1 -0
  30. package/dist/components/docs/integrations/IntegrationsWhatsappMetaPage.js +157 -0
  31. package/dist/components/docs/integrations/IntegrationsWhatsappTwilioPage.d.ts +1 -0
  32. package/dist/components/docs/integrations/IntegrationsWhatsappTwilioPage.js +165 -0
  33. package/dist/components/docs/integrations/index.d.ts +6 -0
  34. package/dist/components/docs/integrations/index.js +1688 -492
  35. package/dist/index.js +8016 -6597
  36. package/dist/node/components/docs/DocsIndexPage.js +1 -1
  37. package/dist/node/components/docs/architecture/ArchitectureControlPlanePage.js +203 -0
  38. package/dist/node/components/docs/architecture/ArchitectureOverviewPage.js +17 -1
  39. package/dist/node/components/docs/architecture/index.js +507 -289
  40. package/dist/node/components/docs/ecosystem/IntegrationsPage.js +6 -3
  41. package/dist/node/components/docs/ecosystem/PluginsPage.js +98 -98
  42. package/dist/node/components/docs/ecosystem/RegistryPage.js +39 -42
  43. package/dist/node/components/docs/ecosystem/TemplatesPage.js +26 -21
  44. package/dist/node/components/docs/ecosystem/ecosystem.docblocks.js +10 -10
  45. package/dist/node/components/docs/ecosystem/index.js +179 -174
  46. package/dist/node/components/docs/index.js +6795 -5376
  47. package/dist/node/components/docs/integrations/IntegrationsElevenLabsPage.js +2 -2
  48. package/dist/node/components/docs/integrations/IntegrationsGithubPage.js +154 -0
  49. package/dist/node/components/docs/integrations/IntegrationsHealthRoutingPage.js +167 -0
  50. package/dist/node/components/docs/integrations/IntegrationsMistralPage.js +202 -0
  51. package/dist/node/components/docs/integrations/IntegrationsOpenAIPage.js +2 -2
  52. package/dist/node/components/docs/integrations/IntegrationsOverviewPage.js +136 -9
  53. package/dist/node/components/docs/integrations/IntegrationsSlackPage.js +160 -0
  54. package/dist/node/components/docs/integrations/IntegrationsSpecModelPage.js +72 -0
  55. package/dist/node/components/docs/integrations/IntegrationsTwilioPage.js +2 -2
  56. package/dist/node/components/docs/integrations/IntegrationsWhatsappMetaPage.js +156 -0
  57. package/dist/node/components/docs/integrations/IntegrationsWhatsappTwilioPage.js +164 -0
  58. package/dist/node/components/docs/integrations/index.js +1688 -492
  59. package/dist/node/index.js +8016 -6597
  60. package/package.json +104 -20
  61. package/src/components/docs/DocsIndexPage.tsx +2 -1
  62. package/src/components/docs/architecture/ArchitectureControlPlanePage.tsx +136 -0
  63. package/src/components/docs/architecture/ArchitectureOverviewPage.tsx +13 -1
  64. package/src/components/docs/architecture/index.ts +1 -0
  65. package/src/components/docs/ecosystem/IntegrationsPage.tsx +4 -3
  66. package/src/components/docs/ecosystem/PluginsPage.tsx +68 -87
  67. package/src/components/docs/ecosystem/RegistryPage.tsx +35 -43
  68. package/src/components/docs/ecosystem/TemplatesPage.tsx +28 -21
  69. package/src/components/docs/ecosystem/ecosystem.docblocks.ts +12 -10
  70. package/src/components/docs/generated/docs-index._common.json +240 -0
  71. package/src/components/docs/generated/docs-index.health.json +98 -0
  72. package/src/components/docs/generated/docs-index.manifest.json +14 -4
  73. package/src/components/docs/generated/docs-index.platform-integrations.json +81 -1
  74. package/src/components/docs/generated/docs-index.video-api-showcase.json +26 -0
  75. package/src/components/docs/integrations/IntegrationsElevenLabsPage.tsx +2 -2
  76. package/src/components/docs/integrations/IntegrationsGithubPage.tsx +90 -0
  77. package/src/components/docs/integrations/IntegrationsHealthRoutingPage.tsx +112 -0
  78. package/src/components/docs/integrations/IntegrationsMistralPage.tsx +133 -0
  79. package/src/components/docs/integrations/IntegrationsOpenAIPage.tsx +2 -2
  80. package/src/components/docs/integrations/IntegrationsOverviewPage.tsx +108 -9
  81. package/src/components/docs/integrations/IntegrationsSlackPage.tsx +98 -0
  82. package/src/components/docs/integrations/IntegrationsSpecModelPage.tsx +59 -0
  83. package/src/components/docs/integrations/IntegrationsTwilioPage.tsx +2 -2
  84. package/src/components/docs/integrations/IntegrationsWhatsappMetaPage.tsx +90 -0
  85. package/src/components/docs/integrations/IntegrationsWhatsappTwilioPage.tsx +92 -0
  86. package/src/components/docs/integrations/index.ts +6 -0
@@ -0,0 +1,165 @@
1
+ // @bun
2
+ // src/components/docs/integrations/IntegrationsWhatsappTwilioPage.tsx
3
+ import Link from "@contractspec/lib.ui-link";
4
+ import { ChevronRight } from "lucide-react";
5
+ import { jsxDEV } from "react/jsx-dev-runtime";
6
+ function IntegrationsWhatsappTwilioPage() {
7
+ return /* @__PURE__ */ jsxDEV("div", {
8
+ className: "space-y-8",
9
+ children: [
10
+ /* @__PURE__ */ jsxDEV("div", {
11
+ className: "space-y-4",
12
+ children: [
13
+ /* @__PURE__ */ jsxDEV("h1", {
14
+ className: "text-4xl font-bold",
15
+ children: "WhatsApp Twilio"
16
+ }, undefined, false, undefined, this),
17
+ /* @__PURE__ */ jsxDEV("p", {
18
+ className: "text-muted-foreground",
19
+ children: "Twilio WhatsApp support provides a durable fallback channel with signature verification and outbox-backed outbound dispatch."
20
+ }, undefined, false, undefined, this)
21
+ ]
22
+ }, undefined, true, undefined, this),
23
+ /* @__PURE__ */ jsxDEV("div", {
24
+ className: "space-y-4",
25
+ children: [
26
+ /* @__PURE__ */ jsxDEV("h2", {
27
+ className: "text-2xl font-bold",
28
+ children: "Required secrets and config"
29
+ }, undefined, false, undefined, this),
30
+ /* @__PURE__ */ jsxDEV("div", {
31
+ className: "bg-background/50 border-border text-muted-foreground overflow-x-auto rounded-lg border p-4 font-mono text-sm",
32
+ children: /* @__PURE__ */ jsxDEV("pre", {
33
+ children: `// secret payload
34
+ {
35
+ "accountSid": "AC123",
36
+ "authToken": "..."
37
+ }
38
+
39
+ // optional connection config
40
+ {
41
+ "fromNumber": "whatsapp:+15550002"
42
+ }`
43
+ }, undefined, false, undefined, this)
44
+ }, undefined, false, undefined, this)
45
+ ]
46
+ }, undefined, true, undefined, this),
47
+ /* @__PURE__ */ jsxDEV("div", {
48
+ className: "space-y-4",
49
+ children: [
50
+ /* @__PURE__ */ jsxDEV("h2", {
51
+ className: "text-2xl font-bold",
52
+ children: "Webhook ingress"
53
+ }, undefined, false, undefined, this),
54
+ /* @__PURE__ */ jsxDEV("ul", {
55
+ className: "text-muted-foreground list-inside list-disc space-y-2",
56
+ children: [
57
+ /* @__PURE__ */ jsxDEV("li", {
58
+ children: [
59
+ "Inbound Twilio form payloads are accepted on",
60
+ " ",
61
+ /* @__PURE__ */ jsxDEV("code", {
62
+ className: "bg-background/50 rounded px-2 py-1",
63
+ children: "/webhooks/whatsapp/twilio"
64
+ }, undefined, false, undefined, this),
65
+ "."
66
+ ]
67
+ }, undefined, true, undefined, this),
68
+ /* @__PURE__ */ jsxDEV("li", {
69
+ children: [
70
+ "Signatures are validated with",
71
+ " ",
72
+ /* @__PURE__ */ jsxDEV("code", {
73
+ className: "bg-background/50 rounded px-2 py-1",
74
+ children: "x-twilio-signature"
75
+ }, undefined, false, undefined, this),
76
+ " ",
77
+ "and the configured auth token."
78
+ ]
79
+ }, undefined, true, undefined, this),
80
+ /* @__PURE__ */ jsxDEV("li", {
81
+ children: [
82
+ "For deterministic verification, set the exact public webhook URL in",
83
+ " ",
84
+ /* @__PURE__ */ jsxDEV("code", {
85
+ className: "bg-background/50 rounded px-2 py-1",
86
+ children: "WHATSAPP_TWILIO_WEBHOOK_URL"
87
+ }, undefined, false, undefined, this),
88
+ "."
89
+ ]
90
+ }, undefined, true, undefined, this)
91
+ ]
92
+ }, undefined, true, undefined, this)
93
+ ]
94
+ }, undefined, true, undefined, this),
95
+ /* @__PURE__ */ jsxDEV("div", {
96
+ className: "space-y-4",
97
+ children: [
98
+ /* @__PURE__ */ jsxDEV("h2", {
99
+ className: "text-2xl font-bold",
100
+ children: "Workspace mapping"
101
+ }, undefined, false, undefined, this),
102
+ /* @__PURE__ */ jsxDEV("div", {
103
+ className: "bg-background/50 border-border text-muted-foreground overflow-x-auto rounded-lg border p-4 font-mono text-sm",
104
+ children: /* @__PURE__ */ jsxDEV("pre", {
105
+ children: `CHANNEL_WORKSPACE_MAP_WHATSAPP_TWILIO={"AC123":"workspace-acme"}`
106
+ }, undefined, false, undefined, this)
107
+ }, undefined, false, undefined, this)
108
+ ]
109
+ }, undefined, true, undefined, this),
110
+ /* @__PURE__ */ jsxDEV("div", {
111
+ className: "space-y-4",
112
+ children: [
113
+ /* @__PURE__ */ jsxDEV("h2", {
114
+ className: "text-2xl font-bold",
115
+ children: "Best practices"
116
+ }, undefined, false, undefined, this),
117
+ /* @__PURE__ */ jsxDEV("ul", {
118
+ className: "text-muted-foreground list-inside list-disc space-y-2",
119
+ children: [
120
+ /* @__PURE__ */ jsxDEV("li", {
121
+ children: "Use Twilio as fallback when Meta WhatsApp is your primary route."
122
+ }, undefined, false, undefined, this),
123
+ /* @__PURE__ */ jsxDEV("li", {
124
+ children: "Keep account SID mapping explicit to avoid tenant misrouting."
125
+ }, undefined, false, undefined, this),
126
+ /* @__PURE__ */ jsxDEV("li", {
127
+ children: [
128
+ "Protect internal dispatch endpoints with",
129
+ /* @__PURE__ */ jsxDEV("code", {
130
+ className: "bg-background/50 ml-1 rounded px-2 py-1",
131
+ children: "CHANNEL_DISPATCH_TOKEN"
132
+ }, undefined, false, undefined, this),
133
+ "."
134
+ ]
135
+ }, undefined, true, undefined, this)
136
+ ]
137
+ }, undefined, true, undefined, this)
138
+ ]
139
+ }, undefined, true, undefined, this),
140
+ /* @__PURE__ */ jsxDEV("div", {
141
+ className: "flex items-center gap-4 pt-4",
142
+ children: [
143
+ /* @__PURE__ */ jsxDEV(Link, {
144
+ href: "/docs/integrations/whatsapp-meta",
145
+ className: "btn-ghost",
146
+ children: "Previous: WhatsApp Meta"
147
+ }, undefined, false, undefined, this),
148
+ /* @__PURE__ */ jsxDEV(Link, {
149
+ href: "/docs/integrations/health-routing",
150
+ className: "btn-primary",
151
+ children: [
152
+ "Next: Health Routing ",
153
+ /* @__PURE__ */ jsxDEV(ChevronRight, {
154
+ size: 16
155
+ }, undefined, false, undefined, this)
156
+ ]
157
+ }, undefined, true, undefined, this)
158
+ ]
159
+ }, undefined, true, undefined, this)
160
+ ]
161
+ }, undefined, true, undefined, this);
162
+ }
163
+ export {
164
+ IntegrationsWhatsappTwilioPage
165
+ };
@@ -1,14 +1,20 @@
1
1
  export { IntegrationsOverviewPage } from './IntegrationsOverviewPage';
2
2
  export { IntegrationsCircuitBreakersPage } from './IntegrationsCircuitBreakersPage';
3
3
  export { IntegrationsElevenLabsPage } from './IntegrationsElevenLabsPage';
4
+ export { IntegrationsGithubPage } from './IntegrationsGithubPage';
4
5
  export { IntegrationsGmailPage } from './IntegrationsGmailPage';
5
6
  export { IntegrationsGoogleCalendarPage } from './IntegrationsGoogleCalendarPage';
7
+ export { IntegrationsHealthRoutingPage } from './IntegrationsHealthRoutingPage';
8
+ export { IntegrationsMistralPage } from './IntegrationsMistralPage';
6
9
  export { IntegrationsOpenAIPage } from './IntegrationsOpenAIPage';
7
10
  export { IntegrationsPostmarkPage } from './IntegrationsPostmarkPage';
8
11
  export { IntegrationsPowensPage } from './IntegrationsPowensPage';
9
12
  export { IntegrationsQdrantPage } from './IntegrationsQdrantPage';
10
13
  export { IntegrationsResendPage } from './IntegrationsResendPage';
11
14
  export { IntegrationsS3Page } from './IntegrationsS3Page';
15
+ export { IntegrationsSlackPage } from './IntegrationsSlackPage';
12
16
  export { IntegrationsSpecModelPage } from './IntegrationsSpecModelPage';
13
17
  export { IntegrationsStripePage } from './IntegrationsStripePage';
14
18
  export { IntegrationsTwilioPage } from './IntegrationsTwilioPage';
19
+ export { IntegrationsWhatsappMetaPage } from './IntegrationsWhatsappMetaPage';
20
+ export { IntegrationsWhatsappTwilioPage } from './IntegrationsWhatsappTwilioPage';