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:
commit
b4150c8250
1364 changed files with 6814366 additions and 0 deletions
37
vendor/zapier-platform/packages/schema/lib/schemas/AuthenticationCustomConfigSchema.js
vendored
Normal file
37
vendor/zapier-platform/packages/schema/lib/schemas/AuthenticationCustomConfigSchema.js
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
'use strict';
|
||||
|
||||
const makeSchema = require('../utils/makeSchema');
|
||||
const FunctionSchema = require('./FunctionSchema');
|
||||
const RequestSchema = require('./RequestSchema');
|
||||
|
||||
module.exports = makeSchema(
|
||||
{
|
||||
id: '/AuthenticationCustomConfigSchema',
|
||||
description:
|
||||
'Config for custom authentication (like API keys). No extra properties are required to setup this auth type, so you can leave this empty if your app uses a custom auth method.',
|
||||
type: 'object',
|
||||
properties: {
|
||||
sendCode: {
|
||||
description:
|
||||
'EXPERIMENTAL: Define the call Zapier should make to send the OTP code.',
|
||||
oneOf: [{ $ref: RequestSchema.id }, { $ref: FunctionSchema.id }],
|
||||
},
|
||||
},
|
||||
additionalProperties: false,
|
||||
examples: [
|
||||
{},
|
||||
{
|
||||
sendCode: {
|
||||
url: 'https://example.com/api/send',
|
||||
headers: { Authorization: `Bearer {{process.env.API_KEY}}` },
|
||||
body: {
|
||||
to_phone_number: '{{bundle.inputData.phone_number}}',
|
||||
code: '{{bundle.inputData.code}}',
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
antiExamples: [{ example: { foo: true }, reason: 'Invalid key.' }],
|
||||
},
|
||||
[RequestSchema, FunctionSchema],
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue