@bubblelab/bubble-core 0.1.210 → 0.1.211
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/dist/bubble-bundle.d.ts +132 -111
- package/dist/bubble-factory.d.ts.map +1 -1
- package/dist/bubble-factory.js +4 -0
- package/dist/bubble-factory.js.map +1 -1
- package/dist/bubbles/service-bubble/ai-agent.d.ts +84 -84
- package/dist/bubbles/service-bubble/ai-agent.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/ai-agent.js +2 -1
- package/dist/bubbles/service-bubble/ai-agent.js.map +1 -1
- package/dist/bubbles/service-bubble/airtable.d.ts +100 -100
- package/dist/bubbles/service-bubble/apify/actors/instagram-hashtag-scraper.d.ts +2 -2
- package/dist/bubbles/service-bubble/apify/actors/instagram-scraper.d.ts +8 -8
- package/dist/bubbles/service-bubble/apify/actors/linkedin-jobs-scraper.d.ts +2 -2
- package/dist/bubbles/service-bubble/apify/actors/linkedin-posts-search.d.ts +22 -22
- package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-detail.d.ts +38 -38
- package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-posts.d.ts +52 -52
- package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.d.ts +6 -6
- package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.d.ts +12 -12
- package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.d.ts +12 -12
- package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts +126 -126
- package/dist/bubbles/service-bubble/apify/apify.d.ts +22 -22
- package/dist/bubbles/service-bubble/ashby/ashby.d.ts +114 -114
- package/dist/bubbles/service-bubble/ashby/ashby.schema.d.ts +2 -2
- package/dist/bubbles/service-bubble/assembled/assembled.d.ts +489 -0
- package/dist/bubbles/service-bubble/assembled/assembled.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/assembled/assembled.js +363 -0
- package/dist/bubbles/service-bubble/assembled/assembled.js.map +1 -0
- package/dist/bubbles/service-bubble/assembled/assembled.schema.d.ts +460 -0
- package/dist/bubbles/service-bubble/assembled/assembled.schema.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/assembled/assembled.schema.js +295 -0
- package/dist/bubbles/service-bubble/assembled/assembled.schema.js.map +1 -0
- package/dist/bubbles/service-bubble/assembled/assembled.utils.d.ts +12 -0
- package/dist/bubbles/service-bubble/assembled/assembled.utils.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/assembled/assembled.utils.js +89 -0
- package/dist/bubbles/service-bubble/assembled/assembled.utils.js.map +1 -0
- package/dist/bubbles/service-bubble/assembled/index.d.ts +4 -0
- package/dist/bubbles/service-bubble/assembled/index.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/assembled/index.js +4 -0
- package/dist/bubbles/service-bubble/assembled/index.js.map +1 -0
- package/dist/bubbles/service-bubble/attio/attio.d.ts +6 -6
- package/dist/bubbles/service-bubble/attio/attio.schema.d.ts +6 -6
- package/dist/bubbles/service-bubble/browserbase/browserbase.d.ts +5 -5
- package/dist/bubbles/service-bubble/browserbase/browserbase.schema.d.ts +1 -1
- package/dist/bubbles/service-bubble/crustdata/crustdata.d.ts +78 -78
- package/dist/bubbles/service-bubble/firecrawl.d.ts +278 -278
- package/dist/bubbles/service-bubble/followupboss.d.ts +4 -4
- package/dist/bubbles/service-bubble/github.d.ts +12 -12
- package/dist/bubbles/service-bubble/gmail.d.ts +104 -104
- package/dist/bubbles/service-bubble/google-calendar.d.ts +80 -80
- package/dist/bubbles/service-bubble/google-drive.d.ts +40 -40
- package/dist/bubbles/service-bubble/http.d.ts +6 -6
- package/dist/bubbles/service-bubble/insforge-db.d.ts +8 -8
- package/dist/bubbles/service-bubble/jira/jira.d.ts +16 -16
- package/dist/bubbles/service-bubble/jira/jira.schema.d.ts +36 -36
- package/dist/bubbles/service-bubble/notion/notion.d.ts +272 -272
- package/dist/bubbles/service-bubble/notion/property-schemas.d.ts +8 -8
- package/dist/bubbles/service-bubble/postgresql.d.ts +8 -8
- package/dist/bubbles/service-bubble/posthog/posthog.d.ts +9 -9
- package/dist/bubbles/service-bubble/posthog/posthog.schema.d.ts +14 -14
- package/dist/bubbles/service-bubble/resend.d.ts +4 -4
- package/dist/bubbles/service-bubble/sendsafely/sendsafely.d.ts +4 -4
- package/dist/bubbles/service-bubble/slack/slack.d.ts +294 -294
- package/dist/bubbles/service-bubble/stripe/stripe.d.ts +39 -39
- package/dist/bubbles/service-bubble/stripe/stripe.schema.d.ts +28 -28
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.d.ts +6 -6
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.schema.d.ts +8 -8
- package/dist/bubbles/tool-bubble/company-enrichment-tool.d.ts +10 -10
- package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +385 -385
- package/dist/bubbles/tool-bubble/list-capabilities-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/people-search-tool.d.ts +10 -10
- package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/sql-query-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/tiktok-tool.d.ts +60 -60
- package/dist/bubbles/tool-bubble/twitter-tool.d.ts +134 -134
- package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/web-extract-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/yc-scraper-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/youtube-tool.d.ts +20 -20
- package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +12 -12
- package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +44 -44
- package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +16 -16
- package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +2 -2
- package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +34 -34
- package/dist/bubbles.json +927 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/bubbles.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "2.0.0",
|
|
3
|
-
"generatedAt": "2026-03-
|
|
4
|
-
"totalCount":
|
|
3
|
+
"generatedAt": "2026-03-01T19:26:22.349Z",
|
|
4
|
+
"totalCount": 71,
|
|
5
5
|
"bubbles": [
|
|
6
6
|
{
|
|
7
7
|
"name": "hello-world",
|
|
@@ -69373,6 +69373,931 @@
|
|
|
69373
69373
|
"requiredCredentials": [
|
|
69374
69374
|
"S3_CRED"
|
|
69375
69375
|
]
|
|
69376
|
+
},
|
|
69377
|
+
{
|
|
69378
|
+
"name": "assembled",
|
|
69379
|
+
"alias": "assembled",
|
|
69380
|
+
"type": "service",
|
|
69381
|
+
"shortDescription": "Workforce management platform for scheduling, time off, and agent management",
|
|
69382
|
+
"useCase": "General purpose bubble for various workflow needs",
|
|
69383
|
+
"outputSchema": "Complex schema - see usage example for structure",
|
|
69384
|
+
"inputJsonSchema": {
|
|
69385
|
+
"anyOf": [
|
|
69386
|
+
{
|
|
69387
|
+
"type": "object",
|
|
69388
|
+
"properties": {
|
|
69389
|
+
"operation": {
|
|
69390
|
+
"type": "string",
|
|
69391
|
+
"enum": [
|
|
69392
|
+
"list_people"
|
|
69393
|
+
],
|
|
69394
|
+
"description": "List people/agents"
|
|
69395
|
+
},
|
|
69396
|
+
"credentials": {
|
|
69397
|
+
"type": "object",
|
|
69398
|
+
"additionalProperties": {
|
|
69399
|
+
"type": "string"
|
|
69400
|
+
},
|
|
69401
|
+
"description": "Credentials for authentication"
|
|
69402
|
+
},
|
|
69403
|
+
"limit": {
|
|
69404
|
+
"type": "number",
|
|
69405
|
+
"default": 20,
|
|
69406
|
+
"description": "Maximum number of results to return (default 20, max 500)"
|
|
69407
|
+
},
|
|
69408
|
+
"offset": {
|
|
69409
|
+
"type": "number",
|
|
69410
|
+
"default": 0,
|
|
69411
|
+
"description": "Number of results to skip for pagination"
|
|
69412
|
+
},
|
|
69413
|
+
"channel": {
|
|
69414
|
+
"type": "string",
|
|
69415
|
+
"description": "Filter by channel (phone, email, chat, sms, social, back_office)"
|
|
69416
|
+
},
|
|
69417
|
+
"team": {
|
|
69418
|
+
"type": "string",
|
|
69419
|
+
"description": "Filter by team name"
|
|
69420
|
+
},
|
|
69421
|
+
"site": {
|
|
69422
|
+
"type": "string",
|
|
69423
|
+
"description": "Filter by site name"
|
|
69424
|
+
},
|
|
69425
|
+
"queue": {
|
|
69426
|
+
"type": "string",
|
|
69427
|
+
"description": "Filter by queue name"
|
|
69428
|
+
},
|
|
69429
|
+
"search": {
|
|
69430
|
+
"type": "string",
|
|
69431
|
+
"description": "Search by name, email, or imported_id"
|
|
69432
|
+
}
|
|
69433
|
+
},
|
|
69434
|
+
"required": [
|
|
69435
|
+
"operation"
|
|
69436
|
+
],
|
|
69437
|
+
"additionalProperties": false
|
|
69438
|
+
},
|
|
69439
|
+
{
|
|
69440
|
+
"type": "object",
|
|
69441
|
+
"properties": {
|
|
69442
|
+
"operation": {
|
|
69443
|
+
"type": "string",
|
|
69444
|
+
"enum": [
|
|
69445
|
+
"get_person"
|
|
69446
|
+
],
|
|
69447
|
+
"description": "Get a single person by ID"
|
|
69448
|
+
},
|
|
69449
|
+
"credentials": {
|
|
69450
|
+
"type": "object",
|
|
69451
|
+
"additionalProperties": {
|
|
69452
|
+
"type": "string"
|
|
69453
|
+
},
|
|
69454
|
+
"description": "Credentials for authentication"
|
|
69455
|
+
},
|
|
69456
|
+
"person_id": {
|
|
69457
|
+
"type": "string",
|
|
69458
|
+
"description": "The Assembled person ID"
|
|
69459
|
+
}
|
|
69460
|
+
},
|
|
69461
|
+
"required": [
|
|
69462
|
+
"operation",
|
|
69463
|
+
"person_id"
|
|
69464
|
+
],
|
|
69465
|
+
"additionalProperties": false
|
|
69466
|
+
},
|
|
69467
|
+
{
|
|
69468
|
+
"type": "object",
|
|
69469
|
+
"properties": {
|
|
69470
|
+
"operation": {
|
|
69471
|
+
"type": "string",
|
|
69472
|
+
"enum": [
|
|
69473
|
+
"create_person"
|
|
69474
|
+
],
|
|
69475
|
+
"description": "Create a new person/agent"
|
|
69476
|
+
},
|
|
69477
|
+
"credentials": {
|
|
69478
|
+
"type": "object",
|
|
69479
|
+
"additionalProperties": {
|
|
69480
|
+
"type": "string"
|
|
69481
|
+
},
|
|
69482
|
+
"description": "Credentials for authentication"
|
|
69483
|
+
},
|
|
69484
|
+
"first_name": {
|
|
69485
|
+
"type": "string",
|
|
69486
|
+
"description": "First name of the person"
|
|
69487
|
+
},
|
|
69488
|
+
"last_name": {
|
|
69489
|
+
"type": "string",
|
|
69490
|
+
"description": "Last name of the person"
|
|
69491
|
+
},
|
|
69492
|
+
"email": {
|
|
69493
|
+
"type": "string",
|
|
69494
|
+
"description": "Email address of the person"
|
|
69495
|
+
},
|
|
69496
|
+
"imported_id": {
|
|
69497
|
+
"type": "string",
|
|
69498
|
+
"description": "External/imported ID for the person"
|
|
69499
|
+
},
|
|
69500
|
+
"channels": {
|
|
69501
|
+
"type": "array",
|
|
69502
|
+
"items": {
|
|
69503
|
+
"type": "string"
|
|
69504
|
+
},
|
|
69505
|
+
"description": "Channels the person works on (phone, email, chat, sms, social, back_office)"
|
|
69506
|
+
},
|
|
69507
|
+
"teams": {
|
|
69508
|
+
"type": "array",
|
|
69509
|
+
"items": {
|
|
69510
|
+
"type": "string"
|
|
69511
|
+
},
|
|
69512
|
+
"description": "Team names to assign the person to"
|
|
69513
|
+
},
|
|
69514
|
+
"queues": {
|
|
69515
|
+
"type": "array",
|
|
69516
|
+
"items": {
|
|
69517
|
+
"type": "string"
|
|
69518
|
+
},
|
|
69519
|
+
"description": "Queue names to assign the person to"
|
|
69520
|
+
},
|
|
69521
|
+
"site": {
|
|
69522
|
+
"type": "string",
|
|
69523
|
+
"description": "Site name for the person"
|
|
69524
|
+
},
|
|
69525
|
+
"timezone": {
|
|
69526
|
+
"type": "string",
|
|
69527
|
+
"description": "Timezone for the person (e.g. America/Los_Angeles)"
|
|
69528
|
+
},
|
|
69529
|
+
"roles": {
|
|
69530
|
+
"type": "array",
|
|
69531
|
+
"items": {
|
|
69532
|
+
"type": "string"
|
|
69533
|
+
},
|
|
69534
|
+
"description": "Roles to assign (e.g. agent, admin)"
|
|
69535
|
+
},
|
|
69536
|
+
"staffable": {
|
|
69537
|
+
"type": "boolean",
|
|
69538
|
+
"default": true,
|
|
69539
|
+
"description": "Whether the person can be scheduled"
|
|
69540
|
+
}
|
|
69541
|
+
},
|
|
69542
|
+
"required": [
|
|
69543
|
+
"operation",
|
|
69544
|
+
"first_name",
|
|
69545
|
+
"last_name"
|
|
69546
|
+
],
|
|
69547
|
+
"additionalProperties": false
|
|
69548
|
+
},
|
|
69549
|
+
{
|
|
69550
|
+
"type": "object",
|
|
69551
|
+
"properties": {
|
|
69552
|
+
"operation": {
|
|
69553
|
+
"type": "string",
|
|
69554
|
+
"enum": [
|
|
69555
|
+
"update_person"
|
|
69556
|
+
],
|
|
69557
|
+
"description": "Update an existing person"
|
|
69558
|
+
},
|
|
69559
|
+
"credentials": {
|
|
69560
|
+
"type": "object",
|
|
69561
|
+
"additionalProperties": {
|
|
69562
|
+
"type": "string"
|
|
69563
|
+
},
|
|
69564
|
+
"description": "Credentials for authentication"
|
|
69565
|
+
},
|
|
69566
|
+
"person_id": {
|
|
69567
|
+
"type": "string",
|
|
69568
|
+
"description": "The Assembled person ID to update"
|
|
69569
|
+
},
|
|
69570
|
+
"first_name": {
|
|
69571
|
+
"type": "string",
|
|
69572
|
+
"description": "Updated first name"
|
|
69573
|
+
},
|
|
69574
|
+
"last_name": {
|
|
69575
|
+
"type": "string",
|
|
69576
|
+
"description": "Updated last name"
|
|
69577
|
+
},
|
|
69578
|
+
"email": {
|
|
69579
|
+
"type": "string",
|
|
69580
|
+
"description": "Updated email address"
|
|
69581
|
+
},
|
|
69582
|
+
"channels": {
|
|
69583
|
+
"type": "array",
|
|
69584
|
+
"items": {
|
|
69585
|
+
"type": "string"
|
|
69586
|
+
},
|
|
69587
|
+
"description": "Updated channels list"
|
|
69588
|
+
},
|
|
69589
|
+
"teams": {
|
|
69590
|
+
"type": "array",
|
|
69591
|
+
"items": {
|
|
69592
|
+
"type": "string"
|
|
69593
|
+
},
|
|
69594
|
+
"description": "Updated team names"
|
|
69595
|
+
},
|
|
69596
|
+
"queues": {
|
|
69597
|
+
"type": "array",
|
|
69598
|
+
"items": {
|
|
69599
|
+
"type": "string"
|
|
69600
|
+
},
|
|
69601
|
+
"description": "Updated queue names"
|
|
69602
|
+
},
|
|
69603
|
+
"site": {
|
|
69604
|
+
"type": "string",
|
|
69605
|
+
"description": "Updated site name"
|
|
69606
|
+
},
|
|
69607
|
+
"timezone": {
|
|
69608
|
+
"type": "string",
|
|
69609
|
+
"description": "Updated timezone"
|
|
69610
|
+
},
|
|
69611
|
+
"staffable": {
|
|
69612
|
+
"type": "boolean",
|
|
69613
|
+
"description": "Updated staffable status"
|
|
69614
|
+
}
|
|
69615
|
+
},
|
|
69616
|
+
"required": [
|
|
69617
|
+
"operation",
|
|
69618
|
+
"person_id"
|
|
69619
|
+
],
|
|
69620
|
+
"additionalProperties": false
|
|
69621
|
+
},
|
|
69622
|
+
{
|
|
69623
|
+
"type": "object",
|
|
69624
|
+
"properties": {
|
|
69625
|
+
"operation": {
|
|
69626
|
+
"type": "string",
|
|
69627
|
+
"enum": [
|
|
69628
|
+
"list_activities"
|
|
69629
|
+
],
|
|
69630
|
+
"description": "List activities/schedule events in a time window"
|
|
69631
|
+
},
|
|
69632
|
+
"credentials": {
|
|
69633
|
+
"type": "object",
|
|
69634
|
+
"additionalProperties": {
|
|
69635
|
+
"type": "string"
|
|
69636
|
+
},
|
|
69637
|
+
"description": "Credentials for authentication"
|
|
69638
|
+
},
|
|
69639
|
+
"start_time": {
|
|
69640
|
+
"type": "number",
|
|
69641
|
+
"description": "Start of time window as Unix timestamp (seconds)"
|
|
69642
|
+
},
|
|
69643
|
+
"end_time": {
|
|
69644
|
+
"type": "number",
|
|
69645
|
+
"description": "End of time window as Unix timestamp (seconds)"
|
|
69646
|
+
},
|
|
69647
|
+
"agent_ids": {
|
|
69648
|
+
"type": "array",
|
|
69649
|
+
"items": {
|
|
69650
|
+
"type": "string"
|
|
69651
|
+
},
|
|
69652
|
+
"description": "Filter by specific agent IDs"
|
|
69653
|
+
},
|
|
69654
|
+
"queue": {
|
|
69655
|
+
"type": "string",
|
|
69656
|
+
"description": "Filter by queue name"
|
|
69657
|
+
},
|
|
69658
|
+
"include_agents": {
|
|
69659
|
+
"type": "boolean",
|
|
69660
|
+
"default": false,
|
|
69661
|
+
"description": "Include agent details in response"
|
|
69662
|
+
}
|
|
69663
|
+
},
|
|
69664
|
+
"required": [
|
|
69665
|
+
"operation",
|
|
69666
|
+
"start_time",
|
|
69667
|
+
"end_time"
|
|
69668
|
+
],
|
|
69669
|
+
"additionalProperties": false
|
|
69670
|
+
},
|
|
69671
|
+
{
|
|
69672
|
+
"type": "object",
|
|
69673
|
+
"properties": {
|
|
69674
|
+
"operation": {
|
|
69675
|
+
"type": "string",
|
|
69676
|
+
"enum": [
|
|
69677
|
+
"create_activity"
|
|
69678
|
+
],
|
|
69679
|
+
"description": "Create a new activity/schedule event"
|
|
69680
|
+
},
|
|
69681
|
+
"credentials": {
|
|
69682
|
+
"type": "object",
|
|
69683
|
+
"additionalProperties": {
|
|
69684
|
+
"type": "string"
|
|
69685
|
+
},
|
|
69686
|
+
"description": "Credentials for authentication"
|
|
69687
|
+
},
|
|
69688
|
+
"agent_id": {
|
|
69689
|
+
"type": "string",
|
|
69690
|
+
"description": "Agent ID to assign the activity to"
|
|
69691
|
+
},
|
|
69692
|
+
"type_id": {
|
|
69693
|
+
"type": "string",
|
|
69694
|
+
"description": "Activity type ID"
|
|
69695
|
+
},
|
|
69696
|
+
"start_time": {
|
|
69697
|
+
"type": "number",
|
|
69698
|
+
"description": "Activity start as Unix timestamp (seconds)"
|
|
69699
|
+
},
|
|
69700
|
+
"end_time": {
|
|
69701
|
+
"type": "number",
|
|
69702
|
+
"description": "Activity end as Unix timestamp (seconds)"
|
|
69703
|
+
},
|
|
69704
|
+
"channels": {
|
|
69705
|
+
"type": "array",
|
|
69706
|
+
"items": {
|
|
69707
|
+
"type": "string"
|
|
69708
|
+
},
|
|
69709
|
+
"description": "Channels for this activity (phone, email, chat, etc.)"
|
|
69710
|
+
},
|
|
69711
|
+
"description": {
|
|
69712
|
+
"type": "string",
|
|
69713
|
+
"description": "Description of the activity"
|
|
69714
|
+
},
|
|
69715
|
+
"allow_conflicts": {
|
|
69716
|
+
"type": "boolean",
|
|
69717
|
+
"default": false,
|
|
69718
|
+
"description": "Whether to allow overlapping activities"
|
|
69719
|
+
}
|
|
69720
|
+
},
|
|
69721
|
+
"required": [
|
|
69722
|
+
"operation",
|
|
69723
|
+
"agent_id",
|
|
69724
|
+
"type_id",
|
|
69725
|
+
"start_time",
|
|
69726
|
+
"end_time"
|
|
69727
|
+
],
|
|
69728
|
+
"additionalProperties": false
|
|
69729
|
+
},
|
|
69730
|
+
{
|
|
69731
|
+
"type": "object",
|
|
69732
|
+
"properties": {
|
|
69733
|
+
"operation": {
|
|
69734
|
+
"type": "string",
|
|
69735
|
+
"enum": [
|
|
69736
|
+
"delete_activities"
|
|
69737
|
+
],
|
|
69738
|
+
"description": "Delete activities for specified agents within a time window"
|
|
69739
|
+
},
|
|
69740
|
+
"credentials": {
|
|
69741
|
+
"type": "object",
|
|
69742
|
+
"additionalProperties": {
|
|
69743
|
+
"type": "string"
|
|
69744
|
+
},
|
|
69745
|
+
"description": "Credentials for authentication"
|
|
69746
|
+
},
|
|
69747
|
+
"agent_ids": {
|
|
69748
|
+
"type": "array",
|
|
69749
|
+
"items": {
|
|
69750
|
+
"type": "string"
|
|
69751
|
+
},
|
|
69752
|
+
"description": "Agent IDs whose activities to delete"
|
|
69753
|
+
},
|
|
69754
|
+
"start_time": {
|
|
69755
|
+
"type": "number",
|
|
69756
|
+
"description": "Start of deletion window as Unix timestamp (seconds)"
|
|
69757
|
+
},
|
|
69758
|
+
"end_time": {
|
|
69759
|
+
"type": "number",
|
|
69760
|
+
"description": "End of deletion window as Unix timestamp (seconds)"
|
|
69761
|
+
}
|
|
69762
|
+
},
|
|
69763
|
+
"required": [
|
|
69764
|
+
"operation",
|
|
69765
|
+
"agent_ids",
|
|
69766
|
+
"start_time",
|
|
69767
|
+
"end_time"
|
|
69768
|
+
],
|
|
69769
|
+
"additionalProperties": false
|
|
69770
|
+
},
|
|
69771
|
+
{
|
|
69772
|
+
"type": "object",
|
|
69773
|
+
"properties": {
|
|
69774
|
+
"operation": {
|
|
69775
|
+
"type": "string",
|
|
69776
|
+
"enum": [
|
|
69777
|
+
"create_time_off"
|
|
69778
|
+
],
|
|
69779
|
+
"description": "Create a time off request"
|
|
69780
|
+
},
|
|
69781
|
+
"credentials": {
|
|
69782
|
+
"type": "object",
|
|
69783
|
+
"additionalProperties": {
|
|
69784
|
+
"type": "string"
|
|
69785
|
+
},
|
|
69786
|
+
"description": "Credentials for authentication"
|
|
69787
|
+
},
|
|
69788
|
+
"agent_id": {
|
|
69789
|
+
"type": "string",
|
|
69790
|
+
"description": "Agent ID requesting time off"
|
|
69791
|
+
},
|
|
69792
|
+
"start_time": {
|
|
69793
|
+
"type": "number",
|
|
69794
|
+
"description": "Time off start as Unix timestamp (seconds)"
|
|
69795
|
+
},
|
|
69796
|
+
"end_time": {
|
|
69797
|
+
"type": "number",
|
|
69798
|
+
"description": "Time off end as Unix timestamp (seconds)"
|
|
69799
|
+
},
|
|
69800
|
+
"type_id": {
|
|
69801
|
+
"type": "string",
|
|
69802
|
+
"description": "Activity type ID for the time off (must be a time-off type)"
|
|
69803
|
+
},
|
|
69804
|
+
"status": {
|
|
69805
|
+
"type": "string",
|
|
69806
|
+
"enum": [
|
|
69807
|
+
"approved",
|
|
69808
|
+
"pending"
|
|
69809
|
+
],
|
|
69810
|
+
"default": "pending",
|
|
69811
|
+
"description": "Initial status of the time off request"
|
|
69812
|
+
},
|
|
69813
|
+
"notes": {
|
|
69814
|
+
"type": "string",
|
|
69815
|
+
"description": "Notes for the time off request"
|
|
69816
|
+
}
|
|
69817
|
+
},
|
|
69818
|
+
"required": [
|
|
69819
|
+
"operation",
|
|
69820
|
+
"agent_id",
|
|
69821
|
+
"start_time",
|
|
69822
|
+
"end_time"
|
|
69823
|
+
],
|
|
69824
|
+
"additionalProperties": false
|
|
69825
|
+
},
|
|
69826
|
+
{
|
|
69827
|
+
"type": "object",
|
|
69828
|
+
"properties": {
|
|
69829
|
+
"operation": {
|
|
69830
|
+
"type": "string",
|
|
69831
|
+
"enum": [
|
|
69832
|
+
"list_time_off"
|
|
69833
|
+
],
|
|
69834
|
+
"description": "List time off requests"
|
|
69835
|
+
},
|
|
69836
|
+
"credentials": {
|
|
69837
|
+
"type": "object",
|
|
69838
|
+
"additionalProperties": {
|
|
69839
|
+
"type": "string"
|
|
69840
|
+
},
|
|
69841
|
+
"description": "Credentials for authentication"
|
|
69842
|
+
},
|
|
69843
|
+
"limit": {
|
|
69844
|
+
"type": "number",
|
|
69845
|
+
"default": 20,
|
|
69846
|
+
"description": "Maximum number of results to return (default 20, max 500)"
|
|
69847
|
+
},
|
|
69848
|
+
"offset": {
|
|
69849
|
+
"type": "number",
|
|
69850
|
+
"default": 0,
|
|
69851
|
+
"description": "Number of results to skip for pagination"
|
|
69852
|
+
},
|
|
69853
|
+
"agent_ids": {
|
|
69854
|
+
"type": "array",
|
|
69855
|
+
"items": {
|
|
69856
|
+
"type": "string"
|
|
69857
|
+
},
|
|
69858
|
+
"description": "Filter by agent IDs"
|
|
69859
|
+
},
|
|
69860
|
+
"status": {
|
|
69861
|
+
"type": "string",
|
|
69862
|
+
"enum": [
|
|
69863
|
+
"approved",
|
|
69864
|
+
"pending",
|
|
69865
|
+
"denied",
|
|
69866
|
+
"cancelled"
|
|
69867
|
+
],
|
|
69868
|
+
"description": "Filter by time off request status"
|
|
69869
|
+
}
|
|
69870
|
+
},
|
|
69871
|
+
"required": [
|
|
69872
|
+
"operation"
|
|
69873
|
+
],
|
|
69874
|
+
"additionalProperties": false
|
|
69875
|
+
},
|
|
69876
|
+
{
|
|
69877
|
+
"type": "object",
|
|
69878
|
+
"properties": {
|
|
69879
|
+
"operation": {
|
|
69880
|
+
"type": "string",
|
|
69881
|
+
"enum": [
|
|
69882
|
+
"cancel_time_off"
|
|
69883
|
+
],
|
|
69884
|
+
"description": "Cancel a time off request"
|
|
69885
|
+
},
|
|
69886
|
+
"credentials": {
|
|
69887
|
+
"type": "object",
|
|
69888
|
+
"additionalProperties": {
|
|
69889
|
+
"type": "string"
|
|
69890
|
+
},
|
|
69891
|
+
"description": "Credentials for authentication"
|
|
69892
|
+
},
|
|
69893
|
+
"time_off_id": {
|
|
69894
|
+
"type": "string",
|
|
69895
|
+
"description": "ID of the time off request to cancel"
|
|
69896
|
+
}
|
|
69897
|
+
},
|
|
69898
|
+
"required": [
|
|
69899
|
+
"operation",
|
|
69900
|
+
"time_off_id"
|
|
69901
|
+
],
|
|
69902
|
+
"additionalProperties": false
|
|
69903
|
+
},
|
|
69904
|
+
{
|
|
69905
|
+
"type": "object",
|
|
69906
|
+
"properties": {
|
|
69907
|
+
"operation": {
|
|
69908
|
+
"type": "string",
|
|
69909
|
+
"enum": [
|
|
69910
|
+
"list_queues"
|
|
69911
|
+
],
|
|
69912
|
+
"description": "List all queues"
|
|
69913
|
+
},
|
|
69914
|
+
"credentials": {
|
|
69915
|
+
"type": "object",
|
|
69916
|
+
"additionalProperties": {
|
|
69917
|
+
"type": "string"
|
|
69918
|
+
},
|
|
69919
|
+
"description": "Credentials for authentication"
|
|
69920
|
+
}
|
|
69921
|
+
},
|
|
69922
|
+
"required": [
|
|
69923
|
+
"operation"
|
|
69924
|
+
],
|
|
69925
|
+
"additionalProperties": false
|
|
69926
|
+
},
|
|
69927
|
+
{
|
|
69928
|
+
"type": "object",
|
|
69929
|
+
"properties": {
|
|
69930
|
+
"operation": {
|
|
69931
|
+
"type": "string",
|
|
69932
|
+
"enum": [
|
|
69933
|
+
"list_teams"
|
|
69934
|
+
],
|
|
69935
|
+
"description": "List all teams"
|
|
69936
|
+
},
|
|
69937
|
+
"credentials": {
|
|
69938
|
+
"type": "object",
|
|
69939
|
+
"additionalProperties": {
|
|
69940
|
+
"type": "string"
|
|
69941
|
+
},
|
|
69942
|
+
"description": "Credentials for authentication"
|
|
69943
|
+
}
|
|
69944
|
+
},
|
|
69945
|
+
"required": [
|
|
69946
|
+
"operation"
|
|
69947
|
+
],
|
|
69948
|
+
"additionalProperties": false
|
|
69949
|
+
}
|
|
69950
|
+
]
|
|
69951
|
+
},
|
|
69952
|
+
"outputJsonSchema": {
|
|
69953
|
+
"anyOf": [
|
|
69954
|
+
{
|
|
69955
|
+
"type": "object",
|
|
69956
|
+
"properties": {
|
|
69957
|
+
"operation": {
|
|
69958
|
+
"type": "string",
|
|
69959
|
+
"enum": [
|
|
69960
|
+
"list_people"
|
|
69961
|
+
]
|
|
69962
|
+
},
|
|
69963
|
+
"success": {
|
|
69964
|
+
"type": "boolean"
|
|
69965
|
+
},
|
|
69966
|
+
"error": {
|
|
69967
|
+
"type": "string"
|
|
69968
|
+
},
|
|
69969
|
+
"people": {
|
|
69970
|
+
"type": "array",
|
|
69971
|
+
"items": {
|
|
69972
|
+
"type": "object",
|
|
69973
|
+
"additionalProperties": {}
|
|
69974
|
+
}
|
|
69975
|
+
},
|
|
69976
|
+
"total": {
|
|
69977
|
+
"type": "number"
|
|
69978
|
+
}
|
|
69979
|
+
},
|
|
69980
|
+
"required": [
|
|
69981
|
+
"operation",
|
|
69982
|
+
"success",
|
|
69983
|
+
"error"
|
|
69984
|
+
],
|
|
69985
|
+
"additionalProperties": false
|
|
69986
|
+
},
|
|
69987
|
+
{
|
|
69988
|
+
"type": "object",
|
|
69989
|
+
"properties": {
|
|
69990
|
+
"operation": {
|
|
69991
|
+
"type": "string",
|
|
69992
|
+
"enum": [
|
|
69993
|
+
"get_person"
|
|
69994
|
+
]
|
|
69995
|
+
},
|
|
69996
|
+
"success": {
|
|
69997
|
+
"type": "boolean"
|
|
69998
|
+
},
|
|
69999
|
+
"error": {
|
|
70000
|
+
"type": "string"
|
|
70001
|
+
},
|
|
70002
|
+
"person": {
|
|
70003
|
+
"type": "object",
|
|
70004
|
+
"additionalProperties": {}
|
|
70005
|
+
}
|
|
70006
|
+
},
|
|
70007
|
+
"required": [
|
|
70008
|
+
"operation",
|
|
70009
|
+
"success",
|
|
70010
|
+
"error"
|
|
70011
|
+
],
|
|
70012
|
+
"additionalProperties": false
|
|
70013
|
+
},
|
|
70014
|
+
{
|
|
70015
|
+
"type": "object",
|
|
70016
|
+
"properties": {
|
|
70017
|
+
"operation": {
|
|
70018
|
+
"type": "string",
|
|
70019
|
+
"enum": [
|
|
70020
|
+
"create_person"
|
|
70021
|
+
]
|
|
70022
|
+
},
|
|
70023
|
+
"success": {
|
|
70024
|
+
"type": "boolean"
|
|
70025
|
+
},
|
|
70026
|
+
"error": {
|
|
70027
|
+
"type": "string"
|
|
70028
|
+
},
|
|
70029
|
+
"person": {
|
|
70030
|
+
"type": "object",
|
|
70031
|
+
"additionalProperties": {}
|
|
70032
|
+
}
|
|
70033
|
+
},
|
|
70034
|
+
"required": [
|
|
70035
|
+
"operation",
|
|
70036
|
+
"success",
|
|
70037
|
+
"error"
|
|
70038
|
+
],
|
|
70039
|
+
"additionalProperties": false
|
|
70040
|
+
},
|
|
70041
|
+
{
|
|
70042
|
+
"type": "object",
|
|
70043
|
+
"properties": {
|
|
70044
|
+
"operation": {
|
|
70045
|
+
"type": "string",
|
|
70046
|
+
"enum": [
|
|
70047
|
+
"update_person"
|
|
70048
|
+
]
|
|
70049
|
+
},
|
|
70050
|
+
"success": {
|
|
70051
|
+
"type": "boolean"
|
|
70052
|
+
},
|
|
70053
|
+
"error": {
|
|
70054
|
+
"type": "string"
|
|
70055
|
+
},
|
|
70056
|
+
"person": {
|
|
70057
|
+
"type": "object",
|
|
70058
|
+
"additionalProperties": {}
|
|
70059
|
+
}
|
|
70060
|
+
},
|
|
70061
|
+
"required": [
|
|
70062
|
+
"operation",
|
|
70063
|
+
"success",
|
|
70064
|
+
"error"
|
|
70065
|
+
],
|
|
70066
|
+
"additionalProperties": false
|
|
70067
|
+
},
|
|
70068
|
+
{
|
|
70069
|
+
"type": "object",
|
|
70070
|
+
"properties": {
|
|
70071
|
+
"operation": {
|
|
70072
|
+
"type": "string",
|
|
70073
|
+
"enum": [
|
|
70074
|
+
"list_activities"
|
|
70075
|
+
]
|
|
70076
|
+
},
|
|
70077
|
+
"success": {
|
|
70078
|
+
"type": "boolean"
|
|
70079
|
+
},
|
|
70080
|
+
"error": {
|
|
70081
|
+
"type": "string"
|
|
70082
|
+
},
|
|
70083
|
+
"activities": {
|
|
70084
|
+
"type": "object",
|
|
70085
|
+
"additionalProperties": {
|
|
70086
|
+
"type": "object",
|
|
70087
|
+
"additionalProperties": {}
|
|
70088
|
+
}
|
|
70089
|
+
},
|
|
70090
|
+
"agents": {
|
|
70091
|
+
"type": "object",
|
|
70092
|
+
"additionalProperties": {
|
|
70093
|
+
"type": "object",
|
|
70094
|
+
"additionalProperties": {}
|
|
70095
|
+
}
|
|
70096
|
+
}
|
|
70097
|
+
},
|
|
70098
|
+
"required": [
|
|
70099
|
+
"operation",
|
|
70100
|
+
"success",
|
|
70101
|
+
"error"
|
|
70102
|
+
],
|
|
70103
|
+
"additionalProperties": false
|
|
70104
|
+
},
|
|
70105
|
+
{
|
|
70106
|
+
"type": "object",
|
|
70107
|
+
"properties": {
|
|
70108
|
+
"operation": {
|
|
70109
|
+
"type": "string",
|
|
70110
|
+
"enum": [
|
|
70111
|
+
"create_activity"
|
|
70112
|
+
]
|
|
70113
|
+
},
|
|
70114
|
+
"success": {
|
|
70115
|
+
"type": "boolean"
|
|
70116
|
+
},
|
|
70117
|
+
"error": {
|
|
70118
|
+
"type": "string"
|
|
70119
|
+
},
|
|
70120
|
+
"activity": {
|
|
70121
|
+
"type": "object",
|
|
70122
|
+
"additionalProperties": {}
|
|
70123
|
+
}
|
|
70124
|
+
},
|
|
70125
|
+
"required": [
|
|
70126
|
+
"operation",
|
|
70127
|
+
"success",
|
|
70128
|
+
"error"
|
|
70129
|
+
],
|
|
70130
|
+
"additionalProperties": false
|
|
70131
|
+
},
|
|
70132
|
+
{
|
|
70133
|
+
"type": "object",
|
|
70134
|
+
"properties": {
|
|
70135
|
+
"operation": {
|
|
70136
|
+
"type": "string",
|
|
70137
|
+
"enum": [
|
|
70138
|
+
"delete_activities"
|
|
70139
|
+
]
|
|
70140
|
+
},
|
|
70141
|
+
"success": {
|
|
70142
|
+
"type": "boolean"
|
|
70143
|
+
},
|
|
70144
|
+
"error": {
|
|
70145
|
+
"type": "string"
|
|
70146
|
+
}
|
|
70147
|
+
},
|
|
70148
|
+
"required": [
|
|
70149
|
+
"operation",
|
|
70150
|
+
"success",
|
|
70151
|
+
"error"
|
|
70152
|
+
],
|
|
70153
|
+
"additionalProperties": false
|
|
70154
|
+
},
|
|
70155
|
+
{
|
|
70156
|
+
"type": "object",
|
|
70157
|
+
"properties": {
|
|
70158
|
+
"operation": {
|
|
70159
|
+
"type": "string",
|
|
70160
|
+
"enum": [
|
|
70161
|
+
"create_time_off"
|
|
70162
|
+
]
|
|
70163
|
+
},
|
|
70164
|
+
"success": {
|
|
70165
|
+
"type": "boolean"
|
|
70166
|
+
},
|
|
70167
|
+
"error": {
|
|
70168
|
+
"type": "string"
|
|
70169
|
+
},
|
|
70170
|
+
"time_off": {
|
|
70171
|
+
"type": "object",
|
|
70172
|
+
"additionalProperties": {}
|
|
70173
|
+
}
|
|
70174
|
+
},
|
|
70175
|
+
"required": [
|
|
70176
|
+
"operation",
|
|
70177
|
+
"success",
|
|
70178
|
+
"error"
|
|
70179
|
+
],
|
|
70180
|
+
"additionalProperties": false
|
|
70181
|
+
},
|
|
70182
|
+
{
|
|
70183
|
+
"type": "object",
|
|
70184
|
+
"properties": {
|
|
70185
|
+
"operation": {
|
|
70186
|
+
"type": "string",
|
|
70187
|
+
"enum": [
|
|
70188
|
+
"list_time_off"
|
|
70189
|
+
]
|
|
70190
|
+
},
|
|
70191
|
+
"success": {
|
|
70192
|
+
"type": "boolean"
|
|
70193
|
+
},
|
|
70194
|
+
"error": {
|
|
70195
|
+
"type": "string"
|
|
70196
|
+
},
|
|
70197
|
+
"requests": {
|
|
70198
|
+
"type": "array",
|
|
70199
|
+
"items": {
|
|
70200
|
+
"type": "object",
|
|
70201
|
+
"additionalProperties": {}
|
|
70202
|
+
}
|
|
70203
|
+
}
|
|
70204
|
+
},
|
|
70205
|
+
"required": [
|
|
70206
|
+
"operation",
|
|
70207
|
+
"success",
|
|
70208
|
+
"error"
|
|
70209
|
+
],
|
|
70210
|
+
"additionalProperties": false
|
|
70211
|
+
},
|
|
70212
|
+
{
|
|
70213
|
+
"type": "object",
|
|
70214
|
+
"properties": {
|
|
70215
|
+
"operation": {
|
|
70216
|
+
"type": "string",
|
|
70217
|
+
"enum": [
|
|
70218
|
+
"cancel_time_off"
|
|
70219
|
+
]
|
|
70220
|
+
},
|
|
70221
|
+
"success": {
|
|
70222
|
+
"type": "boolean"
|
|
70223
|
+
},
|
|
70224
|
+
"error": {
|
|
70225
|
+
"type": "string"
|
|
70226
|
+
}
|
|
70227
|
+
},
|
|
70228
|
+
"required": [
|
|
70229
|
+
"operation",
|
|
70230
|
+
"success",
|
|
70231
|
+
"error"
|
|
70232
|
+
],
|
|
70233
|
+
"additionalProperties": false
|
|
70234
|
+
},
|
|
70235
|
+
{
|
|
70236
|
+
"type": "object",
|
|
70237
|
+
"properties": {
|
|
70238
|
+
"operation": {
|
|
70239
|
+
"type": "string",
|
|
70240
|
+
"enum": [
|
|
70241
|
+
"list_queues"
|
|
70242
|
+
]
|
|
70243
|
+
},
|
|
70244
|
+
"success": {
|
|
70245
|
+
"type": "boolean"
|
|
70246
|
+
},
|
|
70247
|
+
"error": {
|
|
70248
|
+
"type": "string"
|
|
70249
|
+
},
|
|
70250
|
+
"queues": {
|
|
70251
|
+
"type": "array",
|
|
70252
|
+
"items": {
|
|
70253
|
+
"type": "object",
|
|
70254
|
+
"additionalProperties": {}
|
|
70255
|
+
}
|
|
70256
|
+
}
|
|
70257
|
+
},
|
|
70258
|
+
"required": [
|
|
70259
|
+
"operation",
|
|
70260
|
+
"success",
|
|
70261
|
+
"error"
|
|
70262
|
+
],
|
|
70263
|
+
"additionalProperties": false
|
|
70264
|
+
},
|
|
70265
|
+
{
|
|
70266
|
+
"type": "object",
|
|
70267
|
+
"properties": {
|
|
70268
|
+
"operation": {
|
|
70269
|
+
"type": "string",
|
|
70270
|
+
"enum": [
|
|
70271
|
+
"list_teams"
|
|
70272
|
+
]
|
|
70273
|
+
},
|
|
70274
|
+
"success": {
|
|
70275
|
+
"type": "boolean"
|
|
70276
|
+
},
|
|
70277
|
+
"error": {
|
|
70278
|
+
"type": "string"
|
|
70279
|
+
},
|
|
70280
|
+
"teams": {
|
|
70281
|
+
"type": "array",
|
|
70282
|
+
"items": {
|
|
70283
|
+
"type": "object",
|
|
70284
|
+
"additionalProperties": {}
|
|
70285
|
+
}
|
|
70286
|
+
}
|
|
70287
|
+
},
|
|
70288
|
+
"required": [
|
|
70289
|
+
"operation",
|
|
70290
|
+
"success",
|
|
70291
|
+
"error"
|
|
70292
|
+
],
|
|
70293
|
+
"additionalProperties": false
|
|
70294
|
+
}
|
|
70295
|
+
]
|
|
70296
|
+
},
|
|
70297
|
+
"usageExample": "// List People example\nconst assembled_list_people = new AssembledBubble({\n operation: \"list_people\", // List people/agents\n limit: 20 // default, // Maximum number of results to return (default 20, max 500)\n offset: 0 // default, // Number of results to skip for pagination\n channel: \"example string\", // Filter by channel (phone, email, chat, sms, social, back_office)\n team: \"example string\", // Filter by team name\n site: \"example string\", // Filter by site name\n queue: \"example string\", // Filter by queue name\n search: \"example string\", // Search by name, email, or imported_id\n});\n\nconst result = await assembled_list_people.action();\n// outputSchema for result.data when operation === 'list_people':\n// {\n// operation: \"list_people\",\n// success: boolean,\n// error: string,\n// people: Record<string, unknown>[] | undefined,\n// total: number | undefined\n// }\n\n\n// Get Person example\nconst assembled_get_person = new AssembledBubble({\n operation: \"get_person\", // Get a single person by ID\n person_id: \"example string\", // The Assembled person ID\n});\n\nconst result = await assembled_get_person.action();\n// outputSchema for result.data when operation === 'get_person':\n// {\n// operation: \"get_person\",\n// success: boolean,\n// error: string,\n// person: Record<string, unknown> | undefined\n// }\n\n\n// Create Person example\nconst assembled_create_person = new AssembledBubble({\n operation: \"create_person\", // Create a new person/agent\n first_name: \"example string\", // First name of the person\n last_name: \"example string\", // Last name of the person\n email: \"example string\", // Email address of the person\n imported_id: \"example string\", // External/imported ID for the person\n channels: [\"example string\"], // Channels the person works on (phone, email, chat, sms, social, back_office)\n teams: [\"example string\"], // Team names to assign the person to\n queues: [\"example string\"], // Queue names to assign the person to\n site: \"example string\", // Site name for the person\n timezone: \"example string\", // Timezone for the person (e.g. America/Los_Angeles)\n roles: [\"example string\"], // Roles to assign (e.g. agent, admin)\n staffable: true // default, // Whether the person can be scheduled\n});\n\nconst result = await assembled_create_person.action();\n// outputSchema for result.data when operation === 'create_person':\n// {\n// operation: \"create_person\",\n// success: boolean,\n// error: string,\n// person: Record<string, unknown> | undefined\n// }\n\n\n// Update Person example\nconst assembled_update_person = new AssembledBubble({\n operation: \"update_person\", // Update an existing person\n person_id: \"example string\", // The Assembled person ID to update\n first_name: \"example string\", // Updated first name\n last_name: \"example string\", // Updated last name\n email: \"example string\", // Updated email address\n channels: [\"example string\"], // Updated channels list\n teams: [\"example string\"], // Updated team names\n queues: [\"example string\"], // Updated queue names\n site: \"example string\", // Updated site name\n timezone: \"example string\", // Updated timezone\n staffable: true, // Updated staffable status\n});\n\nconst result = await assembled_update_person.action();\n// outputSchema for result.data when operation === 'update_person':\n// {\n// operation: \"update_person\",\n// success: boolean,\n// error: string,\n// person: Record<string, unknown> | undefined\n// }\n\n\n// List Activities example\nconst assembled_list_activities = new AssembledBubble({\n operation: \"list_activities\", // List activities/schedule events in a time window\n start_time: 42, // Start of time window as Unix timestamp (seconds)\n end_time: 42, // End of time window as Unix timestamp (seconds)\n agent_ids: [\"example string\"], // Filter by specific agent IDs\n queue: \"example string\", // Filter by queue name\n include_agents: false // default, // Include agent details in response\n});\n\nconst result = await assembled_list_activities.action();\n// outputSchema for result.data when operation === 'list_activities':\n// {\n// operation: \"list_activities\",\n// success: boolean,\n// error: string,\n// activities: Record<string, Record<string, unknown>> | undefined,\n// agents: Record<string, Record<string, unknown>> | undefined\n// }\n\n\n// Create Activity example\nconst assembled_create_activity = new AssembledBubble({\n operation: \"create_activity\", // Create a new activity/schedule event\n agent_id: \"example string\", // Agent ID to assign the activity to\n type_id: \"example string\", // Activity type ID\n start_time: 42, // Activity start as Unix timestamp (seconds)\n end_time: 42, // Activity end as Unix timestamp (seconds)\n channels: [\"example string\"], // Channels for this activity (phone, email, chat, etc.)\n description: \"example string\", // Description of the activity\n allow_conflicts: false // default, // Whether to allow overlapping activities\n});\n\nconst result = await assembled_create_activity.action();\n// outputSchema for result.data when operation === 'create_activity':\n// {\n// operation: \"create_activity\",\n// success: boolean,\n// error: string,\n// activity: Record<string, unknown> | undefined\n// }\n\n\n// Delete Activities example\nconst assembled_delete_activities = new AssembledBubble({\n operation: \"delete_activities\", // Delete activities for specified agents within a time window\n agent_ids: [\"example string\"], // Agent IDs whose activities to delete\n start_time: 42, // Start of deletion window as Unix timestamp (seconds)\n end_time: 42, // End of deletion window as Unix timestamp (seconds)\n});\n\nconst result = await assembled_delete_activities.action();\n// outputSchema for result.data when operation === 'delete_activities':\n// {\n// operation: \"delete_activities\",\n// success: boolean,\n// error: string\n// }\n\n\n// Create Time Off example\nconst assembled_create_time_off = new AssembledBubble({\n operation: \"create_time_off\", // Create a time off request\n agent_id: \"example string\", // Agent ID requesting time off\n start_time: 42, // Time off start as Unix timestamp (seconds)\n end_time: 42, // Time off end as Unix timestamp (seconds)\n type_id: \"example string\", // Activity type ID for the time off (must be a time-off type)\n status: \"approved\" // options: \"approved\", \"pending\", // Initial status of the time off request\n notes: \"example string\", // Notes for the time off request\n});\n\nconst result = await assembled_create_time_off.action();\n// outputSchema for result.data when operation === 'create_time_off':\n// {\n// operation: \"create_time_off\",\n// success: boolean,\n// error: string,\n// time_off: Record<string, unknown> | undefined\n// }\n\n\n// List Time Off example\nconst assembled_list_time_off = new AssembledBubble({\n operation: \"list_time_off\", // List time off requests\n limit: 20 // default, // Maximum number of results to return (default 20, max 500)\n offset: 0 // default, // Number of results to skip for pagination\n agent_ids: [\"example string\"], // Filter by agent IDs\n status: \"approved\" // options: \"approved\", \"pending\", \"denied\", \"cancelled\", // Filter by time off request status\n});\n\nconst result = await assembled_list_time_off.action();\n// outputSchema for result.data when operation === 'list_time_off':\n// {\n// operation: \"list_time_off\",\n// success: boolean,\n// error: string,\n// requests: Record<string, unknown>[] | undefined\n// }\n\n\n// Cancel Time Off example\nconst assembled_cancel_time_off = new AssembledBubble({\n operation: \"cancel_time_off\", // Cancel a time off request\n time_off_id: \"example string\", // ID of the time off request to cancel\n});\n\nconst result = await assembled_cancel_time_off.action();\n// outputSchema for result.data when operation === 'cancel_time_off':\n// {\n// operation: \"cancel_time_off\",\n// success: boolean,\n// error: string\n// }\n\n\n// List Queues example\nconst assembled_list_queues = new AssembledBubble({\n operation: \"list_queues\", // List all queues\n});\n\nconst result = await assembled_list_queues.action();\n// outputSchema for result.data when operation === 'list_queues':\n// {\n// operation: \"list_queues\",\n// success: boolean,\n// error: string,\n// queues: Record<string, unknown>[] | undefined\n// }\n\n\n// List Teams example\nconst assembled_list_teams = new AssembledBubble({\n operation: \"list_teams\", // List all teams\n});\n\nconst result = await assembled_list_teams.action();\n// outputSchema for result.data when operation === 'list_teams':\n// {\n// operation: \"list_teams\",\n// success: boolean,\n// error: string,\n// teams: Record<string, unknown>[] | undefined\n// }\n\n\n// Always check success status before using data\nif (!result.success) {\n throw new Error(`assembled failed: ${result.error}`);\n}\n\n// Access the actual data\nconst actualData = result.data;\nconsole.log(actualData);",
|
|
70298
|
+
"requiredCredentials": [
|
|
70299
|
+
"ASSEMBLED_CRED"
|
|
70300
|
+
]
|
|
69376
70301
|
}
|
|
69377
70302
|
]
|
|
69378
70303
|
}
|