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
7
vendor/zapier-platform/example-apps/openai/dynamic_dropdowns/index.js
vendored
Normal file
7
vendor/zapier-platform/example-apps/openai/dynamic_dropdowns/index.js
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
/* eslint-disable camelcase */
|
||||
const list_models = require('./list_models.js');
|
||||
|
||||
// If you add a new Dynamic Dropdown, make sure it is exported here to display in the Zapier Editor
|
||||
module.exports = {
|
||||
[list_models.key]: list_models,
|
||||
};
|
||||
24
vendor/zapier-platform/example-apps/openai/dynamic_dropdowns/list_models.js
vendored
Normal file
24
vendor/zapier-platform/example-apps/openai/dynamic_dropdowns/list_models.js
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
const { API_URL } = require('../constants');
|
||||
|
||||
const perform = async (z, bundle) => {
|
||||
const response = await z.request({ url: `${API_URL}/models` });
|
||||
|
||||
const responseData = response.data;
|
||||
|
||||
return responseData.data.map((model) => ({
|
||||
id: model.id,
|
||||
name: model.id,
|
||||
}));
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
key: 'list_models',
|
||||
noun: 'Model',
|
||||
display: {
|
||||
label: 'List of Models',
|
||||
description:
|
||||
'This is a hidden trigger, and is used in a Dynamic Dropdown of another trigger.',
|
||||
hidden: true,
|
||||
},
|
||||
operation: { perform },
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue