terse-types 0.0.18 → 0.0.20
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/ApiRouteBuilder.d.ts +1 -0
- package/dist/ApiRoutes.json +1 -0
- package/dist/Integrations.d.ts +17 -0
- package/dist/Integrations.js +13 -1
- package/dist/SandboxTypes.d.ts +15 -0
- package/dist/SandboxTypes.js +1 -0
- package/dist/TriggerEventPresenters.d.ts +3 -0
- package/dist/TriggerEventPresenters.js +238 -0
- package/dist/TriggerEvents.d.ts +4054 -0
- package/dist/TriggerEvents.js +437 -0
- package/dist/TriggerPresenters.d.ts +5 -0
- package/dist/TriggerPresenters.js +156 -8
- package/dist/Triggers.d.ts +10 -0
- package/dist/Triggers.js +9 -1
- package/dist/json-schema/terse-types.schema.json +66 -234
- package/dist/types.d.ts +20 -0
- package/dist/types.js +8 -1
- package/package.json +1 -1
package/dist/Triggers.js
CHANGED
|
@@ -2,7 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
import { GitHubEventType, WorkOSEventType, frequencyUnitSchema, gitHubEventTypeSchema, gmailEventTypeSchema, linearEventTypeSchema, slackEventTypeSchema, workOSEventTypeSchema } from "./Configs.js";
|
|
3
3
|
import { IntegrationType, integrationTypeEnum } from "./Integrations.js";
|
|
4
4
|
import { SlackChannelType } from "./SlackTypes.js";
|
|
5
|
-
import { debugTrigger as debugTriggerWithPresenter, formatTriggerForAgent as formatTriggerForAgentWithPresenter } from "./TriggerPresenters.js";
|
|
5
|
+
import { debugTrigger as debugTriggerWithPresenter, displayTrigger as displayTriggerWithPresenter, formatTriggerForAgent as formatTriggerForAgentWithPresenter } from "./TriggerPresenters.js";
|
|
6
6
|
const providerTriggerTypeSchema = z.union([slackEventTypeSchema, gitHubEventTypeSchema, linearEventTypeSchema, gmailEventTypeSchema, workOSEventTypeSchema]);
|
|
7
7
|
const TriggerHeaderSchema = z.object({
|
|
8
8
|
integrationType: integrationTypeEnum,
|
|
@@ -474,11 +474,19 @@ export function formatTriggerForAgent(event) {
|
|
|
474
474
|
export function debugTrigger(event) {
|
|
475
475
|
return debugTriggerWithPresenter(event);
|
|
476
476
|
}
|
|
477
|
+
export function displayTrigger(event) {
|
|
478
|
+
return displayTriggerWithPresenter(event);
|
|
479
|
+
}
|
|
477
480
|
export const TriggerArraySchema = z.array(TriggerSchema);
|
|
481
|
+
export const serializedEventDisplaySchema = z.object({
|
|
482
|
+
title: z.string(),
|
|
483
|
+
subtitle: z.string()
|
|
484
|
+
});
|
|
478
485
|
export const serializedEventSchema = z.object({
|
|
479
486
|
integrationType: integrationTypeEnum,
|
|
480
487
|
eventType: TriggerTypeSchema,
|
|
481
488
|
formattedContent: z.string(),
|
|
482
489
|
debugLog: z.string(),
|
|
490
|
+
display: serializedEventDisplaySchema.optional(),
|
|
483
491
|
data: TriggerSchema
|
|
484
492
|
});
|
|
@@ -1813,7 +1813,13 @@
|
|
|
1813
1813
|
"eventType": {
|
|
1814
1814
|
"$ref": "#/$defs/WebhookTriggerType"
|
|
1815
1815
|
},
|
|
1816
|
-
"body": {
|
|
1816
|
+
"body": {
|
|
1817
|
+
"type": "object",
|
|
1818
|
+
"propertyNames": {
|
|
1819
|
+
"type": "string"
|
|
1820
|
+
},
|
|
1821
|
+
"additionalProperties": {}
|
|
1822
|
+
},
|
|
1817
1823
|
"headers": {
|
|
1818
1824
|
"type": "object",
|
|
1819
1825
|
"propertyNames": {
|
|
@@ -3600,15 +3606,8 @@
|
|
|
3600
3606
|
"text": {
|
|
3601
3607
|
"type": "string"
|
|
3602
3608
|
},
|
|
3603
|
-
"
|
|
3604
|
-
"
|
|
3605
|
-
{
|
|
3606
|
-
"type": "string"
|
|
3607
|
-
},
|
|
3608
|
-
{
|
|
3609
|
-
"type": "null"
|
|
3610
|
-
}
|
|
3611
|
-
]
|
|
3609
|
+
"jobUrl": {
|
|
3610
|
+
"type": "string"
|
|
3612
3611
|
}
|
|
3613
3612
|
},
|
|
3614
3613
|
"required": [
|
|
@@ -3757,72 +3756,6 @@
|
|
|
3757
3756
|
],
|
|
3758
3757
|
"additionalProperties": false
|
|
3759
3758
|
},
|
|
3760
|
-
"AgentFileContentResponse": {
|
|
3761
|
-
"type": "object",
|
|
3762
|
-
"properties": {
|
|
3763
|
-
"path": {
|
|
3764
|
-
"type": "string"
|
|
3765
|
-
},
|
|
3766
|
-
"fileName": {
|
|
3767
|
-
"type": "string"
|
|
3768
|
-
},
|
|
3769
|
-
"contentBase64": {
|
|
3770
|
-
"type": "string"
|
|
3771
|
-
},
|
|
3772
|
-
"mimeType": {
|
|
3773
|
-
"type": "string"
|
|
3774
|
-
}
|
|
3775
|
-
},
|
|
3776
|
-
"required": [
|
|
3777
|
-
"path",
|
|
3778
|
-
"fileName",
|
|
3779
|
-
"contentBase64"
|
|
3780
|
-
],
|
|
3781
|
-
"additionalProperties": false
|
|
3782
|
-
},
|
|
3783
|
-
"AgentFilesResponse": {
|
|
3784
|
-
"type": "object",
|
|
3785
|
-
"properties": {
|
|
3786
|
-
"id": {
|
|
3787
|
-
"type": "string"
|
|
3788
|
-
},
|
|
3789
|
-
"files": {
|
|
3790
|
-
"type": "array",
|
|
3791
|
-
"items": {
|
|
3792
|
-
"$ref": "#/$defs/__schema0"
|
|
3793
|
-
}
|
|
3794
|
-
}
|
|
3795
|
-
},
|
|
3796
|
-
"required": [
|
|
3797
|
-
"id",
|
|
3798
|
-
"files"
|
|
3799
|
-
],
|
|
3800
|
-
"additionalProperties": false,
|
|
3801
|
-
"$defs": {
|
|
3802
|
-
"__schema0": {
|
|
3803
|
-
"type": "object",
|
|
3804
|
-
"properties": {
|
|
3805
|
-
"id": {
|
|
3806
|
-
"type": "string"
|
|
3807
|
-
},
|
|
3808
|
-
"name": {
|
|
3809
|
-
"type": "string"
|
|
3810
|
-
},
|
|
3811
|
-
"children": {
|
|
3812
|
-
"type": "array",
|
|
3813
|
-
"items": {
|
|
3814
|
-
"$ref": "#/$defs/__schema0"
|
|
3815
|
-
}
|
|
3816
|
-
}
|
|
3817
|
-
},
|
|
3818
|
-
"required": [
|
|
3819
|
-
"id",
|
|
3820
|
-
"name"
|
|
3821
|
-
],
|
|
3822
|
-
"additionalProperties": false
|
|
3823
|
-
}
|
|
3824
|
-
}
|
|
3825
|
-
},
|
|
3826
3759
|
"AgentIdParams": {
|
|
3827
3760
|
"type": "object",
|
|
3828
3761
|
"properties": {
|
|
@@ -5104,9 +5037,6 @@
|
|
|
5104
5037
|
"type": "string",
|
|
5105
5038
|
"const": "Cancelled"
|
|
5106
5039
|
},
|
|
5107
|
-
"id": {
|
|
5108
|
-
"type": "string"
|
|
5109
|
-
},
|
|
5110
5040
|
"reason": {
|
|
5111
5041
|
"type": "string"
|
|
5112
5042
|
},
|
|
@@ -5929,9 +5859,6 @@
|
|
|
5929
5859
|
"type": "string",
|
|
5930
5860
|
"const": "FilterResult"
|
|
5931
5861
|
},
|
|
5932
|
-
"id": {
|
|
5933
|
-
"type": "string"
|
|
5934
|
-
},
|
|
5935
5862
|
"timestamp": {
|
|
5936
5863
|
"type": "number"
|
|
5937
5864
|
}
|
|
@@ -10073,9 +10000,6 @@
|
|
|
10073
10000
|
"type": "string",
|
|
10074
10001
|
"const": "Snippet"
|
|
10075
10002
|
},
|
|
10076
|
-
"id": {
|
|
10077
|
-
"type": "string"
|
|
10078
|
-
},
|
|
10079
10003
|
"timestamp": {
|
|
10080
10004
|
"type": "number"
|
|
10081
10005
|
},
|
|
@@ -10090,42 +10014,6 @@
|
|
|
10090
10014
|
],
|
|
10091
10015
|
"additionalProperties": false
|
|
10092
10016
|
},
|
|
10093
|
-
"ProcessOutput": {
|
|
10094
|
-
"type": "object",
|
|
10095
|
-
"properties": {
|
|
10096
|
-
"type": {
|
|
10097
|
-
"type": "string",
|
|
10098
|
-
"const": "ProcessOutput"
|
|
10099
|
-
},
|
|
10100
|
-
"id": {
|
|
10101
|
-
"type": "string"
|
|
10102
|
-
},
|
|
10103
|
-
"stream": {
|
|
10104
|
-
"type": "string",
|
|
10105
|
-
"enum": [
|
|
10106
|
-
"stdout",
|
|
10107
|
-
"stderr"
|
|
10108
|
-
]
|
|
10109
|
-
},
|
|
10110
|
-
"content": {
|
|
10111
|
-
"type": "string"
|
|
10112
|
-
},
|
|
10113
|
-
"label": {
|
|
10114
|
-
"type": "string"
|
|
10115
|
-
},
|
|
10116
|
-
"timestamp": {
|
|
10117
|
-
"type": "number"
|
|
10118
|
-
}
|
|
10119
|
-
},
|
|
10120
|
-
"required": [
|
|
10121
|
-
"type",
|
|
10122
|
-
"stream",
|
|
10123
|
-
"content",
|
|
10124
|
-
"label",
|
|
10125
|
-
"timestamp"
|
|
10126
|
-
],
|
|
10127
|
-
"additionalProperties": false
|
|
10128
|
-
},
|
|
10129
10017
|
"Thinking": {
|
|
10130
10018
|
"type": "object",
|
|
10131
10019
|
"properties": {
|
|
@@ -10136,9 +10024,6 @@
|
|
|
10136
10024
|
"type": "string",
|
|
10137
10025
|
"const": "Thinking"
|
|
10138
10026
|
},
|
|
10139
|
-
"id": {
|
|
10140
|
-
"type": "string"
|
|
10141
|
-
},
|
|
10142
10027
|
"timestamp": {
|
|
10143
10028
|
"type": "number"
|
|
10144
10029
|
}
|
|
@@ -10157,9 +10042,6 @@
|
|
|
10157
10042
|
"type": "string",
|
|
10158
10043
|
"const": "UserMessage"
|
|
10159
10044
|
},
|
|
10160
|
-
"id": {
|
|
10161
|
-
"type": "string"
|
|
10162
|
-
},
|
|
10163
10045
|
"message": {
|
|
10164
10046
|
"type": "string"
|
|
10165
10047
|
},
|
|
@@ -10192,9 +10074,6 @@
|
|
|
10192
10074
|
"type": "string",
|
|
10193
10075
|
"const": "NaturalStop"
|
|
10194
10076
|
},
|
|
10195
|
-
"id": {
|
|
10196
|
-
"type": "string"
|
|
10197
|
-
},
|
|
10198
10077
|
"timestamp": {
|
|
10199
10078
|
"type": "number"
|
|
10200
10079
|
}
|
|
@@ -10213,9 +10092,6 @@
|
|
|
10213
10092
|
"type": "string",
|
|
10214
10093
|
"const": "RunError"
|
|
10215
10094
|
},
|
|
10216
|
-
"id": {
|
|
10217
|
-
"type": "string"
|
|
10218
|
-
},
|
|
10219
10095
|
"error": {
|
|
10220
10096
|
"type": "string"
|
|
10221
10097
|
},
|
|
@@ -10246,9 +10122,6 @@
|
|
|
10246
10122
|
"type": "string",
|
|
10247
10123
|
"const": "TextDelta"
|
|
10248
10124
|
},
|
|
10249
|
-
"id": {
|
|
10250
|
-
"type": "string"
|
|
10251
|
-
},
|
|
10252
10125
|
"timestamp": {
|
|
10253
10126
|
"type": "number"
|
|
10254
10127
|
}
|
|
@@ -10299,9 +10172,6 @@
|
|
|
10299
10172
|
"type": "string",
|
|
10300
10173
|
"const": "ToolCallComplete"
|
|
10301
10174
|
},
|
|
10302
|
-
"id": {
|
|
10303
|
-
"type": "string"
|
|
10304
|
-
},
|
|
10305
10175
|
"changed_items": {
|
|
10306
10176
|
"type": "array",
|
|
10307
10177
|
"items": {
|
|
@@ -10345,9 +10215,6 @@
|
|
|
10345
10215
|
"type": "string",
|
|
10346
10216
|
"const": "ToolCall"
|
|
10347
10217
|
},
|
|
10348
|
-
"id": {
|
|
10349
|
-
"type": "string"
|
|
10350
|
-
},
|
|
10351
10218
|
"parameters": {
|
|
10352
10219
|
"type": "string"
|
|
10353
10220
|
},
|
|
@@ -10381,9 +10248,6 @@
|
|
|
10381
10248
|
"type": "string",
|
|
10382
10249
|
"const": "ToolCallGenerating"
|
|
10383
10250
|
},
|
|
10384
|
-
"id": {
|
|
10385
|
-
"type": "string"
|
|
10386
|
-
},
|
|
10387
10251
|
"timestamp": {
|
|
10388
10252
|
"type": "number"
|
|
10389
10253
|
}
|
|
@@ -10406,9 +10270,6 @@
|
|
|
10406
10270
|
"type": "string",
|
|
10407
10271
|
"const": "ToolApprovalRequest"
|
|
10408
10272
|
},
|
|
10409
|
-
"id": {
|
|
10410
|
-
"type": "string"
|
|
10411
|
-
},
|
|
10412
10273
|
"name": {
|
|
10413
10274
|
"type": "string"
|
|
10414
10275
|
},
|
|
@@ -10438,9 +10299,6 @@
|
|
|
10438
10299
|
"type": "string",
|
|
10439
10300
|
"const": "ToolApprovalResponse"
|
|
10440
10301
|
},
|
|
10441
|
-
"id": {
|
|
10442
|
-
"type": "string"
|
|
10443
|
-
},
|
|
10444
10302
|
"approved": {
|
|
10445
10303
|
"type": "boolean"
|
|
10446
10304
|
},
|
|
@@ -10499,9 +10357,6 @@
|
|
|
10499
10357
|
},
|
|
10500
10358
|
{
|
|
10501
10359
|
"$ref": "#/$defs/ModelEventChatSnippet"
|
|
10502
|
-
},
|
|
10503
|
-
{
|
|
10504
|
-
"$ref": "#/$defs/ProcessOutput"
|
|
10505
10360
|
}
|
|
10506
10361
|
]
|
|
10507
10362
|
},
|
|
@@ -10512,9 +10367,6 @@
|
|
|
10512
10367
|
"type": "string",
|
|
10513
10368
|
"const": "SendModelRequest"
|
|
10514
10369
|
},
|
|
10515
|
-
"id": {
|
|
10516
|
-
"type": "string"
|
|
10517
|
-
},
|
|
10518
10370
|
"user_message": {
|
|
10519
10371
|
"type": "string"
|
|
10520
10372
|
},
|
|
@@ -12911,8 +12763,8 @@
|
|
|
12911
12763
|
"prompt": {
|
|
12912
12764
|
"type": "string"
|
|
12913
12765
|
},
|
|
12914
|
-
"
|
|
12915
|
-
"
|
|
12766
|
+
"event": {
|
|
12767
|
+
"$ref": "#/$defs/Trigger"
|
|
12916
12768
|
},
|
|
12917
12769
|
"skills": {
|
|
12918
12770
|
"type": "array",
|
|
@@ -12930,9 +12782,6 @@
|
|
|
12930
12782
|
}
|
|
12931
12783
|
}
|
|
12932
12784
|
},
|
|
12933
|
-
"required": [
|
|
12934
|
-
"message"
|
|
12935
|
-
],
|
|
12936
12785
|
"additionalProperties": false
|
|
12937
12786
|
},
|
|
12938
12787
|
"SdkAgentRunResponseContract": {
|
|
@@ -13174,11 +13023,25 @@
|
|
|
13174
13023
|
"items": {
|
|
13175
13024
|
"$ref": "#/$defs/TriggerConfigData"
|
|
13176
13025
|
}
|
|
13026
|
+
},
|
|
13027
|
+
"outputs": {
|
|
13028
|
+
"type": "array",
|
|
13029
|
+
"items": {
|
|
13030
|
+
"$ref": "#/$defs/SkillConfigData"
|
|
13031
|
+
}
|
|
13032
|
+
},
|
|
13033
|
+
"toolApprovals": {
|
|
13034
|
+
"type": "array",
|
|
13035
|
+
"items": {
|
|
13036
|
+
"type": "string"
|
|
13037
|
+
}
|
|
13177
13038
|
}
|
|
13178
13039
|
},
|
|
13179
13040
|
"required": [
|
|
13180
13041
|
"jobName",
|
|
13181
|
-
"triggers"
|
|
13042
|
+
"triggers",
|
|
13043
|
+
"outputs",
|
|
13044
|
+
"toolApprovals"
|
|
13182
13045
|
],
|
|
13183
13046
|
"additionalProperties": false
|
|
13184
13047
|
},
|
|
@@ -13207,7 +13070,7 @@
|
|
|
13207
13070
|
"$ref": "#/$defs/SdkDeployJob"
|
|
13208
13071
|
}
|
|
13209
13072
|
},
|
|
13210
|
-
"
|
|
13073
|
+
"jobUrl": {
|
|
13211
13074
|
"type": "string"
|
|
13212
13075
|
},
|
|
13213
13076
|
"sourceZipBase64": {
|
|
@@ -13231,9 +13094,6 @@
|
|
|
13231
13094
|
"isUpdate": {
|
|
13232
13095
|
"type": "boolean"
|
|
13233
13096
|
},
|
|
13234
|
-
"signingSecret": {
|
|
13235
|
-
"type": "string"
|
|
13236
|
-
},
|
|
13237
13097
|
"triggers": {
|
|
13238
13098
|
"type": "array",
|
|
13239
13099
|
"items": {
|
|
@@ -13298,8 +13158,8 @@
|
|
|
13298
13158
|
"http",
|
|
13299
13159
|
"json",
|
|
13300
13160
|
"response_schema",
|
|
13301
|
-
"
|
|
13302
|
-
"
|
|
13161
|
+
"token",
|
|
13162
|
+
"org"
|
|
13303
13163
|
]
|
|
13304
13164
|
},
|
|
13305
13165
|
"SdkJobServerCheckResponse": {
|
|
@@ -13327,46 +13187,6 @@
|
|
|
13327
13187
|
],
|
|
13328
13188
|
"additionalProperties": false
|
|
13329
13189
|
},
|
|
13330
|
-
"SerializedEvent": {
|
|
13331
|
-
"type": "object",
|
|
13332
|
-
"properties": {
|
|
13333
|
-
"integrationType": {
|
|
13334
|
-
"$ref": "#/$defs/IntegrationTypeEnum"
|
|
13335
|
-
},
|
|
13336
|
-
"eventType": {
|
|
13337
|
-
"$ref": "#/$defs/TriggerType"
|
|
13338
|
-
},
|
|
13339
|
-
"formattedContent": {
|
|
13340
|
-
"type": "string"
|
|
13341
|
-
},
|
|
13342
|
-
"debugLog": {
|
|
13343
|
-
"type": "string"
|
|
13344
|
-
},
|
|
13345
|
-
"data": {
|
|
13346
|
-
"$ref": "#/$defs/Trigger"
|
|
13347
|
-
}
|
|
13348
|
-
},
|
|
13349
|
-
"required": [
|
|
13350
|
-
"integrationType",
|
|
13351
|
-
"eventType",
|
|
13352
|
-
"formattedContent",
|
|
13353
|
-
"debugLog",
|
|
13354
|
-
"data"
|
|
13355
|
-
],
|
|
13356
|
-
"additionalProperties": false
|
|
13357
|
-
},
|
|
13358
|
-
"SdkRunTriggerEventResponse": {
|
|
13359
|
-
"type": "object",
|
|
13360
|
-
"properties": {
|
|
13361
|
-
"event": {
|
|
13362
|
-
"$ref": "#/$defs/SerializedEvent"
|
|
13363
|
-
}
|
|
13364
|
-
},
|
|
13365
|
-
"required": [
|
|
13366
|
-
"event"
|
|
13367
|
-
],
|
|
13368
|
-
"additionalProperties": false
|
|
13369
|
-
},
|
|
13370
13190
|
"SdkSampleEventsRequest": {
|
|
13371
13191
|
"type": "object",
|
|
13372
13192
|
"properties": {
|
|
@@ -14367,6 +14187,34 @@
|
|
|
14367
14187
|
],
|
|
14368
14188
|
"additionalProperties": false
|
|
14369
14189
|
},
|
|
14190
|
+
"SerializedEvent": {
|
|
14191
|
+
"type": "object",
|
|
14192
|
+
"properties": {
|
|
14193
|
+
"integrationType": {
|
|
14194
|
+
"$ref": "#/$defs/IntegrationTypeEnum"
|
|
14195
|
+
},
|
|
14196
|
+
"eventType": {
|
|
14197
|
+
"$ref": "#/$defs/TriggerType"
|
|
14198
|
+
},
|
|
14199
|
+
"formattedContent": {
|
|
14200
|
+
"type": "string"
|
|
14201
|
+
},
|
|
14202
|
+
"debugLog": {
|
|
14203
|
+
"type": "string"
|
|
14204
|
+
},
|
|
14205
|
+
"data": {
|
|
14206
|
+
"$ref": "#/$defs/Trigger"
|
|
14207
|
+
}
|
|
14208
|
+
},
|
|
14209
|
+
"required": [
|
|
14210
|
+
"integrationType",
|
|
14211
|
+
"eventType",
|
|
14212
|
+
"formattedContent",
|
|
14213
|
+
"debugLog",
|
|
14214
|
+
"data"
|
|
14215
|
+
],
|
|
14216
|
+
"additionalProperties": false
|
|
14217
|
+
},
|
|
14370
14218
|
"SlackChannelListItem": {
|
|
14371
14219
|
"type": "object",
|
|
14372
14220
|
"properties": {
|
|
@@ -15832,39 +15680,16 @@
|
|
|
15832
15680
|
"WebhookJobChallengeRequest": {
|
|
15833
15681
|
"type": "object",
|
|
15834
15682
|
"properties": {
|
|
15835
|
-
"type": {
|
|
15836
|
-
"type": "string",
|
|
15837
|
-
"const": "challenge"
|
|
15838
|
-
},
|
|
15839
15683
|
"challenge": {
|
|
15840
|
-
"type": "
|
|
15841
|
-
"
|
|
15684
|
+
"type": "boolean",
|
|
15685
|
+
"const": true
|
|
15842
15686
|
}
|
|
15843
15687
|
},
|
|
15844
15688
|
"required": [
|
|
15845
|
-
"type",
|
|
15846
15689
|
"challenge"
|
|
15847
15690
|
],
|
|
15848
15691
|
"additionalProperties": false
|
|
15849
15692
|
},
|
|
15850
|
-
"WebhookJobChallengeResponse": {
|
|
15851
|
-
"type": "object",
|
|
15852
|
-
"properties": {
|
|
15853
|
-
"challenge": {
|
|
15854
|
-
"type": "string",
|
|
15855
|
-
"minLength": 1
|
|
15856
|
-
},
|
|
15857
|
-
"signature": {
|
|
15858
|
-
"type": "string",
|
|
15859
|
-
"minLength": 1
|
|
15860
|
-
}
|
|
15861
|
-
},
|
|
15862
|
-
"required": [
|
|
15863
|
-
"challenge",
|
|
15864
|
-
"signature"
|
|
15865
|
-
],
|
|
15866
|
-
"additionalProperties": false
|
|
15867
|
-
},
|
|
15868
15693
|
"WebhookJobTriggerRequest": {
|
|
15869
15694
|
"type": "object",
|
|
15870
15695
|
"properties": {
|
|
@@ -15891,10 +15716,17 @@
|
|
|
15891
15716
|
"status": {
|
|
15892
15717
|
"type": "string"
|
|
15893
15718
|
},
|
|
15719
|
+
"apiKey": {
|
|
15720
|
+
"type": "string",
|
|
15721
|
+
"minLength": 1
|
|
15722
|
+
},
|
|
15894
15723
|
"filtered": {
|
|
15895
15724
|
"type": "boolean"
|
|
15896
15725
|
}
|
|
15897
15726
|
},
|
|
15727
|
+
"required": [
|
|
15728
|
+
"apiKey"
|
|
15729
|
+
],
|
|
15898
15730
|
"additionalProperties": false
|
|
15899
15731
|
},
|
|
15900
15732
|
"WebhookWorkOSTriggerParams": {
|
package/dist/types.d.ts
CHANGED
|
@@ -3442,6 +3442,12 @@ export declare const formFieldDefinitionSchema: z.ZodObject<{
|
|
|
3442
3442
|
hint: z.ZodOptional<z.ZodString>;
|
|
3443
3443
|
}, z.core.$strip>;
|
|
3444
3444
|
export type FormFieldDefinition = z.infer<typeof formFieldDefinitionSchema>;
|
|
3445
|
+
export declare const formIntegrationSetupSchema: z.ZodObject<{
|
|
3446
|
+
title: z.ZodString;
|
|
3447
|
+
url: z.ZodString;
|
|
3448
|
+
instructions: z.ZodArray<z.ZodString>;
|
|
3449
|
+
}, z.core.$strip>;
|
|
3450
|
+
export type FormIntegrationSetup = z.infer<typeof formIntegrationSetupSchema>;
|
|
3445
3451
|
export declare const configurationFieldTypeSchema: z.ZodEnum<{
|
|
3446
3452
|
radio: "radio";
|
|
3447
3453
|
select: "select";
|
|
@@ -3497,6 +3503,11 @@ export declare const integrationFieldsResponseSchema: z.ZodObject<{
|
|
|
3497
3503
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
3498
3504
|
hint: z.ZodOptional<z.ZodString>;
|
|
3499
3505
|
}, z.core.$strip>>]>;
|
|
3506
|
+
setup: z.ZodOptional<z.ZodObject<{
|
|
3507
|
+
title: z.ZodString;
|
|
3508
|
+
url: z.ZodString;
|
|
3509
|
+
instructions: z.ZodArray<z.ZodString>;
|
|
3510
|
+
}, z.core.$strip>>;
|
|
3500
3511
|
}, z.core.$strip>;
|
|
3501
3512
|
export type IntegrationFieldsResponse = z.infer<typeof integrationFieldsResponseSchema>;
|
|
3502
3513
|
export declare const statsIntervalSchema: z.ZodEnum<{
|
|
@@ -5547,6 +5558,7 @@ export declare const sdkDeployJobSchema: z.ZodObject<{
|
|
|
5547
5558
|
export type SdkDeployJob = z.infer<typeof sdkDeployJobSchema>;
|
|
5548
5559
|
export declare const sdkDeployRequestBodySchema: z.ZodObject<{
|
|
5549
5560
|
projectId: z.ZodString;
|
|
5561
|
+
cliVersion: z.ZodString;
|
|
5550
5562
|
jobs: z.ZodArray<z.ZodObject<{
|
|
5551
5563
|
jobName: z.ZodString;
|
|
5552
5564
|
triggers: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -5792,6 +5804,10 @@ export declare const sdkRunTriggerEventResponseSchema: z.ZodObject<{
|
|
|
5792
5804
|
}>, z.ZodLiteral<"webhook">, z.ZodLiteral<"cron">, z.ZodLiteral<"webmonitor">, z.ZodLiteral<"manual_sample">]>;
|
|
5793
5805
|
formattedContent: z.ZodString;
|
|
5794
5806
|
debugLog: z.ZodString;
|
|
5807
|
+
display: z.ZodOptional<z.ZodObject<{
|
|
5808
|
+
title: z.ZodString;
|
|
5809
|
+
subtitle: z.ZodString;
|
|
5810
|
+
}, z.core.$strip>>;
|
|
5795
5811
|
data: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5796
5812
|
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.SLACK>;
|
|
5797
5813
|
channelId: z.ZodString;
|
|
@@ -7389,6 +7405,10 @@ export declare const webhookJobTriggerRequestSchema: z.ZodObject<{
|
|
|
7389
7405
|
}>, z.ZodLiteral<"webhook">, z.ZodLiteral<"cron">, z.ZodLiteral<"webmonitor">, z.ZodLiteral<"manual_sample">]>;
|
|
7390
7406
|
formattedContent: z.ZodString;
|
|
7391
7407
|
debugLog: z.ZodString;
|
|
7408
|
+
display: z.ZodOptional<z.ZodObject<{
|
|
7409
|
+
title: z.ZodString;
|
|
7410
|
+
subtitle: z.ZodString;
|
|
7411
|
+
}, z.core.$strip>>;
|
|
7392
7412
|
data: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7393
7413
|
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.SLACK>;
|
|
7394
7414
|
channelId: z.ZodString;
|
package/dist/types.js
CHANGED
|
@@ -337,6 +337,11 @@ export const formFieldDefinitionSchema = z.object({
|
|
|
337
337
|
required: z.boolean().optional(),
|
|
338
338
|
hint: z.string().optional()
|
|
339
339
|
});
|
|
340
|
+
export const formIntegrationSetupSchema = z.object({
|
|
341
|
+
title: z.string(),
|
|
342
|
+
url: z.string(),
|
|
343
|
+
instructions: z.array(z.string())
|
|
344
|
+
});
|
|
340
345
|
export const configurationFieldTypeSchema = z.enum(["radio", "select"]);
|
|
341
346
|
export const configurationOptionSchema = z.object({
|
|
342
347
|
label: z.string(),
|
|
@@ -352,7 +357,8 @@ export const configurationFieldDefinitionSchema = z.object({
|
|
|
352
357
|
});
|
|
353
358
|
export const integrationFieldsResponseSchema = z.object({
|
|
354
359
|
installationType: z.enum(["form", "oauth"]),
|
|
355
|
-
fields: z.union([z.array(formFieldDefinitionSchema), z.array(configurationFieldDefinitionSchema)])
|
|
360
|
+
fields: z.union([z.array(formFieldDefinitionSchema), z.array(configurationFieldDefinitionSchema)]),
|
|
361
|
+
setup: formIntegrationSetupSchema.optional()
|
|
356
362
|
});
|
|
357
363
|
export const statsIntervalSchema = z.enum(["1h", "24h", "7d", "1mo", "3mo", "1y"]);
|
|
358
364
|
export const dailyEventCountSchema = z.object({
|
|
@@ -500,6 +506,7 @@ export const sdkDeployJobSchema = z.object({
|
|
|
500
506
|
export const sdkDeployRequestBodySchema = z
|
|
501
507
|
.object({
|
|
502
508
|
projectId: z.string(),
|
|
509
|
+
cliVersion: z.string(),
|
|
503
510
|
jobs: z.array(sdkDeployJobSchema),
|
|
504
511
|
remoteServerUrl: z.string().optional(),
|
|
505
512
|
sourceZipBase64: z.string().optional()
|