@cobaltio/cobalt-js 8.7.1 → 8.8.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/docs/llms.txt ADDED
@@ -0,0 +1,742 @@
1
+ **@cobaltio/cobalt-js**
2
+
3
+ ***
4
+
5
+ # Cobalt Javascript SDK
6
+ Cobalt frontend SDK.
7
+
8
+ ## Install
9
+
10
+ #### npm
11
+ ```bash
12
+ npm install @cobaltio/cobalt-js
13
+ ```
14
+
15
+ #### yarn
16
+ ```bash
17
+ yarn add @cobaltio/cobalt-js
18
+ ```
19
+
20
+ ## Usage
21
+
22
+ ### Include
23
+
24
+ #### Browser
25
+ ```html
26
+ <!-- use this if you get an error saying `exports` is not defined. -->
27
+ <script>var exports = {};</script>
28
+ <!-- use a specific version -->
29
+ <script src="https://cdn.jsdelivr.net/npm/@cobaltio/cobalt-js@8.0.0"></script>
30
+ <!-- use a version range instead of a specific version -->
31
+ <script src="https://cdn.jsdelivr.net/npm/@cobaltio/cobalt-js@8"></script>
32
+ <script src="https://cdn.jsdelivr.net/npm/@cobaltio/cobalt-js@8.0"></script>
33
+ <!-- omit the version completely to use the latest one -->
34
+ <!-- you should NOT use this in production -->
35
+ <script src="https://cdn.jsdelivr.net/npm/@cobaltio/cobalt-js"></script>
36
+ ```
37
+
38
+ #### Node
39
+ ```js
40
+ import { Cobalt } from "@cobaltio/cobalt-js";
41
+ // or, if you're using CommonJS
42
+ const { Cobalt } = require("@cobaltio/cobalt-js");
43
+ ```
44
+
45
+ ### Initialize
46
+ ```js
47
+ // initialize with token
48
+ const cobalt = new Cobalt({
49
+ // the token you generate for linked accounts using the cobalt backend SDK
50
+ token: "COBALT_SESSION_TOKEN",
51
+ // OPTIONAL: set custom base url for all API requests. only useful if you are hosting Cobalt on premise.
52
+ baseUrl: "https://cobalt.example.com/backend",
53
+ });
54
+
55
+ // Or, initialize without token
56
+ const cobalt = new Cobalt();
57
+ // and you can set the token later.
58
+ cobalt.token = "COBALT_SESSION_TOKEN";
59
+ ```
60
+
61
+ # Documentation
62
+
63
+ - You can read the [SDK documentation here](https://gocobalt.github.io/cobalt-js).
64
+
65
+ - [`llms.txt`](https://gocobalt.github.io/cobalt-js/llms.txt)
66
+
67
+ This documentation is also available in [llms.txt](https://llmstxt.org) format, which is a simple markdown standard that LLMs can consume easily.
68
+
69
+ ## Classes
70
+
71
+ ### Cobalt
72
+
73
+ Defined in: [cobalt.ts:196](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L196)
74
+
75
+ #### Constructors
76
+
77
+ ##### Constructor
78
+
79
+ > **new Cobalt**(`options`): [`Cobalt`](#cobalt)
80
+
81
+ Defined in: [cobalt.ts:206](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L206)
82
+
83
+ Cobalt Frontend SDK
84
+
85
+ ###### Parameters
86
+
87
+ | Parameter | Type | Description |
88
+ | ------ | ------ | ------ |
89
+ | `options` | [`CobaltOptions`](#cobaltoptions) | The options to configure the Cobalt SDK. |
90
+
91
+ ###### Returns
92
+
93
+ [`Cobalt`](#cobalt)
94
+
95
+ #### Properties
96
+
97
+ | Property | Modifier | Type | Defined in |
98
+ | ------ | ------ | ------ | ------ |
99
+ | <a id="token"></a> `token` | `public` | `string` | [cobalt.ts:198](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L198) |
100
+
101
+ #### Methods
102
+
103
+ ##### config()
104
+
105
+ > **config**(`payload`): `Promise`\<[`Config`](#config-2)\>
106
+
107
+ Defined in: [cobalt.ts:453](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L453)
108
+
109
+ Returns the specified config, or creates one if it doesn't exist.
110
+
111
+ ###### Parameters
112
+
113
+ | Parameter | Type | Description |
114
+ | ------ | ------ | ------ |
115
+ | `payload` | [`ConfigPayload`](#configpayload) | The payload object for config. |
116
+
117
+ ###### Returns
118
+
119
+ `Promise`\<[`Config`](#config-2)\>
120
+
121
+ The specified config.
122
+
123
+ ##### connect()
124
+
125
+ > **connect**(`slug`, `payload?`): `Promise`\<`boolean`\>
126
+
127
+ Defined in: [cobalt.ts:393](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L393)
128
+
129
+ Connect the specified application, optionally with the auth data that user provides.
130
+
131
+ ###### Parameters
132
+
133
+ | Parameter | Type | Description |
134
+ | ------ | ------ | ------ |
135
+ | `slug` | `string` | The application slug. |
136
+ | `payload?` | `Record`\<`string`, `string`\> | The key value pairs of auth data. |
137
+
138
+ ###### Returns
139
+
140
+ `Promise`\<`boolean`\>
141
+
142
+ Whether the connection was successful.
143
+
144
+ ##### createEcosystemLead()
145
+
146
+ > **createEcosystemLead**(`payload`): `Promise`\<[`EcosystemLead`](#ecosystemlead)\>
147
+
148
+ Defined in: [cobalt.ts:565](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L565)
149
+
150
+ Create a lead for an ecosystem app.
151
+
152
+ ###### Parameters
153
+
154
+ | Parameter | Type | Description |
155
+ | ------ | ------ | ------ |
156
+ | `payload` | [`EcosystemLeadPayload`](#ecosystemleadpayload) | The payload object for the lead. |
157
+
158
+ ###### Returns
159
+
160
+ `Promise`\<[`EcosystemLead`](#ecosystemlead)\>
161
+
162
+ ##### createWorkflow()
163
+
164
+ > **createWorkflow**(`params`): `Promise`\<[`PublicWorkflow`](#publicworkflow)\>
165
+
166
+ Defined in: [cobalt.ts:718](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L718)
167
+
168
+ Create a public workflow for the linked account.
169
+
170
+ ###### Parameters
171
+
172
+ | Parameter | Type | Description |
173
+ | ------ | ------ | ------ |
174
+ | `params` | [`PublicWorkflowPayload`](#publicworkflowpayload) | |
175
+
176
+ ###### Returns
177
+
178
+ `Promise`\<[`PublicWorkflow`](#publicworkflow)\>
179
+
180
+ The created public workflow.
181
+
182
+ ##### deleteConfig()
183
+
184
+ > **deleteConfig**(`slug`, `configId?`): `Promise`\<`unknown`\>
185
+
186
+ Defined in: [cobalt.ts:544](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L544)
187
+
188
+ Delete the specified config.
189
+
190
+ ###### Parameters
191
+
192
+ | Parameter | Type | Description |
193
+ | ------ | ------ | ------ |
194
+ | `slug` | `string` | The application slug. |
195
+ | `configId?` | `string` | The unique ID of the config. |
196
+
197
+ ###### Returns
198
+
199
+ `Promise`\<`unknown`\>
200
+
201
+ ##### deleteConfigField()
202
+
203
+ > **deleteConfigField**(`slug`, `fieldId`, `workflowId?`): `Promise`\<`unknown`\>
204
+
205
+ Defined in: [cobalt.ts:640](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L640)
206
+
207
+ Delete the specified config field value.
208
+
209
+ ###### Parameters
210
+
211
+ | Parameter | Type | Description |
212
+ | ------ | ------ | ------ |
213
+ | `slug` | `string` | The application slug. |
214
+ | `fieldId` | `string` | The unique ID of the field. |
215
+ | `workflowId?` | `string` | The unique ID of the workflow. |
216
+
217
+ ###### Returns
218
+
219
+ `Promise`\<`unknown`\>
220
+
221
+ ##### deleteWorkflow()
222
+
223
+ > **deleteWorkflow**(`workflowId`): `Promise`\<`unknown`\>
224
+
225
+ Defined in: [cobalt.ts:745](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L745)
226
+
227
+ Delete the specified public workflow.
228
+
229
+ ###### Parameters
230
+
231
+ | Parameter | Type | Description |
232
+ | ------ | ------ | ------ |
233
+ | `workflowId` | `string` | The workflow ID. |
234
+
235
+ ###### Returns
236
+
237
+ `Promise`\<`unknown`\>
238
+
239
+ ##### disconnect()
240
+
241
+ > **disconnect**(`slug`): `Promise`\<`void`\>
242
+
243
+ Defined in: [cobalt.ts:434](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L434)
244
+
245
+ Disconnect the specified application and remove any associated data from Cobalt.
246
+
247
+ ###### Parameters
248
+
249
+ | Parameter | Type | Description |
250
+ | ------ | ------ | ------ |
251
+ | `slug` | `string` | The application slug. |
252
+
253
+ ###### Returns
254
+
255
+ `Promise`\<`void`\>
256
+
257
+ ##### getApp()
258
+
259
+ Returns the application details for the specified application, provided
260
+ the application is enabled in Cobalt. If no application is specified,
261
+ it returns all the enabled applications.
262
+
263
+ ###### Param
264
+
265
+ The application slug.
266
+
267
+ ###### Call Signature
268
+
269
+ > **getApp**(): `Promise`\<[`Application`](#application)[]\>
270
+
271
+ Defined in: [cobalt.ts:266](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L266)
272
+
273
+ Returns the list of enabled applications and their details.
274
+
275
+ ###### Returns
276
+
277
+ `Promise`\<[`Application`](#application)[]\>
278
+
279
+ The application details.
280
+
281
+ ###### Param
282
+
283
+ The application slug.
284
+
285
+ ###### Call Signature
286
+
287
+ > **getApp**(`slug`): `Promise`\<[`Application`](#application)\>
288
+
289
+ Defined in: [cobalt.ts:273](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L273)
290
+
291
+ Returns the application details for the specified application, provided
292
+ the application is enabled in Cobalt.
293
+
294
+ ###### Parameters
295
+
296
+ | Parameter | Type | Description |
297
+ | ------ | ------ | ------ |
298
+ | `slug` | `string` | The application slug. |
299
+
300
+ ###### Returns
301
+
302
+ `Promise`\<[`Application`](#application)\>
303
+
304
+ The application details.
305
+
306
+ ###### Param
307
+
308
+ The application slug.
309
+
310
+ ##### getApps()
311
+
312
+ > **getApps**(): `Promise`\<[`Application`](#application)[]\>
313
+
314
+ Defined in: [cobalt.ts:301](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L301)
315
+
316
+ Returns all the enabled and ecosystem apps.
317
+
318
+ ###### Returns
319
+
320
+ `Promise`\<[`Application`](#application)[]\>
321
+
322
+ The list of applications.
323
+
324
+ ##### getConfig()
325
+
326
+ > **getConfig**(`slug`, `configId?`): `Promise`\<[`Config`](#config-2)\>
327
+
328
+ Defined in: [cobalt.ts:500](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L500)
329
+
330
+ Returns the specified config.
331
+
332
+ ###### Parameters
333
+
334
+ | Parameter | Type | Description |
335
+ | ------ | ------ | ------ |
336
+ | `slug` | `string` | The application slug. |
337
+ | `configId?` | `string` | The unique ID of the config. |
338
+
339
+ ###### Returns
340
+
341
+ `Promise`\<[`Config`](#config-2)\>
342
+
343
+ The specified config.
344
+
345
+ ##### getConfigField()
346
+
347
+ > **getConfigField**(`slug`, `fieldId`, `workflowId?`): `Promise`\<[`Config`](#config-2)\>
348
+
349
+ Defined in: [cobalt.ts:590](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L590)
350
+
351
+ Returns the specified field of the config.
352
+
353
+ ###### Parameters
354
+
355
+ | Parameter | Type | Description |
356
+ | ------ | ------ | ------ |
357
+ | `slug` | `string` | The application slug. |
358
+ | `fieldId` | `string` | The unique ID of the field. |
359
+ | `workflowId?` | `string` | The unique ID of the workflow. |
360
+
361
+ ###### Returns
362
+
363
+ `Promise`\<[`Config`](#config-2)\>
364
+
365
+ The specified config field.
366
+
367
+ ##### getConfigs()
368
+
369
+ > **getConfigs**(`slug`): `Promise`\<`object`[]\>
370
+
371
+ Defined in: [cobalt.ts:479](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L479)
372
+
373
+ Returns the configs created for the specified application.
374
+
375
+ ###### Parameters
376
+
377
+ | Parameter | Type | Description |
378
+ | ------ | ------ | ------ |
379
+ | `slug` | `string` | The application slug. |
380
+
381
+ ###### Returns
382
+
383
+ `Promise`\<`object`[]\>
384
+
385
+ The configs created for the specified application.
386
+
387
+ ##### getFieldOptions()
388
+
389
+ > **getFieldOptions**(`lhs`, `slug`, `fieldId`, `workflowId?`): `Promise`\<[`RuleOptions`](#ruleoptions)\>
390
+
391
+ Defined in: [cobalt.ts:665](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L665)
392
+
393
+ Returns the options for the specified field.
394
+
395
+ ###### Parameters
396
+
397
+ | Parameter | Type | Description |
398
+ | ------ | ------ | ------ |
399
+ | `lhs` | `string` | The selected value of the lhs field. |
400
+ | `slug` | `string` | The application slug. |
401
+ | `fieldId` | `string` | The unique ID of the field. |
402
+ | `workflowId?` | `string` | The unique ID of the workflow, if this is a workflow field. |
403
+
404
+ ###### Returns
405
+
406
+ `Promise`\<[`RuleOptions`](#ruleoptions)\>
407
+
408
+ The specified rule field's options.
409
+
410
+ ##### getWorkflows()
411
+
412
+ > **getWorkflows**(`params?`): `Promise`\<[`PublicWorkflow`](#publicworkflow)[]\>
413
+
414
+ Defined in: [cobalt.ts:694](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L694)
415
+
416
+ ###### Parameters
417
+
418
+ | Parameter | Type | Description |
419
+ | ------ | ------ | ------ |
420
+ | `params?` | [`PublicWorkflowsPayload`](#publicworkflowspayload) | |
421
+
422
+ ###### Returns
423
+
424
+ `Promise`\<[`PublicWorkflow`](#publicworkflow)[]\>
425
+
426
+ ##### updateConfig()
427
+
428
+ > **updateConfig**(`payload`): `Promise`\<[`Config`](#config-2)\>
429
+
430
+ Defined in: [cobalt.ts:520](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L520)
431
+
432
+ Update the specified config.
433
+
434
+ ###### Parameters
435
+
436
+ | Parameter | Type | Description |
437
+ | ------ | ------ | ------ |
438
+ | `payload` | [`UpdateConfigPayload`](#updateconfigpayload) | The update payload. |
439
+
440
+ ###### Returns
441
+
442
+ `Promise`\<[`Config`](#config-2)\>
443
+
444
+ The specified config.
445
+
446
+ ##### updateConfigField()
447
+
448
+ > **updateConfigField**(`slug`, `fieldId`, `value`, `workflowId?`): `Promise`\<[`Config`](#config-2)\>
449
+
450
+ Defined in: [cobalt.ts:614](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L614)
451
+
452
+ Update the specified config field value.
453
+
454
+ ###### Parameters
455
+
456
+ | Parameter | Type | Description |
457
+ | ------ | ------ | ------ |
458
+ | `slug` | `string` | The application slug. |
459
+ | `fieldId` | `string` | The unique ID of the field. |
460
+ | `value` | `null` \| `string` \| `number` \| `boolean` | The new value for the field. |
461
+ | `workflowId?` | `string` | The unique ID of the workflow. |
462
+
463
+ ###### Returns
464
+
465
+ `Promise`\<[`Config`](#config-2)\>
466
+
467
+ The updated config field.
468
+
469
+ ## Interfaces
470
+
471
+ ### Application
472
+
473
+ Defined in: [cobalt.ts:6](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L6)
474
+
475
+ An application in Cobalt.
476
+
477
+ #### Properties
478
+
479
+ | Property | Type | Description | Defined in |
480
+ | ------ | ------ | ------ | ------ |
481
+ | <a id="auth_input_map"></a> `auth_input_map?` | [`InputField`](#inputfield)[] | The fields required from the user to connect the application (for `keybased` auth type). | [cobalt.ts:24](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L24) |
482
+ | <a id="auth_type"></a> `auth_type` | `"oauth2"` \| `"keybased"` | The type of auth used by application. | [cobalt.ts:18](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L18) |
483
+ | <a id="connected"></a> `connected?` | `boolean` | Whether the user has connected the application. | [cobalt.ts:20](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L20) |
484
+ | <a id="description"></a> `description` | `string` | The application description. | [cobalt.ts:10](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L10) |
485
+ | <a id="icon"></a> `icon` | `string` | The application icon. | [cobalt.ts:12](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L12) |
486
+ | <a id="name"></a> `name` | `string` | The application name. | [cobalt.ts:8](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L8) |
487
+ | <a id="reauth_required"></a> `reauth_required?` | `boolean` | Whether the connection has expired and re-auth is required. | [cobalt.ts:22](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L22) |
488
+ | <a id="slug"></a> `slug?` | `string` | The application slug for custom apps. | [cobalt.ts:16](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L16) |
489
+ | <a id="type"></a> `type` | `string` | The application slug for native apps. | [cobalt.ts:14](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L14) |
490
+
491
+ ***
492
+
493
+ ### CobaltOptions
494
+
495
+ Defined in: [cobalt.ts:81](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L81)
496
+
497
+ #### Properties
498
+
499
+ | Property | Type | Description | Defined in |
500
+ | ------ | ------ | ------ | ------ |
501
+ | <a id="baseurl"></a> `baseUrl?` | `string` | The base URL of the Cobalt API. You don't need to set this. | [cobalt.ts:83](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L83) |
502
+ | <a id="token-1"></a> `token?` | `string` | The session token. | [cobalt.ts:85](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L85) |
503
+
504
+ ***
505
+
506
+ ### Config
507
+
508
+ Defined in: [cobalt.ts:152](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L152)
509
+
510
+ #### Properties
511
+
512
+ | Property | Type | Defined in |
513
+ | ------ | ------ | ------ |
514
+ | <a id="config_id"></a> `config_id?` | `string` | [cobalt.ts:154](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L154) |
515
+ | <a id="field_errors"></a> `field_errors?` | `object`[] | [cobalt.ts:157](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L157) |
516
+ | <a id="fields"></a> `fields?` | [`ConfigField`](#configfield)[] | [cobalt.ts:155](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L155) |
517
+ | <a id="slug-1"></a> `slug` | `string` | [cobalt.ts:153](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L153) |
518
+ | <a id="workflows"></a> `workflows?` | [`ConfigWorkflow`](#configworkflow)[] | [cobalt.ts:156](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L156) |
519
+
520
+ ***
521
+
522
+ ### ConfigField
523
+
524
+ Defined in: [cobalt.ts:167](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L167)
525
+
526
+ #### Properties
527
+
528
+ | Property | Type | Defined in |
529
+ | ------ | ------ | ------ |
530
+ | <a id="field_type"></a> `field_type` | `string` | [cobalt.ts:170](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L170) |
531
+ | <a id="hidden"></a> `hidden?` | `boolean` | [cobalt.ts:182](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L182) |
532
+ | <a id="id"></a> `id` | `string` | [cobalt.ts:168](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L168) |
533
+ | <a id="labels"></a> `labels?` | `object`[] | [cobalt.ts:176](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L176) |
534
+ | <a id="multiple"></a> `multiple?` | `boolean` | [cobalt.ts:180](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L180) |
535
+ | <a id="name-1"></a> `name` | `string` | [cobalt.ts:169](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L169) |
536
+ | <a id="options"></a> `options?` | `object`[] | [cobalt.ts:171](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L171) |
537
+ | <a id="parent"></a> `parent?` | `string` | [cobalt.ts:175](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L175) |
538
+ | <a id="required"></a> `required?` | `boolean` | [cobalt.ts:181](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L181) |
539
+ | <a id="value"></a> `value?` | `any` | [cobalt.ts:183](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L183) |
540
+
541
+ ***
542
+
543
+ ### ConfigPayload
544
+
545
+ Defined in: [cobalt.ts:42](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L42)
546
+
547
+ The payload object for config.
548
+
549
+ #### Properties
550
+
551
+ | Property | Type | Description | Defined in |
552
+ | ------ | ------ | ------ | ------ |
553
+ | <a id="config_id-1"></a> `config_id?` | `string` | Unique ID for the config. | [cobalt.ts:46](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L46) |
554
+ | <a id="labels-1"></a> `labels?` | [`Label`](#label-1)[] | The dynamic label mappings. | [cobalt.ts:48](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L48) |
555
+ | <a id="slug-2"></a> `slug` | `string` | The application slug. | [cobalt.ts:44](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L44) |
556
+
557
+ ***
558
+
559
+ ### ConfigWorkflow
560
+
561
+ Defined in: [cobalt.ts:186](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L186)
562
+
563
+ #### Properties
564
+
565
+ | Property | Type | Defined in |
566
+ | ------ | ------ | ------ |
567
+ | <a id="description-1"></a> `description?` | `string` | [cobalt.ts:189](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L189) |
568
+ | <a id="enabled"></a> `enabled` | `boolean` | [cobalt.ts:190](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L190) |
569
+ | <a id="fields-1"></a> `fields?` | [`ConfigField`](#configfield)[] | [cobalt.ts:191](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L191) |
570
+ | <a id="id-1"></a> `id` | `string` | [cobalt.ts:187](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L187) |
571
+ | <a id="name-2"></a> `name` | `string` | [cobalt.ts:188](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L188) |
572
+
573
+ ***
574
+
575
+ ### EcosystemLead
576
+
577
+ Defined in: [cobalt.ts:88](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L88)
578
+
579
+ #### Properties
580
+
581
+ | Property | Type | Defined in |
582
+ | ------ | ------ | ------ |
583
+ | <a id="_id"></a> `_id` | `string` | [cobalt.ts:89](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L89) |
584
+ | <a id="created_at"></a> `created_at` | `string` | [cobalt.ts:93](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L93) |
585
+ | <a id="description-2"></a> `description?` | `string` | [cobalt.ts:92](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L92) |
586
+ | <a id="email"></a> `email` | `string` | [cobalt.ts:91](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L91) |
587
+ | <a id="name-3"></a> `name?` | `string` | [cobalt.ts:90](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L90) |
588
+
589
+ ***
590
+
591
+ ### EcosystemLeadPayload
592
+
593
+ Defined in: [cobalt.ts:96](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L96)
594
+
595
+ #### Properties
596
+
597
+ | Property | Type | Defined in |
598
+ | ------ | ------ | ------ |
599
+ | <a id="description-3"></a> `description?` | `string` | [cobalt.ts:100](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L100) |
600
+ | <a id="email-1"></a> `email` | `string` | [cobalt.ts:99](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L99) |
601
+ | <a id="name-4"></a> `name?` | `string` | [cobalt.ts:98](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L98) |
602
+ | <a id="slug-3"></a> `slug` | `string` | [cobalt.ts:97](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L97) |
603
+
604
+ ***
605
+
606
+ ### InputField
607
+
608
+ Defined in: [cobalt.ts:28](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L28)
609
+
610
+ An Input field to take input from the user.
611
+
612
+ #### Properties
613
+
614
+ | Property | Type | Description | Defined in |
615
+ | ------ | ------ | ------ | ------ |
616
+ | <a id="label"></a> `label` | `string` | The label of the field. | [cobalt.ts:38](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L38) |
617
+ | <a id="name-5"></a> `name` | `string` | Key name of the field. | [cobalt.ts:30](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L30) |
618
+ | <a id="placeholder"></a> `placeholder` | `string` | The placeholder of the field. | [cobalt.ts:36](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L36) |
619
+ | <a id="required-1"></a> `required` | `boolean` | Whether the field is required. | [cobalt.ts:34](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L34) |
620
+ | <a id="type-1"></a> `type` | `string` | Input type of the field. | [cobalt.ts:32](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L32) |
621
+
622
+ ***
623
+
624
+ ### Label
625
+
626
+ Defined in: [cobalt.ts:52](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L52)
627
+
628
+ Label Mapping
629
+
630
+ #### Properties
631
+
632
+ | Property | Type | Description | Defined in |
633
+ | ------ | ------ | ------ | ------ |
634
+ | <a id="name-6"></a> `name` | `string` | The label name. | [cobalt.ts:54](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L54) |
635
+ | <a id="value-1"></a> `value` | `string` \| `number` \| `boolean` | The label value. | [cobalt.ts:56](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L56) |
636
+
637
+ ***
638
+
639
+ ### PublicWorkflow
640
+
641
+ Defined in: [cobalt.ts:124](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L124)
642
+
643
+ A public workflow in Cobalt.
644
+
645
+ #### Properties
646
+
647
+ | Property | Type | Description | Defined in |
648
+ | ------ | ------ | ------ | ------ |
649
+ | <a id="_id-1"></a> `_id` | `string` | The workflow ID. | [cobalt.ts:126](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L126) |
650
+ | <a id="description-4"></a> `description?` | `string` | The workflow description. | [cobalt.ts:130](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L130) |
651
+ | <a id="name-7"></a> `name` | `string` | The workflow name. | [cobalt.ts:128](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L128) |
652
+
653
+ ***
654
+
655
+ ### PublicWorkflowPayload
656
+
657
+ Defined in: [cobalt.ts:134](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L134)
658
+
659
+ The payload for creating a public workflow for the linked account.
660
+
661
+ #### Properties
662
+
663
+ | Property | Type | Description | Defined in |
664
+ | ------ | ------ | ------ | ------ |
665
+ | <a id="description-5"></a> `description?` | `string` | The workflow description. | [cobalt.ts:138](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L138) |
666
+ | <a id="name-8"></a> `name` | `string` | The workflow name. | [cobalt.ts:136](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L136) |
667
+ | <a id="slug-4"></a> `slug?` | `string` | The application slug in which this workflow should be created. | [cobalt.ts:140](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L140) |
668
+
669
+ ***
670
+
671
+ ### PublicWorkflowsPayload
672
+
673
+ Defined in: [cobalt.ts:143](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L143)
674
+
675
+ #### Extends
676
+
677
+ - `PaginationProps`
678
+
679
+ #### Properties
680
+
681
+ | Property | Type | Inherited from | Defined in |
682
+ | ------ | ------ | ------ | ------ |
683
+ | <a id="limit"></a> `limit?` | `number` | `PaginationProps.limit` | [cobalt.ts:149](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L149) |
684
+ | <a id="page"></a> `page?` | `number` | `PaginationProps.page` | [cobalt.ts:148](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L148) |
685
+ | <a id="slug-5"></a> `slug?` | `string` | - | [cobalt.ts:144](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L144) |
686
+
687
+ ***
688
+
689
+ ### RuleOptions
690
+
691
+ Defined in: [cobalt.ts:103](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L103)
692
+
693
+ #### Properties
694
+
695
+ | Property | Type | Defined in |
696
+ | ------ | ------ | ------ |
697
+ | <a id="conditional_code_stdout"></a> `conditional_code_stdout?` | `string`[] | [cobalt.ts:116](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L116) |
698
+ | <a id="error"></a> `error?` | `object` | [cobalt.ts:117](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L117) |
699
+ | `error.message?` | `string` | [cobalt.ts:118](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L118) |
700
+ | `error.stack?` | `string` | [cobalt.ts:119](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L119) |
701
+ | <a id="rule_column"></a> `rule_column` | `object` | [cobalt.ts:104](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L104) |
702
+ | `rule_column.operator` | `object` | [cobalt.ts:110](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L110) |
703
+ | `rule_column.operator.name` | `string` | [cobalt.ts:111](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L111) |
704
+ | `rule_column.operator.options` | [`Label`](#label-1)[] | [cobalt.ts:113](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L113) |
705
+ | `rule_column.operator.type` | `"select"` | [cobalt.ts:112](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L112) |
706
+ | `rule_column.rhs` | `object` | [cobalt.ts:105](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L105) |
707
+ | `rule_column.rhs.name` | `string` | [cobalt.ts:106](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L106) |
708
+ | `rule_column.rhs.options?` | [`Label`](#label-1)[] | [cobalt.ts:108](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L108) |
709
+ | `rule_column.rhs.type` | `"text"` \| `"select"` | [cobalt.ts:107](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L107) |
710
+
711
+ ***
712
+
713
+ ### UpdateConfigPayload
714
+
715
+ Defined in: [cobalt.ts:60](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L60)
716
+
717
+ The configuration data for an application.
718
+
719
+ #### Properties
720
+
721
+ | Property | Type | Description | Defined in |
722
+ | ------ | ------ | ------ | ------ |
723
+ | <a id="config_id-2"></a> `config_id?` | `string` | Unique ID for the config. | [cobalt.ts:64](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L64) |
724
+ | <a id="fields-2"></a> `fields` | `Record`\<`string`, `string` \| `number` \| `boolean`\> | A map of application fields and their values. | [cobalt.ts:66](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L66) |
725
+ | <a id="slug-6"></a> `slug` | `string` | The application slug | [cobalt.ts:62](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L62) |
726
+ | <a id="workflows-1"></a> `workflows` | [`WorkflowPayload`](#workflowpayload)[] | The config workflows data. | [cobalt.ts:68](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L68) |
727
+
728
+ ***
729
+
730
+ ### WorkflowPayload
731
+
732
+ Defined in: [cobalt.ts:72](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L72)
733
+
734
+ The workflow.
735
+
736
+ #### Properties
737
+
738
+ | Property | Type | Description | Defined in |
739
+ | ------ | ------ | ------ | ------ |
740
+ | <a id="enabled-1"></a> `enabled` | `boolean` | Whether the workflow is enabled. | [cobalt.ts:76](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L76) |
741
+ | <a id="fields-3"></a> `fields` | `Record`\<`string`, `string` \| `number` \| `boolean`\> | A map of workflow field names and their values. | [cobalt.ts:78](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L78) |
742
+ | <a id="id-2"></a> `id` | `string` | The ID of the workflow. | [cobalt.ts:74](https://github.com/gocobalt/cobalt-js/blob/b0775f9f64cc18029ce91bf46d52322be65eaa24/cobalt.ts#L74) |