@standards/schema 1.0.0-alpha.431 → 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 +629 -1355
  4. package/dist/api/index.d.ts +629 -1355
  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-CTKf4wvg.d.ts → index-CiAuyPuA.d.ts} +613 -1411
  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-CmFNpKgs.d.mts → record-query-Bki3Qcvc.d.mts} +612 -1410
  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 +1283 -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-BMO1WCTL.js +0 -2
  36. package/dist/record-operation-C6DDYXxb.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;
@@ -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";
@@ -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;
@@ -21783,6 +21761,7 @@ export declare const toolImpactSchema: z$2.ZodObject<{
21783
21761
  deletion: z$2.ZodOptional<z$2.ZodObject<{
21784
21762
  target: z$2.ZodOptional<z$2.ZodString>;
21785
21763
  count: z$2.ZodOptional<z$2.ZodNumber>;
21764
+ targets: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
21786
21765
  restorableDays: z$2.ZodOptional<z$2.ZodNumber>;
21787
21766
  }, z$2.core.$strict>>;
21788
21767
  record: z$2.ZodOptional<z$2.ZodObject<{
@@ -21904,6 +21883,7 @@ export declare const agentMessagePartSchema: z$2.ZodUnion<readonly [z$2.ZodObjec
21904
21883
  deletion: z$2.ZodOptional<z$2.ZodObject<{
21905
21884
  target: z$2.ZodOptional<z$2.ZodString>;
21906
21885
  count: z$2.ZodOptional<z$2.ZodNumber>;
21886
+ targets: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
21907
21887
  restorableDays: z$2.ZodOptional<z$2.ZodNumber>;
21908
21888
  }, z$2.core.$strict>>;
21909
21889
  record: z$2.ZodOptional<z$2.ZodObject<{
@@ -22116,6 +22096,7 @@ export declare const agentSessionMessageSchema: z$2.ZodObject<{
22116
22096
  deletion: z$2.ZodOptional<z$2.ZodObject<{
22117
22097
  target: z$2.ZodOptional<z$2.ZodString>;
22118
22098
  count: z$2.ZodOptional<z$2.ZodNumber>;
22099
+ targets: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
22119
22100
  restorableDays: z$2.ZodOptional<z$2.ZodNumber>;
22120
22101
  }, z$2.core.$strict>>;
22121
22102
  record: z$2.ZodOptional<z$2.ZodObject<{
@@ -22429,6 +22410,7 @@ export declare const customDataChunkSchemas: {
22429
22410
  deletion: z$2.ZodOptional<z$2.ZodObject<{
22430
22411
  target: z$2.ZodOptional<z$2.ZodString>;
22431
22412
  count: z$2.ZodOptional<z$2.ZodNumber>;
22413
+ targets: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
22432
22414
  restorableDays: z$2.ZodOptional<z$2.ZodNumber>;
22433
22415
  }, z$2.core.$strict>>;
22434
22416
  record: z$2.ZodOptional<z$2.ZodObject<{
@@ -22592,6 +22574,7 @@ export declare const customDataChunkSchemas: {
22592
22574
  deletion: z$2.ZodOptional<z$2.ZodObject<{
22593
22575
  target: z$2.ZodOptional<z$2.ZodString>;
22594
22576
  count: z$2.ZodOptional<z$2.ZodNumber>;
22577
+ targets: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
22595
22578
  restorableDays: z$2.ZodOptional<z$2.ZodNumber>;
22596
22579
  }, z$2.core.$strict>>;
22597
22580
  record: z$2.ZodOptional<z$2.ZodObject<{
@@ -23618,7 +23601,12 @@ export declare const agentStartersSchema: z$2.ZodArray<z$2.ZodString>;
23618
23601
  * holds anything else — metadata is free-form JSON, never trusted raw.
23619
23602
  */
23620
23603
  export declare function agentAvatarFromMetadata(value: unknown): AgentAvatar | undefined;
23621
- 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;
23622
23610
  /** Env-var key format, enforced by the panel, `request_setup` and `EnvVarService` for new keys. */
23623
23611
  export declare const ENV_VAR_KEY_PATTERN: RegExp;
23624
23612
  export declare const agentScheduleSchema: z$2.ZodObject<{
@@ -23645,7 +23633,6 @@ export declare const agentTriggerBaseSchema: z$2.ZodObject<{
23645
23633
  "form.submitted": "form.submitted";
23646
23634
  github: "github";
23647
23635
  "record.created": "record.created";
23648
- "record.deleted": "record.deleted";
23649
23636
  "record.updated": "record.updated";
23650
23637
  slack: "slack";
23651
23638
  webhook: "webhook";
@@ -23653,6 +23640,7 @@ export declare const agentTriggerBaseSchema: z$2.ZodObject<{
23653
23640
  objectId: z$2.ZodOptional<z$2.ZodGUID>;
23654
23641
  watchedFields: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
23655
23642
  debounceMs: z$2.ZodOptional<z$2.ZodNumber>;
23643
+ reentry: z$2.ZodOptional<z$2.ZodNumber>;
23656
23644
  filter: z$2.ZodOptional<z$2.ZodObject<{
23657
23645
  combinator: z$2.ZodDefault<z$2.ZodEnum<{
23658
23646
  and: "and";
@@ -23671,14 +23659,8 @@ export declare const agentTriggerBaseSchema: z$2.ZodObject<{
23671
23659
  family: z$2.ZodEnum<{
23672
23660
  check: "check";
23673
23661
  comment: "comment";
23674
- discussion: "discussion";
23675
- issue: "issue";
23676
- project_item: "project_item";
23677
23662
  pull_request: "pull_request";
23678
23663
  push: "push";
23679
- ref: "ref";
23680
- release: "release";
23681
- repository: "repository";
23682
23664
  review: "review";
23683
23665
  workflow: "workflow";
23684
23666
  }>;
@@ -23708,19 +23690,6 @@ export declare const agentTriggerBaseSchema: z$2.ZodObject<{
23708
23690
  any: "any";
23709
23691
  }>>;
23710
23692
  value: z$2.ZodArray<z$2.ZodString>;
23711
- }, z$2.core.$strict>, z$2.ZodObject<{
23712
- field: z$2.ZodLiteral<"assignees">;
23713
- operator: z$2.ZodDefault<z$2.ZodEnum<{
23714
- all: "all";
23715
- any: "any";
23716
- }>>;
23717
- value: z$2.ZodArray<z$2.ZodString>;
23718
- }, z$2.core.$strict>, z$2.ZodObject<{
23719
- field: z$2.ZodLiteral<"milestone">;
23720
- value: z$2.ZodString;
23721
- }, z$2.core.$strict>, z$2.ZodObject<{
23722
- field: z$2.ZodLiteral<"issueType">;
23723
- value: z$2.ZodString;
23724
23693
  }, z$2.core.$strict>, z$2.ZodObject<{
23725
23694
  field: z$2.ZodLiteral<"baseBranch">;
23726
23695
  value: z$2.ZodString;
@@ -23767,44 +23736,10 @@ export declare const agentTriggerBaseSchema: z$2.ZodObject<{
23767
23736
  }, z$2.core.$strict>, z$2.ZodObject<{
23768
23737
  field: z$2.ZodLiteral<"originEvent">;
23769
23738
  value: z$2.ZodString;
23770
- }, z$2.core.$strict>, z$2.ZodObject<{
23771
- field: z$2.ZodLiteral<"project">;
23772
- value: z$2.ZodString;
23773
- }, z$2.core.$strict>, z$2.ZodObject<{
23774
- field: z$2.ZodLiteral<"projectField">;
23775
- value: z$2.ZodString;
23776
- }, z$2.core.$strict>, z$2.ZodObject<{
23777
- field: z$2.ZodLiteral<"from">;
23778
- value: z$2.ZodNullable<z$2.ZodString>;
23779
- }, z$2.core.$strict>, z$2.ZodObject<{
23780
- field: z$2.ZodLiteral<"to">;
23781
- value: z$2.ZodNullable<z$2.ZodString>;
23782
- }, z$2.core.$strict>, z$2.ZodObject<{
23783
- field: z$2.ZodLiteral<"itemType">;
23784
- value: z$2.ZodEnum<{
23785
- draft: "draft";
23786
- issue: "issue";
23787
- pull_request: "pull_request";
23788
- }>;
23789
- }, z$2.core.$strict>, z$2.ZodObject<{
23790
- field: z$2.ZodLiteral<"prerelease">;
23791
- value: z$2.ZodBoolean;
23792
- }, z$2.core.$strict>, z$2.ZodObject<{
23793
- field: z$2.ZodLiteral<"tag">;
23794
- value: z$2.ZodString;
23795
- }, z$2.core.$strict>, z$2.ZodObject<{
23796
- field: z$2.ZodLiteral<"refType">;
23797
- value: z$2.ZodEnum<{
23798
- branch: "branch";
23799
- tag: "tag";
23800
- }>;
23801
- }, z$2.core.$strict>, z$2.ZodObject<{
23802
- field: z$2.ZodLiteral<"category">;
23803
- value: z$2.ZodString;
23804
23739
  }, z$2.core.$strict>], "field">>>;
23805
23740
  }, z$2.core.$strict>, z$2.ZodTransform<{
23806
23741
  family: "check";
23807
- actions: ("completed" | "rerequested")[];
23742
+ actions: "completed"[];
23808
23743
  repositories: string[];
23809
23744
  sender: GithubTriggerSender;
23810
23745
  conditions: ({
@@ -23819,7 +23754,7 @@ export declare const agentTriggerBaseSchema: z$2.ZodObject<{
23819
23754
  })[];
23820
23755
  } | {
23821
23756
  family: "comment";
23822
- actions: ("created" | "deleted" | "edited")[];
23757
+ actions: "created"[];
23823
23758
  repositories: string[];
23824
23759
  sender: GithubTriggerSender;
23825
23760
  conditions: ({
@@ -23834,73 +23769,8 @@ export declare const agentTriggerBaseSchema: z$2.ZodObject<{
23834
23769
  value: string;
23835
23770
  })[];
23836
23771
  } | {
23837
- family: "discussion";
23838
- actions: ("answered" | "closed" | "commented" | "created" | "labeled")[];
23839
- repositories: string[];
23840
- sender: GithubTriggerSender;
23841
- conditions: ({
23842
- field: "text";
23843
- operator: "contains" | "starts_with";
23844
- value: string;
23845
- } | {
23846
- field: "category";
23847
- value: string;
23848
- } | {
23849
- field: "issueLabels";
23850
- operator: "all" | "any";
23851
- value: string[];
23852
- })[];
23853
- } | {
23854
- family: "issue";
23855
- actions: ("assigned" | "closed" | "demilestoned" | "edited" | "labeled" | "milestoned" | "opened" | "pinned" | "reopened" | "transferred" | "unassigned" | "unlabeled")[];
23856
- repositories: string[];
23857
- sender: GithubTriggerSender;
23858
- conditions: ({
23859
- field: "text";
23860
- operator: "contains" | "starts_with";
23861
- value: string;
23862
- } | {
23863
- field: "issueType";
23864
- value: string;
23865
- } | {
23866
- field: "label";
23867
- value: string;
23868
- } | {
23869
- field: "milestone";
23870
- value: string;
23871
- } | {
23872
- field: "assignees";
23873
- operator: "all" | "any";
23874
- value: string[];
23875
- } | {
23876
- field: "issueLabels";
23877
- operator: "all" | "any";
23878
- value: string[];
23879
- })[];
23880
- } | {
23881
- family: "project_item";
23882
- actions: ("archived" | "created" | "deleted" | "edited" | "restored")[];
23883
- repositories: string[];
23884
- sender: GithubTriggerSender;
23885
- conditions: ({
23886
- field: "project";
23887
- value: string;
23888
- } | {
23889
- field: "projectField";
23890
- value: string;
23891
- } | {
23892
- field: "from";
23893
- value: string | null;
23894
- } | {
23895
- field: "to";
23896
- value: string | null;
23897
- } | {
23898
- field: "itemType";
23899
- value: "draft" | "issue" | "pull_request";
23900
- })[];
23901
- } | {
23902
- family: "pull_request";
23903
- actions: ("assigned" | "closed" | "converted_to_draft" | "edited" | "labeled" | "merged" | "opened" | "ready_for_review" | "reopened" | "review_requested" | "synchronize")[];
23772
+ family: "pull_request";
23773
+ actions: ("closed" | "labeled" | "merged" | "opened" | "ready_for_review" | "synchronize")[];
23904
23774
  repositories: string[];
23905
23775
  sender: GithubTriggerSender;
23906
23776
  conditions: ({
@@ -23912,6 +23782,9 @@ export declare const agentTriggerBaseSchema: z$2.ZodObject<{
23912
23782
  } | {
23913
23783
  field: "headBranch";
23914
23784
  value: string;
23785
+ } | {
23786
+ field: "label";
23787
+ value: string;
23915
23788
  } | {
23916
23789
  field: "prAuthor";
23917
23790
  value: string;
@@ -23938,42 +23811,9 @@ export declare const agentTriggerBaseSchema: z$2.ZodObject<{
23938
23811
  field: "forced";
23939
23812
  value: boolean;
23940
23813
  })[];
23941
- } | {
23942
- family: "ref";
23943
- actions: ("created" | "deleted")[];
23944
- repositories: string[];
23945
- sender: GithubTriggerSender;
23946
- conditions: ({
23947
- field: "branch";
23948
- value: string;
23949
- } | {
23950
- field: "tag";
23951
- value: string;
23952
- } | {
23953
- field: "refType";
23954
- value: "branch" | "tag";
23955
- })[];
23956
- } | {
23957
- family: "release";
23958
- actions: ("created" | "deleted" | "edited" | "prereleased" | "published")[];
23959
- repositories: string[];
23960
- sender: GithubTriggerSender;
23961
- conditions: ({
23962
- field: "tag";
23963
- value: string;
23964
- } | {
23965
- field: "prerelease";
23966
- value: boolean;
23967
- })[];
23968
- } | {
23969
- family: "repository";
23970
- actions: ("archived" | "created" | "forked" | "starred")[];
23971
- repositories: string[];
23972
- sender: GithubTriggerSender;
23973
- conditions: never[];
23974
23814
  } | {
23975
23815
  family: "review";
23976
- actions: ("dismissed" | "edited" | "submitted")[];
23816
+ actions: "submitted"[];
23977
23817
  repositories: string[];
23978
23818
  sender: GithubTriggerSender;
23979
23819
  conditions: ({
@@ -23985,7 +23825,7 @@ export declare const agentTriggerBaseSchema: z$2.ZodObject<{
23985
23825
  })[];
23986
23826
  } | {
23987
23827
  family: "workflow";
23988
- actions: ("completed" | "in_progress" | "requested")[];
23828
+ actions: "completed"[];
23989
23829
  repositories: string[];
23990
23830
  sender: GithubTriggerSender;
23991
23831
  conditions: ({
@@ -24002,7 +23842,7 @@ export declare const agentTriggerBaseSchema: z$2.ZodObject<{
24002
23842
  value: string;
24003
23843
  })[];
24004
23844
  }, {
24005
- family: "check" | "comment" | "discussion" | "issue" | "project_item" | "pull_request" | "push" | "ref" | "release" | "repository" | "review" | "workflow";
23845
+ family: "check" | "comment" | "pull_request" | "push" | "review" | "workflow";
24006
23846
  actions: string[];
24007
23847
  repositories: string[];
24008
23848
  sender: "any" | "human" | "me" | {
@@ -24018,9 +23858,6 @@ export declare const agentTriggerBaseSchema: z$2.ZodObject<{
24018
23858
  } | {
24019
23859
  field: "branch";
24020
23860
  value: string;
24021
- } | {
24022
- field: "category";
24023
- value: string;
24024
23861
  } | {
24025
23862
  field: "changedPaths";
24026
23863
  value: string;
@@ -24039,30 +23876,15 @@ export declare const agentTriggerBaseSchema: z$2.ZodObject<{
24039
23876
  } | {
24040
23877
  field: "issueAuthor";
24041
23878
  value: string;
24042
- } | {
24043
- field: "issueType";
24044
- value: string;
24045
23879
  } | {
24046
23880
  field: "label";
24047
23881
  value: string;
24048
- } | {
24049
- field: "milestone";
24050
- value: string;
24051
23882
  } | {
24052
23883
  field: "originEvent";
24053
23884
  value: string;
24054
23885
  } | {
24055
23886
  field: "prAuthor";
24056
23887
  value: string;
24057
- } | {
24058
- field: "project";
24059
- value: string;
24060
- } | {
24061
- field: "projectField";
24062
- value: string;
24063
- } | {
24064
- field: "tag";
24065
- value: string;
24066
23888
  } | {
24067
23889
  field: "workflowName";
24068
23890
  value: string;
@@ -24072,13 +23894,6 @@ export declare const agentTriggerBaseSchema: z$2.ZodObject<{
24072
23894
  } | {
24073
23895
  field: "forced";
24074
23896
  value: boolean;
24075
- } | {
24076
- field: "prerelease";
24077
- value: boolean;
24078
- } | {
24079
- field: "assignees";
24080
- operator: "all" | "any";
24081
- value: string[];
24082
23897
  } | {
24083
23898
  field: "issueLabels";
24084
23899
  operator: "all" | "any";
@@ -24086,23 +23901,10 @@ export declare const agentTriggerBaseSchema: z$2.ZodObject<{
24086
23901
  } | {
24087
23902
  field: "reviewState";
24088
23903
  value: "approved" | "changes_requested" | "commented";
24089
- } | {
24090
- field: "from";
24091
- value: string | null;
24092
- } | {
24093
- field: "to";
24094
- value: string | null;
24095
- } | {
24096
- field: "itemType";
24097
- value: "draft" | "issue" | "pull_request";
24098
- } | {
24099
- field: "refType";
24100
- value: "branch" | "tag";
24101
23904
  })[];
24102
23905
  }>>, z$2.ZodPipe<z$2.ZodObject<{
24103
23906
  on: z$2.ZodEnum<{
24104
23907
  dm: "dm";
24105
- member_joined: "member_joined";
24106
23908
  mention: "mention";
24107
23909
  message: "message";
24108
23910
  reaction: "reaction";
@@ -24150,13 +23952,6 @@ export declare const agentTriggerBaseSchema: z$2.ZodObject<{
24150
23952
  })[];
24151
23953
  } & {
24152
23954
  reactions?: never;
24153
- }) | ({
24154
- on: "member_joined";
24155
- channels: string[];
24156
- sender: SlackTriggerSender;
24157
- conditions: never[];
24158
- } & {
24159
- reactions?: never;
24160
23955
  }) | ({
24161
23956
  on: "mention";
24162
23957
  channels: string[];
@@ -24196,7 +23991,7 @@ export declare const agentTriggerBaseSchema: z$2.ZodObject<{
24196
23991
  } & {
24197
23992
  reactions?: string[];
24198
23993
  }), {
24199
- on: "dm" | "member_joined" | "mention" | "message" | "reaction";
23994
+ on: "dm" | "mention" | "message" | "reaction";
24200
23995
  channels: string[];
24201
23996
  reactions?: string[] | undefined;
24202
23997
  sender: "any" | "human" | "me" | {
@@ -24225,10 +24020,11 @@ export declare function refineTrigger<T extends TriggerShape>(schema: z$2.ZodTyp
24225
24020
  /** Creation/full-state defaults; the PATCH shape deliberately carries no defaults. */
24226
24021
  export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24227
24022
  name?: string | undefined;
24228
- eventType: "form.submitted" | "github" | "record.created" | "record.deleted" | "record.updated" | "slack" | "webhook";
24023
+ eventType: "form.submitted" | "github" | "record.created" | "record.updated" | "slack" | "webhook";
24229
24024
  objectId?: string | undefined;
24230
24025
  watchedFields?: string[] | undefined;
24231
24026
  debounceMs?: number | undefined;
24027
+ reentry?: number | undefined;
24232
24028
  filter?: {
24233
24029
  combinator: "and" | "or";
24234
24030
  rules: {
@@ -24242,7 +24038,7 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24242
24038
  connectionId?: string | undefined;
24243
24039
  match?: {
24244
24040
  family: "check";
24245
- actions: ("completed" | "rerequested")[];
24041
+ actions: "completed"[];
24246
24042
  repositories: string[];
24247
24043
  sender: GithubTriggerSender;
24248
24044
  conditions: ({
@@ -24257,7 +24053,7 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24257
24053
  })[];
24258
24054
  } | {
24259
24055
  family: "comment";
24260
- actions: ("created" | "deleted" | "edited")[];
24056
+ actions: "created"[];
24261
24057
  repositories: string[];
24262
24058
  sender: GithubTriggerSender;
24263
24059
  conditions: ({
@@ -24271,74 +24067,9 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24271
24067
  field: "prAuthor";
24272
24068
  value: string;
24273
24069
  })[];
24274
- } | {
24275
- family: "discussion";
24276
- actions: ("answered" | "closed" | "commented" | "created" | "labeled")[];
24277
- repositories: string[];
24278
- sender: GithubTriggerSender;
24279
- conditions: ({
24280
- field: "text";
24281
- operator: "contains" | "starts_with";
24282
- value: string;
24283
- } | {
24284
- field: "category";
24285
- value: string;
24286
- } | {
24287
- field: "issueLabels";
24288
- operator: "all" | "any";
24289
- value: string[];
24290
- })[];
24291
- } | {
24292
- family: "issue";
24293
- actions: ("assigned" | "closed" | "demilestoned" | "edited" | "labeled" | "milestoned" | "opened" | "pinned" | "reopened" | "transferred" | "unassigned" | "unlabeled")[];
24294
- repositories: string[];
24295
- sender: GithubTriggerSender;
24296
- conditions: ({
24297
- field: "text";
24298
- operator: "contains" | "starts_with";
24299
- value: string;
24300
- } | {
24301
- field: "issueType";
24302
- value: string;
24303
- } | {
24304
- field: "label";
24305
- value: string;
24306
- } | {
24307
- field: "milestone";
24308
- value: string;
24309
- } | {
24310
- field: "assignees";
24311
- operator: "all" | "any";
24312
- value: string[];
24313
- } | {
24314
- field: "issueLabels";
24315
- operator: "all" | "any";
24316
- value: string[];
24317
- })[];
24318
- } | {
24319
- family: "project_item";
24320
- actions: ("archived" | "created" | "deleted" | "edited" | "restored")[];
24321
- repositories: string[];
24322
- sender: GithubTriggerSender;
24323
- conditions: ({
24324
- field: "project";
24325
- value: string;
24326
- } | {
24327
- field: "projectField";
24328
- value: string;
24329
- } | {
24330
- field: "from";
24331
- value: string | null;
24332
- } | {
24333
- field: "to";
24334
- value: string | null;
24335
- } | {
24336
- field: "itemType";
24337
- value: "draft" | "issue" | "pull_request";
24338
- })[];
24339
24070
  } | {
24340
24071
  family: "pull_request";
24341
- 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")[];
24342
24073
  repositories: string[];
24343
24074
  sender: GithubTriggerSender;
24344
24075
  conditions: ({
@@ -24350,6 +24081,9 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24350
24081
  } | {
24351
24082
  field: "headBranch";
24352
24083
  value: string;
24084
+ } | {
24085
+ field: "label";
24086
+ value: string;
24353
24087
  } | {
24354
24088
  field: "prAuthor";
24355
24089
  value: string;
@@ -24376,42 +24110,9 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24376
24110
  field: "forced";
24377
24111
  value: boolean;
24378
24112
  })[];
24379
- } | {
24380
- family: "ref";
24381
- actions: ("created" | "deleted")[];
24382
- repositories: string[];
24383
- sender: GithubTriggerSender;
24384
- conditions: ({
24385
- field: "branch";
24386
- value: string;
24387
- } | {
24388
- field: "tag";
24389
- value: string;
24390
- } | {
24391
- field: "refType";
24392
- value: "branch" | "tag";
24393
- })[];
24394
- } | {
24395
- family: "release";
24396
- actions: ("created" | "deleted" | "edited" | "prereleased" | "published")[];
24397
- repositories: string[];
24398
- sender: GithubTriggerSender;
24399
- conditions: ({
24400
- field: "tag";
24401
- value: string;
24402
- } | {
24403
- field: "prerelease";
24404
- value: boolean;
24405
- })[];
24406
- } | {
24407
- family: "repository";
24408
- actions: ("archived" | "created" | "forked" | "starred")[];
24409
- repositories: string[];
24410
- sender: GithubTriggerSender;
24411
- conditions: never[];
24412
24113
  } | {
24413
24114
  family: "review";
24414
- actions: ("dismissed" | "edited" | "submitted")[];
24115
+ actions: "submitted"[];
24415
24116
  repositories: string[];
24416
24117
  sender: GithubTriggerSender;
24417
24118
  conditions: ({
@@ -24423,7 +24124,7 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24423
24124
  })[];
24424
24125
  } | {
24425
24126
  family: "workflow";
24426
- actions: ("completed" | "in_progress" | "requested")[];
24127
+ actions: "completed"[];
24427
24128
  repositories: string[];
24428
24129
  sender: GithubTriggerSender;
24429
24130
  conditions: ({
@@ -24453,13 +24154,6 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24453
24154
  })[];
24454
24155
  } & {
24455
24156
  reactions?: never;
24456
- }) | ({
24457
- on: "member_joined";
24458
- channels: string[];
24459
- sender: SlackTriggerSender;
24460
- conditions: never[];
24461
- } & {
24462
- reactions?: never;
24463
24157
  }) | ({
24464
24158
  on: "mention";
24465
24159
  channels: string[];
@@ -24503,10 +24197,11 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24503
24197
  enabled?: boolean | undefined;
24504
24198
  }, unknown, z$2.core.$ZodTypeInternals<{
24505
24199
  name?: string | undefined;
24506
- eventType: "form.submitted" | "github" | "record.created" | "record.deleted" | "record.updated" | "slack" | "webhook";
24200
+ eventType: "form.submitted" | "github" | "record.created" | "record.updated" | "slack" | "webhook";
24507
24201
  objectId?: string | undefined;
24508
24202
  watchedFields?: string[] | undefined;
24509
24203
  debounceMs?: number | undefined;
24204
+ reentry?: number | undefined;
24510
24205
  filter?: {
24511
24206
  combinator: "and" | "or";
24512
24207
  rules: {
@@ -24520,7 +24215,7 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24520
24215
  connectionId?: string | undefined;
24521
24216
  match?: {
24522
24217
  family: "check";
24523
- actions: ("completed" | "rerequested")[];
24218
+ actions: "completed"[];
24524
24219
  repositories: string[];
24525
24220
  sender: GithubTriggerSender;
24526
24221
  conditions: ({
@@ -24535,7 +24230,7 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24535
24230
  })[];
24536
24231
  } | {
24537
24232
  family: "comment";
24538
- actions: ("created" | "deleted" | "edited")[];
24233
+ actions: "created"[];
24539
24234
  repositories: string[];
24540
24235
  sender: GithubTriggerSender;
24541
24236
  conditions: ({
@@ -24549,74 +24244,9 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24549
24244
  field: "prAuthor";
24550
24245
  value: string;
24551
24246
  })[];
24552
- } | {
24553
- family: "discussion";
24554
- actions: ("answered" | "closed" | "commented" | "created" | "labeled")[];
24555
- repositories: string[];
24556
- sender: GithubTriggerSender;
24557
- conditions: ({
24558
- field: "text";
24559
- operator: "contains" | "starts_with";
24560
- value: string;
24561
- } | {
24562
- field: "category";
24563
- value: string;
24564
- } | {
24565
- field: "issueLabels";
24566
- operator: "all" | "any";
24567
- value: string[];
24568
- })[];
24569
- } | {
24570
- family: "issue";
24571
- actions: ("assigned" | "closed" | "demilestoned" | "edited" | "labeled" | "milestoned" | "opened" | "pinned" | "reopened" | "transferred" | "unassigned" | "unlabeled")[];
24572
- repositories: string[];
24573
- sender: GithubTriggerSender;
24574
- conditions: ({
24575
- field: "text";
24576
- operator: "contains" | "starts_with";
24577
- value: string;
24578
- } | {
24579
- field: "issueType";
24580
- value: string;
24581
- } | {
24582
- field: "label";
24583
- value: string;
24584
- } | {
24585
- field: "milestone";
24586
- value: string;
24587
- } | {
24588
- field: "assignees";
24589
- operator: "all" | "any";
24590
- value: string[];
24591
- } | {
24592
- field: "issueLabels";
24593
- operator: "all" | "any";
24594
- value: string[];
24595
- })[];
24596
- } | {
24597
- family: "project_item";
24598
- actions: ("archived" | "created" | "deleted" | "edited" | "restored")[];
24599
- repositories: string[];
24600
- sender: GithubTriggerSender;
24601
- conditions: ({
24602
- field: "project";
24603
- value: string;
24604
- } | {
24605
- field: "projectField";
24606
- value: string;
24607
- } | {
24608
- field: "from";
24609
- value: string | null;
24610
- } | {
24611
- field: "to";
24612
- value: string | null;
24613
- } | {
24614
- field: "itemType";
24615
- value: "draft" | "issue" | "pull_request";
24616
- })[];
24617
24247
  } | {
24618
24248
  family: "pull_request";
24619
- 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")[];
24620
24250
  repositories: string[];
24621
24251
  sender: GithubTriggerSender;
24622
24252
  conditions: ({
@@ -24628,6 +24258,9 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24628
24258
  } | {
24629
24259
  field: "headBranch";
24630
24260
  value: string;
24261
+ } | {
24262
+ field: "label";
24263
+ value: string;
24631
24264
  } | {
24632
24265
  field: "prAuthor";
24633
24266
  value: string;
@@ -24654,42 +24287,9 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24654
24287
  field: "forced";
24655
24288
  value: boolean;
24656
24289
  })[];
24657
- } | {
24658
- family: "ref";
24659
- actions: ("created" | "deleted")[];
24660
- repositories: string[];
24661
- sender: GithubTriggerSender;
24662
- conditions: ({
24663
- field: "branch";
24664
- value: string;
24665
- } | {
24666
- field: "tag";
24667
- value: string;
24668
- } | {
24669
- field: "refType";
24670
- value: "branch" | "tag";
24671
- })[];
24672
- } | {
24673
- family: "release";
24674
- actions: ("created" | "deleted" | "edited" | "prereleased" | "published")[];
24675
- repositories: string[];
24676
- sender: GithubTriggerSender;
24677
- conditions: ({
24678
- field: "tag";
24679
- value: string;
24680
- } | {
24681
- field: "prerelease";
24682
- value: boolean;
24683
- })[];
24684
- } | {
24685
- family: "repository";
24686
- actions: ("archived" | "created" | "forked" | "starred")[];
24687
- repositories: string[];
24688
- sender: GithubTriggerSender;
24689
- conditions: never[];
24690
24290
  } | {
24691
24291
  family: "review";
24692
- actions: ("dismissed" | "edited" | "submitted")[];
24292
+ actions: "submitted"[];
24693
24293
  repositories: string[];
24694
24294
  sender: GithubTriggerSender;
24695
24295
  conditions: ({
@@ -24701,7 +24301,7 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24701
24301
  })[];
24702
24302
  } | {
24703
24303
  family: "workflow";
24704
- actions: ("completed" | "in_progress" | "requested")[];
24304
+ actions: "completed"[];
24705
24305
  repositories: string[];
24706
24306
  sender: GithubTriggerSender;
24707
24307
  conditions: ({
@@ -24731,13 +24331,6 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24731
24331
  })[];
24732
24332
  } & {
24733
24333
  reactions?: never;
24734
- }) | ({
24735
- on: "member_joined";
24736
- channels: string[];
24737
- sender: SlackTriggerSender;
24738
- conditions: never[];
24739
- } & {
24740
- reactions?: never;
24741
24334
  }) | ({
24742
24335
  on: "mention";
24743
24336
  channels: string[];
@@ -24781,10 +24374,11 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24781
24374
  enabled?: boolean | undefined;
24782
24375
  }, unknown>>, z$2.ZodTransform<{
24783
24376
  name?: string | undefined;
24784
- eventType: "form.submitted" | "github" | "record.created" | "record.deleted" | "record.updated" | "slack" | "webhook";
24377
+ eventType: "form.submitted" | "github" | "record.created" | "record.updated" | "slack" | "webhook";
24785
24378
  objectId?: string | undefined;
24786
24379
  watchedFields?: string[] | undefined;
24787
24380
  debounceMs?: number | undefined;
24381
+ reentry?: number | undefined;
24788
24382
  filter?: {
24789
24383
  combinator: "and" | "or";
24790
24384
  rules: {
@@ -24798,103 +24392,38 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24798
24392
  connectionId?: string | undefined;
24799
24393
  match?: {
24800
24394
  family: "check";
24801
- actions: ("completed" | "rerequested")[];
24802
- repositories: string[];
24803
- sender: GithubTriggerSender;
24804
- conditions: ({
24805
- field: "checkApp";
24806
- value: string;
24807
- } | {
24808
- field: "checkName";
24809
- value: string;
24810
- } | {
24811
- field: "conclusion";
24812
- value: string;
24813
- })[];
24814
- } | {
24815
- family: "comment";
24816
- actions: ("created" | "deleted" | "edited")[];
24817
- repositories: string[];
24818
- sender: GithubTriggerSender;
24819
- conditions: ({
24820
- field: "text";
24821
- operator: "contains" | "starts_with";
24822
- value: string;
24823
- } | {
24824
- field: "issueAuthor";
24825
- value: string;
24826
- } | {
24827
- field: "prAuthor";
24828
- value: string;
24829
- })[];
24830
- } | {
24831
- family: "discussion";
24832
- actions: ("answered" | "closed" | "commented" | "created" | "labeled")[];
24833
- repositories: string[];
24834
- sender: GithubTriggerSender;
24835
- conditions: ({
24836
- field: "text";
24837
- operator: "contains" | "starts_with";
24838
- value: string;
24839
- } | {
24840
- field: "category";
24841
- value: string;
24842
- } | {
24843
- field: "issueLabels";
24844
- operator: "all" | "any";
24845
- value: string[];
24846
- })[];
24847
- } | {
24848
- family: "issue";
24849
- actions: ("assigned" | "closed" | "demilestoned" | "edited" | "labeled" | "milestoned" | "opened" | "pinned" | "reopened" | "transferred" | "unassigned" | "unlabeled")[];
24850
- repositories: string[];
24851
- sender: GithubTriggerSender;
24852
- conditions: ({
24853
- field: "text";
24854
- operator: "contains" | "starts_with";
24855
- value: string;
24856
- } | {
24857
- field: "issueType";
24395
+ actions: "completed"[];
24396
+ repositories: string[];
24397
+ sender: GithubTriggerSender;
24398
+ conditions: ({
24399
+ field: "checkApp";
24858
24400
  value: string;
24859
24401
  } | {
24860
- field: "label";
24402
+ field: "checkName";
24861
24403
  value: string;
24862
24404
  } | {
24863
- field: "milestone";
24405
+ field: "conclusion";
24864
24406
  value: string;
24865
- } | {
24866
- field: "assignees";
24867
- operator: "all" | "any";
24868
- value: string[];
24869
- } | {
24870
- field: "issueLabels";
24871
- operator: "all" | "any";
24872
- value: string[];
24873
24407
  })[];
24874
24408
  } | {
24875
- family: "project_item";
24876
- actions: ("archived" | "created" | "deleted" | "edited" | "restored")[];
24409
+ family: "comment";
24410
+ actions: "created"[];
24877
24411
  repositories: string[];
24878
24412
  sender: GithubTriggerSender;
24879
24413
  conditions: ({
24880
- field: "project";
24414
+ field: "text";
24415
+ operator: "contains" | "starts_with";
24881
24416
  value: string;
24882
24417
  } | {
24883
- field: "projectField";
24418
+ field: "issueAuthor";
24884
24419
  value: string;
24885
24420
  } | {
24886
- field: "from";
24887
- value: string | null;
24888
- } | {
24889
- field: "to";
24890
- value: string | null;
24891
- } | {
24892
- field: "itemType";
24893
- value: "draft" | "issue" | "pull_request";
24421
+ field: "prAuthor";
24422
+ value: string;
24894
24423
  })[];
24895
24424
  } | {
24896
24425
  family: "pull_request";
24897
- 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")[];
24898
24427
  repositories: string[];
24899
24428
  sender: GithubTriggerSender;
24900
24429
  conditions: ({
@@ -24906,6 +24435,9 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24906
24435
  } | {
24907
24436
  field: "headBranch";
24908
24437
  value: string;
24438
+ } | {
24439
+ field: "label";
24440
+ value: string;
24909
24441
  } | {
24910
24442
  field: "prAuthor";
24911
24443
  value: string;
@@ -24932,42 +24464,9 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24932
24464
  field: "forced";
24933
24465
  value: boolean;
24934
24466
  })[];
24935
- } | {
24936
- family: "ref";
24937
- actions: ("created" | "deleted")[];
24938
- repositories: string[];
24939
- sender: GithubTriggerSender;
24940
- conditions: ({
24941
- field: "branch";
24942
- value: string;
24943
- } | {
24944
- field: "tag";
24945
- value: string;
24946
- } | {
24947
- field: "refType";
24948
- value: "branch" | "tag";
24949
- })[];
24950
- } | {
24951
- family: "release";
24952
- actions: ("created" | "deleted" | "edited" | "prereleased" | "published")[];
24953
- repositories: string[];
24954
- sender: GithubTriggerSender;
24955
- conditions: ({
24956
- field: "tag";
24957
- value: string;
24958
- } | {
24959
- field: "prerelease";
24960
- value: boolean;
24961
- })[];
24962
- } | {
24963
- family: "repository";
24964
- actions: ("archived" | "created" | "forked" | "starred")[];
24965
- repositories: string[];
24966
- sender: GithubTriggerSender;
24967
- conditions: never[];
24968
24467
  } | {
24969
24468
  family: "review";
24970
- actions: ("dismissed" | "edited" | "submitted")[];
24469
+ actions: "submitted"[];
24971
24470
  repositories: string[];
24972
24471
  sender: GithubTriggerSender;
24973
24472
  conditions: ({
@@ -24979,7 +24478,7 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
24979
24478
  })[];
24980
24479
  } | {
24981
24480
  family: "workflow";
24982
- actions: ("completed" | "in_progress" | "requested")[];
24481
+ actions: "completed"[];
24983
24482
  repositories: string[];
24984
24483
  sender: GithubTriggerSender;
24985
24484
  conditions: ({
@@ -25009,13 +24508,6 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
25009
24508
  })[];
25010
24509
  } & {
25011
24510
  reactions?: never;
25012
- }) | ({
25013
- on: "member_joined";
25014
- channels: string[];
25015
- sender: SlackTriggerSender;
25016
- conditions: never[];
25017
- } & {
25018
- reactions?: never;
25019
24511
  }) | ({
25020
24512
  on: "mention";
25021
24513
  channels: string[];
@@ -25059,10 +24551,11 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
25059
24551
  enabled?: boolean | undefined;
25060
24552
  }, {
25061
24553
  name?: string | undefined;
25062
- eventType: "form.submitted" | "github" | "record.created" | "record.deleted" | "record.updated" | "slack" | "webhook";
24554
+ eventType: "form.submitted" | "github" | "record.created" | "record.updated" | "slack" | "webhook";
25063
24555
  objectId?: string | undefined;
25064
24556
  watchedFields?: string[] | undefined;
25065
24557
  debounceMs?: number | undefined;
24558
+ reentry?: number | undefined;
25066
24559
  filter?: {
25067
24560
  combinator: "and" | "or";
25068
24561
  rules: {
@@ -25076,7 +24569,7 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
25076
24569
  connectionId?: string | undefined;
25077
24570
  match?: {
25078
24571
  family: "check";
25079
- actions: ("completed" | "rerequested")[];
24572
+ actions: "completed"[];
25080
24573
  repositories: string[];
25081
24574
  sender: GithubTriggerSender;
25082
24575
  conditions: ({
@@ -25091,7 +24584,7 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
25091
24584
  })[];
25092
24585
  } | {
25093
24586
  family: "comment";
25094
- actions: ("created" | "deleted" | "edited")[];
24587
+ actions: "created"[];
25095
24588
  repositories: string[];
25096
24589
  sender: GithubTriggerSender;
25097
24590
  conditions: ({
@@ -25105,74 +24598,9 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
25105
24598
  field: "prAuthor";
25106
24599
  value: string;
25107
24600
  })[];
25108
- } | {
25109
- family: "discussion";
25110
- actions: ("answered" | "closed" | "commented" | "created" | "labeled")[];
25111
- repositories: string[];
25112
- sender: GithubTriggerSender;
25113
- conditions: ({
25114
- field: "text";
25115
- operator: "contains" | "starts_with";
25116
- value: string;
25117
- } | {
25118
- field: "category";
25119
- value: string;
25120
- } | {
25121
- field: "issueLabels";
25122
- operator: "all" | "any";
25123
- value: string[];
25124
- })[];
25125
- } | {
25126
- family: "issue";
25127
- actions: ("assigned" | "closed" | "demilestoned" | "edited" | "labeled" | "milestoned" | "opened" | "pinned" | "reopened" | "transferred" | "unassigned" | "unlabeled")[];
25128
- repositories: string[];
25129
- sender: GithubTriggerSender;
25130
- conditions: ({
25131
- field: "text";
25132
- operator: "contains" | "starts_with";
25133
- value: string;
25134
- } | {
25135
- field: "issueType";
25136
- value: string;
25137
- } | {
25138
- field: "label";
25139
- value: string;
25140
- } | {
25141
- field: "milestone";
25142
- value: string;
25143
- } | {
25144
- field: "assignees";
25145
- operator: "all" | "any";
25146
- value: string[];
25147
- } | {
25148
- field: "issueLabels";
25149
- operator: "all" | "any";
25150
- value: string[];
25151
- })[];
25152
- } | {
25153
- family: "project_item";
25154
- actions: ("archived" | "created" | "deleted" | "edited" | "restored")[];
25155
- repositories: string[];
25156
- sender: GithubTriggerSender;
25157
- conditions: ({
25158
- field: "project";
25159
- value: string;
25160
- } | {
25161
- field: "projectField";
25162
- value: string;
25163
- } | {
25164
- field: "from";
25165
- value: string | null;
25166
- } | {
25167
- field: "to";
25168
- value: string | null;
25169
- } | {
25170
- field: "itemType";
25171
- value: "draft" | "issue" | "pull_request";
25172
- })[];
25173
24601
  } | {
25174
24602
  family: "pull_request";
25175
- 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")[];
25176
24604
  repositories: string[];
25177
24605
  sender: GithubTriggerSender;
25178
24606
  conditions: ({
@@ -25184,6 +24612,9 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
25184
24612
  } | {
25185
24613
  field: "headBranch";
25186
24614
  value: string;
24615
+ } | {
24616
+ field: "label";
24617
+ value: string;
25187
24618
  } | {
25188
24619
  field: "prAuthor";
25189
24620
  value: string;
@@ -25210,42 +24641,9 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
25210
24641
  field: "forced";
25211
24642
  value: boolean;
25212
24643
  })[];
25213
- } | {
25214
- family: "ref";
25215
- actions: ("created" | "deleted")[];
25216
- repositories: string[];
25217
- sender: GithubTriggerSender;
25218
- conditions: ({
25219
- field: "branch";
25220
- value: string;
25221
- } | {
25222
- field: "tag";
25223
- value: string;
25224
- } | {
25225
- field: "refType";
25226
- value: "branch" | "tag";
25227
- })[];
25228
- } | {
25229
- family: "release";
25230
- actions: ("created" | "deleted" | "edited" | "prereleased" | "published")[];
25231
- repositories: string[];
25232
- sender: GithubTriggerSender;
25233
- conditions: ({
25234
- field: "tag";
25235
- value: string;
25236
- } | {
25237
- field: "prerelease";
25238
- value: boolean;
25239
- })[];
25240
- } | {
25241
- family: "repository";
25242
- actions: ("archived" | "created" | "forked" | "starred")[];
25243
- repositories: string[];
25244
- sender: GithubTriggerSender;
25245
- conditions: never[];
25246
24644
  } | {
25247
24645
  family: "review";
25248
- actions: ("dismissed" | "edited" | "submitted")[];
24646
+ actions: "submitted"[];
25249
24647
  repositories: string[];
25250
24648
  sender: GithubTriggerSender;
25251
24649
  conditions: ({
@@ -25257,7 +24655,7 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
25257
24655
  })[];
25258
24656
  } | {
25259
24657
  family: "workflow";
25260
- actions: ("completed" | "in_progress" | "requested")[];
24658
+ actions: "completed"[];
25261
24659
  repositories: string[];
25262
24660
  sender: GithubTriggerSender;
25263
24661
  conditions: ({
@@ -25287,13 +24685,6 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
25287
24685
  })[];
25288
24686
  } & {
25289
24687
  reactions?: never;
25290
- }) | ({
25291
- on: "member_joined";
25292
- channels: string[];
25293
- sender: SlackTriggerSender;
25294
- conditions: never[];
25295
- } & {
25296
- reactions?: never;
25297
24688
  }) | ({
25298
24689
  on: "mention";
25299
24690
  channels: string[];
@@ -25342,7 +24733,6 @@ export declare const agentTriggerPatchSchema: z$2.ZodObject<{
25342
24733
  "form.submitted": "form.submitted";
25343
24734
  github: "github";
25344
24735
  "record.created": "record.created";
25345
- "record.deleted": "record.deleted";
25346
24736
  "record.updated": "record.updated";
25347
24737
  slack: "slack";
25348
24738
  webhook: "webhook";
@@ -25350,6 +24740,7 @@ export declare const agentTriggerPatchSchema: z$2.ZodObject<{
25350
24740
  objectId: z$2.ZodOptional<z$2.ZodOptional<z$2.ZodGUID>>;
25351
24741
  watchedFields: z$2.ZodOptional<z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>>;
25352
24742
  debounceMs: z$2.ZodOptional<z$2.ZodOptional<z$2.ZodNumber>>;
24743
+ reentry: z$2.ZodOptional<z$2.ZodOptional<z$2.ZodNumber>>;
25353
24744
  filter: z$2.ZodOptional<z$2.ZodOptional<z$2.ZodObject<{
25354
24745
  combinator: z$2.ZodDefault<z$2.ZodEnum<{
25355
24746
  and: "and";
@@ -25368,14 +24759,8 @@ export declare const agentTriggerPatchSchema: z$2.ZodObject<{
25368
24759
  family: z$2.ZodEnum<{
25369
24760
  check: "check";
25370
24761
  comment: "comment";
25371
- discussion: "discussion";
25372
- issue: "issue";
25373
- project_item: "project_item";
25374
24762
  pull_request: "pull_request";
25375
24763
  push: "push";
25376
- ref: "ref";
25377
- release: "release";
25378
- repository: "repository";
25379
24764
  review: "review";
25380
24765
  workflow: "workflow";
25381
24766
  }>;
@@ -25405,19 +24790,6 @@ export declare const agentTriggerPatchSchema: z$2.ZodObject<{
25405
24790
  any: "any";
25406
24791
  }>>;
25407
24792
  value: z$2.ZodArray<z$2.ZodString>;
25408
- }, z$2.core.$strict>, z$2.ZodObject<{
25409
- field: z$2.ZodLiteral<"assignees">;
25410
- operator: z$2.ZodDefault<z$2.ZodEnum<{
25411
- all: "all";
25412
- any: "any";
25413
- }>>;
25414
- value: z$2.ZodArray<z$2.ZodString>;
25415
- }, z$2.core.$strict>, z$2.ZodObject<{
25416
- field: z$2.ZodLiteral<"milestone">;
25417
- value: z$2.ZodString;
25418
- }, z$2.core.$strict>, z$2.ZodObject<{
25419
- field: z$2.ZodLiteral<"issueType">;
25420
- value: z$2.ZodString;
25421
24793
  }, z$2.core.$strict>, z$2.ZodObject<{
25422
24794
  field: z$2.ZodLiteral<"baseBranch">;
25423
24795
  value: z$2.ZodString;
@@ -25464,44 +24836,10 @@ export declare const agentTriggerPatchSchema: z$2.ZodObject<{
25464
24836
  }, z$2.core.$strict>, z$2.ZodObject<{
25465
24837
  field: z$2.ZodLiteral<"originEvent">;
25466
24838
  value: z$2.ZodString;
25467
- }, z$2.core.$strict>, z$2.ZodObject<{
25468
- field: z$2.ZodLiteral<"project">;
25469
- value: z$2.ZodString;
25470
- }, z$2.core.$strict>, z$2.ZodObject<{
25471
- field: z$2.ZodLiteral<"projectField">;
25472
- value: z$2.ZodString;
25473
- }, z$2.core.$strict>, z$2.ZodObject<{
25474
- field: z$2.ZodLiteral<"from">;
25475
- value: z$2.ZodNullable<z$2.ZodString>;
25476
- }, z$2.core.$strict>, z$2.ZodObject<{
25477
- field: z$2.ZodLiteral<"to">;
25478
- value: z$2.ZodNullable<z$2.ZodString>;
25479
- }, z$2.core.$strict>, z$2.ZodObject<{
25480
- field: z$2.ZodLiteral<"itemType">;
25481
- value: z$2.ZodEnum<{
25482
- draft: "draft";
25483
- issue: "issue";
25484
- pull_request: "pull_request";
25485
- }>;
25486
- }, z$2.core.$strict>, z$2.ZodObject<{
25487
- field: z$2.ZodLiteral<"prerelease">;
25488
- value: z$2.ZodBoolean;
25489
- }, z$2.core.$strict>, z$2.ZodObject<{
25490
- field: z$2.ZodLiteral<"tag">;
25491
- value: z$2.ZodString;
25492
- }, z$2.core.$strict>, z$2.ZodObject<{
25493
- field: z$2.ZodLiteral<"refType">;
25494
- value: z$2.ZodEnum<{
25495
- branch: "branch";
25496
- tag: "tag";
25497
- }>;
25498
- }, z$2.core.$strict>, z$2.ZodObject<{
25499
- field: z$2.ZodLiteral<"category">;
25500
- value: z$2.ZodString;
25501
24839
  }, z$2.core.$strict>], "field">>>;
25502
24840
  }, z$2.core.$strict>, z$2.ZodTransform<{
25503
24841
  family: "check";
25504
- actions: ("completed" | "rerequested")[];
24842
+ actions: "completed"[];
25505
24843
  repositories: string[];
25506
24844
  sender: GithubTriggerSender;
25507
24845
  conditions: ({
@@ -25516,7 +24854,7 @@ export declare const agentTriggerPatchSchema: z$2.ZodObject<{
25516
24854
  })[];
25517
24855
  } | {
25518
24856
  family: "comment";
25519
- actions: ("created" | "deleted" | "edited")[];
24857
+ actions: "created"[];
25520
24858
  repositories: string[];
25521
24859
  sender: GithubTriggerSender;
25522
24860
  conditions: ({
@@ -25530,74 +24868,9 @@ export declare const agentTriggerPatchSchema: z$2.ZodObject<{
25530
24868
  field: "prAuthor";
25531
24869
  value: string;
25532
24870
  })[];
25533
- } | {
25534
- family: "discussion";
25535
- actions: ("answered" | "closed" | "commented" | "created" | "labeled")[];
25536
- repositories: string[];
25537
- sender: GithubTriggerSender;
25538
- conditions: ({
25539
- field: "text";
25540
- operator: "contains" | "starts_with";
25541
- value: string;
25542
- } | {
25543
- field: "category";
25544
- value: string;
25545
- } | {
25546
- field: "issueLabels";
25547
- operator: "all" | "any";
25548
- value: string[];
25549
- })[];
25550
- } | {
25551
- family: "issue";
25552
- actions: ("assigned" | "closed" | "demilestoned" | "edited" | "labeled" | "milestoned" | "opened" | "pinned" | "reopened" | "transferred" | "unassigned" | "unlabeled")[];
25553
- repositories: string[];
25554
- sender: GithubTriggerSender;
25555
- conditions: ({
25556
- field: "text";
25557
- operator: "contains" | "starts_with";
25558
- value: string;
25559
- } | {
25560
- field: "issueType";
25561
- value: string;
25562
- } | {
25563
- field: "label";
25564
- value: string;
25565
- } | {
25566
- field: "milestone";
25567
- value: string;
25568
- } | {
25569
- field: "assignees";
25570
- operator: "all" | "any";
25571
- value: string[];
25572
- } | {
25573
- field: "issueLabels";
25574
- operator: "all" | "any";
25575
- value: string[];
25576
- })[];
25577
- } | {
25578
- family: "project_item";
25579
- actions: ("archived" | "created" | "deleted" | "edited" | "restored")[];
25580
- repositories: string[];
25581
- sender: GithubTriggerSender;
25582
- conditions: ({
25583
- field: "project";
25584
- value: string;
25585
- } | {
25586
- field: "projectField";
25587
- value: string;
25588
- } | {
25589
- field: "from";
25590
- value: string | null;
25591
- } | {
25592
- field: "to";
25593
- value: string | null;
25594
- } | {
25595
- field: "itemType";
25596
- value: "draft" | "issue" | "pull_request";
25597
- })[];
25598
24871
  } | {
25599
24872
  family: "pull_request";
25600
- 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")[];
25601
24874
  repositories: string[];
25602
24875
  sender: GithubTriggerSender;
25603
24876
  conditions: ({
@@ -25609,6 +24882,9 @@ export declare const agentTriggerPatchSchema: z$2.ZodObject<{
25609
24882
  } | {
25610
24883
  field: "headBranch";
25611
24884
  value: string;
24885
+ } | {
24886
+ field: "label";
24887
+ value: string;
25612
24888
  } | {
25613
24889
  field: "prAuthor";
25614
24890
  value: string;
@@ -25635,42 +24911,9 @@ export declare const agentTriggerPatchSchema: z$2.ZodObject<{
25635
24911
  field: "forced";
25636
24912
  value: boolean;
25637
24913
  })[];
25638
- } | {
25639
- family: "ref";
25640
- actions: ("created" | "deleted")[];
25641
- repositories: string[];
25642
- sender: GithubTriggerSender;
25643
- conditions: ({
25644
- field: "branch";
25645
- value: string;
25646
- } | {
25647
- field: "tag";
25648
- value: string;
25649
- } | {
25650
- field: "refType";
25651
- value: "branch" | "tag";
25652
- })[];
25653
- } | {
25654
- family: "release";
25655
- actions: ("created" | "deleted" | "edited" | "prereleased" | "published")[];
25656
- repositories: string[];
25657
- sender: GithubTriggerSender;
25658
- conditions: ({
25659
- field: "tag";
25660
- value: string;
25661
- } | {
25662
- field: "prerelease";
25663
- value: boolean;
25664
- })[];
25665
- } | {
25666
- family: "repository";
25667
- actions: ("archived" | "created" | "forked" | "starred")[];
25668
- repositories: string[];
25669
- sender: GithubTriggerSender;
25670
- conditions: never[];
25671
24914
  } | {
25672
24915
  family: "review";
25673
- actions: ("dismissed" | "edited" | "submitted")[];
24916
+ actions: "submitted"[];
25674
24917
  repositories: string[];
25675
24918
  sender: GithubTriggerSender;
25676
24919
  conditions: ({
@@ -25682,7 +24925,7 @@ export declare const agentTriggerPatchSchema: z$2.ZodObject<{
25682
24925
  })[];
25683
24926
  } | {
25684
24927
  family: "workflow";
25685
- actions: ("completed" | "in_progress" | "requested")[];
24928
+ actions: "completed"[];
25686
24929
  repositories: string[];
25687
24930
  sender: GithubTriggerSender;
25688
24931
  conditions: ({
@@ -25699,7 +24942,7 @@ export declare const agentTriggerPatchSchema: z$2.ZodObject<{
25699
24942
  value: string;
25700
24943
  })[];
25701
24944
  }, {
25702
- family: "check" | "comment" | "discussion" | "issue" | "project_item" | "pull_request" | "push" | "ref" | "release" | "repository" | "review" | "workflow";
24945
+ family: "check" | "comment" | "pull_request" | "push" | "review" | "workflow";
25703
24946
  actions: string[];
25704
24947
  repositories: string[];
25705
24948
  sender: "any" | "human" | "me" | {
@@ -25715,9 +24958,6 @@ export declare const agentTriggerPatchSchema: z$2.ZodObject<{
25715
24958
  } | {
25716
24959
  field: "branch";
25717
24960
  value: string;
25718
- } | {
25719
- field: "category";
25720
- value: string;
25721
24961
  } | {
25722
24962
  field: "changedPaths";
25723
24963
  value: string;
@@ -25736,30 +24976,15 @@ export declare const agentTriggerPatchSchema: z$2.ZodObject<{
25736
24976
  } | {
25737
24977
  field: "issueAuthor";
25738
24978
  value: string;
25739
- } | {
25740
- field: "issueType";
25741
- value: string;
25742
24979
  } | {
25743
24980
  field: "label";
25744
24981
  value: string;
25745
- } | {
25746
- field: "milestone";
25747
- value: string;
25748
24982
  } | {
25749
24983
  field: "originEvent";
25750
24984
  value: string;
25751
24985
  } | {
25752
24986
  field: "prAuthor";
25753
24987
  value: string;
25754
- } | {
25755
- field: "project";
25756
- value: string;
25757
- } | {
25758
- field: "projectField";
25759
- value: string;
25760
- } | {
25761
- field: "tag";
25762
- value: string;
25763
24988
  } | {
25764
24989
  field: "workflowName";
25765
24990
  value: string;
@@ -25769,13 +24994,6 @@ export declare const agentTriggerPatchSchema: z$2.ZodObject<{
25769
24994
  } | {
25770
24995
  field: "forced";
25771
24996
  value: boolean;
25772
- } | {
25773
- field: "prerelease";
25774
- value: boolean;
25775
- } | {
25776
- field: "assignees";
25777
- operator: "all" | "any";
25778
- value: string[];
25779
24997
  } | {
25780
24998
  field: "issueLabels";
25781
24999
  operator: "all" | "any";
@@ -25783,23 +25001,10 @@ export declare const agentTriggerPatchSchema: z$2.ZodObject<{
25783
25001
  } | {
25784
25002
  field: "reviewState";
25785
25003
  value: "approved" | "changes_requested" | "commented";
25786
- } | {
25787
- field: "from";
25788
- value: string | null;
25789
- } | {
25790
- field: "to";
25791
- value: string | null;
25792
- } | {
25793
- field: "itemType";
25794
- value: "draft" | "issue" | "pull_request";
25795
- } | {
25796
- field: "refType";
25797
- value: "branch" | "tag";
25798
25004
  })[];
25799
25005
  }>>, z$2.ZodPipe<z$2.ZodObject<{
25800
25006
  on: z$2.ZodEnum<{
25801
25007
  dm: "dm";
25802
- member_joined: "member_joined";
25803
25008
  mention: "mention";
25804
25009
  message: "message";
25805
25010
  reaction: "reaction";
@@ -25847,13 +25052,6 @@ export declare const agentTriggerPatchSchema: z$2.ZodObject<{
25847
25052
  })[];
25848
25053
  } & {
25849
25054
  reactions?: never;
25850
- }) | ({
25851
- on: "member_joined";
25852
- channels: string[];
25853
- sender: SlackTriggerSender;
25854
- conditions: never[];
25855
- } & {
25856
- reactions?: never;
25857
25055
  }) | ({
25858
25056
  on: "mention";
25859
25057
  channels: string[];
@@ -25893,7 +25091,7 @@ export declare const agentTriggerPatchSchema: z$2.ZodObject<{
25893
25091
  } & {
25894
25092
  reactions?: string[];
25895
25093
  }), {
25896
- on: "dm" | "member_joined" | "mention" | "message" | "reaction";
25094
+ on: "dm" | "mention" | "message" | "reaction";
25897
25095
  channels: string[];
25898
25096
  reactions?: string[] | undefined;
25899
25097
  sender: "any" | "human" | "me" | {
@@ -27349,6 +26547,7 @@ export declare const agentSessionMessageOutputSchema: z$2.ZodObject<{
27349
26547
  deletion: z$2.ZodOptional<z$2.ZodObject<{
27350
26548
  target: z$2.ZodOptional<z$2.ZodString>;
27351
26549
  count: z$2.ZodOptional<z$2.ZodNumber>;
26550
+ targets: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
27352
26551
  restorableDays: z$2.ZodOptional<z$2.ZodNumber>;
27353
26552
  }, z$2.core.$strict>>;
27354
26553
  record: z$2.ZodOptional<z$2.ZodObject<{
@@ -27570,6 +26769,7 @@ export declare const agentHistoryMessageSchema: z$2.ZodObject<{
27570
26769
  deletion: z$2.ZodOptional<z$2.ZodObject<{
27571
26770
  target: z$2.ZodOptional<z$2.ZodString>;
27572
26771
  count: z$2.ZodOptional<z$2.ZodNumber>;
26772
+ targets: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
27573
26773
  restorableDays: z$2.ZodOptional<z$2.ZodNumber>;
27574
26774
  }, z$2.core.$strict>>;
27575
26775
  record: z$2.ZodOptional<z$2.ZodObject<{
@@ -27797,6 +26997,7 @@ export declare const agentSessionHistoryPageSchema: z$2.ZodObject<{
27797
26997
  deletion: z$2.ZodOptional<z$2.ZodObject<{
27798
26998
  target: z$2.ZodOptional<z$2.ZodString>;
27799
26999
  count: z$2.ZodOptional<z$2.ZodNumber>;
27000
+ targets: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
27800
27001
  restorableDays: z$2.ZodOptional<z$2.ZodNumber>;
27801
27002
  }, z$2.core.$strict>>;
27802
27003
  record: z$2.ZodOptional<z$2.ZodObject<{
@@ -28053,6 +27254,7 @@ export declare const agentApprovalResolutionSchema: z$2.ZodObject<{
28053
27254
  deletion: z$2.ZodOptional<z$2.ZodObject<{
28054
27255
  target: z$2.ZodOptional<z$2.ZodString>;
28055
27256
  count: z$2.ZodOptional<z$2.ZodNumber>;
27257
+ targets: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
28056
27258
  restorableDays: z$2.ZodOptional<z$2.ZodNumber>;
28057
27259
  }, z$2.core.$strict>>;
28058
27260
  record: z$2.ZodOptional<z$2.ZodObject<{
@@ -28282,6 +27484,7 @@ export declare const agentRequestAnswerSchema: z$2.ZodObject<{
28282
27484
  deletion: z$2.ZodOptional<z$2.ZodObject<{
28283
27485
  target: z$2.ZodOptional<z$2.ZodString>;
28284
27486
  count: z$2.ZodOptional<z$2.ZodNumber>;
27487
+ targets: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
28285
27488
  restorableDays: z$2.ZodOptional<z$2.ZodNumber>;
28286
27489
  }, z$2.core.$strict>>;
28287
27490
  record: z$2.ZodOptional<z$2.ZodObject<{
@@ -28913,7 +28116,6 @@ export declare const agentSetupResponseSchema: z$2.ZodObject<{
28913
28116
  "form.submitted": "form.submitted";
28914
28117
  github: "github";
28915
28118
  "record.created": "record.created";
28916
- "record.deleted": "record.deleted";
28917
28119
  "record.updated": "record.updated";
28918
28120
  slack: "slack";
28919
28121
  webhook: "webhook";
@@ -29151,7 +28353,6 @@ export declare const agentTriggerDefinitionSchema: z$2.ZodObject<{
29151
28353
  "form.submitted": "form.submitted";
29152
28354
  github: "github";
29153
28355
  "record.created": "record.created";
29154
- "record.deleted": "record.deleted";
29155
28356
  "record.updated": "record.updated";
29156
28357
  slack: "slack";
29157
28358
  webhook: "webhook";
@@ -29166,6 +28367,7 @@ export declare const agentTriggerDefinitionSchema: z$2.ZodObject<{
29166
28367
  continueConversation: z$2.ZodOptional<z$2.ZodBoolean>;
29167
28368
  filter: z$2.ZodOptional<z$2.ZodType<FilterState, FilterState, z$2.core.$ZodTypeInternals<FilterState, FilterState>>>;
29168
28369
  debounceMs: z$2.ZodOptional<z$2.ZodNumber>;
28370
+ reentry: z$2.ZodOptional<z$2.ZodNumber>;
29169
28371
  enabled: z$2.ZodBoolean;
29170
28372
  createdBy: z$2.ZodString;
29171
28373
  lastFiredAt: z$2.ZodOptional<z$2.ZodCodec<z$2.ZodISODateTime, z$2.ZodDate>>;
@@ -29189,7 +28391,6 @@ export declare const createAgentTriggerResultSchema: z$2.ZodObject<{
29189
28391
  "form.submitted": "form.submitted";
29190
28392
  github: "github";
29191
28393
  "record.created": "record.created";
29192
- "record.deleted": "record.deleted";
29193
28394
  "record.updated": "record.updated";
29194
28395
  slack: "slack";
29195
28396
  webhook: "webhook";
@@ -29204,6 +28405,7 @@ export declare const createAgentTriggerResultSchema: z$2.ZodObject<{
29204
28405
  continueConversation: z$2.ZodOptional<z$2.ZodBoolean>;
29205
28406
  filter: z$2.ZodOptional<z$2.ZodType<FilterState, FilterState, z$2.core.$ZodTypeInternals<FilterState, FilterState>>>;
29206
28407
  debounceMs: z$2.ZodOptional<z$2.ZodNumber>;
28408
+ reentry: z$2.ZodOptional<z$2.ZodNumber>;
29207
28409
  enabled: z$2.ZodBoolean;
29208
28410
  createdBy: z$2.ZodString;
29209
28411
  lastFiredAt: z$2.ZodOptional<z$2.ZodCodec<z$2.ZodISODateTime, z$2.ZodDate>>;