Milestone 0: import zappier billing, Verae middleware, and Zapier research

Compose-ready workspace: packages/zappier (rate card, portal, Stripe),
packages/verae-zapier-middleware (timestamp + NATS), packages/verae-zapier
(CLI app), vendor/zapier-platform, and research/zapier vendor corpus.

Gate 0 structure checks pass. Product code and research are not yet wired.
This commit is contained in:
George Lambert 2026-09-09 02:37:36 -04:00
commit b4150c8250
1364 changed files with 6814366 additions and 0 deletions

View file

@ -0,0 +1,35 @@
'use strict';
const { SKIP_KEY } = require('../constants');
const makeSchema = require('../utils/makeSchema');
const FunctionSchema = require('./FunctionSchema');
module.exports = makeSchema(
{
id: '/MiddlewaresSchema',
description:
'List of before or after middlewares. Can be an array of functions or a single function',
oneOf: [
{
type: 'array',
items: { $ref: FunctionSchema.id },
},
{ $ref: FunctionSchema.id },
],
additionalProperties: false,
examples: [
{
[SKIP_KEY]: true, // TODO fix this
require: 'some/path/to/file.js',
},
[{ require: 'some/path/to/file.js' }],
],
antiExamples: [
{
example: {},
reason: 'Does not match either /FunctionSchema or an array of such',
},
],
},
[FunctionSchema],
);