terse-types 0.0.5 → 0.0.7

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/types.d.ts CHANGED
@@ -534,7 +534,7 @@ export declare const agentOutputSchema: z.ZodObject<{
534
534
  export type AgentOutput = z.infer<typeof agentOutputSchema>;
535
535
  export declare const agentPromptSchema: z.ZodObject<{
536
536
  text: z.ZodString;
537
- remoteServerUrl: z.ZodOptional<z.ZodString>;
537
+ remoteServerUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
538
538
  }, z.core.$strip>;
539
539
  export type AgentPrompt = z.infer<typeof agentPromptSchema>;
540
540
  export declare const transientAgentTriggerSchema: z.ZodObject<{
@@ -868,7 +868,7 @@ export declare const agentTemplateSchema: z.ZodObject<{
868
868
  chatPrompt: z.ZodString;
869
869
  prompt: z.ZodObject<{
870
870
  text: z.ZodString;
871
- remoteServerUrl: z.ZodOptional<z.ZodString>;
871
+ remoteServerUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
872
872
  }, z.core.$strip>;
873
873
  triggers: z.ZodArray<z.ZodObject<{
874
874
  config: z.ZodObject<{
@@ -895,6 +895,11 @@ export declare const runHistoryTriggerSchema: z.ZodObject<{
895
895
  url: z.ZodOptional<z.ZodString>;
896
896
  }, z.core.$strip>;
897
897
  export type RunHistoryTrigger = z.infer<typeof runHistoryTriggerSchema>;
898
+ export type TriggerPayload = {
899
+ triggerEvent: string | null;
900
+ triggerEventType: string | null;
901
+ isTriggerEventTruncated: boolean;
902
+ };
898
903
  export declare const runHistoryDecisionSchema: z.ZodObject<{
899
904
  action: z.ZodEnum<{
900
905
  processed: "processed";
@@ -1027,7 +1032,7 @@ export declare const agentSchema: z.ZodObject<{
1027
1032
  requireApproval: z.ZodBoolean;
1028
1033
  prompt: z.ZodObject<{
1029
1034
  text: z.ZodString;
1030
- remoteServerUrl: z.ZodOptional<z.ZodString>;
1035
+ remoteServerUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1031
1036
  }, z.core.$strip>;
1032
1037
  triggers: z.ZodArray<z.ZodObject<{
1033
1038
  id: z.ZodString;
@@ -1635,7 +1640,7 @@ export declare const agentUpdateSchema: z.ZodObject<{
1635
1640
  }, z.core.$strip>>>;
1636
1641
  prompt: z.ZodOptional<z.ZodObject<{
1637
1642
  text: z.ZodString;
1638
- remoteServerUrl: z.ZodOptional<z.ZodString>;
1643
+ remoteServerUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1639
1644
  }, z.core.$strip>>;
1640
1645
  isActive: z.ZodOptional<z.ZodBoolean>;
1641
1646
  requireApproval: z.ZodOptional<z.ZodBoolean>;
@@ -1658,7 +1663,7 @@ export declare const agentCreateSchema: z.ZodObject<{
1658
1663
  name: z.ZodString;
1659
1664
  prompt: z.ZodObject<{
1660
1665
  text: z.ZodString;
1661
- remoteServerUrl: z.ZodOptional<z.ZodString>;
1666
+ remoteServerUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1662
1667
  }, z.core.$strip>;
1663
1668
  triggers: z.ZodArray<z.ZodObject<{
1664
1669
  id: z.ZodString;
@@ -1971,7 +1976,7 @@ export declare const agentDraftSchema: z.ZodObject<{
1971
1976
  name: z.ZodString;
1972
1977
  prompt: z.ZodObject<{
1973
1978
  text: z.ZodString;
1974
- remoteServerUrl: z.ZodOptional<z.ZodString>;
1979
+ remoteServerUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1975
1980
  }, z.core.$strip>;
1976
1981
  triggers: z.ZodArray<z.ZodObject<{
1977
1982
  id: z.ZodString;
@@ -2295,7 +2300,7 @@ export declare const agentsResponseSchema: z.ZodObject<{
2295
2300
  requireApproval: z.ZodBoolean;
2296
2301
  prompt: z.ZodObject<{
2297
2302
  text: z.ZodString;
2298
- remoteServerUrl: z.ZodOptional<z.ZodString>;
2303
+ remoteServerUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2299
2304
  }, z.core.$strip>;
2300
2305
  triggers: z.ZodArray<z.ZodObject<{
2301
2306
  id: z.ZodString;
@@ -2622,7 +2627,7 @@ export declare const recentAgentSchema: z.ZodObject<{
2622
2627
  requireApproval: z.ZodBoolean;
2623
2628
  prompt: z.ZodObject<{
2624
2629
  text: z.ZodString;
2625
- remoteServerUrl: z.ZodOptional<z.ZodString>;
2630
+ remoteServerUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2626
2631
  }, z.core.$strip>;
2627
2632
  triggers: z.ZodArray<z.ZodObject<{
2628
2633
  id: z.ZodString;
@@ -3307,7 +3312,97 @@ export declare const sdkAgentRunOptionsPayloadSchema: z.ZodObject<{
3307
3312
  export type SdkAgentRunOptionsPayload = z.infer<typeof sdkAgentRunOptionsPayloadSchema>;
3308
3313
  export declare const sdkAgentRunRequestBodySchema: z.ZodObject<{
3309
3314
  prompt: z.ZodOptional<z.ZodString>;
3310
- event: z.ZodOptional<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
3315
+ message: z.ZodString;
3316
+ skills: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3317
+ integrationId: z.ZodString;
3318
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.SLACK>;
3319
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.SLACK_OUTPUT>;
3320
+ channelId: z.ZodNullable<z.ZodString>;
3321
+ channelName: z.ZodNullable<z.ZodString>;
3322
+ userIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
3323
+ userNames: z.ZodNullable<z.ZodArray<z.ZodString>>;
3324
+ listenToUserDms: z.ZodDefault<z.ZodBoolean>;
3325
+ }, z.core.$strip>, z.ZodObject<{
3326
+ integrationId: z.ZodString;
3327
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GMAIL>;
3328
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.GMAIL_OUTPUT>;
3329
+ }, z.core.$strip>, z.ZodObject<{
3330
+ integrationId: z.ZodString;
3331
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GMAIL>;
3332
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.GMAIL_DRAFT_OUTPUT>;
3333
+ }, z.core.$strip>, z.ZodObject<{
3334
+ integrationId: z.ZodString;
3335
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.NOTION>;
3336
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.NOTION>;
3337
+ databaseIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
3338
+ databaseNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
3339
+ pageIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
3340
+ pageNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
3341
+ }, z.core.$strip>, z.ZodObject<{
3342
+ integrationId: z.ZodString;
3343
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.LINEAR>;
3344
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.LINEAR_OUTPUT>;
3345
+ teamId: z.ZodNullable<z.ZodString>;
3346
+ teamName: z.ZodNullable<z.ZodString>;
3347
+ projectId: z.ZodNullable<z.ZodString>;
3348
+ }, z.core.$strip>, z.ZodObject<{
3349
+ integrationId: z.ZodString;
3350
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
3351
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.GITHUB>;
3352
+ repositoryIds: z.ZodArray<z.ZodNumber>;
3353
+ }, z.core.$strip>, z.ZodObject<{
3354
+ integrationId: z.ZodString;
3355
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.POSTHOG>;
3356
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.POSTHOG>;
3357
+ projectId: z.ZodString;
3358
+ projectName: z.ZodNullable<z.ZodString>;
3359
+ }, z.core.$strip>, z.ZodObject<{
3360
+ integrationId: z.ZodString;
3361
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.DATADOG>;
3362
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.DATADOG>;
3363
+ defaultIndexes: z.ZodDefault<z.ZodArray<z.ZodString>>;
3364
+ }, z.core.$strip>, z.ZodObject<{
3365
+ integrationId: z.ZodString;
3366
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.LAUNCHDARKLY>;
3367
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.LAUNCHDARKLY>;
3368
+ projectKey: z.ZodString;
3369
+ environmentKeys: z.ZodArray<z.ZodString>;
3370
+ }, z.core.$strip>, z.ZodObject<{
3371
+ integrationId: z.ZodLiteral<"system">;
3372
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.TERSE>;
3373
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.TERSE>;
3374
+ }, z.core.$strip>, z.ZodObject<{
3375
+ integrationId: z.ZodString;
3376
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.WORKOS>;
3377
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.WORKOS_OUTPUT>;
3378
+ }, z.core.$strip>, z.ZodObject<{
3379
+ integrationId: z.ZodString;
3380
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.ATTIO>;
3381
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.ATTIO_OUTPUT>;
3382
+ objectSlug: z.ZodNullable<z.ZodString>;
3383
+ }, z.core.$strip>, z.ZodObject<{
3384
+ integrationId: z.ZodString;
3385
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.SNOWFLAKE>;
3386
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.SNOWFLAKE_OUTPUT>;
3387
+ }, z.core.$strip>]>>>;
3388
+ options: z.ZodOptional<z.ZodObject<{
3389
+ maxTurns: z.ZodOptional<z.ZodNumber>;
3390
+ requireApproval: z.ZodOptional<z.ZodBoolean>;
3391
+ }, z.core.$strip>>;
3392
+ toolApprovals: z.ZodOptional<z.ZodArray<z.ZodString>>;
3393
+ }, z.core.$strip>;
3394
+ export type SdkAgentRunRequestBody = z.infer<typeof sdkAgentRunRequestBodySchema>;
3395
+ export declare const sdkAgentRunResponseContractSchema: z.ZodObject<{
3396
+ responseMode: z.ZodLiteral<"streaming">;
3397
+ supportsInterruptions: z.ZodBoolean;
3398
+ }, z.core.$strip>;
3399
+ export declare const sdkAgentRunNormalizedRequestOptionsSchema: z.ZodObject<{
3400
+ maxTurns: z.ZodNumber;
3401
+ requireApproval: z.ZodBoolean;
3402
+ }, z.core.$strip>;
3403
+ export declare const sdkAgentRunNormalizedRequestSchema: z.ZodObject<{
3404
+ prompt: z.ZodString;
3405
+ event: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
3311
3406
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.SLACK>;
3312
3407
  channelId: z.ZodString;
3313
3408
  channelName: z.ZodNullable<z.ZodString>;
@@ -3946,7 +4041,7 @@ export declare const sdkAgentRunRequestBodySchema: z.ZodObject<{
3946
4041
  }, z.core.$strip>], "eventType">, z.ZodObject<{
3947
4042
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.WEBHOOK>;
3948
4043
  eventType: z.ZodLiteral<"webhook">;
3949
- body: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4044
+ body: z.ZodUnknown;
3950
4045
  headers: z.ZodRecord<z.ZodString, z.ZodString>;
3951
4046
  method: z.ZodString;
3952
4047
  }, z.core.$strip>, z.ZodObject<{
@@ -3958,8 +4053,8 @@ export declare const sdkAgentRunRequestBodySchema: z.ZodObject<{
3958
4053
  }, z.core.$strip>, z.ZodObject<{
3959
4054
  integrationType: z.ZodEnum<typeof import("./Integrations.js").IntegrationType>;
3960
4055
  eventType: z.ZodLiteral<"manual_sample">;
3961
- }, z.core.$strip>]>>;
3962
- skills: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
4056
+ }, z.core.$strip>]>;
4057
+ skills: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
3963
4058
  integrationId: z.ZodString;
3964
4059
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.SLACK>;
3965
4060
  configType: z.ZodLiteral<import("./Configs.js").ConfigType.SLACK_OUTPUT>;
@@ -4030,1203 +4125,462 @@ export declare const sdkAgentRunRequestBodySchema: z.ZodObject<{
4030
4125
  integrationId: z.ZodString;
4031
4126
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.SNOWFLAKE>;
4032
4127
  configType: z.ZodLiteral<import("./Configs.js").ConfigType.SNOWFLAKE_OUTPUT>;
4033
- }, z.core.$strip>]>>>;
4034
- options: z.ZodOptional<z.ZodObject<{
4035
- maxTurns: z.ZodOptional<z.ZodNumber>;
4036
- requireApproval: z.ZodOptional<z.ZodBoolean>;
4037
- }, z.core.$strip>>;
4038
- toolApprovals: z.ZodOptional<z.ZodArray<z.ZodString>>;
4039
- }, z.core.$strip>;
4040
- export type SdkAgentRunRequestBody = z.infer<typeof sdkAgentRunRequestBodySchema>;
4041
- export declare const sdkAgentRunResponseContractSchema: z.ZodObject<{
4042
- responseMode: z.ZodLiteral<"streaming">;
4043
- supportsInterruptions: z.ZodBoolean;
4044
- }, z.core.$strip>;
4045
- export declare const sdkAgentRunNormalizedRequestOptionsSchema: z.ZodObject<{
4046
- maxTurns: z.ZodNumber;
4047
- requireApproval: z.ZodBoolean;
4128
+ }, z.core.$strip>]>>;
4129
+ toolApprovals: z.ZodArray<z.ZodString>;
4130
+ options: z.ZodObject<{
4131
+ maxTurns: z.ZodNumber;
4132
+ requireApproval: z.ZodBoolean;
4133
+ }, z.core.$strip>;
4048
4134
  }, z.core.$strip>;
4049
- export declare const sdkAgentRunNormalizedRequestSchema: z.ZodObject<{
4050
- prompt: z.ZodString;
4051
- event: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
4052
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.SLACK>;
4053
- channelId: z.ZodString;
4054
- channelName: z.ZodNullable<z.ZodString>;
4055
- userId: z.ZodString;
4056
- userName: z.ZodNullable<z.ZodString>;
4057
- text: z.ZodString;
4058
- timestamp: z.ZodString;
4059
- threadTs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4060
- threadTimestamp: z.ZodNullable<z.ZodString>;
4061
- teamId: z.ZodString;
4062
- permalink: z.ZodNullable<z.ZodString>;
4063
- channelType: z.ZodNullable<z.ZodEnum<typeof SlackChannelType>>;
4064
- blocks: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
4065
- attachments: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
4066
- files: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
4067
- eventType: z.ZodLiteral<"message">;
4068
- }, z.core.$strip>, z.ZodObject<{
4069
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.SLACK>;
4070
- channelId: z.ZodString;
4071
- channelName: z.ZodNullable<z.ZodString>;
4072
- userId: z.ZodString;
4073
- userName: z.ZodNullable<z.ZodString>;
4074
- text: z.ZodString;
4075
- timestamp: z.ZodString;
4076
- threadTs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4077
- threadTimestamp: z.ZodNullable<z.ZodString>;
4078
- teamId: z.ZodString;
4079
- permalink: z.ZodNullable<z.ZodString>;
4080
- channelType: z.ZodNullable<z.ZodEnum<typeof SlackChannelType>>;
4081
- blocks: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
4082
- attachments: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
4083
- files: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
4084
- eventType: z.ZodLiteral<"app_mention">;
4085
- }, z.core.$strip>, z.ZodObject<{
4086
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.SLACK>;
4087
- channelId: z.ZodString;
4088
- channelName: z.ZodNullable<z.ZodString>;
4089
- userId: z.ZodString;
4090
- userName: z.ZodNullable<z.ZodString>;
4091
- text: z.ZodString;
4092
- timestamp: z.ZodString;
4093
- threadTs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4094
- threadTimestamp: z.ZodNullable<z.ZodString>;
4095
- teamId: z.ZodString;
4096
- permalink: z.ZodNullable<z.ZodString>;
4097
- channelType: z.ZodNullable<z.ZodEnum<typeof SlackChannelType>>;
4098
- blocks: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
4099
- attachments: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
4100
- files: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
4101
- eventType: z.ZodLiteral<"reaction_added">;
4102
- reaction: z.ZodString;
4103
- itemType: z.ZodNullable<z.ZodString>;
4104
- itemUserId: z.ZodNullable<z.ZodString>;
4105
- itemChannelId: z.ZodNullable<z.ZodString>;
4106
- itemTimestamp: z.ZodNullable<z.ZodString>;
4107
- }, z.core.$strip>], "eventType">, z.ZodDiscriminatedUnion<[z.ZodObject<{
4108
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
4109
- username: z.ZodString;
4110
- installationId: z.ZodNumber;
4111
- repositoryName: z.ZodString;
4112
- repository: z.ZodObject<{
4113
- id: z.ZodNumber;
4114
- name: z.ZodString;
4115
- owner: z.ZodString;
4116
- defaultBranch: z.ZodString;
4117
- }, z.core.$strip>;
4118
- sender: z.ZodObject<{
4119
- login: z.ZodString;
4120
- email: z.ZodOptional<z.ZodString>;
4121
- }, z.core.$strip>;
4122
- eventType: z.ZodLiteral<"push">;
4123
- branch: z.ZodString;
4124
- commits: z.ZodArray<z.ZodObject<{
4125
- sha: z.ZodString;
4126
- message: z.ZodOptional<z.ZodString>;
4127
- name: z.ZodString;
4128
- fileDiffs: z.ZodArray<z.ZodObject<{
4129
- filename: z.ZodString;
4130
- diff: z.ZodString;
4131
- }, z.core.$strip>>;
4132
- }, z.core.$strip>>;
4133
- pullRequest: z.ZodOptional<z.ZodUndefined>;
4134
- }, z.core.$strip>, z.ZodObject<{
4135
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
4136
- username: z.ZodString;
4137
- installationId: z.ZodNumber;
4138
- repositoryName: z.ZodString;
4139
- repository: z.ZodObject<{
4140
- id: z.ZodNumber;
4141
- name: z.ZodString;
4142
- owner: z.ZodString;
4143
- defaultBranch: z.ZodString;
4144
- }, z.core.$strip>;
4145
- sender: z.ZodObject<{
4146
- login: z.ZodString;
4147
- email: z.ZodOptional<z.ZodString>;
4148
- }, z.core.$strip>;
4149
- pullRequest: z.ZodObject<{
4150
- id: z.ZodString;
4151
- number: z.ZodNumber;
4152
- title: z.ZodString;
4153
- body: z.ZodOptional<z.ZodString>;
4154
- state: z.ZodEnum<{
4155
- open: "open";
4156
- closed: "closed";
4157
- }>;
4158
- merged: z.ZodBoolean;
4159
- head: z.ZodObject<{
4160
- ref: z.ZodString;
4161
- sha: z.ZodString;
4162
- }, z.core.$strip>;
4163
- base: z.ZodObject<{
4164
- ref: z.ZodString;
4165
- sha: z.ZodString;
4166
- }, z.core.$strip>;
4167
- user: z.ZodObject<{
4168
- login: z.ZodString;
4169
- email: z.ZodOptional<z.ZodString>;
4170
- }, z.core.$strip>;
4171
- author: z.ZodOptional<z.ZodObject<{
4172
- login: z.ZodString;
4173
- email: z.ZodOptional<z.ZodString>;
4174
- }, z.core.$strip>>;
4175
- url: z.ZodOptional<z.ZodString>;
4176
- }, z.core.$strip>;
4177
- branch: z.ZodOptional<z.ZodString>;
4178
- commits: z.ZodArray<z.ZodObject<{
4179
- sha: z.ZodString;
4180
- message: z.ZodOptional<z.ZodString>;
4181
- name: z.ZodString;
4182
- fileDiffs: z.ZodArray<z.ZodObject<{
4183
- filename: z.ZodString;
4184
- diff: z.ZodString;
4185
- }, z.core.$strip>>;
4186
- }, z.core.$strip>>;
4187
- eventType: z.ZodLiteral<"pull_request.opened">;
4188
- }, z.core.$strip>, z.ZodObject<{
4189
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
4190
- username: z.ZodString;
4191
- installationId: z.ZodNumber;
4192
- repositoryName: z.ZodString;
4193
- repository: z.ZodObject<{
4194
- id: z.ZodNumber;
4195
- name: z.ZodString;
4196
- owner: z.ZodString;
4197
- defaultBranch: z.ZodString;
4198
- }, z.core.$strip>;
4199
- sender: z.ZodObject<{
4200
- login: z.ZodString;
4201
- email: z.ZodOptional<z.ZodString>;
4202
- }, z.core.$strip>;
4203
- pullRequest: z.ZodObject<{
4204
- id: z.ZodString;
4205
- number: z.ZodNumber;
4206
- title: z.ZodString;
4207
- body: z.ZodOptional<z.ZodString>;
4208
- state: z.ZodEnum<{
4209
- open: "open";
4210
- closed: "closed";
4211
- }>;
4212
- merged: z.ZodBoolean;
4213
- head: z.ZodObject<{
4214
- ref: z.ZodString;
4215
- sha: z.ZodString;
4216
- }, z.core.$strip>;
4217
- base: z.ZodObject<{
4218
- ref: z.ZodString;
4219
- sha: z.ZodString;
4135
+ export declare const sdkAgentRunResponseBodySchema: z.ZodObject<{
4136
+ success: z.ZodBoolean;
4137
+ error: z.ZodOptional<z.ZodString>;
4138
+ details: z.ZodOptional<z.ZodArray<z.ZodString>>;
4139
+ contract: z.ZodOptional<z.ZodObject<{
4140
+ responseMode: z.ZodLiteral<"streaming">;
4141
+ supportsInterruptions: z.ZodBoolean;
4142
+ }, z.core.$strip>>;
4143
+ normalizedRequest: z.ZodOptional<z.ZodObject<{
4144
+ prompt: z.ZodString;
4145
+ event: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
4146
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.SLACK>;
4147
+ channelId: z.ZodString;
4148
+ channelName: z.ZodNullable<z.ZodString>;
4149
+ userId: z.ZodString;
4150
+ userName: z.ZodNullable<z.ZodString>;
4151
+ text: z.ZodString;
4152
+ timestamp: z.ZodString;
4153
+ threadTs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4154
+ threadTimestamp: z.ZodNullable<z.ZodString>;
4155
+ teamId: z.ZodString;
4156
+ permalink: z.ZodNullable<z.ZodString>;
4157
+ channelType: z.ZodNullable<z.ZodEnum<typeof SlackChannelType>>;
4158
+ blocks: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
4159
+ attachments: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
4160
+ files: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
4161
+ eventType: z.ZodLiteral<"message">;
4162
+ }, z.core.$strip>, z.ZodObject<{
4163
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.SLACK>;
4164
+ channelId: z.ZodString;
4165
+ channelName: z.ZodNullable<z.ZodString>;
4166
+ userId: z.ZodString;
4167
+ userName: z.ZodNullable<z.ZodString>;
4168
+ text: z.ZodString;
4169
+ timestamp: z.ZodString;
4170
+ threadTs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4171
+ threadTimestamp: z.ZodNullable<z.ZodString>;
4172
+ teamId: z.ZodString;
4173
+ permalink: z.ZodNullable<z.ZodString>;
4174
+ channelType: z.ZodNullable<z.ZodEnum<typeof SlackChannelType>>;
4175
+ blocks: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
4176
+ attachments: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
4177
+ files: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
4178
+ eventType: z.ZodLiteral<"app_mention">;
4179
+ }, z.core.$strip>, z.ZodObject<{
4180
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.SLACK>;
4181
+ channelId: z.ZodString;
4182
+ channelName: z.ZodNullable<z.ZodString>;
4183
+ userId: z.ZodString;
4184
+ userName: z.ZodNullable<z.ZodString>;
4185
+ text: z.ZodString;
4186
+ timestamp: z.ZodString;
4187
+ threadTs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4188
+ threadTimestamp: z.ZodNullable<z.ZodString>;
4189
+ teamId: z.ZodString;
4190
+ permalink: z.ZodNullable<z.ZodString>;
4191
+ channelType: z.ZodNullable<z.ZodEnum<typeof SlackChannelType>>;
4192
+ blocks: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
4193
+ attachments: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
4194
+ files: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
4195
+ eventType: z.ZodLiteral<"reaction_added">;
4196
+ reaction: z.ZodString;
4197
+ itemType: z.ZodNullable<z.ZodString>;
4198
+ itemUserId: z.ZodNullable<z.ZodString>;
4199
+ itemChannelId: z.ZodNullable<z.ZodString>;
4200
+ itemTimestamp: z.ZodNullable<z.ZodString>;
4201
+ }, z.core.$strip>], "eventType">, z.ZodDiscriminatedUnion<[z.ZodObject<{
4202
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
4203
+ username: z.ZodString;
4204
+ installationId: z.ZodNumber;
4205
+ repositoryName: z.ZodString;
4206
+ repository: z.ZodObject<{
4207
+ id: z.ZodNumber;
4208
+ name: z.ZodString;
4209
+ owner: z.ZodString;
4210
+ defaultBranch: z.ZodString;
4220
4211
  }, z.core.$strip>;
4221
- user: z.ZodObject<{
4212
+ sender: z.ZodObject<{
4222
4213
  login: z.ZodString;
4223
4214
  email: z.ZodOptional<z.ZodString>;
4224
4215
  }, z.core.$strip>;
4225
- author: z.ZodOptional<z.ZodObject<{
4216
+ eventType: z.ZodLiteral<"push">;
4217
+ branch: z.ZodString;
4218
+ commits: z.ZodArray<z.ZodObject<{
4219
+ sha: z.ZodString;
4220
+ message: z.ZodOptional<z.ZodString>;
4221
+ name: z.ZodString;
4222
+ fileDiffs: z.ZodArray<z.ZodObject<{
4223
+ filename: z.ZodString;
4224
+ diff: z.ZodString;
4225
+ }, z.core.$strip>>;
4226
+ }, z.core.$strip>>;
4227
+ pullRequest: z.ZodOptional<z.ZodUndefined>;
4228
+ }, z.core.$strip>, z.ZodObject<{
4229
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
4230
+ username: z.ZodString;
4231
+ installationId: z.ZodNumber;
4232
+ repositoryName: z.ZodString;
4233
+ repository: z.ZodObject<{
4234
+ id: z.ZodNumber;
4235
+ name: z.ZodString;
4236
+ owner: z.ZodString;
4237
+ defaultBranch: z.ZodString;
4238
+ }, z.core.$strip>;
4239
+ sender: z.ZodObject<{
4226
4240
  login: z.ZodString;
4227
4241
  email: z.ZodOptional<z.ZodString>;
4228
- }, z.core.$strip>>;
4229
- url: z.ZodOptional<z.ZodString>;
4230
- }, z.core.$strip>;
4231
- branch: z.ZodOptional<z.ZodString>;
4232
- commits: z.ZodArray<z.ZodObject<{
4233
- sha: z.ZodString;
4234
- message: z.ZodOptional<z.ZodString>;
4235
- name: z.ZodString;
4236
- fileDiffs: z.ZodArray<z.ZodObject<{
4237
- filename: z.ZodString;
4238
- diff: z.ZodString;
4239
- }, z.core.$strip>>;
4240
- }, z.core.$strip>>;
4241
- eventType: z.ZodLiteral<"pull_request.synchronize">;
4242
- }, z.core.$strip>, z.ZodObject<{
4243
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
4244
- username: z.ZodString;
4245
- installationId: z.ZodNumber;
4246
- repositoryName: z.ZodString;
4247
- repository: z.ZodObject<{
4248
- id: z.ZodNumber;
4249
- name: z.ZodString;
4250
- owner: z.ZodString;
4251
- defaultBranch: z.ZodString;
4252
- }, z.core.$strip>;
4253
- sender: z.ZodObject<{
4254
- login: z.ZodString;
4255
- email: z.ZodOptional<z.ZodString>;
4256
- }, z.core.$strip>;
4257
- pullRequest: z.ZodObject<{
4258
- id: z.ZodString;
4259
- number: z.ZodNumber;
4260
- title: z.ZodString;
4261
- body: z.ZodOptional<z.ZodString>;
4262
- state: z.ZodEnum<{
4263
- open: "open";
4264
- closed: "closed";
4265
- }>;
4266
- merged: z.ZodBoolean;
4267
- head: z.ZodObject<{
4268
- ref: z.ZodString;
4269
- sha: z.ZodString;
4270
4242
  }, z.core.$strip>;
4271
- base: z.ZodObject<{
4272
- ref: z.ZodString;
4243
+ pullRequest: z.ZodObject<{
4244
+ id: z.ZodString;
4245
+ number: z.ZodNumber;
4246
+ title: z.ZodString;
4247
+ body: z.ZodOptional<z.ZodString>;
4248
+ state: z.ZodEnum<{
4249
+ open: "open";
4250
+ closed: "closed";
4251
+ }>;
4252
+ merged: z.ZodBoolean;
4253
+ head: z.ZodObject<{
4254
+ ref: z.ZodString;
4255
+ sha: z.ZodString;
4256
+ }, z.core.$strip>;
4257
+ base: z.ZodObject<{
4258
+ ref: z.ZodString;
4259
+ sha: z.ZodString;
4260
+ }, z.core.$strip>;
4261
+ user: z.ZodObject<{
4262
+ login: z.ZodString;
4263
+ email: z.ZodOptional<z.ZodString>;
4264
+ }, z.core.$strip>;
4265
+ author: z.ZodOptional<z.ZodObject<{
4266
+ login: z.ZodString;
4267
+ email: z.ZodOptional<z.ZodString>;
4268
+ }, z.core.$strip>>;
4269
+ url: z.ZodOptional<z.ZodString>;
4270
+ }, z.core.$strip>;
4271
+ branch: z.ZodOptional<z.ZodString>;
4272
+ commits: z.ZodArray<z.ZodObject<{
4273
4273
  sha: z.ZodString;
4274
+ message: z.ZodOptional<z.ZodString>;
4275
+ name: z.ZodString;
4276
+ fileDiffs: z.ZodArray<z.ZodObject<{
4277
+ filename: z.ZodString;
4278
+ diff: z.ZodString;
4279
+ }, z.core.$strip>>;
4280
+ }, z.core.$strip>>;
4281
+ eventType: z.ZodLiteral<"pull_request.opened">;
4282
+ }, z.core.$strip>, z.ZodObject<{
4283
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
4284
+ username: z.ZodString;
4285
+ installationId: z.ZodNumber;
4286
+ repositoryName: z.ZodString;
4287
+ repository: z.ZodObject<{
4288
+ id: z.ZodNumber;
4289
+ name: z.ZodString;
4290
+ owner: z.ZodString;
4291
+ defaultBranch: z.ZodString;
4274
4292
  }, z.core.$strip>;
4275
- user: z.ZodObject<{
4293
+ sender: z.ZodObject<{
4276
4294
  login: z.ZodString;
4277
4295
  email: z.ZodOptional<z.ZodString>;
4278
4296
  }, z.core.$strip>;
4279
- author: z.ZodOptional<z.ZodObject<{
4280
- login: z.ZodString;
4281
- email: z.ZodOptional<z.ZodString>;
4282
- }, z.core.$strip>>;
4283
- url: z.ZodOptional<z.ZodString>;
4284
- }, z.core.$strip>;
4285
- branch: z.ZodOptional<z.ZodString>;
4286
- commits: z.ZodArray<z.ZodObject<{
4287
- sha: z.ZodString;
4288
- message: z.ZodOptional<z.ZodString>;
4289
- name: z.ZodString;
4290
- fileDiffs: z.ZodArray<z.ZodObject<{
4291
- filename: z.ZodString;
4292
- diff: z.ZodString;
4293
- }, z.core.$strip>>;
4294
- }, z.core.$strip>>;
4295
- eventType: z.ZodLiteral<"pull_request.closed">;
4296
- }, z.core.$strip>, z.ZodObject<{
4297
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
4298
- username: z.ZodString;
4299
- installationId: z.ZodNumber;
4300
- repositoryName: z.ZodString;
4301
- repository: z.ZodObject<{
4302
- id: z.ZodNumber;
4303
- name: z.ZodString;
4304
- owner: z.ZodString;
4305
- defaultBranch: z.ZodString;
4306
- }, z.core.$strip>;
4307
- sender: z.ZodObject<{
4308
- login: z.ZodString;
4309
- email: z.ZodOptional<z.ZodString>;
4310
- }, z.core.$strip>;
4311
- pullRequest: z.ZodObject<{
4312
- id: z.ZodString;
4313
- number: z.ZodNumber;
4314
- title: z.ZodString;
4315
- body: z.ZodOptional<z.ZodString>;
4316
- state: z.ZodEnum<{
4317
- open: "open";
4318
- closed: "closed";
4319
- }>;
4320
- merged: z.ZodBoolean;
4321
- head: z.ZodObject<{
4322
- ref: z.ZodString;
4323
- sha: z.ZodString;
4297
+ pullRequest: z.ZodObject<{
4298
+ id: z.ZodString;
4299
+ number: z.ZodNumber;
4300
+ title: z.ZodString;
4301
+ body: z.ZodOptional<z.ZodString>;
4302
+ state: z.ZodEnum<{
4303
+ open: "open";
4304
+ closed: "closed";
4305
+ }>;
4306
+ merged: z.ZodBoolean;
4307
+ head: z.ZodObject<{
4308
+ ref: z.ZodString;
4309
+ sha: z.ZodString;
4310
+ }, z.core.$strip>;
4311
+ base: z.ZodObject<{
4312
+ ref: z.ZodString;
4313
+ sha: z.ZodString;
4314
+ }, z.core.$strip>;
4315
+ user: z.ZodObject<{
4316
+ login: z.ZodString;
4317
+ email: z.ZodOptional<z.ZodString>;
4318
+ }, z.core.$strip>;
4319
+ author: z.ZodOptional<z.ZodObject<{
4320
+ login: z.ZodString;
4321
+ email: z.ZodOptional<z.ZodString>;
4322
+ }, z.core.$strip>>;
4323
+ url: z.ZodOptional<z.ZodString>;
4324
4324
  }, z.core.$strip>;
4325
- base: z.ZodObject<{
4326
- ref: z.ZodString;
4325
+ branch: z.ZodOptional<z.ZodString>;
4326
+ commits: z.ZodArray<z.ZodObject<{
4327
4327
  sha: z.ZodString;
4328
+ message: z.ZodOptional<z.ZodString>;
4329
+ name: z.ZodString;
4330
+ fileDiffs: z.ZodArray<z.ZodObject<{
4331
+ filename: z.ZodString;
4332
+ diff: z.ZodString;
4333
+ }, z.core.$strip>>;
4334
+ }, z.core.$strip>>;
4335
+ eventType: z.ZodLiteral<"pull_request.synchronize">;
4336
+ }, z.core.$strip>, z.ZodObject<{
4337
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
4338
+ username: z.ZodString;
4339
+ installationId: z.ZodNumber;
4340
+ repositoryName: z.ZodString;
4341
+ repository: z.ZodObject<{
4342
+ id: z.ZodNumber;
4343
+ name: z.ZodString;
4344
+ owner: z.ZodString;
4345
+ defaultBranch: z.ZodString;
4328
4346
  }, z.core.$strip>;
4329
- user: z.ZodObject<{
4347
+ sender: z.ZodObject<{
4330
4348
  login: z.ZodString;
4331
4349
  email: z.ZodOptional<z.ZodString>;
4332
4350
  }, z.core.$strip>;
4333
- author: z.ZodOptional<z.ZodObject<{
4334
- login: z.ZodString;
4335
- email: z.ZodOptional<z.ZodString>;
4336
- }, z.core.$strip>>;
4337
- url: z.ZodOptional<z.ZodString>;
4338
- }, z.core.$strip>;
4339
- branch: z.ZodOptional<z.ZodString>;
4340
- commits: z.ZodArray<z.ZodObject<{
4341
- sha: z.ZodString;
4342
- message: z.ZodOptional<z.ZodString>;
4343
- name: z.ZodString;
4344
- fileDiffs: z.ZodArray<z.ZodObject<{
4345
- filename: z.ZodString;
4346
- diff: z.ZodString;
4347
- }, z.core.$strip>>;
4348
- }, z.core.$strip>>;
4349
- eventType: z.ZodLiteral<"pull_request.merged">;
4350
- }, z.core.$strip>], "eventType">, z.ZodObject<{
4351
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GMAIL>;
4352
- eventType: z.ZodEnum<{
4353
- readonly EMAIL_RECEIVED: "email.received";
4354
- }>;
4355
- id: z.ZodString;
4356
- threadId: z.ZodString;
4357
- subject: z.ZodString;
4358
- from: z.ZodString;
4359
- to: z.ZodString;
4360
- date: z.ZodString;
4361
- internalDate: z.ZodString;
4362
- messageId: z.ZodString;
4363
- body: z.ZodString;
4364
- snippet: z.ZodString;
4365
- labelIds: z.ZodArray<z.ZodString>;
4366
- attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
4367
- attachmentId: z.ZodString;
4368
- filename: z.ZodString;
4369
- mimeType: z.ZodString;
4370
- contentId: z.ZodOptional<z.ZodString>;
4371
- isInline: z.ZodBoolean;
4372
- }, z.core.$strip>>>;
4373
- }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
4374
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.LINEAR>;
4375
- actor: z.ZodObject<{
4376
- id: z.ZodString;
4377
- name: z.ZodString;
4378
- email: z.ZodString;
4379
- url: z.ZodString;
4380
- type: z.ZodString;
4381
- }, z.core.$strip>;
4382
- createdAt: z.ZodString;
4383
- url: z.ZodOptional<z.ZodString>;
4384
- organizationId: z.ZodString;
4385
- webhookTimestamp: z.ZodNumber;
4386
- webhookId: z.ZodString;
4387
- eventType: z.ZodLiteral<"issue.created">;
4388
- action: z.ZodLiteral<"create">;
4389
- type: z.ZodLiteral<"Issue">;
4390
- data: z.ZodObject<{
4391
- id: z.ZodString;
4392
- createdAt: z.ZodString;
4393
- updatedAt: z.ZodString;
4394
- number: z.ZodNumber;
4395
- title: z.ZodString;
4396
- priority: z.ZodNumber;
4397
- sortOrder: z.ZodNumber;
4398
- prioritySortOrder: z.ZodNumber;
4399
- slaType: z.ZodString;
4400
- addedToTeamAt: z.ZodString;
4401
- trashed: z.ZodBoolean;
4402
- labelIds: z.ZodArray<z.ZodString>;
4403
- teamId: z.ZodString;
4404
- previousIdentifiers: z.ZodArray<z.ZodString>;
4405
- stateId: z.ZodString;
4406
- reactionData: z.ZodArray<z.ZodAny>;
4407
- priorityLabel: z.ZodString;
4408
- botActor: z.ZodOptional<z.ZodString>;
4409
- identifier: z.ZodString;
4410
- url: z.ZodString;
4411
- subscriberIds: z.ZodArray<z.ZodString>;
4412
- state: z.ZodObject<{
4351
+ pullRequest: z.ZodObject<{
4413
4352
  id: z.ZodString;
4414
- color: z.ZodString;
4415
- name: z.ZodString;
4416
- type: z.ZodString;
4353
+ number: z.ZodNumber;
4354
+ title: z.ZodString;
4355
+ body: z.ZodOptional<z.ZodString>;
4356
+ state: z.ZodEnum<{
4357
+ open: "open";
4358
+ closed: "closed";
4359
+ }>;
4360
+ merged: z.ZodBoolean;
4361
+ head: z.ZodObject<{
4362
+ ref: z.ZodString;
4363
+ sha: z.ZodString;
4364
+ }, z.core.$strip>;
4365
+ base: z.ZodObject<{
4366
+ ref: z.ZodString;
4367
+ sha: z.ZodString;
4368
+ }, z.core.$strip>;
4369
+ user: z.ZodObject<{
4370
+ login: z.ZodString;
4371
+ email: z.ZodOptional<z.ZodString>;
4372
+ }, z.core.$strip>;
4373
+ author: z.ZodOptional<z.ZodObject<{
4374
+ login: z.ZodString;
4375
+ email: z.ZodOptional<z.ZodString>;
4376
+ }, z.core.$strip>>;
4377
+ url: z.ZodOptional<z.ZodString>;
4417
4378
  }, z.core.$strip>;
4418
- team: z.ZodObject<{
4419
- id: z.ZodString;
4420
- key: z.ZodString;
4379
+ branch: z.ZodOptional<z.ZodString>;
4380
+ commits: z.ZodArray<z.ZodObject<{
4381
+ sha: z.ZodString;
4382
+ message: z.ZodOptional<z.ZodString>;
4383
+ name: z.ZodString;
4384
+ fileDiffs: z.ZodArray<z.ZodObject<{
4385
+ filename: z.ZodString;
4386
+ diff: z.ZodString;
4387
+ }, z.core.$strip>>;
4388
+ }, z.core.$strip>>;
4389
+ eventType: z.ZodLiteral<"pull_request.closed">;
4390
+ }, z.core.$strip>, z.ZodObject<{
4391
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
4392
+ username: z.ZodString;
4393
+ installationId: z.ZodNumber;
4394
+ repositoryName: z.ZodString;
4395
+ repository: z.ZodObject<{
4396
+ id: z.ZodNumber;
4421
4397
  name: z.ZodString;
4398
+ owner: z.ZodString;
4399
+ defaultBranch: z.ZodString;
4422
4400
  }, z.core.$strip>;
4423
- labels: z.ZodArray<z.ZodAny>;
4424
- description: z.ZodOptional<z.ZodString>;
4425
- descriptionData: z.ZodOptional<z.ZodString>;
4426
- assignee: z.ZodOptional<z.ZodObject<{
4401
+ sender: z.ZodObject<{
4402
+ login: z.ZodString;
4403
+ email: z.ZodOptional<z.ZodString>;
4404
+ }, z.core.$strip>;
4405
+ pullRequest: z.ZodObject<{
4427
4406
  id: z.ZodString;
4407
+ number: z.ZodNumber;
4408
+ title: z.ZodString;
4409
+ body: z.ZodOptional<z.ZodString>;
4410
+ state: z.ZodEnum<{
4411
+ open: "open";
4412
+ closed: "closed";
4413
+ }>;
4414
+ merged: z.ZodBoolean;
4415
+ head: z.ZodObject<{
4416
+ ref: z.ZodString;
4417
+ sha: z.ZodString;
4418
+ }, z.core.$strip>;
4419
+ base: z.ZodObject<{
4420
+ ref: z.ZodString;
4421
+ sha: z.ZodString;
4422
+ }, z.core.$strip>;
4423
+ user: z.ZodObject<{
4424
+ login: z.ZodString;
4425
+ email: z.ZodOptional<z.ZodString>;
4426
+ }, z.core.$strip>;
4427
+ author: z.ZodOptional<z.ZodObject<{
4428
+ login: z.ZodString;
4429
+ email: z.ZodOptional<z.ZodString>;
4430
+ }, z.core.$strip>>;
4431
+ url: z.ZodOptional<z.ZodString>;
4432
+ }, z.core.$strip>;
4433
+ branch: z.ZodOptional<z.ZodString>;
4434
+ commits: z.ZodArray<z.ZodObject<{
4435
+ sha: z.ZodString;
4436
+ message: z.ZodOptional<z.ZodString>;
4428
4437
  name: z.ZodString;
4438
+ fileDiffs: z.ZodArray<z.ZodObject<{
4439
+ filename: z.ZodString;
4440
+ diff: z.ZodString;
4441
+ }, z.core.$strip>>;
4429
4442
  }, z.core.$strip>>;
4430
- projectId: z.ZodOptional<z.ZodString>;
4431
- }, z.core.$strip>;
4432
- }, z.core.$strip>, z.ZodObject<{
4433
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.LINEAR>;
4434
- actor: z.ZodObject<{
4443
+ eventType: z.ZodLiteral<"pull_request.merged">;
4444
+ }, z.core.$strip>], "eventType">, z.ZodObject<{
4445
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GMAIL>;
4446
+ eventType: z.ZodEnum<{
4447
+ readonly EMAIL_RECEIVED: "email.received";
4448
+ }>;
4435
4449
  id: z.ZodString;
4436
- name: z.ZodString;
4437
- email: z.ZodString;
4438
- url: z.ZodString;
4439
- type: z.ZodString;
4440
- }, z.core.$strip>;
4441
- createdAt: z.ZodString;
4442
- url: z.ZodOptional<z.ZodString>;
4443
- organizationId: z.ZodString;
4444
- webhookTimestamp: z.ZodNumber;
4445
- webhookId: z.ZodString;
4446
- eventType: z.ZodLiteral<"issue.updated">;
4447
- action: z.ZodLiteral<"update">;
4448
- type: z.ZodLiteral<"Issue">;
4449
- data: z.ZodObject<{
4450
- id: z.ZodString;
4451
- createdAt: z.ZodString;
4452
- updatedAt: z.ZodString;
4453
- number: z.ZodNumber;
4454
- title: z.ZodString;
4455
- priority: z.ZodNumber;
4456
- sortOrder: z.ZodNumber;
4457
- prioritySortOrder: z.ZodNumber;
4458
- slaType: z.ZodString;
4459
- addedToTeamAt: z.ZodString;
4460
- trashed: z.ZodBoolean;
4450
+ threadId: z.ZodString;
4451
+ subject: z.ZodString;
4452
+ from: z.ZodString;
4453
+ to: z.ZodString;
4454
+ date: z.ZodString;
4455
+ internalDate: z.ZodString;
4456
+ messageId: z.ZodString;
4457
+ body: z.ZodString;
4458
+ snippet: z.ZodString;
4461
4459
  labelIds: z.ZodArray<z.ZodString>;
4462
- teamId: z.ZodString;
4463
- previousIdentifiers: z.ZodArray<z.ZodString>;
4464
- stateId: z.ZodString;
4465
- reactionData: z.ZodArray<z.ZodAny>;
4466
- priorityLabel: z.ZodString;
4467
- botActor: z.ZodOptional<z.ZodString>;
4468
- identifier: z.ZodString;
4469
- url: z.ZodString;
4470
- subscriberIds: z.ZodArray<z.ZodString>;
4471
- state: z.ZodObject<{
4460
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
4461
+ attachmentId: z.ZodString;
4462
+ filename: z.ZodString;
4463
+ mimeType: z.ZodString;
4464
+ contentId: z.ZodOptional<z.ZodString>;
4465
+ isInline: z.ZodBoolean;
4466
+ }, z.core.$strip>>>;
4467
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
4468
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.LINEAR>;
4469
+ actor: z.ZodObject<{
4472
4470
  id: z.ZodString;
4473
- color: z.ZodString;
4474
4471
  name: z.ZodString;
4472
+ email: z.ZodString;
4473
+ url: z.ZodString;
4475
4474
  type: z.ZodString;
4476
4475
  }, z.core.$strip>;
4477
- team: z.ZodObject<{
4476
+ createdAt: z.ZodString;
4477
+ url: z.ZodOptional<z.ZodString>;
4478
+ organizationId: z.ZodString;
4479
+ webhookTimestamp: z.ZodNumber;
4480
+ webhookId: z.ZodString;
4481
+ eventType: z.ZodLiteral<"issue.created">;
4482
+ action: z.ZodLiteral<"create">;
4483
+ type: z.ZodLiteral<"Issue">;
4484
+ data: z.ZodObject<{
4478
4485
  id: z.ZodString;
4479
- key: z.ZodString;
4480
- name: z.ZodString;
4486
+ createdAt: z.ZodString;
4487
+ updatedAt: z.ZodString;
4488
+ number: z.ZodNumber;
4489
+ title: z.ZodString;
4490
+ priority: z.ZodNumber;
4491
+ sortOrder: z.ZodNumber;
4492
+ prioritySortOrder: z.ZodNumber;
4493
+ slaType: z.ZodString;
4494
+ addedToTeamAt: z.ZodString;
4495
+ trashed: z.ZodBoolean;
4496
+ labelIds: z.ZodArray<z.ZodString>;
4497
+ teamId: z.ZodString;
4498
+ previousIdentifiers: z.ZodArray<z.ZodString>;
4499
+ stateId: z.ZodString;
4500
+ reactionData: z.ZodArray<z.ZodAny>;
4501
+ priorityLabel: z.ZodString;
4502
+ botActor: z.ZodOptional<z.ZodString>;
4503
+ identifier: z.ZodString;
4504
+ url: z.ZodString;
4505
+ subscriberIds: z.ZodArray<z.ZodString>;
4506
+ state: z.ZodObject<{
4507
+ id: z.ZodString;
4508
+ color: z.ZodString;
4509
+ name: z.ZodString;
4510
+ type: z.ZodString;
4511
+ }, z.core.$strip>;
4512
+ team: z.ZodObject<{
4513
+ id: z.ZodString;
4514
+ key: z.ZodString;
4515
+ name: z.ZodString;
4516
+ }, z.core.$strip>;
4517
+ labels: z.ZodArray<z.ZodAny>;
4518
+ description: z.ZodOptional<z.ZodString>;
4519
+ descriptionData: z.ZodOptional<z.ZodString>;
4520
+ assignee: z.ZodOptional<z.ZodObject<{
4521
+ id: z.ZodString;
4522
+ name: z.ZodString;
4523
+ }, z.core.$strip>>;
4524
+ projectId: z.ZodOptional<z.ZodString>;
4481
4525
  }, z.core.$strip>;
4482
- labels: z.ZodArray<z.ZodAny>;
4483
- description: z.ZodOptional<z.ZodString>;
4484
- descriptionData: z.ZodOptional<z.ZodString>;
4485
- assignee: z.ZodOptional<z.ZodObject<{
4526
+ }, z.core.$strip>, z.ZodObject<{
4527
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.LINEAR>;
4528
+ actor: z.ZodObject<{
4486
4529
  id: z.ZodString;
4487
4530
  name: z.ZodString;
4488
- }, z.core.$strip>>;
4489
- projectId: z.ZodOptional<z.ZodString>;
4490
- }, z.core.$strip>;
4491
- }, z.core.$strip>, z.ZodObject<{
4492
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.LINEAR>;
4493
- actor: z.ZodObject<{
4494
- id: z.ZodString;
4495
- name: z.ZodString;
4496
- email: z.ZodString;
4497
- url: z.ZodString;
4498
- type: z.ZodString;
4499
- }, z.core.$strip>;
4500
- createdAt: z.ZodString;
4501
- url: z.ZodOptional<z.ZodString>;
4502
- organizationId: z.ZodString;
4503
- webhookTimestamp: z.ZodNumber;
4504
- webhookId: z.ZodString;
4505
- eventType: z.ZodLiteral<"comment.created">;
4506
- action: z.ZodLiteral<"create">;
4507
- type: z.ZodLiteral<"Comment">;
4508
- data: z.ZodObject<{
4509
- id: z.ZodString;
4510
- body: z.ZodOptional<z.ZodString>;
4511
- issueId: z.ZodOptional<z.ZodString>;
4512
- }, z.core.$loose>;
4513
- }, z.core.$strip>], "eventType">, z.ZodDiscriminatedUnion<[z.ZodObject<{
4514
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.WORKOS>;
4515
- eventId: z.ZodString;
4516
- createdAt: z.ZodString;
4517
- eventType: z.ZodLiteral<"user.created">;
4518
- user: z.ZodObject<{
4519
- id: z.ZodString;
4520
- email: z.ZodString;
4521
- firstName: z.ZodOptional<z.ZodString>;
4522
- lastName: z.ZodOptional<z.ZodString>;
4523
- emailVerified: z.ZodBoolean;
4524
- profilePictureUrl: z.ZodOptional<z.ZodString>;
4525
- }, z.core.$strip>;
4526
- }, z.core.$strip>, z.ZodObject<{
4527
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.WORKOS>;
4528
- eventId: z.ZodString;
4529
- createdAt: z.ZodString;
4530
- eventType: z.ZodLiteral<"user.updated">;
4531
- user: z.ZodObject<{
4532
- id: z.ZodString;
4533
- email: z.ZodString;
4534
- firstName: z.ZodOptional<z.ZodString>;
4535
- lastName: z.ZodOptional<z.ZodString>;
4536
- emailVerified: z.ZodBoolean;
4537
- profilePictureUrl: z.ZodOptional<z.ZodString>;
4538
- }, z.core.$strip>;
4539
- }, z.core.$strip>, z.ZodObject<{
4540
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.WORKOS>;
4541
- eventId: z.ZodString;
4542
- createdAt: z.ZodString;
4543
- eventType: z.ZodLiteral<"user.deleted">;
4544
- user: z.ZodObject<{
4545
- id: z.ZodString;
4546
- email: z.ZodString;
4547
- firstName: z.ZodOptional<z.ZodString>;
4548
- lastName: z.ZodOptional<z.ZodString>;
4549
- emailVerified: z.ZodBoolean;
4550
- profilePictureUrl: z.ZodOptional<z.ZodString>;
4551
- }, z.core.$strip>;
4552
- }, z.core.$strip>, z.ZodObject<{
4553
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.WORKOS>;
4554
- eventId: z.ZodString;
4555
- createdAt: z.ZodString;
4556
- eventType: z.ZodLiteral<"organization_membership.created">;
4557
- membership: z.ZodObject<{
4558
- id: z.ZodString;
4559
- userId: z.ZodString;
4560
- organizationId: z.ZodString;
4561
- role: z.ZodObject<{
4562
- slug: z.ZodString;
4531
+ email: z.ZodString;
4532
+ url: z.ZodString;
4533
+ type: z.ZodString;
4563
4534
  }, z.core.$strip>;
4564
- status: z.ZodString;
4565
- }, z.core.$strip>;
4566
- }, z.core.$strip>, z.ZodObject<{
4567
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.WORKOS>;
4568
- eventId: z.ZodString;
4569
- createdAt: z.ZodString;
4570
- eventType: z.ZodLiteral<"organization_membership.updated">;
4571
- membership: z.ZodObject<{
4572
- id: z.ZodString;
4573
- userId: z.ZodString;
4535
+ createdAt: z.ZodString;
4536
+ url: z.ZodOptional<z.ZodString>;
4574
4537
  organizationId: z.ZodString;
4575
- role: z.ZodObject<{
4576
- slug: z.ZodString;
4577
- }, z.core.$strip>;
4578
- status: z.ZodString;
4579
- }, z.core.$strip>;
4580
- }, z.core.$strip>, z.ZodObject<{
4581
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.WORKOS>;
4582
- eventId: z.ZodString;
4583
- createdAt: z.ZodString;
4584
- eventType: z.ZodLiteral<"organization_membership.deleted">;
4585
- membership: z.ZodObject<{
4586
- id: z.ZodString;
4587
- userId: z.ZodString;
4588
- organizationId: z.ZodString;
4589
- role: z.ZodObject<{
4590
- slug: z.ZodString;
4591
- }, z.core.$strip>;
4592
- status: z.ZodString;
4593
- }, z.core.$strip>;
4594
- }, z.core.$strip>, z.ZodObject<{
4595
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.WORKOS>;
4596
- eventId: z.ZodString;
4597
- createdAt: z.ZodString;
4598
- eventType: z.ZodLiteral<"invitation.created">;
4599
- invitation: z.ZodObject<{
4600
- id: z.ZodString;
4601
- email: z.ZodString;
4602
- organizationId: z.ZodString;
4603
- inviterEmail: z.ZodOptional<z.ZodString>;
4604
- state: z.ZodString;
4605
- acceptedAt: z.ZodOptional<z.ZodString>;
4606
- }, z.core.$strip>;
4607
- user: z.ZodOptional<z.ZodObject<{
4608
- id: z.ZodString;
4609
- email: z.ZodString;
4610
- firstName: z.ZodOptional<z.ZodString>;
4611
- lastName: z.ZodOptional<z.ZodString>;
4612
- emailVerified: z.ZodBoolean;
4613
- profilePictureUrl: z.ZodOptional<z.ZodString>;
4614
- }, z.core.$strip>>;
4615
- }, z.core.$strip>, z.ZodObject<{
4616
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.WORKOS>;
4617
- eventId: z.ZodString;
4618
- createdAt: z.ZodString;
4619
- eventType: z.ZodLiteral<"invitation.accepted">;
4620
- invitation: z.ZodObject<{
4621
- id: z.ZodString;
4622
- email: z.ZodString;
4623
- organizationId: z.ZodString;
4624
- inviterEmail: z.ZodOptional<z.ZodString>;
4625
- state: z.ZodString;
4626
- acceptedAt: z.ZodOptional<z.ZodString>;
4627
- }, z.core.$strip>;
4628
- user: z.ZodOptional<z.ZodObject<{
4629
- id: z.ZodString;
4630
- email: z.ZodString;
4631
- firstName: z.ZodOptional<z.ZodString>;
4632
- lastName: z.ZodOptional<z.ZodString>;
4633
- emailVerified: z.ZodBoolean;
4634
- profilePictureUrl: z.ZodOptional<z.ZodString>;
4635
- }, z.core.$strip>>;
4636
- }, z.core.$strip>, z.ZodObject<{
4637
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.WORKOS>;
4638
- eventId: z.ZodString;
4639
- createdAt: z.ZodString;
4640
- eventType: z.ZodLiteral<"invitation.resent">;
4641
- invitation: z.ZodObject<{
4642
- id: z.ZodString;
4643
- email: z.ZodString;
4644
- organizationId: z.ZodString;
4645
- inviterEmail: z.ZodOptional<z.ZodString>;
4646
- state: z.ZodString;
4647
- acceptedAt: z.ZodOptional<z.ZodString>;
4648
- }, z.core.$strip>;
4649
- user: z.ZodOptional<z.ZodObject<{
4650
- id: z.ZodString;
4651
- email: z.ZodString;
4652
- firstName: z.ZodOptional<z.ZodString>;
4653
- lastName: z.ZodOptional<z.ZodString>;
4654
- emailVerified: z.ZodBoolean;
4655
- profilePictureUrl: z.ZodOptional<z.ZodString>;
4656
- }, z.core.$strip>>;
4657
- }, z.core.$strip>, z.ZodObject<{
4658
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.WORKOS>;
4659
- eventId: z.ZodString;
4660
- createdAt: z.ZodString;
4661
- eventType: z.ZodLiteral<"invitation.revoked">;
4662
- invitation: z.ZodObject<{
4663
- id: z.ZodString;
4664
- email: z.ZodString;
4665
- organizationId: z.ZodString;
4666
- inviterEmail: z.ZodOptional<z.ZodString>;
4667
- state: z.ZodString;
4668
- acceptedAt: z.ZodOptional<z.ZodString>;
4669
- }, z.core.$strip>;
4670
- user: z.ZodOptional<z.ZodObject<{
4671
- id: z.ZodString;
4672
- email: z.ZodString;
4673
- firstName: z.ZodOptional<z.ZodString>;
4674
- lastName: z.ZodOptional<z.ZodString>;
4675
- emailVerified: z.ZodBoolean;
4676
- profilePictureUrl: z.ZodOptional<z.ZodString>;
4677
- }, z.core.$strip>>;
4678
- }, z.core.$strip>, z.ZodObject<{
4679
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.WORKOS>;
4680
- eventId: z.ZodString;
4681
- createdAt: z.ZodString;
4682
- eventType: z.ZodLiteral<"organization.created">;
4683
- organization: z.ZodObject<{
4684
- id: z.ZodString;
4685
- name: z.ZodString;
4686
- }, z.core.$strip>;
4687
- }, z.core.$strip>], "eventType">, z.ZodObject<{
4688
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.WEBHOOK>;
4689
- eventType: z.ZodLiteral<"webhook">;
4690
- body: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4691
- headers: z.ZodRecord<z.ZodString, z.ZodString>;
4692
- method: z.ZodString;
4693
- }, z.core.$strip>, z.ZodObject<{
4694
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.CRON_JOB>;
4695
- eventType: z.ZodLiteral<"cron">;
4696
- inputId: z.ZodString;
4697
- isManualTrigger: z.ZodOptional<z.ZodBoolean>;
4698
- manualContext: z.ZodOptional<z.ZodString>;
4699
- }, z.core.$strip>, z.ZodObject<{
4700
- integrationType: z.ZodEnum<typeof import("./Integrations.js").IntegrationType>;
4701
- eventType: z.ZodLiteral<"manual_sample">;
4702
- }, z.core.$strip>]>;
4703
- skills: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
4704
- integrationId: z.ZodString;
4705
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.SLACK>;
4706
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.SLACK_OUTPUT>;
4707
- channelId: z.ZodNullable<z.ZodString>;
4708
- channelName: z.ZodNullable<z.ZodString>;
4709
- userIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
4710
- userNames: z.ZodNullable<z.ZodArray<z.ZodString>>;
4711
- listenToUserDms: z.ZodDefault<z.ZodBoolean>;
4712
- }, z.core.$strip>, z.ZodObject<{
4713
- integrationId: z.ZodString;
4714
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GMAIL>;
4715
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.GMAIL_OUTPUT>;
4716
- }, z.core.$strip>, z.ZodObject<{
4717
- integrationId: z.ZodString;
4718
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GMAIL>;
4719
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.GMAIL_DRAFT_OUTPUT>;
4720
- }, z.core.$strip>, z.ZodObject<{
4721
- integrationId: z.ZodString;
4722
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.NOTION>;
4723
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.NOTION>;
4724
- databaseIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
4725
- databaseNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
4726
- pageIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
4727
- pageNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
4728
- }, z.core.$strip>, z.ZodObject<{
4729
- integrationId: z.ZodString;
4730
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.LINEAR>;
4731
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.LINEAR_OUTPUT>;
4732
- teamId: z.ZodNullable<z.ZodString>;
4733
- teamName: z.ZodNullable<z.ZodString>;
4734
- projectId: z.ZodNullable<z.ZodString>;
4735
- }, z.core.$strip>, z.ZodObject<{
4736
- integrationId: z.ZodString;
4737
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
4738
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.GITHUB>;
4739
- repositoryIds: z.ZodArray<z.ZodNumber>;
4740
- }, z.core.$strip>, z.ZodObject<{
4741
- integrationId: z.ZodString;
4742
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.POSTHOG>;
4743
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.POSTHOG>;
4744
- projectId: z.ZodString;
4745
- projectName: z.ZodNullable<z.ZodString>;
4746
- }, z.core.$strip>, z.ZodObject<{
4747
- integrationId: z.ZodString;
4748
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.DATADOG>;
4749
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.DATADOG>;
4750
- defaultIndexes: z.ZodDefault<z.ZodArray<z.ZodString>>;
4751
- }, z.core.$strip>, z.ZodObject<{
4752
- integrationId: z.ZodString;
4753
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.LAUNCHDARKLY>;
4754
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.LAUNCHDARKLY>;
4755
- projectKey: z.ZodString;
4756
- environmentKeys: z.ZodArray<z.ZodString>;
4757
- }, z.core.$strip>, z.ZodObject<{
4758
- integrationId: z.ZodLiteral<"system">;
4759
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.TERSE>;
4760
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.TERSE>;
4761
- }, z.core.$strip>, z.ZodObject<{
4762
- integrationId: z.ZodString;
4763
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.WORKOS>;
4764
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.WORKOS_OUTPUT>;
4765
- }, z.core.$strip>, z.ZodObject<{
4766
- integrationId: z.ZodString;
4767
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.ATTIO>;
4768
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.ATTIO_OUTPUT>;
4769
- objectSlug: z.ZodNullable<z.ZodString>;
4770
- }, z.core.$strip>, z.ZodObject<{
4771
- integrationId: z.ZodString;
4772
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.SNOWFLAKE>;
4773
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.SNOWFLAKE_OUTPUT>;
4774
- }, z.core.$strip>]>>;
4775
- toolApprovals: z.ZodArray<z.ZodString>;
4776
- options: z.ZodObject<{
4777
- maxTurns: z.ZodNumber;
4778
- requireApproval: z.ZodBoolean;
4779
- }, z.core.$strip>;
4780
- }, z.core.$strip>;
4781
- export declare const sdkAgentRunResponseBodySchema: z.ZodObject<{
4782
- success: z.ZodBoolean;
4783
- error: z.ZodOptional<z.ZodString>;
4784
- details: z.ZodOptional<z.ZodArray<z.ZodString>>;
4785
- contract: z.ZodOptional<z.ZodObject<{
4786
- responseMode: z.ZodLiteral<"streaming">;
4787
- supportsInterruptions: z.ZodBoolean;
4788
- }, z.core.$strip>>;
4789
- normalizedRequest: z.ZodOptional<z.ZodObject<{
4790
- prompt: z.ZodString;
4791
- event: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
4792
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.SLACK>;
4793
- channelId: z.ZodString;
4794
- channelName: z.ZodNullable<z.ZodString>;
4795
- userId: z.ZodString;
4796
- userName: z.ZodNullable<z.ZodString>;
4797
- text: z.ZodString;
4798
- timestamp: z.ZodString;
4799
- threadTs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4800
- threadTimestamp: z.ZodNullable<z.ZodString>;
4801
- teamId: z.ZodString;
4802
- permalink: z.ZodNullable<z.ZodString>;
4803
- channelType: z.ZodNullable<z.ZodEnum<typeof SlackChannelType>>;
4804
- blocks: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
4805
- attachments: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
4806
- files: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
4807
- eventType: z.ZodLiteral<"message">;
4808
- }, z.core.$strip>, z.ZodObject<{
4809
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.SLACK>;
4810
- channelId: z.ZodString;
4811
- channelName: z.ZodNullable<z.ZodString>;
4812
- userId: z.ZodString;
4813
- userName: z.ZodNullable<z.ZodString>;
4814
- text: z.ZodString;
4815
- timestamp: z.ZodString;
4816
- threadTs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4817
- threadTimestamp: z.ZodNullable<z.ZodString>;
4818
- teamId: z.ZodString;
4819
- permalink: z.ZodNullable<z.ZodString>;
4820
- channelType: z.ZodNullable<z.ZodEnum<typeof SlackChannelType>>;
4821
- blocks: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
4822
- attachments: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
4823
- files: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
4824
- eventType: z.ZodLiteral<"app_mention">;
4825
- }, z.core.$strip>, z.ZodObject<{
4826
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.SLACK>;
4827
- channelId: z.ZodString;
4828
- channelName: z.ZodNullable<z.ZodString>;
4829
- userId: z.ZodString;
4830
- userName: z.ZodNullable<z.ZodString>;
4831
- text: z.ZodString;
4832
- timestamp: z.ZodString;
4833
- threadTs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4834
- threadTimestamp: z.ZodNullable<z.ZodString>;
4835
- teamId: z.ZodString;
4836
- permalink: z.ZodNullable<z.ZodString>;
4837
- channelType: z.ZodNullable<z.ZodEnum<typeof SlackChannelType>>;
4838
- blocks: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
4839
- attachments: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
4840
- files: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
4841
- eventType: z.ZodLiteral<"reaction_added">;
4842
- reaction: z.ZodString;
4843
- itemType: z.ZodNullable<z.ZodString>;
4844
- itemUserId: z.ZodNullable<z.ZodString>;
4845
- itemChannelId: z.ZodNullable<z.ZodString>;
4846
- itemTimestamp: z.ZodNullable<z.ZodString>;
4847
- }, z.core.$strip>], "eventType">, z.ZodDiscriminatedUnion<[z.ZodObject<{
4848
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
4849
- username: z.ZodString;
4850
- installationId: z.ZodNumber;
4851
- repositoryName: z.ZodString;
4852
- repository: z.ZodObject<{
4853
- id: z.ZodNumber;
4854
- name: z.ZodString;
4855
- owner: z.ZodString;
4856
- defaultBranch: z.ZodString;
4857
- }, z.core.$strip>;
4858
- sender: z.ZodObject<{
4859
- login: z.ZodString;
4860
- email: z.ZodOptional<z.ZodString>;
4861
- }, z.core.$strip>;
4862
- eventType: z.ZodLiteral<"push">;
4863
- branch: z.ZodString;
4864
- commits: z.ZodArray<z.ZodObject<{
4865
- sha: z.ZodString;
4866
- message: z.ZodOptional<z.ZodString>;
4867
- name: z.ZodString;
4868
- fileDiffs: z.ZodArray<z.ZodObject<{
4869
- filename: z.ZodString;
4870
- diff: z.ZodString;
4871
- }, z.core.$strip>>;
4872
- }, z.core.$strip>>;
4873
- pullRequest: z.ZodOptional<z.ZodUndefined>;
4874
- }, z.core.$strip>, z.ZodObject<{
4875
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
4876
- username: z.ZodString;
4877
- installationId: z.ZodNumber;
4878
- repositoryName: z.ZodString;
4879
- repository: z.ZodObject<{
4880
- id: z.ZodNumber;
4881
- name: z.ZodString;
4882
- owner: z.ZodString;
4883
- defaultBranch: z.ZodString;
4884
- }, z.core.$strip>;
4885
- sender: z.ZodObject<{
4886
- login: z.ZodString;
4887
- email: z.ZodOptional<z.ZodString>;
4888
- }, z.core.$strip>;
4889
- pullRequest: z.ZodObject<{
4890
- id: z.ZodString;
4891
- number: z.ZodNumber;
4892
- title: z.ZodString;
4893
- body: z.ZodOptional<z.ZodString>;
4894
- state: z.ZodEnum<{
4895
- open: "open";
4896
- closed: "closed";
4897
- }>;
4898
- merged: z.ZodBoolean;
4899
- head: z.ZodObject<{
4900
- ref: z.ZodString;
4901
- sha: z.ZodString;
4902
- }, z.core.$strip>;
4903
- base: z.ZodObject<{
4904
- ref: z.ZodString;
4905
- sha: z.ZodString;
4906
- }, z.core.$strip>;
4907
- user: z.ZodObject<{
4908
- login: z.ZodString;
4909
- email: z.ZodOptional<z.ZodString>;
4910
- }, z.core.$strip>;
4911
- author: z.ZodOptional<z.ZodObject<{
4912
- login: z.ZodString;
4913
- email: z.ZodOptional<z.ZodString>;
4914
- }, z.core.$strip>>;
4915
- url: z.ZodOptional<z.ZodString>;
4916
- }, z.core.$strip>;
4917
- branch: z.ZodOptional<z.ZodString>;
4918
- commits: z.ZodArray<z.ZodObject<{
4919
- sha: z.ZodString;
4920
- message: z.ZodOptional<z.ZodString>;
4921
- name: z.ZodString;
4922
- fileDiffs: z.ZodArray<z.ZodObject<{
4923
- filename: z.ZodString;
4924
- diff: z.ZodString;
4925
- }, z.core.$strip>>;
4926
- }, z.core.$strip>>;
4927
- eventType: z.ZodLiteral<"pull_request.opened">;
4928
- }, z.core.$strip>, z.ZodObject<{
4929
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
4930
- username: z.ZodString;
4931
- installationId: z.ZodNumber;
4932
- repositoryName: z.ZodString;
4933
- repository: z.ZodObject<{
4934
- id: z.ZodNumber;
4935
- name: z.ZodString;
4936
- owner: z.ZodString;
4937
- defaultBranch: z.ZodString;
4938
- }, z.core.$strip>;
4939
- sender: z.ZodObject<{
4940
- login: z.ZodString;
4941
- email: z.ZodOptional<z.ZodString>;
4942
- }, z.core.$strip>;
4943
- pullRequest: z.ZodObject<{
4944
- id: z.ZodString;
4945
- number: z.ZodNumber;
4946
- title: z.ZodString;
4947
- body: z.ZodOptional<z.ZodString>;
4948
- state: z.ZodEnum<{
4949
- open: "open";
4950
- closed: "closed";
4951
- }>;
4952
- merged: z.ZodBoolean;
4953
- head: z.ZodObject<{
4954
- ref: z.ZodString;
4955
- sha: z.ZodString;
4956
- }, z.core.$strip>;
4957
- base: z.ZodObject<{
4958
- ref: z.ZodString;
4959
- sha: z.ZodString;
4960
- }, z.core.$strip>;
4961
- user: z.ZodObject<{
4962
- login: z.ZodString;
4963
- email: z.ZodOptional<z.ZodString>;
4964
- }, z.core.$strip>;
4965
- author: z.ZodOptional<z.ZodObject<{
4966
- login: z.ZodString;
4967
- email: z.ZodOptional<z.ZodString>;
4968
- }, z.core.$strip>>;
4969
- url: z.ZodOptional<z.ZodString>;
4970
- }, z.core.$strip>;
4971
- branch: z.ZodOptional<z.ZodString>;
4972
- commits: z.ZodArray<z.ZodObject<{
4973
- sha: z.ZodString;
4974
- message: z.ZodOptional<z.ZodString>;
4975
- name: z.ZodString;
4976
- fileDiffs: z.ZodArray<z.ZodObject<{
4977
- filename: z.ZodString;
4978
- diff: z.ZodString;
4979
- }, z.core.$strip>>;
4980
- }, z.core.$strip>>;
4981
- eventType: z.ZodLiteral<"pull_request.synchronize">;
4982
- }, z.core.$strip>, z.ZodObject<{
4983
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
4984
- username: z.ZodString;
4985
- installationId: z.ZodNumber;
4986
- repositoryName: z.ZodString;
4987
- repository: z.ZodObject<{
4988
- id: z.ZodNumber;
4989
- name: z.ZodString;
4990
- owner: z.ZodString;
4991
- defaultBranch: z.ZodString;
4992
- }, z.core.$strip>;
4993
- sender: z.ZodObject<{
4994
- login: z.ZodString;
4995
- email: z.ZodOptional<z.ZodString>;
4996
- }, z.core.$strip>;
4997
- pullRequest: z.ZodObject<{
4998
- id: z.ZodString;
4999
- number: z.ZodNumber;
5000
- title: z.ZodString;
5001
- body: z.ZodOptional<z.ZodString>;
5002
- state: z.ZodEnum<{
5003
- open: "open";
5004
- closed: "closed";
5005
- }>;
5006
- merged: z.ZodBoolean;
5007
- head: z.ZodObject<{
5008
- ref: z.ZodString;
5009
- sha: z.ZodString;
5010
- }, z.core.$strip>;
5011
- base: z.ZodObject<{
5012
- ref: z.ZodString;
5013
- sha: z.ZodString;
5014
- }, z.core.$strip>;
5015
- user: z.ZodObject<{
5016
- login: z.ZodString;
5017
- email: z.ZodOptional<z.ZodString>;
5018
- }, z.core.$strip>;
5019
- author: z.ZodOptional<z.ZodObject<{
5020
- login: z.ZodString;
5021
- email: z.ZodOptional<z.ZodString>;
5022
- }, z.core.$strip>>;
5023
- url: z.ZodOptional<z.ZodString>;
5024
- }, z.core.$strip>;
5025
- branch: z.ZodOptional<z.ZodString>;
5026
- commits: z.ZodArray<z.ZodObject<{
5027
- sha: z.ZodString;
5028
- message: z.ZodOptional<z.ZodString>;
5029
- name: z.ZodString;
5030
- fileDiffs: z.ZodArray<z.ZodObject<{
5031
- filename: z.ZodString;
5032
- diff: z.ZodString;
5033
- }, z.core.$strip>>;
5034
- }, z.core.$strip>>;
5035
- eventType: z.ZodLiteral<"pull_request.closed">;
5036
- }, z.core.$strip>, z.ZodObject<{
5037
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
5038
- username: z.ZodString;
5039
- installationId: z.ZodNumber;
5040
- repositoryName: z.ZodString;
5041
- repository: z.ZodObject<{
5042
- id: z.ZodNumber;
5043
- name: z.ZodString;
5044
- owner: z.ZodString;
5045
- defaultBranch: z.ZodString;
5046
- }, z.core.$strip>;
5047
- sender: z.ZodObject<{
5048
- login: z.ZodString;
5049
- email: z.ZodOptional<z.ZodString>;
5050
- }, z.core.$strip>;
5051
- pullRequest: z.ZodObject<{
5052
- id: z.ZodString;
5053
- number: z.ZodNumber;
5054
- title: z.ZodString;
5055
- body: z.ZodOptional<z.ZodString>;
5056
- state: z.ZodEnum<{
5057
- open: "open";
5058
- closed: "closed";
5059
- }>;
5060
- merged: z.ZodBoolean;
5061
- head: z.ZodObject<{
5062
- ref: z.ZodString;
5063
- sha: z.ZodString;
5064
- }, z.core.$strip>;
5065
- base: z.ZodObject<{
5066
- ref: z.ZodString;
5067
- sha: z.ZodString;
5068
- }, z.core.$strip>;
5069
- user: z.ZodObject<{
5070
- login: z.ZodString;
5071
- email: z.ZodOptional<z.ZodString>;
5072
- }, z.core.$strip>;
5073
- author: z.ZodOptional<z.ZodObject<{
5074
- login: z.ZodString;
5075
- email: z.ZodOptional<z.ZodString>;
5076
- }, z.core.$strip>>;
5077
- url: z.ZodOptional<z.ZodString>;
5078
- }, z.core.$strip>;
5079
- branch: z.ZodOptional<z.ZodString>;
5080
- commits: z.ZodArray<z.ZodObject<{
5081
- sha: z.ZodString;
5082
- message: z.ZodOptional<z.ZodString>;
5083
- name: z.ZodString;
5084
- fileDiffs: z.ZodArray<z.ZodObject<{
5085
- filename: z.ZodString;
5086
- diff: z.ZodString;
5087
- }, z.core.$strip>>;
5088
- }, z.core.$strip>>;
5089
- eventType: z.ZodLiteral<"pull_request.merged">;
5090
- }, z.core.$strip>], "eventType">, z.ZodObject<{
5091
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GMAIL>;
5092
- eventType: z.ZodEnum<{
5093
- readonly EMAIL_RECEIVED: "email.received";
5094
- }>;
5095
- id: z.ZodString;
5096
- threadId: z.ZodString;
5097
- subject: z.ZodString;
5098
- from: z.ZodString;
5099
- to: z.ZodString;
5100
- date: z.ZodString;
5101
- internalDate: z.ZodString;
5102
- messageId: z.ZodString;
5103
- body: z.ZodString;
5104
- snippet: z.ZodString;
5105
- labelIds: z.ZodArray<z.ZodString>;
5106
- attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
5107
- attachmentId: z.ZodString;
5108
- filename: z.ZodString;
5109
- mimeType: z.ZodString;
5110
- contentId: z.ZodOptional<z.ZodString>;
5111
- isInline: z.ZodBoolean;
5112
- }, z.core.$strip>>>;
5113
- }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
5114
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.LINEAR>;
5115
- actor: z.ZodObject<{
5116
- id: z.ZodString;
5117
- name: z.ZodString;
5118
- email: z.ZodString;
5119
- url: z.ZodString;
5120
- type: z.ZodString;
5121
- }, z.core.$strip>;
5122
- createdAt: z.ZodString;
5123
- url: z.ZodOptional<z.ZodString>;
5124
- organizationId: z.ZodString;
5125
- webhookTimestamp: z.ZodNumber;
5126
- webhookId: z.ZodString;
5127
- eventType: z.ZodLiteral<"issue.created">;
5128
- action: z.ZodLiteral<"create">;
5129
- type: z.ZodLiteral<"Issue">;
5130
- data: z.ZodObject<{
5131
- id: z.ZodString;
5132
- createdAt: z.ZodString;
5133
- updatedAt: z.ZodString;
5134
- number: z.ZodNumber;
5135
- title: z.ZodString;
5136
- priority: z.ZodNumber;
5137
- sortOrder: z.ZodNumber;
5138
- prioritySortOrder: z.ZodNumber;
5139
- slaType: z.ZodString;
5140
- addedToTeamAt: z.ZodString;
5141
- trashed: z.ZodBoolean;
5142
- labelIds: z.ZodArray<z.ZodString>;
5143
- teamId: z.ZodString;
5144
- previousIdentifiers: z.ZodArray<z.ZodString>;
5145
- stateId: z.ZodString;
5146
- reactionData: z.ZodArray<z.ZodAny>;
5147
- priorityLabel: z.ZodString;
5148
- botActor: z.ZodOptional<z.ZodString>;
5149
- identifier: z.ZodString;
5150
- url: z.ZodString;
5151
- subscriberIds: z.ZodArray<z.ZodString>;
5152
- state: z.ZodObject<{
5153
- id: z.ZodString;
5154
- color: z.ZodString;
5155
- name: z.ZodString;
5156
- type: z.ZodString;
5157
- }, z.core.$strip>;
5158
- team: z.ZodObject<{
5159
- id: z.ZodString;
5160
- key: z.ZodString;
5161
- name: z.ZodString;
5162
- }, z.core.$strip>;
5163
- labels: z.ZodArray<z.ZodAny>;
5164
- description: z.ZodOptional<z.ZodString>;
5165
- descriptionData: z.ZodOptional<z.ZodString>;
5166
- assignee: z.ZodOptional<z.ZodObject<{
5167
- id: z.ZodString;
5168
- name: z.ZodString;
5169
- }, z.core.$strip>>;
5170
- projectId: z.ZodOptional<z.ZodString>;
5171
- }, z.core.$strip>;
5172
- }, z.core.$strip>, z.ZodObject<{
5173
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.LINEAR>;
5174
- actor: z.ZodObject<{
5175
- id: z.ZodString;
5176
- name: z.ZodString;
5177
- email: z.ZodString;
5178
- url: z.ZodString;
5179
- type: z.ZodString;
5180
- }, z.core.$strip>;
5181
- createdAt: z.ZodString;
5182
- url: z.ZodOptional<z.ZodString>;
5183
- organizationId: z.ZodString;
5184
- webhookTimestamp: z.ZodNumber;
5185
- webhookId: z.ZodString;
5186
- eventType: z.ZodLiteral<"issue.updated">;
5187
- action: z.ZodLiteral<"update">;
5188
- type: z.ZodLiteral<"Issue">;
5189
- data: z.ZodObject<{
5190
- id: z.ZodString;
5191
- createdAt: z.ZodString;
5192
- updatedAt: z.ZodString;
5193
- number: z.ZodNumber;
5194
- title: z.ZodString;
5195
- priority: z.ZodNumber;
5196
- sortOrder: z.ZodNumber;
5197
- prioritySortOrder: z.ZodNumber;
5198
- slaType: z.ZodString;
5199
- addedToTeamAt: z.ZodString;
5200
- trashed: z.ZodBoolean;
5201
- labelIds: z.ZodArray<z.ZodString>;
5202
- teamId: z.ZodString;
5203
- previousIdentifiers: z.ZodArray<z.ZodString>;
5204
- stateId: z.ZodString;
5205
- reactionData: z.ZodArray<z.ZodAny>;
5206
- priorityLabel: z.ZodString;
5207
- botActor: z.ZodOptional<z.ZodString>;
5208
- identifier: z.ZodString;
5209
- url: z.ZodString;
5210
- subscriberIds: z.ZodArray<z.ZodString>;
5211
- state: z.ZodObject<{
5212
- id: z.ZodString;
5213
- color: z.ZodString;
5214
- name: z.ZodString;
5215
- type: z.ZodString;
5216
- }, z.core.$strip>;
5217
- team: z.ZodObject<{
5218
- id: z.ZodString;
5219
- key: z.ZodString;
5220
- name: z.ZodString;
5221
- }, z.core.$strip>;
5222
- labels: z.ZodArray<z.ZodAny>;
5223
- description: z.ZodOptional<z.ZodString>;
5224
- descriptionData: z.ZodOptional<z.ZodString>;
5225
- assignee: z.ZodOptional<z.ZodObject<{
5226
- id: z.ZodString;
5227
- name: z.ZodString;
5228
- }, z.core.$strip>>;
5229
- projectId: z.ZodOptional<z.ZodString>;
4538
+ webhookTimestamp: z.ZodNumber;
4539
+ webhookId: z.ZodString;
4540
+ eventType: z.ZodLiteral<"issue.updated">;
4541
+ action: z.ZodLiteral<"update">;
4542
+ type: z.ZodLiteral<"Issue">;
4543
+ data: z.ZodObject<{
4544
+ id: z.ZodString;
4545
+ createdAt: z.ZodString;
4546
+ updatedAt: z.ZodString;
4547
+ number: z.ZodNumber;
4548
+ title: z.ZodString;
4549
+ priority: z.ZodNumber;
4550
+ sortOrder: z.ZodNumber;
4551
+ prioritySortOrder: z.ZodNumber;
4552
+ slaType: z.ZodString;
4553
+ addedToTeamAt: z.ZodString;
4554
+ trashed: z.ZodBoolean;
4555
+ labelIds: z.ZodArray<z.ZodString>;
4556
+ teamId: z.ZodString;
4557
+ previousIdentifiers: z.ZodArray<z.ZodString>;
4558
+ stateId: z.ZodString;
4559
+ reactionData: z.ZodArray<z.ZodAny>;
4560
+ priorityLabel: z.ZodString;
4561
+ botActor: z.ZodOptional<z.ZodString>;
4562
+ identifier: z.ZodString;
4563
+ url: z.ZodString;
4564
+ subscriberIds: z.ZodArray<z.ZodString>;
4565
+ state: z.ZodObject<{
4566
+ id: z.ZodString;
4567
+ color: z.ZodString;
4568
+ name: z.ZodString;
4569
+ type: z.ZodString;
4570
+ }, z.core.$strip>;
4571
+ team: z.ZodObject<{
4572
+ id: z.ZodString;
4573
+ key: z.ZodString;
4574
+ name: z.ZodString;
4575
+ }, z.core.$strip>;
4576
+ labels: z.ZodArray<z.ZodAny>;
4577
+ description: z.ZodOptional<z.ZodString>;
4578
+ descriptionData: z.ZodOptional<z.ZodString>;
4579
+ assignee: z.ZodOptional<z.ZodObject<{
4580
+ id: z.ZodString;
4581
+ name: z.ZodString;
4582
+ }, z.core.$strip>>;
4583
+ projectId: z.ZodOptional<z.ZodString>;
5230
4584
  }, z.core.$strip>;
5231
4585
  }, z.core.$strip>, z.ZodObject<{
5232
4586
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.LINEAR>;
@@ -5427,7 +4781,7 @@ export declare const sdkAgentRunResponseBodySchema: z.ZodObject<{
5427
4781
  }, z.core.$strip>], "eventType">, z.ZodObject<{
5428
4782
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.WEBHOOK>;
5429
4783
  eventType: z.ZodLiteral<"webhook">;
5430
- body: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4784
+ body: z.ZodUnknown;
5431
4785
  headers: z.ZodRecord<z.ZodString, z.ZodString>;
5432
4786
  method: z.ZodString;
5433
4787
  }, z.core.$strip>, z.ZodObject<{
@@ -5437,275 +4791,506 @@ export declare const sdkAgentRunResponseBodySchema: z.ZodObject<{
5437
4791
  isManualTrigger: z.ZodOptional<z.ZodBoolean>;
5438
4792
  manualContext: z.ZodOptional<z.ZodString>;
5439
4793
  }, z.core.$strip>, z.ZodObject<{
5440
- integrationType: z.ZodEnum<typeof import("./Integrations.js").IntegrationType>;
5441
- eventType: z.ZodLiteral<"manual_sample">;
5442
- }, z.core.$strip>]>;
5443
- skills: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
4794
+ integrationType: z.ZodEnum<typeof import("./Integrations.js").IntegrationType>;
4795
+ eventType: z.ZodLiteral<"manual_sample">;
4796
+ }, z.core.$strip>]>;
4797
+ skills: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
4798
+ integrationId: z.ZodString;
4799
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.SLACK>;
4800
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.SLACK_OUTPUT>;
4801
+ channelId: z.ZodNullable<z.ZodString>;
4802
+ channelName: z.ZodNullable<z.ZodString>;
4803
+ userIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
4804
+ userNames: z.ZodNullable<z.ZodArray<z.ZodString>>;
4805
+ listenToUserDms: z.ZodDefault<z.ZodBoolean>;
4806
+ }, z.core.$strip>, z.ZodObject<{
4807
+ integrationId: z.ZodString;
4808
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GMAIL>;
4809
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.GMAIL_OUTPUT>;
4810
+ }, z.core.$strip>, z.ZodObject<{
4811
+ integrationId: z.ZodString;
4812
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GMAIL>;
4813
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.GMAIL_DRAFT_OUTPUT>;
4814
+ }, z.core.$strip>, z.ZodObject<{
4815
+ integrationId: z.ZodString;
4816
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.NOTION>;
4817
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.NOTION>;
4818
+ databaseIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
4819
+ databaseNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
4820
+ pageIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
4821
+ pageNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
4822
+ }, z.core.$strip>, z.ZodObject<{
4823
+ integrationId: z.ZodString;
4824
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.LINEAR>;
4825
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.LINEAR_OUTPUT>;
4826
+ teamId: z.ZodNullable<z.ZodString>;
4827
+ teamName: z.ZodNullable<z.ZodString>;
4828
+ projectId: z.ZodNullable<z.ZodString>;
4829
+ }, z.core.$strip>, z.ZodObject<{
4830
+ integrationId: z.ZodString;
4831
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
4832
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.GITHUB>;
4833
+ repositoryIds: z.ZodArray<z.ZodNumber>;
4834
+ }, z.core.$strip>, z.ZodObject<{
4835
+ integrationId: z.ZodString;
4836
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.POSTHOG>;
4837
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.POSTHOG>;
4838
+ projectId: z.ZodString;
4839
+ projectName: z.ZodNullable<z.ZodString>;
4840
+ }, z.core.$strip>, z.ZodObject<{
4841
+ integrationId: z.ZodString;
4842
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.DATADOG>;
4843
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.DATADOG>;
4844
+ defaultIndexes: z.ZodDefault<z.ZodArray<z.ZodString>>;
4845
+ }, z.core.$strip>, z.ZodObject<{
4846
+ integrationId: z.ZodString;
4847
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.LAUNCHDARKLY>;
4848
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.LAUNCHDARKLY>;
4849
+ projectKey: z.ZodString;
4850
+ environmentKeys: z.ZodArray<z.ZodString>;
4851
+ }, z.core.$strip>, z.ZodObject<{
4852
+ integrationId: z.ZodLiteral<"system">;
4853
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.TERSE>;
4854
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.TERSE>;
4855
+ }, z.core.$strip>, z.ZodObject<{
4856
+ integrationId: z.ZodString;
4857
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.WORKOS>;
4858
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.WORKOS_OUTPUT>;
4859
+ }, z.core.$strip>, z.ZodObject<{
4860
+ integrationId: z.ZodString;
4861
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.ATTIO>;
4862
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.ATTIO_OUTPUT>;
4863
+ objectSlug: z.ZodNullable<z.ZodString>;
4864
+ }, z.core.$strip>, z.ZodObject<{
4865
+ integrationId: z.ZodString;
4866
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.SNOWFLAKE>;
4867
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.SNOWFLAKE_OUTPUT>;
4868
+ }, z.core.$strip>]>>;
4869
+ toolApprovals: z.ZodArray<z.ZodString>;
4870
+ options: z.ZodObject<{
4871
+ maxTurns: z.ZodNumber;
4872
+ requireApproval: z.ZodBoolean;
4873
+ }, z.core.$strip>;
4874
+ }, z.core.$strip>>;
4875
+ }, z.core.$strip>;
4876
+ export type SdkAgentRunResponseBody = z.infer<typeof sdkAgentRunResponseBodySchema>;
4877
+ export declare const toolApprovalRequestedPayloadSchema: z.ZodObject<{
4878
+ stepId: z.ZodString;
4879
+ toolName: z.ZodString;
4880
+ arguments: z.ZodString;
4881
+ }, z.core.$strip>;
4882
+ export declare const runStartedSchema: z.ZodObject<{
4883
+ type: z.ZodLiteral<"run_started">;
4884
+ runId: z.ZodString;
4885
+ }, z.core.$strip>;
4886
+ export declare const textSchema: z.ZodObject<{
4887
+ type: z.ZodLiteral<"text">;
4888
+ text: z.ZodString;
4889
+ }, z.core.$strip>;
4890
+ export declare const finalOutputSchema: z.ZodObject<{
4891
+ type: z.ZodLiteral<"final_output">;
4892
+ finalOutput: z.ZodString;
4893
+ }, z.core.$strip>;
4894
+ export declare const toolCallParamsSchema: z.ZodObject<{
4895
+ type: z.ZodLiteral<"tool_call_params">;
4896
+ toolCallParams: z.ZodString;
4897
+ }, z.core.$strip>;
4898
+ export declare const toolCallStartedSchema: z.ZodObject<{
4899
+ type: z.ZodLiteral<"tool_call_started">;
4900
+ toolCallStarted: z.ZodString;
4901
+ }, z.core.$strip>;
4902
+ export declare const toolCallCompletedSchema: z.ZodObject<{
4903
+ type: z.ZodLiteral<"tool_call_completed">;
4904
+ toolCallCompleted: z.ZodString;
4905
+ }, z.core.$strip>;
4906
+ export declare const toolApprovalRequestedSchema: z.ZodObject<{
4907
+ type: z.ZodLiteral<"tool_approval_requested">;
4908
+ toolApprovalRequested: z.ZodObject<{
4909
+ stepId: z.ZodString;
4910
+ toolName: z.ZodString;
4911
+ arguments: z.ZodString;
4912
+ }, z.core.$strip>;
4913
+ }, z.core.$strip>;
4914
+ export declare const actionSchema: z.ZodObject<{
4915
+ type: z.ZodLiteral<"action">;
4916
+ action: z.ZodObject<{
4917
+ action: z.ZodString;
4918
+ integration: z.ZodEnum<typeof import("./Integrations.js").IntegrationType>;
4919
+ target: z.ZodString;
4920
+ details: z.ZodString;
4921
+ url: z.ZodOptional<z.ZodString>;
4922
+ step_id: z.ZodOptional<z.ZodString>;
4923
+ type: z.ZodEnum<{
4924
+ error: "error";
4925
+ create: "create";
4926
+ update: "update";
4927
+ delete: "delete";
4928
+ read: "read";
4929
+ approve: "approve";
4930
+ }>;
4931
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
4932
+ output_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
4933
+ output_item_id: z.ZodString;
4934
+ output_item_type: z.ZodEnum<typeof import("./Configs.js").ConfigType>;
4935
+ }, z.core.$strip>>>;
4936
+ }, z.core.$strip>;
4937
+ }, z.core.$strip>;
4938
+ export declare const errorSchema: z.ZodObject<{
4939
+ type: z.ZodLiteral<"error">;
4940
+ message: z.ZodString;
4941
+ }, z.core.$strip>;
4942
+ export declare const doneSchema: z.ZodObject<{
4943
+ type: z.ZodLiteral<"done">;
4944
+ }, z.core.$strip>;
4945
+ export declare const sdkAgentStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4946
+ type: z.ZodLiteral<"run_started">;
4947
+ runId: z.ZodString;
4948
+ }, z.core.$strip>, z.ZodObject<{
4949
+ type: z.ZodLiteral<"text">;
4950
+ text: z.ZodString;
4951
+ }, z.core.$strip>, z.ZodObject<{
4952
+ type: z.ZodLiteral<"final_output">;
4953
+ finalOutput: z.ZodString;
4954
+ }, z.core.$strip>, z.ZodObject<{
4955
+ type: z.ZodLiteral<"tool_call_params">;
4956
+ toolCallParams: z.ZodString;
4957
+ }, z.core.$strip>, z.ZodObject<{
4958
+ type: z.ZodLiteral<"tool_call_started">;
4959
+ toolCallStarted: z.ZodString;
4960
+ }, z.core.$strip>, z.ZodObject<{
4961
+ type: z.ZodLiteral<"tool_call_completed">;
4962
+ toolCallCompleted: z.ZodString;
4963
+ }, z.core.$strip>, z.ZodObject<{
4964
+ type: z.ZodLiteral<"tool_approval_requested">;
4965
+ toolApprovalRequested: z.ZodObject<{
4966
+ stepId: z.ZodString;
4967
+ toolName: z.ZodString;
4968
+ arguments: z.ZodString;
4969
+ }, z.core.$strip>;
4970
+ }, z.core.$strip>, z.ZodObject<{
4971
+ type: z.ZodLiteral<"action">;
4972
+ action: z.ZodObject<{
4973
+ action: z.ZodString;
4974
+ integration: z.ZodEnum<typeof import("./Integrations.js").IntegrationType>;
4975
+ target: z.ZodString;
4976
+ details: z.ZodString;
4977
+ url: z.ZodOptional<z.ZodString>;
4978
+ step_id: z.ZodOptional<z.ZodString>;
4979
+ type: z.ZodEnum<{
4980
+ error: "error";
4981
+ create: "create";
4982
+ update: "update";
4983
+ delete: "delete";
4984
+ read: "read";
4985
+ approve: "approve";
4986
+ }>;
4987
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
4988
+ output_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
4989
+ output_item_id: z.ZodString;
4990
+ output_item_type: z.ZodEnum<typeof import("./Configs.js").ConfigType>;
4991
+ }, z.core.$strip>>>;
4992
+ }, z.core.$strip>;
4993
+ }, z.core.$strip>, z.ZodObject<{
4994
+ type: z.ZodLiteral<"error">;
4995
+ message: z.ZodString;
4996
+ }, z.core.$strip>, z.ZodObject<{
4997
+ type: z.ZodLiteral<"done">;
4998
+ }, z.core.$strip>], "type">;
4999
+ export type SdkAgentStreamEvent = z.infer<typeof sdkAgentStreamEventSchema> & {
5000
+ action?: RunHistoryAction;
5001
+ };
5002
+ export declare const sdkApprovalDecisionRequestBodySchema: z.ZodObject<{
5003
+ runId: z.ZodString;
5004
+ stepId: z.ZodString;
5005
+ approved: z.ZodBoolean;
5006
+ }, z.core.$strip>;
5007
+ export type SdkApprovalDecisionRequestBody = z.infer<typeof sdkApprovalDecisionRequestBodySchema>;
5008
+ export declare const sdkDeployJobSchema: z.ZodObject<{
5009
+ jobName: z.ZodString;
5010
+ triggers: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
5011
+ integrationId: z.ZodString;
5012
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GMAIL>;
5013
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.GMAIL>;
5014
+ eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<{
5015
+ readonly EMAIL_RECEIVED: "email.received";
5016
+ }>>>;
5017
+ }, z.core.$strip>, z.ZodObject<{
5018
+ integrationId: z.ZodString;
5019
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.SLACK>;
5020
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.SLACK>;
5021
+ channelId: z.ZodNullable<z.ZodString>;
5022
+ channelName: z.ZodNullable<z.ZodString>;
5023
+ listenToUserDms: z.ZodDefault<z.ZodBoolean>;
5024
+ userIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
5025
+ eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<{
5026
+ readonly MESSAGE: "message";
5027
+ readonly APP_MENTION: "app_mention";
5028
+ readonly REACTION_ADDED: "reaction_added";
5029
+ }>>>;
5030
+ }, z.core.$strip>, z.ZodObject<{
5031
+ integrationId: z.ZodString;
5032
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.LINEAR>;
5033
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.LINEAR_INPUT>;
5034
+ teamId: z.ZodNullable<z.ZodString>;
5035
+ projectId: z.ZodNullable<z.ZodString>;
5036
+ eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<{
5037
+ readonly ISSUE_CREATED: "issue.created";
5038
+ readonly ISSUE_UPDATED: "issue.updated";
5039
+ readonly COMMENT_CREATED: "comment.created";
5040
+ }>>>;
5041
+ }, z.core.$strip>, z.ZodObject<{
5042
+ integrationId: z.ZodString;
5043
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
5044
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.GITHUB>;
5045
+ repositoryIds: z.ZodArray<z.ZodNumber>;
5046
+ eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<{
5047
+ readonly PUSH: "push";
5048
+ readonly PR_OPENED: "pull_request.opened";
5049
+ readonly PR_MERGED: "pull_request.merged";
5050
+ readonly PR_CLOSED: "pull_request.closed";
5051
+ readonly PR_SYNCHRONIZE: "pull_request.synchronize";
5052
+ }>>>;
5053
+ }, z.core.$strip>, z.ZodObject<{
5054
+ integrationId: z.ZodLiteral<"system">;
5055
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.CRON_JOB>;
5056
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.TIME_TRIGGER>;
5057
+ cronExpression: z.ZodString;
5058
+ }, z.core.$strip>, z.ZodObject<{
5059
+ integrationId: z.ZodString;
5060
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.WORKOS>;
5061
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.WORKOS_INPUT>;
5062
+ eventTypes: z.ZodDefault<z.ZodArray<z.ZodEnum<{
5063
+ readonly USER_CREATED: "user.created";
5064
+ readonly USER_UPDATED: "user.updated";
5065
+ readonly USER_DELETED: "user.deleted";
5066
+ readonly ORGANIZATION_CREATED: "organization.created";
5067
+ readonly ORGANIZATION_MEMBERSHIP_CREATED: "organization_membership.created";
5068
+ readonly ORGANIZATION_MEMBERSHIP_UPDATED: "organization_membership.updated";
5069
+ readonly ORGANIZATION_MEMBERSHIP_DELETED: "organization_membership.deleted";
5070
+ readonly INVITATION_CREATED: "invitation.created";
5071
+ readonly INVITATION_ACCEPTED: "invitation.accepted";
5072
+ readonly INVITATION_RESENT: "invitation.resent";
5073
+ readonly INVITATION_REVOKED: "invitation.revoked";
5074
+ }>>>;
5075
+ }, z.core.$strip>, z.ZodObject<{
5076
+ integrationId: z.ZodLiteral<"system">;
5077
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.WEBHOOK>;
5078
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.WEBHOOK_INPUT>;
5079
+ }, z.core.$strip>]>>;
5080
+ }, z.core.$strip>;
5081
+ export type SdkDeployJob = z.infer<typeof sdkDeployJobSchema>;
5082
+ export declare const sdkDeployRequestBodySchema: z.ZodObject<{
5083
+ jobs: z.ZodArray<z.ZodObject<{
5084
+ jobName: z.ZodString;
5085
+ triggers: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
5086
+ integrationId: z.ZodString;
5087
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GMAIL>;
5088
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.GMAIL>;
5089
+ eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<{
5090
+ readonly EMAIL_RECEIVED: "email.received";
5091
+ }>>>;
5092
+ }, z.core.$strip>, z.ZodObject<{
5444
5093
  integrationId: z.ZodString;
5445
5094
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.SLACK>;
5446
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.SLACK_OUTPUT>;
5095
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.SLACK>;
5447
5096
  channelId: z.ZodNullable<z.ZodString>;
5448
5097
  channelName: z.ZodNullable<z.ZodString>;
5449
- userIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
5450
- userNames: z.ZodNullable<z.ZodArray<z.ZodString>>;
5451
5098
  listenToUserDms: z.ZodDefault<z.ZodBoolean>;
5452
- }, z.core.$strip>, z.ZodObject<{
5453
- integrationId: z.ZodString;
5454
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GMAIL>;
5455
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.GMAIL_OUTPUT>;
5456
- }, z.core.$strip>, z.ZodObject<{
5457
- integrationId: z.ZodString;
5458
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GMAIL>;
5459
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.GMAIL_DRAFT_OUTPUT>;
5460
- }, z.core.$strip>, z.ZodObject<{
5461
- integrationId: z.ZodString;
5462
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.NOTION>;
5463
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.NOTION>;
5464
- databaseIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
5465
- databaseNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
5466
- pageIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
5467
- pageNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
5099
+ userIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
5100
+ eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<{
5101
+ readonly MESSAGE: "message";
5102
+ readonly APP_MENTION: "app_mention";
5103
+ readonly REACTION_ADDED: "reaction_added";
5104
+ }>>>;
5468
5105
  }, z.core.$strip>, z.ZodObject<{
5469
5106
  integrationId: z.ZodString;
5470
5107
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.LINEAR>;
5471
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.LINEAR_OUTPUT>;
5108
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.LINEAR_INPUT>;
5472
5109
  teamId: z.ZodNullable<z.ZodString>;
5473
- teamName: z.ZodNullable<z.ZodString>;
5474
5110
  projectId: z.ZodNullable<z.ZodString>;
5111
+ eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<{
5112
+ readonly ISSUE_CREATED: "issue.created";
5113
+ readonly ISSUE_UPDATED: "issue.updated";
5114
+ readonly COMMENT_CREATED: "comment.created";
5115
+ }>>>;
5475
5116
  }, z.core.$strip>, z.ZodObject<{
5476
5117
  integrationId: z.ZodString;
5477
5118
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
5478
5119
  configType: z.ZodLiteral<import("./Configs.js").ConfigType.GITHUB>;
5479
5120
  repositoryIds: z.ZodArray<z.ZodNumber>;
5480
- }, z.core.$strip>, z.ZodObject<{
5481
- integrationId: z.ZodString;
5482
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.POSTHOG>;
5483
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.POSTHOG>;
5484
- projectId: z.ZodString;
5485
- projectName: z.ZodNullable<z.ZodString>;
5486
- }, z.core.$strip>, z.ZodObject<{
5487
- integrationId: z.ZodString;
5488
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.DATADOG>;
5489
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.DATADOG>;
5490
- defaultIndexes: z.ZodDefault<z.ZodArray<z.ZodString>>;
5491
- }, z.core.$strip>, z.ZodObject<{
5492
- integrationId: z.ZodString;
5493
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.LAUNCHDARKLY>;
5494
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.LAUNCHDARKLY>;
5495
- projectKey: z.ZodString;
5496
- environmentKeys: z.ZodArray<z.ZodString>;
5121
+ eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<{
5122
+ readonly PUSH: "push";
5123
+ readonly PR_OPENED: "pull_request.opened";
5124
+ readonly PR_MERGED: "pull_request.merged";
5125
+ readonly PR_CLOSED: "pull_request.closed";
5126
+ readonly PR_SYNCHRONIZE: "pull_request.synchronize";
5127
+ }>>>;
5497
5128
  }, z.core.$strip>, z.ZodObject<{
5498
5129
  integrationId: z.ZodLiteral<"system">;
5499
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.TERSE>;
5500
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.TERSE>;
5130
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.CRON_JOB>;
5131
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.TIME_TRIGGER>;
5132
+ cronExpression: z.ZodString;
5501
5133
  }, z.core.$strip>, z.ZodObject<{
5502
5134
  integrationId: z.ZodString;
5503
5135
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.WORKOS>;
5504
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.WORKOS_OUTPUT>;
5505
- }, z.core.$strip>, z.ZodObject<{
5506
- integrationId: z.ZodString;
5507
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.ATTIO>;
5508
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.ATTIO_OUTPUT>;
5509
- objectSlug: z.ZodNullable<z.ZodString>;
5136
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.WORKOS_INPUT>;
5137
+ eventTypes: z.ZodDefault<z.ZodArray<z.ZodEnum<{
5138
+ readonly USER_CREATED: "user.created";
5139
+ readonly USER_UPDATED: "user.updated";
5140
+ readonly USER_DELETED: "user.deleted";
5141
+ readonly ORGANIZATION_CREATED: "organization.created";
5142
+ readonly ORGANIZATION_MEMBERSHIP_CREATED: "organization_membership.created";
5143
+ readonly ORGANIZATION_MEMBERSHIP_UPDATED: "organization_membership.updated";
5144
+ readonly ORGANIZATION_MEMBERSHIP_DELETED: "organization_membership.deleted";
5145
+ readonly INVITATION_CREATED: "invitation.created";
5146
+ readonly INVITATION_ACCEPTED: "invitation.accepted";
5147
+ readonly INVITATION_RESENT: "invitation.resent";
5148
+ readonly INVITATION_REVOKED: "invitation.revoked";
5149
+ }>>>;
5510
5150
  }, z.core.$strip>, z.ZodObject<{
5511
- integrationId: z.ZodString;
5512
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.SNOWFLAKE>;
5513
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.SNOWFLAKE_OUTPUT>;
5151
+ integrationId: z.ZodLiteral<"system">;
5152
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.WEBHOOK>;
5153
+ configType: z.ZodLiteral<import("./Configs.js").ConfigType.WEBHOOK_INPUT>;
5514
5154
  }, z.core.$strip>]>>;
5515
- toolApprovals: z.ZodArray<z.ZodString>;
5516
- options: z.ZodObject<{
5517
- maxTurns: z.ZodNumber;
5518
- requireApproval: z.ZodBoolean;
5519
- }, z.core.$strip>;
5520
5155
  }, z.core.$strip>>;
5156
+ remoteServerUrl: z.ZodOptional<z.ZodString>;
5157
+ sourceZipBase64: z.ZodOptional<z.ZodString>;
5521
5158
  }, z.core.$strip>;
5522
- export type SdkAgentRunResponseBody = z.infer<typeof sdkAgentRunResponseBodySchema>;
5523
- export declare const toolApprovalRequestedPayloadSchema: z.ZodObject<{
5524
- stepId: z.ZodString;
5525
- toolName: z.ZodString;
5526
- arguments: z.ZodString;
5159
+ export type SdkDeployRequestBody = z.infer<typeof sdkDeployRequestBodySchema>;
5160
+ export declare const sdkDeployResultSchema: z.ZodObject<{
5161
+ jobName: z.ZodString;
5162
+ automationId: z.ZodString;
5163
+ isUpdate: z.ZodBoolean;
5164
+ signingSecret: z.ZodOptional<z.ZodString>;
5165
+ triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
5166
+ id: z.ZodString;
5167
+ metadata: z.ZodOptional<z.ZodObject<{
5168
+ webhookUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5169
+ }, z.core.$strip>>;
5170
+ }, z.core.$strip>>>;
5527
5171
  }, z.core.$strip>;
5528
- export declare const runStartedSchema: z.ZodObject<{
5529
- type: z.ZodLiteral<"run_started">;
5530
- runId: z.ZodString;
5172
+ export declare const sdkDeployRemovedSchema: z.ZodObject<{
5173
+ id: z.ZodString;
5174
+ name: z.ZodString;
5531
5175
  }, z.core.$strip>;
5532
- export declare const textSchema: z.ZodObject<{
5533
- type: z.ZodLiteral<"text">;
5534
- text: z.ZodString;
5176
+ export declare const sdkDeployResponseBodySchema: z.ZodObject<{
5177
+ success: z.ZodBoolean;
5178
+ results: z.ZodArray<z.ZodObject<{
5179
+ jobName: z.ZodString;
5180
+ automationId: z.ZodString;
5181
+ isUpdate: z.ZodBoolean;
5182
+ signingSecret: z.ZodOptional<z.ZodString>;
5183
+ triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
5184
+ id: z.ZodString;
5185
+ metadata: z.ZodOptional<z.ZodObject<{
5186
+ webhookUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5187
+ }, z.core.$strip>>;
5188
+ }, z.core.$strip>>>;
5189
+ }, z.core.$strip>>;
5190
+ removed: z.ZodArray<z.ZodObject<{
5191
+ id: z.ZodString;
5192
+ name: z.ZodString;
5193
+ }, z.core.$strip>>;
5194
+ error: z.ZodOptional<z.ZodString>;
5195
+ details: z.ZodOptional<z.ZodString>;
5535
5196
  }, z.core.$strip>;
5536
- export declare const finalOutputSchema: z.ZodObject<{
5537
- type: z.ZodLiteral<"final_output">;
5538
- finalOutput: z.ZodString;
5197
+ export type SdkDeployResponseBody = z.infer<typeof sdkDeployResponseBodySchema>;
5198
+ export declare const sdkJobServerCheckStepSchema: z.ZodEnum<{
5199
+ json: "json";
5200
+ http: "http";
5201
+ response_schema: "response_schema";
5202
+ challenge_echo: "challenge_echo";
5203
+ challenge_signature: "challenge_signature";
5204
+ }>;
5205
+ export type SdkJobServerCheckStep = z.infer<typeof sdkJobServerCheckStepSchema>;
5206
+ export declare const sdkJobServerCheckResponseSchema: z.ZodObject<{
5207
+ success: z.ZodBoolean;
5208
+ message: z.ZodString;
5209
+ triggerUrl: z.ZodOptional<z.ZodString>;
5210
+ step: z.ZodOptional<z.ZodEnum<{
5211
+ json: "json";
5212
+ http: "http";
5213
+ response_schema: "response_schema";
5214
+ challenge_echo: "challenge_echo";
5215
+ challenge_signature: "challenge_signature";
5216
+ }>>;
5217
+ httpStatus: z.ZodOptional<z.ZodNumber>;
5539
5218
  }, z.core.$strip>;
5540
- export declare const toolCallParamsSchema: z.ZodObject<{
5541
- type: z.ZodLiteral<"tool_call_params">;
5542
- toolCallParams: z.ZodString;
5219
+ export type SdkJobServerCheckResponse = z.infer<typeof sdkJobServerCheckResponseSchema>;
5220
+ export type AttioUpsertError = z.infer<typeof attioUpsertErrorSchema>;
5221
+ export declare const agentIdParamsSchema: z.ZodObject<{
5222
+ agentId: z.ZodString;
5543
5223
  }, z.core.$strip>;
5544
- export declare const toolCallStartedSchema: z.ZodObject<{
5545
- type: z.ZodLiteral<"tool_call_started">;
5546
- toolCallStarted: z.ZodString;
5224
+ export declare const agentAndImprovementParamsSchema: z.ZodObject<{
5225
+ agentId: z.ZodString;
5226
+ id: z.ZodString;
5547
5227
  }, z.core.$strip>;
5548
- export declare const toolCallCompletedSchema: z.ZodObject<{
5549
- type: z.ZodLiteral<"tool_call_completed">;
5550
- toolCallCompleted: z.ZodString;
5228
+ export declare const manualTriggerParamsSchema: z.ZodObject<{
5229
+ inputId: z.ZodString;
5551
5230
  }, z.core.$strip>;
5552
- export declare const toolApprovalRequestedSchema: z.ZodObject<{
5553
- type: z.ZodLiteral<"tool_approval_requested">;
5554
- toolApprovalRequested: z.ZodObject<{
5555
- stepId: z.ZodString;
5556
- toolName: z.ZodString;
5557
- arguments: z.ZodString;
5558
- }, z.core.$strip>;
5231
+ export declare const triggerWithEventParamsSchema: z.ZodObject<{
5232
+ automationId: z.ZodString;
5559
5233
  }, z.core.$strip>;
5560
- export declare const actionSchema: z.ZodObject<{
5561
- type: z.ZodLiteral<"action">;
5562
- action: z.ZodObject<{
5563
- action: z.ZodString;
5564
- integration: z.ZodEnum<typeof import("./Integrations.js").IntegrationType>;
5565
- target: z.ZodString;
5566
- details: z.ZodString;
5567
- url: z.ZodOptional<z.ZodString>;
5568
- step_id: z.ZodOptional<z.ZodString>;
5569
- type: z.ZodEnum<{
5570
- error: "error";
5571
- create: "create";
5572
- update: "update";
5573
- delete: "delete";
5574
- read: "read";
5575
- approve: "approve";
5576
- }>;
5577
- isReadOnly: z.ZodOptional<z.ZodBoolean>;
5578
- output_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
5579
- output_item_id: z.ZodString;
5580
- output_item_type: z.ZodEnum<typeof import("./Configs.js").ConfigType>;
5581
- }, z.core.$strip>>>;
5582
- }, z.core.$strip>;
5234
+ export declare const logoUploadUrlQuerySchema: z.ZodObject<{
5235
+ contentType: z.ZodString;
5583
5236
  }, z.core.$strip>;
5584
- export declare const errorSchema: z.ZodObject<{
5585
- type: z.ZodLiteral<"error">;
5586
- message: z.ZodString;
5237
+ export declare const logoParamsSchema: z.ZodObject<{
5238
+ organizationId: z.ZodString;
5587
5239
  }, z.core.$strip>;
5588
- export declare const doneSchema: z.ZodObject<{
5589
- type: z.ZodLiteral<"done">;
5240
+ export declare const webhookWorkOSTriggerParamsSchema: z.ZodObject<{
5241
+ integrationId: z.ZodString;
5590
5242
  }, z.core.$strip>;
5591
- export declare const sdkAgentStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
5592
- type: z.ZodLiteral<"run_started">;
5593
- runId: z.ZodString;
5594
- }, z.core.$strip>, z.ZodObject<{
5595
- type: z.ZodLiteral<"text">;
5596
- text: z.ZodString;
5597
- }, z.core.$strip>, z.ZodObject<{
5598
- type: z.ZodLiteral<"final_output">;
5599
- finalOutput: z.ZodString;
5600
- }, z.core.$strip>, z.ZodObject<{
5601
- type: z.ZodLiteral<"tool_call_params">;
5602
- toolCallParams: z.ZodString;
5603
- }, z.core.$strip>, z.ZodObject<{
5604
- type: z.ZodLiteral<"tool_call_started">;
5605
- toolCallStarted: z.ZodString;
5606
- }, z.core.$strip>, z.ZodObject<{
5607
- type: z.ZodLiteral<"tool_call_completed">;
5608
- toolCallCompleted: z.ZodString;
5609
- }, z.core.$strip>, z.ZodObject<{
5610
- type: z.ZodLiteral<"tool_approval_requested">;
5611
- toolApprovalRequested: z.ZodObject<{
5612
- stepId: z.ZodString;
5613
- toolName: z.ZodString;
5614
- arguments: z.ZodString;
5615
- }, z.core.$strip>;
5616
- }, z.core.$strip>, z.ZodObject<{
5617
- type: z.ZodLiteral<"action">;
5618
- action: z.ZodObject<{
5619
- action: z.ZodString;
5620
- integration: z.ZodEnum<typeof import("./Integrations.js").IntegrationType>;
5621
- target: z.ZodString;
5622
- details: z.ZodString;
5623
- url: z.ZodOptional<z.ZodString>;
5624
- step_id: z.ZodOptional<z.ZodString>;
5625
- type: z.ZodEnum<{
5626
- error: "error";
5627
- create: "create";
5628
- update: "update";
5629
- delete: "delete";
5630
- read: "read";
5631
- approve: "approve";
5632
- }>;
5633
- isReadOnly: z.ZodOptional<z.ZodBoolean>;
5634
- output_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
5635
- output_item_id: z.ZodString;
5636
- output_item_type: z.ZodEnum<typeof import("./Configs.js").ConfigType>;
5637
- }, z.core.$strip>>>;
5638
- }, z.core.$strip>;
5639
- }, z.core.$strip>, z.ZodObject<{
5640
- type: z.ZodLiteral<"error">;
5641
- message: z.ZodString;
5642
- }, z.core.$strip>, z.ZodObject<{
5643
- type: z.ZodLiteral<"done">;
5644
- }, z.core.$strip>], "type">;
5645
- export type SdkAgentStreamEvent = z.infer<typeof sdkAgentStreamEventSchema> & {
5646
- action?: RunHistoryAction;
5647
- };
5648
- export declare const sdkApprovalDecisionRequestBodySchema: z.ZodObject<{
5649
- runId: z.ZodString;
5650
- stepId: z.ZodString;
5651
- approved: z.ZodBoolean;
5243
+ export declare const organizationCreateRequestSchema: z.ZodObject<{
5244
+ name: z.ZodString;
5245
+ firstName: z.ZodOptional<z.ZodString>;
5246
+ lastName: z.ZodOptional<z.ZodString>;
5247
+ }, z.core.$strip>;
5248
+ export type OrganizationCreateRequest = z.infer<typeof organizationCreateRequestSchema>;
5249
+ export declare const organizationSwitchRequestSchema: z.ZodObject<{
5250
+ organizationId: z.ZodString;
5251
+ }, z.core.$strip>;
5252
+ export type OrganizationSwitchRequest = z.infer<typeof organizationSwitchRequestSchema>;
5253
+ export declare const organizationUpdateRequestSchema: z.ZodObject<{
5254
+ name: z.ZodString;
5255
+ }, z.core.$strip>;
5256
+ export type OrganizationUpdateRequest = z.infer<typeof organizationUpdateRequestSchema>;
5257
+ export declare const apiTokenCreateRequestSchema: z.ZodObject<{
5258
+ name: z.ZodString;
5259
+ }, z.core.$strip>;
5260
+ export type ApiTokenCreateRequest = z.infer<typeof apiTokenCreateRequestSchema>;
5261
+ export declare const apiTokenUpdateRequestSchema: z.ZodObject<{
5262
+ name: z.ZodString;
5263
+ }, z.core.$strip>;
5264
+ export type ApiTokenUpdateRequest = z.infer<typeof apiTokenUpdateRequestSchema>;
5265
+ export declare const deviceTokenExchangeRequestSchema: z.ZodObject<{
5266
+ accessToken: z.ZodString;
5267
+ }, z.core.$strip>;
5268
+ export type DeviceTokenExchangeRequest = z.infer<typeof deviceTokenExchangeRequestSchema>;
5269
+ export declare const sdkToolExecuteRequestSchema: z.ZodObject<{
5270
+ toolName: z.ZodString;
5271
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5652
5272
  }, z.core.$strip>;
5653
- export type SdkApprovalDecisionRequestBody = z.infer<typeof sdkApprovalDecisionRequestBodySchema>;
5654
- export declare const sdkDeployJobSchema: z.ZodObject<{
5655
- jobName: z.ZodString;
5656
- triggers: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
5657
- integrationId: z.ZodString;
5658
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GMAIL>;
5659
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.GMAIL>;
5660
- eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<{
5661
- readonly EMAIL_RECEIVED: "email.received";
5662
- }>>>;
5663
- }, z.core.$strip>, z.ZodObject<{
5664
- integrationId: z.ZodString;
5665
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.SLACK>;
5666
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.SLACK>;
5667
- channelId: z.ZodNullable<z.ZodString>;
5668
- channelName: z.ZodNullable<z.ZodString>;
5669
- listenToUserDms: z.ZodDefault<z.ZodBoolean>;
5670
- userIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
5671
- eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<{
5273
+ export type SdkToolExecuteRequest = z.infer<typeof sdkToolExecuteRequestSchema>;
5274
+ export declare const sdkRunTriggerEventResponseSchema: z.ZodObject<{
5275
+ event: z.ZodObject<{
5276
+ integrationType: z.ZodEnum<typeof import("./Integrations.js").IntegrationType>;
5277
+ eventType: z.ZodUnion<readonly [z.ZodEnum<{
5672
5278
  readonly MESSAGE: "message";
5673
5279
  readonly APP_MENTION: "app_mention";
5674
5280
  readonly REACTION_ADDED: "reaction_added";
5675
- }>>>;
5676
- }, z.core.$strip>, z.ZodObject<{
5677
- integrationId: z.ZodString;
5678
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.LINEAR>;
5679
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.LINEAR_INPUT>;
5680
- teamId: z.ZodNullable<z.ZodString>;
5681
- projectId: z.ZodNullable<z.ZodString>;
5682
- eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<{
5683
- readonly ISSUE_CREATED: "issue.created";
5684
- readonly ISSUE_UPDATED: "issue.updated";
5685
- readonly COMMENT_CREATED: "comment.created";
5686
- }>>>;
5687
- }, z.core.$strip>, z.ZodObject<{
5688
- integrationId: z.ZodString;
5689
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
5690
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.GITHUB>;
5691
- repositoryIds: z.ZodArray<z.ZodNumber>;
5692
- eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<{
5281
+ }>, z.ZodEnum<{
5693
5282
  readonly PUSH: "push";
5694
5283
  readonly PR_OPENED: "pull_request.opened";
5695
5284
  readonly PR_MERGED: "pull_request.merged";
5696
5285
  readonly PR_CLOSED: "pull_request.closed";
5697
5286
  readonly PR_SYNCHRONIZE: "pull_request.synchronize";
5698
- }>>>;
5699
- }, z.core.$strip>, z.ZodObject<{
5700
- integrationId: z.ZodLiteral<"system">;
5701
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.CRON_JOB>;
5702
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.TIME_TRIGGER>;
5703
- cronExpression: z.ZodString;
5704
- }, z.core.$strip>, z.ZodObject<{
5705
- integrationId: z.ZodString;
5706
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.WORKOS>;
5707
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.WORKOS_INPUT>;
5708
- eventTypes: z.ZodDefault<z.ZodArray<z.ZodEnum<{
5287
+ }>, z.ZodEnum<{
5288
+ readonly ISSUE_CREATED: "issue.created";
5289
+ readonly ISSUE_UPDATED: "issue.updated";
5290
+ readonly COMMENT_CREATED: "comment.created";
5291
+ }>, z.ZodEnum<{
5292
+ readonly EMAIL_RECEIVED: "email.received";
5293
+ }>, z.ZodEnum<{
5709
5294
  readonly USER_CREATED: "user.created";
5710
5295
  readonly USER_UPDATED: "user.updated";
5711
5296
  readonly USER_DELETED: "user.deleted";
@@ -5717,352 +5302,664 @@ export declare const sdkDeployJobSchema: z.ZodObject<{
5717
5302
  readonly INVITATION_ACCEPTED: "invitation.accepted";
5718
5303
  readonly INVITATION_RESENT: "invitation.resent";
5719
5304
  readonly INVITATION_REVOKED: "invitation.revoked";
5720
- }>>>;
5721
- }, z.core.$strip>, z.ZodObject<{
5722
- integrationId: z.ZodLiteral<"system">;
5723
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.WEBHOOK>;
5724
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.WEBHOOK_INPUT>;
5725
- }, z.core.$strip>]>>;
5726
- outputs: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
5727
- integrationId: z.ZodString;
5728
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.SLACK>;
5729
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.SLACK_OUTPUT>;
5730
- channelId: z.ZodNullable<z.ZodString>;
5731
- channelName: z.ZodNullable<z.ZodString>;
5732
- userIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
5733
- userNames: z.ZodNullable<z.ZodArray<z.ZodString>>;
5734
- listenToUserDms: z.ZodDefault<z.ZodBoolean>;
5735
- }, z.core.$strip>, z.ZodObject<{
5736
- integrationId: z.ZodString;
5737
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GMAIL>;
5738
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.GMAIL_OUTPUT>;
5739
- }, z.core.$strip>, z.ZodObject<{
5740
- integrationId: z.ZodString;
5741
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GMAIL>;
5742
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.GMAIL_DRAFT_OUTPUT>;
5743
- }, z.core.$strip>, z.ZodObject<{
5744
- integrationId: z.ZodString;
5745
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.NOTION>;
5746
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.NOTION>;
5747
- databaseIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
5748
- databaseNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
5749
- pageIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
5750
- pageNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
5751
- }, z.core.$strip>, z.ZodObject<{
5752
- integrationId: z.ZodString;
5753
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.LINEAR>;
5754
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.LINEAR_OUTPUT>;
5755
- teamId: z.ZodNullable<z.ZodString>;
5756
- teamName: z.ZodNullable<z.ZodString>;
5757
- projectId: z.ZodNullable<z.ZodString>;
5758
- }, z.core.$strip>, z.ZodObject<{
5759
- integrationId: z.ZodString;
5760
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
5761
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.GITHUB>;
5762
- repositoryIds: z.ZodArray<z.ZodNumber>;
5763
- }, z.core.$strip>, z.ZodObject<{
5764
- integrationId: z.ZodString;
5765
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.POSTHOG>;
5766
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.POSTHOG>;
5767
- projectId: z.ZodString;
5768
- projectName: z.ZodNullable<z.ZodString>;
5769
- }, z.core.$strip>, z.ZodObject<{
5770
- integrationId: z.ZodString;
5771
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.DATADOG>;
5772
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.DATADOG>;
5773
- defaultIndexes: z.ZodDefault<z.ZodArray<z.ZodString>>;
5774
- }, z.core.$strip>, z.ZodObject<{
5775
- integrationId: z.ZodString;
5776
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.LAUNCHDARKLY>;
5777
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.LAUNCHDARKLY>;
5778
- projectKey: z.ZodString;
5779
- environmentKeys: z.ZodArray<z.ZodString>;
5780
- }, z.core.$strip>, z.ZodObject<{
5781
- integrationId: z.ZodLiteral<"system">;
5782
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.TERSE>;
5783
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.TERSE>;
5784
- }, z.core.$strip>, z.ZodObject<{
5785
- integrationId: z.ZodString;
5786
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.WORKOS>;
5787
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.WORKOS_OUTPUT>;
5788
- }, z.core.$strip>, z.ZodObject<{
5789
- integrationId: z.ZodString;
5790
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.ATTIO>;
5791
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.ATTIO_OUTPUT>;
5792
- objectSlug: z.ZodNullable<z.ZodString>;
5793
- }, z.core.$strip>, z.ZodObject<{
5794
- integrationId: z.ZodString;
5795
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.SNOWFLAKE>;
5796
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.SNOWFLAKE_OUTPUT>;
5797
- }, z.core.$strip>]>>;
5798
- toolApprovals: z.ZodArray<z.ZodString>;
5799
- }, z.core.$strip>;
5800
- export type SdkDeployJob = z.infer<typeof sdkDeployJobSchema>;
5801
- export declare const sdkDeployRequestBodySchema: z.ZodObject<{
5802
- jobs: z.ZodArray<z.ZodObject<{
5803
- jobName: z.ZodString;
5804
- triggers: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
5805
- integrationId: z.ZodString;
5305
+ }>, z.ZodLiteral<"webhook">, z.ZodLiteral<"cron">, z.ZodLiteral<"manual_sample">]>;
5306
+ formattedContent: z.ZodString;
5307
+ debugLog: z.ZodString;
5308
+ data: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
5309
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.SLACK>;
5310
+ channelId: z.ZodString;
5311
+ channelName: z.ZodNullable<z.ZodString>;
5312
+ userId: z.ZodString;
5313
+ userName: z.ZodNullable<z.ZodString>;
5314
+ text: z.ZodString;
5315
+ timestamp: z.ZodString;
5316
+ threadTs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5317
+ threadTimestamp: z.ZodNullable<z.ZodString>;
5318
+ teamId: z.ZodString;
5319
+ permalink: z.ZodNullable<z.ZodString>;
5320
+ channelType: z.ZodNullable<z.ZodEnum<typeof SlackChannelType>>;
5321
+ blocks: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
5322
+ attachments: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
5323
+ files: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
5324
+ eventType: z.ZodLiteral<"message">;
5325
+ }, z.core.$strip>, z.ZodObject<{
5326
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.SLACK>;
5327
+ channelId: z.ZodString;
5328
+ channelName: z.ZodNullable<z.ZodString>;
5329
+ userId: z.ZodString;
5330
+ userName: z.ZodNullable<z.ZodString>;
5331
+ text: z.ZodString;
5332
+ timestamp: z.ZodString;
5333
+ threadTs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5334
+ threadTimestamp: z.ZodNullable<z.ZodString>;
5335
+ teamId: z.ZodString;
5336
+ permalink: z.ZodNullable<z.ZodString>;
5337
+ channelType: z.ZodNullable<z.ZodEnum<typeof SlackChannelType>>;
5338
+ blocks: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
5339
+ attachments: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
5340
+ files: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
5341
+ eventType: z.ZodLiteral<"app_mention">;
5342
+ }, z.core.$strip>, z.ZodObject<{
5343
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.SLACK>;
5344
+ channelId: z.ZodString;
5345
+ channelName: z.ZodNullable<z.ZodString>;
5346
+ userId: z.ZodString;
5347
+ userName: z.ZodNullable<z.ZodString>;
5348
+ text: z.ZodString;
5349
+ timestamp: z.ZodString;
5350
+ threadTs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5351
+ threadTimestamp: z.ZodNullable<z.ZodString>;
5352
+ teamId: z.ZodString;
5353
+ permalink: z.ZodNullable<z.ZodString>;
5354
+ channelType: z.ZodNullable<z.ZodEnum<typeof SlackChannelType>>;
5355
+ blocks: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
5356
+ attachments: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
5357
+ files: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
5358
+ eventType: z.ZodLiteral<"reaction_added">;
5359
+ reaction: z.ZodString;
5360
+ itemType: z.ZodNullable<z.ZodString>;
5361
+ itemUserId: z.ZodNullable<z.ZodString>;
5362
+ itemChannelId: z.ZodNullable<z.ZodString>;
5363
+ itemTimestamp: z.ZodNullable<z.ZodString>;
5364
+ }, z.core.$strip>], "eventType">, z.ZodDiscriminatedUnion<[z.ZodObject<{
5365
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
5366
+ username: z.ZodString;
5367
+ installationId: z.ZodNumber;
5368
+ repositoryName: z.ZodString;
5369
+ repository: z.ZodObject<{
5370
+ id: z.ZodNumber;
5371
+ name: z.ZodString;
5372
+ owner: z.ZodString;
5373
+ defaultBranch: z.ZodString;
5374
+ }, z.core.$strip>;
5375
+ sender: z.ZodObject<{
5376
+ login: z.ZodString;
5377
+ email: z.ZodOptional<z.ZodString>;
5378
+ }, z.core.$strip>;
5379
+ eventType: z.ZodLiteral<"push">;
5380
+ branch: z.ZodString;
5381
+ commits: z.ZodArray<z.ZodObject<{
5382
+ sha: z.ZodString;
5383
+ message: z.ZodOptional<z.ZodString>;
5384
+ name: z.ZodString;
5385
+ fileDiffs: z.ZodArray<z.ZodObject<{
5386
+ filename: z.ZodString;
5387
+ diff: z.ZodString;
5388
+ }, z.core.$strip>>;
5389
+ }, z.core.$strip>>;
5390
+ pullRequest: z.ZodOptional<z.ZodUndefined>;
5391
+ }, z.core.$strip>, z.ZodObject<{
5392
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
5393
+ username: z.ZodString;
5394
+ installationId: z.ZodNumber;
5395
+ repositoryName: z.ZodString;
5396
+ repository: z.ZodObject<{
5397
+ id: z.ZodNumber;
5398
+ name: z.ZodString;
5399
+ owner: z.ZodString;
5400
+ defaultBranch: z.ZodString;
5401
+ }, z.core.$strip>;
5402
+ sender: z.ZodObject<{
5403
+ login: z.ZodString;
5404
+ email: z.ZodOptional<z.ZodString>;
5405
+ }, z.core.$strip>;
5406
+ pullRequest: z.ZodObject<{
5407
+ id: z.ZodString;
5408
+ number: z.ZodNumber;
5409
+ title: z.ZodString;
5410
+ body: z.ZodOptional<z.ZodString>;
5411
+ state: z.ZodEnum<{
5412
+ open: "open";
5413
+ closed: "closed";
5414
+ }>;
5415
+ merged: z.ZodBoolean;
5416
+ head: z.ZodObject<{
5417
+ ref: z.ZodString;
5418
+ sha: z.ZodString;
5419
+ }, z.core.$strip>;
5420
+ base: z.ZodObject<{
5421
+ ref: z.ZodString;
5422
+ sha: z.ZodString;
5423
+ }, z.core.$strip>;
5424
+ user: z.ZodObject<{
5425
+ login: z.ZodString;
5426
+ email: z.ZodOptional<z.ZodString>;
5427
+ }, z.core.$strip>;
5428
+ author: z.ZodOptional<z.ZodObject<{
5429
+ login: z.ZodString;
5430
+ email: z.ZodOptional<z.ZodString>;
5431
+ }, z.core.$strip>>;
5432
+ url: z.ZodOptional<z.ZodString>;
5433
+ }, z.core.$strip>;
5434
+ branch: z.ZodOptional<z.ZodString>;
5435
+ commits: z.ZodArray<z.ZodObject<{
5436
+ sha: z.ZodString;
5437
+ message: z.ZodOptional<z.ZodString>;
5438
+ name: z.ZodString;
5439
+ fileDiffs: z.ZodArray<z.ZodObject<{
5440
+ filename: z.ZodString;
5441
+ diff: z.ZodString;
5442
+ }, z.core.$strip>>;
5443
+ }, z.core.$strip>>;
5444
+ eventType: z.ZodLiteral<"pull_request.opened">;
5445
+ }, z.core.$strip>, z.ZodObject<{
5446
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
5447
+ username: z.ZodString;
5448
+ installationId: z.ZodNumber;
5449
+ repositoryName: z.ZodString;
5450
+ repository: z.ZodObject<{
5451
+ id: z.ZodNumber;
5452
+ name: z.ZodString;
5453
+ owner: z.ZodString;
5454
+ defaultBranch: z.ZodString;
5455
+ }, z.core.$strip>;
5456
+ sender: z.ZodObject<{
5457
+ login: z.ZodString;
5458
+ email: z.ZodOptional<z.ZodString>;
5459
+ }, z.core.$strip>;
5460
+ pullRequest: z.ZodObject<{
5461
+ id: z.ZodString;
5462
+ number: z.ZodNumber;
5463
+ title: z.ZodString;
5464
+ body: z.ZodOptional<z.ZodString>;
5465
+ state: z.ZodEnum<{
5466
+ open: "open";
5467
+ closed: "closed";
5468
+ }>;
5469
+ merged: z.ZodBoolean;
5470
+ head: z.ZodObject<{
5471
+ ref: z.ZodString;
5472
+ sha: z.ZodString;
5473
+ }, z.core.$strip>;
5474
+ base: z.ZodObject<{
5475
+ ref: z.ZodString;
5476
+ sha: z.ZodString;
5477
+ }, z.core.$strip>;
5478
+ user: z.ZodObject<{
5479
+ login: z.ZodString;
5480
+ email: z.ZodOptional<z.ZodString>;
5481
+ }, z.core.$strip>;
5482
+ author: z.ZodOptional<z.ZodObject<{
5483
+ login: z.ZodString;
5484
+ email: z.ZodOptional<z.ZodString>;
5485
+ }, z.core.$strip>>;
5486
+ url: z.ZodOptional<z.ZodString>;
5487
+ }, z.core.$strip>;
5488
+ branch: z.ZodOptional<z.ZodString>;
5489
+ commits: z.ZodArray<z.ZodObject<{
5490
+ sha: z.ZodString;
5491
+ message: z.ZodOptional<z.ZodString>;
5492
+ name: z.ZodString;
5493
+ fileDiffs: z.ZodArray<z.ZodObject<{
5494
+ filename: z.ZodString;
5495
+ diff: z.ZodString;
5496
+ }, z.core.$strip>>;
5497
+ }, z.core.$strip>>;
5498
+ eventType: z.ZodLiteral<"pull_request.synchronize">;
5499
+ }, z.core.$strip>, z.ZodObject<{
5500
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
5501
+ username: z.ZodString;
5502
+ installationId: z.ZodNumber;
5503
+ repositoryName: z.ZodString;
5504
+ repository: z.ZodObject<{
5505
+ id: z.ZodNumber;
5506
+ name: z.ZodString;
5507
+ owner: z.ZodString;
5508
+ defaultBranch: z.ZodString;
5509
+ }, z.core.$strip>;
5510
+ sender: z.ZodObject<{
5511
+ login: z.ZodString;
5512
+ email: z.ZodOptional<z.ZodString>;
5513
+ }, z.core.$strip>;
5514
+ pullRequest: z.ZodObject<{
5515
+ id: z.ZodString;
5516
+ number: z.ZodNumber;
5517
+ title: z.ZodString;
5518
+ body: z.ZodOptional<z.ZodString>;
5519
+ state: z.ZodEnum<{
5520
+ open: "open";
5521
+ closed: "closed";
5522
+ }>;
5523
+ merged: z.ZodBoolean;
5524
+ head: z.ZodObject<{
5525
+ ref: z.ZodString;
5526
+ sha: z.ZodString;
5527
+ }, z.core.$strip>;
5528
+ base: z.ZodObject<{
5529
+ ref: z.ZodString;
5530
+ sha: z.ZodString;
5531
+ }, z.core.$strip>;
5532
+ user: z.ZodObject<{
5533
+ login: z.ZodString;
5534
+ email: z.ZodOptional<z.ZodString>;
5535
+ }, z.core.$strip>;
5536
+ author: z.ZodOptional<z.ZodObject<{
5537
+ login: z.ZodString;
5538
+ email: z.ZodOptional<z.ZodString>;
5539
+ }, z.core.$strip>>;
5540
+ url: z.ZodOptional<z.ZodString>;
5541
+ }, z.core.$strip>;
5542
+ branch: z.ZodOptional<z.ZodString>;
5543
+ commits: z.ZodArray<z.ZodObject<{
5544
+ sha: z.ZodString;
5545
+ message: z.ZodOptional<z.ZodString>;
5546
+ name: z.ZodString;
5547
+ fileDiffs: z.ZodArray<z.ZodObject<{
5548
+ filename: z.ZodString;
5549
+ diff: z.ZodString;
5550
+ }, z.core.$strip>>;
5551
+ }, z.core.$strip>>;
5552
+ eventType: z.ZodLiteral<"pull_request.closed">;
5553
+ }, z.core.$strip>, z.ZodObject<{
5554
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
5555
+ username: z.ZodString;
5556
+ installationId: z.ZodNumber;
5557
+ repositoryName: z.ZodString;
5558
+ repository: z.ZodObject<{
5559
+ id: z.ZodNumber;
5560
+ name: z.ZodString;
5561
+ owner: z.ZodString;
5562
+ defaultBranch: z.ZodString;
5563
+ }, z.core.$strip>;
5564
+ sender: z.ZodObject<{
5565
+ login: z.ZodString;
5566
+ email: z.ZodOptional<z.ZodString>;
5567
+ }, z.core.$strip>;
5568
+ pullRequest: z.ZodObject<{
5569
+ id: z.ZodString;
5570
+ number: z.ZodNumber;
5571
+ title: z.ZodString;
5572
+ body: z.ZodOptional<z.ZodString>;
5573
+ state: z.ZodEnum<{
5574
+ open: "open";
5575
+ closed: "closed";
5576
+ }>;
5577
+ merged: z.ZodBoolean;
5578
+ head: z.ZodObject<{
5579
+ ref: z.ZodString;
5580
+ sha: z.ZodString;
5581
+ }, z.core.$strip>;
5582
+ base: z.ZodObject<{
5583
+ ref: z.ZodString;
5584
+ sha: z.ZodString;
5585
+ }, z.core.$strip>;
5586
+ user: z.ZodObject<{
5587
+ login: z.ZodString;
5588
+ email: z.ZodOptional<z.ZodString>;
5589
+ }, z.core.$strip>;
5590
+ author: z.ZodOptional<z.ZodObject<{
5591
+ login: z.ZodString;
5592
+ email: z.ZodOptional<z.ZodString>;
5593
+ }, z.core.$strip>>;
5594
+ url: z.ZodOptional<z.ZodString>;
5595
+ }, z.core.$strip>;
5596
+ branch: z.ZodOptional<z.ZodString>;
5597
+ commits: z.ZodArray<z.ZodObject<{
5598
+ sha: z.ZodString;
5599
+ message: z.ZodOptional<z.ZodString>;
5600
+ name: z.ZodString;
5601
+ fileDiffs: z.ZodArray<z.ZodObject<{
5602
+ filename: z.ZodString;
5603
+ diff: z.ZodString;
5604
+ }, z.core.$strip>>;
5605
+ }, z.core.$strip>>;
5606
+ eventType: z.ZodLiteral<"pull_request.merged">;
5607
+ }, z.core.$strip>], "eventType">, z.ZodObject<{
5806
5608
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GMAIL>;
5807
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.GMAIL>;
5808
- eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<{
5609
+ eventType: z.ZodEnum<{
5809
5610
  readonly EMAIL_RECEIVED: "email.received";
5810
- }>>>;
5811
- }, z.core.$strip>, z.ZodObject<{
5812
- integrationId: z.ZodString;
5813
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.SLACK>;
5814
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.SLACK>;
5815
- channelId: z.ZodNullable<z.ZodString>;
5816
- channelName: z.ZodNullable<z.ZodString>;
5817
- listenToUserDms: z.ZodDefault<z.ZodBoolean>;
5818
- userIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
5819
- eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<{
5820
- readonly MESSAGE: "message";
5821
- readonly APP_MENTION: "app_mention";
5822
- readonly REACTION_ADDED: "reaction_added";
5823
- }>>>;
5611
+ }>;
5612
+ id: z.ZodString;
5613
+ threadId: z.ZodString;
5614
+ subject: z.ZodString;
5615
+ from: z.ZodString;
5616
+ to: z.ZodString;
5617
+ date: z.ZodString;
5618
+ internalDate: z.ZodString;
5619
+ messageId: z.ZodString;
5620
+ body: z.ZodString;
5621
+ snippet: z.ZodString;
5622
+ labelIds: z.ZodArray<z.ZodString>;
5623
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
5624
+ attachmentId: z.ZodString;
5625
+ filename: z.ZodString;
5626
+ mimeType: z.ZodString;
5627
+ contentId: z.ZodOptional<z.ZodString>;
5628
+ isInline: z.ZodBoolean;
5629
+ }, z.core.$strip>>>;
5630
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
5631
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.LINEAR>;
5632
+ actor: z.ZodObject<{
5633
+ id: z.ZodString;
5634
+ name: z.ZodString;
5635
+ email: z.ZodString;
5636
+ url: z.ZodString;
5637
+ type: z.ZodString;
5638
+ }, z.core.$strip>;
5639
+ createdAt: z.ZodString;
5640
+ url: z.ZodOptional<z.ZodString>;
5641
+ organizationId: z.ZodString;
5642
+ webhookTimestamp: z.ZodNumber;
5643
+ webhookId: z.ZodString;
5644
+ eventType: z.ZodLiteral<"issue.created">;
5645
+ action: z.ZodLiteral<"create">;
5646
+ type: z.ZodLiteral<"Issue">;
5647
+ data: z.ZodObject<{
5648
+ id: z.ZodString;
5649
+ createdAt: z.ZodString;
5650
+ updatedAt: z.ZodString;
5651
+ number: z.ZodNumber;
5652
+ title: z.ZodString;
5653
+ priority: z.ZodNumber;
5654
+ sortOrder: z.ZodNumber;
5655
+ prioritySortOrder: z.ZodNumber;
5656
+ slaType: z.ZodString;
5657
+ addedToTeamAt: z.ZodString;
5658
+ trashed: z.ZodBoolean;
5659
+ labelIds: z.ZodArray<z.ZodString>;
5660
+ teamId: z.ZodString;
5661
+ previousIdentifiers: z.ZodArray<z.ZodString>;
5662
+ stateId: z.ZodString;
5663
+ reactionData: z.ZodArray<z.ZodAny>;
5664
+ priorityLabel: z.ZodString;
5665
+ botActor: z.ZodOptional<z.ZodString>;
5666
+ identifier: z.ZodString;
5667
+ url: z.ZodString;
5668
+ subscriberIds: z.ZodArray<z.ZodString>;
5669
+ state: z.ZodObject<{
5670
+ id: z.ZodString;
5671
+ color: z.ZodString;
5672
+ name: z.ZodString;
5673
+ type: z.ZodString;
5674
+ }, z.core.$strip>;
5675
+ team: z.ZodObject<{
5676
+ id: z.ZodString;
5677
+ key: z.ZodString;
5678
+ name: z.ZodString;
5679
+ }, z.core.$strip>;
5680
+ labels: z.ZodArray<z.ZodAny>;
5681
+ description: z.ZodOptional<z.ZodString>;
5682
+ descriptionData: z.ZodOptional<z.ZodString>;
5683
+ assignee: z.ZodOptional<z.ZodObject<{
5684
+ id: z.ZodString;
5685
+ name: z.ZodString;
5686
+ }, z.core.$strip>>;
5687
+ projectId: z.ZodOptional<z.ZodString>;
5688
+ }, z.core.$strip>;
5824
5689
  }, z.core.$strip>, z.ZodObject<{
5825
- integrationId: z.ZodString;
5826
5690
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.LINEAR>;
5827
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.LINEAR_INPUT>;
5828
- teamId: z.ZodNullable<z.ZodString>;
5829
- projectId: z.ZodNullable<z.ZodString>;
5830
- eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<{
5831
- readonly ISSUE_CREATED: "issue.created";
5832
- readonly ISSUE_UPDATED: "issue.updated";
5833
- readonly COMMENT_CREATED: "comment.created";
5834
- }>>>;
5835
- }, z.core.$strip>, z.ZodObject<{
5836
- integrationId: z.ZodString;
5837
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
5838
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.GITHUB>;
5839
- repositoryIds: z.ZodArray<z.ZodNumber>;
5840
- eventTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<{
5841
- readonly PUSH: "push";
5842
- readonly PR_OPENED: "pull_request.opened";
5843
- readonly PR_MERGED: "pull_request.merged";
5844
- readonly PR_CLOSED: "pull_request.closed";
5845
- readonly PR_SYNCHRONIZE: "pull_request.synchronize";
5846
- }>>>;
5847
- }, z.core.$strip>, z.ZodObject<{
5848
- integrationId: z.ZodLiteral<"system">;
5849
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.CRON_JOB>;
5850
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.TIME_TRIGGER>;
5851
- cronExpression: z.ZodString;
5691
+ actor: z.ZodObject<{
5692
+ id: z.ZodString;
5693
+ name: z.ZodString;
5694
+ email: z.ZodString;
5695
+ url: z.ZodString;
5696
+ type: z.ZodString;
5697
+ }, z.core.$strip>;
5698
+ createdAt: z.ZodString;
5699
+ url: z.ZodOptional<z.ZodString>;
5700
+ organizationId: z.ZodString;
5701
+ webhookTimestamp: z.ZodNumber;
5702
+ webhookId: z.ZodString;
5703
+ eventType: z.ZodLiteral<"issue.updated">;
5704
+ action: z.ZodLiteral<"update">;
5705
+ type: z.ZodLiteral<"Issue">;
5706
+ data: z.ZodObject<{
5707
+ id: z.ZodString;
5708
+ createdAt: z.ZodString;
5709
+ updatedAt: z.ZodString;
5710
+ number: z.ZodNumber;
5711
+ title: z.ZodString;
5712
+ priority: z.ZodNumber;
5713
+ sortOrder: z.ZodNumber;
5714
+ prioritySortOrder: z.ZodNumber;
5715
+ slaType: z.ZodString;
5716
+ addedToTeamAt: z.ZodString;
5717
+ trashed: z.ZodBoolean;
5718
+ labelIds: z.ZodArray<z.ZodString>;
5719
+ teamId: z.ZodString;
5720
+ previousIdentifiers: z.ZodArray<z.ZodString>;
5721
+ stateId: z.ZodString;
5722
+ reactionData: z.ZodArray<z.ZodAny>;
5723
+ priorityLabel: z.ZodString;
5724
+ botActor: z.ZodOptional<z.ZodString>;
5725
+ identifier: z.ZodString;
5726
+ url: z.ZodString;
5727
+ subscriberIds: z.ZodArray<z.ZodString>;
5728
+ state: z.ZodObject<{
5729
+ id: z.ZodString;
5730
+ color: z.ZodString;
5731
+ name: z.ZodString;
5732
+ type: z.ZodString;
5733
+ }, z.core.$strip>;
5734
+ team: z.ZodObject<{
5735
+ id: z.ZodString;
5736
+ key: z.ZodString;
5737
+ name: z.ZodString;
5738
+ }, z.core.$strip>;
5739
+ labels: z.ZodArray<z.ZodAny>;
5740
+ description: z.ZodOptional<z.ZodString>;
5741
+ descriptionData: z.ZodOptional<z.ZodString>;
5742
+ assignee: z.ZodOptional<z.ZodObject<{
5743
+ id: z.ZodString;
5744
+ name: z.ZodString;
5745
+ }, z.core.$strip>>;
5746
+ projectId: z.ZodOptional<z.ZodString>;
5747
+ }, z.core.$strip>;
5852
5748
  }, z.core.$strip>, z.ZodObject<{
5853
- integrationId: z.ZodString;
5749
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.LINEAR>;
5750
+ actor: z.ZodObject<{
5751
+ id: z.ZodString;
5752
+ name: z.ZodString;
5753
+ email: z.ZodString;
5754
+ url: z.ZodString;
5755
+ type: z.ZodString;
5756
+ }, z.core.$strip>;
5757
+ createdAt: z.ZodString;
5758
+ url: z.ZodOptional<z.ZodString>;
5759
+ organizationId: z.ZodString;
5760
+ webhookTimestamp: z.ZodNumber;
5761
+ webhookId: z.ZodString;
5762
+ eventType: z.ZodLiteral<"comment.created">;
5763
+ action: z.ZodLiteral<"create">;
5764
+ type: z.ZodLiteral<"Comment">;
5765
+ data: z.ZodObject<{
5766
+ id: z.ZodString;
5767
+ body: z.ZodOptional<z.ZodString>;
5768
+ issueId: z.ZodOptional<z.ZodString>;
5769
+ }, z.core.$loose>;
5770
+ }, z.core.$strip>], "eventType">, z.ZodDiscriminatedUnion<[z.ZodObject<{
5854
5771
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.WORKOS>;
5855
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.WORKOS_INPUT>;
5856
- eventTypes: z.ZodDefault<z.ZodArray<z.ZodEnum<{
5857
- readonly USER_CREATED: "user.created";
5858
- readonly USER_UPDATED: "user.updated";
5859
- readonly USER_DELETED: "user.deleted";
5860
- readonly ORGANIZATION_CREATED: "organization.created";
5861
- readonly ORGANIZATION_MEMBERSHIP_CREATED: "organization_membership.created";
5862
- readonly ORGANIZATION_MEMBERSHIP_UPDATED: "organization_membership.updated";
5863
- readonly ORGANIZATION_MEMBERSHIP_DELETED: "organization_membership.deleted";
5864
- readonly INVITATION_CREATED: "invitation.created";
5865
- readonly INVITATION_ACCEPTED: "invitation.accepted";
5866
- readonly INVITATION_RESENT: "invitation.resent";
5867
- readonly INVITATION_REVOKED: "invitation.revoked";
5868
- }>>>;
5869
- }, z.core.$strip>, z.ZodObject<{
5870
- integrationId: z.ZodLiteral<"system">;
5871
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.WEBHOOK>;
5872
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.WEBHOOK_INPUT>;
5873
- }, z.core.$strip>]>>;
5874
- outputs: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
5875
- integrationId: z.ZodString;
5876
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.SLACK>;
5877
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.SLACK_OUTPUT>;
5878
- channelId: z.ZodNullable<z.ZodString>;
5879
- channelName: z.ZodNullable<z.ZodString>;
5880
- userIds: z.ZodNullable<z.ZodArray<z.ZodString>>;
5881
- userNames: z.ZodNullable<z.ZodArray<z.ZodString>>;
5882
- listenToUserDms: z.ZodDefault<z.ZodBoolean>;
5772
+ eventId: z.ZodString;
5773
+ createdAt: z.ZodString;
5774
+ eventType: z.ZodLiteral<"user.created">;
5775
+ user: z.ZodObject<{
5776
+ id: z.ZodString;
5777
+ email: z.ZodString;
5778
+ firstName: z.ZodOptional<z.ZodString>;
5779
+ lastName: z.ZodOptional<z.ZodString>;
5780
+ emailVerified: z.ZodBoolean;
5781
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
5782
+ }, z.core.$strip>;
5883
5783
  }, z.core.$strip>, z.ZodObject<{
5884
- integrationId: z.ZodString;
5885
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GMAIL>;
5886
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.GMAIL_OUTPUT>;
5784
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.WORKOS>;
5785
+ eventId: z.ZodString;
5786
+ createdAt: z.ZodString;
5787
+ eventType: z.ZodLiteral<"user.updated">;
5788
+ user: z.ZodObject<{
5789
+ id: z.ZodString;
5790
+ email: z.ZodString;
5791
+ firstName: z.ZodOptional<z.ZodString>;
5792
+ lastName: z.ZodOptional<z.ZodString>;
5793
+ emailVerified: z.ZodBoolean;
5794
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
5795
+ }, z.core.$strip>;
5887
5796
  }, z.core.$strip>, z.ZodObject<{
5888
- integrationId: z.ZodString;
5889
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GMAIL>;
5890
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.GMAIL_DRAFT_OUTPUT>;
5797
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.WORKOS>;
5798
+ eventId: z.ZodString;
5799
+ createdAt: z.ZodString;
5800
+ eventType: z.ZodLiteral<"user.deleted">;
5801
+ user: z.ZodObject<{
5802
+ id: z.ZodString;
5803
+ email: z.ZodString;
5804
+ firstName: z.ZodOptional<z.ZodString>;
5805
+ lastName: z.ZodOptional<z.ZodString>;
5806
+ emailVerified: z.ZodBoolean;
5807
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
5808
+ }, z.core.$strip>;
5891
5809
  }, z.core.$strip>, z.ZodObject<{
5892
- integrationId: z.ZodString;
5893
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.NOTION>;
5894
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.NOTION>;
5895
- databaseIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
5896
- databaseNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
5897
- pageIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
5898
- pageNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
5810
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.WORKOS>;
5811
+ eventId: z.ZodString;
5812
+ createdAt: z.ZodString;
5813
+ eventType: z.ZodLiteral<"organization_membership.created">;
5814
+ membership: z.ZodObject<{
5815
+ id: z.ZodString;
5816
+ userId: z.ZodString;
5817
+ organizationId: z.ZodString;
5818
+ role: z.ZodObject<{
5819
+ slug: z.ZodString;
5820
+ }, z.core.$strip>;
5821
+ status: z.ZodString;
5822
+ }, z.core.$strip>;
5899
5823
  }, z.core.$strip>, z.ZodObject<{
5900
- integrationId: z.ZodString;
5901
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.LINEAR>;
5902
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.LINEAR_OUTPUT>;
5903
- teamId: z.ZodNullable<z.ZodString>;
5904
- teamName: z.ZodNullable<z.ZodString>;
5905
- projectId: z.ZodNullable<z.ZodString>;
5824
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.WORKOS>;
5825
+ eventId: z.ZodString;
5826
+ createdAt: z.ZodString;
5827
+ eventType: z.ZodLiteral<"organization_membership.updated">;
5828
+ membership: z.ZodObject<{
5829
+ id: z.ZodString;
5830
+ userId: z.ZodString;
5831
+ organizationId: z.ZodString;
5832
+ role: z.ZodObject<{
5833
+ slug: z.ZodString;
5834
+ }, z.core.$strip>;
5835
+ status: z.ZodString;
5836
+ }, z.core.$strip>;
5906
5837
  }, z.core.$strip>, z.ZodObject<{
5907
- integrationId: z.ZodString;
5908
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.GITHUB>;
5909
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.GITHUB>;
5910
- repositoryIds: z.ZodArray<z.ZodNumber>;
5838
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.WORKOS>;
5839
+ eventId: z.ZodString;
5840
+ createdAt: z.ZodString;
5841
+ eventType: z.ZodLiteral<"organization_membership.deleted">;
5842
+ membership: z.ZodObject<{
5843
+ id: z.ZodString;
5844
+ userId: z.ZodString;
5845
+ organizationId: z.ZodString;
5846
+ role: z.ZodObject<{
5847
+ slug: z.ZodString;
5848
+ }, z.core.$strip>;
5849
+ status: z.ZodString;
5850
+ }, z.core.$strip>;
5911
5851
  }, z.core.$strip>, z.ZodObject<{
5912
- integrationId: z.ZodString;
5913
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.POSTHOG>;
5914
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.POSTHOG>;
5915
- projectId: z.ZodString;
5916
- projectName: z.ZodNullable<z.ZodString>;
5852
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.WORKOS>;
5853
+ eventId: z.ZodString;
5854
+ createdAt: z.ZodString;
5855
+ eventType: z.ZodLiteral<"invitation.created">;
5856
+ invitation: z.ZodObject<{
5857
+ id: z.ZodString;
5858
+ email: z.ZodString;
5859
+ organizationId: z.ZodString;
5860
+ inviterEmail: z.ZodOptional<z.ZodString>;
5861
+ state: z.ZodString;
5862
+ acceptedAt: z.ZodOptional<z.ZodString>;
5863
+ }, z.core.$strip>;
5864
+ user: z.ZodOptional<z.ZodObject<{
5865
+ id: z.ZodString;
5866
+ email: z.ZodString;
5867
+ firstName: z.ZodOptional<z.ZodString>;
5868
+ lastName: z.ZodOptional<z.ZodString>;
5869
+ emailVerified: z.ZodBoolean;
5870
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
5871
+ }, z.core.$strip>>;
5917
5872
  }, z.core.$strip>, z.ZodObject<{
5918
- integrationId: z.ZodString;
5919
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.DATADOG>;
5920
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.DATADOG>;
5921
- defaultIndexes: z.ZodDefault<z.ZodArray<z.ZodString>>;
5873
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.WORKOS>;
5874
+ eventId: z.ZodString;
5875
+ createdAt: z.ZodString;
5876
+ eventType: z.ZodLiteral<"invitation.accepted">;
5877
+ invitation: z.ZodObject<{
5878
+ id: z.ZodString;
5879
+ email: z.ZodString;
5880
+ organizationId: z.ZodString;
5881
+ inviterEmail: z.ZodOptional<z.ZodString>;
5882
+ state: z.ZodString;
5883
+ acceptedAt: z.ZodOptional<z.ZodString>;
5884
+ }, z.core.$strip>;
5885
+ user: z.ZodOptional<z.ZodObject<{
5886
+ id: z.ZodString;
5887
+ email: z.ZodString;
5888
+ firstName: z.ZodOptional<z.ZodString>;
5889
+ lastName: z.ZodOptional<z.ZodString>;
5890
+ emailVerified: z.ZodBoolean;
5891
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
5892
+ }, z.core.$strip>>;
5922
5893
  }, z.core.$strip>, z.ZodObject<{
5923
- integrationId: z.ZodString;
5924
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.LAUNCHDARKLY>;
5925
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.LAUNCHDARKLY>;
5926
- projectKey: z.ZodString;
5927
- environmentKeys: z.ZodArray<z.ZodString>;
5894
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.WORKOS>;
5895
+ eventId: z.ZodString;
5896
+ createdAt: z.ZodString;
5897
+ eventType: z.ZodLiteral<"invitation.resent">;
5898
+ invitation: z.ZodObject<{
5899
+ id: z.ZodString;
5900
+ email: z.ZodString;
5901
+ organizationId: z.ZodString;
5902
+ inviterEmail: z.ZodOptional<z.ZodString>;
5903
+ state: z.ZodString;
5904
+ acceptedAt: z.ZodOptional<z.ZodString>;
5905
+ }, z.core.$strip>;
5906
+ user: z.ZodOptional<z.ZodObject<{
5907
+ id: z.ZodString;
5908
+ email: z.ZodString;
5909
+ firstName: z.ZodOptional<z.ZodString>;
5910
+ lastName: z.ZodOptional<z.ZodString>;
5911
+ emailVerified: z.ZodBoolean;
5912
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
5913
+ }, z.core.$strip>>;
5928
5914
  }, z.core.$strip>, z.ZodObject<{
5929
- integrationId: z.ZodLiteral<"system">;
5930
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.TERSE>;
5931
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.TERSE>;
5915
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.WORKOS>;
5916
+ eventId: z.ZodString;
5917
+ createdAt: z.ZodString;
5918
+ eventType: z.ZodLiteral<"invitation.revoked">;
5919
+ invitation: z.ZodObject<{
5920
+ id: z.ZodString;
5921
+ email: z.ZodString;
5922
+ organizationId: z.ZodString;
5923
+ inviterEmail: z.ZodOptional<z.ZodString>;
5924
+ state: z.ZodString;
5925
+ acceptedAt: z.ZodOptional<z.ZodString>;
5926
+ }, z.core.$strip>;
5927
+ user: z.ZodOptional<z.ZodObject<{
5928
+ id: z.ZodString;
5929
+ email: z.ZodString;
5930
+ firstName: z.ZodOptional<z.ZodString>;
5931
+ lastName: z.ZodOptional<z.ZodString>;
5932
+ emailVerified: z.ZodBoolean;
5933
+ profilePictureUrl: z.ZodOptional<z.ZodString>;
5934
+ }, z.core.$strip>>;
5932
5935
  }, z.core.$strip>, z.ZodObject<{
5933
- integrationId: z.ZodString;
5934
5936
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.WORKOS>;
5935
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.WORKOS_OUTPUT>;
5937
+ eventId: z.ZodString;
5938
+ createdAt: z.ZodString;
5939
+ eventType: z.ZodLiteral<"organization.created">;
5940
+ organization: z.ZodObject<{
5941
+ id: z.ZodString;
5942
+ name: z.ZodString;
5943
+ }, z.core.$strip>;
5944
+ }, z.core.$strip>], "eventType">, z.ZodObject<{
5945
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.WEBHOOK>;
5946
+ eventType: z.ZodLiteral<"webhook">;
5947
+ body: z.ZodUnknown;
5948
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
5949
+ method: z.ZodString;
5936
5950
  }, z.core.$strip>, z.ZodObject<{
5937
- integrationId: z.ZodString;
5938
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.ATTIO>;
5939
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.ATTIO_OUTPUT>;
5940
- objectSlug: z.ZodNullable<z.ZodString>;
5951
+ integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.CRON_JOB>;
5952
+ eventType: z.ZodLiteral<"cron">;
5953
+ inputId: z.ZodString;
5954
+ isManualTrigger: z.ZodOptional<z.ZodBoolean>;
5955
+ manualContext: z.ZodOptional<z.ZodString>;
5941
5956
  }, z.core.$strip>, z.ZodObject<{
5942
- integrationId: z.ZodString;
5943
- integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.SNOWFLAKE>;
5944
- configType: z.ZodLiteral<import("./Configs.js").ConfigType.SNOWFLAKE_OUTPUT>;
5945
- }, z.core.$strip>]>>;
5946
- toolApprovals: z.ZodArray<z.ZodString>;
5947
- }, z.core.$strip>>;
5948
- remoteServerUrl: z.ZodOptional<z.ZodString>;
5949
- sourceZipBase64: z.ZodOptional<z.ZodString>;
5950
- }, z.core.$strip>;
5951
- export type SdkDeployRequestBody = z.infer<typeof sdkDeployRequestBodySchema>;
5952
- export declare const sdkDeployResultSchema: z.ZodObject<{
5953
- jobName: z.ZodString;
5954
- automationId: z.ZodString;
5955
- isUpdate: z.ZodBoolean;
5956
- signingSecret: z.ZodOptional<z.ZodString>;
5957
- triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
5958
- id: z.ZodString;
5959
- metadata: z.ZodOptional<z.ZodObject<{
5960
- webhookUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5961
- }, z.core.$strip>>;
5962
- }, z.core.$strip>>>;
5963
- }, z.core.$strip>;
5964
- export declare const sdkDeployRemovedSchema: z.ZodObject<{
5965
- id: z.ZodString;
5966
- name: z.ZodString;
5967
- }, z.core.$strip>;
5968
- export declare const sdkDeployResponseBodySchema: z.ZodObject<{
5969
- success: z.ZodBoolean;
5970
- results: z.ZodArray<z.ZodObject<{
5971
- jobName: z.ZodString;
5972
- automationId: z.ZodString;
5973
- isUpdate: z.ZodBoolean;
5974
- signingSecret: z.ZodOptional<z.ZodString>;
5975
- triggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
5976
- id: z.ZodString;
5977
- metadata: z.ZodOptional<z.ZodObject<{
5978
- webhookUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5979
- }, z.core.$strip>>;
5980
- }, z.core.$strip>>>;
5981
- }, z.core.$strip>>;
5982
- removed: z.ZodArray<z.ZodObject<{
5983
- id: z.ZodString;
5984
- name: z.ZodString;
5985
- }, z.core.$strip>>;
5986
- error: z.ZodOptional<z.ZodString>;
5987
- details: z.ZodOptional<z.ZodString>;
5988
- }, z.core.$strip>;
5989
- export type SdkDeployResponseBody = z.infer<typeof sdkDeployResponseBodySchema>;
5990
- export declare const sdkJobServerCheckStepSchema: z.ZodEnum<{
5991
- json: "json";
5992
- http: "http";
5993
- response_schema: "response_schema";
5994
- challenge_echo: "challenge_echo";
5995
- challenge_signature: "challenge_signature";
5996
- }>;
5997
- export type SdkJobServerCheckStep = z.infer<typeof sdkJobServerCheckStepSchema>;
5998
- export declare const sdkJobServerCheckResponseSchema: z.ZodObject<{
5999
- success: z.ZodBoolean;
6000
- message: z.ZodString;
6001
- triggerUrl: z.ZodOptional<z.ZodString>;
6002
- step: z.ZodOptional<z.ZodEnum<{
6003
- json: "json";
6004
- http: "http";
6005
- response_schema: "response_schema";
6006
- challenge_echo: "challenge_echo";
6007
- challenge_signature: "challenge_signature";
6008
- }>>;
6009
- httpStatus: z.ZodOptional<z.ZodNumber>;
6010
- }, z.core.$strip>;
6011
- export type SdkJobServerCheckResponse = z.infer<typeof sdkJobServerCheckResponseSchema>;
6012
- export type AttioUpsertError = z.infer<typeof attioUpsertErrorSchema>;
6013
- export declare const agentIdParamsSchema: z.ZodObject<{
6014
- agentId: z.ZodString;
6015
- }, z.core.$strip>;
6016
- export declare const agentAndImprovementParamsSchema: z.ZodObject<{
6017
- agentId: z.ZodString;
6018
- id: z.ZodString;
6019
- }, z.core.$strip>;
6020
- export declare const manualTriggerParamsSchema: z.ZodObject<{
6021
- inputId: z.ZodString;
6022
- }, z.core.$strip>;
6023
- export declare const triggerWithEventParamsSchema: z.ZodObject<{
6024
- automationId: z.ZodString;
6025
- }, z.core.$strip>;
6026
- export declare const logoUploadUrlQuerySchema: z.ZodObject<{
6027
- contentType: z.ZodString;
6028
- }, z.core.$strip>;
6029
- export declare const logoParamsSchema: z.ZodObject<{
6030
- organizationId: z.ZodString;
6031
- }, z.core.$strip>;
6032
- export declare const webhookWorkOSTriggerParamsSchema: z.ZodObject<{
6033
- integrationId: z.ZodString;
6034
- }, z.core.$strip>;
6035
- export declare const organizationCreateRequestSchema: z.ZodObject<{
6036
- name: z.ZodString;
6037
- firstName: z.ZodOptional<z.ZodString>;
6038
- lastName: z.ZodOptional<z.ZodString>;
6039
- }, z.core.$strip>;
6040
- export type OrganizationCreateRequest = z.infer<typeof organizationCreateRequestSchema>;
6041
- export declare const organizationSwitchRequestSchema: z.ZodObject<{
6042
- organizationId: z.ZodString;
6043
- }, z.core.$strip>;
6044
- export type OrganizationSwitchRequest = z.infer<typeof organizationSwitchRequestSchema>;
6045
- export declare const organizationUpdateRequestSchema: z.ZodObject<{
6046
- name: z.ZodString;
6047
- }, z.core.$strip>;
6048
- export type OrganizationUpdateRequest = z.infer<typeof organizationUpdateRequestSchema>;
6049
- export declare const apiTokenCreateRequestSchema: z.ZodObject<{
6050
- name: z.ZodString;
6051
- }, z.core.$strip>;
6052
- export type ApiTokenCreateRequest = z.infer<typeof apiTokenCreateRequestSchema>;
6053
- export declare const apiTokenUpdateRequestSchema: z.ZodObject<{
6054
- name: z.ZodString;
6055
- }, z.core.$strip>;
6056
- export type ApiTokenUpdateRequest = z.infer<typeof apiTokenUpdateRequestSchema>;
6057
- export declare const deviceTokenExchangeRequestSchema: z.ZodObject<{
6058
- accessToken: z.ZodString;
6059
- }, z.core.$strip>;
6060
- export type DeviceTokenExchangeRequest = z.infer<typeof deviceTokenExchangeRequestSchema>;
6061
- export declare const sdkToolExecuteRequestSchema: z.ZodObject<{
6062
- toolName: z.ZodString;
6063
- params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5957
+ integrationType: z.ZodEnum<typeof import("./Integrations.js").IntegrationType>;
5958
+ eventType: z.ZodLiteral<"manual_sample">;
5959
+ }, z.core.$strip>]>;
5960
+ }, z.core.$strip>;
6064
5961
  }, z.core.$strip>;
6065
- export type SdkToolExecuteRequest = z.infer<typeof sdkToolExecuteRequestSchema>;
5962
+ export type SdkRunTriggerEventResponse = z.infer<typeof sdkRunTriggerEventResponseSchema>;
6066
5963
  export declare const manualTriggerRequestSchema: z.ZodObject<{
6067
5964
  context: z.ZodOptional<z.ZodString>;
6068
5965
  }, z.core.$strip>;
@@ -6864,7 +6761,7 @@ export declare const triggerWithEventRequestSchema: z.ZodObject<{
6864
6761
  }, z.core.$strip>], "eventType">, z.ZodObject<{
6865
6762
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.WEBHOOK>;
6866
6763
  eventType: z.ZodLiteral<"webhook">;
6867
- body: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6764
+ body: z.ZodUnknown;
6868
6765
  headers: z.ZodRecord<z.ZodString, z.ZodString>;
6869
6766
  method: z.ZodString;
6870
6767
  }, z.core.$strip>, z.ZodObject<{
@@ -7570,7 +7467,7 @@ export declare const webhookJobTriggerRequestSchema: z.ZodObject<{
7570
7467
  }, z.core.$strip>], "eventType">, z.ZodObject<{
7571
7468
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.WEBHOOK>;
7572
7469
  eventType: z.ZodLiteral<"webhook">;
7573
- body: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7470
+ body: z.ZodUnknown;
7574
7471
  headers: z.ZodRecord<z.ZodString, z.ZodString>;
7575
7472
  method: z.ZodString;
7576
7473
  }, z.core.$strip>, z.ZodObject<{