@cocreate/api 1.31.0 → 2.0.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/.github/FUNDING.yml +1 -1
- package/.github/workflows/automated.yml +18 -7
- package/CHANGELOG.md +635 -595
- package/CONTRIBUTING.md +6 -6
- package/README.md +193 -5
- package/demo/index.html +1 -1
- package/docs/form.html +7 -7
- package/docs/index.html +8 -8
- package/docs/module.html +6 -6
- package/docs/server.html +7 -7
- package/package.json +10 -27
- package/src/client.js +349 -76
- package/src/server.js +395 -329
- package/test/provisioning-storage.test.cjs +198 -0
package/CONTRIBUTING.md
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
# Contributing to CoCreate-api
|
|
2
2
|
|
|
3
|
-
This project is work of [many contributors](https://github.com/
|
|
4
|
-
You're encouraged to submit [pull requests](https://github.com/
|
|
5
|
-
[propose features and discuss issues](https://github.com/
|
|
3
|
+
This project is work of [many contributors](https://github.com/CoCreateJS/api/graphs/contributors).
|
|
4
|
+
You're encouraged to submit [pull requests](https://github.com/CoCreateJS/api/pulls),
|
|
5
|
+
[propose features and discuss issues](https://github.com/CoCreateJS/api/issues).
|
|
6
6
|
|
|
7
7
|
In the examples below, substitute your Github username for `contributor` in URLs.
|
|
8
8
|
|
|
9
9
|
## Fork the Project
|
|
10
10
|
|
|
11
|
-
Fork the [project on Github](https://github.com/
|
|
11
|
+
Fork the [project on Github](https://github.com/CoCreateJS/api) and check out your copy.
|
|
12
12
|
|
|
13
13
|
```
|
|
14
14
|
git api https://github.com/contributor/CoCreate-api.git
|
|
15
15
|
cd CoCreate-api
|
|
16
|
-
git remote add upstream https://github.com/
|
|
16
|
+
git remote add upstream https://github.com/CoCreateJS/api.git
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
## Create a Topic Branch
|
|
@@ -75,7 +75,7 @@ git push origin my-feature-branch
|
|
|
75
75
|
|
|
76
76
|
## Make a Pull Request
|
|
77
77
|
|
|
78
|
-
Go to [https://github.com/
|
|
78
|
+
Go to [https://github.com/CoCreateJS/api](https://github.com/CoCreateJS/api) and select your feature branch.
|
|
79
79
|
Click the 'Pull Request' button and fill out the form. Pull requests are usually reviewed within a few days.
|
|
80
80
|
|
|
81
81
|
## Rebase
|
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
A dynamic, multi-tenant API execution gateway, proxy engine, and webhook orchestration routing layer. It securely manages distributed integration architectures, allowing applications to configure, evaluate, and execute complex third-party API configurations and multi-step macro workflows on the fly. By coupling an Abstract Syntax Tree (AST) evaluation sandbox (`NativeSandbox`) with strict tenant environmental isolation, it transforms declarative configurations into low-latency outbound integrations and secure inbound webhooks without introducing cross-tenant data leaks.
|
|
4
4
|
|
|
5
|
+
The package ships both halves of the integration. On the client, third-party APIs are consumed declaratively through HTML5 attributes or through an equivalent JavaScript API. On the server, the gateway resolves credentials, evaluates configurations, and executes the outbound request, so API keys never reach the browser.
|
|
6
|
+
|
|
5
7
|
---
|
|
6
8
|
|
|
7
9
|
## Documentation
|
|
@@ -14,7 +16,10 @@ For complete API references, integration guides, webhook configuration, and usag
|
|
|
14
16
|
- [Features](#features)
|
|
15
17
|
- [Dynamic Operations Sandbox](#dynamic-operations-sandbox)
|
|
16
18
|
- [Installation](#installation)
|
|
17
|
-
- [Usage](#usage)
|
|
19
|
+
- [Client Usage: HTML5 Attributes](#client-usage-html5-attributes)
|
|
20
|
+
- [Client Usage: JavaScript API](#client-usage-javascript-api)
|
|
21
|
+
- [Attribute Reference](#attribute-reference)
|
|
22
|
+
- [Server Usage](#usage)
|
|
18
23
|
- [How it Works](#how-it-works)
|
|
19
24
|
- [Architecture and Payload Specs](#architecture-and-payload-specs)
|
|
20
25
|
- [Security Implementations](#security-implementations)
|
|
@@ -26,6 +31,7 @@ For complete API references, integration guides, webhook configuration, and usag
|
|
|
26
31
|
## Features
|
|
27
32
|
|
|
28
33
|
* **Abstract Syntax Tree (AST) Micro-Operators:** Evaluates functional configuration contexts inline, supporting expressive syntax tags (like `$data`, `$event`, `$actions`, and `$request`) along with custom business logic operators.
|
|
34
|
+
* **Declarative Client Interface:** Configures complete request and response cycles using HTML5 attributes, assembling payloads from form fields and mapping results back into the document without provider-specific code.
|
|
29
35
|
* **Tenant Environmental Isolation Firewall:** Guarantees cryptographic data partitioning by intercepting execution matrices and forcefully injecting bound `organization_id` and verified `host` values into core operations.
|
|
30
36
|
* **Real-Time WebSocket Integration Matrix:** Seamlessly hooks into live server networks (`wsManager`), listening for incoming `api` and `endpoint` actions and streaming real-time operational state payloads directly back to the client.
|
|
31
37
|
* **Dual Outbound Execution Vectors:** Wire-speeds native, pre-constructed HTTP payloads instantly, or dynamically builds custom multi-step outbound integrations by resolving runtime metadata against persistence layers.
|
|
@@ -59,13 +65,169 @@ npm install @cocreate/api
|
|
|
59
65
|
|
|
60
66
|
## Usage
|
|
61
67
|
|
|
68
|
+
The API engine is consumed two ways. On the client, integrations are declared entirely with HTML5 attributes or driven through the JavaScript API. On the server, the gateway resolves credentials, evaluates configurations, and performs the outbound request.
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## Client Usage: HTML5 Attributes
|
|
73
|
+
|
|
74
|
+
The client requires no provider-specific code. Declaring a provider on a container registers it, and every element carrying that provider's attributes contributes a field to the outbound payload or receives a field from the response.
|
|
75
|
+
|
|
76
|
+
### Declare the Provider
|
|
77
|
+
|
|
78
|
+
```html
|
|
79
|
+
<form api="stripe"></form>
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
The value of `api` is the provider name. It becomes the attribute prefix used by every field, the action name used to trigger the request, and the payload key sent over the socket. `module` is accepted as an alias.
|
|
83
|
+
|
|
84
|
+
### Build a Request
|
|
85
|
+
|
|
86
|
+
Each participating element declares the method it belongs to and the path it populates.
|
|
87
|
+
|
|
88
|
+
```html
|
|
89
|
+
<form api="stripe">
|
|
90
|
+
<input stripe="customers.create" stripe-key="email" />
|
|
91
|
+
<input stripe="customers.create" stripe-key="metadata.workspace" value="production" hidden />
|
|
92
|
+
|
|
93
|
+
<button actions="stripe.customers.create">Create customer</button>
|
|
94
|
+
</form>
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Clicking the button collects every `[stripe="customers.create"]` element in the form, reads each value, and assembles the payload from the `stripe-key` paths:
|
|
98
|
+
|
|
99
|
+
```json
|
|
100
|
+
{
|
|
101
|
+
"method": "stripe.customers.create",
|
|
102
|
+
"stripe": {
|
|
103
|
+
"email": "developer@CoCreateJS.com",
|
|
104
|
+
"metadata": { "workspace": "production" }
|
|
105
|
+
},
|
|
106
|
+
"status": "await"
|
|
107
|
+
}
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
Keys use dot notation for nesting and bracket notation for indexes, so `messages[0].content` and `metadata.workspace` both resolve to nested objects. A key ending in `[]` appends to an array, allowing several elements to contribute entries to the same collection.
|
|
111
|
+
|
|
112
|
+
### Receive a Response
|
|
113
|
+
|
|
114
|
+
An element marked `-request="false"` is excluded from the outbound payload and used only to receive a value from the response.
|
|
115
|
+
|
|
116
|
+
```html
|
|
117
|
+
<input
|
|
118
|
+
stripe="customers.create"
|
|
119
|
+
stripe-key="id"
|
|
120
|
+
stripe-request="false"
|
|
121
|
+
hidden />
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
When the response arrives, the value at that path is written into the element. Use `-response="false"` for the inverse: a field that is sent but never overwritten. A key of `{}` maps the entire provider payload rather than a single path.
|
|
125
|
+
|
|
126
|
+
### Chain the Result
|
|
127
|
+
|
|
128
|
+
Because the response is written with the standard value pipeline, any binding module can react to it.
|
|
129
|
+
|
|
130
|
+
```html
|
|
131
|
+
<input
|
|
132
|
+
stripe="customers.create"
|
|
133
|
+
stripe-key="id"
|
|
134
|
+
stripe-request="false"
|
|
135
|
+
input-query="$document #customer-id"
|
|
136
|
+
input.value="$value"
|
|
137
|
+
hidden />
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### Choose the Trigger
|
|
141
|
+
|
|
142
|
+
By default a request runs only when the action fires. `-event` opts the element into additional triggers.
|
|
143
|
+
|
|
144
|
+
```html
|
|
145
|
+
<input
|
|
146
|
+
currency="rates.read"
|
|
147
|
+
currency-key="base"
|
|
148
|
+
currency-event="input, onload" />
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
Available trigger types are `action`, `input`, `onload`, `nodeObserver`, and `attributeObserver`.
|
|
152
|
+
|
|
153
|
+
### Scope and Endpoints
|
|
154
|
+
|
|
155
|
+
Fields are collected from the nearest ancestor `form`, or from the document when the element is not inside one, so several independent integrations can coexist on one page. Elements inside a `[template]` are skipped, keeping templates out of live payloads.
|
|
156
|
+
|
|
157
|
+
An `endpoint` attribute selects the configured route, and a `query` attribute marks the request as a query.
|
|
158
|
+
|
|
159
|
+
```html
|
|
160
|
+
<input stripe="customers.create" endpoint="POST /v1/customers" hidden />
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
### Render Errors
|
|
164
|
+
|
|
165
|
+
When the gateway returns an error, the client renders it into any template matching the provider name, receiving `type`, `method`, `status`, and `message`.
|
|
166
|
+
|
|
167
|
+
```html
|
|
168
|
+
<div template="stripe-error">{{message}}</div>
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
## Client Usage: JavaScript API
|
|
174
|
+
|
|
175
|
+
The same pipeline is available programmatically for providers that need registration options, custom handlers, or imperative execution.
|
|
176
|
+
|
|
177
|
+
### Register a Provider
|
|
178
|
+
|
|
179
|
+
```javascript
|
|
180
|
+
import api from "@cocreate/api";
|
|
181
|
+
|
|
182
|
+
api.init({
|
|
183
|
+
name: "stripe",
|
|
184
|
+
endPoints: {},
|
|
185
|
+
options: { socket: true }
|
|
186
|
+
});
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
Calling `init()` without arguments scans the document for `[api]` and `[module]` elements and registers each provider it finds. Registration also creates the socket connection unless `options.socket` is `false`.
|
|
190
|
+
|
|
191
|
+
### Execute a Request
|
|
192
|
+
|
|
193
|
+
```javascript
|
|
194
|
+
api.request({
|
|
195
|
+
name: "stripe",
|
|
196
|
+
method: "customers.create",
|
|
197
|
+
form: document.querySelector("#billing"),
|
|
198
|
+
type: "action"
|
|
199
|
+
});
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
### Work With the Payload Directly
|
|
203
|
+
|
|
204
|
+
```javascript
|
|
205
|
+
const data = await api.getData({
|
|
206
|
+
name: "stripe",
|
|
207
|
+
method: "customers.create",
|
|
208
|
+
form: document.querySelector("#billing")
|
|
209
|
+
});
|
|
210
|
+
|
|
211
|
+
await api.send({ name: "stripe", method: "customers.create", data });
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
`send()` transmits over the CoCreate socket as `provider.method` with the payload under the provider key, awaiting the correlated response before mapping it back into the document.
|
|
215
|
+
|
|
216
|
+
### Custom Handlers
|
|
217
|
+
|
|
218
|
+
If a registered module defines a handler for a method, its `request` and `response` functions take precedence over the default collection and mapping behavior. This is the extension point for providers needing bespoke serialization, such as third-party SDK elements.
|
|
219
|
+
|
|
220
|
+
---
|
|
221
|
+
|
|
222
|
+
## Server Usage
|
|
223
|
+
|
|
62
224
|
### Module Initialization
|
|
63
225
|
|
|
64
226
|
Bind the API framework directly during the bootstrapping phase of your core `CoCreateServer` application matrix.
|
|
65
227
|
|
|
66
228
|
```javascript
|
|
67
229
|
import apiGateway from '@cocreate/api';
|
|
68
|
-
import { CoCreateServer } from '@cocreate/
|
|
230
|
+
import { CoCreateServer } from '@cocreate/cluster';
|
|
69
231
|
|
|
70
232
|
// Boot the primary application server instance
|
|
71
233
|
const serverContext = await CoCreateServer.start();
|
|
@@ -92,7 +254,7 @@ const payload = {
|
|
|
92
254
|
workspace: "production"
|
|
93
255
|
}
|
|
94
256
|
},
|
|
95
|
-
userEmail: "developer@
|
|
257
|
+
userEmail: "developer@CoCreateJS.com"
|
|
96
258
|
};
|
|
97
259
|
|
|
98
260
|
const result = await apiGateway.executeApi(payload);
|
|
@@ -100,6 +262,32 @@ const result = await apiGateway.executeApi(payload);
|
|
|
100
262
|
|
|
101
263
|
---
|
|
102
264
|
|
|
265
|
+
## Attribute Reference
|
|
266
|
+
|
|
267
|
+
`name` refers to the provider declared by the `api` attribute, for example `stripe` or `openai`.
|
|
268
|
+
|
|
269
|
+
| Attribute | Role |
|
|
270
|
+
| --- | --- |
|
|
271
|
+
| `api="name"` | Declares and registers the provider. `module` is an accepted alias. |
|
|
272
|
+
| `name="method"` | Marks the element as a participant in that method's request and response. |
|
|
273
|
+
| `name-key="path"` | Path the element populates or receives. Supports dot and bracket notation, `[]` to append to an array, and `{}` for the entire payload. |
|
|
274
|
+
| `name-event="types"` | Trigger types that perform a request: `action`, `input`, `onload`, `nodeObserver`, `attributeObserver`. Defaults to `action`. |
|
|
275
|
+
| `name-request="false"` | Excludes the element from the outbound payload, making it response-only. |
|
|
276
|
+
| `name-response="false"` | Excludes the element from response mapping, making it request-only. |
|
|
277
|
+
| `endpoint="METHOD /route"` | Sets the endpoint resolved by the gateway. |
|
|
278
|
+
| `query` | Flags the request as a query. |
|
|
279
|
+
| `template_id="id"` | Renders the response through the matching template instead of setting a value. |
|
|
280
|
+
| `actions="name.method"` | Triggers the request, and participates in action chains. |
|
|
281
|
+
|
|
282
|
+
### Notes
|
|
283
|
+
|
|
284
|
+
* Fields are gathered from the nearest ancestor `form`, falling back to the document.
|
|
285
|
+
* Elements inside a `[template]` are excluded from payload collection.
|
|
286
|
+
* Elements carrying an `actions` attribute are skipped during response mapping so that chained behavior is not overwritten.
|
|
287
|
+
* Requests are sent with broadcasting disabled, so a payload is never echoed to other clients.
|
|
288
|
+
|
|
289
|
+
---
|
|
290
|
+
|
|
103
291
|
## How it Works
|
|
104
292
|
|
|
105
293
|
1. **Bootstrap & Event Binding:** During `init()`, the module hooks directly into the server's WebSocket framework (`wsManager`), capturing incoming `api` and `endpoint` event signals to route them to the execution handler.
|
|
@@ -156,9 +344,9 @@ Inbound webhooks configured with authentication rules are validated using `crypt
|
|
|
156
344
|
|
|
157
345
|
## How to Contribute
|
|
158
346
|
|
|
159
|
-
We encourage contributions to all CoCreate libraries. Please see our **[CONTRIBUTING.md](https://github.com/
|
|
347
|
+
We encourage contributions to all CoCreate libraries. Please see our **[CONTRIBUTING.md](https://github.com/CoCreateJS/api/blob/master/CONTRIBUTING.md)** guide for development workflows and contribution guidelines.
|
|
160
348
|
|
|
161
|
-
If you discover a bug or would like to request a feature, please open an issue on our **[GitHub Issues](https://github.com/
|
|
349
|
+
If you discover a bug or would like to request a feature, please open an issue on our **[GitHub Issues](https://github.com/CoCreateJS/api/issues)** tracker.
|
|
162
350
|
|
|
163
351
|
For complete API documentation, integration examples, and webhook guides, visit:
|
|
164
352
|
|
package/demo/index.html
CHANGED
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
<h1>Result</h1>
|
|
55
55
|
|
|
56
56
|
<!--CoCreateJS CDN-->
|
|
57
|
-
<!-- <script src="https://cdn.
|
|
57
|
+
<!-- <script src="https://cdn.CoCreateJS.com/api/latest/CoCreate-api.min.js"></script> -->
|
|
58
58
|
<script src="../dist/CoCreate-api.js"></script>
|
|
59
59
|
</body>
|
|
60
60
|
</html>
|
package/docs/form.html
CHANGED
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
8
8
|
<title>CoCreate-api form Documentation | CoCreateJS </title>
|
|
9
|
-
<link rel="icon" type="image/png" sizes="32x32" href="https://
|
|
9
|
+
<link rel="icon" type="image/png" sizes="32x32" href="https://CoCreateJS.com/images/favicon.ico">
|
|
10
10
|
<meta name="description" content="An api helper component in vanilla javascript to setup thirdparty api intergrations. Apis can be accessible using HTML5 attributes and/or JavaScript API" />
|
|
11
11
|
<meta name="keywords" content="drag and drop, colaboration, dnd utility, drag and drop utility" />
|
|
12
12
|
<meta name="robots" content="index,follow" />
|
|
13
|
-
<meta property="og:image" content="https://cdn.
|
|
13
|
+
<meta property="og:image" content="https://cdn.CoCreateJS.com/docs/api.png">
|
|
14
14
|
|
|
15
15
|
<link rel="stylesheet" href="/docs/index.css" array="files" object="60888216117c640e7596303f" key="src" type="text/css" save="true" />
|
|
16
16
|
<link rel="manifest" href="/manifest.webmanifest" />
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
</div>
|
|
31
31
|
<div class="display:flex align-items:center font-size:20px position:absolute right:0 padding:5px background:white">
|
|
32
32
|
<div class="display:flex align-items:center transition:0.3s padding-left:10px" share-network="true" share-text="An api helper component in vanilla javascript to setup thirdparty api intergrations. Apis can be accessible using HTML5 attributes and/or JavaScript API"
|
|
33
|
-
share-title="CoCreate API form" share-height="600" share-width="700" share-media="https://cdn.
|
|
33
|
+
share-title="CoCreate API form" share-height="600" share-width="700" share-media="https://cdn.CoCreateJS.com/docs/api.png" hover="display:block!important" hover-query=".social-networks">
|
|
34
34
|
<div class="display:none social-networks">
|
|
35
35
|
<a class="margin-right:15px" share-network="twitter" title="Share on twitter"><i src="/assets/svg/twitter.svg"></i></a>
|
|
36
36
|
<a class="margin-right:15px" share-network="facebook" title="Share on Facebook"><i src="/assets/svg/facebook.svg"></i></a>
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
</div>
|
|
39
39
|
<a class="margin-right:15px" share-network="share" title="Share on share"><i src="/assets/svg/share-alt.svg"></i></a>
|
|
40
40
|
</div>
|
|
41
|
-
<a href="https://github.com/
|
|
41
|
+
<a href="https://github.com/CoCreateJS/CoCreate-dnd" target="_blank" class=""><i src="/assets/svg/github.svg"></i></a>
|
|
42
42
|
</div>
|
|
43
43
|
</div>
|
|
44
44
|
<h1 class="max-width:500px margin:20px_10px line-height:1.5 font-size:16px font-weight:100">CoCreate-api is a simple api helper component in vanilla javascript used by JavaScript developers to create thirdparty api intergrations. Thirdparty apis can be accessible using HTML5 attributes and/or JavaScript API. CoCreate-api includes the
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
<pre><code class="language-bash">npm i @cocreate/api</code></pre>
|
|
59
59
|
</p>
|
|
60
60
|
<p class="padding:10px_0px line-height:1.5">Or you can use cdn link:</p>
|
|
61
|
-
<pre><code class="language-html"><script>https://cdn.
|
|
61
|
+
<pre><code class="language-html"><script>https://cdn.CoCreateJS.com/api/latest/CoCreate-api.min.js</script></code></pre>
|
|
62
62
|
|
|
63
63
|
<div>
|
|
64
64
|
<h2 id="api-server-run" hover="display:block" hover-query="" class="border-bottom:1px_solid_lightgrey padding:5px_0px">Server run</h2>
|
|
@@ -201,12 +201,12 @@
|
|
|
201
201
|
</div>
|
|
202
202
|
</div>
|
|
203
203
|
</div>
|
|
204
|
-
<button href="https://github.com/
|
|
204
|
+
<button href="https://github.com/CoCreateJS/CoCreate-api/tree/master/docs/index.html?message=docs%3A%20describe%20your%20change..." target="_blank" class="position:fixed bottom:15px right:15px padding:15px background:dodgerblue color:#fff font-size:1.5rem grow-hover border-radius:50% border-width:0 box-shadow:0px_2px_10px_0px_rgba(0,_0,_0,_0.4)">
|
|
205
205
|
<i src="/assets/svg/pencil-alt.svg"></i>
|
|
206
206
|
</button>
|
|
207
207
|
</main>
|
|
208
208
|
|
|
209
|
-
<script src="https://
|
|
209
|
+
<script src="https://CoCreateJS.com/dist/CoCreate.js"></script>
|
|
210
210
|
|
|
211
211
|
</body>
|
|
212
212
|
|
package/docs/index.html
CHANGED
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
8
8
|
<title>CoCreate-api Documentation | CoCreateJS </title>
|
|
9
|
-
<link rel="icon" type="image/png" sizes="32x32" href="https://
|
|
9
|
+
<link rel="icon" type="image/png" sizes="32x32" href="https://CoCreateJS.com/images/favicon.ico">
|
|
10
10
|
<meta name="description" content="An api helper component in vanilla javascript to setup thirdparty api intergrations. Apis can be accessible using HTML5 attributes and/or JavaScript API" />
|
|
11
11
|
<meta name="keywords" content="drag and drop, collaboration, dnd utility, drag and drop utility" />
|
|
12
12
|
<meta name="robots" content="index,follow" />
|
|
13
|
-
<meta property="og:image" content="https://cdn.
|
|
13
|
+
<meta property="og:image" content="https://cdn.CoCreateJS.com/docs/api.png">
|
|
14
14
|
<link rel="stylesheet" href="/docs/index.css" array="files" object="60888216117c640e7596303f" key="src" type="text/css" save="true" />
|
|
15
15
|
|
|
16
16
|
<link rel="manifest" href="/manifest.webmanifest" />
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
<h2>CoCreate-api</h2>
|
|
38
38
|
</div>
|
|
39
39
|
<div class="display:flex align-items:center font-size:20px position:absolute right:0 padding:5px background:white">
|
|
40
|
-
<div class="display:flex align-items:center transition:0.3s padding-left:10px" share-network="true" share-text="Enter decription here" share-title="testing im a title" share-height="600" share-width="700" share-media="https://cdn.
|
|
40
|
+
<div class="display:flex align-items:center transition:0.3s padding-left:10px" share-network="true" share-text="Enter decription here" share-title="testing im a title" share-height="600" share-width="700" share-media="https://cdn.CoCreateJS.com/docs/api.png"
|
|
41
41
|
hover="display:block!important" hover-query=".social-networks">
|
|
42
42
|
<div class="display:none social-networks">
|
|
43
43
|
<a class="margin-right:15px" share-network="twitter" title="Share on twitter"><i src="/assets/svg/twitter.svg"></i></a>
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
</div>
|
|
47
47
|
<a class="margin-right:15px" share-network="share" title="Share on share"><i src="/assets/svg/share-alt.svg"></i></a>
|
|
48
48
|
</div>
|
|
49
|
-
<a href="https://github.com/
|
|
49
|
+
<a href="https://github.com/CoCreateJS/CoCreate-dnd" target="_blank" class=""><i src="/assets/svg/github.svg"></i></a>
|
|
50
50
|
</div>
|
|
51
51
|
</div>
|
|
52
52
|
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
|
|
65
65
|
<pre><code class="language-bash">npm i @cocreate/api</code></pre>
|
|
66
66
|
<p class="padding:10px_0px line-height:1.5">Or you can use cdn link:</p>
|
|
67
|
-
<pre><code class="language-html"><script>https://cdn.
|
|
67
|
+
<pre><code class="language-html"><script>https://cdn.CoCreateJS.com/api/latest/CoCreate-api.min.js</script></code></pre>
|
|
68
68
|
|
|
69
69
|
<div>
|
|
70
70
|
<h2 id="api-dependencies" hover="display:block" hover-query="" class="border-bottom:1px_solid_lightgrey margin-top:80px padding:5px_0px">Dependencies components</h2>
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
<pre><code class="language-bash">npm i @cocreate/api</code></pre>
|
|
91
91
|
</p>
|
|
92
92
|
<p class="padding:10px_0px line-height:1.5">Or you can use cdn link:</p>
|
|
93
|
-
<pre><code class="language-html"><script>https://cdn.
|
|
93
|
+
<pre><code class="language-html"><script>https://cdn.CoCreateJS.com/api/latest/CoCreate-api.min.js</script></code></pre>
|
|
94
94
|
|
|
95
95
|
<div>
|
|
96
96
|
<h2 id="api-server-run" hover="display:block" hover-query="" class="border-bottom:1px_solid_lightgrey padding:5px_0px">Server run</h2>
|
|
@@ -229,11 +229,11 @@
|
|
|
229
229
|
</div>
|
|
230
230
|
</div>
|
|
231
231
|
|
|
232
|
-
<button href="https://github.com/
|
|
232
|
+
<button href="https://github.com/CoCreateJS/CoCreate-api/tree/master/docs/index.html?message=docs%3A%20describe%20your%20change..." target="_blank" class="position:fixed bottom:15px right:15px padding:15px background:dodgerblue color:#fff font-size:1.5rem grow-hover border-radius:50% border-width:0 box-shadow:0px_2px_10px_0px_rgba(0,_0,_0,_0.4)">
|
|
233
233
|
<i src="/assets/svg/pencil-alt.svg"></i>
|
|
234
234
|
</button>
|
|
235
235
|
</main>
|
|
236
|
-
<script src="https://
|
|
236
|
+
<script src="https://CoCreateJS.com/dist/CoCreate.js"></script>
|
|
237
237
|
</body>
|
|
238
238
|
|
|
239
239
|
</html>
|
package/docs/module.html
CHANGED
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
8
8
|
<title>CoCreate-api module Documentation | CoCreateJS </title>
|
|
9
|
-
<link rel="icon" type="image/png" sizes="32x32" href="https://
|
|
9
|
+
<link rel="icon" type="image/png" sizes="32x32" href="https://CoCreateJS.com/images/favicon.ico">
|
|
10
10
|
<meta name="description" content="An api helper component in vanilla javascript to setup thirdparty api intergrations. Apis can be accessible using HTML5 attributes and/or JavaScript API" />
|
|
11
11
|
<meta name="keywords" content="drag and drop, colaboration, dnd utility, drag and drop utility" />
|
|
12
12
|
<meta name="robots" content="index,follow" />
|
|
13
|
-
<meta property="og:image" content="https://cdn.
|
|
13
|
+
<meta property="og:image" content="https://cdn.CoCreateJS.com/docs/api.png">
|
|
14
14
|
|
|
15
15
|
<!-- CoCreate CSS -->
|
|
16
16
|
<link rel="stylesheet" href="" type="text/css" />
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
<div class="display:flex align-items:center">
|
|
31
31
|
<h2>CoCreate-api modules</h2>
|
|
32
32
|
</div>
|
|
33
|
-
<a href="https://github.com/
|
|
33
|
+
<a href="https://github.com/CoCreateJS/CoCreate-dnd" target="_blank" class=""><i src="/assets/svg/github.svg"></i></a>
|
|
34
34
|
</div>
|
|
35
35
|
|
|
36
36
|
<h1 class="max-width:500px margin:20px_10px line-height:1.5 font-size:16px font-weight:100">CoCreate-api is a simple api helper component in vanilla javascript used by JavaScript developers to create thirdparty api intergrations. Thirdparty apis can be accessible using HTML5 attributes and/or JavaScript API. CoCreate-api includes the
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
<pre><code class="language-bash">npm i @cocreate/api</code></pre>
|
|
50
50
|
</p>
|
|
51
51
|
<p class="padding:10px_0px line-height:1.5">Or you can use cdn link:</p>
|
|
52
|
-
<pre><code class="language-html"><script>https://cdn.
|
|
52
|
+
<pre><code class="language-html"><script>https://cdn.CoCreateJS.com/api/latest/CoCreate-api.min.js</script></code></pre>
|
|
53
53
|
|
|
54
54
|
<div>
|
|
55
55
|
<h2 id="api-dependencies" hover="display:block" hover-query="" class="border-bottom:1px_solid_lightgrey margin-top:80px padding:5px_0px">Dependencies components</h2>
|
|
@@ -193,12 +193,12 @@
|
|
|
193
193
|
</div>
|
|
194
194
|
</div>
|
|
195
195
|
</div>
|
|
196
|
-
<button href="https://github.com/
|
|
196
|
+
<button href="https://github.com/CoCreateJS/CoCreate-api/tree/master/docs/index.html?message=docs%3A%20describe%20your%20change..." target="_blank" class="position:fixed bottom:15px right:15px padding:15px background:dodgerblue color:#fff font-size:1.5rem grow-hover border-radius:50% border-width:0 box-shadow:0px_2px_10px_0px_rgba(0,_0,_0,_0.4)">
|
|
197
197
|
<i src="/assets/svg/pencil-alt.svg"></i>
|
|
198
198
|
</button>
|
|
199
199
|
</main>
|
|
200
200
|
|
|
201
|
-
<script src="https://
|
|
201
|
+
<script src="https://CoCreateJS.com/dist/CoCreate.js"></script>
|
|
202
202
|
|
|
203
203
|
</body>
|
|
204
204
|
|
package/docs/server.html
CHANGED
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
8
8
|
<title>CoCreate-api server Documentation | CoCreateJS </title>
|
|
9
|
-
<link rel="icon" type="image/png" sizes="32x32" href="https://
|
|
9
|
+
<link rel="icon" type="image/png" sizes="32x32" href="https://CoCreateJS.com/images/favicon.ico">
|
|
10
10
|
<meta name="description" content="An api helper component in vanilla javascript to setup thirdparty api intergrations. Apis can be accessible using HTML5 attributes and/or JavaScript API" />
|
|
11
11
|
<meta name="keywords" content="drag and drop, colaboration, dnd utility, drag and drop utility" />
|
|
12
12
|
<meta name="robots" content="index,follow" />
|
|
13
|
-
<meta property="og:image" content="https://cdn.
|
|
13
|
+
<meta property="og:image" content="https://cdn.CoCreateJS.com/docs/api.png">
|
|
14
14
|
|
|
15
15
|
<link rel="stylesheet" href="/docs/index.css" array="files" object="60888216117c640e7596303f" key="src" type="text/css" save="true" />
|
|
16
16
|
<link rel="manifest" href="/manifest.webmanifest">
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
</div>
|
|
31
31
|
<div class="display:flex align-items:center font-size:20px position:absolute right:0 padding:5px background:white">
|
|
32
32
|
<div class="display:flex align-items:center transition:0.3s padding-left:10px" share-network="true" share-text="An api helper component in vanilla javascript to setup thirdparty api intergrations. Apis can be accessible using HTML5 attributes and/or JavaScript API"
|
|
33
|
-
share-title="CoCreate API server" share-height="600" share-width="700" share-media="https://cdn.
|
|
33
|
+
share-title="CoCreate API server" share-height="600" share-width="700" share-media="https://cdn.CoCreateJS.com/docs/api.png" hover="display:block!important" hover-query=".social-networks">
|
|
34
34
|
<div class="display:none social-networks">
|
|
35
35
|
<a class="margin-right:15px" share-network="twitter" title="Share on twitter"><i src="/assets/svg/twitter.svg"></i></a>
|
|
36
36
|
<a class="margin-right:15px" share-network="facebook" title="Share on Facebook"><i src="/assets/svg/facebook.svg"></i></a>
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
</div>
|
|
39
39
|
<a class="margin-right:15px" share-network="share" title="Share on share"><i src="/assets/svg/share-alt.svg"></i></a>
|
|
40
40
|
</div>
|
|
41
|
-
<a href="https://github.com/
|
|
41
|
+
<a href="https://github.com/CoCreateJS/CoCreate-dnd" target="_blank" class=""><i src="/assets/svg/github.svg"></i></a>
|
|
42
42
|
</div>
|
|
43
43
|
</div>
|
|
44
44
|
<h1 class="max-width:500px margin:20px_10px line-height:1.5 font-size:16px font-weight:100">CoCreate-api is a simple api helper component in vanilla javascript used by JavaScript developers to create thirdparty api intergrations. Thirdparty apis can be accessible using HTML5 attributes and/or JavaScript API. CoCreate-api includes the
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
<pre><code class="language-bash">npm i @cocreate/api</code></pre>
|
|
56
56
|
</p>
|
|
57
57
|
<p class="padding:10px_0px line-height:1.5">Or you can use cdn link:</p>
|
|
58
|
-
<pre><code class="language-html"><script>https://cdn.
|
|
58
|
+
<pre><code class="language-html"><script>https://cdn.CoCreateJS.com/api/latest/CoCreate-api.min.js</script></code></pre>
|
|
59
59
|
|
|
60
60
|
<div>
|
|
61
61
|
<h2 id="api-server-run" hover="display:block" hover-query="" class="border-bottom:1px_solid_lightgrey padding:5px_0px">Server run</h2>
|
|
@@ -202,12 +202,12 @@
|
|
|
202
202
|
</div>
|
|
203
203
|
</div>
|
|
204
204
|
</div>
|
|
205
|
-
<button href="https://github.com/
|
|
205
|
+
<button href="https://github.com/CoCreateJS/CoCreate-api/tree/master/docs/index.html?message=docs%3A%20describe%20your%20change..." target="_blank" class="position:fixed bottom:15px right:15px padding:15px background:dodgerblue color:#fff font-size:1.5rem grow-hover border-radius:50% border-width:0 box-shadow:0px_2px_10px_0px_rgba(0,_0,_0,_0.4)">
|
|
206
206
|
<i src="/assets/svg/pencil-alt.svg"></i>
|
|
207
207
|
</button>
|
|
208
208
|
</main>
|
|
209
209
|
|
|
210
|
-
<script src="https://
|
|
210
|
+
<script src="https://CoCreateJS.com/dist/CoCreate.js"></script>
|
|
211
211
|
|
|
212
212
|
</body>
|
|
213
213
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/api",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "A secure, multi-tenant API execution gateway and proxy layer that dynamically resolves endpoint actions, processes AST micro-operators, handles webhooks, and manages third-party integrations with strict tenant environment isolation.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api-orchestration",
|
|
@@ -27,17 +27,17 @@
|
|
|
27
27
|
},
|
|
28
28
|
"repository": {
|
|
29
29
|
"type": "git",
|
|
30
|
-
"url": "git+https://github.com/
|
|
30
|
+
"url": "git+https://github.com/CoCreateJS/api.git"
|
|
31
31
|
},
|
|
32
32
|
"author": "CoCreate LLC",
|
|
33
33
|
"license": "GPL-3.0",
|
|
34
34
|
"bugs": {
|
|
35
|
-
"url": "https://github.com/
|
|
35
|
+
"url": "https://github.com/CoCreateJS/api/issues"
|
|
36
36
|
},
|
|
37
|
-
"homepage": "https://
|
|
37
|
+
"homepage": "https://CoCreateJS.com/docs/api",
|
|
38
38
|
"funding": {
|
|
39
39
|
"type": "GitHub Sponsors ❤",
|
|
40
|
-
"url": "https://github.com/sponsors/
|
|
40
|
+
"url": "https://github.com/sponsors/CoCreateJS"
|
|
41
41
|
},
|
|
42
42
|
"type": "module",
|
|
43
43
|
"main": "./src/server.js",
|
|
@@ -52,30 +52,13 @@
|
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@cocreate/actions": "^1.24.0",
|
|
55
|
-
"@cocreate/crud-client": "^1.
|
|
55
|
+
"@cocreate/crud-client": "^1.37.0",
|
|
56
56
|
"@cocreate/element-prototype": "^1.35.0",
|
|
57
|
-
"@cocreate/render": "^1.
|
|
58
|
-
"@cocreate/socket-client": "^1.
|
|
59
|
-
"@cocreate/utils": "^1.
|
|
57
|
+
"@cocreate/render": "^1.51.0",
|
|
58
|
+
"@cocreate/socket-client": "^1.43.0",
|
|
59
|
+
"@cocreate/utils": "^1.54.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@cocreate/webpack": "^1.
|
|
63
|
-
},
|
|
64
|
-
"allowScripts": {
|
|
65
|
-
"@cocreate/actions@1.21.4": true,
|
|
66
|
-
"@cocreate/api@1.22.5": true,
|
|
67
|
-
"@cocreate/config@1.13.4": true,
|
|
68
|
-
"@cocreate/crud-client@1.34.6": true,
|
|
69
|
-
"@cocreate/element-prototype@1.31.4": true,
|
|
70
|
-
"@cocreate/elements@1.42.9": true,
|
|
71
|
-
"@cocreate/filter@1.33.6": true,
|
|
72
|
-
"@cocreate/indexeddb@1.23.4": true,
|
|
73
|
-
"@cocreate/local-storage@1.16.5": true,
|
|
74
|
-
"@cocreate/observer@1.19.0": true,
|
|
75
|
-
"@cocreate/organizations@1.30.1": true,
|
|
76
|
-
"@cocreate/render@1.46.1": true,
|
|
77
|
-
"@cocreate/socket-client@1.40.5": true,
|
|
78
|
-
"@cocreate/utils@1.42.2": true,
|
|
79
|
-
"@cocreate/webpack@1.4.3": true
|
|
62
|
+
"@cocreate/webpack": "^1.9.0"
|
|
80
63
|
}
|
|
81
64
|
}
|