@standards/schema 1.0.0-alpha.430 → 1.0.0-alpha.433

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.
Files changed (36) hide show
  1. package/dist/{all-Bd7AdHPs.js → all-B3RHy-si.js} +1 -1
  2. package/dist/{all-BKRTNSnx.mjs → all-DxqmnktK.mjs} +1 -1
  3. package/dist/api/index.d.mts +642 -1352
  4. package/dist/api/index.d.ts +642 -1352
  5. package/dist/api/index.js +1 -1
  6. package/dist/api/index.mjs +1 -1
  7. package/dist/attribute-validators-BGKhSoi4.mjs +11 -0
  8. package/dist/attribute-validators-D-exV8OQ.js +11 -0
  9. package/dist/{exceptions-RLmYnywT.d.mts → exceptions-lFvB7G4Q.d.mts} +29 -2
  10. package/dist/{exceptions-B29yRRaG.d.ts → exceptions-uND1wZ9X.d.ts} +29 -2
  11. package/dist/exceptions.d.mts +2 -2
  12. package/dist/exceptions.d.ts +2 -2
  13. package/dist/exceptions.js +1 -1
  14. package/dist/exceptions.mjs +1 -1
  15. package/dist/{index-DP6kFv1b.d.ts → index-CiAuyPuA.d.ts} +627 -1413
  16. package/dist/index.d.mts +4 -4
  17. package/dist/index.d.ts +4 -4
  18. package/dist/index.js +2 -2
  19. package/dist/index.mjs +2 -2
  20. package/dist/record-operation-B49h1Oc-.mjs +2 -0
  21. package/dist/record-operation-HTySlhCF.js +2 -0
  22. package/dist/{record-query-CuEDE0CU.d.mts → record-query-Bki3Qcvc.d.mts} +627 -1413
  23. package/dist/{utils-CIqqP6hZ.d.ts → utils-Cn0G_X1P.d.ts} +1 -1
  24. package/dist/{utils-hkE18pLQ.d.mts → utils-PmF7E7_-.d.mts} +1 -1
  25. package/dist/utils.d.mts +1 -1
  26. package/dist/utils.d.ts +1 -1
  27. package/dist/validation/all.d.mts +1 -1
  28. package/dist/validation/all.d.ts +1 -1
  29. package/dist/validation/all.js +1 -1
  30. package/dist/validation/all.mjs +1 -1
  31. package/openapi.json +1320 -817
  32. package/package.json +2 -2
  33. package/dist/attribute-validators-CH24eLCk.js +0 -11
  34. package/dist/attribute-validators-RdwWgLqZ.mjs +0 -11
  35. package/dist/record-operation-VRpumyFM.js +0 -2
  36. package/dist/record-operation-bzca7POw.mjs +0 -2
@@ -1,6 +1,6 @@
1
1
 
2
- import { SchemaError, SchemaErrorCode, ValidationError } from "./exceptions-RLmYnywT.mjs";
3
- import { TenantId, Uuid } from "./utils-hkE18pLQ.mjs";
2
+ import { SchemaError, SchemaErrorCode, ValidationError } from "./exceptions-lFvB7G4Q.mjs";
3
+ import { TenantId, Uuid } from "./utils-PmF7E7_-.mjs";
4
4
  import * as z$2 from "zod";
5
5
  import z, { z as z$1 } from "zod";
6
6
  import { ColorId, CountryIso3, CurrencyCode, IconName } from "@standards/constants";
@@ -809,6 +809,8 @@ export interface BaseAttribute<DefaultValueType = unknown> {
809
809
  deprecated?: boolean;
810
810
  system?: boolean;
811
811
  unique?: boolean;
812
+ /** Types this attribute left through retypes, oldest first. A stored column, never part of the config. */
813
+ retypedFrom?: readonly AttributeType[];
812
814
  metadata?: Record<string, unknown>;
813
815
  }
814
816
  export interface TextAttribute extends BaseAttribute<string> {
@@ -1991,7 +1993,7 @@ export declare function parseDecisionLink(raw: string): DecisionLink | null;
1991
1993
  export declare function decisionThreadKey(decisionId: string): string;
1992
1994
  /** The longest title of a person's decision (« Nouvelle décision »). */
1993
1995
  export declare const DECISION_TITLE_MAX_LENGTH = 120;
1994
- /** The longest `why` and `change` line (§ 3): enforced by the service and a database check. */
1996
+ /** The longest `context` of a question (§ 3): enforced by the tool's schema. */
1995
1997
  export declare const DECISION_LINE_MAX_LENGTH = 200;
1996
1998
  /** The `questions` batch of a `send` (`{ questions: [...] }`), or an approval's tool summary. */
1997
1999
  export type DecisionQuestions = Readonly<Record<string, unknown>>;
@@ -2189,8 +2191,6 @@ export declare const decisionSchema: z$2.ZodObject<{
2189
2191
  type: z$2.ZodString;
2190
2192
  title: z$2.ZodString;
2191
2193
  summary: z$2.ZodOptional<z$2.ZodString>;
2192
- why: z$2.ZodOptional<z$2.ZodString>;
2193
- change: z$2.ZodOptional<z$2.ZodString>;
2194
2194
  questions: z$2.ZodOptional<z$2.ZodType<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>, z$2.core.$ZodTypeInternals<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>>>>;
2195
2195
  answer: z$2.ZodOptional<z$2.ZodType<DecisionAnswer, DecisionAnswer, z$2.core.$ZodTypeInternals<DecisionAnswer, DecisionAnswer>>>;
2196
2196
  answeredBy: z$2.ZodOptional<z$2.ZodString>;
@@ -2266,7 +2266,8 @@ export type DecisionRecipient = z$2.output<typeof decisionRecipientSchema>;
2266
2266
  * A transfer (#6451): a recipient handed their open row of a `question` to
2267
2267
  * someone else. The caller's row closes `dismissed`; this entry, kept in the
2268
2268
  * decision's `payload.transfers` (oldest first), is that row's reason, which
2269
- * « Décisions tranchées » reads as « Transférée à <toLabel> ».
2269
+ * « Décisions tranchées » reads as « Transférée à <toLabel> ». The target's
2270
+ * open card reads it as « Transférée par <fromActorId's name> ».
2270
2271
  */
2271
2272
  export interface DecisionTransfer {
2272
2273
  fromActorId: Uuid;
@@ -2282,6 +2283,18 @@ export declare const DECISION_TRANSFERS_KEY = "transfers";
2282
2283
  export declare function decisionTransfersOf(decision: Pick<Decision, "payload">): DecisionTransfer[];
2283
2284
  /** The transfer that closed `actorId`'s row, the last one they made; `undefined` when none did. */
2284
2285
  export declare function decisionTransferBy(decision: Pick<Decision, "payload">, actorId: string): DecisionTransfer | undefined;
2286
+ /**
2287
+ * The transfer that opened `actorId`'s row, the last one made to them; its
2288
+ * `fromActorId` is who handed it over. `undefined` when the row was not
2289
+ * transferred.
2290
+ */
2291
+ export declare function decisionTransferTo(decision: Pick<Decision, "payload">, actorId: string): DecisionTransfer | undefined;
2292
+ /**
2293
+ * Who handed `actorId` their row, the last transfer to them: the one closed
2294
+ * row « Transférer » may reopen, to hand the decision back; `undefined` when
2295
+ * nobody did.
2296
+ */
2297
+ export declare function decisionHandedBy(decision: Pick<Decision, "payload">, actorId: string): Uuid | undefined;
2285
2298
  export declare const decisionWithRecipientSchema: z$2.ZodObject<{
2286
2299
  decision: z$2.ZodObject<{
2287
2300
  id: z$2.ZodString;
@@ -2300,8 +2313,6 @@ export declare const decisionWithRecipientSchema: z$2.ZodObject<{
2300
2313
  type: z$2.ZodString;
2301
2314
  title: z$2.ZodString;
2302
2315
  summary: z$2.ZodOptional<z$2.ZodString>;
2303
- why: z$2.ZodOptional<z$2.ZodString>;
2304
- change: z$2.ZodOptional<z$2.ZodString>;
2305
2316
  questions: z$2.ZodOptional<z$2.ZodType<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>, z$2.core.$ZodTypeInternals<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>>>>;
2306
2317
  answer: z$2.ZodOptional<z$2.ZodType<DecisionAnswer, DecisionAnswer, z$2.core.$ZodTypeInternals<DecisionAnswer, DecisionAnswer>>>;
2307
2318
  answeredBy: z$2.ZodOptional<z$2.ZodString>;
@@ -2456,8 +2467,6 @@ export declare const decisionListResultSchema: z$2.ZodObject<{
2456
2467
  type: z$2.ZodString;
2457
2468
  title: z$2.ZodString;
2458
2469
  summary: z$2.ZodOptional<z$2.ZodString>;
2459
- why: z$2.ZodOptional<z$2.ZodString>;
2460
- change: z$2.ZodOptional<z$2.ZodString>;
2461
2470
  questions: z$2.ZodOptional<z$2.ZodType<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>, z$2.core.$ZodTypeInternals<Readonly<Record<string, unknown>>, Readonly<Record<string, unknown>>>>>;
2462
2471
  answer: z$2.ZodOptional<z$2.ZodType<DecisionAnswer, DecisionAnswer, z$2.core.$ZodTypeInternals<DecisionAnswer, DecisionAnswer>>>;
2463
2472
  answeredBy: z$2.ZodOptional<z$2.ZodString>;
@@ -2594,8 +2603,7 @@ export interface DecisionView {
2594
2603
  kind: DecisionKind;
2595
2604
  type: DecisionType;
2596
2605
  title: string;
2597
- why?: string;
2598
- change?: string;
2606
+ summary?: string;
2599
2607
  questions?: DecisionQuestions;
2600
2608
  answer?: DecisionAnswer;
2601
2609
  answeredBy?: Uuid;
@@ -2614,7 +2622,7 @@ export interface DecisionVisibleListParams {
2614
2622
  link?: string;
2615
2623
  kind?: readonly DecisionKind[];
2616
2624
  state?: DecisionReadState;
2617
- /** Free text over the title, why and change lines. */
2625
+ /** Free text over the title and the summary. */
2618
2626
  query?: string;
2619
2627
  limit: number;
2620
2628
  offset: number;
@@ -2656,8 +2664,6 @@ export interface CreateDecisionInput {
2656
2664
  type: DecisionType;
2657
2665
  title: string;
2658
2666
  summary?: string;
2659
- why?: string;
2660
- change?: string;
2661
2667
  questions?: DecisionQuestions;
2662
2668
  links?: DecisionLink[];
2663
2669
  /** Absent: `decision:<id of this decision>`. */
@@ -3126,6 +3132,120 @@ export declare const architectProjectionSchema: z$2.ZodDiscriminatedUnion<[z$2.Z
3126
3132
  operationId: z$2.ZodNullable<z$2.ZodString>;
3127
3133
  message: z$2.ZodString;
3128
3134
  }, z$2.core.$strip>], "status">;
3135
+ /**
3136
+ * The types an attribute can be retyped to, each judged: `retype` (with the
3137
+ * capabilities it loses) or `refuse` (with the judge's reason, and the
3138
+ * dependents the caller sees named; the ones it may not see are counted).
3139
+ * `from` is the stored type they were judged from. `deferred` is a catalogue
3140
+ * retype a boot or push left open for this attribute.
3141
+ */
3142
+ export declare const retypeOptionsOutputSchema: z$2.ZodObject<{
3143
+ from: z$2.ZodEnum<{
3144
+ checkbox: "checkbox";
3145
+ currency: "currency";
3146
+ date: "date";
3147
+ document: "document";
3148
+ formula: "formula";
3149
+ location: "location";
3150
+ multiselect: "multiselect";
3151
+ number: "number";
3152
+ phone: "phone";
3153
+ relation: "relation";
3154
+ richtext: "richtext";
3155
+ rollup: "rollup";
3156
+ select: "select";
3157
+ status: "status";
3158
+ text: "text";
3159
+ user: "user";
3160
+ }>;
3161
+ targets: z$2.ZodArray<z$2.ZodObject<{
3162
+ type: z$2.ZodEnum<{
3163
+ checkbox: "checkbox";
3164
+ currency: "currency";
3165
+ date: "date";
3166
+ document: "document";
3167
+ formula: "formula";
3168
+ location: "location";
3169
+ multiselect: "multiselect";
3170
+ number: "number";
3171
+ phone: "phone";
3172
+ relation: "relation";
3173
+ richtext: "richtext";
3174
+ rollup: "rollup";
3175
+ select: "select";
3176
+ status: "status";
3177
+ text: "text";
3178
+ user: "user";
3179
+ }>;
3180
+ verdict: z$2.ZodEnum<{
3181
+ refuse: "refuse";
3182
+ retype: "retype";
3183
+ }>;
3184
+ reason: z$2.ZodOptional<z$2.ZodEnum<{
3185
+ conversion: "conversion";
3186
+ dependents: "dependents";
3187
+ lossy: "lossy";
3188
+ precondition: "precondition";
3189
+ required: "required";
3190
+ unsupported: "unsupported";
3191
+ }>>;
3192
+ losses: z$2.ZodArray<z$2.ZodObject<{
3193
+ capability: z$2.ZodEnum<{
3194
+ filterable: "filterable";
3195
+ groupable: "groupable";
3196
+ kanbanGroupable: "kanbanGroupable";
3197
+ sortable: "sortable";
3198
+ tableCell: "tableCell";
3199
+ }>;
3200
+ }, z$2.core.$strip>>;
3201
+ dependents: z$2.ZodArray<z$2.ZodObject<{
3202
+ kind: z$2.ZodEnum<{
3203
+ content: "content";
3204
+ formula: "formula";
3205
+ page: "page";
3206
+ relation: "relation";
3207
+ rollup: "rollup";
3208
+ trigger: "trigger";
3209
+ view: "view";
3210
+ }>;
3211
+ label: z$2.ZodString;
3212
+ }, z$2.core.$strip>>;
3213
+ hiddenDependents: z$2.ZodNumber;
3214
+ }, z$2.core.$strip>>;
3215
+ deferred: z$2.ZodNullable<z$2.ZodObject<{
3216
+ to: z$2.ZodEnum<{
3217
+ checkbox: "checkbox";
3218
+ currency: "currency";
3219
+ date: "date";
3220
+ document: "document";
3221
+ formula: "formula";
3222
+ location: "location";
3223
+ multiselect: "multiselect";
3224
+ number: "number";
3225
+ phone: "phone";
3226
+ relation: "relation";
3227
+ richtext: "richtext";
3228
+ rollup: "rollup";
3229
+ select: "select";
3230
+ status: "status";
3231
+ text: "text";
3232
+ user: "user";
3233
+ }>;
3234
+ dependents: z$2.ZodArray<z$2.ZodObject<{
3235
+ kind: z$2.ZodEnum<{
3236
+ content: "content";
3237
+ formula: "formula";
3238
+ page: "page";
3239
+ relation: "relation";
3240
+ rollup: "rollup";
3241
+ trigger: "trigger";
3242
+ view: "view";
3243
+ }>;
3244
+ label: z$2.ZodString;
3245
+ }, z$2.core.$strip>>;
3246
+ hiddenDependents: z$2.ZodNumber;
3247
+ }, z$2.core.$strip>>;
3248
+ }, z$2.core.$strip>;
3129
3249
  type ContentConfiguration<T = ViewContentDefinition> = T extends ViewContentDefinition ? Omit<T, "name" | "label" | "placement"> : never;
3130
3250
  export type BlockInputKind = "object" | "attribute" | "query" | "record" | "agent" | "routine" | "view" | "url" | "emailCategory" | "enum" | "text" | "number" | "boolean" | "period";
3131
3251
  export declare const BLOCK_PERIODS: readonly ["day", "week", "month", "quarter", "year"];
@@ -5719,6 +5839,104 @@ export declare const bundleListSchema: z$2.ZodObject<{
5719
5839
  }, z$2.core.$strip>;
5720
5840
  }, z$2.core.$strip>>;
5721
5841
  }, z$2.core.$strip>;
5842
+ /** What reads an attribute a retype is refused by. */
5843
+ export declare const bundleUpdateDependentSchema: z$2.ZodObject<{
5844
+ kind: z$2.ZodEnum<{
5845
+ content: "content";
5846
+ formula: "formula";
5847
+ page: "page";
5848
+ relation: "relation";
5849
+ rollup: "rollup";
5850
+ trigger: "trigger";
5851
+ view: "view";
5852
+ }>;
5853
+ label: z$2.ZodString;
5854
+ }, z$2.core.$strip>;
5855
+ /**
5856
+ * A retype a sync left for later: what reads the attribute cannot follow it.
5857
+ * The attribute keeps its type until those dependents are gone, and the next
5858
+ * push of the same hash tries again.
5859
+ */
5860
+ export declare const deferredRetypeSchema: z$2.ZodObject<{
5861
+ object: z$2.ZodString;
5862
+ attribute: z$2.ZodString;
5863
+ to: z$2.ZodEnum<{
5864
+ checkbox: "checkbox";
5865
+ currency: "currency";
5866
+ date: "date";
5867
+ document: "document";
5868
+ formula: "formula";
5869
+ location: "location";
5870
+ multiselect: "multiselect";
5871
+ number: "number";
5872
+ phone: "phone";
5873
+ relation: "relation";
5874
+ richtext: "richtext";
5875
+ rollup: "rollup";
5876
+ select: "select";
5877
+ status: "status";
5878
+ text: "text";
5879
+ user: "user";
5880
+ }>;
5881
+ dependents: z$2.ZodArray<z$2.ZodObject<{
5882
+ kind: z$2.ZodEnum<{
5883
+ content: "content";
5884
+ formula: "formula";
5885
+ page: "page";
5886
+ relation: "relation";
5887
+ rollup: "rollup";
5888
+ trigger: "trigger";
5889
+ view: "view";
5890
+ }>;
5891
+ label: z$2.ZodString;
5892
+ }, z$2.core.$strip>>;
5893
+ hiddenDependents: z$2.ZodNumber;
5894
+ }, z$2.core.$strip>;
5895
+ /**
5896
+ * An attribute a sync served as it is stored: the bundle declares a type the
5897
+ * attribute already left by a retype whose way back would lose data (an older
5898
+ * build). Nothing of its declaration is written.
5899
+ */
5900
+ export declare const servedAsIsAttributeSchema: z$2.ZodObject<{
5901
+ object: z$2.ZodString;
5902
+ attribute: z$2.ZodString;
5903
+ declared: z$2.ZodEnum<{
5904
+ checkbox: "checkbox";
5905
+ currency: "currency";
5906
+ date: "date";
5907
+ document: "document";
5908
+ formula: "formula";
5909
+ location: "location";
5910
+ multiselect: "multiselect";
5911
+ number: "number";
5912
+ phone: "phone";
5913
+ relation: "relation";
5914
+ richtext: "richtext";
5915
+ rollup: "rollup";
5916
+ select: "select";
5917
+ status: "status";
5918
+ text: "text";
5919
+ user: "user";
5920
+ }>;
5921
+ stored: z$2.ZodEnum<{
5922
+ checkbox: "checkbox";
5923
+ currency: "currency";
5924
+ date: "date";
5925
+ document: "document";
5926
+ formula: "formula";
5927
+ location: "location";
5928
+ multiselect: "multiselect";
5929
+ number: "number";
5930
+ phone: "phone";
5931
+ relation: "relation";
5932
+ richtext: "richtext";
5933
+ rollup: "rollup";
5934
+ select: "select";
5935
+ status: "status";
5936
+ text: "text";
5937
+ user: "user";
5938
+ }>;
5939
+ }, z$2.core.$strip>;
5722
5940
  /** What a sync reports; `applied: false` when the workspace already held this hash. */
5723
5941
  export declare const syncBundleResultSchema: z$2.ZodObject<{
5724
5942
  applied: z$2.ZodBoolean;
@@ -5734,6 +5952,81 @@ export declare const syncBundleResultSchema: z$2.ZodObject<{
5734
5952
  adopted: z$2.ZodNumber;
5735
5953
  released: z$2.ZodNumber;
5736
5954
  }, z$2.core.$strip>>;
5955
+ deferredRetypes: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
5956
+ object: z$2.ZodString;
5957
+ attribute: z$2.ZodString;
5958
+ to: z$2.ZodEnum<{
5959
+ checkbox: "checkbox";
5960
+ currency: "currency";
5961
+ date: "date";
5962
+ document: "document";
5963
+ formula: "formula";
5964
+ location: "location";
5965
+ multiselect: "multiselect";
5966
+ number: "number";
5967
+ phone: "phone";
5968
+ relation: "relation";
5969
+ richtext: "richtext";
5970
+ rollup: "rollup";
5971
+ select: "select";
5972
+ status: "status";
5973
+ text: "text";
5974
+ user: "user";
5975
+ }>;
5976
+ dependents: z$2.ZodArray<z$2.ZodObject<{
5977
+ kind: z$2.ZodEnum<{
5978
+ content: "content";
5979
+ formula: "formula";
5980
+ page: "page";
5981
+ relation: "relation";
5982
+ rollup: "rollup";
5983
+ trigger: "trigger";
5984
+ view: "view";
5985
+ }>;
5986
+ label: z$2.ZodString;
5987
+ }, z$2.core.$strip>>;
5988
+ hiddenDependents: z$2.ZodNumber;
5989
+ }, z$2.core.$strip>>>;
5990
+ servedAsIs: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
5991
+ object: z$2.ZodString;
5992
+ attribute: z$2.ZodString;
5993
+ declared: z$2.ZodEnum<{
5994
+ checkbox: "checkbox";
5995
+ currency: "currency";
5996
+ date: "date";
5997
+ document: "document";
5998
+ formula: "formula";
5999
+ location: "location";
6000
+ multiselect: "multiselect";
6001
+ number: "number";
6002
+ phone: "phone";
6003
+ relation: "relation";
6004
+ richtext: "richtext";
6005
+ rollup: "rollup";
6006
+ select: "select";
6007
+ status: "status";
6008
+ text: "text";
6009
+ user: "user";
6010
+ }>;
6011
+ stored: z$2.ZodEnum<{
6012
+ checkbox: "checkbox";
6013
+ currency: "currency";
6014
+ date: "date";
6015
+ document: "document";
6016
+ formula: "formula";
6017
+ location: "location";
6018
+ multiselect: "multiselect";
6019
+ number: "number";
6020
+ phone: "phone";
6021
+ relation: "relation";
6022
+ richtext: "richtext";
6023
+ rollup: "rollup";
6024
+ select: "select";
6025
+ status: "status";
6026
+ text: "text";
6027
+ user: "user";
6028
+ }>;
6029
+ }, z$2.core.$strip>>>;
5737
6030
  }, z$2.core.$strip>;
5738
6031
  export declare const bundlePieceKindSchema: z$2.ZodEnum<{
5739
6032
  agent: "agent";
@@ -5812,14 +6105,21 @@ export declare const bundleUpdateGroupSchema: z$2.ZodEnum<{
5812
6105
  /**
5813
6106
  * Why a piece is `notApplied`, as a code the screen words: `lossy` (the new
5814
6107
  * type would lose stored values), `required` (it would become required while
5815
- * records may be empty), `retype` (no update changes a type), `move` (no
5816
- * update moves a content between placements), `nameTaken` (its name is held,
5817
- * `reasonName`), `refused` (adding it is refused here).
6108
+ * records may be empty), `retype` (a type change the catalogue does not
6109
+ * support), `move` (no update moves a content between placements),
6110
+ * `nameTaken` (its name is held, `reasonName`), `refused` (adding it is
6111
+ * refused here), `precondition` (the new type would not offer every value
6112
+ * stored), `dependents` (something that reads the attribute cannot follow,
6113
+ * `dependents` and `hiddenDependents`), `conversion` (the type change needs
6114
+ * its values converted, not available yet).
5818
6115
  */
5819
6116
  export declare const bundleUpdateReasonCodeSchema: z$2.ZodEnum<{
6117
+ conversion: "conversion";
6118
+ dependents: "dependents";
5820
6119
  lossy: "lossy";
5821
6120
  move: "move";
5822
6121
  nameTaken: "nameTaken";
6122
+ precondition: "precondition";
5823
6123
  refused: "refused";
5824
6124
  required: "required";
5825
6125
  retype: "retype";
@@ -5844,14 +6144,66 @@ export declare const bundleUpdatePieceSchema: z$2.ZodObject<{
5844
6144
  }>;
5845
6145
  label: z$2.ZodString;
5846
6146
  reasonCode: z$2.ZodOptional<z$2.ZodEnum<{
6147
+ conversion: "conversion";
6148
+ dependents: "dependents";
5847
6149
  lossy: "lossy";
5848
6150
  move: "move";
5849
6151
  nameTaken: "nameTaken";
6152
+ precondition: "precondition";
5850
6153
  refused: "refused";
5851
6154
  required: "required";
5852
6155
  retype: "retype";
5853
6156
  }>>;
5854
6157
  reasonName: z$2.ZodOptional<z$2.ZodString>;
6158
+ fromType: z$2.ZodOptional<z$2.ZodEnum<{
6159
+ checkbox: "checkbox";
6160
+ currency: "currency";
6161
+ date: "date";
6162
+ document: "document";
6163
+ formula: "formula";
6164
+ location: "location";
6165
+ multiselect: "multiselect";
6166
+ number: "number";
6167
+ phone: "phone";
6168
+ relation: "relation";
6169
+ richtext: "richtext";
6170
+ rollup: "rollup";
6171
+ select: "select";
6172
+ status: "status";
6173
+ text: "text";
6174
+ user: "user";
6175
+ }>>;
6176
+ toType: z$2.ZodOptional<z$2.ZodEnum<{
6177
+ checkbox: "checkbox";
6178
+ currency: "currency";
6179
+ date: "date";
6180
+ document: "document";
6181
+ formula: "formula";
6182
+ location: "location";
6183
+ multiselect: "multiselect";
6184
+ number: "number";
6185
+ phone: "phone";
6186
+ relation: "relation";
6187
+ richtext: "richtext";
6188
+ rollup: "rollup";
6189
+ select: "select";
6190
+ status: "status";
6191
+ text: "text";
6192
+ user: "user";
6193
+ }>>;
6194
+ dependents: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
6195
+ kind: z$2.ZodEnum<{
6196
+ content: "content";
6197
+ formula: "formula";
6198
+ page: "page";
6199
+ relation: "relation";
6200
+ rollup: "rollup";
6201
+ trigger: "trigger";
6202
+ view: "view";
6203
+ }>;
6204
+ label: z$2.ZodString;
6205
+ }, z$2.core.$strip>>>;
6206
+ hiddenDependents: z$2.ZodOptional<z$2.ZodNumber>;
5855
6207
  }, z$2.core.$strip>;
5856
6208
  /** What updating an added bundle would do, and the fingerprint `bundles.update` must carry. */
5857
6209
  export declare const bundleUpdatePlanSchema: z$2.ZodObject<{
@@ -5875,14 +6227,66 @@ export declare const bundleUpdatePlanSchema: z$2.ZodObject<{
5875
6227
  }>;
5876
6228
  label: z$2.ZodString;
5877
6229
  reasonCode: z$2.ZodOptional<z$2.ZodEnum<{
6230
+ conversion: "conversion";
6231
+ dependents: "dependents";
5878
6232
  lossy: "lossy";
5879
6233
  move: "move";
5880
6234
  nameTaken: "nameTaken";
6235
+ precondition: "precondition";
5881
6236
  refused: "refused";
5882
6237
  required: "required";
5883
6238
  retype: "retype";
5884
6239
  }>>;
5885
6240
  reasonName: z$2.ZodOptional<z$2.ZodString>;
6241
+ fromType: z$2.ZodOptional<z$2.ZodEnum<{
6242
+ checkbox: "checkbox";
6243
+ currency: "currency";
6244
+ date: "date";
6245
+ document: "document";
6246
+ formula: "formula";
6247
+ location: "location";
6248
+ multiselect: "multiselect";
6249
+ number: "number";
6250
+ phone: "phone";
6251
+ relation: "relation";
6252
+ richtext: "richtext";
6253
+ rollup: "rollup";
6254
+ select: "select";
6255
+ status: "status";
6256
+ text: "text";
6257
+ user: "user";
6258
+ }>>;
6259
+ toType: z$2.ZodOptional<z$2.ZodEnum<{
6260
+ checkbox: "checkbox";
6261
+ currency: "currency";
6262
+ date: "date";
6263
+ document: "document";
6264
+ formula: "formula";
6265
+ location: "location";
6266
+ multiselect: "multiselect";
6267
+ number: "number";
6268
+ phone: "phone";
6269
+ relation: "relation";
6270
+ richtext: "richtext";
6271
+ rollup: "rollup";
6272
+ select: "select";
6273
+ status: "status";
6274
+ text: "text";
6275
+ user: "user";
6276
+ }>>;
6277
+ dependents: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
6278
+ kind: z$2.ZodEnum<{
6279
+ content: "content";
6280
+ formula: "formula";
6281
+ page: "page";
6282
+ relation: "relation";
6283
+ rollup: "rollup";
6284
+ trigger: "trigger";
6285
+ view: "view";
6286
+ }>;
6287
+ label: z$2.ZodString;
6288
+ }, z$2.core.$strip>>>;
6289
+ hiddenDependents: z$2.ZodOptional<z$2.ZodNumber>;
5886
6290
  }, z$2.core.$strip>>;
5887
6291
  fingerprint: z$2.ZodString;
5888
6292
  }, z$2.core.$strip>;
@@ -5962,19 +6366,19 @@ export type BundleLocale = (typeof BUNDLE_LOCALES)[number];
5962
6366
  * `views.<object>.<view>.label | contents.<content>.label | markdown`;
5963
6367
  * `pages.<page>.label | contents.<content>.label | markdown`;
5964
6368
  * `agents.<agent>.label | description | systemPrompt`;
5965
- * `setup.title | why | prompt`;
6369
+ * `setup.title | context | prompt`;
5966
6370
  * `samples.<sample id>.<attribute>`.
5967
6371
  */
5968
6372
  export type BundleTranslationTable = Record<string, string>;
5969
6373
  /** The longest `prompt` of a bundle's setup invitation. */
5970
6374
  export declare const BUNDLE_SETUP_PROMPT_MAX_LENGTH = 2000;
5971
6375
  /**
5972
- * The invitation a bundle makes once added: a decision's title and `why`, and
6376
+ * The invitation a bundle makes once added: a decision's title and `context`, and
5973
6377
  * the prompt that starts its configuration. Outside the hash.
5974
6378
  */
5975
6379
  export interface BundleSetup {
5976
6380
  title: string;
5977
- why: string;
6381
+ context: string;
5978
6382
  prompt: string;
5979
6383
  }
5980
6384
  /** What `bundle(...).build()` returns: plain, serializable, hashed over its pieces only. */
@@ -6441,6 +6845,8 @@ export interface DraftableAttribute {
6441
6845
  attributeType: string;
6442
6846
  /** Type-specific configuration (relation targets, select options, ...). */
6443
6847
  config?: Record<string, unknown>;
6848
+ /** Types this attribute left through retypes, oldest first. Never part of `config`. */
6849
+ retypedFrom?: readonly AttributeType[];
6444
6850
  }
6445
6851
  /** Whether a new sample is display-only or explicitly requested real data. */
6446
6852
  export type SamplePublication = "preview" | "requested-data";
@@ -6714,24 +7120,19 @@ export type ArchitectProjection = {
6714
7120
  });
6715
7121
  /** Canonical normalized actions and legal condition fields (trigger catalogue F). */
6716
7122
  export declare const GITHUB_TRIGGER_CATALOG: {
6717
- readonly issue: {
6718
- readonly events: readonly ["issues"];
6719
- readonly actions: readonly ["opened", "edited", "closed", "reopened", "labeled", "unlabeled", "assigned", "unassigned", "milestoned", "demilestoned", "transferred", "pinned"];
6720
- readonly conditions: readonly ["label", "issueLabels", "assignees", "milestone", "issueType", "text"];
6721
- };
6722
7123
  readonly pull_request: {
6723
7124
  readonly events: readonly ["pull_request"];
6724
- readonly actions: readonly ["opened", "ready_for_review", "synchronize", "review_requested", "merged", "closed", "reopened", "converted_to_draft", "labeled", "assigned", "edited"];
6725
- readonly conditions: readonly ["baseBranch", "headBranch", "draft", "issueLabels", "changedPaths", "prAuthor"];
7125
+ readonly actions: readonly ["opened", "ready_for_review", "synchronize", "merged", "closed", "labeled"];
7126
+ readonly conditions: readonly ["baseBranch", "headBranch", "draft", "label", "issueLabels", "changedPaths", "prAuthor"];
6726
7127
  };
6727
7128
  readonly review: {
6728
7129
  readonly events: readonly ["pull_request_review"];
6729
- readonly actions: readonly ["submitted", "edited", "dismissed"];
7130
+ readonly actions: readonly ["submitted"];
6730
7131
  readonly conditions: readonly ["reviewState", "prAuthor"];
6731
7132
  };
6732
7133
  readonly comment: {
6733
- readonly events: readonly ["issue_comment", "pull_request_review_comment", "commit_comment"];
6734
- readonly actions: readonly ["created", "edited", "deleted"];
7134
+ readonly events: readonly ["issue_comment", "pull_request_review_comment"];
7135
+ readonly actions: readonly ["created"];
6735
7136
  readonly conditions: readonly ["text", "issueAuthor", "prAuthor"];
6736
7137
  };
6737
7138
  readonly push: {
@@ -6739,41 +7140,16 @@ export declare const GITHUB_TRIGGER_CATALOG: {
6739
7140
  readonly actions: readonly ["pushed"];
6740
7141
  readonly conditions: readonly ["branch", "changedPaths", "forced"];
6741
7142
  };
6742
- readonly ref: {
6743
- readonly events: readonly ["create", "delete"];
6744
- readonly actions: readonly ["created", "deleted"];
6745
- readonly conditions: readonly ["refType", "branch", "tag"];
6746
- };
6747
7143
  readonly workflow: {
6748
7144
  readonly events: readonly ["workflow_run"];
6749
- readonly actions: readonly ["requested", "in_progress", "completed"];
7145
+ readonly actions: readonly ["completed"];
6750
7146
  readonly conditions: readonly ["workflowName", "conclusion", "branch", "originEvent"];
6751
7147
  };
6752
7148
  readonly check: {
6753
7149
  readonly events: readonly ["check_suite", "check_run"];
6754
- readonly actions: readonly ["completed", "rerequested"];
7150
+ readonly actions: readonly ["completed"];
6755
7151
  readonly conditions: readonly ["checkApp", "checkName", "conclusion"];
6756
7152
  };
6757
- readonly project_item: {
6758
- readonly events: readonly ["projects_v2_item"];
6759
- readonly actions: readonly ["created", "edited", "archived", "restored", "deleted"];
6760
- readonly conditions: readonly ["project", "projectField", "from", "to", "itemType"];
6761
- };
6762
- readonly release: {
6763
- readonly events: readonly ["release"];
6764
- readonly actions: readonly ["published", "created", "edited", "prereleased", "deleted"];
6765
- readonly conditions: readonly ["prerelease", "tag"];
6766
- };
6767
- readonly discussion: {
6768
- readonly events: readonly ["discussion", "discussion_comment"];
6769
- readonly actions: readonly ["created", "commented", "answered", "labeled", "closed"];
6770
- readonly conditions: readonly ["category", "issueLabels", "text"];
6771
- };
6772
- readonly repository: {
6773
- readonly events: readonly ["star", "fork", "repository"];
6774
- readonly actions: readonly ["starred", "forked", "created", "archived"];
6775
- readonly conditions: readonly [];
6776
- };
6777
7153
  };
6778
7154
  export declare const SLACK_TRIGGER_CATALOG: {
6779
7155
  readonly mention: {
@@ -6792,10 +7168,6 @@ export declare const SLACK_TRIGGER_CATALOG: {
6792
7168
  readonly events: readonly ["reaction_added"];
6793
7169
  readonly conditions: readonly ["messageAuthor"];
6794
7170
  };
6795
- readonly member_joined: {
6796
- readonly events: readonly ["member_joined_channel"];
6797
- readonly conditions: readonly [];
6798
- };
6799
7171
  };
6800
7172
  export declare const githubConditionSchema: z$2.ZodDiscriminatedUnion<[z$2.ZodObject<{
6801
7173
  field: z$2.ZodLiteral<"text">;
@@ -6814,19 +7186,6 @@ export declare const githubConditionSchema: z$2.ZodDiscriminatedUnion<[z$2.ZodOb
6814
7186
  any: "any";
6815
7187
  }>>;
6816
7188
  value: z$2.ZodArray<z$2.ZodString>;
6817
- }, z$2.core.$strict>, z$2.ZodObject<{
6818
- field: z$2.ZodLiteral<"assignees">;
6819
- operator: z$2.ZodDefault<z$2.ZodEnum<{
6820
- all: "all";
6821
- any: "any";
6822
- }>>;
6823
- value: z$2.ZodArray<z$2.ZodString>;
6824
- }, z$2.core.$strict>, z$2.ZodObject<{
6825
- field: z$2.ZodLiteral<"milestone">;
6826
- value: z$2.ZodString;
6827
- }, z$2.core.$strict>, z$2.ZodObject<{
6828
- field: z$2.ZodLiteral<"issueType">;
6829
- value: z$2.ZodString;
6830
7189
  }, z$2.core.$strict>, z$2.ZodObject<{
6831
7190
  field: z$2.ZodLiteral<"baseBranch">;
6832
7191
  value: z$2.ZodString;
@@ -6873,40 +7232,6 @@ export declare const githubConditionSchema: z$2.ZodDiscriminatedUnion<[z$2.ZodOb
6873
7232
  }, z$2.core.$strict>, z$2.ZodObject<{
6874
7233
  field: z$2.ZodLiteral<"originEvent">;
6875
7234
  value: z$2.ZodString;
6876
- }, z$2.core.$strict>, z$2.ZodObject<{
6877
- field: z$2.ZodLiteral<"project">;
6878
- value: z$2.ZodString;
6879
- }, z$2.core.$strict>, z$2.ZodObject<{
6880
- field: z$2.ZodLiteral<"projectField">;
6881
- value: z$2.ZodString;
6882
- }, z$2.core.$strict>, z$2.ZodObject<{
6883
- field: z$2.ZodLiteral<"from">;
6884
- value: z$2.ZodNullable<z$2.ZodString>;
6885
- }, z$2.core.$strict>, z$2.ZodObject<{
6886
- field: z$2.ZodLiteral<"to">;
6887
- value: z$2.ZodNullable<z$2.ZodString>;
6888
- }, z$2.core.$strict>, z$2.ZodObject<{
6889
- field: z$2.ZodLiteral<"itemType">;
6890
- value: z$2.ZodEnum<{
6891
- draft: "draft";
6892
- issue: "issue";
6893
- pull_request: "pull_request";
6894
- }>;
6895
- }, z$2.core.$strict>, z$2.ZodObject<{
6896
- field: z$2.ZodLiteral<"prerelease">;
6897
- value: z$2.ZodBoolean;
6898
- }, z$2.core.$strict>, z$2.ZodObject<{
6899
- field: z$2.ZodLiteral<"tag">;
6900
- value: z$2.ZodString;
6901
- }, z$2.core.$strict>, z$2.ZodObject<{
6902
- field: z$2.ZodLiteral<"refType">;
6903
- value: z$2.ZodEnum<{
6904
- branch: "branch";
6905
- tag: "tag";
6906
- }>;
6907
- }, z$2.core.$strict>, z$2.ZodObject<{
6908
- field: z$2.ZodLiteral<"category">;
6909
- value: z$2.ZodString;
6910
7235
  }, z$2.core.$strict>], "field">;
6911
7236
  export declare const slackConditionSchema: z$2.ZodDiscriminatedUnion<[z$2.ZodObject<{
6912
7237
  field: z$2.ZodLiteral<"text">;
@@ -6932,6 +7257,10 @@ export type GithubCondition = z$2.output<typeof githubConditionSchema>;
6932
7257
  export type SlackCondition = z$2.output<typeof slackConditionSchema>;
6933
7258
  export type GithubTriggerFamily = keyof typeof GITHUB_TRIGGER_CATALOG;
6934
7259
  export type SlackTriggerOn = keyof typeof SLACK_TRIGGER_CATALOG;
7260
+ /** Every GitHub family, in the catalogue's order. */
7261
+ export declare const GITHUB_TRIGGER_FAMILIES: [GithubTriggerFamily, ...GithubTriggerFamily[]];
7262
+ /** Every Slack event a trigger listens to, in the catalogue's order. */
7263
+ export declare const SLACK_TRIGGER_EVENTS: [SlackTriggerOn, ...SlackTriggerOn[]];
6935
7264
  export type GithubTriggerAction<F extends GithubTriggerFamily = GithubTriggerFamily> = (typeof GITHUB_TRIGGER_CATALOG)[F]["actions"][number];
6936
7265
  export type GithubTriggerSender = "human" | "me" | "any" | {
6937
7266
  logins: string[];
@@ -6961,19 +7290,17 @@ export type SlackTriggerMatch = { [O in SlackTriggerOn]: {
6961
7290
  reactions?: never;
6962
7291
  }); }[SlackTriggerOn];
6963
7292
  export type ConnectorTriggerMatch = GithubTriggerMatch | SlackTriggerMatch;
7293
+ /** The suffix of `owner/*`: every repository of that owner, installed now or later. */
7294
+ export declare const REPOSITORY_WILDCARD = "/*";
7295
+ /** Whether a stored repository (`owner/repo` or `owner/*`) covers a full name. Case-insensitive. */
7296
+ export declare function matchesRepositoryPattern(pattern: string, fullName: string): boolean;
6964
7297
  /** The refinements establish the family/condition/action correlation of the output union. */
6965
7298
  export declare const githubTriggerMatchSchema: z$2.ZodPipe<z$2.ZodObject<{
6966
7299
  family: z$2.ZodEnum<{
6967
7300
  check: "check";
6968
7301
  comment: "comment";
6969
- discussion: "discussion";
6970
- issue: "issue";
6971
- project_item: "project_item";
6972
7302
  pull_request: "pull_request";
6973
7303
  push: "push";
6974
- ref: "ref";
6975
- release: "release";
6976
- repository: "repository";
6977
7304
  review: "review";
6978
7305
  workflow: "workflow";
6979
7306
  }>;
@@ -7003,19 +7330,6 @@ export declare const githubTriggerMatchSchema: z$2.ZodPipe<z$2.ZodObject<{
7003
7330
  any: "any";
7004
7331
  }>>;
7005
7332
  value: z$2.ZodArray<z$2.ZodString>;
7006
- }, z$2.core.$strict>, z$2.ZodObject<{
7007
- field: z$2.ZodLiteral<"assignees">;
7008
- operator: z$2.ZodDefault<z$2.ZodEnum<{
7009
- all: "all";
7010
- any: "any";
7011
- }>>;
7012
- value: z$2.ZodArray<z$2.ZodString>;
7013
- }, z$2.core.$strict>, z$2.ZodObject<{
7014
- field: z$2.ZodLiteral<"milestone">;
7015
- value: z$2.ZodString;
7016
- }, z$2.core.$strict>, z$2.ZodObject<{
7017
- field: z$2.ZodLiteral<"issueType">;
7018
- value: z$2.ZodString;
7019
7333
  }, z$2.core.$strict>, z$2.ZodObject<{
7020
7334
  field: z$2.ZodLiteral<"baseBranch">;
7021
7335
  value: z$2.ZodString;
@@ -7062,44 +7376,10 @@ export declare const githubTriggerMatchSchema: z$2.ZodPipe<z$2.ZodObject<{
7062
7376
  }, z$2.core.$strict>, z$2.ZodObject<{
7063
7377
  field: z$2.ZodLiteral<"originEvent">;
7064
7378
  value: z$2.ZodString;
7065
- }, z$2.core.$strict>, z$2.ZodObject<{
7066
- field: z$2.ZodLiteral<"project">;
7067
- value: z$2.ZodString;
7068
- }, z$2.core.$strict>, z$2.ZodObject<{
7069
- field: z$2.ZodLiteral<"projectField">;
7070
- value: z$2.ZodString;
7071
- }, z$2.core.$strict>, z$2.ZodObject<{
7072
- field: z$2.ZodLiteral<"from">;
7073
- value: z$2.ZodNullable<z$2.ZodString>;
7074
- }, z$2.core.$strict>, z$2.ZodObject<{
7075
- field: z$2.ZodLiteral<"to">;
7076
- value: z$2.ZodNullable<z$2.ZodString>;
7077
- }, z$2.core.$strict>, z$2.ZodObject<{
7078
- field: z$2.ZodLiteral<"itemType">;
7079
- value: z$2.ZodEnum<{
7080
- draft: "draft";
7081
- issue: "issue";
7082
- pull_request: "pull_request";
7083
- }>;
7084
- }, z$2.core.$strict>, z$2.ZodObject<{
7085
- field: z$2.ZodLiteral<"prerelease">;
7086
- value: z$2.ZodBoolean;
7087
- }, z$2.core.$strict>, z$2.ZodObject<{
7088
- field: z$2.ZodLiteral<"tag">;
7089
- value: z$2.ZodString;
7090
- }, z$2.core.$strict>, z$2.ZodObject<{
7091
- field: z$2.ZodLiteral<"refType">;
7092
- value: z$2.ZodEnum<{
7093
- branch: "branch";
7094
- tag: "tag";
7095
- }>;
7096
- }, z$2.core.$strict>, z$2.ZodObject<{
7097
- field: z$2.ZodLiteral<"category">;
7098
- value: z$2.ZodString;
7099
7379
  }, z$2.core.$strict>], "field">>>;
7100
7380
  }, z$2.core.$strict>, z$2.ZodTransform<{
7101
7381
  family: "check";
7102
- actions: ("completed" | "rerequested")[];
7382
+ actions: "completed"[];
7103
7383
  repositories: string[];
7104
7384
  sender: GithubTriggerSender;
7105
7385
  conditions: ({
@@ -7114,7 +7394,7 @@ export declare const githubTriggerMatchSchema: z$2.ZodPipe<z$2.ZodObject<{
7114
7394
  })[];
7115
7395
  } | {
7116
7396
  family: "comment";
7117
- actions: ("created" | "deleted" | "edited")[];
7397
+ actions: "created"[];
7118
7398
  repositories: string[];
7119
7399
  sender: GithubTriggerSender;
7120
7400
  conditions: ({
@@ -7129,146 +7409,51 @@ export declare const githubTriggerMatchSchema: z$2.ZodPipe<z$2.ZodObject<{
7129
7409
  value: string;
7130
7410
  })[];
7131
7411
  } | {
7132
- family: "discussion";
7133
- actions: ("answered" | "closed" | "commented" | "created" | "labeled")[];
7412
+ family: "pull_request";
7413
+ actions: ("closed" | "labeled" | "merged" | "opened" | "ready_for_review" | "synchronize")[];
7134
7414
  repositories: string[];
7135
7415
  sender: GithubTriggerSender;
7136
7416
  conditions: ({
7137
- field: "text";
7138
- operator: "contains" | "starts_with";
7139
- value: string;
7140
- } | {
7141
- field: "category";
7417
+ field: "baseBranch";
7142
7418
  value: string;
7143
7419
  } | {
7144
- field: "issueLabels";
7145
- operator: "all" | "any";
7146
- value: string[];
7147
- })[];
7148
- } | {
7149
- family: "issue";
7150
- actions: ("assigned" | "closed" | "demilestoned" | "edited" | "labeled" | "milestoned" | "opened" | "pinned" | "reopened" | "transferred" | "unassigned" | "unlabeled")[];
7151
- repositories: string[];
7152
- sender: GithubTriggerSender;
7153
- conditions: ({
7154
- field: "text";
7155
- operator: "contains" | "starts_with";
7420
+ field: "changedPaths";
7156
7421
  value: string;
7157
7422
  } | {
7158
- field: "issueType";
7423
+ field: "headBranch";
7159
7424
  value: string;
7160
7425
  } | {
7161
7426
  field: "label";
7162
7427
  value: string;
7163
7428
  } | {
7164
- field: "milestone";
7429
+ field: "prAuthor";
7165
7430
  value: string;
7166
7431
  } | {
7167
- field: "assignees";
7168
- operator: "all" | "any";
7169
- value: string[];
7432
+ field: "draft";
7433
+ value: boolean;
7170
7434
  } | {
7171
7435
  field: "issueLabels";
7172
7436
  operator: "all" | "any";
7173
7437
  value: string[];
7174
7438
  })[];
7175
7439
  } | {
7176
- family: "project_item";
7177
- actions: ("archived" | "created" | "deleted" | "edited" | "restored")[];
7440
+ family: "push";
7441
+ actions: "pushed"[];
7178
7442
  repositories: string[];
7179
7443
  sender: GithubTriggerSender;
7180
7444
  conditions: ({
7181
- field: "project";
7445
+ field: "branch";
7182
7446
  value: string;
7183
7447
  } | {
7184
- field: "projectField";
7448
+ field: "changedPaths";
7185
7449
  value: string;
7186
7450
  } | {
7187
- field: "from";
7188
- value: string | null;
7189
- } | {
7190
- field: "to";
7191
- value: string | null;
7192
- } | {
7193
- field: "itemType";
7194
- value: "draft" | "issue" | "pull_request";
7451
+ field: "forced";
7452
+ value: boolean;
7195
7453
  })[];
7196
7454
  } | {
7197
- family: "pull_request";
7198
- actions: ("assigned" | "closed" | "converted_to_draft" | "edited" | "labeled" | "merged" | "opened" | "ready_for_review" | "reopened" | "review_requested" | "synchronize")[];
7199
- repositories: string[];
7200
- sender: GithubTriggerSender;
7201
- conditions: ({
7202
- field: "baseBranch";
7203
- value: string;
7204
- } | {
7205
- field: "changedPaths";
7206
- value: string;
7207
- } | {
7208
- field: "headBranch";
7209
- value: string;
7210
- } | {
7211
- field: "prAuthor";
7212
- value: string;
7213
- } | {
7214
- field: "draft";
7215
- value: boolean;
7216
- } | {
7217
- field: "issueLabels";
7218
- operator: "all" | "any";
7219
- value: string[];
7220
- })[];
7221
- } | {
7222
- family: "push";
7223
- actions: "pushed"[];
7224
- repositories: string[];
7225
- sender: GithubTriggerSender;
7226
- conditions: ({
7227
- field: "branch";
7228
- value: string;
7229
- } | {
7230
- field: "changedPaths";
7231
- value: string;
7232
- } | {
7233
- field: "forced";
7234
- value: boolean;
7235
- })[];
7236
- } | {
7237
- family: "ref";
7238
- actions: ("created" | "deleted")[];
7239
- repositories: string[];
7240
- sender: GithubTriggerSender;
7241
- conditions: ({
7242
- field: "branch";
7243
- value: string;
7244
- } | {
7245
- field: "tag";
7246
- value: string;
7247
- } | {
7248
- field: "refType";
7249
- value: "branch" | "tag";
7250
- })[];
7251
- } | {
7252
- family: "release";
7253
- actions: ("created" | "deleted" | "edited" | "prereleased" | "published")[];
7254
- repositories: string[];
7255
- sender: GithubTriggerSender;
7256
- conditions: ({
7257
- field: "tag";
7258
- value: string;
7259
- } | {
7260
- field: "prerelease";
7261
- value: boolean;
7262
- })[];
7263
- } | {
7264
- family: "repository";
7265
- actions: ("archived" | "created" | "forked" | "starred")[];
7266
- repositories: string[];
7267
- sender: GithubTriggerSender;
7268
- conditions: never[];
7269
- } | {
7270
- family: "review";
7271
- actions: ("dismissed" | "edited" | "submitted")[];
7455
+ family: "review";
7456
+ actions: "submitted"[];
7272
7457
  repositories: string[];
7273
7458
  sender: GithubTriggerSender;
7274
7459
  conditions: ({
@@ -7280,7 +7465,7 @@ export declare const githubTriggerMatchSchema: z$2.ZodPipe<z$2.ZodObject<{
7280
7465
  })[];
7281
7466
  } | {
7282
7467
  family: "workflow";
7283
- actions: ("completed" | "in_progress" | "requested")[];
7468
+ actions: "completed"[];
7284
7469
  repositories: string[];
7285
7470
  sender: GithubTriggerSender;
7286
7471
  conditions: ({
@@ -7297,7 +7482,7 @@ export declare const githubTriggerMatchSchema: z$2.ZodPipe<z$2.ZodObject<{
7297
7482
  value: string;
7298
7483
  })[];
7299
7484
  }, {
7300
- family: "check" | "comment" | "discussion" | "issue" | "project_item" | "pull_request" | "push" | "ref" | "release" | "repository" | "review" | "workflow";
7485
+ family: "check" | "comment" | "pull_request" | "push" | "review" | "workflow";
7301
7486
  actions: string[];
7302
7487
  repositories: string[];
7303
7488
  sender: "any" | "human" | "me" | {
@@ -7313,9 +7498,6 @@ export declare const githubTriggerMatchSchema: z$2.ZodPipe<z$2.ZodObject<{
7313
7498
  } | {
7314
7499
  field: "branch";
7315
7500
  value: string;
7316
- } | {
7317
- field: "category";
7318
- value: string;
7319
7501
  } | {
7320
7502
  field: "changedPaths";
7321
7503
  value: string;
@@ -7334,30 +7516,15 @@ export declare const githubTriggerMatchSchema: z$2.ZodPipe<z$2.ZodObject<{
7334
7516
  } | {
7335
7517
  field: "issueAuthor";
7336
7518
  value: string;
7337
- } | {
7338
- field: "issueType";
7339
- value: string;
7340
7519
  } | {
7341
7520
  field: "label";
7342
7521
  value: string;
7343
- } | {
7344
- field: "milestone";
7345
- value: string;
7346
7522
  } | {
7347
7523
  field: "originEvent";
7348
7524
  value: string;
7349
7525
  } | {
7350
7526
  field: "prAuthor";
7351
7527
  value: string;
7352
- } | {
7353
- field: "project";
7354
- value: string;
7355
- } | {
7356
- field: "projectField";
7357
- value: string;
7358
- } | {
7359
- field: "tag";
7360
- value: string;
7361
7528
  } | {
7362
7529
  field: "workflowName";
7363
7530
  value: string;
@@ -7367,13 +7534,6 @@ export declare const githubTriggerMatchSchema: z$2.ZodPipe<z$2.ZodObject<{
7367
7534
  } | {
7368
7535
  field: "forced";
7369
7536
  value: boolean;
7370
- } | {
7371
- field: "prerelease";
7372
- value: boolean;
7373
- } | {
7374
- field: "assignees";
7375
- operator: "all" | "any";
7376
- value: string[];
7377
7537
  } | {
7378
7538
  field: "issueLabels";
7379
7539
  operator: "all" | "any";
@@ -7381,24 +7541,11 @@ export declare const githubTriggerMatchSchema: z$2.ZodPipe<z$2.ZodObject<{
7381
7541
  } | {
7382
7542
  field: "reviewState";
7383
7543
  value: "approved" | "changes_requested" | "commented";
7384
- } | {
7385
- field: "from";
7386
- value: string | null;
7387
- } | {
7388
- field: "to";
7389
- value: string | null;
7390
- } | {
7391
- field: "itemType";
7392
- value: "draft" | "issue" | "pull_request";
7393
- } | {
7394
- field: "refType";
7395
- value: "branch" | "tag";
7396
7544
  })[];
7397
7545
  }>>;
7398
7546
  export declare const slackTriggerMatchSchema: z$2.ZodPipe<z$2.ZodObject<{
7399
7547
  on: z$2.ZodEnum<{
7400
7548
  dm: "dm";
7401
- member_joined: "member_joined";
7402
7549
  mention: "mention";
7403
7550
  message: "message";
7404
7551
  reaction: "reaction";
@@ -7446,13 +7593,6 @@ export declare const slackTriggerMatchSchema: z$2.ZodPipe<z$2.ZodObject<{
7446
7593
  })[];
7447
7594
  } & {
7448
7595
  reactions?: never;
7449
- }) | ({
7450
- on: "member_joined";
7451
- channels: string[];
7452
- sender: SlackTriggerSender;
7453
- conditions: never[];
7454
- } & {
7455
- reactions?: never;
7456
7596
  }) | ({
7457
7597
  on: "mention";
7458
7598
  channels: string[];
@@ -7492,7 +7632,7 @@ export declare const slackTriggerMatchSchema: z$2.ZodPipe<z$2.ZodObject<{
7492
7632
  } & {
7493
7633
  reactions?: string[];
7494
7634
  }), {
7495
- on: "dm" | "member_joined" | "mention" | "message" | "reaction";
7635
+ on: "dm" | "mention" | "message" | "reaction";
7496
7636
  channels: string[];
7497
7637
  reactions?: string[] | undefined;
7498
7638
  sender: "any" | "human" | "me" | {
@@ -7517,14 +7657,8 @@ export declare const connectorTriggerMatchSchema: z$2.ZodUnion<readonly [z$2.Zod
7517
7657
  family: z$2.ZodEnum<{
7518
7658
  check: "check";
7519
7659
  comment: "comment";
7520
- discussion: "discussion";
7521
- issue: "issue";
7522
- project_item: "project_item";
7523
7660
  pull_request: "pull_request";
7524
7661
  push: "push";
7525
- ref: "ref";
7526
- release: "release";
7527
- repository: "repository";
7528
7662
  review: "review";
7529
7663
  workflow: "workflow";
7530
7664
  }>;
@@ -7554,19 +7688,6 @@ export declare const connectorTriggerMatchSchema: z$2.ZodUnion<readonly [z$2.Zod
7554
7688
  any: "any";
7555
7689
  }>>;
7556
7690
  value: z$2.ZodArray<z$2.ZodString>;
7557
- }, z$2.core.$strict>, z$2.ZodObject<{
7558
- field: z$2.ZodLiteral<"assignees">;
7559
- operator: z$2.ZodDefault<z$2.ZodEnum<{
7560
- all: "all";
7561
- any: "any";
7562
- }>>;
7563
- value: z$2.ZodArray<z$2.ZodString>;
7564
- }, z$2.core.$strict>, z$2.ZodObject<{
7565
- field: z$2.ZodLiteral<"milestone">;
7566
- value: z$2.ZodString;
7567
- }, z$2.core.$strict>, z$2.ZodObject<{
7568
- field: z$2.ZodLiteral<"issueType">;
7569
- value: z$2.ZodString;
7570
7691
  }, z$2.core.$strict>, z$2.ZodObject<{
7571
7692
  field: z$2.ZodLiteral<"baseBranch">;
7572
7693
  value: z$2.ZodString;
@@ -7613,44 +7734,10 @@ export declare const connectorTriggerMatchSchema: z$2.ZodUnion<readonly [z$2.Zod
7613
7734
  }, z$2.core.$strict>, z$2.ZodObject<{
7614
7735
  field: z$2.ZodLiteral<"originEvent">;
7615
7736
  value: z$2.ZodString;
7616
- }, z$2.core.$strict>, z$2.ZodObject<{
7617
- field: z$2.ZodLiteral<"project">;
7618
- value: z$2.ZodString;
7619
- }, z$2.core.$strict>, z$2.ZodObject<{
7620
- field: z$2.ZodLiteral<"projectField">;
7621
- value: z$2.ZodString;
7622
- }, z$2.core.$strict>, z$2.ZodObject<{
7623
- field: z$2.ZodLiteral<"from">;
7624
- value: z$2.ZodNullable<z$2.ZodString>;
7625
- }, z$2.core.$strict>, z$2.ZodObject<{
7626
- field: z$2.ZodLiteral<"to">;
7627
- value: z$2.ZodNullable<z$2.ZodString>;
7628
- }, z$2.core.$strict>, z$2.ZodObject<{
7629
- field: z$2.ZodLiteral<"itemType">;
7630
- value: z$2.ZodEnum<{
7631
- draft: "draft";
7632
- issue: "issue";
7633
- pull_request: "pull_request";
7634
- }>;
7635
- }, z$2.core.$strict>, z$2.ZodObject<{
7636
- field: z$2.ZodLiteral<"prerelease">;
7637
- value: z$2.ZodBoolean;
7638
- }, z$2.core.$strict>, z$2.ZodObject<{
7639
- field: z$2.ZodLiteral<"tag">;
7640
- value: z$2.ZodString;
7641
- }, z$2.core.$strict>, z$2.ZodObject<{
7642
- field: z$2.ZodLiteral<"refType">;
7643
- value: z$2.ZodEnum<{
7644
- branch: "branch";
7645
- tag: "tag";
7646
- }>;
7647
- }, z$2.core.$strict>, z$2.ZodObject<{
7648
- field: z$2.ZodLiteral<"category">;
7649
- value: z$2.ZodString;
7650
7737
  }, z$2.core.$strict>], "field">>>;
7651
7738
  }, z$2.core.$strict>, z$2.ZodTransform<{
7652
7739
  family: "check";
7653
- actions: ("completed" | "rerequested")[];
7740
+ actions: "completed"[];
7654
7741
  repositories: string[];
7655
7742
  sender: GithubTriggerSender;
7656
7743
  conditions: ({
@@ -7665,7 +7752,7 @@ export declare const connectorTriggerMatchSchema: z$2.ZodUnion<readonly [z$2.Zod
7665
7752
  })[];
7666
7753
  } | {
7667
7754
  family: "comment";
7668
- actions: ("created" | "deleted" | "edited")[];
7755
+ actions: "created"[];
7669
7756
  repositories: string[];
7670
7757
  sender: GithubTriggerSender;
7671
7758
  conditions: ({
@@ -7679,74 +7766,9 @@ export declare const connectorTriggerMatchSchema: z$2.ZodUnion<readonly [z$2.Zod
7679
7766
  field: "prAuthor";
7680
7767
  value: string;
7681
7768
  })[];
7682
- } | {
7683
- family: "discussion";
7684
- actions: ("answered" | "closed" | "commented" | "created" | "labeled")[];
7685
- repositories: string[];
7686
- sender: GithubTriggerSender;
7687
- conditions: ({
7688
- field: "text";
7689
- operator: "contains" | "starts_with";
7690
- value: string;
7691
- } | {
7692
- field: "category";
7693
- value: string;
7694
- } | {
7695
- field: "issueLabels";
7696
- operator: "all" | "any";
7697
- value: string[];
7698
- })[];
7699
- } | {
7700
- family: "issue";
7701
- actions: ("assigned" | "closed" | "demilestoned" | "edited" | "labeled" | "milestoned" | "opened" | "pinned" | "reopened" | "transferred" | "unassigned" | "unlabeled")[];
7702
- repositories: string[];
7703
- sender: GithubTriggerSender;
7704
- conditions: ({
7705
- field: "text";
7706
- operator: "contains" | "starts_with";
7707
- value: string;
7708
- } | {
7709
- field: "issueType";
7710
- value: string;
7711
- } | {
7712
- field: "label";
7713
- value: string;
7714
- } | {
7715
- field: "milestone";
7716
- value: string;
7717
- } | {
7718
- field: "assignees";
7719
- operator: "all" | "any";
7720
- value: string[];
7721
- } | {
7722
- field: "issueLabels";
7723
- operator: "all" | "any";
7724
- value: string[];
7725
- })[];
7726
- } | {
7727
- family: "project_item";
7728
- actions: ("archived" | "created" | "deleted" | "edited" | "restored")[];
7729
- repositories: string[];
7730
- sender: GithubTriggerSender;
7731
- conditions: ({
7732
- field: "project";
7733
- value: string;
7734
- } | {
7735
- field: "projectField";
7736
- value: string;
7737
- } | {
7738
- field: "from";
7739
- value: string | null;
7740
- } | {
7741
- field: "to";
7742
- value: string | null;
7743
- } | {
7744
- field: "itemType";
7745
- value: "draft" | "issue" | "pull_request";
7746
- })[];
7747
7769
  } | {
7748
7770
  family: "pull_request";
7749
- actions: ("assigned" | "closed" | "converted_to_draft" | "edited" | "labeled" | "merged" | "opened" | "ready_for_review" | "reopened" | "review_requested" | "synchronize")[];
7771
+ actions: ("closed" | "labeled" | "merged" | "opened" | "ready_for_review" | "synchronize")[];
7750
7772
  repositories: string[];
7751
7773
  sender: GithubTriggerSender;
7752
7774
  conditions: ({
@@ -7758,6 +7780,9 @@ export declare const connectorTriggerMatchSchema: z$2.ZodUnion<readonly [z$2.Zod
7758
7780
  } | {
7759
7781
  field: "headBranch";
7760
7782
  value: string;
7783
+ } | {
7784
+ field: "label";
7785
+ value: string;
7761
7786
  } | {
7762
7787
  field: "prAuthor";
7763
7788
  value: string;
@@ -7784,42 +7809,9 @@ export declare const connectorTriggerMatchSchema: z$2.ZodUnion<readonly [z$2.Zod
7784
7809
  field: "forced";
7785
7810
  value: boolean;
7786
7811
  })[];
7787
- } | {
7788
- family: "ref";
7789
- actions: ("created" | "deleted")[];
7790
- repositories: string[];
7791
- sender: GithubTriggerSender;
7792
- conditions: ({
7793
- field: "branch";
7794
- value: string;
7795
- } | {
7796
- field: "tag";
7797
- value: string;
7798
- } | {
7799
- field: "refType";
7800
- value: "branch" | "tag";
7801
- })[];
7802
- } | {
7803
- family: "release";
7804
- actions: ("created" | "deleted" | "edited" | "prereleased" | "published")[];
7805
- repositories: string[];
7806
- sender: GithubTriggerSender;
7807
- conditions: ({
7808
- field: "tag";
7809
- value: string;
7810
- } | {
7811
- field: "prerelease";
7812
- value: boolean;
7813
- })[];
7814
- } | {
7815
- family: "repository";
7816
- actions: ("archived" | "created" | "forked" | "starred")[];
7817
- repositories: string[];
7818
- sender: GithubTriggerSender;
7819
- conditions: never[];
7820
7812
  } | {
7821
7813
  family: "review";
7822
- actions: ("dismissed" | "edited" | "submitted")[];
7814
+ actions: "submitted"[];
7823
7815
  repositories: string[];
7824
7816
  sender: GithubTriggerSender;
7825
7817
  conditions: ({
@@ -7831,7 +7823,7 @@ export declare const connectorTriggerMatchSchema: z$2.ZodUnion<readonly [z$2.Zod
7831
7823
  })[];
7832
7824
  } | {
7833
7825
  family: "workflow";
7834
- actions: ("completed" | "in_progress" | "requested")[];
7826
+ actions: "completed"[];
7835
7827
  repositories: string[];
7836
7828
  sender: GithubTriggerSender;
7837
7829
  conditions: ({
@@ -7848,7 +7840,7 @@ export declare const connectorTriggerMatchSchema: z$2.ZodUnion<readonly [z$2.Zod
7848
7840
  value: string;
7849
7841
  })[];
7850
7842
  }, {
7851
- family: "check" | "comment" | "discussion" | "issue" | "project_item" | "pull_request" | "push" | "ref" | "release" | "repository" | "review" | "workflow";
7843
+ family: "check" | "comment" | "pull_request" | "push" | "review" | "workflow";
7852
7844
  actions: string[];
7853
7845
  repositories: string[];
7854
7846
  sender: "any" | "human" | "me" | {
@@ -7864,9 +7856,6 @@ export declare const connectorTriggerMatchSchema: z$2.ZodUnion<readonly [z$2.Zod
7864
7856
  } | {
7865
7857
  field: "branch";
7866
7858
  value: string;
7867
- } | {
7868
- field: "category";
7869
- value: string;
7870
7859
  } | {
7871
7860
  field: "changedPaths";
7872
7861
  value: string;
@@ -7885,30 +7874,15 @@ export declare const connectorTriggerMatchSchema: z$2.ZodUnion<readonly [z$2.Zod
7885
7874
  } | {
7886
7875
  field: "issueAuthor";
7887
7876
  value: string;
7888
- } | {
7889
- field: "issueType";
7890
- value: string;
7891
7877
  } | {
7892
7878
  field: "label";
7893
7879
  value: string;
7894
- } | {
7895
- field: "milestone";
7896
- value: string;
7897
7880
  } | {
7898
7881
  field: "originEvent";
7899
7882
  value: string;
7900
7883
  } | {
7901
7884
  field: "prAuthor";
7902
7885
  value: string;
7903
- } | {
7904
- field: "project";
7905
- value: string;
7906
- } | {
7907
- field: "projectField";
7908
- value: string;
7909
- } | {
7910
- field: "tag";
7911
- value: string;
7912
7886
  } | {
7913
7887
  field: "workflowName";
7914
7888
  value: string;
@@ -7918,13 +7892,6 @@ export declare const connectorTriggerMatchSchema: z$2.ZodUnion<readonly [z$2.Zod
7918
7892
  } | {
7919
7893
  field: "forced";
7920
7894
  value: boolean;
7921
- } | {
7922
- field: "prerelease";
7923
- value: boolean;
7924
- } | {
7925
- field: "assignees";
7926
- operator: "all" | "any";
7927
- value: string[];
7928
7895
  } | {
7929
7896
  field: "issueLabels";
7930
7897
  operator: "all" | "any";
@@ -7932,23 +7899,10 @@ export declare const connectorTriggerMatchSchema: z$2.ZodUnion<readonly [z$2.Zod
7932
7899
  } | {
7933
7900
  field: "reviewState";
7934
7901
  value: "approved" | "changes_requested" | "commented";
7935
- } | {
7936
- field: "from";
7937
- value: string | null;
7938
- } | {
7939
- field: "to";
7940
- value: string | null;
7941
- } | {
7942
- field: "itemType";
7943
- value: "draft" | "issue" | "pull_request";
7944
- } | {
7945
- field: "refType";
7946
- value: "branch" | "tag";
7947
7902
  })[];
7948
7903
  }>>, z$2.ZodPipe<z$2.ZodObject<{
7949
7904
  on: z$2.ZodEnum<{
7950
7905
  dm: "dm";
7951
- member_joined: "member_joined";
7952
7906
  mention: "mention";
7953
7907
  message: "message";
7954
7908
  reaction: "reaction";
@@ -7996,13 +7950,6 @@ export declare const connectorTriggerMatchSchema: z$2.ZodUnion<readonly [z$2.Zod
7996
7950
  })[];
7997
7951
  } & {
7998
7952
  reactions?: never;
7999
- }) | ({
8000
- on: "member_joined";
8001
- channels: string[];
8002
- sender: SlackTriggerSender;
8003
- conditions: never[];
8004
- } & {
8005
- reactions?: never;
8006
7953
  }) | ({
8007
7954
  on: "mention";
8008
7955
  channels: string[];
@@ -8042,7 +7989,7 @@ export declare const connectorTriggerMatchSchema: z$2.ZodUnion<readonly [z$2.Zod
8042
7989
  } & {
8043
7990
  reactions?: string[];
8044
7991
  }), {
8045
- on: "dm" | "member_joined" | "mention" | "message" | "reaction";
7992
+ on: "dm" | "mention" | "message" | "reaction";
8046
7993
  channels: string[];
8047
7994
  reactions?: string[] | undefined;
8048
7995
  sender: "any" | "human" | "me" | {
@@ -8083,9 +8030,6 @@ export interface GithubEventFacts {
8083
8030
  text?: string;
8084
8031
  label?: string;
8085
8032
  issueLabels?: string[];
8086
- assignees?: string[];
8087
- milestone?: string;
8088
- issueType?: string;
8089
8033
  baseBranch?: string;
8090
8034
  headBranch?: string;
8091
8035
  branch?: string;
@@ -8100,15 +8044,6 @@ export interface GithubEventFacts {
8100
8044
  checkName?: string;
8101
8045
  conclusion?: string;
8102
8046
  originEvent?: string;
8103
- project?: string;
8104
- projectField?: string;
8105
- from?: string | null;
8106
- to?: string | null;
8107
- itemType?: "issue" | "pull_request" | "draft";
8108
- prerelease?: boolean;
8109
- tag?: string;
8110
- refType?: "branch" | "tag";
8111
- category?: string;
8112
8047
  }
8113
8048
  export type NormalizedGithubEvent = ConnectorEventIdentity & {
8114
8049
  provider: "github";
@@ -9015,8 +8950,8 @@ export type SessionApprovalMode = "manual" | "auto";
9015
8950
  export type AgentWorkMode = "execute" | "architect";
9016
8951
  export declare const TODO_PLAN_STATUSES: readonly ["active", "completed", "abandoned"];
9017
8952
  export type AgentTodoPlanStatus = (typeof TODO_PLAN_STATUSES)[number];
9018
- export type TriggerEventType = "record.created" | "record.updated" | "record.deleted" | "form.submitted" | "webhook" | "github" | "slack";
9019
- export type AgentTriggerType = Extract<TriggerEventType, "record.created" | "record.updated" | "record.deleted">;
8953
+ export type TriggerEventType = "record.created" | "record.updated" | "form.submitted" | "webhook" | "github" | "slack";
8954
+ export type AgentTriggerType = Extract<TriggerEventType, "record.created" | "record.updated">;
9020
8955
  export declare const PROVIDER_NAMES: readonly ["openai", "anthropic", "google", "spacexai", "deepseek", "moonshotai", "alibaba", "mistral", "minimax", "meta", "zai",
9021
8956
  /** Cursor's own model ids (`auto`, Composer): only the Cursor harness runs them, never the Gateway. */
9022
8957
  "cursor"];
@@ -9164,6 +9099,8 @@ export interface AgentTriggerBlueprint {
9164
9099
  formDefinitionId?: string;
9165
9100
  filter?: FilterState;
9166
9101
  debounceMs?: number;
9102
+ /** See {@link AgentTriggerDefinition.reentry}. */
9103
+ reentry?: number;
9167
9104
  /** Webhook only — see {@link AgentTriggerDefinition.continuationKey}. */
9168
9105
  continuationKey?: string;
9169
9106
  connectionId?: string;
@@ -9189,7 +9126,7 @@ export interface AgentBlueprint {
9189
9126
  label?: string;
9190
9127
  /** The agent's face; absent = derived from the definition id. Agents only. */
9191
9128
  avatar?: AgentAvatar;
9192
- /** Up to `AGENT_STARTERS_MAX` suggestions for its start page. Agents only. */
9129
+ /** Up to `AGENT_STARTERS_MAX` suggestions, stored but shown nowhere. Agents only. */
9193
9130
  starters?: string[];
9194
9131
  description?: string;
9195
9132
  systemPrompt: string;
@@ -9325,6 +9262,8 @@ export interface ToolImpact {
9325
9262
  target?: string;
9326
9263
  /** How many are going, when there is no single target to name. */
9327
9264
  count?: number;
9265
+ /** Each record or document's own name, beside `count` for a batch; data, not copy. */
9266
+ targets?: string[];
9328
9267
  /** Days the deletion can still be undone, if it can. */
9329
9268
  restorableDays?: number;
9330
9269
  };
@@ -10166,6 +10105,11 @@ export interface AIBatchQuestion {
10166
10105
  id: string;
10167
10106
  /** Question text to display */
10168
10107
  question: string;
10108
+ /**
10109
+ * What the person needs to know to answer this question, in a sentence or
10110
+ * two, read under it. Optional: a question that speaks for itself has none.
10111
+ */
10112
+ context?: string;
10169
10113
  /**
10170
10114
  * Kind of field to answer with. Optional for backwards compatibility: when
10171
10115
  * absent it is derived from the shape — `options` present means `choice`,
@@ -12052,6 +11996,8 @@ export interface DBAttribute extends Timestamps {
12052
11996
  deprecated?: boolean;
12053
11997
  defaultValue?: unknown;
12054
11998
  config: Record<string, unknown>;
11999
+ /** Types this attribute left through retypes, oldest first; empty when never retyped. */
12000
+ retypedFrom: AttributeType[];
12055
12001
  }
12056
12002
  export interface CreateDBAttribute {
12057
12003
  objectId: Uuid;
@@ -12069,6 +12015,7 @@ export interface CreateDBAttribute {
12069
12015
  deprecated?: boolean;
12070
12016
  defaultValue?: unknown;
12071
12017
  config?: Record<string, unknown>;
12018
+ retypedFrom?: AttributeType[];
12072
12019
  }
12073
12020
  export interface UpdateDBAttribute {
12074
12021
  label?: string;
@@ -12082,6 +12029,7 @@ export interface UpdateDBAttribute {
12082
12029
  deprecated?: boolean;
12083
12030
  defaultValue?: unknown;
12084
12031
  config?: Record<string, unknown>;
12032
+ retypedFrom?: AttributeType[];
12085
12033
  }
12086
12034
  export interface UpsertDBAttribute extends CreateDBAttribute {
12087
12035
  objectId: Uuid;
@@ -12304,6 +12252,7 @@ export declare const envVarEntrySchema: z$2.ZodObject<{
12304
12252
  ownedBy: z$2.ZodNullable<z$2.ZodString>;
12305
12253
  environments: z$2.ZodOptional<z$2.ZodUnion<readonly [z$2.ZodLiteral<"all">, z$2.ZodArray<z$2.ZodString>]>>;
12306
12254
  repository: z$2.ZodOptional<z$2.ZodString>;
12255
+ lastUsedAt: z$2.ZodNullable<z$2.ZodString>;
12307
12256
  createdAt: z$2.ZodString;
12308
12257
  updatedAt: z$2.ZodString;
12309
12258
  }, z$2.core.$strip>;
@@ -12347,6 +12296,7 @@ export declare const secretEntrySchema: z$2.ZodDiscriminatedUnion<[z$2.ZodObject
12347
12296
  ownedBy: z$2.ZodNullable<z$2.ZodString>;
12348
12297
  environments: z$2.ZodOptional<z$2.ZodUnion<readonly [z$2.ZodLiteral<"all">, z$2.ZodArray<z$2.ZodString>]>>;
12349
12298
  repository: z$2.ZodOptional<z$2.ZodString>;
12299
+ lastUsedAt: z$2.ZodNullable<z$2.ZodString>;
12350
12300
  createdAt: z$2.ZodString;
12351
12301
  updatedAt: z$2.ZodString;
12352
12302
  }, z$2.core.$strip>, z$2.ZodObject<{
@@ -13025,7 +12975,7 @@ export type AuditResourceType = (typeof AUDIT_RESOURCE_TYPES)[number];
13025
12975
  /**
13026
12976
  * Actions that can be audited
13027
12977
  */
13028
- export declare const AUDIT_ACTIONS: readonly ["record.created", "record.updated", "record.deleted", "record.restored", "record.purged", "record.access_changed", "agent.access_changed", "agent_session.supervised_read", "object.created", "object.updated", "object.deleted", "attribute.created", "attribute.updated", "attribute.deleted", "view.created", "view.updated", "view.deleted", "bundle.synced", "bundle.removed", "bundle.added", "bundle.updated", "user.created", "user.invited", "user.updated", "user.deleted", "user.login", "user.logout", "tenant_invitation.created", "tenant_invitation.delivery_failed", "tenant_invitation.resent", "tenant_invitation.revoked", "tenant_invitation.accepted", "role.created", "role.updated", "role.deleted", "role.assigned", "role.revoked", "api_key.created", "api_key.revoked", "api_key.detached", "settings.updated", "file.uploaded", "file.updated", "file.deleted"];
12978
+ export declare const AUDIT_ACTIONS: readonly ["record.created", "record.updated", "record.deleted", "record.restored", "record.purged", "record.access_changed", "agent.access_changed", "agent_session.supervised_read", "object.created", "object.updated", "object.deleted", "attribute.created", "attribute.updated", "attribute.retyped", "attribute.deleted", "view.created", "view.updated", "view.deleted", "bundle.synced", "bundle.removed", "bundle.added", "bundle.updated", "user.created", "user.invited", "user.updated", "user.deleted", "user.login", "user.logout", "tenant_invitation.created", "tenant_invitation.delivery_failed", "tenant_invitation.resent", "tenant_invitation.revoked", "tenant_invitation.accepted", "role.created", "role.updated", "role.deleted", "role.assigned", "role.revoked", "api_key.created", "api_key.revoked", "api_key.detached", "settings.updated", "file.uploaded", "file.updated", "file.deleted"];
13029
12979
  export type AuditAction = (typeof AUDIT_ACTIONS)[number];
13030
12980
  /**
13031
12981
  * Actor type - who performed the action
@@ -13081,6 +13031,7 @@ export declare const auditLogEntrySchema: z$2.ZodObject<{
13081
13031
  "api_key.revoked": "api_key.revoked";
13082
13032
  "attribute.created": "attribute.created";
13083
13033
  "attribute.deleted": "attribute.deleted";
13034
+ "attribute.retyped": "attribute.retyped";
13084
13035
  "attribute.updated": "attribute.updated";
13085
13036
  "bundle.added": "bundle.added";
13086
13037
  "bundle.removed": "bundle.removed";
@@ -16910,9 +16861,9 @@ export declare class AgentBuilder {
16910
16861
  expression?: AgentAvatarExpression;
16911
16862
  }): this;
16912
16863
  /**
16913
- * Up to four suggestions offered on this agent's start page, replacing the
16914
- * generic starter sections. `[]` declares none (the server stores `[]` as
16915
- * null, so keeping it would read as drift on every boot).
16864
+ * Up to four suggestions (trimmed, 1–200 chars each), accepted and stored
16865
+ * on this agent but shown nowhere. `[]` declares none (the server stores
16866
+ * `[]` as null, so keeping it would read as drift on every boot).
16916
16867
  */
16917
16868
  starters(values: string[]): this;
16918
16869
  systemPrompt(value: string): this;
@@ -18288,6 +18239,14 @@ export declare const GROUPABLE_ATTRIBUTE_TYPES: AttributeType[];
18288
18239
  export declare const CHART_KINDS: readonly ["bar",
18289
18240
  /** Bars laid across, the categories down the left: long labels, a ranking (#5814). */
18290
18241
  "horizontal_bar", "line", "area", "donut", "funnel", "treemap", "calendar"];
18242
+ /**
18243
+ * How a chart may order the groups it draws, once the cap of 12 has kept the
18244
+ * largest: unset, a date reads chronologically, a status or a select in its
18245
+ * declared order, any other grouping largest first.
18246
+ */
18247
+ export declare const CHART_ORDERS: readonly ["value_desc", "value_asc", "label"];
18248
+ /** The kinds whose order is time, a pipeline or a day grid: they take no `order`. */
18249
+ export declare const UNORDERED_CHART_KINDS: readonly ["line", "area", "funnel", "calendar"];
18291
18250
  /**
18292
18251
  * The span a metric compares over when it names none: one step above its trend
18293
18252
  * period (a weekly line compares months), since a span no wider than a trend
@@ -18541,6 +18500,11 @@ export declare const CHART_BLOCK: BlockDefinition<"chart", import("zod").ZodObje
18541
18500
  week: "week";
18542
18501
  year: "year";
18543
18502
  }>, true>;
18503
+ readonly order: ListableBlockInput<"enum", import("zod").ZodEnum<{
18504
+ label: "label";
18505
+ value_asc: "value_asc";
18506
+ value_desc: "value_desc";
18507
+ }>, true>;
18544
18508
  }>, import("zod/v4/core").$strip>>;
18545
18509
  export declare const AGENDA_BLOCK: BlockDefinition<"agenda", import("zod").ZodObject<InputShape<{
18546
18510
  readonly query: BlockInput<"query", import("zod").ZodObject<{
@@ -18959,6 +18923,11 @@ export declare const NATIVE_BLOCKS: readonly [BlockDefinition<"artifact_preview"
18959
18923
  week: "week";
18960
18924
  year: "year";
18961
18925
  }>, true>;
18926
+ readonly order: ListableBlockInput<"enum", import("zod").ZodEnum<{
18927
+ label: "label";
18928
+ value_asc: "value_asc";
18929
+ value_desc: "value_desc";
18930
+ }>, true>;
18962
18931
  }>, import("zod/v4/core").$strip>>, BlockDefinition<"agenda", import("zod").ZodObject<InputShape<{
18963
18932
  readonly query: BlockInput<"query", import("zod").ZodObject<{
18964
18933
  source: import("zod").ZodPipe<import("zod").ZodObject<{
@@ -19128,6 +19097,7 @@ export type GroupableAttribute<TB> = FieldsWhere<TB, "groupable">;
19128
19097
  export type AttributeName<TB> = unknown extends TB ? string : keyof Fields<TB> & string;
19129
19098
  export type BlockPeriod = (typeof BLOCK_PERIODS)[number];
19130
19099
  export type ChartKind = (typeof CHART_KINDS)[number];
19100
+ export type ChartOrder = (typeof CHART_ORDERS)[number];
19131
19101
  /** A grouping: a single-valued attribute, or a date attribute cut into buckets. */
19132
19102
  export type ChartGroupBy<TB> = GroupableAttribute<TB> | {
19133
19103
  attribute: DateAttributeName<TB>;
@@ -19207,6 +19177,13 @@ export declare class ChartBuilder<TB> extends BlockContentBuilder {
19207
19177
  treemap(): this;
19208
19178
  /** A day-by-day heat calendar: `.by({ attribute, bucket: "day" })`. */
19209
19179
  calendar(): this;
19180
+ /**
19181
+ * The order of the groups drawn, for bars, horizontal bars, a donut or a
19182
+ * treemap: largest value first, smallest first, or by label. Unset, a date
19183
+ * reads chronologically, a status or a select in its declared order, and
19184
+ * any other grouping largest first.
19185
+ */
19186
+ order(order: ChartOrder): this;
19210
19187
  }
19211
19188
  export declare class ChartQuery<TB> extends Measures<TB, ChartBuilder<TB>> {
19212
19189
  private readonly query;
@@ -20011,6 +19988,7 @@ export declare const SCHEMA_LIMITS: {
20011
19988
  readonly fieldsPerGroup: 60;
20012
19989
  readonly fieldsPerFormTab: 150;
20013
19990
  readonly columnsPerTab: 50;
19991
+ readonly displayAttributesPerCard: 8;
20014
19992
  readonly optionsPerAttribute: 200;
20015
19993
  readonly sidePanelAttributes: 100;
20016
19994
  readonly sidePanelPanes: 20;
@@ -20722,6 +20700,16 @@ export declare const mcpCatalogEntrySchema: z$2.ZodObject<{
20722
20700
  }>;
20723
20701
  description: z$2.ZodString;
20724
20702
  }, z$2.core.$strip>;
20703
+ /**
20704
+ * What an operator pastes into a provider before consent: the redirect URL and
20705
+ * the client-metadata URL this deployment's OAuth client sends, each `""` when
20706
+ * unset. `configured` is false where a consent start would be refused.
20707
+ */
20708
+ export declare const mcpOAuthSetupSchema: z$2.ZodObject<{
20709
+ callbackUrl: z$2.ZodString;
20710
+ clientMetadataUrl: z$2.ZodString;
20711
+ configured: z$2.ZodBoolean;
20712
+ }, z$2.core.$strip>;
20725
20713
  /** A started consent: where to send the person, and until when the attempt holds. */
20726
20714
  export declare const mcpOAuthAttemptStartedSchema: z$2.ZodObject<{
20727
20715
  attemptId: z$2.ZodString;
@@ -20780,6 +20768,8 @@ export interface ReconnectMcpOAuthAttemptInput extends OAuthCompletionInput {
20780
20768
  scope?: string;
20781
20769
  }
20782
20770
  export type McpOAuthAttemptStarted = z$1.output<typeof mcpOAuthAttemptStartedSchema>;
20771
+ /** The redirect and client-metadata URLs a connection form shows before consent. */
20772
+ export type McpOAuthSetup = z$1.output<typeof mcpOAuthSetupSchema>;
20783
20773
  export declare const EMAIL_PROVIDERS: readonly ["gmail", "outlook"];
20784
20774
  export type EmailProvider = (typeof EMAIL_PROVIDERS)[number];
20785
20775
  /**
@@ -21771,6 +21761,7 @@ export declare const toolImpactSchema: z$2.ZodObject<{
21771
21761
  deletion: z$2.ZodOptional<z$2.ZodObject<{
21772
21762
  target: z$2.ZodOptional<z$2.ZodString>;
21773
21763
  count: z$2.ZodOptional<z$2.ZodNumber>;
21764
+ targets: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
21774
21765
  restorableDays: z$2.ZodOptional<z$2.ZodNumber>;
21775
21766
  }, z$2.core.$strict>>;
21776
21767
  record: z$2.ZodOptional<z$2.ZodObject<{
@@ -21892,6 +21883,7 @@ export declare const agentMessagePartSchema: z$2.ZodUnion<readonly [z$2.ZodObjec
21892
21883
  deletion: z$2.ZodOptional<z$2.ZodObject<{
21893
21884
  target: z$2.ZodOptional<z$2.ZodString>;
21894
21885
  count: z$2.ZodOptional<z$2.ZodNumber>;
21886
+ targets: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
21895
21887
  restorableDays: z$2.ZodOptional<z$2.ZodNumber>;
21896
21888
  }, z$2.core.$strict>>;
21897
21889
  record: z$2.ZodOptional<z$2.ZodObject<{
@@ -22104,6 +22096,7 @@ export declare const agentSessionMessageSchema: z$2.ZodObject<{
22104
22096
  deletion: z$2.ZodOptional<z$2.ZodObject<{
22105
22097
  target: z$2.ZodOptional<z$2.ZodString>;
22106
22098
  count: z$2.ZodOptional<z$2.ZodNumber>;
22099
+ targets: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
22107
22100
  restorableDays: z$2.ZodOptional<z$2.ZodNumber>;
22108
22101
  }, z$2.core.$strict>>;
22109
22102
  record: z$2.ZodOptional<z$2.ZodObject<{
@@ -22417,6 +22410,7 @@ export declare const customDataChunkSchemas: {
22417
22410
  deletion: z$2.ZodOptional<z$2.ZodObject<{
22418
22411
  target: z$2.ZodOptional<z$2.ZodString>;
22419
22412
  count: z$2.ZodOptional<z$2.ZodNumber>;
22413
+ targets: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
22420
22414
  restorableDays: z$2.ZodOptional<z$2.ZodNumber>;
22421
22415
  }, z$2.core.$strict>>;
22422
22416
  record: z$2.ZodOptional<z$2.ZodObject<{
@@ -22580,6 +22574,7 @@ export declare const customDataChunkSchemas: {
22580
22574
  deletion: z$2.ZodOptional<z$2.ZodObject<{
22581
22575
  target: z$2.ZodOptional<z$2.ZodString>;
22582
22576
  count: z$2.ZodOptional<z$2.ZodNumber>;
22577
+ targets: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
22583
22578
  restorableDays: z$2.ZodOptional<z$2.ZodNumber>;
22584
22579
  }, z$2.core.$strict>>;
22585
22580
  record: z$2.ZodOptional<z$2.ZodObject<{
@@ -23606,7 +23601,12 @@ export declare const agentStartersSchema: z$2.ZodArray<z$2.ZodString>;
23606
23601
  * holds anything else — metadata is free-form JSON, never trusted raw.
23607
23602
  */
23608
23603
  export declare function agentAvatarFromMetadata(value: unknown): AgentAvatar | undefined;
23609
- export declare const TRIGGER_EVENT_TYPES: readonly ["record.created", "record.updated", "record.deleted", "form.submitted", "webhook", "github", "slack"];
23604
+ export declare const TRIGGER_EVENT_TYPES: readonly ["record.created", "record.updated", "form.submitted", "webhook", "github", "slack"];
23605
+ /**
23606
+ * The most a trigger's `reentry` may be: the cycle guard walks at most this
23607
+ * many runs up the chain, so a higher bound could never be reached.
23608
+ */
23609
+ export declare const TRIGGER_MAX_REENTRY = 25;
23610
23610
  /** Env-var key format, enforced by the panel, `request_setup` and `EnvVarService` for new keys. */
23611
23611
  export declare const ENV_VAR_KEY_PATTERN: RegExp;
23612
23612
  export declare const agentScheduleSchema: z$2.ZodObject<{
@@ -23633,7 +23633,6 @@ export declare const agentTriggerBaseSchema: z$2.ZodObject<{
23633
23633
  "form.submitted": "form.submitted";
23634
23634
  github: "github";
23635
23635
  "record.created": "record.created";
23636
- "record.deleted": "record.deleted";
23637
23636
  "record.updated": "record.updated";
23638
23637
  slack: "slack";
23639
23638
  webhook: "webhook";
@@ -23641,6 +23640,7 @@ export declare const agentTriggerBaseSchema: z$2.ZodObject<{
23641
23640
  objectId: z$2.ZodOptional<z$2.ZodGUID>;
23642
23641
  watchedFields: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
23643
23642
  debounceMs: z$2.ZodOptional<z$2.ZodNumber>;
23643
+ reentry: z$2.ZodOptional<z$2.ZodNumber>;
23644
23644
  filter: z$2.ZodOptional<z$2.ZodObject<{
23645
23645
  combinator: z$2.ZodDefault<z$2.ZodEnum<{
23646
23646
  and: "and";
@@ -23659,14 +23659,8 @@ export declare const agentTriggerBaseSchema: z$2.ZodObject<{
23659
23659
  family: z$2.ZodEnum<{
23660
23660
  check: "check";
23661
23661
  comment: "comment";
23662
- discussion: "discussion";
23663
- issue: "issue";
23664
- project_item: "project_item";
23665
23662
  pull_request: "pull_request";
23666
23663
  push: "push";
23667
- ref: "ref";
23668
- release: "release";
23669
- repository: "repository";
23670
23664
  review: "review";
23671
23665
  workflow: "workflow";
23672
23666
  }>;
@@ -23696,19 +23690,6 @@ export declare const agentTriggerBaseSchema: z$2.ZodObject<{
23696
23690
  any: "any";
23697
23691
  }>>;
23698
23692
  value: z$2.ZodArray<z$2.ZodString>;
23699
- }, z$2.core.$strict>, z$2.ZodObject<{
23700
- field: z$2.ZodLiteral<"assignees">;
23701
- operator: z$2.ZodDefault<z$2.ZodEnum<{
23702
- all: "all";
23703
- any: "any";
23704
- }>>;
23705
- value: z$2.ZodArray<z$2.ZodString>;
23706
- }, z$2.core.$strict>, z$2.ZodObject<{
23707
- field: z$2.ZodLiteral<"milestone">;
23708
- value: z$2.ZodString;
23709
- }, z$2.core.$strict>, z$2.ZodObject<{
23710
- field: z$2.ZodLiteral<"issueType">;
23711
- value: z$2.ZodString;
23712
23693
  }, z$2.core.$strict>, z$2.ZodObject<{
23713
23694
  field: z$2.ZodLiteral<"baseBranch">;
23714
23695
  value: z$2.ZodString;
@@ -23755,44 +23736,10 @@ export declare const agentTriggerBaseSchema: z$2.ZodObject<{
23755
23736
  }, z$2.core.$strict>, z$2.ZodObject<{
23756
23737
  field: z$2.ZodLiteral<"originEvent">;
23757
23738
  value: z$2.ZodString;
23758
- }, z$2.core.$strict>, z$2.ZodObject<{
23759
- field: z$2.ZodLiteral<"project">;
23760
- value: z$2.ZodString;
23761
- }, z$2.core.$strict>, z$2.ZodObject<{
23762
- field: z$2.ZodLiteral<"projectField">;
23763
- value: z$2.ZodString;
23764
- }, z$2.core.$strict>, z$2.ZodObject<{
23765
- field: z$2.ZodLiteral<"from">;
23766
- value: z$2.ZodNullable<z$2.ZodString>;
23767
- }, z$2.core.$strict>, z$2.ZodObject<{
23768
- field: z$2.ZodLiteral<"to">;
23769
- value: z$2.ZodNullable<z$2.ZodString>;
23770
- }, z$2.core.$strict>, z$2.ZodObject<{
23771
- field: z$2.ZodLiteral<"itemType">;
23772
- value: z$2.ZodEnum<{
23773
- draft: "draft";
23774
- issue: "issue";
23775
- pull_request: "pull_request";
23776
- }>;
23777
- }, z$2.core.$strict>, z$2.ZodObject<{
23778
- field: z$2.ZodLiteral<"prerelease">;
23779
- value: z$2.ZodBoolean;
23780
- }, z$2.core.$strict>, z$2.ZodObject<{
23781
- field: z$2.ZodLiteral<"tag">;
23782
- value: z$2.ZodString;
23783
- }, z$2.core.$strict>, z$2.ZodObject<{
23784
- field: z$2.ZodLiteral<"refType">;
23785
- value: z$2.ZodEnum<{
23786
- branch: "branch";
23787
- tag: "tag";
23788
- }>;
23789
- }, z$2.core.$strict>, z$2.ZodObject<{
23790
- field: z$2.ZodLiteral<"category">;
23791
- value: z$2.ZodString;
23792
23739
  }, z$2.core.$strict>], "field">>>;
23793
23740
  }, z$2.core.$strict>, z$2.ZodTransform<{
23794
23741
  family: "check";
23795
- actions: ("completed" | "rerequested")[];
23742
+ actions: "completed"[];
23796
23743
  repositories: string[];
23797
23744
  sender: GithubTriggerSender;
23798
23745
  conditions: ({
@@ -23807,7 +23754,7 @@ export declare const agentTriggerBaseSchema: z$2.ZodObject<{
23807
23754
  })[];
23808
23755
  } | {
23809
23756
  family: "comment";
23810
- actions: ("created" | "deleted" | "edited")[];
23757
+ actions: "created"[];
23811
23758
  repositories: string[];
23812
23759
  sender: GithubTriggerSender;
23813
23760
  conditions: ({
@@ -23821,74 +23768,9 @@ export declare const agentTriggerBaseSchema: z$2.ZodObject<{
23821
23768
  field: "prAuthor";
23822
23769
  value: string;
23823
23770
  })[];
23824
- } | {
23825
- family: "discussion";
23826
- actions: ("answered" | "closed" | "commented" | "created" | "labeled")[];
23827
- repositories: string[];
23828
- sender: GithubTriggerSender;
23829
- conditions: ({
23830
- field: "text";
23831
- operator: "contains" | "starts_with";
23832
- value: string;
23833
- } | {
23834
- field: "category";
23835
- value: string;
23836
- } | {
23837
- field: "issueLabels";
23838
- operator: "all" | "any";
23839
- value: string[];
23840
- })[];
23841
- } | {
23842
- family: "issue";
23843
- actions: ("assigned" | "closed" | "demilestoned" | "edited" | "labeled" | "milestoned" | "opened" | "pinned" | "reopened" | "transferred" | "unassigned" | "unlabeled")[];
23844
- repositories: string[];
23845
- sender: GithubTriggerSender;
23846
- conditions: ({
23847
- field: "text";
23848
- operator: "contains" | "starts_with";
23849
- value: string;
23850
- } | {
23851
- field: "issueType";
23852
- value: string;
23853
- } | {
23854
- field: "label";
23855
- value: string;
23856
- } | {
23857
- field: "milestone";
23858
- value: string;
23859
- } | {
23860
- field: "assignees";
23861
- operator: "all" | "any";
23862
- value: string[];
23863
- } | {
23864
- field: "issueLabels";
23865
- operator: "all" | "any";
23866
- value: string[];
23867
- })[];
23868
- } | {
23869
- family: "project_item";
23870
- actions: ("archived" | "created" | "deleted" | "edited" | "restored")[];
23871
- repositories: string[];
23872
- sender: GithubTriggerSender;
23873
- conditions: ({
23874
- field: "project";
23875
- value: string;
23876
- } | {
23877
- field: "projectField";
23878
- value: string;
23879
- } | {
23880
- field: "from";
23881
- value: string | null;
23882
- } | {
23883
- field: "to";
23884
- value: string | null;
23885
- } | {
23886
- field: "itemType";
23887
- value: "draft" | "issue" | "pull_request";
23888
- })[];
23889
23771
  } | {
23890
23772
  family: "pull_request";
23891
- actions: ("assigned" | "closed" | "converted_to_draft" | "edited" | "labeled" | "merged" | "opened" | "ready_for_review" | "reopened" | "review_requested" | "synchronize")[];
23773
+ actions: ("closed" | "labeled" | "merged" | "opened" | "ready_for_review" | "synchronize")[];
23892
23774
  repositories: string[];
23893
23775
  sender: GithubTriggerSender;
23894
23776
  conditions: ({
@@ -23900,6 +23782,9 @@ export declare const agentTriggerBaseSchema: z$2.ZodObject<{
23900
23782
  } | {
23901
23783
  field: "headBranch";
23902
23784
  value: string;
23785
+ } | {
23786
+ field: "label";
23787
+ value: string;
23903
23788
  } | {
23904
23789
  field: "prAuthor";
23905
23790
  value: string;
@@ -23926,42 +23811,9 @@ export declare const agentTriggerBaseSchema: z$2.ZodObject<{
23926
23811
  field: "forced";
23927
23812
  value: boolean;
23928
23813
  })[];
23929
- } | {
23930
- family: "ref";
23931
- actions: ("created" | "deleted")[];
23932
- repositories: string[];
23933
- sender: GithubTriggerSender;
23934
- conditions: ({
23935
- field: "branch";
23936
- value: string;
23937
- } | {
23938
- field: "tag";
23939
- value: string;
23940
- } | {
23941
- field: "refType";
23942
- value: "branch" | "tag";
23943
- })[];
23944
- } | {
23945
- family: "release";
23946
- actions: ("created" | "deleted" | "edited" | "prereleased" | "published")[];
23947
- repositories: string[];
23948
- sender: GithubTriggerSender;
23949
- conditions: ({
23950
- field: "tag";
23951
- value: string;
23952
- } | {
23953
- field: "prerelease";
23954
- value: boolean;
23955
- })[];
23956
- } | {
23957
- family: "repository";
23958
- actions: ("archived" | "created" | "forked" | "starred")[];
23959
- repositories: string[];
23960
- sender: GithubTriggerSender;
23961
- conditions: never[];
23962
23814
  } | {
23963
23815
  family: "review";
23964
- actions: ("dismissed" | "edited" | "submitted")[];
23816
+ actions: "submitted"[];
23965
23817
  repositories: string[];
23966
23818
  sender: GithubTriggerSender;
23967
23819
  conditions: ({
@@ -23973,7 +23825,7 @@ export declare const agentTriggerBaseSchema: z$2.ZodObject<{
23973
23825
  })[];
23974
23826
  } | {
23975
23827
  family: "workflow";
23976
- actions: ("completed" | "in_progress" | "requested")[];
23828
+ actions: "completed"[];
23977
23829
  repositories: string[];
23978
23830
  sender: GithubTriggerSender;
23979
23831
  conditions: ({
@@ -23990,7 +23842,7 @@ export declare const agentTriggerBaseSchema: z$2.ZodObject<{
23990
23842
  value: string;
23991
23843
  })[];
23992
23844
  }, {
23993
- family: "check" | "comment" | "discussion" | "issue" | "project_item" | "pull_request" | "push" | "ref" | "release" | "repository" | "review" | "workflow";
23845
+ family: "check" | "comment" | "pull_request" | "push" | "review" | "workflow";
23994
23846
  actions: string[];
23995
23847
  repositories: string[];
23996
23848
  sender: "any" | "human" | "me" | {
@@ -24006,9 +23858,6 @@ export declare const agentTriggerBaseSchema: z$2.ZodObject<{
24006
23858
  } | {
24007
23859
  field: "branch";
24008
23860
  value: string;
24009
- } | {
24010
- field: "category";
24011
- value: string;
24012
23861
  } | {
24013
23862
  field: "changedPaths";
24014
23863
  value: string;
@@ -24027,30 +23876,15 @@ export declare const agentTriggerBaseSchema: z$2.ZodObject<{
24027
23876
  } | {
24028
23877
  field: "issueAuthor";
24029
23878
  value: string;
24030
- } | {
24031
- field: "issueType";
24032
- value: string;
24033
23879
  } | {
24034
23880
  field: "label";
24035
23881
  value: string;
24036
- } | {
24037
- field: "milestone";
24038
- value: string;
24039
23882
  } | {
24040
23883
  field: "originEvent";
24041
23884
  value: string;
24042
23885
  } | {
24043
23886
  field: "prAuthor";
24044
23887
  value: string;
24045
- } | {
24046
- field: "project";
24047
- value: string;
24048
- } | {
24049
- field: "projectField";
24050
- value: string;
24051
- } | {
24052
- field: "tag";
24053
- value: string;
24054
23888
  } | {
24055
23889
  field: "workflowName";
24056
23890
  value: string;
@@ -24060,13 +23894,6 @@ export declare const agentTriggerBaseSchema: z$2.ZodObject<{
24060
23894
  } | {
24061
23895
  field: "forced";
24062
23896
  value: boolean;
24063
- } | {
24064
- field: "prerelease";
24065
- value: boolean;
24066
- } | {
24067
- field: "assignees";
24068
- operator: "all" | "any";
24069
- value: string[];
24070
23897
  } | {
24071
23898
  field: "issueLabels";
24072
23899
  operator: "all" | "any";
@@ -24074,23 +23901,10 @@ export declare const agentTriggerBaseSchema: z$2.ZodObject<{
24074
23901
  } | {
24075
23902
  field: "reviewState";
24076
23903
  value: "approved" | "changes_requested" | "commented";
24077
- } | {
24078
- field: "from";
24079
- value: string | null;
24080
- } | {
24081
- field: "to";
24082
- value: string | null;
24083
- } | {
24084
- field: "itemType";
24085
- value: "draft" | "issue" | "pull_request";
24086
- } | {
24087
- field: "refType";
24088
- value: "branch" | "tag";
24089
23904
  })[];
24090
23905
  }>>, z$2.ZodPipe<z$2.ZodObject<{
24091
23906
  on: z$2.ZodEnum<{
24092
23907
  dm: "dm";
24093
- member_joined: "member_joined";
24094
23908
  mention: "mention";
24095
23909
  message: "message";
24096
23910
  reaction: "reaction";
@@ -24138,13 +23952,6 @@ export declare const agentTriggerBaseSchema: z$2.ZodObject<{
24138
23952
  })[];
24139
23953
  } & {
24140
23954
  reactions?: never;
24141
- }) | ({
24142
- on: "member_joined";
24143
- channels: string[];
24144
- sender: SlackTriggerSender;
24145
- conditions: never[];
24146
- } & {
24147
- reactions?: never;
24148
23955
  }) | ({
24149
23956
  on: "mention";
24150
23957
  channels: string[];
@@ -24184,7 +23991,7 @@ export declare const agentTriggerBaseSchema: z$2.ZodObject<{
24184
23991
  } & {
24185
23992
  reactions?: string[];
24186
23993
  }), {
24187
- on: "dm" | "member_joined" | "mention" | "message" | "reaction";
23994
+ on: "dm" | "mention" | "message" | "reaction";
24188
23995
  channels: string[];
24189
23996
  reactions?: string[] | undefined;
24190
23997
  sender: "any" | "human" | "me" | {
@@ -24213,10 +24020,11 @@ export declare function refineTrigger<T extends TriggerShape>(schema: z$2.ZodTyp
24213
24020
  /** Creation/full-state defaults; the PATCH shape deliberately carries no defaults. */
24214
24021
  export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24215
24022
  name?: string | undefined;
24216
- eventType: "form.submitted" | "github" | "record.created" | "record.deleted" | "record.updated" | "slack" | "webhook";
24023
+ eventType: "form.submitted" | "github" | "record.created" | "record.updated" | "slack" | "webhook";
24217
24024
  objectId?: string | undefined;
24218
24025
  watchedFields?: string[] | undefined;
24219
24026
  debounceMs?: number | undefined;
24027
+ reentry?: number | undefined;
24220
24028
  filter?: {
24221
24029
  combinator: "and" | "or";
24222
24030
  rules: {
@@ -24230,7 +24038,7 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24230
24038
  connectionId?: string | undefined;
24231
24039
  match?: {
24232
24040
  family: "check";
24233
- actions: ("completed" | "rerequested")[];
24041
+ actions: "completed"[];
24234
24042
  repositories: string[];
24235
24043
  sender: GithubTriggerSender;
24236
24044
  conditions: ({
@@ -24245,7 +24053,7 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24245
24053
  })[];
24246
24054
  } | {
24247
24055
  family: "comment";
24248
- actions: ("created" | "deleted" | "edited")[];
24056
+ actions: "created"[];
24249
24057
  repositories: string[];
24250
24058
  sender: GithubTriggerSender;
24251
24059
  conditions: ({
@@ -24259,74 +24067,9 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24259
24067
  field: "prAuthor";
24260
24068
  value: string;
24261
24069
  })[];
24262
- } | {
24263
- family: "discussion";
24264
- actions: ("answered" | "closed" | "commented" | "created" | "labeled")[];
24265
- repositories: string[];
24266
- sender: GithubTriggerSender;
24267
- conditions: ({
24268
- field: "text";
24269
- operator: "contains" | "starts_with";
24270
- value: string;
24271
- } | {
24272
- field: "category";
24273
- value: string;
24274
- } | {
24275
- field: "issueLabels";
24276
- operator: "all" | "any";
24277
- value: string[];
24278
- })[];
24279
- } | {
24280
- family: "issue";
24281
- actions: ("assigned" | "closed" | "demilestoned" | "edited" | "labeled" | "milestoned" | "opened" | "pinned" | "reopened" | "transferred" | "unassigned" | "unlabeled")[];
24282
- repositories: string[];
24283
- sender: GithubTriggerSender;
24284
- conditions: ({
24285
- field: "text";
24286
- operator: "contains" | "starts_with";
24287
- value: string;
24288
- } | {
24289
- field: "issueType";
24290
- value: string;
24291
- } | {
24292
- field: "label";
24293
- value: string;
24294
- } | {
24295
- field: "milestone";
24296
- value: string;
24297
- } | {
24298
- field: "assignees";
24299
- operator: "all" | "any";
24300
- value: string[];
24301
- } | {
24302
- field: "issueLabels";
24303
- operator: "all" | "any";
24304
- value: string[];
24305
- })[];
24306
- } | {
24307
- family: "project_item";
24308
- actions: ("archived" | "created" | "deleted" | "edited" | "restored")[];
24309
- repositories: string[];
24310
- sender: GithubTriggerSender;
24311
- conditions: ({
24312
- field: "project";
24313
- value: string;
24314
- } | {
24315
- field: "projectField";
24316
- value: string;
24317
- } | {
24318
- field: "from";
24319
- value: string | null;
24320
- } | {
24321
- field: "to";
24322
- value: string | null;
24323
- } | {
24324
- field: "itemType";
24325
- value: "draft" | "issue" | "pull_request";
24326
- })[];
24327
24070
  } | {
24328
24071
  family: "pull_request";
24329
- actions: ("assigned" | "closed" | "converted_to_draft" | "edited" | "labeled" | "merged" | "opened" | "ready_for_review" | "reopened" | "review_requested" | "synchronize")[];
24072
+ actions: ("closed" | "labeled" | "merged" | "opened" | "ready_for_review" | "synchronize")[];
24330
24073
  repositories: string[];
24331
24074
  sender: GithubTriggerSender;
24332
24075
  conditions: ({
@@ -24338,6 +24081,9 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24338
24081
  } | {
24339
24082
  field: "headBranch";
24340
24083
  value: string;
24084
+ } | {
24085
+ field: "label";
24086
+ value: string;
24341
24087
  } | {
24342
24088
  field: "prAuthor";
24343
24089
  value: string;
@@ -24364,42 +24110,9 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24364
24110
  field: "forced";
24365
24111
  value: boolean;
24366
24112
  })[];
24367
- } | {
24368
- family: "ref";
24369
- actions: ("created" | "deleted")[];
24370
- repositories: string[];
24371
- sender: GithubTriggerSender;
24372
- conditions: ({
24373
- field: "branch";
24374
- value: string;
24375
- } | {
24376
- field: "tag";
24377
- value: string;
24378
- } | {
24379
- field: "refType";
24380
- value: "branch" | "tag";
24381
- })[];
24382
- } | {
24383
- family: "release";
24384
- actions: ("created" | "deleted" | "edited" | "prereleased" | "published")[];
24385
- repositories: string[];
24386
- sender: GithubTriggerSender;
24387
- conditions: ({
24388
- field: "tag";
24389
- value: string;
24390
- } | {
24391
- field: "prerelease";
24392
- value: boolean;
24393
- })[];
24394
- } | {
24395
- family: "repository";
24396
- actions: ("archived" | "created" | "forked" | "starred")[];
24397
- repositories: string[];
24398
- sender: GithubTriggerSender;
24399
- conditions: never[];
24400
24113
  } | {
24401
24114
  family: "review";
24402
- actions: ("dismissed" | "edited" | "submitted")[];
24115
+ actions: "submitted"[];
24403
24116
  repositories: string[];
24404
24117
  sender: GithubTriggerSender;
24405
24118
  conditions: ({
@@ -24411,7 +24124,7 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24411
24124
  })[];
24412
24125
  } | {
24413
24126
  family: "workflow";
24414
- actions: ("completed" | "in_progress" | "requested")[];
24127
+ actions: "completed"[];
24415
24128
  repositories: string[];
24416
24129
  sender: GithubTriggerSender;
24417
24130
  conditions: ({
@@ -24441,13 +24154,6 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24441
24154
  })[];
24442
24155
  } & {
24443
24156
  reactions?: never;
24444
- }) | ({
24445
- on: "member_joined";
24446
- channels: string[];
24447
- sender: SlackTriggerSender;
24448
- conditions: never[];
24449
- } & {
24450
- reactions?: never;
24451
24157
  }) | ({
24452
24158
  on: "mention";
24453
24159
  channels: string[];
@@ -24491,10 +24197,11 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24491
24197
  enabled?: boolean | undefined;
24492
24198
  }, unknown, z$2.core.$ZodTypeInternals<{
24493
24199
  name?: string | undefined;
24494
- eventType: "form.submitted" | "github" | "record.created" | "record.deleted" | "record.updated" | "slack" | "webhook";
24200
+ eventType: "form.submitted" | "github" | "record.created" | "record.updated" | "slack" | "webhook";
24495
24201
  objectId?: string | undefined;
24496
24202
  watchedFields?: string[] | undefined;
24497
24203
  debounceMs?: number | undefined;
24204
+ reentry?: number | undefined;
24498
24205
  filter?: {
24499
24206
  combinator: "and" | "or";
24500
24207
  rules: {
@@ -24508,7 +24215,7 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24508
24215
  connectionId?: string | undefined;
24509
24216
  match?: {
24510
24217
  family: "check";
24511
- actions: ("completed" | "rerequested")[];
24218
+ actions: "completed"[];
24512
24219
  repositories: string[];
24513
24220
  sender: GithubTriggerSender;
24514
24221
  conditions: ({
@@ -24523,7 +24230,7 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24523
24230
  })[];
24524
24231
  } | {
24525
24232
  family: "comment";
24526
- actions: ("created" | "deleted" | "edited")[];
24233
+ actions: "created"[];
24527
24234
  repositories: string[];
24528
24235
  sender: GithubTriggerSender;
24529
24236
  conditions: ({
@@ -24537,74 +24244,9 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24537
24244
  field: "prAuthor";
24538
24245
  value: string;
24539
24246
  })[];
24540
- } | {
24541
- family: "discussion";
24542
- actions: ("answered" | "closed" | "commented" | "created" | "labeled")[];
24543
- repositories: string[];
24544
- sender: GithubTriggerSender;
24545
- conditions: ({
24546
- field: "text";
24547
- operator: "contains" | "starts_with";
24548
- value: string;
24549
- } | {
24550
- field: "category";
24551
- value: string;
24552
- } | {
24553
- field: "issueLabels";
24554
- operator: "all" | "any";
24555
- value: string[];
24556
- })[];
24557
- } | {
24558
- family: "issue";
24559
- actions: ("assigned" | "closed" | "demilestoned" | "edited" | "labeled" | "milestoned" | "opened" | "pinned" | "reopened" | "transferred" | "unassigned" | "unlabeled")[];
24560
- repositories: string[];
24561
- sender: GithubTriggerSender;
24562
- conditions: ({
24563
- field: "text";
24564
- operator: "contains" | "starts_with";
24565
- value: string;
24566
- } | {
24567
- field: "issueType";
24568
- value: string;
24569
- } | {
24570
- field: "label";
24571
- value: string;
24572
- } | {
24573
- field: "milestone";
24574
- value: string;
24575
- } | {
24576
- field: "assignees";
24577
- operator: "all" | "any";
24578
- value: string[];
24579
- } | {
24580
- field: "issueLabels";
24581
- operator: "all" | "any";
24582
- value: string[];
24583
- })[];
24584
- } | {
24585
- family: "project_item";
24586
- actions: ("archived" | "created" | "deleted" | "edited" | "restored")[];
24587
- repositories: string[];
24588
- sender: GithubTriggerSender;
24589
- conditions: ({
24590
- field: "project";
24591
- value: string;
24592
- } | {
24593
- field: "projectField";
24594
- value: string;
24595
- } | {
24596
- field: "from";
24597
- value: string | null;
24598
- } | {
24599
- field: "to";
24600
- value: string | null;
24601
- } | {
24602
- field: "itemType";
24603
- value: "draft" | "issue" | "pull_request";
24604
- })[];
24605
24247
  } | {
24606
24248
  family: "pull_request";
24607
- actions: ("assigned" | "closed" | "converted_to_draft" | "edited" | "labeled" | "merged" | "opened" | "ready_for_review" | "reopened" | "review_requested" | "synchronize")[];
24249
+ actions: ("closed" | "labeled" | "merged" | "opened" | "ready_for_review" | "synchronize")[];
24608
24250
  repositories: string[];
24609
24251
  sender: GithubTriggerSender;
24610
24252
  conditions: ({
@@ -24616,6 +24258,9 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24616
24258
  } | {
24617
24259
  field: "headBranch";
24618
24260
  value: string;
24261
+ } | {
24262
+ field: "label";
24263
+ value: string;
24619
24264
  } | {
24620
24265
  field: "prAuthor";
24621
24266
  value: string;
@@ -24642,42 +24287,9 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24642
24287
  field: "forced";
24643
24288
  value: boolean;
24644
24289
  })[];
24645
- } | {
24646
- family: "ref";
24647
- actions: ("created" | "deleted")[];
24648
- repositories: string[];
24649
- sender: GithubTriggerSender;
24650
- conditions: ({
24651
- field: "branch";
24652
- value: string;
24653
- } | {
24654
- field: "tag";
24655
- value: string;
24656
- } | {
24657
- field: "refType";
24658
- value: "branch" | "tag";
24659
- })[];
24660
- } | {
24661
- family: "release";
24662
- actions: ("created" | "deleted" | "edited" | "prereleased" | "published")[];
24663
- repositories: string[];
24664
- sender: GithubTriggerSender;
24665
- conditions: ({
24666
- field: "tag";
24667
- value: string;
24668
- } | {
24669
- field: "prerelease";
24670
- value: boolean;
24671
- })[];
24672
- } | {
24673
- family: "repository";
24674
- actions: ("archived" | "created" | "forked" | "starred")[];
24675
- repositories: string[];
24676
- sender: GithubTriggerSender;
24677
- conditions: never[];
24678
24290
  } | {
24679
24291
  family: "review";
24680
- actions: ("dismissed" | "edited" | "submitted")[];
24292
+ actions: "submitted"[];
24681
24293
  repositories: string[];
24682
24294
  sender: GithubTriggerSender;
24683
24295
  conditions: ({
@@ -24689,7 +24301,7 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24689
24301
  })[];
24690
24302
  } | {
24691
24303
  family: "workflow";
24692
- actions: ("completed" | "in_progress" | "requested")[];
24304
+ actions: "completed"[];
24693
24305
  repositories: string[];
24694
24306
  sender: GithubTriggerSender;
24695
24307
  conditions: ({
@@ -24719,13 +24331,6 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24719
24331
  })[];
24720
24332
  } & {
24721
24333
  reactions?: never;
24722
- }) | ({
24723
- on: "member_joined";
24724
- channels: string[];
24725
- sender: SlackTriggerSender;
24726
- conditions: never[];
24727
- } & {
24728
- reactions?: never;
24729
24334
  }) | ({
24730
24335
  on: "mention";
24731
24336
  channels: string[];
@@ -24769,10 +24374,11 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24769
24374
  enabled?: boolean | undefined;
24770
24375
  }, unknown>>, z$2.ZodTransform<{
24771
24376
  name?: string | undefined;
24772
- eventType: "form.submitted" | "github" | "record.created" | "record.deleted" | "record.updated" | "slack" | "webhook";
24377
+ eventType: "form.submitted" | "github" | "record.created" | "record.updated" | "slack" | "webhook";
24773
24378
  objectId?: string | undefined;
24774
24379
  watchedFields?: string[] | undefined;
24775
24380
  debounceMs?: number | undefined;
24381
+ reentry?: number | undefined;
24776
24382
  filter?: {
24777
24383
  combinator: "and" | "or";
24778
24384
  rules: {
@@ -24786,103 +24392,38 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24786
24392
  connectionId?: string | undefined;
24787
24393
  match?: {
24788
24394
  family: "check";
24789
- actions: ("completed" | "rerequested")[];
24790
- repositories: string[];
24791
- sender: GithubTriggerSender;
24792
- conditions: ({
24793
- field: "checkApp";
24794
- value: string;
24795
- } | {
24796
- field: "checkName";
24797
- value: string;
24798
- } | {
24799
- field: "conclusion";
24800
- value: string;
24801
- })[];
24802
- } | {
24803
- family: "comment";
24804
- actions: ("created" | "deleted" | "edited")[];
24805
- repositories: string[];
24806
- sender: GithubTriggerSender;
24807
- conditions: ({
24808
- field: "text";
24809
- operator: "contains" | "starts_with";
24810
- value: string;
24811
- } | {
24812
- field: "issueAuthor";
24813
- value: string;
24814
- } | {
24815
- field: "prAuthor";
24816
- value: string;
24817
- })[];
24818
- } | {
24819
- family: "discussion";
24820
- actions: ("answered" | "closed" | "commented" | "created" | "labeled")[];
24821
- repositories: string[];
24822
- sender: GithubTriggerSender;
24823
- conditions: ({
24824
- field: "text";
24825
- operator: "contains" | "starts_with";
24826
- value: string;
24827
- } | {
24828
- field: "category";
24829
- value: string;
24830
- } | {
24831
- field: "issueLabels";
24832
- operator: "all" | "any";
24833
- value: string[];
24834
- })[];
24835
- } | {
24836
- family: "issue";
24837
- actions: ("assigned" | "closed" | "demilestoned" | "edited" | "labeled" | "milestoned" | "opened" | "pinned" | "reopened" | "transferred" | "unassigned" | "unlabeled")[];
24838
- repositories: string[];
24839
- sender: GithubTriggerSender;
24840
- conditions: ({
24841
- field: "text";
24842
- operator: "contains" | "starts_with";
24843
- value: string;
24844
- } | {
24845
- field: "issueType";
24395
+ actions: "completed"[];
24396
+ repositories: string[];
24397
+ sender: GithubTriggerSender;
24398
+ conditions: ({
24399
+ field: "checkApp";
24846
24400
  value: string;
24847
24401
  } | {
24848
- field: "label";
24402
+ field: "checkName";
24849
24403
  value: string;
24850
24404
  } | {
24851
- field: "milestone";
24405
+ field: "conclusion";
24852
24406
  value: string;
24853
- } | {
24854
- field: "assignees";
24855
- operator: "all" | "any";
24856
- value: string[];
24857
- } | {
24858
- field: "issueLabels";
24859
- operator: "all" | "any";
24860
- value: string[];
24861
24407
  })[];
24862
24408
  } | {
24863
- family: "project_item";
24864
- actions: ("archived" | "created" | "deleted" | "edited" | "restored")[];
24409
+ family: "comment";
24410
+ actions: "created"[];
24865
24411
  repositories: string[];
24866
24412
  sender: GithubTriggerSender;
24867
24413
  conditions: ({
24868
- field: "project";
24414
+ field: "text";
24415
+ operator: "contains" | "starts_with";
24869
24416
  value: string;
24870
24417
  } | {
24871
- field: "projectField";
24418
+ field: "issueAuthor";
24872
24419
  value: string;
24873
24420
  } | {
24874
- field: "from";
24875
- value: string | null;
24876
- } | {
24877
- field: "to";
24878
- value: string | null;
24879
- } | {
24880
- field: "itemType";
24881
- value: "draft" | "issue" | "pull_request";
24421
+ field: "prAuthor";
24422
+ value: string;
24882
24423
  })[];
24883
24424
  } | {
24884
24425
  family: "pull_request";
24885
- actions: ("assigned" | "closed" | "converted_to_draft" | "edited" | "labeled" | "merged" | "opened" | "ready_for_review" | "reopened" | "review_requested" | "synchronize")[];
24426
+ actions: ("closed" | "labeled" | "merged" | "opened" | "ready_for_review" | "synchronize")[];
24886
24427
  repositories: string[];
24887
24428
  sender: GithubTriggerSender;
24888
24429
  conditions: ({
@@ -24894,6 +24435,9 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24894
24435
  } | {
24895
24436
  field: "headBranch";
24896
24437
  value: string;
24438
+ } | {
24439
+ field: "label";
24440
+ value: string;
24897
24441
  } | {
24898
24442
  field: "prAuthor";
24899
24443
  value: string;
@@ -24920,42 +24464,9 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24920
24464
  field: "forced";
24921
24465
  value: boolean;
24922
24466
  })[];
24923
- } | {
24924
- family: "ref";
24925
- actions: ("created" | "deleted")[];
24926
- repositories: string[];
24927
- sender: GithubTriggerSender;
24928
- conditions: ({
24929
- field: "branch";
24930
- value: string;
24931
- } | {
24932
- field: "tag";
24933
- value: string;
24934
- } | {
24935
- field: "refType";
24936
- value: "branch" | "tag";
24937
- })[];
24938
- } | {
24939
- family: "release";
24940
- actions: ("created" | "deleted" | "edited" | "prereleased" | "published")[];
24941
- repositories: string[];
24942
- sender: GithubTriggerSender;
24943
- conditions: ({
24944
- field: "tag";
24945
- value: string;
24946
- } | {
24947
- field: "prerelease";
24948
- value: boolean;
24949
- })[];
24950
- } | {
24951
- family: "repository";
24952
- actions: ("archived" | "created" | "forked" | "starred")[];
24953
- repositories: string[];
24954
- sender: GithubTriggerSender;
24955
- conditions: never[];
24956
24467
  } | {
24957
24468
  family: "review";
24958
- actions: ("dismissed" | "edited" | "submitted")[];
24469
+ actions: "submitted"[];
24959
24470
  repositories: string[];
24960
24471
  sender: GithubTriggerSender;
24961
24472
  conditions: ({
@@ -24967,7 +24478,7 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24967
24478
  })[];
24968
24479
  } | {
24969
24480
  family: "workflow";
24970
- actions: ("completed" | "in_progress" | "requested")[];
24481
+ actions: "completed"[];
24971
24482
  repositories: string[];
24972
24483
  sender: GithubTriggerSender;
24973
24484
  conditions: ({
@@ -24997,13 +24508,6 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24997
24508
  })[];
24998
24509
  } & {
24999
24510
  reactions?: never;
25000
- }) | ({
25001
- on: "member_joined";
25002
- channels: string[];
25003
- sender: SlackTriggerSender;
25004
- conditions: never[];
25005
- } & {
25006
- reactions?: never;
25007
24511
  }) | ({
25008
24512
  on: "mention";
25009
24513
  channels: string[];
@@ -25047,10 +24551,11 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
25047
24551
  enabled?: boolean | undefined;
25048
24552
  }, {
25049
24553
  name?: string | undefined;
25050
- eventType: "form.submitted" | "github" | "record.created" | "record.deleted" | "record.updated" | "slack" | "webhook";
24554
+ eventType: "form.submitted" | "github" | "record.created" | "record.updated" | "slack" | "webhook";
25051
24555
  objectId?: string | undefined;
25052
24556
  watchedFields?: string[] | undefined;
25053
24557
  debounceMs?: number | undefined;
24558
+ reentry?: number | undefined;
25054
24559
  filter?: {
25055
24560
  combinator: "and" | "or";
25056
24561
  rules: {
@@ -25064,7 +24569,7 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
25064
24569
  connectionId?: string | undefined;
25065
24570
  match?: {
25066
24571
  family: "check";
25067
- actions: ("completed" | "rerequested")[];
24572
+ actions: "completed"[];
25068
24573
  repositories: string[];
25069
24574
  sender: GithubTriggerSender;
25070
24575
  conditions: ({
@@ -25079,7 +24584,7 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
25079
24584
  })[];
25080
24585
  } | {
25081
24586
  family: "comment";
25082
- actions: ("created" | "deleted" | "edited")[];
24587
+ actions: "created"[];
25083
24588
  repositories: string[];
25084
24589
  sender: GithubTriggerSender;
25085
24590
  conditions: ({
@@ -25093,74 +24598,9 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
25093
24598
  field: "prAuthor";
25094
24599
  value: string;
25095
24600
  })[];
25096
- } | {
25097
- family: "discussion";
25098
- actions: ("answered" | "closed" | "commented" | "created" | "labeled")[];
25099
- repositories: string[];
25100
- sender: GithubTriggerSender;
25101
- conditions: ({
25102
- field: "text";
25103
- operator: "contains" | "starts_with";
25104
- value: string;
25105
- } | {
25106
- field: "category";
25107
- value: string;
25108
- } | {
25109
- field: "issueLabels";
25110
- operator: "all" | "any";
25111
- value: string[];
25112
- })[];
25113
- } | {
25114
- family: "issue";
25115
- actions: ("assigned" | "closed" | "demilestoned" | "edited" | "labeled" | "milestoned" | "opened" | "pinned" | "reopened" | "transferred" | "unassigned" | "unlabeled")[];
25116
- repositories: string[];
25117
- sender: GithubTriggerSender;
25118
- conditions: ({
25119
- field: "text";
25120
- operator: "contains" | "starts_with";
25121
- value: string;
25122
- } | {
25123
- field: "issueType";
25124
- value: string;
25125
- } | {
25126
- field: "label";
25127
- value: string;
25128
- } | {
25129
- field: "milestone";
25130
- value: string;
25131
- } | {
25132
- field: "assignees";
25133
- operator: "all" | "any";
25134
- value: string[];
25135
- } | {
25136
- field: "issueLabels";
25137
- operator: "all" | "any";
25138
- value: string[];
25139
- })[];
25140
- } | {
25141
- family: "project_item";
25142
- actions: ("archived" | "created" | "deleted" | "edited" | "restored")[];
25143
- repositories: string[];
25144
- sender: GithubTriggerSender;
25145
- conditions: ({
25146
- field: "project";
25147
- value: string;
25148
- } | {
25149
- field: "projectField";
25150
- value: string;
25151
- } | {
25152
- field: "from";
25153
- value: string | null;
25154
- } | {
25155
- field: "to";
25156
- value: string | null;
25157
- } | {
25158
- field: "itemType";
25159
- value: "draft" | "issue" | "pull_request";
25160
- })[];
25161
24601
  } | {
25162
24602
  family: "pull_request";
25163
- actions: ("assigned" | "closed" | "converted_to_draft" | "edited" | "labeled" | "merged" | "opened" | "ready_for_review" | "reopened" | "review_requested" | "synchronize")[];
24603
+ actions: ("closed" | "labeled" | "merged" | "opened" | "ready_for_review" | "synchronize")[];
25164
24604
  repositories: string[];
25165
24605
  sender: GithubTriggerSender;
25166
24606
  conditions: ({
@@ -25172,6 +24612,9 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
25172
24612
  } | {
25173
24613
  field: "headBranch";
25174
24614
  value: string;
24615
+ } | {
24616
+ field: "label";
24617
+ value: string;
25175
24618
  } | {
25176
24619
  field: "prAuthor";
25177
24620
  value: string;
@@ -25198,42 +24641,9 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
25198
24641
  field: "forced";
25199
24642
  value: boolean;
25200
24643
  })[];
25201
- } | {
25202
- family: "ref";
25203
- actions: ("created" | "deleted")[];
25204
- repositories: string[];
25205
- sender: GithubTriggerSender;
25206
- conditions: ({
25207
- field: "branch";
25208
- value: string;
25209
- } | {
25210
- field: "tag";
25211
- value: string;
25212
- } | {
25213
- field: "refType";
25214
- value: "branch" | "tag";
25215
- })[];
25216
- } | {
25217
- family: "release";
25218
- actions: ("created" | "deleted" | "edited" | "prereleased" | "published")[];
25219
- repositories: string[];
25220
- sender: GithubTriggerSender;
25221
- conditions: ({
25222
- field: "tag";
25223
- value: string;
25224
- } | {
25225
- field: "prerelease";
25226
- value: boolean;
25227
- })[];
25228
- } | {
25229
- family: "repository";
25230
- actions: ("archived" | "created" | "forked" | "starred")[];
25231
- repositories: string[];
25232
- sender: GithubTriggerSender;
25233
- conditions: never[];
25234
24644
  } | {
25235
24645
  family: "review";
25236
- actions: ("dismissed" | "edited" | "submitted")[];
24646
+ actions: "submitted"[];
25237
24647
  repositories: string[];
25238
24648
  sender: GithubTriggerSender;
25239
24649
  conditions: ({
@@ -25245,7 +24655,7 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
25245
24655
  })[];
25246
24656
  } | {
25247
24657
  family: "workflow";
25248
- actions: ("completed" | "in_progress" | "requested")[];
24658
+ actions: "completed"[];
25249
24659
  repositories: string[];
25250
24660
  sender: GithubTriggerSender;
25251
24661
  conditions: ({
@@ -25275,13 +24685,6 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
25275
24685
  })[];
25276
24686
  } & {
25277
24687
  reactions?: never;
25278
- }) | ({
25279
- on: "member_joined";
25280
- channels: string[];
25281
- sender: SlackTriggerSender;
25282
- conditions: never[];
25283
- } & {
25284
- reactions?: never;
25285
24688
  }) | ({
25286
24689
  on: "mention";
25287
24690
  channels: string[];
@@ -25330,7 +24733,6 @@ export declare const agentTriggerPatchSchema: z$2.ZodObject<{
25330
24733
  "form.submitted": "form.submitted";
25331
24734
  github: "github";
25332
24735
  "record.created": "record.created";
25333
- "record.deleted": "record.deleted";
25334
24736
  "record.updated": "record.updated";
25335
24737
  slack: "slack";
25336
24738
  webhook: "webhook";
@@ -25338,6 +24740,7 @@ export declare const agentTriggerPatchSchema: z$2.ZodObject<{
25338
24740
  objectId: z$2.ZodOptional<z$2.ZodOptional<z$2.ZodGUID>>;
25339
24741
  watchedFields: z$2.ZodOptional<z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>>;
25340
24742
  debounceMs: z$2.ZodOptional<z$2.ZodOptional<z$2.ZodNumber>>;
24743
+ reentry: z$2.ZodOptional<z$2.ZodOptional<z$2.ZodNumber>>;
25341
24744
  filter: z$2.ZodOptional<z$2.ZodOptional<z$2.ZodObject<{
25342
24745
  combinator: z$2.ZodDefault<z$2.ZodEnum<{
25343
24746
  and: "and";
@@ -25356,14 +24759,8 @@ export declare const agentTriggerPatchSchema: z$2.ZodObject<{
25356
24759
  family: z$2.ZodEnum<{
25357
24760
  check: "check";
25358
24761
  comment: "comment";
25359
- discussion: "discussion";
25360
- issue: "issue";
25361
- project_item: "project_item";
25362
24762
  pull_request: "pull_request";
25363
24763
  push: "push";
25364
- ref: "ref";
25365
- release: "release";
25366
- repository: "repository";
25367
24764
  review: "review";
25368
24765
  workflow: "workflow";
25369
24766
  }>;
@@ -25393,19 +24790,6 @@ export declare const agentTriggerPatchSchema: z$2.ZodObject<{
25393
24790
  any: "any";
25394
24791
  }>>;
25395
24792
  value: z$2.ZodArray<z$2.ZodString>;
25396
- }, z$2.core.$strict>, z$2.ZodObject<{
25397
- field: z$2.ZodLiteral<"assignees">;
25398
- operator: z$2.ZodDefault<z$2.ZodEnum<{
25399
- all: "all";
25400
- any: "any";
25401
- }>>;
25402
- value: z$2.ZodArray<z$2.ZodString>;
25403
- }, z$2.core.$strict>, z$2.ZodObject<{
25404
- field: z$2.ZodLiteral<"milestone">;
25405
- value: z$2.ZodString;
25406
- }, z$2.core.$strict>, z$2.ZodObject<{
25407
- field: z$2.ZodLiteral<"issueType">;
25408
- value: z$2.ZodString;
25409
24793
  }, z$2.core.$strict>, z$2.ZodObject<{
25410
24794
  field: z$2.ZodLiteral<"baseBranch">;
25411
24795
  value: z$2.ZodString;
@@ -25452,44 +24836,10 @@ export declare const agentTriggerPatchSchema: z$2.ZodObject<{
25452
24836
  }, z$2.core.$strict>, z$2.ZodObject<{
25453
24837
  field: z$2.ZodLiteral<"originEvent">;
25454
24838
  value: z$2.ZodString;
25455
- }, z$2.core.$strict>, z$2.ZodObject<{
25456
- field: z$2.ZodLiteral<"project">;
25457
- value: z$2.ZodString;
25458
- }, z$2.core.$strict>, z$2.ZodObject<{
25459
- field: z$2.ZodLiteral<"projectField">;
25460
- value: z$2.ZodString;
25461
- }, z$2.core.$strict>, z$2.ZodObject<{
25462
- field: z$2.ZodLiteral<"from">;
25463
- value: z$2.ZodNullable<z$2.ZodString>;
25464
- }, z$2.core.$strict>, z$2.ZodObject<{
25465
- field: z$2.ZodLiteral<"to">;
25466
- value: z$2.ZodNullable<z$2.ZodString>;
25467
- }, z$2.core.$strict>, z$2.ZodObject<{
25468
- field: z$2.ZodLiteral<"itemType">;
25469
- value: z$2.ZodEnum<{
25470
- draft: "draft";
25471
- issue: "issue";
25472
- pull_request: "pull_request";
25473
- }>;
25474
- }, z$2.core.$strict>, z$2.ZodObject<{
25475
- field: z$2.ZodLiteral<"prerelease">;
25476
- value: z$2.ZodBoolean;
25477
- }, z$2.core.$strict>, z$2.ZodObject<{
25478
- field: z$2.ZodLiteral<"tag">;
25479
- value: z$2.ZodString;
25480
- }, z$2.core.$strict>, z$2.ZodObject<{
25481
- field: z$2.ZodLiteral<"refType">;
25482
- value: z$2.ZodEnum<{
25483
- branch: "branch";
25484
- tag: "tag";
25485
- }>;
25486
- }, z$2.core.$strict>, z$2.ZodObject<{
25487
- field: z$2.ZodLiteral<"category">;
25488
- value: z$2.ZodString;
25489
24839
  }, z$2.core.$strict>], "field">>>;
25490
24840
  }, z$2.core.$strict>, z$2.ZodTransform<{
25491
24841
  family: "check";
25492
- actions: ("completed" | "rerequested")[];
24842
+ actions: "completed"[];
25493
24843
  repositories: string[];
25494
24844
  sender: GithubTriggerSender;
25495
24845
  conditions: ({
@@ -25504,7 +24854,7 @@ export declare const agentTriggerPatchSchema: z$2.ZodObject<{
25504
24854
  })[];
25505
24855
  } | {
25506
24856
  family: "comment";
25507
- actions: ("created" | "deleted" | "edited")[];
24857
+ actions: "created"[];
25508
24858
  repositories: string[];
25509
24859
  sender: GithubTriggerSender;
25510
24860
  conditions: ({
@@ -25518,74 +24868,9 @@ export declare const agentTriggerPatchSchema: z$2.ZodObject<{
25518
24868
  field: "prAuthor";
25519
24869
  value: string;
25520
24870
  })[];
25521
- } | {
25522
- family: "discussion";
25523
- actions: ("answered" | "closed" | "commented" | "created" | "labeled")[];
25524
- repositories: string[];
25525
- sender: GithubTriggerSender;
25526
- conditions: ({
25527
- field: "text";
25528
- operator: "contains" | "starts_with";
25529
- value: string;
25530
- } | {
25531
- field: "category";
25532
- value: string;
25533
- } | {
25534
- field: "issueLabels";
25535
- operator: "all" | "any";
25536
- value: string[];
25537
- })[];
25538
- } | {
25539
- family: "issue";
25540
- actions: ("assigned" | "closed" | "demilestoned" | "edited" | "labeled" | "milestoned" | "opened" | "pinned" | "reopened" | "transferred" | "unassigned" | "unlabeled")[];
25541
- repositories: string[];
25542
- sender: GithubTriggerSender;
25543
- conditions: ({
25544
- field: "text";
25545
- operator: "contains" | "starts_with";
25546
- value: string;
25547
- } | {
25548
- field: "issueType";
25549
- value: string;
25550
- } | {
25551
- field: "label";
25552
- value: string;
25553
- } | {
25554
- field: "milestone";
25555
- value: string;
25556
- } | {
25557
- field: "assignees";
25558
- operator: "all" | "any";
25559
- value: string[];
25560
- } | {
25561
- field: "issueLabels";
25562
- operator: "all" | "any";
25563
- value: string[];
25564
- })[];
25565
- } | {
25566
- family: "project_item";
25567
- actions: ("archived" | "created" | "deleted" | "edited" | "restored")[];
25568
- repositories: string[];
25569
- sender: GithubTriggerSender;
25570
- conditions: ({
25571
- field: "project";
25572
- value: string;
25573
- } | {
25574
- field: "projectField";
25575
- value: string;
25576
- } | {
25577
- field: "from";
25578
- value: string | null;
25579
- } | {
25580
- field: "to";
25581
- value: string | null;
25582
- } | {
25583
- field: "itemType";
25584
- value: "draft" | "issue" | "pull_request";
25585
- })[];
25586
24871
  } | {
25587
24872
  family: "pull_request";
25588
- actions: ("assigned" | "closed" | "converted_to_draft" | "edited" | "labeled" | "merged" | "opened" | "ready_for_review" | "reopened" | "review_requested" | "synchronize")[];
24873
+ actions: ("closed" | "labeled" | "merged" | "opened" | "ready_for_review" | "synchronize")[];
25589
24874
  repositories: string[];
25590
24875
  sender: GithubTriggerSender;
25591
24876
  conditions: ({
@@ -25597,6 +24882,9 @@ export declare const agentTriggerPatchSchema: z$2.ZodObject<{
25597
24882
  } | {
25598
24883
  field: "headBranch";
25599
24884
  value: string;
24885
+ } | {
24886
+ field: "label";
24887
+ value: string;
25600
24888
  } | {
25601
24889
  field: "prAuthor";
25602
24890
  value: string;
@@ -25623,42 +24911,9 @@ export declare const agentTriggerPatchSchema: z$2.ZodObject<{
25623
24911
  field: "forced";
25624
24912
  value: boolean;
25625
24913
  })[];
25626
- } | {
25627
- family: "ref";
25628
- actions: ("created" | "deleted")[];
25629
- repositories: string[];
25630
- sender: GithubTriggerSender;
25631
- conditions: ({
25632
- field: "branch";
25633
- value: string;
25634
- } | {
25635
- field: "tag";
25636
- value: string;
25637
- } | {
25638
- field: "refType";
25639
- value: "branch" | "tag";
25640
- })[];
25641
- } | {
25642
- family: "release";
25643
- actions: ("created" | "deleted" | "edited" | "prereleased" | "published")[];
25644
- repositories: string[];
25645
- sender: GithubTriggerSender;
25646
- conditions: ({
25647
- field: "tag";
25648
- value: string;
25649
- } | {
25650
- field: "prerelease";
25651
- value: boolean;
25652
- })[];
25653
- } | {
25654
- family: "repository";
25655
- actions: ("archived" | "created" | "forked" | "starred")[];
25656
- repositories: string[];
25657
- sender: GithubTriggerSender;
25658
- conditions: never[];
25659
24914
  } | {
25660
24915
  family: "review";
25661
- actions: ("dismissed" | "edited" | "submitted")[];
24916
+ actions: "submitted"[];
25662
24917
  repositories: string[];
25663
24918
  sender: GithubTriggerSender;
25664
24919
  conditions: ({
@@ -25670,7 +24925,7 @@ export declare const agentTriggerPatchSchema: z$2.ZodObject<{
25670
24925
  })[];
25671
24926
  } | {
25672
24927
  family: "workflow";
25673
- actions: ("completed" | "in_progress" | "requested")[];
24928
+ actions: "completed"[];
25674
24929
  repositories: string[];
25675
24930
  sender: GithubTriggerSender;
25676
24931
  conditions: ({
@@ -25687,7 +24942,7 @@ export declare const agentTriggerPatchSchema: z$2.ZodObject<{
25687
24942
  value: string;
25688
24943
  })[];
25689
24944
  }, {
25690
- family: "check" | "comment" | "discussion" | "issue" | "project_item" | "pull_request" | "push" | "ref" | "release" | "repository" | "review" | "workflow";
24945
+ family: "check" | "comment" | "pull_request" | "push" | "review" | "workflow";
25691
24946
  actions: string[];
25692
24947
  repositories: string[];
25693
24948
  sender: "any" | "human" | "me" | {
@@ -25703,9 +24958,6 @@ export declare const agentTriggerPatchSchema: z$2.ZodObject<{
25703
24958
  } | {
25704
24959
  field: "branch";
25705
24960
  value: string;
25706
- } | {
25707
- field: "category";
25708
- value: string;
25709
24961
  } | {
25710
24962
  field: "changedPaths";
25711
24963
  value: string;
@@ -25724,30 +24976,15 @@ export declare const agentTriggerPatchSchema: z$2.ZodObject<{
25724
24976
  } | {
25725
24977
  field: "issueAuthor";
25726
24978
  value: string;
25727
- } | {
25728
- field: "issueType";
25729
- value: string;
25730
24979
  } | {
25731
24980
  field: "label";
25732
24981
  value: string;
25733
- } | {
25734
- field: "milestone";
25735
- value: string;
25736
24982
  } | {
25737
24983
  field: "originEvent";
25738
24984
  value: string;
25739
24985
  } | {
25740
24986
  field: "prAuthor";
25741
24987
  value: string;
25742
- } | {
25743
- field: "project";
25744
- value: string;
25745
- } | {
25746
- field: "projectField";
25747
- value: string;
25748
- } | {
25749
- field: "tag";
25750
- value: string;
25751
24988
  } | {
25752
24989
  field: "workflowName";
25753
24990
  value: string;
@@ -25757,13 +24994,6 @@ export declare const agentTriggerPatchSchema: z$2.ZodObject<{
25757
24994
  } | {
25758
24995
  field: "forced";
25759
24996
  value: boolean;
25760
- } | {
25761
- field: "prerelease";
25762
- value: boolean;
25763
- } | {
25764
- field: "assignees";
25765
- operator: "all" | "any";
25766
- value: string[];
25767
24997
  } | {
25768
24998
  field: "issueLabels";
25769
24999
  operator: "all" | "any";
@@ -25771,23 +25001,10 @@ export declare const agentTriggerPatchSchema: z$2.ZodObject<{
25771
25001
  } | {
25772
25002
  field: "reviewState";
25773
25003
  value: "approved" | "changes_requested" | "commented";
25774
- } | {
25775
- field: "from";
25776
- value: string | null;
25777
- } | {
25778
- field: "to";
25779
- value: string | null;
25780
- } | {
25781
- field: "itemType";
25782
- value: "draft" | "issue" | "pull_request";
25783
- } | {
25784
- field: "refType";
25785
- value: "branch" | "tag";
25786
25004
  })[];
25787
25005
  }>>, z$2.ZodPipe<z$2.ZodObject<{
25788
25006
  on: z$2.ZodEnum<{
25789
25007
  dm: "dm";
25790
- member_joined: "member_joined";
25791
25008
  mention: "mention";
25792
25009
  message: "message";
25793
25010
  reaction: "reaction";
@@ -25835,13 +25052,6 @@ export declare const agentTriggerPatchSchema: z$2.ZodObject<{
25835
25052
  })[];
25836
25053
  } & {
25837
25054
  reactions?: never;
25838
- }) | ({
25839
- on: "member_joined";
25840
- channels: string[];
25841
- sender: SlackTriggerSender;
25842
- conditions: never[];
25843
- } & {
25844
- reactions?: never;
25845
25055
  }) | ({
25846
25056
  on: "mention";
25847
25057
  channels: string[];
@@ -25881,7 +25091,7 @@ export declare const agentTriggerPatchSchema: z$2.ZodObject<{
25881
25091
  } & {
25882
25092
  reactions?: string[];
25883
25093
  }), {
25884
- on: "dm" | "member_joined" | "mention" | "message" | "reaction";
25094
+ on: "dm" | "mention" | "message" | "reaction";
25885
25095
  channels: string[];
25886
25096
  reactions?: string[] | undefined;
25887
25097
  sender: "any" | "human" | "me" | {
@@ -27337,6 +26547,7 @@ export declare const agentSessionMessageOutputSchema: z$2.ZodObject<{
27337
26547
  deletion: z$2.ZodOptional<z$2.ZodObject<{
27338
26548
  target: z$2.ZodOptional<z$2.ZodString>;
27339
26549
  count: z$2.ZodOptional<z$2.ZodNumber>;
26550
+ targets: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
27340
26551
  restorableDays: z$2.ZodOptional<z$2.ZodNumber>;
27341
26552
  }, z$2.core.$strict>>;
27342
26553
  record: z$2.ZodOptional<z$2.ZodObject<{
@@ -27558,6 +26769,7 @@ export declare const agentHistoryMessageSchema: z$2.ZodObject<{
27558
26769
  deletion: z$2.ZodOptional<z$2.ZodObject<{
27559
26770
  target: z$2.ZodOptional<z$2.ZodString>;
27560
26771
  count: z$2.ZodOptional<z$2.ZodNumber>;
26772
+ targets: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
27561
26773
  restorableDays: z$2.ZodOptional<z$2.ZodNumber>;
27562
26774
  }, z$2.core.$strict>>;
27563
26775
  record: z$2.ZodOptional<z$2.ZodObject<{
@@ -27785,6 +26997,7 @@ export declare const agentSessionHistoryPageSchema: z$2.ZodObject<{
27785
26997
  deletion: z$2.ZodOptional<z$2.ZodObject<{
27786
26998
  target: z$2.ZodOptional<z$2.ZodString>;
27787
26999
  count: z$2.ZodOptional<z$2.ZodNumber>;
27000
+ targets: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
27788
27001
  restorableDays: z$2.ZodOptional<z$2.ZodNumber>;
27789
27002
  }, z$2.core.$strict>>;
27790
27003
  record: z$2.ZodOptional<z$2.ZodObject<{
@@ -28041,6 +27254,7 @@ export declare const agentApprovalResolutionSchema: z$2.ZodObject<{
28041
27254
  deletion: z$2.ZodOptional<z$2.ZodObject<{
28042
27255
  target: z$2.ZodOptional<z$2.ZodString>;
28043
27256
  count: z$2.ZodOptional<z$2.ZodNumber>;
27257
+ targets: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
28044
27258
  restorableDays: z$2.ZodOptional<z$2.ZodNumber>;
28045
27259
  }, z$2.core.$strict>>;
28046
27260
  record: z$2.ZodOptional<z$2.ZodObject<{
@@ -28270,6 +27484,7 @@ export declare const agentRequestAnswerSchema: z$2.ZodObject<{
28270
27484
  deletion: z$2.ZodOptional<z$2.ZodObject<{
28271
27485
  target: z$2.ZodOptional<z$2.ZodString>;
28272
27486
  count: z$2.ZodOptional<z$2.ZodNumber>;
27487
+ targets: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
28273
27488
  restorableDays: z$2.ZodOptional<z$2.ZodNumber>;
28274
27489
  }, z$2.core.$strict>>;
28275
27490
  record: z$2.ZodOptional<z$2.ZodObject<{
@@ -28901,7 +28116,6 @@ export declare const agentSetupResponseSchema: z$2.ZodObject<{
28901
28116
  "form.submitted": "form.submitted";
28902
28117
  github: "github";
28903
28118
  "record.created": "record.created";
28904
- "record.deleted": "record.deleted";
28905
28119
  "record.updated": "record.updated";
28906
28120
  slack: "slack";
28907
28121
  webhook: "webhook";
@@ -29139,7 +28353,6 @@ export declare const agentTriggerDefinitionSchema: z$2.ZodObject<{
29139
28353
  "form.submitted": "form.submitted";
29140
28354
  github: "github";
29141
28355
  "record.created": "record.created";
29142
- "record.deleted": "record.deleted";
29143
28356
  "record.updated": "record.updated";
29144
28357
  slack: "slack";
29145
28358
  webhook: "webhook";
@@ -29154,6 +28367,7 @@ export declare const agentTriggerDefinitionSchema: z$2.ZodObject<{
29154
28367
  continueConversation: z$2.ZodOptional<z$2.ZodBoolean>;
29155
28368
  filter: z$2.ZodOptional<z$2.ZodType<FilterState, FilterState, z$2.core.$ZodTypeInternals<FilterState, FilterState>>>;
29156
28369
  debounceMs: z$2.ZodOptional<z$2.ZodNumber>;
28370
+ reentry: z$2.ZodOptional<z$2.ZodNumber>;
29157
28371
  enabled: z$2.ZodBoolean;
29158
28372
  createdBy: z$2.ZodString;
29159
28373
  lastFiredAt: z$2.ZodOptional<z$2.ZodCodec<z$2.ZodISODateTime, z$2.ZodDate>>;
@@ -29177,7 +28391,6 @@ export declare const createAgentTriggerResultSchema: z$2.ZodObject<{
29177
28391
  "form.submitted": "form.submitted";
29178
28392
  github: "github";
29179
28393
  "record.created": "record.created";
29180
- "record.deleted": "record.deleted";
29181
28394
  "record.updated": "record.updated";
29182
28395
  slack: "slack";
29183
28396
  webhook: "webhook";
@@ -29192,6 +28405,7 @@ export declare const createAgentTriggerResultSchema: z$2.ZodObject<{
29192
28405
  continueConversation: z$2.ZodOptional<z$2.ZodBoolean>;
29193
28406
  filter: z$2.ZodOptional<z$2.ZodType<FilterState, FilterState, z$2.core.$ZodTypeInternals<FilterState, FilterState>>>;
29194
28407
  debounceMs: z$2.ZodOptional<z$2.ZodNumber>;
28408
+ reentry: z$2.ZodOptional<z$2.ZodNumber>;
29195
28409
  enabled: z$2.ZodBoolean;
29196
28410
  createdBy: z$2.ZodString;
29197
28411
  lastFiredAt: z$2.ZodOptional<z$2.ZodCodec<z$2.ZodISODateTime, z$2.ZodDate>>;