feat: expand outreach targeting and messaging
This commit is contained in:
1 parent
7defff422d
commit
d0a8bd0e2f
40 files changed
+890
-82
No files matched your search
@@ -11,6 +11,7 @@ describe('agent API discovery', () => {
|
||||
expect(keys).toContain('POST /api/v1/control/start');
|
||||
expect(keys).toContain('POST /api/v1/control/stop');
|
||||
expect(keys).toContain('POST /api/v1/jobs');
|
||||
expect(keys).toContain('POST /api/v1/messages');
|
||||
expect(keys).toContain('GET /api/events/stream');
|
||||
});
|
||||
|
||||
@@ -39,6 +40,7 @@ describe('agent API discovery', () => {
|
||||
expect(document.paths['/api/v1/control/start'].post['x-mutates']).toBe(true);
|
||||
expect(document.paths['/api/v1/jobs'].post.requestBody).toBeDefined();
|
||||
expect((document.paths['/api/v1/jobs'].post.responses as Record<string, unknown>)['202']).toBeDefined();
|
||||
expect(document.paths['/api/v1/messages'].post.requestBody).toBeDefined();
|
||||
});
|
||||
|
||||
it('returns a compact capability catalogue for agents', () => {
|
||||
@@ -48,5 +50,9 @@ describe('agent API discovery', () => {
|
||||
access: 'admin',
|
||||
mutates: true,
|
||||
});
|
||||
expect(result.operations.find((item) => item.operationId === 'sendRedditUserMessage')).toMatchObject({
|
||||
access: 'admin',
|
||||
mutates: true,
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user