braintrust 3.27.0 → 3.28.0

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 (53) hide show
  1. package/dev/dist/index.d.mts +519 -186
  2. package/dev/dist/index.d.ts +519 -186
  3. package/dev/dist/index.js +1837 -1009
  4. package/dev/dist/index.mjs +1172 -344
  5. package/dist/apply-auto-instrumentation.js +262 -210
  6. package/dist/apply-auto-instrumentation.mjs +54 -2
  7. package/dist/auto-instrumentations/bundler/esbuild.cjs +81 -2
  8. package/dist/auto-instrumentations/bundler/esbuild.mjs +2 -2
  9. package/dist/auto-instrumentations/bundler/next.cjs +81 -2
  10. package/dist/auto-instrumentations/bundler/next.mjs +3 -3
  11. package/dist/auto-instrumentations/bundler/rollup.cjs +81 -2
  12. package/dist/auto-instrumentations/bundler/rollup.mjs +2 -2
  13. package/dist/auto-instrumentations/bundler/vite.cjs +81 -2
  14. package/dist/auto-instrumentations/bundler/vite.mjs +2 -2
  15. package/dist/auto-instrumentations/bundler/webpack-loader.cjs +81 -2
  16. package/dist/auto-instrumentations/bundler/webpack.cjs +81 -2
  17. package/dist/auto-instrumentations/bundler/webpack.mjs +3 -3
  18. package/dist/auto-instrumentations/{chunk-XEYKUBLY.mjs → chunk-26PKVUKB.mjs} +80 -2
  19. package/dist/auto-instrumentations/{chunk-BW33ULMW.mjs → chunk-HD35AM3M.mjs} +1 -1
  20. package/dist/auto-instrumentations/{chunk-ZNHTSSGI.mjs → chunk-NP7V4XB2.mjs} +2 -1
  21. package/dist/auto-instrumentations/hook.mjs +236 -30
  22. package/dist/auto-instrumentations/index.cjs +2 -1
  23. package/dist/auto-instrumentations/index.mjs +1 -1
  24. package/dist/browser.d.mts +628 -53
  25. package/dist/browser.d.ts +628 -53
  26. package/dist/browser.js +2301 -284
  27. package/dist/browser.mjs +2301 -284
  28. package/dist/{chunk-MF7NU6BT.js → chunk-BBE7SNRV.js} +34 -4
  29. package/dist/{chunk-QRHGVBKU.js → chunk-OBBWQW6K.js} +1799 -1023
  30. package/dist/{chunk-YKD22IMR.mjs → chunk-UPFNQCGB.mjs} +966 -190
  31. package/dist/{chunk-CZM5JIQL.mjs → chunk-ZHUHZWFY.mjs} +33 -3
  32. package/dist/cli.js +1224 -398
  33. package/dist/edge-light.d.mts +1 -1
  34. package/dist/edge-light.d.ts +1 -1
  35. package/dist/edge-light.js +2301 -284
  36. package/dist/edge-light.mjs +2301 -284
  37. package/dist/index.d.mts +1212 -637
  38. package/dist/index.d.ts +1212 -637
  39. package/dist/index.js +1880 -590
  40. package/dist/index.mjs +1450 -160
  41. package/dist/instrumentation/index.d.mts +190 -6
  42. package/dist/instrumentation/index.d.ts +190 -6
  43. package/dist/instrumentation/index.js +823 -116
  44. package/dist/instrumentation/index.mjs +823 -116
  45. package/dist/vitest-evals-reporter.js +16 -16
  46. package/dist/vitest-evals-reporter.mjs +2 -2
  47. package/dist/workerd.d.mts +1 -1
  48. package/dist/workerd.d.ts +1 -1
  49. package/dist/workerd.js +2301 -284
  50. package/dist/workerd.mjs +2301 -284
  51. package/package.json +2 -3
  52. package/util/dist/index.d.mts +1545 -100
  53. package/util/dist/index.d.ts +1545 -100
@@ -6881,6 +6881,7 @@ interface InstrumentationIntegrationsConfig {
6881
6881
  langchain?: boolean;
6882
6882
  langgraph?: boolean;
6883
6883
  langsmith?: boolean;
6884
+ voyageai?: boolean;
6884
6885
  }
6885
6886
  interface InstrumentationConfig {
6886
6887
  /**
@@ -6907,6 +6908,7 @@ interface BraintrustPluginConfig {
6907
6908
  * - Mistral SDK
6908
6909
  * - Ollama SDK
6909
6910
  * - Cohere SDK
6911
+ * - Voyage AI SDK
6910
6912
  *
6911
6913
  * The plugin is automatically enabled when the Braintrust library is loaded.
6912
6914
  * Individual integrations can be disabled via configuration.
@@ -6939,6 +6941,7 @@ declare class BraintrustPlugin extends BasePlugin {
6939
6941
  private langSmithPlugin;
6940
6942
  private piCodingAgentPlugin;
6941
6943
  private strandsAgentSDKPlugin;
6944
+ private voyageAIPlugin;
6942
6945
  private cloudflareAIChatPlugin;
6943
6946
  private cloudflareAgentsPlugin;
6944
6947
  constructor(config?: BraintrustPluginConfig);
@@ -7019,16 +7022,108 @@ declare const AsyncScoringControl: z.ZodUnion<[z.ZodObject<{
7019
7022
  token: z.ZodString;
7020
7023
  function_ids: z.ZodArray<z.ZodUnknown, "many">;
7021
7024
  skip_logging: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
7025
+ triggered_functions: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodObject<{
7026
+ triggered_xact_id: z.ZodString;
7027
+ completed_xact_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
7028
+ idempotency_key: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
7029
+ attempts: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
7030
+ scope: z.ZodUnion<[z.ZodObject<{
7031
+ type: z.ZodLiteral<"span">;
7032
+ }, "strip", z.ZodTypeAny, {
7033
+ type: "span";
7034
+ }, {
7035
+ type: "span";
7036
+ }>, z.ZodObject<{
7037
+ type: z.ZodLiteral<"trace">;
7038
+ }, "strip", z.ZodTypeAny, {
7039
+ type: "trace";
7040
+ }, {
7041
+ type: "trace";
7042
+ }>, z.ZodObject<{
7043
+ type: z.ZodLiteral<"group">;
7044
+ key: z.ZodString;
7045
+ value: z.ZodString;
7046
+ }, "strip", z.ZodTypeAny, {
7047
+ value: string;
7048
+ type: "group";
7049
+ key: string;
7050
+ }, {
7051
+ value: string;
7052
+ type: "group";
7053
+ key: string;
7054
+ }>]>;
7055
+ }, "strip", z.ZodTypeAny, {
7056
+ triggered_xact_id: string;
7057
+ attempts: number;
7058
+ scope: {
7059
+ type: "span";
7060
+ } | {
7061
+ type: "trace";
7062
+ } | {
7063
+ value: string;
7064
+ type: "group";
7065
+ key: string;
7066
+ };
7067
+ completed_xact_id?: string | null | undefined;
7068
+ idempotency_key?: string | null | undefined;
7069
+ }, {
7070
+ triggered_xact_id: string;
7071
+ scope: {
7072
+ type: "span";
7073
+ } | {
7074
+ type: "trace";
7075
+ } | {
7076
+ value: string;
7077
+ type: "group";
7078
+ key: string;
7079
+ };
7080
+ completed_xact_id?: string | null | undefined;
7081
+ idempotency_key?: string | null | undefined;
7082
+ attempts?: number | undefined;
7083
+ }>>, z.ZodNull]>>;
7084
+ last_triggered_xact_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNull]>>;
7022
7085
  }, "strip", z.ZodTypeAny, {
7023
7086
  status: "enabled";
7024
7087
  token: string;
7025
7088
  function_ids: unknown[];
7026
7089
  skip_logging?: boolean | null | undefined;
7090
+ triggered_functions?: Record<string, {
7091
+ triggered_xact_id: string;
7092
+ attempts: number;
7093
+ scope: {
7094
+ type: "span";
7095
+ } | {
7096
+ type: "trace";
7097
+ } | {
7098
+ value: string;
7099
+ type: "group";
7100
+ key: string;
7101
+ };
7102
+ completed_xact_id?: string | null | undefined;
7103
+ idempotency_key?: string | null | undefined;
7104
+ }> | null | undefined;
7105
+ last_triggered_xact_id?: string | number | null | undefined;
7027
7106
  }, {
7028
7107
  status: "enabled";
7029
7108
  token: string;
7030
7109
  function_ids: unknown[];
7031
7110
  skip_logging?: boolean | null | undefined;
7111
+ triggered_functions?: Record<string, {
7112
+ triggered_xact_id: string;
7113
+ scope: {
7114
+ type: "span";
7115
+ } | {
7116
+ type: "trace";
7117
+ } | {
7118
+ value: string;
7119
+ type: "group";
7120
+ key: string;
7121
+ };
7122
+ completed_xact_id?: string | null | undefined;
7123
+ idempotency_key?: string | null | undefined;
7124
+ attempts?: number | undefined;
7125
+ }> | null | undefined;
7126
+ last_triggered_xact_id?: string | number | null | undefined;
7032
7127
  }>, z.ZodObject<{
7033
7128
  status: z.ZodLiteral<"disabled">;
7034
7129
  }, "strip", z.ZodTypeAny, {
@@ -7043,6 +7138,22 @@ declare const AsyncScoringControl: z.ZodUnion<[z.ZodObject<{
7043
7138
  token: string;
7044
7139
  function_ids: unknown[];
7045
7140
  skip_logging?: boolean | null | undefined;
7141
+ triggered_functions?: Record<string, {
7142
+ triggered_xact_id: string;
7143
+ attempts: number;
7144
+ scope: {
7145
+ type: "span";
7146
+ } | {
7147
+ type: "trace";
7148
+ } | {
7149
+ value: string;
7150
+ type: "group";
7151
+ key: string;
7152
+ };
7153
+ completed_xact_id?: string | null | undefined;
7154
+ idempotency_key?: string | null | undefined;
7155
+ }> | null | undefined;
7156
+ last_triggered_xact_id?: string | number | null | undefined;
7046
7157
  } | {
7047
7158
  status: "disabled";
7048
7159
  } | null;
@@ -7053,6 +7164,22 @@ declare const AsyncScoringControl: z.ZodUnion<[z.ZodObject<{
7053
7164
  token: string;
7054
7165
  function_ids: unknown[];
7055
7166
  skip_logging?: boolean | null | undefined;
7167
+ triggered_functions?: Record<string, {
7168
+ triggered_xact_id: string;
7169
+ scope: {
7170
+ type: "span";
7171
+ } | {
7172
+ type: "trace";
7173
+ } | {
7174
+ value: string;
7175
+ type: "group";
7176
+ key: string;
7177
+ };
7178
+ completed_xact_id?: string | null | undefined;
7179
+ idempotency_key?: string | null | undefined;
7180
+ attempts?: number | undefined;
7181
+ }> | null | undefined;
7182
+ last_triggered_xact_id?: string | number | null | undefined;
7056
7183
  } | {
7057
7184
  status: "disabled";
7058
7185
  } | null;
@@ -7069,14 +7196,62 @@ declare const AsyncScoringControl: z.ZodUnion<[z.ZodObject<{
7069
7196
  }, {
7070
7197
  kind: "state_enabled_force_rescore";
7071
7198
  }>, z.ZodObject<{
7072
- kind: z.ZodLiteral<"add_triggered_functions">;
7073
- triggered_function_ids: z.ZodArray<z.ZodUnknown, "many">;
7199
+ kind: z.ZodLiteral<"trigger_functions">;
7200
+ triggered_functions: z.ZodArray<z.ZodObject<{
7201
+ function_id: z.ZodOptional<z.ZodUnknown>;
7202
+ scope: z.ZodUnion<[z.ZodObject<{
7203
+ type: z.ZodLiteral<"span">;
7204
+ }, "strip", z.ZodTypeAny, {
7205
+ type: "span";
7206
+ }, {
7207
+ type: "span";
7208
+ }>, z.ZodObject<{
7209
+ type: z.ZodLiteral<"trace">;
7210
+ }, "strip", z.ZodTypeAny, {
7211
+ type: "trace";
7212
+ }, {
7213
+ type: "trace";
7214
+ }>]>;
7215
+ idempotency_key: z.ZodOptional<z.ZodString>;
7216
+ }, "strip", z.ZodTypeAny, {
7217
+ scope: {
7218
+ type: "span";
7219
+ } | {
7220
+ type: "trace";
7221
+ };
7222
+ idempotency_key?: string | undefined;
7223
+ function_id?: unknown;
7224
+ }, {
7225
+ scope: {
7226
+ type: "span";
7227
+ } | {
7228
+ type: "trace";
7229
+ };
7230
+ idempotency_key?: string | undefined;
7231
+ function_id?: unknown;
7232
+ }>, "many">;
7074
7233
  }, "strip", z.ZodTypeAny, {
7075
- kind: "add_triggered_functions";
7076
- triggered_function_ids: unknown[];
7234
+ kind: "trigger_functions";
7235
+ triggered_functions: {
7236
+ scope: {
7237
+ type: "span";
7238
+ } | {
7239
+ type: "trace";
7240
+ };
7241
+ idempotency_key?: string | undefined;
7242
+ function_id?: unknown;
7243
+ }[];
7077
7244
  }, {
7078
- kind: "add_triggered_functions";
7079
- triggered_function_ids: unknown[];
7245
+ kind: "trigger_functions";
7246
+ triggered_functions: {
7247
+ scope: {
7248
+ type: "span";
7249
+ } | {
7250
+ type: "trace";
7251
+ };
7252
+ idempotency_key?: string | undefined;
7253
+ function_id?: unknown;
7254
+ }[];
7080
7255
  }>, z.ZodObject<{
7081
7256
  kind: z.ZodLiteral<"complete_triggered_functions">;
7082
7257
  function_ids: z.ZodArray<z.ZodUnknown, "many">;
@@ -7089,6 +7264,15 @@ declare const AsyncScoringControl: z.ZodUnion<[z.ZodObject<{
7089
7264
  kind: "complete_triggered_functions";
7090
7265
  triggered_xact_id: string;
7091
7266
  function_ids: unknown[];
7267
+ }>, z.ZodObject<{
7268
+ kind: z.ZodLiteral<"mark_attempt_failed">;
7269
+ function_ids: z.ZodArray<z.ZodUnknown, "many">;
7270
+ }, "strip", z.ZodTypeAny, {
7271
+ kind: "mark_attempt_failed";
7272
+ function_ids: unknown[];
7273
+ }, {
7274
+ kind: "mark_attempt_failed";
7275
+ function_ids: unknown[];
7092
7276
  }>]>;
7093
7277
  type AsyncScoringControlType = z.infer<typeof AsyncScoringControl>;
7094
7278
  declare const ObjectReference: z.ZodObject<{
@@ -6881,6 +6881,7 @@ interface InstrumentationIntegrationsConfig {
6881
6881
  langchain?: boolean;
6882
6882
  langgraph?: boolean;
6883
6883
  langsmith?: boolean;
6884
+ voyageai?: boolean;
6884
6885
  }
6885
6886
  interface InstrumentationConfig {
6886
6887
  /**
@@ -6907,6 +6908,7 @@ interface BraintrustPluginConfig {
6907
6908
  * - Mistral SDK
6908
6909
  * - Ollama SDK
6909
6910
  * - Cohere SDK
6911
+ * - Voyage AI SDK
6910
6912
  *
6911
6913
  * The plugin is automatically enabled when the Braintrust library is loaded.
6912
6914
  * Individual integrations can be disabled via configuration.
@@ -6939,6 +6941,7 @@ declare class BraintrustPlugin extends BasePlugin {
6939
6941
  private langSmithPlugin;
6940
6942
  private piCodingAgentPlugin;
6941
6943
  private strandsAgentSDKPlugin;
6944
+ private voyageAIPlugin;
6942
6945
  private cloudflareAIChatPlugin;
6943
6946
  private cloudflareAgentsPlugin;
6944
6947
  constructor(config?: BraintrustPluginConfig);
@@ -7019,16 +7022,108 @@ declare const AsyncScoringControl: z.ZodUnion<[z.ZodObject<{
7019
7022
  token: z.ZodString;
7020
7023
  function_ids: z.ZodArray<z.ZodUnknown, "many">;
7021
7024
  skip_logging: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
7025
+ triggered_functions: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodObject<{
7026
+ triggered_xact_id: z.ZodString;
7027
+ completed_xact_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
7028
+ idempotency_key: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
7029
+ attempts: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
7030
+ scope: z.ZodUnion<[z.ZodObject<{
7031
+ type: z.ZodLiteral<"span">;
7032
+ }, "strip", z.ZodTypeAny, {
7033
+ type: "span";
7034
+ }, {
7035
+ type: "span";
7036
+ }>, z.ZodObject<{
7037
+ type: z.ZodLiteral<"trace">;
7038
+ }, "strip", z.ZodTypeAny, {
7039
+ type: "trace";
7040
+ }, {
7041
+ type: "trace";
7042
+ }>, z.ZodObject<{
7043
+ type: z.ZodLiteral<"group">;
7044
+ key: z.ZodString;
7045
+ value: z.ZodString;
7046
+ }, "strip", z.ZodTypeAny, {
7047
+ value: string;
7048
+ type: "group";
7049
+ key: string;
7050
+ }, {
7051
+ value: string;
7052
+ type: "group";
7053
+ key: string;
7054
+ }>]>;
7055
+ }, "strip", z.ZodTypeAny, {
7056
+ triggered_xact_id: string;
7057
+ attempts: number;
7058
+ scope: {
7059
+ type: "span";
7060
+ } | {
7061
+ type: "trace";
7062
+ } | {
7063
+ value: string;
7064
+ type: "group";
7065
+ key: string;
7066
+ };
7067
+ completed_xact_id?: string | null | undefined;
7068
+ idempotency_key?: string | null | undefined;
7069
+ }, {
7070
+ triggered_xact_id: string;
7071
+ scope: {
7072
+ type: "span";
7073
+ } | {
7074
+ type: "trace";
7075
+ } | {
7076
+ value: string;
7077
+ type: "group";
7078
+ key: string;
7079
+ };
7080
+ completed_xact_id?: string | null | undefined;
7081
+ idempotency_key?: string | null | undefined;
7082
+ attempts?: number | undefined;
7083
+ }>>, z.ZodNull]>>;
7084
+ last_triggered_xact_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNull]>>;
7022
7085
  }, "strip", z.ZodTypeAny, {
7023
7086
  status: "enabled";
7024
7087
  token: string;
7025
7088
  function_ids: unknown[];
7026
7089
  skip_logging?: boolean | null | undefined;
7090
+ triggered_functions?: Record<string, {
7091
+ triggered_xact_id: string;
7092
+ attempts: number;
7093
+ scope: {
7094
+ type: "span";
7095
+ } | {
7096
+ type: "trace";
7097
+ } | {
7098
+ value: string;
7099
+ type: "group";
7100
+ key: string;
7101
+ };
7102
+ completed_xact_id?: string | null | undefined;
7103
+ idempotency_key?: string | null | undefined;
7104
+ }> | null | undefined;
7105
+ last_triggered_xact_id?: string | number | null | undefined;
7027
7106
  }, {
7028
7107
  status: "enabled";
7029
7108
  token: string;
7030
7109
  function_ids: unknown[];
7031
7110
  skip_logging?: boolean | null | undefined;
7111
+ triggered_functions?: Record<string, {
7112
+ triggered_xact_id: string;
7113
+ scope: {
7114
+ type: "span";
7115
+ } | {
7116
+ type: "trace";
7117
+ } | {
7118
+ value: string;
7119
+ type: "group";
7120
+ key: string;
7121
+ };
7122
+ completed_xact_id?: string | null | undefined;
7123
+ idempotency_key?: string | null | undefined;
7124
+ attempts?: number | undefined;
7125
+ }> | null | undefined;
7126
+ last_triggered_xact_id?: string | number | null | undefined;
7032
7127
  }>, z.ZodObject<{
7033
7128
  status: z.ZodLiteral<"disabled">;
7034
7129
  }, "strip", z.ZodTypeAny, {
@@ -7043,6 +7138,22 @@ declare const AsyncScoringControl: z.ZodUnion<[z.ZodObject<{
7043
7138
  token: string;
7044
7139
  function_ids: unknown[];
7045
7140
  skip_logging?: boolean | null | undefined;
7141
+ triggered_functions?: Record<string, {
7142
+ triggered_xact_id: string;
7143
+ attempts: number;
7144
+ scope: {
7145
+ type: "span";
7146
+ } | {
7147
+ type: "trace";
7148
+ } | {
7149
+ value: string;
7150
+ type: "group";
7151
+ key: string;
7152
+ };
7153
+ completed_xact_id?: string | null | undefined;
7154
+ idempotency_key?: string | null | undefined;
7155
+ }> | null | undefined;
7156
+ last_triggered_xact_id?: string | number | null | undefined;
7046
7157
  } | {
7047
7158
  status: "disabled";
7048
7159
  } | null;
@@ -7053,6 +7164,22 @@ declare const AsyncScoringControl: z.ZodUnion<[z.ZodObject<{
7053
7164
  token: string;
7054
7165
  function_ids: unknown[];
7055
7166
  skip_logging?: boolean | null | undefined;
7167
+ triggered_functions?: Record<string, {
7168
+ triggered_xact_id: string;
7169
+ scope: {
7170
+ type: "span";
7171
+ } | {
7172
+ type: "trace";
7173
+ } | {
7174
+ value: string;
7175
+ type: "group";
7176
+ key: string;
7177
+ };
7178
+ completed_xact_id?: string | null | undefined;
7179
+ idempotency_key?: string | null | undefined;
7180
+ attempts?: number | undefined;
7181
+ }> | null | undefined;
7182
+ last_triggered_xact_id?: string | number | null | undefined;
7056
7183
  } | {
7057
7184
  status: "disabled";
7058
7185
  } | null;
@@ -7069,14 +7196,62 @@ declare const AsyncScoringControl: z.ZodUnion<[z.ZodObject<{
7069
7196
  }, {
7070
7197
  kind: "state_enabled_force_rescore";
7071
7198
  }>, z.ZodObject<{
7072
- kind: z.ZodLiteral<"add_triggered_functions">;
7073
- triggered_function_ids: z.ZodArray<z.ZodUnknown, "many">;
7199
+ kind: z.ZodLiteral<"trigger_functions">;
7200
+ triggered_functions: z.ZodArray<z.ZodObject<{
7201
+ function_id: z.ZodOptional<z.ZodUnknown>;
7202
+ scope: z.ZodUnion<[z.ZodObject<{
7203
+ type: z.ZodLiteral<"span">;
7204
+ }, "strip", z.ZodTypeAny, {
7205
+ type: "span";
7206
+ }, {
7207
+ type: "span";
7208
+ }>, z.ZodObject<{
7209
+ type: z.ZodLiteral<"trace">;
7210
+ }, "strip", z.ZodTypeAny, {
7211
+ type: "trace";
7212
+ }, {
7213
+ type: "trace";
7214
+ }>]>;
7215
+ idempotency_key: z.ZodOptional<z.ZodString>;
7216
+ }, "strip", z.ZodTypeAny, {
7217
+ scope: {
7218
+ type: "span";
7219
+ } | {
7220
+ type: "trace";
7221
+ };
7222
+ idempotency_key?: string | undefined;
7223
+ function_id?: unknown;
7224
+ }, {
7225
+ scope: {
7226
+ type: "span";
7227
+ } | {
7228
+ type: "trace";
7229
+ };
7230
+ idempotency_key?: string | undefined;
7231
+ function_id?: unknown;
7232
+ }>, "many">;
7074
7233
  }, "strip", z.ZodTypeAny, {
7075
- kind: "add_triggered_functions";
7076
- triggered_function_ids: unknown[];
7234
+ kind: "trigger_functions";
7235
+ triggered_functions: {
7236
+ scope: {
7237
+ type: "span";
7238
+ } | {
7239
+ type: "trace";
7240
+ };
7241
+ idempotency_key?: string | undefined;
7242
+ function_id?: unknown;
7243
+ }[];
7077
7244
  }, {
7078
- kind: "add_triggered_functions";
7079
- triggered_function_ids: unknown[];
7245
+ kind: "trigger_functions";
7246
+ triggered_functions: {
7247
+ scope: {
7248
+ type: "span";
7249
+ } | {
7250
+ type: "trace";
7251
+ };
7252
+ idempotency_key?: string | undefined;
7253
+ function_id?: unknown;
7254
+ }[];
7080
7255
  }>, z.ZodObject<{
7081
7256
  kind: z.ZodLiteral<"complete_triggered_functions">;
7082
7257
  function_ids: z.ZodArray<z.ZodUnknown, "many">;
@@ -7089,6 +7264,15 @@ declare const AsyncScoringControl: z.ZodUnion<[z.ZodObject<{
7089
7264
  kind: "complete_triggered_functions";
7090
7265
  triggered_xact_id: string;
7091
7266
  function_ids: unknown[];
7267
+ }>, z.ZodObject<{
7268
+ kind: z.ZodLiteral<"mark_attempt_failed">;
7269
+ function_ids: z.ZodArray<z.ZodUnknown, "many">;
7270
+ }, "strip", z.ZodTypeAny, {
7271
+ kind: "mark_attempt_failed";
7272
+ function_ids: unknown[];
7273
+ }, {
7274
+ kind: "mark_attempt_failed";
7275
+ function_ids: unknown[];
7092
7276
  }>]>;
7093
7277
  type AsyncScoringControlType = z.infer<typeof AsyncScoringControl>;
7094
7278
  declare const ObjectReference: z.ZodObject<{