@cobaltio/cobalt-js 9.0.0-beta.1 → 9.1.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/cobalt.d.ts +44 -33
- package/cobalt.js +61 -33
- package/cobalt.ts +88 -56
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/Cobalt.html +39 -27
- package/docs/enums/AuthStatus.html +3 -0
- package/docs/enums/AuthType.html +4 -0
- package/docs/interfaces/Application.html +28 -16
- package/docs/interfaces/CobaltOptions.html +3 -3
- package/docs/interfaces/Config.html +2 -2
- package/docs/interfaces/ConfigField.html +4 -4
- package/docs/interfaces/ConfigPayload.html +4 -4
- package/docs/interfaces/ConfigWorkflow.html +2 -2
- package/docs/interfaces/ExecuteWorkflowPayload.html +9 -0
- package/docs/interfaces/Execution.html +4 -2
- package/docs/interfaces/InputField.html +9 -9
- package/docs/interfaces/Label.html +3 -3
- package/docs/interfaces/PublicWorkflow.html +8 -8
- package/docs/interfaces/PublicWorkflowPayload.html +4 -4
- package/docs/interfaces/PublicWorkflowsPayload.html +2 -2
- package/docs/interfaces/RuleOptions.html +2 -2
- package/docs/interfaces/UpdateConfigPayload.html +5 -5
- package/docs/interfaces/WorkflowPayload.html +4 -4
- package/docs/interfaces/WorkflowPayloadResponse.html +4 -0
- package/docs/llms.txt +253 -200
- package/docs/modules.html +1 -1
- package/package.json +1 -1
- package/docs/interfaces/EcosystemLead.html +0 -6
- package/docs/interfaces/EcosystemLeadPayload.html +0 -5
package/cobalt.d.ts
CHANGED
|
@@ -128,25 +128,6 @@ export interface CobaltOptions {
|
|
|
128
128
|
/** The session token. */
|
|
129
129
|
token?: string;
|
|
130
130
|
}
|
|
131
|
-
/**
|
|
132
|
-
* @deprecated
|
|
133
|
-
*/
|
|
134
|
-
export interface EcosystemLead {
|
|
135
|
-
_id: string;
|
|
136
|
-
name?: string;
|
|
137
|
-
email: string;
|
|
138
|
-
description?: string;
|
|
139
|
-
created_at: string;
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* @deprecated
|
|
143
|
-
*/
|
|
144
|
-
export interface EcosystemLeadPayload {
|
|
145
|
-
slug: string;
|
|
146
|
-
name?: string;
|
|
147
|
-
email: string;
|
|
148
|
-
description?: string;
|
|
149
|
-
}
|
|
150
131
|
export interface RuleOptions {
|
|
151
132
|
rule_column: {
|
|
152
133
|
rhs: {
|
|
@@ -251,6 +232,21 @@ export interface ConfigWorkflow {
|
|
|
251
232
|
enabled: boolean;
|
|
252
233
|
fields?: ConfigField[];
|
|
253
234
|
}
|
|
235
|
+
export interface WorkflowPayloadResponse {
|
|
236
|
+
payload: Record<string, any>;
|
|
237
|
+
schema?: unknown;
|
|
238
|
+
schema_interpreted?: unknown;
|
|
239
|
+
}
|
|
240
|
+
export interface ExecuteWorkflowPayload {
|
|
241
|
+
/**The workflow id or alias. */
|
|
242
|
+
worklfow: string;
|
|
243
|
+
/** The application's slug this workflow belongs to. */
|
|
244
|
+
slug?: string;
|
|
245
|
+
/** The payload to execute the workflow. */
|
|
246
|
+
payload?: Record<string, any>;
|
|
247
|
+
/** Whether to execute the workflow synchronously. */
|
|
248
|
+
sync_execution?: boolean;
|
|
249
|
+
}
|
|
254
250
|
export interface Execution {
|
|
255
251
|
_id: string;
|
|
256
252
|
id?: string;
|
|
@@ -361,19 +357,26 @@ declare class Cobalt {
|
|
|
361
357
|
*/
|
|
362
358
|
private keybased;
|
|
363
359
|
/**
|
|
364
|
-
*
|
|
365
|
-
* @param
|
|
366
|
-
* @param
|
|
367
|
-
* @param
|
|
368
|
-
* @
|
|
360
|
+
* Connects the specified application using the provided authentication type and optional auth data.
|
|
361
|
+
* @param params - The parameters for connecting the application.
|
|
362
|
+
* @param params.slug - The application slug.
|
|
363
|
+
* @param params.type - The authentication type to use. If not provided, it defaults to `keybased` if payload is provided, otherwise `oauth2`.
|
|
364
|
+
* @param params.payload - key-value pairs of authentication data required for the specified auth type.
|
|
365
|
+
* @returns A promise that resolves to true if the connection was successful, otherwise false.
|
|
366
|
+
* @throws Throws an error if the authentication type is invalid or the connection fails.
|
|
369
367
|
*/
|
|
370
|
-
connect(slug
|
|
368
|
+
connect({ slug, type, payload, }: {
|
|
369
|
+
slug: string;
|
|
370
|
+
type?: AuthType;
|
|
371
|
+
payload?: Record<string, string>;
|
|
372
|
+
}): Promise<boolean>;
|
|
371
373
|
/**
|
|
372
374
|
* Disconnect the specified application and remove any associated data from Cobalt.
|
|
373
375
|
* @param {String} slug The application slug.
|
|
376
|
+
* @param {AuthType} [type] The authentication type to use. If not provided, it'll remove all the connected accounts.
|
|
374
377
|
* @returns {Promise<unknown>}
|
|
375
378
|
*/
|
|
376
|
-
disconnect(slug: string): Promise<unknown>;
|
|
379
|
+
disconnect(slug: string, type?: AuthType): Promise<unknown>;
|
|
377
380
|
/**
|
|
378
381
|
* Returns the specified config, or creates one if it doesn't exist.
|
|
379
382
|
* @param {ConfigPayload} payload The payload object for config.
|
|
@@ -408,13 +411,6 @@ declare class Cobalt {
|
|
|
408
411
|
* @returns {Promise<unknown>}
|
|
409
412
|
*/
|
|
410
413
|
deleteConfig(slug: string, configId?: string): Promise<unknown>;
|
|
411
|
-
/**
|
|
412
|
-
* @deprecated
|
|
413
|
-
* Create a lead for an ecosystem app.
|
|
414
|
-
* @param {EcosystemLeadPayload} payload The payload object for the lead.
|
|
415
|
-
* @returns {Promise<EcosystemLead>}
|
|
416
|
-
*/
|
|
417
|
-
createEcosystemLead(payload: EcosystemLeadPayload): Promise<EcosystemLead>;
|
|
418
414
|
/**
|
|
419
415
|
* Returns the specified field of the config.
|
|
420
416
|
* @param {String} slug The application slug.
|
|
@@ -474,6 +470,21 @@ declare class Cobalt {
|
|
|
474
470
|
* @returns {Promise<unknown>}
|
|
475
471
|
*/
|
|
476
472
|
deleteWorkflow(workflowId: string): Promise<unknown>;
|
|
473
|
+
/**
|
|
474
|
+
* Returns the execution payload for the specified public workflow.
|
|
475
|
+
* @param {String} workflowId The workflow ID.
|
|
476
|
+
* @returns {Promise<WorkflowPayloadResponse>} The workflow payload response.
|
|
477
|
+
*/
|
|
478
|
+
getWorkflowPayload(workflowId: string): Promise<WorkflowPayloadResponse>;
|
|
479
|
+
/**
|
|
480
|
+
* Execute the specified public workflow.
|
|
481
|
+
* @param {ExecuteWorkflowPayload} options The execution payload.
|
|
482
|
+
* @param {String} options.worklfow The workflow id or alias.
|
|
483
|
+
* @param {String} [options.slug] The application's slug this workflow belongs to. Slug is required if you're using workflow alias.
|
|
484
|
+
* @param {Record<string, any>} [options.payload] The execution payload.
|
|
485
|
+
* @returns {Promise<unknown>}
|
|
486
|
+
*/
|
|
487
|
+
executeWorkflow(options: ExecuteWorkflowPayload): Promise<unknown>;
|
|
477
488
|
/**
|
|
478
489
|
* Returns the workflow execution logs for the linked account.
|
|
479
490
|
* @param {Object} [params]
|
package/cobalt.js
CHANGED
|
@@ -218,32 +218,37 @@ class Cobalt {
|
|
|
218
218
|
});
|
|
219
219
|
}
|
|
220
220
|
/**
|
|
221
|
-
*
|
|
222
|
-
* @param
|
|
223
|
-
* @param
|
|
224
|
-
* @param
|
|
225
|
-
* @
|
|
221
|
+
* Connects the specified application using the provided authentication type and optional auth data.
|
|
222
|
+
* @param params - The parameters for connecting the application.
|
|
223
|
+
* @param params.slug - The application slug.
|
|
224
|
+
* @param params.type - The authentication type to use. If not provided, it defaults to `keybased` if payload is provided, otherwise `oauth2`.
|
|
225
|
+
* @param params.payload - key-value pairs of authentication data required for the specified auth type.
|
|
226
|
+
* @returns A promise that resolves to true if the connection was successful, otherwise false.
|
|
227
|
+
* @throws Throws an error if the authentication type is invalid or the connection fails.
|
|
226
228
|
*/
|
|
227
|
-
connect(slug,
|
|
229
|
+
connect({ slug, type, payload, }) {
|
|
228
230
|
return __awaiter(this, void 0, void 0, function* () {
|
|
229
|
-
switch (
|
|
231
|
+
switch (type) {
|
|
230
232
|
case AuthType.OAuth2:
|
|
231
233
|
return this.oauth(slug, payload);
|
|
232
234
|
case AuthType.KeyBased:
|
|
233
235
|
return this.keybased(slug, payload);
|
|
234
236
|
default:
|
|
235
|
-
|
|
237
|
+
if (payload)
|
|
238
|
+
return this.keybased(slug, payload);
|
|
239
|
+
return this.oauth(slug);
|
|
236
240
|
}
|
|
237
241
|
});
|
|
238
242
|
}
|
|
239
243
|
/**
|
|
240
244
|
* Disconnect the specified application and remove any associated data from Cobalt.
|
|
241
245
|
* @param {String} slug The application slug.
|
|
246
|
+
* @param {AuthType} [type] The authentication type to use. If not provided, it'll remove all the connected accounts.
|
|
242
247
|
* @returns {Promise<unknown>}
|
|
243
248
|
*/
|
|
244
|
-
disconnect(slug) {
|
|
249
|
+
disconnect(slug, type) {
|
|
245
250
|
return __awaiter(this, void 0, void 0, function* () {
|
|
246
|
-
const res = yield fetch(`${this.baseUrl}/api/v1/linked-acc/integration/${slug}`, {
|
|
251
|
+
const res = yield fetch(`${this.baseUrl}/api/v1/linked-acc/integration/${slug}${type ? `?auth_type=${type}` : ""}`, {
|
|
247
252
|
method: "DELETE",
|
|
248
253
|
headers: {
|
|
249
254
|
authorization: `Bearer ${this.token}`,
|
|
@@ -360,29 +365,6 @@ class Cobalt {
|
|
|
360
365
|
return yield res.json();
|
|
361
366
|
});
|
|
362
367
|
}
|
|
363
|
-
/**
|
|
364
|
-
* @deprecated
|
|
365
|
-
* Create a lead for an ecosystem app.
|
|
366
|
-
* @param {EcosystemLeadPayload} payload The payload object for the lead.
|
|
367
|
-
* @returns {Promise<EcosystemLead>}
|
|
368
|
-
*/
|
|
369
|
-
createEcosystemLead(payload) {
|
|
370
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
371
|
-
const res = yield fetch(`${this.baseUrl}/api/v1/ecosystem/leads`, {
|
|
372
|
-
method: "POST",
|
|
373
|
-
headers: {
|
|
374
|
-
authorization: `Bearer ${this.token}`,
|
|
375
|
-
"content-type": "application/json",
|
|
376
|
-
},
|
|
377
|
-
body: JSON.stringify(payload),
|
|
378
|
-
});
|
|
379
|
-
if (res.status >= 400 && res.status < 600) {
|
|
380
|
-
const error = yield res.json();
|
|
381
|
-
throw error;
|
|
382
|
-
}
|
|
383
|
-
return yield res.json();
|
|
384
|
-
});
|
|
385
|
-
}
|
|
386
368
|
/**
|
|
387
369
|
* Returns the specified field of the config.
|
|
388
370
|
* @param {String} slug The application slug.
|
|
@@ -556,6 +538,52 @@ class Cobalt {
|
|
|
556
538
|
return yield res.json();
|
|
557
539
|
});
|
|
558
540
|
}
|
|
541
|
+
/**
|
|
542
|
+
* Returns the execution payload for the specified public workflow.
|
|
543
|
+
* @param {String} workflowId The workflow ID.
|
|
544
|
+
* @returns {Promise<WorkflowPayloadResponse>} The workflow payload response.
|
|
545
|
+
*/
|
|
546
|
+
getWorkflowPayload(workflowId) {
|
|
547
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
548
|
+
const res = yield fetch(`${this.baseUrl}/api/v2/public/workflow/request-structure/${workflowId}`, {
|
|
549
|
+
headers: {
|
|
550
|
+
authorization: `Bearer ${this.token}`,
|
|
551
|
+
},
|
|
552
|
+
});
|
|
553
|
+
if (res.status >= 400 && res.status < 600) {
|
|
554
|
+
const error = yield res.json();
|
|
555
|
+
throw error;
|
|
556
|
+
}
|
|
557
|
+
return yield res.json();
|
|
558
|
+
});
|
|
559
|
+
}
|
|
560
|
+
/**
|
|
561
|
+
* Execute the specified public workflow.
|
|
562
|
+
* @param {ExecuteWorkflowPayload} options The execution payload.
|
|
563
|
+
* @param {String} options.worklfow The workflow id or alias.
|
|
564
|
+
* @param {String} [options.slug] The application's slug this workflow belongs to. Slug is required if you're using workflow alias.
|
|
565
|
+
* @param {Record<string, any>} [options.payload] The execution payload.
|
|
566
|
+
* @returns {Promise<unknown>}
|
|
567
|
+
*/
|
|
568
|
+
executeWorkflow(options) {
|
|
569
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
570
|
+
const res = yield fetch(`${this.baseUrl}/api/v2/public/workflow/${options === null || options === void 0 ? void 0 : options.worklfow}/execute`, {
|
|
571
|
+
method: "POST",
|
|
572
|
+
headers: {
|
|
573
|
+
authorization: `Bearer ${this.token}`,
|
|
574
|
+
"content-type": "application/json",
|
|
575
|
+
slug: (options === null || options === void 0 ? void 0 : options.slug) || "",
|
|
576
|
+
sync_execution: (options === null || options === void 0 ? void 0 : options.sync_execution) ? "true" : "false",
|
|
577
|
+
},
|
|
578
|
+
body: JSON.stringify(options === null || options === void 0 ? void 0 : options.payload),
|
|
579
|
+
});
|
|
580
|
+
if (res.status >= 400 && res.status < 600) {
|
|
581
|
+
const error = yield res.json();
|
|
582
|
+
throw error;
|
|
583
|
+
}
|
|
584
|
+
return yield res.json();
|
|
585
|
+
});
|
|
586
|
+
}
|
|
559
587
|
/**
|
|
560
588
|
* Returns the workflow execution logs for the linked account.
|
|
561
589
|
* @param {Object} [params]
|
package/cobalt.ts
CHANGED
|
@@ -139,27 +139,6 @@ export interface CobaltOptions {
|
|
|
139
139
|
token?: string;
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
/**
|
|
143
|
-
* @deprecated
|
|
144
|
-
*/
|
|
145
|
-
export interface EcosystemLead {
|
|
146
|
-
_id: string;
|
|
147
|
-
name?: string;
|
|
148
|
-
email: string;
|
|
149
|
-
description?: string;
|
|
150
|
-
created_at: string;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* @deprecated
|
|
155
|
-
*/
|
|
156
|
-
export interface EcosystemLeadPayload {
|
|
157
|
-
slug: string;
|
|
158
|
-
name?: string;
|
|
159
|
-
email: string;
|
|
160
|
-
description?: string;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
142
|
export interface RuleOptions {
|
|
164
143
|
rule_column: {
|
|
165
144
|
rhs: {
|
|
@@ -273,6 +252,23 @@ export interface ConfigWorkflow {
|
|
|
273
252
|
fields?: ConfigField[];
|
|
274
253
|
}
|
|
275
254
|
|
|
255
|
+
export interface WorkflowPayloadResponse {
|
|
256
|
+
payload: Record<string, any>;
|
|
257
|
+
schema?: unknown;
|
|
258
|
+
schema_interpreted?: unknown;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export interface ExecuteWorkflowPayload {
|
|
262
|
+
/**The workflow id or alias. */
|
|
263
|
+
worklfow: string;
|
|
264
|
+
/** The application's slug this workflow belongs to. */
|
|
265
|
+
slug?: string;
|
|
266
|
+
/** The payload to execute the workflow. */
|
|
267
|
+
payload?: Record<string, any>;
|
|
268
|
+
/** Whether to execute the workflow synchronously. */
|
|
269
|
+
sync_execution?: boolean;
|
|
270
|
+
}
|
|
271
|
+
|
|
276
272
|
export interface Execution {
|
|
277
273
|
_id: string;
|
|
278
274
|
id?: string;
|
|
@@ -541,30 +537,42 @@ class Cobalt {
|
|
|
541
537
|
}
|
|
542
538
|
|
|
543
539
|
/**
|
|
544
|
-
*
|
|
545
|
-
* @param
|
|
546
|
-
* @param
|
|
547
|
-
* @param
|
|
548
|
-
* @
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
540
|
+
* Connects the specified application using the provided authentication type and optional auth data.
|
|
541
|
+
* @param params - The parameters for connecting the application.
|
|
542
|
+
* @param params.slug - The application slug.
|
|
543
|
+
* @param params.type - The authentication type to use. If not provided, it defaults to `keybased` if payload is provided, otherwise `oauth2`.
|
|
544
|
+
* @param params.payload - key-value pairs of authentication data required for the specified auth type.
|
|
545
|
+
* @returns A promise that resolves to true if the connection was successful, otherwise false.
|
|
546
|
+
* @throws Throws an error if the authentication type is invalid or the connection fails.
|
|
547
|
+
*/
|
|
548
|
+
public async connect({
|
|
549
|
+
slug,
|
|
550
|
+
type,
|
|
551
|
+
payload,
|
|
552
|
+
}: {
|
|
553
|
+
slug: string;
|
|
554
|
+
type?: AuthType;
|
|
555
|
+
payload?: Record<string, string>;
|
|
556
|
+
}): Promise<boolean> {
|
|
557
|
+
switch (type) {
|
|
552
558
|
case AuthType.OAuth2:
|
|
553
559
|
return this.oauth(slug, payload);
|
|
554
560
|
case AuthType.KeyBased:
|
|
555
561
|
return this.keybased(slug, payload);
|
|
556
562
|
default:
|
|
557
|
-
|
|
563
|
+
if (payload) return this.keybased(slug, payload);
|
|
564
|
+
return this.oauth(slug);
|
|
558
565
|
}
|
|
559
566
|
}
|
|
560
567
|
|
|
561
568
|
/**
|
|
562
569
|
* Disconnect the specified application and remove any associated data from Cobalt.
|
|
563
570
|
* @param {String} slug The application slug.
|
|
571
|
+
* @param {AuthType} [type] The authentication type to use. If not provided, it'll remove all the connected accounts.
|
|
564
572
|
* @returns {Promise<unknown>}
|
|
565
573
|
*/
|
|
566
|
-
public async disconnect(slug: string): Promise<unknown> {
|
|
567
|
-
const res = await fetch(`${this.baseUrl}/api/v1/linked-acc/integration/${slug}`, {
|
|
574
|
+
public async disconnect(slug: string, type?: AuthType): Promise<unknown> {
|
|
575
|
+
const res = await fetch(`${this.baseUrl}/api/v1/linked-acc/integration/${slug}${type ? `?auth_type=${type}` : ""}`, {
|
|
568
576
|
method: "DELETE",
|
|
569
577
|
headers: {
|
|
570
578
|
authorization: `Bearer ${this.token}`,
|
|
@@ -691,30 +699,6 @@ class Cobalt {
|
|
|
691
699
|
return await res.json();
|
|
692
700
|
}
|
|
693
701
|
|
|
694
|
-
/**
|
|
695
|
-
* @deprecated
|
|
696
|
-
* Create a lead for an ecosystem app.
|
|
697
|
-
* @param {EcosystemLeadPayload} payload The payload object for the lead.
|
|
698
|
-
* @returns {Promise<EcosystemLead>}
|
|
699
|
-
*/
|
|
700
|
-
public async createEcosystemLead(payload: EcosystemLeadPayload): Promise<EcosystemLead> {
|
|
701
|
-
const res = await fetch(`${this.baseUrl}/api/v1/ecosystem/leads`, {
|
|
702
|
-
method: "POST",
|
|
703
|
-
headers: {
|
|
704
|
-
authorization: `Bearer ${this.token}`,
|
|
705
|
-
"content-type": "application/json",
|
|
706
|
-
},
|
|
707
|
-
body: JSON.stringify(payload),
|
|
708
|
-
});
|
|
709
|
-
|
|
710
|
-
if (res.status >= 400 && res.status < 600) {
|
|
711
|
-
const error = await res.json();
|
|
712
|
-
throw error;
|
|
713
|
-
}
|
|
714
|
-
|
|
715
|
-
return await res.json();
|
|
716
|
-
}
|
|
717
|
-
|
|
718
702
|
/**
|
|
719
703
|
* Returns the specified field of the config.
|
|
720
704
|
* @param {String} slug The application slug.
|
|
@@ -894,6 +878,54 @@ class Cobalt {
|
|
|
894
878
|
return await res.json();
|
|
895
879
|
}
|
|
896
880
|
|
|
881
|
+
/**
|
|
882
|
+
* Returns the execution payload for the specified public workflow.
|
|
883
|
+
* @param {String} workflowId The workflow ID.
|
|
884
|
+
* @returns {Promise<WorkflowPayloadResponse>} The workflow payload response.
|
|
885
|
+
*/
|
|
886
|
+
async getWorkflowPayload(workflowId: string): Promise<WorkflowPayloadResponse> {
|
|
887
|
+
const res = await fetch(`${this.baseUrl}/api/v2/public/workflow/request-structure/${workflowId}`, {
|
|
888
|
+
headers: {
|
|
889
|
+
authorization: `Bearer ${this.token}`,
|
|
890
|
+
},
|
|
891
|
+
});
|
|
892
|
+
|
|
893
|
+
if (res.status >= 400 && res.status < 600) {
|
|
894
|
+
const error = await res.json();
|
|
895
|
+
throw error;
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
return await res.json();
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
/**
|
|
902
|
+
* Execute the specified public workflow.
|
|
903
|
+
* @param {ExecuteWorkflowPayload} options The execution payload.
|
|
904
|
+
* @param {String} options.worklfow The workflow id or alias.
|
|
905
|
+
* @param {String} [options.slug] The application's slug this workflow belongs to. Slug is required if you're using workflow alias.
|
|
906
|
+
* @param {Record<string, any>} [options.payload] The execution payload.
|
|
907
|
+
* @returns {Promise<unknown>}
|
|
908
|
+
*/
|
|
909
|
+
async executeWorkflow(options: ExecuteWorkflowPayload): Promise<unknown> {
|
|
910
|
+
const res = await fetch(`${this.baseUrl}/api/v2/public/workflow/${options?.worklfow}/execute`, {
|
|
911
|
+
method: "POST",
|
|
912
|
+
headers: {
|
|
913
|
+
authorization: `Bearer ${this.token}`,
|
|
914
|
+
"content-type": "application/json",
|
|
915
|
+
slug: options?.slug || "",
|
|
916
|
+
sync_execution: options?.sync_execution ? "true" : "false",
|
|
917
|
+
},
|
|
918
|
+
body: JSON.stringify(options?.payload),
|
|
919
|
+
});
|
|
920
|
+
|
|
921
|
+
if (res.status >= 400 && res.status < 600) {
|
|
922
|
+
const error = await res.json();
|
|
923
|
+
throw error;
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
return await res.json();
|
|
927
|
+
}
|
|
928
|
+
|
|
897
929
|
/**
|
|
898
930
|
* Returns the workflow execution logs for the linked account.
|
|
899
931
|
* @param {Object} [params]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
window.navigationData = "
|
|
1
|
+
window.navigationData = "eJyVk1FLwzAUhf9LnovFgSJ9E1EQBMc28UF8SNtbG5YlYfcGN8T/Lp3WLi69ja853/kaDs3LhyDYkSjEtad2SZI8ikw4Sa0oBBi/wXxIzlraaJGJtTK1KK4+s6C92juIdbvz8eaNLaWmoVdpiQiYf5+HvfNZ8E3ntKokKWuGujIE20ZWgPlRHmpmF5cnF3h0HYdRUUDwKtOotxFHF02X7xTomjEc8mnNXO61lZzoh5hWPdvtutH2nXH1CCe73UHlCXqUu2AcnZaP/Qi/Kae4N87T+PpDzEkeZAk62j8kXHXuS60qduwQSZdxW0fJdDWmuzFBvvAauJd4lHOaJ1dLgumXEOE4bcqe/1jyD7oAdNYgpGh79lT/+gV47gL5"
|
package/docs/assets/search.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
window.searchData = "
|
|
1
|
+
window.searchData = "eJytnd+P27gRx/8X7asvESlSEvftergChxa4w7XXPhjBwrGVXSNe27Xl/ECQ/70gJVkz5JAay3lKsCbnS1EfDocztvQtOx0+n7PH5bfs43a/yR7rRbZfvTbZY/bzpX35V7tqL+dskV1Ou+wxa/aX1/Pb8YM3L+3rLltk693qfG7O2WOWfV8MlkQ5mlq3209N2szDamgErC2y4+rU7Fs8HFLj1y/H7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