@noodleseed/one 0.184.0 → 0.186.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/dist/commands/solutions-conversations.d.ts.map +1 -1
- package/dist/commands/solutions-conversations.js +3 -3
- package/dist/commands/solutions-conversations.js.map +1 -1
- package/dist/commands/solutions-history.d.ts.map +1 -1
- package/dist/commands/solutions-history.js +6 -3
- package/dist/commands/solutions-history.js.map +1 -1
- package/dist/commands/whatsapp-ops.d.ts +2 -1
- package/dist/commands/whatsapp-ops.d.ts.map +1 -1
- package/dist/commands/whatsapp-ops.js +63 -27
- package/dist/commands/whatsapp-ops.js.map +1 -1
- package/dist/commands/whatsapp-output.d.ts +1 -1
- package/dist/commands/whatsapp-output.d.ts.map +1 -1
- package/dist/commands/whatsapp-output.js +13 -7
- package/dist/commands/whatsapp-output.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/generated/example-files.js +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/skill-embedded-assistant-ref.js +2 -2
- package/node_modules/@noodle-borg/agent-kit/package.json +1 -1
- package/node_modules/@noodle-borg/assistant-gateway/dist/assistant-model-context.js +7 -2
- package/node_modules/@noodle-borg/assistant-gateway/dist/assistant-turn-context.d.ts +2 -1
- package/node_modules/@noodle-borg/assistant-gateway/dist/channel-coordinator.d.ts +88 -8
- package/node_modules/@noodle-borg/assistant-gateway/dist/channel-coordinator.js +42 -30
- package/node_modules/@noodle-borg/assistant-gateway/dist/channel-spend.js +2 -2
- package/node_modules/@noodle-borg/assistant-gateway/dist/channel-types.d.ts +60 -11
- package/node_modules/@noodle-borg/assistant-gateway/dist/channel-types.js +31 -3
- package/node_modules/@noodle-borg/assistant-gateway/dist/model-request.d.ts +2 -1
- package/node_modules/@noodle-borg/assistant-gateway/dist/public-surface.d.ts +4 -2
- package/node_modules/@noodle-borg/assistant-gateway/dist/public-surface.js +4 -3
- package/node_modules/@noodle-borg/authoring/dist/assistant.d.ts +2 -1
- package/node_modules/@noodle-borg/authoring/dist/assistant.js +5 -4
- package/node_modules/@noodle-borg/cli-catalog/dist/catalog-data-channels.js +72 -51
- package/node_modules/@noodle-borg/cli-catalog/dist/catalog-data-solution-conversations.js +1 -1
- package/node_modules/@noodle-borg/cli-catalog/dist/catalog-data-solution-history.js +1 -0
- package/node_modules/@noodle-borg/compiler/dist/manifest/schema.d.ts +16 -4
- package/node_modules/@noodle-borg/compiler/dist/manifest/schema.js +8 -3
- package/node_modules/@noodle-borg/runtime/dist/connector/types.d.ts +1 -1
- package/node_modules/@noodle-borg/service/dist/application-history-settings.js +6 -2
- package/node_modules/@noodle-borg/service/dist/build-info.js +3 -2
- package/node_modules/@noodle-borg/service/dist/channels/capability-report.js +1 -1
- package/node_modules/@noodle-borg/service/dist/channels/composition.js +2 -2
- package/node_modules/@noodle-borg/service/dist/channels/instagram-meta.js +196 -0
- package/node_modules/@noodle-borg/service/dist/channels/instagram-webhook.js +78 -0
- package/node_modules/@noodle-borg/service/dist/channels/provider.js +1 -1
- package/node_modules/@noodle-borg/service/dist/channels/reply-bound.js +24 -0
- package/node_modules/@noodle-borg/service/dist/channels/runtime.js +37 -26
- package/node_modules/@noodle-borg/service/dist/conversation-history/capture.js +5 -5
- package/node_modules/@noodle-borg/service/dist/conversation-history/contracts.js +2 -1
- package/node_modules/@noodle-borg/service/dist/conversation-history/operator.js +2 -2
- package/node_modules/@noodle-borg/service/dist/routes/business-information-channels.js +8 -9
- package/node_modules/@noodle-borg/service/dist/routes/instagram-meta.js +79 -0
- package/node_modules/@noodle-borg/service/dist/routes/meta-webhook.js +36 -0
- package/node_modules/@noodle-borg/service/dist/routes/service-probes.js +4 -1
- package/node_modules/@noodle-borg/service/dist/routes/whatsapp-meta.js +3 -34
- package/node_modules/@noodle-borg/service/dist/routes/whatsapp.js +45 -24
- package/node_modules/@noodle-borg/service/dist/service.js +1 -1
- package/node_modules/@noodle-borg/service/package.json +1 -1
- package/node_modules/@noodle-borg/wire-contracts/dist/application-channels.d.ts +33 -0
- package/node_modules/@noodle-borg/wire-contracts/dist/application-channels.js +6 -3
- package/node_modules/@noodle-borg/wire-contracts/dist/application-history-settings.d.ts +7 -0
- package/node_modules/@noodle-borg/wire-contracts/dist/application-history-settings.js +1 -0
- package/node_modules/@noodle-borg/wire-contracts/dist/conversation-history.d.ts +12 -0
- package/node_modules/@noodle-borg/wire-contracts/dist/conversation-history.js +1 -1
- package/node_modules/@noodle-borg/wire-contracts/dist/index.d.ts +1 -0
- package/node_modules/@noodle-borg/wire-contracts/dist/index.js +1 -0
- package/node_modules/@noodle-borg/wire-contracts/dist/instagram.d.ts +181 -0
- package/node_modules/@noodle-borg/wire-contracts/dist/instagram.js +50 -0
- package/node_modules/@noodle-borg/wire-contracts/dist/service-info.d.ts +2 -0
- package/node_modules/@noodle-borg/wire-contracts/dist/service-info.js +3 -0
- package/package.json +2 -2
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const InstagramConfigureRequestSchema: z.ZodObject<{
|
|
3
|
+
expectedRevision: z.ZodNumber;
|
|
4
|
+
instagramAccountId: z.ZodString;
|
|
5
|
+
pageId: z.ZodString;
|
|
6
|
+
apiKeySecret: z.ZodString;
|
|
7
|
+
capabilities: z.ZodArray<z.ZodObject<{
|
|
8
|
+
kind: z.ZodEnum<{
|
|
9
|
+
tool: "tool";
|
|
10
|
+
knowledge: "knowledge";
|
|
11
|
+
}>;
|
|
12
|
+
name: z.ZodString;
|
|
13
|
+
}, z.core.$strict>>;
|
|
14
|
+
supportEmail: z.ZodEmail;
|
|
15
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
16
|
+
perMinute: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
perHour: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
perDay: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
channelPerDay: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
newParticipantsPerDay: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
concurrent: z.ZodOptional<z.ZodNumber>;
|
|
22
|
+
pendingPerParticipant: z.ZodOptional<z.ZodNumber>;
|
|
23
|
+
pending: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
textCharacters: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
dailyMicroUsd: z.ZodOptional<z.ZodNumber>;
|
|
26
|
+
}, z.core.$strict>>;
|
|
27
|
+
}, z.core.$strict>;
|
|
28
|
+
export declare const InstagramBindingSchema: z.ZodObject<{
|
|
29
|
+
createdAt: z.ZodNumber;
|
|
30
|
+
id: z.ZodString;
|
|
31
|
+
state: z.ZodEnum<{
|
|
32
|
+
paused: "paused";
|
|
33
|
+
enabled: "enabled";
|
|
34
|
+
disconnected: "disconnected";
|
|
35
|
+
}>;
|
|
36
|
+
revision: z.ZodNumber;
|
|
37
|
+
capabilities: z.ZodArray<z.ZodObject<{
|
|
38
|
+
kind: z.ZodEnum<{
|
|
39
|
+
tool: "tool";
|
|
40
|
+
knowledge: "knowledge";
|
|
41
|
+
}>;
|
|
42
|
+
name: z.ZodString;
|
|
43
|
+
}, z.core.$strict>>;
|
|
44
|
+
deploymentId: z.ZodString;
|
|
45
|
+
updatedAt: z.ZodNumber;
|
|
46
|
+
generation: z.ZodNumber;
|
|
47
|
+
limits: z.ZodObject<{
|
|
48
|
+
perMinute: z.ZodNumber;
|
|
49
|
+
perHour: z.ZodNumber;
|
|
50
|
+
perDay: z.ZodNumber;
|
|
51
|
+
channelPerDay: z.ZodNumber;
|
|
52
|
+
newParticipantsPerDay: z.ZodNumber;
|
|
53
|
+
concurrent: z.ZodNumber;
|
|
54
|
+
pendingPerParticipant: z.ZodNumber;
|
|
55
|
+
pending: z.ZodNumber;
|
|
56
|
+
textCharacters: z.ZodNumber;
|
|
57
|
+
dailyMicroUsd: z.ZodNumber;
|
|
58
|
+
}, z.core.$strict>;
|
|
59
|
+
apiKeySecret: z.ZodString;
|
|
60
|
+
supportEmail: z.ZodEmail;
|
|
61
|
+
tenant: z.ZodObject<{
|
|
62
|
+
org: z.ZodString;
|
|
63
|
+
app: z.ZodString;
|
|
64
|
+
env: z.ZodString;
|
|
65
|
+
}, z.core.$strict>;
|
|
66
|
+
actor: z.ZodString;
|
|
67
|
+
readyRevision: z.ZodOptional<z.ZodNumber>;
|
|
68
|
+
readyAt: z.ZodOptional<z.ZodNumber>;
|
|
69
|
+
channel: z.ZodLiteral<"instagram">;
|
|
70
|
+
provider: z.ZodLiteral<"meta">;
|
|
71
|
+
instagramAccountId: z.ZodString;
|
|
72
|
+
pageId: z.ZodString;
|
|
73
|
+
}, z.core.$strict>;
|
|
74
|
+
export declare const InstagramBindingResponseSchema: z.ZodObject<{
|
|
75
|
+
ok: z.ZodLiteral<true>;
|
|
76
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
77
|
+
createdAt: z.ZodNumber;
|
|
78
|
+
id: z.ZodString;
|
|
79
|
+
state: z.ZodEnum<{
|
|
80
|
+
paused: "paused";
|
|
81
|
+
enabled: "enabled";
|
|
82
|
+
disconnected: "disconnected";
|
|
83
|
+
}>;
|
|
84
|
+
revision: z.ZodNumber;
|
|
85
|
+
capabilities: z.ZodArray<z.ZodObject<{
|
|
86
|
+
kind: z.ZodEnum<{
|
|
87
|
+
tool: "tool";
|
|
88
|
+
knowledge: "knowledge";
|
|
89
|
+
}>;
|
|
90
|
+
name: z.ZodString;
|
|
91
|
+
}, z.core.$strict>>;
|
|
92
|
+
deploymentId: z.ZodString;
|
|
93
|
+
updatedAt: z.ZodNumber;
|
|
94
|
+
generation: z.ZodNumber;
|
|
95
|
+
limits: z.ZodObject<{
|
|
96
|
+
perMinute: z.ZodNumber;
|
|
97
|
+
perHour: z.ZodNumber;
|
|
98
|
+
perDay: z.ZodNumber;
|
|
99
|
+
channelPerDay: z.ZodNumber;
|
|
100
|
+
newParticipantsPerDay: z.ZodNumber;
|
|
101
|
+
concurrent: z.ZodNumber;
|
|
102
|
+
pendingPerParticipant: z.ZodNumber;
|
|
103
|
+
pending: z.ZodNumber;
|
|
104
|
+
textCharacters: z.ZodNumber;
|
|
105
|
+
dailyMicroUsd: z.ZodNumber;
|
|
106
|
+
}, z.core.$strict>;
|
|
107
|
+
apiKeySecret: z.ZodString;
|
|
108
|
+
supportEmail: z.ZodEmail;
|
|
109
|
+
tenant: z.ZodObject<{
|
|
110
|
+
org: z.ZodString;
|
|
111
|
+
app: z.ZodString;
|
|
112
|
+
env: z.ZodString;
|
|
113
|
+
}, z.core.$strict>;
|
|
114
|
+
actor: z.ZodString;
|
|
115
|
+
readyRevision: z.ZodOptional<z.ZodNumber>;
|
|
116
|
+
readyAt: z.ZodOptional<z.ZodNumber>;
|
|
117
|
+
channel: z.ZodLiteral<"instagram">;
|
|
118
|
+
provider: z.ZodLiteral<"meta">;
|
|
119
|
+
instagramAccountId: z.ZodString;
|
|
120
|
+
pageId: z.ZodString;
|
|
121
|
+
}, z.core.$strict>>;
|
|
122
|
+
}, z.core.$strict>;
|
|
123
|
+
export declare const InstagramBindingClientResponseSchema: z.ZodObject<{
|
|
124
|
+
ok: z.ZodLiteral<true>;
|
|
125
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
126
|
+
createdAt: z.ZodNumber;
|
|
127
|
+
id: z.ZodString;
|
|
128
|
+
state: z.ZodEnum<{
|
|
129
|
+
paused: "paused";
|
|
130
|
+
enabled: "enabled";
|
|
131
|
+
disconnected: "disconnected";
|
|
132
|
+
}>;
|
|
133
|
+
revision: z.ZodNumber;
|
|
134
|
+
deploymentId: z.ZodString;
|
|
135
|
+
updatedAt: z.ZodNumber;
|
|
136
|
+
generation: z.ZodNumber;
|
|
137
|
+
apiKeySecret: z.ZodString;
|
|
138
|
+
supportEmail: z.ZodEmail;
|
|
139
|
+
actor: z.ZodString;
|
|
140
|
+
readyRevision: z.ZodOptional<z.ZodNumber>;
|
|
141
|
+
readyAt: z.ZodOptional<z.ZodNumber>;
|
|
142
|
+
channel: z.ZodLiteral<"instagram">;
|
|
143
|
+
provider: z.ZodLiteral<"meta">;
|
|
144
|
+
instagramAccountId: z.ZodString;
|
|
145
|
+
pageId: z.ZodString;
|
|
146
|
+
tenant: z.ZodObject<{
|
|
147
|
+
org: z.ZodString;
|
|
148
|
+
app: z.ZodString;
|
|
149
|
+
env: z.ZodString;
|
|
150
|
+
}, z.core.$strip>;
|
|
151
|
+
capabilities: z.ZodArray<z.ZodObject<{
|
|
152
|
+
kind: z.ZodEnum<{
|
|
153
|
+
tool: "tool";
|
|
154
|
+
knowledge: "knowledge";
|
|
155
|
+
}>;
|
|
156
|
+
name: z.ZodString;
|
|
157
|
+
}, z.core.$strip>>;
|
|
158
|
+
limits: z.ZodObject<{
|
|
159
|
+
perMinute: z.ZodNumber;
|
|
160
|
+
perHour: z.ZodNumber;
|
|
161
|
+
perDay: z.ZodNumber;
|
|
162
|
+
channelPerDay: z.ZodNumber;
|
|
163
|
+
newParticipantsPerDay: z.ZodNumber;
|
|
164
|
+
concurrent: z.ZodNumber;
|
|
165
|
+
pendingPerParticipant: z.ZodNumber;
|
|
166
|
+
pending: z.ZodNumber;
|
|
167
|
+
textCharacters: z.ZodNumber;
|
|
168
|
+
dailyMicroUsd: z.ZodNumber;
|
|
169
|
+
}, z.core.$strip>;
|
|
170
|
+
}, z.core.$strip>>;
|
|
171
|
+
}, z.core.$strip>;
|
|
172
|
+
/** Instagram participants have no phone number: a block names the participant id. */
|
|
173
|
+
export declare const InstagramBlockRequestSchema: z.ZodObject<{
|
|
174
|
+
participantId: z.ZodString;
|
|
175
|
+
until: z.ZodNullable<z.ZodNumber>;
|
|
176
|
+
scope: z.ZodDefault<z.ZodEnum<{
|
|
177
|
+
local: "local";
|
|
178
|
+
provider: "provider";
|
|
179
|
+
}>>;
|
|
180
|
+
}, z.core.$strict>;
|
|
181
|
+
//# sourceMappingURL=instagram.d.ts.map
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { WhatsAppBindingSchema, WhatsAppLimitsSchema } from './whatsapp.js';
|
|
3
|
+
/**
|
|
4
|
+
* Instagram direct messages through the Messenger Platform (a professional account linked to a
|
|
5
|
+
* Facebook Page). Operations other than configure, the binding and blocks reuse the channel-neutral
|
|
6
|
+
* WhatsApp schemas (readiness, state, limits, usage, webhook, events, cooldowns).
|
|
7
|
+
*/
|
|
8
|
+
const node = z.string().regex(/^\d{1,32}$/);
|
|
9
|
+
const shape = WhatsAppBindingSchema.shape;
|
|
10
|
+
export const InstagramConfigureRequestSchema = z.strictObject({
|
|
11
|
+
expectedRevision: shape.revision,
|
|
12
|
+
instagramAccountId: node,
|
|
13
|
+
pageId: node,
|
|
14
|
+
apiKeySecret: shape.apiKeySecret,
|
|
15
|
+
capabilities: shape.capabilities.max(64),
|
|
16
|
+
supportEmail: z.email().max(254),
|
|
17
|
+
limits: WhatsAppLimitsSchema.partial().optional(),
|
|
18
|
+
});
|
|
19
|
+
export const InstagramBindingSchema = WhatsAppBindingSchema.omit({
|
|
20
|
+
provider: true,
|
|
21
|
+
phoneNumberId: true,
|
|
22
|
+
wabaId: true,
|
|
23
|
+
webhookSecret: true,
|
|
24
|
+
}).extend({
|
|
25
|
+
channel: z.literal('instagram'),
|
|
26
|
+
provider: z.literal('meta'),
|
|
27
|
+
instagramAccountId: node,
|
|
28
|
+
pageId: node,
|
|
29
|
+
});
|
|
30
|
+
export const InstagramBindingResponseSchema = z.strictObject({
|
|
31
|
+
ok: z.literal(true),
|
|
32
|
+
data: InstagramBindingSchema.nullable(),
|
|
33
|
+
});
|
|
34
|
+
export const InstagramBindingClientResponseSchema = z.object({
|
|
35
|
+
ok: z.literal(true),
|
|
36
|
+
data: InstagramBindingSchema.extend({
|
|
37
|
+
tenant: shape.tenant.strip(),
|
|
38
|
+
capabilities: z.array(shape.capabilities.element.strip()),
|
|
39
|
+
limits: WhatsAppLimitsSchema.strip(),
|
|
40
|
+
})
|
|
41
|
+
.strip()
|
|
42
|
+
.nullable(),
|
|
43
|
+
});
|
|
44
|
+
/** Instagram participants have no phone number: a block names the participant id. */
|
|
45
|
+
export const InstagramBlockRequestSchema = z.strictObject({
|
|
46
|
+
participantId: z.string().regex(/^p_[a-f0-9]{64}$/),
|
|
47
|
+
until: z.number().int().positive().nullable(),
|
|
48
|
+
scope: z.enum(['local', 'provider']).default('local'),
|
|
49
|
+
});
|
|
50
|
+
//# sourceMappingURL=instagram.js.map
|
|
@@ -8,6 +8,7 @@ export declare const serviceInfoResponseSchema: z.ZodObject<{
|
|
|
8
8
|
features: z.ZodObject<{
|
|
9
9
|
mixedCustomerAuth: z.ZodLiteral<1>;
|
|
10
10
|
whatsapp: z.ZodOptional<z.ZodLiteral<1>>;
|
|
11
|
+
instagram: z.ZodOptional<z.ZodLiteral<1>>;
|
|
11
12
|
}, z.core.$strict>;
|
|
12
13
|
ok: z.ZodLiteral<true>;
|
|
13
14
|
status: z.ZodLiteral<"ok">;
|
|
@@ -27,6 +28,7 @@ export declare const serviceInfoClientResponseSchema: z.ZodObject<{
|
|
|
27
28
|
features: z.ZodOptional<z.ZodObject<{
|
|
28
29
|
mixedCustomerAuth: z.ZodOptional<z.ZodNumber>;
|
|
29
30
|
whatsapp: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
instagram: z.ZodOptional<z.ZodNumber>;
|
|
30
32
|
}, z.core.$strip>>;
|
|
31
33
|
ok: z.ZodLiteral<true>;
|
|
32
34
|
status: z.ZodLiteral<"ok">;
|
|
@@ -18,6 +18,8 @@ export const serviceInfoResponseSchema = z.strictObject({
|
|
|
18
18
|
features: z.strictObject({
|
|
19
19
|
mixedCustomerAuth: z.literal(MIXED_CUSTOMER_AUTH_FEATURE_VERSION),
|
|
20
20
|
whatsapp: z.literal(1).optional(),
|
|
21
|
+
/** Instagram DMs need the channel runtime and Noodle Seed's Meta app. */
|
|
22
|
+
instagram: z.literal(1).optional(),
|
|
21
23
|
}),
|
|
22
24
|
});
|
|
23
25
|
/** Older services may omit features; future fields are stripped at each structured metadata layer. */
|
|
@@ -28,6 +30,7 @@ export const serviceInfoClientResponseSchema = z.object({
|
|
|
28
30
|
.object({
|
|
29
31
|
mixedCustomerAuth: z.number().int().positive().optional(),
|
|
30
32
|
whatsapp: z.number().int().positive().optional(),
|
|
33
|
+
instagram: z.number().int().positive().optional(),
|
|
31
34
|
})
|
|
32
35
|
.optional(),
|
|
33
36
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noodleseed/one",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.186.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Noodle CLI by Noodle Seed — author, run, and deploy declarative MCP servers. Embedding the assistant in your own web app is @noodleseed/assistant.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -236,7 +236,7 @@
|
|
|
236
236
|
"@modelcontextprotocol/client": "2.0.0",
|
|
237
237
|
"@modelcontextprotocol/server": "2.0.0",
|
|
238
238
|
"@noodle-borg/admission-limits": "0.0.0",
|
|
239
|
-
"@noodle-borg/agent-kit": "0.
|
|
239
|
+
"@noodle-borg/agent-kit": "0.110.0",
|
|
240
240
|
"@noodle-borg/app-audit": "0.0.0",
|
|
241
241
|
"@noodle-borg/app-package": "0.0.0",
|
|
242
242
|
"@noodle-borg/assistant-gateway": "0.0.0",
|