@epilot/cli 0.1.111 → 0.1.113
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/README.md +1 -1
- package/definitions/configuration-hub.json +1064 -48
- package/definitions/integration-toolkit.json +379 -1
- package/definitions/message.json +481 -1
- package/dist/bin/epilot.js +6 -6
- package/dist/{chunk-QGAMGDQ5.js → chunk-PKLYEJHD.js} +20 -4
- package/dist/{completion-OMS4BH5U.js → completion-YY2UW6SA.js} +1 -1
- package/dist/{upgrade-4R4YZQLX.js → upgrade-KXJE4GVJ.js} +1 -1
- package/package.json +1 -1
package/definitions/message.json
CHANGED
|
@@ -581,6 +581,44 @@
|
|
|
581
581
|
}
|
|
582
582
|
}
|
|
583
583
|
},
|
|
584
|
+
"/v1/message/unread:counts": {
|
|
585
|
+
"post": {
|
|
586
|
+
"operationId": "getUnreadCounts",
|
|
587
|
+
"summary": "getUnreadCounts",
|
|
588
|
+
"description": "Unread counts for several named scopes in one request.\n\nA scope is a name plus the same parameters the thread list already takes (`q`, `inbox_id`),\nso a scope's count and the list beneath it are the same predicate and agree by construction.\nThe server adds only the read-state condition; it does not re-author the caller's view.\n\nThe `organization` scope is the exception and takes no `q`: it reuses the four canonical\ncentral-inbox queries, so its numbers match `getUnread` exactly.\n\nBuckets are not symmetric, across scope types or across actors. Every scope other than\n`organization` returns `unread` alone. The `organization` scope returns all four\n(`unread`, `drafts`, `unassigned`, `spam`) for `actor: organization`, and only `unread` and\n`drafts` for `actor: user` — the agent sidebar has no Spam or Unlinked folder, so those two\nnumbers have nowhere to render and each one costs a cardinality aggregation. This is a\ndeliberate divergence from `getUnread`, which computes all four for both actors.\n\nGated on the `message-unread-counts` flag, evaluated once per request against the calling\norg. With the flag off the response is `{ \"enabled\": false, \"counts\": {} }` and no\nElasticsearch query is issued.\n",
|
|
589
|
+
"tags": [
|
|
590
|
+
"Messages"
|
|
591
|
+
],
|
|
592
|
+
"requestBody": {
|
|
593
|
+
"required": true,
|
|
594
|
+
"content": {
|
|
595
|
+
"application/json": {
|
|
596
|
+
"schema": {
|
|
597
|
+
"$ref": "#/components/schemas/UnreadCountsPayload"
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
},
|
|
602
|
+
"responses": {
|
|
603
|
+
"200": {
|
|
604
|
+
"description": "Success",
|
|
605
|
+
"content": {
|
|
606
|
+
"application/json": {
|
|
607
|
+
"schema": {
|
|
608
|
+
"$ref": "#/components/schemas/UnreadCountsResult"
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
},
|
|
613
|
+
"400": {
|
|
614
|
+
"description": "The request names more scopes than the cap allows, repeats a scope name, or omits `q`\non a scope type that requires it. Over-cap requests are refused rather than truncated:\na silently dropped scope renders as a missing badge, which is indistinguishable from\nzero unread.\n"
|
|
615
|
+
},
|
|
616
|
+
"403": {
|
|
617
|
+
"description": "Forbidden"
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
},
|
|
584
622
|
"/v2/message/messages/{id}/unread": {
|
|
585
623
|
"post": {
|
|
586
624
|
"operationId": "markUnreadMessageV2",
|
|
@@ -2657,6 +2695,136 @@
|
|
|
2657
2695
|
}
|
|
2658
2696
|
}
|
|
2659
2697
|
},
|
|
2698
|
+
"UnreadCountScope": {
|
|
2699
|
+
"type": "object",
|
|
2700
|
+
"required": [
|
|
2701
|
+
"name",
|
|
2702
|
+
"type"
|
|
2703
|
+
],
|
|
2704
|
+
"properties": {
|
|
2705
|
+
"name": {
|
|
2706
|
+
"type": "string",
|
|
2707
|
+
"description": "Caller-chosen key for this scope. Echoed back as the key in `counts`, so it is how the\ncaller matches a number to the sidebar row it belongs to. Must be unique within the\nrequest; duplicates are refused rather than silently collapsed.\n",
|
|
2708
|
+
"example": "inbox-support"
|
|
2709
|
+
},
|
|
2710
|
+
"type": {
|
|
2711
|
+
"type": "string",
|
|
2712
|
+
"enum": [
|
|
2713
|
+
"organization",
|
|
2714
|
+
"shared_inbox",
|
|
2715
|
+
"saved_view"
|
|
2716
|
+
],
|
|
2717
|
+
"description": "Decides which buckets come back, and whether `q` is required. `organization` returns all\nfour buckets from the canonical central-inbox queries and takes no `q`. `shared_inbox`\nand `saved_view` return `unread` alone and require the `q` their list uses.\n\nA `shared_inbox` scope additionally requires `actor: organization` and is refused with a\n400 otherwise. A shared inbox is an organization-level construct — selecting one always\nswitches the mailbox to the organization — so it has no per-user read state and the\ncombination would compute a number no surface renders. `saved_view` accepts either actor,\nbecause a view's own configuration names its mailbox.\n"
|
|
2718
|
+
},
|
|
2719
|
+
"q": {
|
|
2720
|
+
"type": "string",
|
|
2721
|
+
"description": "The scope's own list predicate, in Lucene syntax, exactly as the caller passes it to\n`threads:search`. Required for `shared_inbox` and `saved_view`, rejected for\n`organization`. The server ANDs the read-state condition onto it and nothing else, which\nis what makes the count and the list agree. Until the predicate definition moves\nserver-side, this is the caller's authored copy.\n",
|
|
2722
|
+
"example": "_tags.keyword:inbox AND !_tags.keyword:trash"
|
|
2723
|
+
},
|
|
2724
|
+
"inbox_id": {
|
|
2725
|
+
"description": "Shared inbox ids, resolved to bucket ids the same way `threads:search` resolves them.",
|
|
2726
|
+
"oneOf": [
|
|
2727
|
+
{
|
|
2728
|
+
"type": "string",
|
|
2729
|
+
"example": "3f34ce73-089c-4d45-a5ee-c161234e41c3"
|
|
2730
|
+
},
|
|
2731
|
+
{
|
|
2732
|
+
"type": "array",
|
|
2733
|
+
"items": {
|
|
2734
|
+
"type": "string"
|
|
2735
|
+
}
|
|
2736
|
+
}
|
|
2737
|
+
]
|
|
2738
|
+
}
|
|
2739
|
+
}
|
|
2740
|
+
},
|
|
2741
|
+
"UnreadCountsPayload": {
|
|
2742
|
+
"type": "object",
|
|
2743
|
+
"required": [
|
|
2744
|
+
"actor",
|
|
2745
|
+
"scopes"
|
|
2746
|
+
],
|
|
2747
|
+
"properties": {
|
|
2748
|
+
"actor": {
|
|
2749
|
+
"type": "string",
|
|
2750
|
+
"enum": [
|
|
2751
|
+
"organization",
|
|
2752
|
+
"user"
|
|
2753
|
+
],
|
|
2754
|
+
"description": "Which read state to count against — the org's or the calling user's. Same meaning as\n`getUnread`'s path parameter, and unrelated to a scope's `type`.\n"
|
|
2755
|
+
},
|
|
2756
|
+
"email_filter": {
|
|
2757
|
+
"type": "array",
|
|
2758
|
+
"items": {
|
|
2759
|
+
"type": "string"
|
|
2760
|
+
},
|
|
2761
|
+
"description": "Restrict every scope to messages involving these addresses."
|
|
2762
|
+
},
|
|
2763
|
+
"scopes": {
|
|
2764
|
+
"type": "array",
|
|
2765
|
+
"minItems": 1,
|
|
2766
|
+
"maxItems": 25,
|
|
2767
|
+
"items": {
|
|
2768
|
+
"$ref": "#/components/schemas/UnreadCountScope"
|
|
2769
|
+
}
|
|
2770
|
+
}
|
|
2771
|
+
}
|
|
2772
|
+
},
|
|
2773
|
+
"UnreadCountsResult": {
|
|
2774
|
+
"type": "object",
|
|
2775
|
+
"required": [
|
|
2776
|
+
"enabled",
|
|
2777
|
+
"counts"
|
|
2778
|
+
],
|
|
2779
|
+
"properties": {
|
|
2780
|
+
"enabled": {
|
|
2781
|
+
"type": "boolean",
|
|
2782
|
+
"description": "False when the `message-unread-counts` flag is off for the calling org, in which case\n`counts` is empty and no Elasticsearch work was done. Callers render no badges rather\nthan rendering zeroes.\n",
|
|
2783
|
+
"example": true
|
|
2784
|
+
},
|
|
2785
|
+
"counts": {
|
|
2786
|
+
"type": "object",
|
|
2787
|
+
"description": "One entry per scope, keyed by the scope's `name`. A scope whose predicate could not be\nbuilt is **absent** rather than zero, because a zero badge is a claim about the mailbox\nand an absent one is a claim about the request.\n",
|
|
2788
|
+
"additionalProperties": {
|
|
2789
|
+
"$ref": "#/components/schemas/UnreadCountBuckets"
|
|
2790
|
+
}
|
|
2791
|
+
},
|
|
2792
|
+
"omitted": {
|
|
2793
|
+
"type": "array",
|
|
2794
|
+
"description": "Names of scopes that were accepted but could not be counted — today, a shared inbox whose\nids matched no bucket in this org. Listed explicitly so a caller can tell an omission apart\nfrom a mis-spelled scope name, both of which are otherwise just a missing key in `counts`.\n",
|
|
2795
|
+
"items": {
|
|
2796
|
+
"type": "string"
|
|
2797
|
+
}
|
|
2798
|
+
}
|
|
2799
|
+
}
|
|
2800
|
+
},
|
|
2801
|
+
"UnreadCountBuckets": {
|
|
2802
|
+
"type": "object",
|
|
2803
|
+
"required": [
|
|
2804
|
+
"unread"
|
|
2805
|
+
],
|
|
2806
|
+
"properties": {
|
|
2807
|
+
"unread": {
|
|
2808
|
+
"type": "number",
|
|
2809
|
+
"example": 14
|
|
2810
|
+
},
|
|
2811
|
+
"drafts": {
|
|
2812
|
+
"type": "number",
|
|
2813
|
+
"description": "Organization scope only.",
|
|
2814
|
+
"example": 12
|
|
2815
|
+
},
|
|
2816
|
+
"unassigned": {
|
|
2817
|
+
"type": "number",
|
|
2818
|
+
"description": "Organization scope only.",
|
|
2819
|
+
"example": 1
|
|
2820
|
+
},
|
|
2821
|
+
"spam": {
|
|
2822
|
+
"type": "number",
|
|
2823
|
+
"description": "Organization scope only.",
|
|
2824
|
+
"example": 3
|
|
2825
|
+
}
|
|
2826
|
+
}
|
|
2827
|
+
},
|
|
2660
2828
|
"SearchParamsV2": {
|
|
2661
2829
|
"type": "object",
|
|
2662
2830
|
"required": [
|
|
@@ -2923,6 +3091,254 @@
|
|
|
2923
3091
|
}
|
|
2924
3092
|
}
|
|
2925
3093
|
},
|
|
3094
|
+
"WorkflowStartedEvent": {
|
|
3095
|
+
"type": "object",
|
|
3096
|
+
"required": [
|
|
3097
|
+
"type"
|
|
3098
|
+
],
|
|
3099
|
+
"properties": {
|
|
3100
|
+
"type": {
|
|
3101
|
+
"type": "string",
|
|
3102
|
+
"enum": [
|
|
3103
|
+
"WORKFLOW_STARTED"
|
|
3104
|
+
]
|
|
3105
|
+
},
|
|
3106
|
+
"workflow_id": {
|
|
3107
|
+
"type": "string",
|
|
3108
|
+
"description": "ID of the workflow/flow execution that was started"
|
|
3109
|
+
},
|
|
3110
|
+
"workflow_name": {
|
|
3111
|
+
"type": "string",
|
|
3112
|
+
"description": "Name of the workflow that was started"
|
|
3113
|
+
}
|
|
3114
|
+
}
|
|
3115
|
+
},
|
|
3116
|
+
"ThreadUserAssignedEvent": {
|
|
3117
|
+
"type": "object",
|
|
3118
|
+
"required": [
|
|
3119
|
+
"type"
|
|
3120
|
+
],
|
|
3121
|
+
"properties": {
|
|
3122
|
+
"type": {
|
|
3123
|
+
"type": "string",
|
|
3124
|
+
"enum": [
|
|
3125
|
+
"THREAD_USER_ASSIGNED"
|
|
3126
|
+
]
|
|
3127
|
+
},
|
|
3128
|
+
"added": {
|
|
3129
|
+
"type": "array",
|
|
3130
|
+
"description": "User IDs assigned to the thread",
|
|
3131
|
+
"items": {
|
|
3132
|
+
"type": "string"
|
|
3133
|
+
}
|
|
3134
|
+
},
|
|
3135
|
+
"removed": {
|
|
3136
|
+
"type": "array",
|
|
3137
|
+
"description": "User IDs unassigned from the thread",
|
|
3138
|
+
"items": {
|
|
3139
|
+
"type": "string"
|
|
3140
|
+
}
|
|
3141
|
+
}
|
|
3142
|
+
}
|
|
3143
|
+
},
|
|
3144
|
+
"MessageLabelAddedEvent": {
|
|
3145
|
+
"type": "object",
|
|
3146
|
+
"required": [
|
|
3147
|
+
"type",
|
|
3148
|
+
"label"
|
|
3149
|
+
],
|
|
3150
|
+
"properties": {
|
|
3151
|
+
"type": {
|
|
3152
|
+
"type": "string",
|
|
3153
|
+
"enum": [
|
|
3154
|
+
"MESSAGE_LABEL_ADDED"
|
|
3155
|
+
]
|
|
3156
|
+
},
|
|
3157
|
+
"label": {
|
|
3158
|
+
"type": "string",
|
|
3159
|
+
"description": "The label that was added (raw tag slug, e.g. `sentiments:angry`)"
|
|
3160
|
+
},
|
|
3161
|
+
"label_name": {
|
|
3162
|
+
"type": "string",
|
|
3163
|
+
"description": "Resolved taxonomy classification display name (e.g. `Verärgert`), when the label is a classification. Absent for free-form tags."
|
|
3164
|
+
}
|
|
3165
|
+
}
|
|
3166
|
+
},
|
|
3167
|
+
"MessageLabelRemovedEvent": {
|
|
3168
|
+
"type": "object",
|
|
3169
|
+
"required": [
|
|
3170
|
+
"type",
|
|
3171
|
+
"label"
|
|
3172
|
+
],
|
|
3173
|
+
"properties": {
|
|
3174
|
+
"type": {
|
|
3175
|
+
"type": "string",
|
|
3176
|
+
"enum": [
|
|
3177
|
+
"MESSAGE_LABEL_REMOVED"
|
|
3178
|
+
]
|
|
3179
|
+
},
|
|
3180
|
+
"label": {
|
|
3181
|
+
"type": "string",
|
|
3182
|
+
"description": "The label that was removed (raw tag slug, e.g. `sentiments:angry`)"
|
|
3183
|
+
},
|
|
3184
|
+
"label_name": {
|
|
3185
|
+
"type": "string",
|
|
3186
|
+
"description": "Resolved taxonomy classification display name (e.g. `Verärgert`), when the label is a classification. Absent for free-form tags."
|
|
3187
|
+
}
|
|
3188
|
+
}
|
|
3189
|
+
},
|
|
3190
|
+
"MessageEntityLinkedEvent": {
|
|
3191
|
+
"type": "object",
|
|
3192
|
+
"required": [
|
|
3193
|
+
"type"
|
|
3194
|
+
],
|
|
3195
|
+
"properties": {
|
|
3196
|
+
"type": {
|
|
3197
|
+
"type": "string",
|
|
3198
|
+
"enum": [
|
|
3199
|
+
"MESSAGE_ENTITY_LINKED"
|
|
3200
|
+
]
|
|
3201
|
+
},
|
|
3202
|
+
"entities": {
|
|
3203
|
+
"type": "array",
|
|
3204
|
+
"items": {
|
|
3205
|
+
"$ref": "#/components/schemas/TimelineLinkedEntity"
|
|
3206
|
+
}
|
|
3207
|
+
},
|
|
3208
|
+
"link_kind": {
|
|
3209
|
+
"type": "string",
|
|
3210
|
+
"enum": [
|
|
3211
|
+
"manual",
|
|
3212
|
+
"auto"
|
|
3213
|
+
]
|
|
3214
|
+
}
|
|
3215
|
+
}
|
|
3216
|
+
},
|
|
3217
|
+
"MessageEntityUnlinkedEvent": {
|
|
3218
|
+
"type": "object",
|
|
3219
|
+
"required": [
|
|
3220
|
+
"type"
|
|
3221
|
+
],
|
|
3222
|
+
"properties": {
|
|
3223
|
+
"type": {
|
|
3224
|
+
"type": "string",
|
|
3225
|
+
"enum": [
|
|
3226
|
+
"MESSAGE_ENTITY_UNLINKED"
|
|
3227
|
+
]
|
|
3228
|
+
},
|
|
3229
|
+
"entities": {
|
|
3230
|
+
"type": "array",
|
|
3231
|
+
"items": {
|
|
3232
|
+
"$ref": "#/components/schemas/TimelineLinkedEntity"
|
|
3233
|
+
}
|
|
3234
|
+
},
|
|
3235
|
+
"link_kind": {
|
|
3236
|
+
"type": "string",
|
|
3237
|
+
"enum": [
|
|
3238
|
+
"manual",
|
|
3239
|
+
"auto"
|
|
3240
|
+
]
|
|
3241
|
+
}
|
|
3242
|
+
}
|
|
3243
|
+
},
|
|
3244
|
+
"MessageAutoReplySentEvent": {
|
|
3245
|
+
"type": "object",
|
|
3246
|
+
"required": [
|
|
3247
|
+
"type"
|
|
3248
|
+
],
|
|
3249
|
+
"properties": {
|
|
3250
|
+
"type": {
|
|
3251
|
+
"type": "string",
|
|
3252
|
+
"enum": [
|
|
3253
|
+
"MESSAGE_AUTO_REPLY_SENT"
|
|
3254
|
+
]
|
|
3255
|
+
},
|
|
3256
|
+
"reply_message_id": {
|
|
3257
|
+
"type": "string",
|
|
3258
|
+
"description": "ID of the message that was sent as the automatic reply"
|
|
3259
|
+
},
|
|
3260
|
+
"parent_message_id": {
|
|
3261
|
+
"type": "string",
|
|
3262
|
+
"description": "ID of the message the automatic reply responded to"
|
|
3263
|
+
}
|
|
3264
|
+
}
|
|
3265
|
+
},
|
|
3266
|
+
"ThreadMovedToInboxEvent": {
|
|
3267
|
+
"type": "object",
|
|
3268
|
+
"required": [
|
|
3269
|
+
"type"
|
|
3270
|
+
],
|
|
3271
|
+
"properties": {
|
|
3272
|
+
"type": {
|
|
3273
|
+
"type": "string",
|
|
3274
|
+
"enum": [
|
|
3275
|
+
"THREAD_MOVED_TO_INBOX"
|
|
3276
|
+
]
|
|
3277
|
+
},
|
|
3278
|
+
"target_inbox_id": {
|
|
3279
|
+
"type": "string",
|
|
3280
|
+
"description": "ID of the shared inbox the thread was moved to"
|
|
3281
|
+
},
|
|
3282
|
+
"target_inbox_name": {
|
|
3283
|
+
"type": "string",
|
|
3284
|
+
"description": "Name of the shared inbox the thread was moved to"
|
|
3285
|
+
}
|
|
3286
|
+
}
|
|
3287
|
+
},
|
|
3288
|
+
"ThreadTrashedEvent": {
|
|
3289
|
+
"type": "object",
|
|
3290
|
+
"required": [
|
|
3291
|
+
"type"
|
|
3292
|
+
],
|
|
3293
|
+
"properties": {
|
|
3294
|
+
"type": {
|
|
3295
|
+
"type": "string",
|
|
3296
|
+
"enum": [
|
|
3297
|
+
"THREAD_TRASHED"
|
|
3298
|
+
]
|
|
3299
|
+
}
|
|
3300
|
+
}
|
|
3301
|
+
},
|
|
3302
|
+
"ThreadRestoredEvent": {
|
|
3303
|
+
"type": "object",
|
|
3304
|
+
"required": [
|
|
3305
|
+
"type"
|
|
3306
|
+
],
|
|
3307
|
+
"properties": {
|
|
3308
|
+
"type": {
|
|
3309
|
+
"type": "string",
|
|
3310
|
+
"enum": [
|
|
3311
|
+
"THREAD_RESTORED"
|
|
3312
|
+
]
|
|
3313
|
+
}
|
|
3314
|
+
}
|
|
3315
|
+
},
|
|
3316
|
+
"TimelineLinkedEntity": {
|
|
3317
|
+
"type": "object",
|
|
3318
|
+
"required": [
|
|
3319
|
+
"entity_id"
|
|
3320
|
+
],
|
|
3321
|
+
"properties": {
|
|
3322
|
+
"entity_id": {
|
|
3323
|
+
"type": "string"
|
|
3324
|
+
},
|
|
3325
|
+
"schema": {
|
|
3326
|
+
"type": "string",
|
|
3327
|
+
"description": "Entity schema slug, e.g. \"opportunity\""
|
|
3328
|
+
}
|
|
3329
|
+
}
|
|
3330
|
+
},
|
|
3331
|
+
"TimelineActor": {
|
|
3332
|
+
"type": "object",
|
|
3333
|
+
"properties": {
|
|
3334
|
+
"user_id": {
|
|
3335
|
+
"type": "string"
|
|
3336
|
+
},
|
|
3337
|
+
"email": {
|
|
3338
|
+
"type": "string"
|
|
3339
|
+
}
|
|
3340
|
+
}
|
|
3341
|
+
},
|
|
2926
3342
|
"TimelineEventData": {
|
|
2927
3343
|
"type": "object",
|
|
2928
3344
|
"discriminator": {
|
|
@@ -2934,6 +3350,36 @@
|
|
|
2934
3350
|
},
|
|
2935
3351
|
{
|
|
2936
3352
|
"$ref": "#/components/schemas/ThreadOpenEvent"
|
|
3353
|
+
},
|
|
3354
|
+
{
|
|
3355
|
+
"$ref": "#/components/schemas/WorkflowStartedEvent"
|
|
3356
|
+
},
|
|
3357
|
+
{
|
|
3358
|
+
"$ref": "#/components/schemas/ThreadUserAssignedEvent"
|
|
3359
|
+
},
|
|
3360
|
+
{
|
|
3361
|
+
"$ref": "#/components/schemas/MessageLabelAddedEvent"
|
|
3362
|
+
},
|
|
3363
|
+
{
|
|
3364
|
+
"$ref": "#/components/schemas/MessageLabelRemovedEvent"
|
|
3365
|
+
},
|
|
3366
|
+
{
|
|
3367
|
+
"$ref": "#/components/schemas/MessageEntityLinkedEvent"
|
|
3368
|
+
},
|
|
3369
|
+
{
|
|
3370
|
+
"$ref": "#/components/schemas/MessageEntityUnlinkedEvent"
|
|
3371
|
+
},
|
|
3372
|
+
{
|
|
3373
|
+
"$ref": "#/components/schemas/MessageAutoReplySentEvent"
|
|
3374
|
+
},
|
|
3375
|
+
{
|
|
3376
|
+
"$ref": "#/components/schemas/ThreadMovedToInboxEvent"
|
|
3377
|
+
},
|
|
3378
|
+
{
|
|
3379
|
+
"$ref": "#/components/schemas/ThreadTrashedEvent"
|
|
3380
|
+
},
|
|
3381
|
+
{
|
|
3382
|
+
"$ref": "#/components/schemas/ThreadRestoredEvent"
|
|
2937
3383
|
}
|
|
2938
3384
|
]
|
|
2939
3385
|
},
|
|
@@ -2944,13 +3390,47 @@
|
|
|
2944
3390
|
"data"
|
|
2945
3391
|
],
|
|
2946
3392
|
"properties": {
|
|
3393
|
+
"id": {
|
|
3394
|
+
"type": "string",
|
|
3395
|
+
"description": "Activity id (ActivityItem._id), for deep-linking to the item in the activity feed"
|
|
3396
|
+
},
|
|
2947
3397
|
"data": {
|
|
2948
3398
|
"$ref": "#/components/schemas/TimelineEventData"
|
|
2949
3399
|
},
|
|
2950
3400
|
"timestamp": {
|
|
2951
3401
|
"type": "string",
|
|
2952
3402
|
"description": "Timestamp of the event",
|
|
2953
|
-
"example": "2024-01-01T00:00:
|
|
3403
|
+
"example": "2024-01-01T00:00:00Z"
|
|
3404
|
+
},
|
|
3405
|
+
"message_id": {
|
|
3406
|
+
"type": "string",
|
|
3407
|
+
"description": "For message-level events, the message the activity is anchored to"
|
|
3408
|
+
},
|
|
3409
|
+
"source": {
|
|
3410
|
+
"type": "string",
|
|
3411
|
+
"enum": [
|
|
3412
|
+
"user",
|
|
3413
|
+
"automation",
|
|
3414
|
+
"system"
|
|
3415
|
+
]
|
|
3416
|
+
},
|
|
3417
|
+
"automated": {
|
|
3418
|
+
"type": "boolean",
|
|
3419
|
+
"description": "Whether the activity was performed automatically (automation/system)"
|
|
3420
|
+
},
|
|
3421
|
+
"actor": {
|
|
3422
|
+
"$ref": "#/components/schemas/TimelineActor"
|
|
3423
|
+
},
|
|
3424
|
+
"automation": {
|
|
3425
|
+
"type": "object",
|
|
3426
|
+
"properties": {
|
|
3427
|
+
"id": {
|
|
3428
|
+
"type": "string"
|
|
3429
|
+
},
|
|
3430
|
+
"name": {
|
|
3431
|
+
"type": "string"
|
|
3432
|
+
}
|
|
3433
|
+
}
|
|
2954
3434
|
}
|
|
2955
3435
|
}
|
|
2956
3436
|
},
|
package/dist/bin/epilot.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
API_LIST
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-PKLYEJHD.js";
|
|
5
5
|
|
|
6
6
|
// bin/epilot.ts
|
|
7
7
|
import { runMain } from "citty";
|
|
@@ -11,7 +11,7 @@ import { defineCommand } from "citty";
|
|
|
11
11
|
var main = defineCommand({
|
|
12
12
|
meta: {
|
|
13
13
|
name: "epilot",
|
|
14
|
-
version: "0.1.
|
|
14
|
+
version: "0.1.113",
|
|
15
15
|
description: "CLI for epilot APIs"
|
|
16
16
|
},
|
|
17
17
|
args: {
|
|
@@ -30,8 +30,8 @@ var main = defineCommand({
|
|
|
30
30
|
auth: () => import("../auth-WMXFMPWE.js").then((m) => m.default),
|
|
31
31
|
profile: () => import("../profile-OZJL5ZPT.js").then((m) => m.default),
|
|
32
32
|
config: () => import("../config-DGZIMLZK.js").then((m) => m.default),
|
|
33
|
-
completion: () => import("../completion-
|
|
34
|
-
upgrade: () => import("../upgrade-
|
|
33
|
+
completion: () => import("../completion-YY2UW6SA.js").then((m) => m.default),
|
|
34
|
+
upgrade: () => import("../upgrade-KXJE4GVJ.js").then((m) => m.default),
|
|
35
35
|
"access-token": () => import("../access-token-WWE6BDJH.js").then((m) => m.default),
|
|
36
36
|
address: () => import("../address-EH3C4CVB.js").then((m) => m.default),
|
|
37
37
|
"address-suggestions": () => import("../address-suggestions-RRSLOBFW.js").then((m) => m.default),
|
|
@@ -134,13 +134,13 @@ process.stderr.on("error", (err) => {
|
|
|
134
134
|
if (err.code === "EPIPE") process.exit(0);
|
|
135
135
|
throw err;
|
|
136
136
|
});
|
|
137
|
-
var VERSION = true ? "0.1.
|
|
137
|
+
var VERSION = true ? "0.1.113" : (await null).default.version;
|
|
138
138
|
var reorderedArgv = hoistFlagsAfterSubcommand(process.argv.slice(2));
|
|
139
139
|
process.argv = [process.argv[0], process.argv[1], ...reorderedArgv];
|
|
140
140
|
var args = process.argv.slice(2);
|
|
141
141
|
var completionsIdx = args.indexOf("--_completions");
|
|
142
142
|
if (completionsIdx >= 0) {
|
|
143
|
-
const { handleCompletions } = await import("../completion-
|
|
143
|
+
const { handleCompletions } = await import("../completion-YY2UW6SA.js");
|
|
144
144
|
handleCompletions(args[completionsIdx + 1], args[completionsIdx + 2]);
|
|
145
145
|
process.exit(0);
|
|
146
146
|
}
|
|
@@ -290,19 +290,29 @@ var API_LIST = [
|
|
|
290
290
|
kebabName: "configuration-hub",
|
|
291
291
|
title: "Configuration Hub API",
|
|
292
292
|
serverUrl: "https://configuration-hub.sls.epilot.io",
|
|
293
|
-
operationCount:
|
|
293
|
+
operationCount: 21,
|
|
294
294
|
operationIds: [
|
|
295
295
|
"listConfigTypes",
|
|
296
296
|
"listConfigs",
|
|
297
297
|
"getConfigDependencies",
|
|
298
298
|
"getConfigUsedBy",
|
|
299
299
|
"getIndex",
|
|
300
|
+
"compareConfigs",
|
|
301
|
+
"suggestMatches",
|
|
302
|
+
"confirmLineage",
|
|
303
|
+
"breakLineage",
|
|
300
304
|
"listSyncJobs",
|
|
301
305
|
"createSyncJob",
|
|
302
306
|
"getSyncJob",
|
|
303
307
|
"retrySyncJob",
|
|
308
|
+
"cancelSyncJob",
|
|
304
309
|
"listSyncJobResources",
|
|
305
|
-
"
|
|
310
|
+
"listDeleteJobs",
|
|
311
|
+
"createDeleteJob",
|
|
312
|
+
"getDeleteJob",
|
|
313
|
+
"listDeleteJobResources",
|
|
314
|
+
"rebuildIndex",
|
|
315
|
+
"getConfigInventory"
|
|
306
316
|
]
|
|
307
317
|
},
|
|
308
318
|
{
|
|
@@ -864,7 +874,7 @@ var API_LIST = [
|
|
|
864
874
|
kebabName: "integration-toolkit",
|
|
865
875
|
title: "Integration Toolkit API",
|
|
866
876
|
serverUrl: "https://integration-toolkit.sls.epilot.io",
|
|
867
|
-
operationCount:
|
|
877
|
+
operationCount: 68,
|
|
868
878
|
operationIds: [
|
|
869
879
|
"acknowledgeTracking",
|
|
870
880
|
"triggerErp",
|
|
@@ -886,6 +896,10 @@ var API_LIST = [
|
|
|
886
896
|
"updateUseCase",
|
|
887
897
|
"deleteUseCase",
|
|
888
898
|
"listUseCaseHistory",
|
|
899
|
+
"listDocumentationPages",
|
|
900
|
+
"getDocumentationPage",
|
|
901
|
+
"upsertDocumentationPage",
|
|
902
|
+
"deleteDocumentationPage",
|
|
889
903
|
"listIntegrationsV2",
|
|
890
904
|
"createIntegrationV2",
|
|
891
905
|
"getIntegrationV2",
|
|
@@ -925,6 +939,7 @@ var API_LIST = [
|
|
|
925
939
|
"listErpImports",
|
|
926
940
|
"createErpImport",
|
|
927
941
|
"getErpImport",
|
|
942
|
+
"deleteErpImport",
|
|
928
943
|
"validateErpImport",
|
|
929
944
|
"suggestErpImportUseCases",
|
|
930
945
|
"executeErpImport",
|
|
@@ -980,7 +995,7 @@ var API_LIST = [
|
|
|
980
995
|
kebabName: "message",
|
|
981
996
|
title: "Message API",
|
|
982
997
|
serverUrl: "https://message.sls.epilot.io",
|
|
983
|
-
operationCount:
|
|
998
|
+
operationCount: 54,
|
|
984
999
|
operationIds: [
|
|
985
1000
|
"sendMessage",
|
|
986
1001
|
"updateMessage",
|
|
@@ -994,6 +1009,7 @@ var API_LIST = [
|
|
|
994
1009
|
"markReadMessageV2",
|
|
995
1010
|
"markUnreadMessage",
|
|
996
1011
|
"getUnread",
|
|
1012
|
+
"getUnreadCounts",
|
|
997
1013
|
"markUnreadMessageV2",
|
|
998
1014
|
"searchThreads",
|
|
999
1015
|
"searchThreadsV2",
|
|
@@ -72,7 +72,7 @@ ${GREEN}${BOLD}Upgraded to @epilot/cli@${latest}${RESET}
|
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
74
|
var getCurrentVersion = () => {
|
|
75
|
-
if (true) return "0.1.
|
|
75
|
+
if (true) return "0.1.113";
|
|
76
76
|
try {
|
|
77
77
|
const output = execSync("npm ls -g @epilot/cli --depth=0 --json 2>/dev/null", {
|
|
78
78
|
encoding: "utf-8",
|