@elevasis/sdk 1.48.0 → 1.50.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 (56) hide show
  1. package/dist/chunk-MGZZ4HL4.js +4399 -0
  2. package/dist/chunk-VYWGWJRW.js +130 -0
  3. package/dist/chunk-YJDXRHNP.js +7901 -0
  4. package/dist/cli.cjs +949 -281
  5. package/dist/index.d.ts +1031 -48
  6. package/dist/index.js +2 -7597
  7. package/dist/node/index.d.ts +3 -3675
  8. package/dist/node/index.js +2 -124
  9. package/dist/test-utils/index.d.ts +2 -12051
  10. package/dist/test-utils/index.js +113 -27891
  11. package/dist/worker/index.d.ts +548 -12264
  12. package/dist/worker/index.js +3 -7400
  13. package/package.json +12 -4
  14. package/reference/_navigation.md +4 -4
  15. package/reference/_reference-manifest.json +1 -1
  16. package/reference/core/index.mdx +6 -4
  17. package/reference/index.mdx +11 -5
  18. package/reference/packages/core/src/README.md +46 -44
  19. package/reference/packages/core/src/content/README.md +16 -12
  20. package/reference/rules/agent-start-here.md +1 -1
  21. package/reference/rules/frontend.md +3 -1
  22. package/reference/rules/package-taxonomy.md +7 -5
  23. package/reference/rules/ui.md +31 -5
  24. package/reference/rules/vibe-intents.md +2 -2
  25. package/reference/rules/vibe.md +30 -10
  26. package/reference/scaffold/recipes/extend-content.md +82 -3
  27. package/reference/scaffold/recipes/gate-by-feature-or-admin.md +8 -6
  28. package/reference/scaffold/ui/feature-flags-and-gating.md +11 -1
  29. package/reference/sdk/cli-management.mdx +284 -139
  30. package/reference/sdk/cli.mdx +136 -88
  31. package/reference/sdk/define-builders.mdx +1 -1
  32. package/reference/sdk/deployment/command-center.mdx +2 -2
  33. package/reference/sdk/deployment/index.mdx +24 -7
  34. package/reference/sdk/exports.mdx +4 -4
  35. package/reference/sdk/framework/agent.mdx +4 -3
  36. package/reference/sdk/framework/index.mdx +1 -1
  37. package/reference/sdk/framework/project-structure.mdx +34 -23
  38. package/reference/sdk/framework/tutorial-system.mdx +1 -1
  39. package/reference/sdk/getting-started.mdx +25 -52
  40. package/reference/sdk/index.mdx +3 -3
  41. package/reference/sdk/platform-tools/adapters-integration.mdx +1 -1
  42. package/reference/sdk/platform-tools/adapters-platform.mdx +1 -1
  43. package/reference/sdk/platform-tools/type-safety.mdx +1 -1
  44. package/reference/sdk/resources/patterns.mdx +10 -11
  45. package/reference/sdk/resources/types.mdx +15 -9
  46. package/reference/sdk/templates/data-enrichment.mdx +1 -1
  47. package/reference/sdk/templates/email-sender.mdx +1 -1
  48. package/reference/sdk/templates/index.mdx +47 -47
  49. package/reference/sdk/templates/lead-scorer.mdx +1 -1
  50. package/reference/sdk/templates/pdf-generator.mdx +42 -24
  51. package/reference/sdk/templates/recurring-job.mdx +20 -15
  52. package/reference/sdk/templates/text-classifier.mdx +1 -1
  53. package/reference/sdk/templates/web-scraper.mdx +9 -5
  54. package/reference/sdk/troubleshooting.mdx +72 -1
  55. package/reference/ui/exports.mdx +1 -1
  56. package/reference/ui/index.mdx +2 -2
package/dist/index.d.ts CHANGED
@@ -942,13 +942,52 @@ interface JsonSchema {
942
942
  * Universal interfaces for LLM interaction across all resource types
943
943
  */
944
944
 
945
+ /**
946
+ * One piece of a multipart `LLMMessage.content`. Modeled close to OpenAI's shape (a single `url`
947
+ * field covers both a hosted URL and a `data:` base64 URL) rather than Anthropic's three-way
948
+ * `source` split, because OpenAI's shape is the one every provider's translation layer can derive
949
+ * the other from -- the Anthropic adapter is the side that branches on the `data:` prefix to
950
+ * recover the split its wire format wants (see `adapters/server/anthropic.ts`).
951
+ */
952
+ type LLMContentPart = {
953
+ type: 'text';
954
+ text: string;
955
+ } | {
956
+ type: 'image';
957
+ /**
958
+ * A `data:<mediaType>;base64,<data>` URL, or an `https://...` URL the provider fetches
959
+ * itself. Base64 is the recommended default: a hosted `url` means the PROVIDER fetches it
960
+ * at call time, so a signed org-storage URL must still be public and unexpired when the
961
+ * provider reaches it, an extra failure mode a caller must manage. Base64 removes that
962
+ * dependency at the cost of payload size -- Anthropic caps a single image at 10 MB.
963
+ */
964
+ url: string;
965
+ /** Overrides the media type parsed off a `data:` URL prefix. Required when `url` is a
966
+ * hosted (non-`data:`) URL and the provider needs it -- Anthropic's `url` source infers
967
+ * the type itself, but callers on a stricter provider should not assume that. */
968
+ mediaType?: string;
969
+ /** OpenAI-only hint for how much detail to preserve when downsampling. Ignored by
970
+ * providers (Anthropic, OpenRouter-as-Anthropic) that do not read it. */
971
+ detail?: 'auto' | 'low' | 'high';
972
+ };
945
973
  /**
946
974
  * Standard chat message format
947
975
  * Compatible with OpenAI, Anthropic, and other providers
948
976
  */
949
977
  interface LLMMessage {
950
978
  role: 'system' | 'user' | 'assistant';
951
- content: string;
979
+ /**
980
+ * A plain string for the common unstructured case, or a parts array to attach an image
981
+ * alongside (or instead of) text -- see `LLMContentPart`. This is a WIDENING, not a
982
+ * replacement: every existing caller passing a bare string keeps compiling and behaving
983
+ * identically.
984
+ *
985
+ * Not every model/adapter can accept an `image` part -- `MockAdapter` throws
986
+ * `LLMUnsupportedContentError` rather than silently ignoring it, and a caller sending an image
987
+ * to a text-only integration should expect the same rather than a plausible-looking
988
+ * text-degraded response. See `llm/errors.ts`.
989
+ */
990
+ content: string | LLMContentPart[];
952
991
  /**
953
992
  * Marks this message as the end of a byte-stable prefix worth an Anthropic cache breakpoint,
954
993
  * beyond the one the system prompt already gets. Anthropic's rule is "everything up to and
@@ -1147,8 +1186,13 @@ interface LLMAdapter {
1147
1186
 
1148
1187
  /**
1149
1188
  * Supported Open AI models (direct SDK access)
1189
+ *
1190
+ * The GPT-5.6 tiers are three separate ids rather than the bare `gpt-5.6` alias. Upstream that
1191
+ * alias routes to Sol, so registering it would put two keys with identical pricing in `MODEL_INFO`
1192
+ * and hide which tier actually ran in `ai_calls`. Leaving it out means a caller who writes
1193
+ * `'gpt-5.6'` is rejected by the dispatcher rather than silently billed at Sol rates.
1150
1194
  */
1151
- type OpenAIModel = 'gpt-5' | 'gpt-5.4-mini' | 'gpt-5.4-nano';
1195
+ type OpenAIModel = 'gpt-5' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.6-sol' | 'gpt-5.6-terra' | 'gpt-5.6-luna';
1152
1196
  /**
1153
1197
  * Supported OpenRouter models (explicit union for type safety)
1154
1198
  */
@@ -1164,15 +1208,36 @@ type LLMModel = OpenAIModel | OpenRouterModel | AnthropicModel | 'mock';
1164
1208
  */
1165
1209
  declare const GPT5OptionsSchema: z.ZodObject<{
1166
1210
  reasoning_effort: z.ZodOptional<z.ZodEnum<{
1211
+ low: "low";
1212
+ high: "high";
1167
1213
  minimal: "minimal";
1214
+ medium: "medium";
1215
+ }>>;
1216
+ verbosity: z.ZodOptional<z.ZodEnum<{
1168
1217
  low: "low";
1218
+ high: "high";
1169
1219
  medium: "medium";
1220
+ }>>;
1221
+ }, z.core.$strip>;
1222
+ /**
1223
+ * GPT-5.6 model options schema
1224
+ *
1225
+ * NOT the GPT-5 enum. 5.6 removed `minimal` and added `none`, `xhigh`, and `max`, so reusing
1226
+ * `GPT5OptionsSchema` would accept one value 5.6 rejects and reject three it accepts.
1227
+ */
1228
+ declare const GPT56OptionsSchema: z.ZodObject<{
1229
+ reasoning_effort: z.ZodOptional<z.ZodEnum<{
1230
+ none: "none";
1231
+ low: "low";
1170
1232
  high: "high";
1233
+ medium: "medium";
1234
+ xhigh: "xhigh";
1235
+ max: "max";
1171
1236
  }>>;
1172
1237
  verbosity: z.ZodOptional<z.ZodEnum<{
1173
1238
  low: "low";
1174
- medium: "medium";
1175
1239
  high: "high";
1240
+ medium: "medium";
1176
1241
  }>>;
1177
1242
  }, z.core.$strip>;
1178
1243
  /**
@@ -1194,10 +1259,11 @@ declare const AnthropicOptionsSchema: z.ZodObject<{}, z.core.$strict>;
1194
1259
  * Infer TypeScript types from schemas
1195
1260
  */
1196
1261
  type GPT5Options = z.infer<typeof GPT5OptionsSchema>;
1262
+ type GPT56Options = z.infer<typeof GPT56OptionsSchema>;
1197
1263
  type MockOptions = Record<string, never>;
1198
1264
  type OpenRouterOptions = z.infer<typeof OpenRouterOptionsSchema>;
1199
1265
  type AnthropicOptions = z.infer<typeof AnthropicOptionsSchema>;
1200
- type ModelSpecificOptions = GPT5Options | MockOptions | OpenRouterOptions | AnthropicOptions;
1266
+ type ModelSpecificOptions = GPT5Options | GPT56Options | MockOptions | OpenRouterOptions | AnthropicOptions;
1201
1267
  /**
1202
1268
  * Model configuration for LLM execution
1203
1269
  * Belongs in resource definition (AgentDefinition, WorkflowDefinition, etc.)
@@ -3025,6 +3091,64 @@ type Database = {
3025
3091
  }
3026
3092
  ];
3027
3093
  };
3094
+ content_distribution_metrics: {
3095
+ Row: {
3096
+ captured_at: string;
3097
+ created_at: string;
3098
+ distribution_id: string;
3099
+ id: string;
3100
+ metrics: Json;
3101
+ organization_id: string;
3102
+ raw: Json;
3103
+ source: string;
3104
+ source_execution_id: string | null;
3105
+ };
3106
+ Insert: {
3107
+ captured_at?: string;
3108
+ created_at?: string;
3109
+ distribution_id: string;
3110
+ id?: string;
3111
+ metrics?: Json;
3112
+ organization_id: string;
3113
+ raw?: Json;
3114
+ source: string;
3115
+ source_execution_id?: string | null;
3116
+ };
3117
+ Update: {
3118
+ captured_at?: string;
3119
+ created_at?: string;
3120
+ distribution_id?: string;
3121
+ id?: string;
3122
+ metrics?: Json;
3123
+ organization_id?: string;
3124
+ raw?: Json;
3125
+ source?: string;
3126
+ source_execution_id?: string | null;
3127
+ };
3128
+ Relationships: [
3129
+ {
3130
+ foreignKeyName: "content_distribution_metrics_distribution_fkey";
3131
+ columns: ["distribution_id", "organization_id"];
3132
+ isOneToOne: false;
3133
+ referencedRelation: "content_distributions";
3134
+ referencedColumns: ["id", "organization_id"];
3135
+ },
3136
+ {
3137
+ foreignKeyName: "content_distribution_metrics_organization_id_fkey";
3138
+ columns: ["organization_id"];
3139
+ isOneToOne: false;
3140
+ referencedRelation: "organizations";
3141
+ referencedColumns: ["id"];
3142
+ },
3143
+ {
3144
+ foreignKeyName: "content_distribution_metrics_source_execution_id_fkey";
3145
+ columns: ["source_execution_id"];
3146
+ isOneToOne: false;
3147
+ referencedRelation: "execution_logs";
3148
+ referencedColumns: ["execution_id"];
3149
+ }
3150
+ ];
3151
+ };
3028
3152
  content_distributions: {
3029
3153
  Row: {
3030
3154
  adapted_body: string | null;
@@ -3174,6 +3298,63 @@ type Database = {
3174
3298
  }
3175
3299
  ];
3176
3300
  };
3301
+ content_item_source_assets: {
3302
+ Row: {
3303
+ alt_text: string | null;
3304
+ content_item_id: string;
3305
+ created_at: string;
3306
+ crop: Json | null;
3307
+ derivative_crop: Json | null;
3308
+ derivative_path: string | null;
3309
+ derivative_rendered_at: string | null;
3310
+ id: string;
3311
+ organization_id: string;
3312
+ position: number;
3313
+ source_asset_id: string;
3314
+ };
3315
+ Insert: {
3316
+ alt_text?: string | null;
3317
+ content_item_id: string;
3318
+ created_at?: string;
3319
+ crop?: Json | null;
3320
+ derivative_crop?: Json | null;
3321
+ derivative_path?: string | null;
3322
+ derivative_rendered_at?: string | null;
3323
+ id?: string;
3324
+ organization_id: string;
3325
+ position: number;
3326
+ source_asset_id: string;
3327
+ };
3328
+ Update: {
3329
+ alt_text?: string | null;
3330
+ content_item_id?: string;
3331
+ created_at?: string;
3332
+ crop?: Json | null;
3333
+ derivative_crop?: Json | null;
3334
+ derivative_path?: string | null;
3335
+ derivative_rendered_at?: string | null;
3336
+ id?: string;
3337
+ organization_id?: string;
3338
+ position?: number;
3339
+ source_asset_id?: string;
3340
+ };
3341
+ Relationships: [
3342
+ {
3343
+ foreignKeyName: "content_item_source_assets_asset_fkey";
3344
+ columns: ["source_asset_id", "organization_id"];
3345
+ isOneToOne: false;
3346
+ referencedRelation: "content_source_assets";
3347
+ referencedColumns: ["id", "organization_id"];
3348
+ },
3349
+ {
3350
+ foreignKeyName: "content_item_source_assets_item_fkey";
3351
+ columns: ["content_item_id", "organization_id"];
3352
+ isOneToOne: false;
3353
+ referencedRelation: "content_items";
3354
+ referencedColumns: ["id", "organization_id"];
3355
+ }
3356
+ ];
3357
+ };
3177
3358
  content_items: {
3178
3359
  Row: {
3179
3360
  body: string | null;
@@ -4929,6 +5110,25 @@ type Database = {
4929
5110
  };
4930
5111
  Returns: Json;
4931
5112
  };
5113
+ activate_deployment_atomic: {
5114
+ Args: {
5115
+ p_deployment_id: string;
5116
+ p_organization_id: string;
5117
+ };
5118
+ Returns: {
5119
+ created_at: string;
5120
+ deployment_version: string | null;
5121
+ error_message: string | null;
5122
+ id: string;
5123
+ organization_id: string;
5124
+ pid: number | null;
5125
+ port: number | null;
5126
+ sdk_version: string;
5127
+ status: string;
5128
+ tarball_path: string | null;
5129
+ updated_at: string;
5130
+ };
5131
+ };
4932
5132
  append_deal_activity: {
4933
5133
  Args: {
4934
5134
  p_activity: Json;
@@ -7103,7 +7303,9 @@ declare const OntologyObjectTypeSchema: z.ZodObject<{
7103
7303
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
7104
7304
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7105
7305
  storage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7106
- }, z.core.$loose>;
7306
+ rowSchema: z.ZodOptional<z.ZodString>;
7307
+ stateCatalogId: z.ZodOptional<z.ZodString>;
7308
+ }, z.core.$strict>;
7107
7309
  declare const OntologyLinkTypeSchema: z.ZodObject<{
7108
7310
  id: z.ZodString;
7109
7311
  label: z.ZodOptional<z.ZodString>;
@@ -7114,7 +7316,7 @@ declare const OntologyLinkTypeSchema: z.ZodObject<{
7114
7316
  to: z.ZodString;
7115
7317
  cardinality: z.ZodOptional<z.ZodString>;
7116
7318
  via: z.ZodOptional<z.ZodString>;
7117
- }, z.core.$loose>;
7319
+ }, z.core.$strict>;
7118
7320
  declare const OntologyActionTypeSchema: z.ZodObject<{
7119
7321
  id: z.ZodString;
7120
7322
  label: z.ZodOptional<z.ZodString>;
@@ -7124,7 +7326,11 @@ declare const OntologyActionTypeSchema: z.ZodObject<{
7124
7326
  actsOn: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
7125
7327
  input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7126
7328
  effects: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
7127
- }, z.core.$loose>;
7329
+ resourceId: z.ZodOptional<z.ZodString>;
7330
+ invocations: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
7331
+ lifecycle: z.ZodOptional<z.ZodString>;
7332
+ legacyActionId: z.ZodOptional<z.ZodString>;
7333
+ }, z.core.$strict>;
7128
7334
  declare const OntologyCatalogTypeSchema: z.ZodObject<{
7129
7335
  id: z.ZodString;
7130
7336
  label: z.ZodOptional<z.ZodString>;
@@ -7134,7 +7340,10 @@ declare const OntologyCatalogTypeSchema: z.ZodObject<{
7134
7340
  kind: z.ZodOptional<z.ZodString>;
7135
7341
  appliesTo: z.ZodOptional<z.ZodString>;
7136
7342
  entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7137
- }, z.core.$loose>;
7343
+ legacyCatalogKey: z.ZodOptional<z.ZodString>;
7344
+ legacyPipelineKey: z.ZodOptional<z.ZodString>;
7345
+ legacyEntityKey: z.ZodOptional<z.ZodString>;
7346
+ }, z.core.$strict>;
7138
7347
  declare const OntologyEventTypeSchema: z.ZodObject<{
7139
7348
  id: z.ZodString;
7140
7349
  label: z.ZodOptional<z.ZodString>;
@@ -7142,7 +7351,7 @@ declare const OntologyEventTypeSchema: z.ZodObject<{
7142
7351
  ownerSystemId: z.ZodOptional<z.ZodString>;
7143
7352
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
7144
7353
  payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7145
- }, z.core.$loose>;
7354
+ }, z.core.$strict>;
7146
7355
  declare const OntologyInterfaceTypeSchema: z.ZodObject<{
7147
7356
  id: z.ZodString;
7148
7357
  label: z.ZodOptional<z.ZodString>;
@@ -7150,7 +7359,7 @@ declare const OntologyInterfaceTypeSchema: z.ZodObject<{
7150
7359
  ownerSystemId: z.ZodOptional<z.ZodString>;
7151
7360
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
7152
7361
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7153
- }, z.core.$loose>;
7362
+ }, z.core.$strict>;
7154
7363
  declare const OntologyValueTypeSchema: z.ZodObject<{
7155
7364
  id: z.ZodString;
7156
7365
  label: z.ZodOptional<z.ZodString>;
@@ -7158,7 +7367,7 @@ declare const OntologyValueTypeSchema: z.ZodObject<{
7158
7367
  ownerSystemId: z.ZodOptional<z.ZodString>;
7159
7368
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
7160
7369
  primitive: z.ZodOptional<z.ZodString>;
7161
- }, z.core.$loose>;
7370
+ }, z.core.$strict>;
7162
7371
  declare const OntologySharedPropertySchema: z.ZodObject<{
7163
7372
  id: z.ZodString;
7164
7373
  label: z.ZodOptional<z.ZodString>;
@@ -7168,7 +7377,7 @@ declare const OntologySharedPropertySchema: z.ZodObject<{
7168
7377
  valueType: z.ZodOptional<z.ZodString>;
7169
7378
  searchable: z.ZodOptional<z.ZodBoolean>;
7170
7379
  pii: z.ZodOptional<z.ZodBoolean>;
7171
- }, z.core.$loose>;
7380
+ }, z.core.$strict>;
7172
7381
  declare const OntologyGroupSchema: z.ZodObject<{
7173
7382
  id: z.ZodString;
7174
7383
  label: z.ZodOptional<z.ZodString>;
@@ -7176,7 +7385,7 @@ declare const OntologyGroupSchema: z.ZodObject<{
7176
7385
  ownerSystemId: z.ZodOptional<z.ZodString>;
7177
7386
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
7178
7387
  members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
7179
- }, z.core.$loose>;
7388
+ }, z.core.$strict>;
7180
7389
  declare const OntologyEndpointTypeSchema: z.ZodObject<{
7181
7390
  id: z.ZodString;
7182
7391
  label: z.ZodOptional<z.ZodString>;
@@ -7184,7 +7393,7 @@ declare const OntologyEndpointTypeSchema: z.ZodObject<{
7184
7393
  ownerSystemId: z.ZodOptional<z.ZodString>;
7185
7394
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
7186
7395
  route: z.ZodOptional<z.ZodString>;
7187
- }, z.core.$loose>;
7396
+ }, z.core.$strict>;
7188
7397
  declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
7189
7398
  objectTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
7190
7399
  id: z.ZodString;
@@ -7194,7 +7403,9 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
7194
7403
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
7195
7404
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7196
7405
  storage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7197
- }, z.core.$loose>>>>;
7406
+ rowSchema: z.ZodOptional<z.ZodString>;
7407
+ stateCatalogId: z.ZodOptional<z.ZodString>;
7408
+ }, z.core.$strict>>>>;
7198
7409
  linkTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
7199
7410
  id: z.ZodString;
7200
7411
  label: z.ZodOptional<z.ZodString>;
@@ -7205,7 +7416,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
7205
7416
  to: z.ZodString;
7206
7417
  cardinality: z.ZodOptional<z.ZodString>;
7207
7418
  via: z.ZodOptional<z.ZodString>;
7208
- }, z.core.$loose>>>>;
7419
+ }, z.core.$strict>>>>;
7209
7420
  actionTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
7210
7421
  id: z.ZodString;
7211
7422
  label: z.ZodOptional<z.ZodString>;
@@ -7215,7 +7426,11 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
7215
7426
  actsOn: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
7216
7427
  input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7217
7428
  effects: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
7218
- }, z.core.$loose>>>>;
7429
+ resourceId: z.ZodOptional<z.ZodString>;
7430
+ invocations: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
7431
+ lifecycle: z.ZodOptional<z.ZodString>;
7432
+ legacyActionId: z.ZodOptional<z.ZodString>;
7433
+ }, z.core.$strict>>>>;
7219
7434
  catalogTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
7220
7435
  id: z.ZodString;
7221
7436
  label: z.ZodOptional<z.ZodString>;
@@ -7225,7 +7440,10 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
7225
7440
  kind: z.ZodOptional<z.ZodString>;
7226
7441
  appliesTo: z.ZodOptional<z.ZodString>;
7227
7442
  entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7228
- }, z.core.$loose>>>>;
7443
+ legacyCatalogKey: z.ZodOptional<z.ZodString>;
7444
+ legacyPipelineKey: z.ZodOptional<z.ZodString>;
7445
+ legacyEntityKey: z.ZodOptional<z.ZodString>;
7446
+ }, z.core.$strict>>>>;
7229
7447
  eventTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
7230
7448
  id: z.ZodString;
7231
7449
  label: z.ZodOptional<z.ZodString>;
@@ -7233,7 +7451,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
7233
7451
  ownerSystemId: z.ZodOptional<z.ZodString>;
7234
7452
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
7235
7453
  payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7236
- }, z.core.$loose>>>>;
7454
+ }, z.core.$strict>>>>;
7237
7455
  interfaceTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
7238
7456
  id: z.ZodString;
7239
7457
  label: z.ZodOptional<z.ZodString>;
@@ -7241,7 +7459,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
7241
7459
  ownerSystemId: z.ZodOptional<z.ZodString>;
7242
7460
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
7243
7461
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7244
- }, z.core.$loose>>>>;
7462
+ }, z.core.$strict>>>>;
7245
7463
  valueTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
7246
7464
  id: z.ZodString;
7247
7465
  label: z.ZodOptional<z.ZodString>;
@@ -7249,7 +7467,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
7249
7467
  ownerSystemId: z.ZodOptional<z.ZodString>;
7250
7468
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
7251
7469
  primitive: z.ZodOptional<z.ZodString>;
7252
- }, z.core.$loose>>>>;
7470
+ }, z.core.$strict>>>>;
7253
7471
  sharedProperties: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
7254
7472
  id: z.ZodString;
7255
7473
  label: z.ZodOptional<z.ZodString>;
@@ -7259,7 +7477,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
7259
7477
  valueType: z.ZodOptional<z.ZodString>;
7260
7478
  searchable: z.ZodOptional<z.ZodBoolean>;
7261
7479
  pii: z.ZodOptional<z.ZodBoolean>;
7262
- }, z.core.$loose>>>>;
7480
+ }, z.core.$strict>>>>;
7263
7481
  groups: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
7264
7482
  id: z.ZodString;
7265
7483
  label: z.ZodOptional<z.ZodString>;
@@ -7267,7 +7485,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
7267
7485
  ownerSystemId: z.ZodOptional<z.ZodString>;
7268
7486
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
7269
7487
  members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
7270
- }, z.core.$loose>>>>;
7488
+ }, z.core.$strict>>>>;
7271
7489
  endpoints: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
7272
7490
  id: z.ZodString;
7273
7491
  label: z.ZodOptional<z.ZodString>;
@@ -7275,7 +7493,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
7275
7493
  ownerSystemId: z.ZodOptional<z.ZodString>;
7276
7494
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
7277
7495
  route: z.ZodOptional<z.ZodString>;
7278
- }, z.core.$loose>>>>;
7496
+ }, z.core.$strict>>>>;
7279
7497
  }, z.core.$strict>>;
7280
7498
  type OntologyObjectType = z.infer<typeof OntologyObjectTypeSchema>;
7281
7499
  type OntologyLinkType = z.infer<typeof OntologyLinkTypeSchema>;
@@ -8566,7 +8784,9 @@ declare const OrganizationModelSchema: z.ZodObject<{
8566
8784
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
8567
8785
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8568
8786
  storage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8569
- }, z.core.$loose>>>>;
8787
+ rowSchema: z.ZodOptional<z.ZodString>;
8788
+ stateCatalogId: z.ZodOptional<z.ZodString>;
8789
+ }, z.core.$strict>>>>;
8570
8790
  linkTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
8571
8791
  id: z.ZodString;
8572
8792
  label: z.ZodOptional<z.ZodString>;
@@ -8577,7 +8797,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
8577
8797
  to: z.ZodString;
8578
8798
  cardinality: z.ZodOptional<z.ZodString>;
8579
8799
  via: z.ZodOptional<z.ZodString>;
8580
- }, z.core.$loose>>>>;
8800
+ }, z.core.$strict>>>>;
8581
8801
  actionTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
8582
8802
  id: z.ZodString;
8583
8803
  label: z.ZodOptional<z.ZodString>;
@@ -8587,7 +8807,11 @@ declare const OrganizationModelSchema: z.ZodObject<{
8587
8807
  actsOn: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
8588
8808
  input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8589
8809
  effects: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
8590
- }, z.core.$loose>>>>;
8810
+ resourceId: z.ZodOptional<z.ZodString>;
8811
+ invocations: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
8812
+ lifecycle: z.ZodOptional<z.ZodString>;
8813
+ legacyActionId: z.ZodOptional<z.ZodString>;
8814
+ }, z.core.$strict>>>>;
8591
8815
  catalogTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
8592
8816
  id: z.ZodString;
8593
8817
  label: z.ZodOptional<z.ZodString>;
@@ -8597,7 +8821,10 @@ declare const OrganizationModelSchema: z.ZodObject<{
8597
8821
  kind: z.ZodOptional<z.ZodString>;
8598
8822
  appliesTo: z.ZodOptional<z.ZodString>;
8599
8823
  entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8600
- }, z.core.$loose>>>>;
8824
+ legacyCatalogKey: z.ZodOptional<z.ZodString>;
8825
+ legacyPipelineKey: z.ZodOptional<z.ZodString>;
8826
+ legacyEntityKey: z.ZodOptional<z.ZodString>;
8827
+ }, z.core.$strict>>>>;
8601
8828
  eventTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
8602
8829
  id: z.ZodString;
8603
8830
  label: z.ZodOptional<z.ZodString>;
@@ -8605,7 +8832,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
8605
8832
  ownerSystemId: z.ZodOptional<z.ZodString>;
8606
8833
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
8607
8834
  payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8608
- }, z.core.$loose>>>>;
8835
+ }, z.core.$strict>>>>;
8609
8836
  interfaceTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
8610
8837
  id: z.ZodString;
8611
8838
  label: z.ZodOptional<z.ZodString>;
@@ -8613,7 +8840,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
8613
8840
  ownerSystemId: z.ZodOptional<z.ZodString>;
8614
8841
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
8615
8842
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8616
- }, z.core.$loose>>>>;
8843
+ }, z.core.$strict>>>>;
8617
8844
  valueTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
8618
8845
  id: z.ZodString;
8619
8846
  label: z.ZodOptional<z.ZodString>;
@@ -8621,7 +8848,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
8621
8848
  ownerSystemId: z.ZodOptional<z.ZodString>;
8622
8849
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
8623
8850
  primitive: z.ZodOptional<z.ZodString>;
8624
- }, z.core.$loose>>>>;
8851
+ }, z.core.$strict>>>>;
8625
8852
  sharedProperties: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
8626
8853
  id: z.ZodString;
8627
8854
  label: z.ZodOptional<z.ZodString>;
@@ -8631,7 +8858,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
8631
8858
  valueType: z.ZodOptional<z.ZodString>;
8632
8859
  searchable: z.ZodOptional<z.ZodBoolean>;
8633
8860
  pii: z.ZodOptional<z.ZodBoolean>;
8634
- }, z.core.$loose>>>>;
8861
+ }, z.core.$strict>>>>;
8635
8862
  groups: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
8636
8863
  id: z.ZodString;
8637
8864
  label: z.ZodOptional<z.ZodString>;
@@ -8639,7 +8866,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
8639
8866
  ownerSystemId: z.ZodOptional<z.ZodString>;
8640
8867
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
8641
8868
  members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
8642
- }, z.core.$loose>>>>;
8869
+ }, z.core.$strict>>>>;
8643
8870
  endpoints: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
8644
8871
  id: z.ZodString;
8645
8872
  label: z.ZodOptional<z.ZodString>;
@@ -8647,7 +8874,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
8647
8874
  ownerSystemId: z.ZodOptional<z.ZodString>;
8648
8875
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
8649
8876
  route: z.ZodOptional<z.ZodString>;
8650
- }, z.core.$loose>>>>;
8877
+ }, z.core.$strict>>>>;
8651
8878
  }, z.core.$strict>>>;
8652
8879
  resources: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
8653
8880
  id: z.ZodString;
@@ -9712,6 +9939,166 @@ interface CreateFolderResult {
9712
9939
  path_display: string;
9713
9940
  } | null;
9714
9941
  }
9942
+ /**
9943
+ * List folder parameters
9944
+ *
9945
+ * Pass `cursor` (from a previous result) to fetch only what changed since
9946
+ * that cursor -- Dropbox's incremental-sync mechanism, not an optional
9947
+ * convenience.
9948
+ */
9949
+ interface ListFolderParams {
9950
+ path?: string;
9951
+ recursive?: boolean;
9952
+ cursor?: string;
9953
+ }
9954
+ /**
9955
+ * A single file or folder entry returned by listFolder
9956
+ */
9957
+ interface DropboxListFolderEntry {
9958
+ '.tag': 'file' | 'folder' | 'deleted';
9959
+ id: string;
9960
+ name: string;
9961
+ path_lower?: string;
9962
+ path_display?: string;
9963
+ size?: number;
9964
+ content_hash?: string;
9965
+ }
9966
+ /**
9967
+ * List folder result
9968
+ */
9969
+ interface ListFolderResult {
9970
+ entries: DropboxListFolderEntry[];
9971
+ cursor: string;
9972
+ has_more: boolean;
9973
+ }
9974
+ /**
9975
+ * Get metadata parameters
9976
+ */
9977
+ interface GetMetadataParams {
9978
+ id: string;
9979
+ }
9980
+ /**
9981
+ * Photo/video-specific metadata
9982
+ */
9983
+ interface DropboxMediaMetadata {
9984
+ '.tag': 'photo' | 'video';
9985
+ dimensions?: {
9986
+ height: number;
9987
+ width: number;
9988
+ };
9989
+ time_taken?: string;
9990
+ }
9991
+ /**
9992
+ * Wrapper around media metadata, matching Dropbox's tagged-union response shape
9993
+ */
9994
+ interface DropboxMediaInfo {
9995
+ '.tag': 'metadata' | 'absent';
9996
+ metadata?: DropboxMediaMetadata;
9997
+ }
9998
+ /**
9999
+ * Get metadata result
10000
+ */
10001
+ interface GetMetadataResult {
10002
+ id: string;
10003
+ name: string;
10004
+ path_lower?: string;
10005
+ path_display?: string;
10006
+ size?: number;
10007
+ content_hash?: string;
10008
+ media_info?: DropboxMediaInfo;
10009
+ }
10010
+ /**
10011
+ * Get temporary link parameters
10012
+ */
10013
+ interface GetTemporaryLinkParams {
10014
+ id: string;
10015
+ }
10016
+ /**
10017
+ * Get temporary link result (valid four hours, never persist)
10018
+ */
10019
+ interface GetTemporaryLinkResult {
10020
+ link: string;
10021
+ metadata: {
10022
+ id: string;
10023
+ name: string;
10024
+ path_lower?: string;
10025
+ path_display?: string;
10026
+ };
10027
+ }
10028
+ /**
10029
+ * Create shared link parameters
10030
+ */
10031
+ interface CreateSharedLinkParams {
10032
+ id: string;
10033
+ }
10034
+ /**
10035
+ * Create shared link result (url is always the raw, bytes-inline form)
10036
+ */
10037
+ interface CreateSharedLinkResult {
10038
+ url: string;
10039
+ id: string;
10040
+ name: string;
10041
+ }
10042
+ /**
10043
+ * Download parameters
10044
+ */
10045
+ interface DownloadParams {
10046
+ id: string;
10047
+ }
10048
+ /**
10049
+ * Download result (Uint8Array for browser safety)
10050
+ */
10051
+ interface DownloadResult {
10052
+ content: Uint8Array;
10053
+ contentType: string;
10054
+ name: string;
10055
+ }
10056
+ type DropboxThumbnailFormat = 'jpeg' | 'png';
10057
+ type DropboxThumbnailSize = 'w32h32' | 'w64h64' | 'w128h128' | 'w256h256' | 'w480h320' | 'w640h480' | 'w960h640' | 'w1024h768' | 'w2048h1536';
10058
+ /**
10059
+ * Get thumbnail parameters
10060
+ */
10061
+ interface GetThumbnailParams {
10062
+ id: string;
10063
+ format?: DropboxThumbnailFormat;
10064
+ size?: DropboxThumbnailSize;
10065
+ }
10066
+ /**
10067
+ * Get thumbnail result (Uint8Array for browser safety)
10068
+ *
10069
+ * `available: false` is a normal result, not an error -- Dropbox does not
10070
+ * convert every file type (e.g. HEIC) or files over 20MB.
10071
+ */
10072
+ interface GetThumbnailResult {
10073
+ available: boolean;
10074
+ content?: Uint8Array;
10075
+ contentType?: string;
10076
+ }
10077
+ /**
10078
+ * Get thumbnail batch parameters
10079
+ *
10080
+ * Dropbox caps this at 25 ids per request.
10081
+ */
10082
+ interface GetThumbnailBatchParams {
10083
+ ids: string[];
10084
+ format?: DropboxThumbnailFormat;
10085
+ size?: DropboxThumbnailSize;
10086
+ }
10087
+ /**
10088
+ * A single entry in a batch thumbnail result (Uint8Array for browser safety)
10089
+ */
10090
+ interface ThumbnailBatchEntry {
10091
+ id: string;
10092
+ available: boolean;
10093
+ content?: Uint8Array;
10094
+ contentType?: string;
10095
+ }
10096
+ /**
10097
+ * Get thumbnail batch result
10098
+ */
10099
+ interface GetThumbnailBatchResult {
10100
+ entries: ThumbnailBatchEntry[];
10101
+ }
9715
10102
 
9716
10103
  /**
9717
10104
  * Shared Gmail param/result types (browser-safe)
@@ -10501,6 +10888,142 @@ interface ClickUpCreateTaskResult {
10501
10888
  name: string;
10502
10889
  }
10503
10890
 
10891
+ /** Container ids and Instagram user ids are numeric strings, not UUIDs. */
10892
+ type InstagramContainerId = string;
10893
+ /** The Instagram professional account's user id (`me` resolves to it too). */
10894
+ type InstagramUserId = string;
10895
+ interface CreateMediaContainerParams {
10896
+ /**
10897
+ * The posting account. Optional because the stored credential may carry it:
10898
+ * every fetch resolves `params.igUserId ?? credentials.igUserId` and only
10899
+ * fails when neither is present. A single-account credential therefore does
10900
+ * not have to repeat the id on every call, and a caller with several accounts
10901
+ * behind one token still names the one it means.
10902
+ */
10903
+ igUserId?: InstagramUserId;
10904
+ /** Publicly fetchable JPEG URL. Meta cURLs this, so it must resolve without auth headers. */
10905
+ imageUrl: string;
10906
+ /** Omitted on carousel children -- the caption belongs to the parent container. */
10907
+ caption?: string;
10908
+ /** Marks this container as a carousel child. Children carry no caption of their own. */
10909
+ isCarouselItem?: boolean;
10910
+ /** Accessibility text. Maps to `InstagramContent.altText`. */
10911
+ altText?: string;
10912
+ }
10913
+ interface CreateMediaContainerResult {
10914
+ containerId: InstagramContainerId;
10915
+ }
10916
+ interface CreateCarouselContainerParams {
10917
+ /** Falls back to the credential's own `igUserId` -- see `CreateMediaContainerParams`. */
10918
+ igUserId?: InstagramUserId;
10919
+ /**
10920
+ * Child container ids, in slide order. Meta caps a carousel at 10 items and
10921
+ * crops every slide to the FIRST slide's aspect ratio.
10922
+ */
10923
+ children: InstagramContainerId[];
10924
+ caption?: string;
10925
+ }
10926
+ interface CreateCarouselContainerResult {
10927
+ containerId: InstagramContainerId;
10928
+ }
10929
+ interface PublishContainerParams {
10930
+ /** Falls back to the credential's own `igUserId` -- see `CreateMediaContainerParams`. */
10931
+ igUserId?: InstagramUserId;
10932
+ containerId: InstagramContainerId;
10933
+ }
10934
+ interface PublishContainerResult {
10935
+ /** The published media's id -- this is what belongs in `platform_post_id`. */
10936
+ mediaId: string;
10937
+ }
10938
+ interface GetContainerStatusParams {
10939
+ containerId: InstagramContainerId;
10940
+ }
10941
+ /**
10942
+ * `FINISHED` is the only state safe to publish from. `IN_PROGRESS` means poll
10943
+ * again; `ERROR` and `EXPIRED` are terminal.
10944
+ */
10945
+ type InstagramContainerStatusCode = 'EXPIRED' | 'ERROR' | 'FINISHED' | 'IN_PROGRESS' | 'PUBLISHED';
10946
+ interface GetContainerStatusResult {
10947
+ containerId: InstagramContainerId;
10948
+ statusCode: InstagramContainerStatusCode;
10949
+ /** Human-readable detail; carries the reason when `statusCode` is `ERROR`. */
10950
+ status: string;
10951
+ }
10952
+ interface GetMediaPermalinkParams {
10953
+ mediaId: string;
10954
+ }
10955
+ interface GetMediaPermalinkResult {
10956
+ mediaId: string;
10957
+ /** The public post URL -- this is what belongs in `platform_url`. */
10958
+ permalink: string;
10959
+ }
10960
+ interface GetPublishingLimitParams {
10961
+ /** Falls back to the credential's own `igUserId` -- see `CreateMediaContainerParams`. */
10962
+ igUserId?: InstagramUserId;
10963
+ }
10964
+ interface GetPublishingLimitResult {
10965
+ /** Posts published in the current 24-hour moving window. */
10966
+ quotaUsage: number;
10967
+ /** Meta's cap: 100 API-published posts per 24 hours, per account. A carousel counts as one. */
10968
+ quotaTotal: number;
10969
+ }
10970
+ /**
10971
+ * The metrics a FEED image or carousel returns.
10972
+ *
10973
+ * **Measured, not documented.** This list came from asking Meta for one metric
10974
+ * at a time against a real published post on 2026-08-21; the documented set is
10975
+ * wider and includes names this media product type refuses. Every one of these
10976
+ * is `period: "lifetime"` and a plain integer.
10977
+ *
10978
+ * A Reel supports a different set. Extend this union when one is measured --
10979
+ * a closed union is what makes an unmeasured metric a compile error rather
10980
+ * than a silently absent key.
10981
+ */
10982
+ type InstagramMediaMetric = 'reach' | 'views' | 'likes' | 'comments' | 'shares' | 'saved' | 'total_interactions' | 'profile_visits' | 'profile_activity' | 'follows';
10983
+ interface GetMediaInsightsParams {
10984
+ /** A published post's media id -- what `platform_post_id` holds. */
10985
+ mediaId: string;
10986
+ /**
10987
+ * Overrides which metrics are asked for. Normally omitted: the default is
10988
+ * the measured set above, and narrowing it only loses data.
10989
+ */
10990
+ metrics?: InstagramMediaMetric[];
10991
+ }
10992
+ /** A metric this media refused, with Meta's own reason. */
10993
+ interface InstagramUnavailableMetric {
10994
+ metric: InstagramMediaMetric;
10995
+ reason: string;
10996
+ }
10997
+ interface GetMediaInsightsResult {
10998
+ mediaId: string;
10999
+ /** When the read happened -- what belongs in `metrics_updated_at`. */
11000
+ capturedAt: string;
11001
+ /**
11002
+ * Every metric Meta returned. Partial because availability varies by media
11003
+ * product type: a key's absence means this post does not support it, not
11004
+ * that its value is zero.
11005
+ */
11006
+ metrics: Partial<Record<InstagramMediaMetric, number>>;
11007
+ /**
11008
+ * Populated only when the batch request was refused and each metric was
11009
+ * retried alone. Empty on the normal path, where one refusal is indivisible
11010
+ * from the rest.
11011
+ */
11012
+ unavailable: InstagramUnavailableMetric[];
11013
+ }
11014
+ /**
11015
+ * Long-lived tokens last 60 days and can be refreshed once at least 24 hours
11016
+ * old, which extends them another 60 days from the refresh date. Nothing
11017
+ * refreshes them automatically -- see the task doc's Open Decision 4.
11018
+ */
11019
+ type RefreshTokenParams = Record<string, never>;
11020
+ interface RefreshTokenResult {
11021
+ accessToken: string;
11022
+ tokenType: string;
11023
+ /** Seconds until expiry -- 60 days when the refresh succeeds. */
11024
+ expiresIn: number;
11025
+ }
11026
+
10504
11027
  interface FindCompanyEmailParams {
10505
11028
  domain: string;
10506
11029
  company_name?: string;
@@ -11213,6 +11736,78 @@ declare const ContentDistributionStatusSchema: z.ZodString;
11213
11736
  * schema validates JSON-object shape and size only, not field membership.
11214
11737
  */
11215
11738
  declare const ContentPayloadEnvelopeSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
11739
+ /** Request-side crop: `.strict()`, the same mass-assignment guard every request schema in this file uses. */
11740
+ declare const ContentAssetCropInputSchema: z.ZodObject<{
11741
+ x: z.ZodNumber;
11742
+ y: z.ZodNumber;
11743
+ width: z.ZodNumber;
11744
+ height: z.ZodNumber;
11745
+ }, z.core.$strict>;
11746
+ declare const ContentItemSourceAssetResponseSchema: z.ZodObject<{
11747
+ id: z.ZodString;
11748
+ organizationId: z.ZodString;
11749
+ contentItemId: z.ZodString;
11750
+ sourceAssetId: z.ZodString;
11751
+ position: z.ZodNumber;
11752
+ crop: z.ZodNullable<z.ZodObject<{
11753
+ x: z.ZodNumber;
11754
+ y: z.ZodNumber;
11755
+ width: z.ZodNumber;
11756
+ height: z.ZodNumber;
11757
+ }, z.core.$strip>>;
11758
+ altText: z.ZodNullable<z.ZodString>;
11759
+ derivativePath: z.ZodNullable<z.ZodString>;
11760
+ derivativeCrop: z.ZodNullable<z.ZodObject<{
11761
+ x: z.ZodNumber;
11762
+ y: z.ZodNumber;
11763
+ width: z.ZodNumber;
11764
+ height: z.ZodNumber;
11765
+ }, z.core.$strip>>;
11766
+ derivativeRenderedAt: z.ZodNullable<z.ZodString>;
11767
+ createdAt: z.ZodString;
11768
+ }, z.core.$strip>;
11769
+ declare const ContentItemSourceAssetListResponseSchema: z.ZodObject<{
11770
+ data: z.ZodArray<z.ZodObject<{
11771
+ id: z.ZodString;
11772
+ organizationId: z.ZodString;
11773
+ contentItemId: z.ZodString;
11774
+ sourceAssetId: z.ZodString;
11775
+ position: z.ZodNumber;
11776
+ crop: z.ZodNullable<z.ZodObject<{
11777
+ x: z.ZodNumber;
11778
+ y: z.ZodNumber;
11779
+ width: z.ZodNumber;
11780
+ height: z.ZodNumber;
11781
+ }, z.core.$strip>>;
11782
+ altText: z.ZodNullable<z.ZodString>;
11783
+ derivativePath: z.ZodNullable<z.ZodString>;
11784
+ derivativeCrop: z.ZodNullable<z.ZodObject<{
11785
+ x: z.ZodNumber;
11786
+ y: z.ZodNumber;
11787
+ width: z.ZodNumber;
11788
+ height: z.ZodNumber;
11789
+ }, z.core.$strip>>;
11790
+ derivativeRenderedAt: z.ZodNullable<z.ZodString>;
11791
+ createdAt: z.ZodString;
11792
+ }, z.core.$strip>>;
11793
+ }, z.core.$strip>;
11794
+ /**
11795
+ * One membership as a caller supplies it. Two callers share it:
11796
+ * `CreateContentItemRequestSchema.sourceAssets` (the ordered set a carousel is
11797
+ * created with, in one transaction) and the body of the `addItemSourceAsset`
11798
+ * write, whose `itemId` arrives as a path param rather than in the body.
11799
+ */
11800
+ declare const ContentItemSourceAssetInputSchema: z.ZodObject<{
11801
+ sourceAssetId: z.ZodString;
11802
+ position: z.ZodNumber;
11803
+ crop: z.ZodOptional<z.ZodNullable<z.ZodObject<{
11804
+ x: z.ZodNumber;
11805
+ y: z.ZodNumber;
11806
+ width: z.ZodNumber;
11807
+ height: z.ZodNumber;
11808
+ }, z.core.$strict>>>;
11809
+ altText: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11810
+ }, z.core.$strict>;
11216
11811
  declare const ContentItemResponseSchema: z.ZodObject<{
11217
11812
  id: z.ZodString;
11218
11813
  organizationId: z.ZodString;
@@ -11224,6 +11819,29 @@ declare const ContentItemResponseSchema: z.ZodObject<{
11224
11819
  pipelineId: z.ZodNullable<z.ZodString>;
11225
11820
  clientId: z.ZodNullable<z.ZodString>;
11226
11821
  sourceAssetId: z.ZodNullable<z.ZodString>;
11822
+ sourceAssets: z.ZodOptional<z.ZodArray<z.ZodObject<{
11823
+ id: z.ZodString;
11824
+ organizationId: z.ZodString;
11825
+ contentItemId: z.ZodString;
11826
+ sourceAssetId: z.ZodString;
11827
+ position: z.ZodNumber;
11828
+ crop: z.ZodNullable<z.ZodObject<{
11829
+ x: z.ZodNumber;
11830
+ y: z.ZodNumber;
11831
+ width: z.ZodNumber;
11832
+ height: z.ZodNumber;
11833
+ }, z.core.$strip>>;
11834
+ altText: z.ZodNullable<z.ZodString>;
11835
+ derivativePath: z.ZodNullable<z.ZodString>;
11836
+ derivativeCrop: z.ZodNullable<z.ZodObject<{
11837
+ x: z.ZodNumber;
11838
+ y: z.ZodNumber;
11839
+ width: z.ZodNumber;
11840
+ height: z.ZodNumber;
11841
+ }, z.core.$strip>>;
11842
+ derivativeRenderedAt: z.ZodNullable<z.ZodString>;
11843
+ createdAt: z.ZodString;
11844
+ }, z.core.$strip>>>;
11227
11845
  processingState: z.ZodRecord<z.ZodString, z.ZodObject<{
11228
11846
  status: z.ZodEnum<{
11229
11847
  error: "error";
@@ -11258,6 +11876,29 @@ declare const ContentItemListResponseSchema: z.ZodObject<{
11258
11876
  pipelineId: z.ZodNullable<z.ZodString>;
11259
11877
  clientId: z.ZodNullable<z.ZodString>;
11260
11878
  sourceAssetId: z.ZodNullable<z.ZodString>;
11879
+ sourceAssets: z.ZodOptional<z.ZodArray<z.ZodObject<{
11880
+ id: z.ZodString;
11881
+ organizationId: z.ZodString;
11882
+ contentItemId: z.ZodString;
11883
+ sourceAssetId: z.ZodString;
11884
+ position: z.ZodNumber;
11885
+ crop: z.ZodNullable<z.ZodObject<{
11886
+ x: z.ZodNumber;
11887
+ y: z.ZodNumber;
11888
+ width: z.ZodNumber;
11889
+ height: z.ZodNumber;
11890
+ }, z.core.$strip>>;
11891
+ altText: z.ZodNullable<z.ZodString>;
11892
+ derivativePath: z.ZodNullable<z.ZodString>;
11893
+ derivativeCrop: z.ZodNullable<z.ZodObject<{
11894
+ x: z.ZodNumber;
11895
+ y: z.ZodNumber;
11896
+ width: z.ZodNumber;
11897
+ height: z.ZodNumber;
11898
+ }, z.core.$strip>>;
11899
+ derivativeRenderedAt: z.ZodNullable<z.ZodString>;
11900
+ createdAt: z.ZodString;
11901
+ }, z.core.$strip>>>;
11261
11902
  processingState: z.ZodRecord<z.ZodString, z.ZodObject<{
11262
11903
  status: z.ZodEnum<{
11263
11904
  error: "error";
@@ -11348,6 +11989,31 @@ declare const ContentSourceAssetResponseSchema: z.ZodObject<{
11348
11989
  createdAt: z.ZodString;
11349
11990
  updatedAt: z.ZodString;
11350
11991
  }, z.core.$strip>;
11992
+ /**
11993
+ * One entry in a distribution's `media_urls`.
11994
+ *
11995
+ * Two kinds genuinely coexist: an object in a Supabase storage bucket, and a
11996
+ * URL that is already fetchable. Both used to be stored as bare strings, so
11997
+ * every reader had to classify an entry by looking for a URI scheme — the same
11998
+ * guess, re-derived in each consumer, wrong the moment a storage key contains
11999
+ * a colon. The entry names its own kind instead.
12000
+ *
12001
+ * A `storage` entry carries its own `bucket` so a reader does not hardcode one;
12002
+ * the bucket is private, so the path is signed at read time rather than stored
12003
+ * as a URL that expires.
12004
+ *
12005
+ * This is deliberately NOT `z.union([z.string(), ...])`. Accepting both shapes
12006
+ * would relocate the heuristic rather than remove it, so existing rows are
12007
+ * migrated instead (`content-distribution-media-entries.sql`).
12008
+ */
12009
+ declare const ContentMediaEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
12010
+ kind: z.ZodLiteral<"storage">;
12011
+ bucket: z.ZodString;
12012
+ path: z.ZodString;
12013
+ }, z.core.$strict>, z.ZodObject<{
12014
+ kind: z.ZodLiteral<"url">;
12015
+ url: z.ZodString;
12016
+ }, z.core.$strict>], "kind">;
11351
12017
  declare const ContentDistributionResponseSchema: z.ZodObject<{
11352
12018
  id: z.ZodString;
11353
12019
  organizationId: z.ZodString;
@@ -11358,7 +12024,14 @@ declare const ContentDistributionResponseSchema: z.ZodObject<{
11358
12024
  adaptedBody: z.ZodNullable<z.ZodString>;
11359
12025
  platformContent: z.ZodNullable<z.ZodUnknown>;
11360
12026
  checklist: z.ZodNullable<z.ZodUnknown>;
11361
- mediaUrls: z.ZodArray<z.ZodUnknown>;
12027
+ mediaUrls: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
12028
+ kind: z.ZodLiteral<"storage">;
12029
+ bucket: z.ZodString;
12030
+ path: z.ZodString;
12031
+ }, z.core.$strict>, z.ZodObject<{
12032
+ kind: z.ZodLiteral<"url">;
12033
+ url: z.ZodString;
12034
+ }, z.core.$strict>], "kind">>;
11362
12035
  processingState: z.ZodRecord<z.ZodString, z.ZodObject<{
11363
12036
  status: z.ZodEnum<{
11364
12037
  error: "error";
@@ -11381,6 +12054,80 @@ declare const ContentDistributionResponseSchema: z.ZodObject<{
11381
12054
  createdAt: z.ZodString;
11382
12055
  updatedAt: z.ZodString;
11383
12056
  }, z.core.$strip>;
12057
+ /**
12058
+ * The cross-platform vocabulary. One name per concept, shared by every
12059
+ * platform, so a chart can put Instagram and TikTok on the same axis.
12060
+ *
12061
+ * Each key is optional and its ABSENCE MEANS UNSUPPORTED, not zero -- a FEED
12062
+ * carousel reports no `clicks` at all, which is a different fact from clicks
12063
+ * being zero. Readers must distinguish the two.
12064
+ *
12065
+ * Strict on purpose: this object is the gate the database deliberately does not
12066
+ * enforce (a CHECK on JSON keys would need a migration per platform). A source
12067
+ * returning a name outside this list is a mapping that has not been written
12068
+ * yet, and the verbatim `raw` alongside it means nothing is lost meanwhile.
12069
+ */
12070
+ declare const ContentDistributionMetricsSchema: z.ZodObject<{
12071
+ views: z.ZodOptional<z.ZodNumber>;
12072
+ reach: z.ZodOptional<z.ZodNumber>;
12073
+ likes: z.ZodOptional<z.ZodNumber>;
12074
+ comments: z.ZodOptional<z.ZodNumber>;
12075
+ shares: z.ZodOptional<z.ZodNumber>;
12076
+ saves: z.ZodOptional<z.ZodNumber>;
12077
+ engagements: z.ZodOptional<z.ZodNumber>;
12078
+ profile_visits: z.ZodOptional<z.ZodNumber>;
12079
+ profile_activity: z.ZodOptional<z.ZodNumber>;
12080
+ follows: z.ZodOptional<z.ZodNumber>;
12081
+ clicks: z.ZodOptional<z.ZodNumber>;
12082
+ }, z.core.$strict>;
12083
+ declare const ContentDistributionMetricsResponseSchema: z.ZodObject<{
12084
+ id: z.ZodString;
12085
+ organizationId: z.ZodString;
12086
+ distributionId: z.ZodString;
12087
+ capturedAt: z.ZodString;
12088
+ source: z.ZodString;
12089
+ metrics: z.ZodObject<{
12090
+ views: z.ZodOptional<z.ZodNumber>;
12091
+ reach: z.ZodOptional<z.ZodNumber>;
12092
+ likes: z.ZodOptional<z.ZodNumber>;
12093
+ comments: z.ZodOptional<z.ZodNumber>;
12094
+ shares: z.ZodOptional<z.ZodNumber>;
12095
+ saves: z.ZodOptional<z.ZodNumber>;
12096
+ engagements: z.ZodOptional<z.ZodNumber>;
12097
+ profile_visits: z.ZodOptional<z.ZodNumber>;
12098
+ profile_activity: z.ZodOptional<z.ZodNumber>;
12099
+ follows: z.ZodOptional<z.ZodNumber>;
12100
+ clicks: z.ZodOptional<z.ZodNumber>;
12101
+ }, z.core.$strict>;
12102
+ raw: z.ZodUnknown;
12103
+ sourceExecutionId: z.ZodNullable<z.ZodString>;
12104
+ createdAt: z.ZodString;
12105
+ }, z.core.$strip>;
12106
+ declare const ContentDistributionMetricsListResponseSchema: z.ZodObject<{
12107
+ data: z.ZodArray<z.ZodObject<{
12108
+ id: z.ZodString;
12109
+ organizationId: z.ZodString;
12110
+ distributionId: z.ZodString;
12111
+ capturedAt: z.ZodString;
12112
+ source: z.ZodString;
12113
+ metrics: z.ZodObject<{
12114
+ views: z.ZodOptional<z.ZodNumber>;
12115
+ reach: z.ZodOptional<z.ZodNumber>;
12116
+ likes: z.ZodOptional<z.ZodNumber>;
12117
+ comments: z.ZodOptional<z.ZodNumber>;
12118
+ shares: z.ZodOptional<z.ZodNumber>;
12119
+ saves: z.ZodOptional<z.ZodNumber>;
12120
+ engagements: z.ZodOptional<z.ZodNumber>;
12121
+ profile_visits: z.ZodOptional<z.ZodNumber>;
12122
+ profile_activity: z.ZodOptional<z.ZodNumber>;
12123
+ follows: z.ZodOptional<z.ZodNumber>;
12124
+ clicks: z.ZodOptional<z.ZodNumber>;
12125
+ }, z.core.$strict>;
12126
+ raw: z.ZodUnknown;
12127
+ sourceExecutionId: z.ZodNullable<z.ZodString>;
12128
+ createdAt: z.ZodString;
12129
+ }, z.core.$strip>>;
12130
+ }, z.core.$strip>;
11384
12131
  type ContentStepStatus = z.infer<typeof ContentStepStatusSchema>;
11385
12132
  type ContentPipelineId = z.infer<typeof ContentPipelineIdSchema>;
11386
12133
  type ContentItemStatus = z.infer<typeof ContentItemStatusSchema>;
@@ -11389,12 +12136,20 @@ type ContentDistributionPlatform = z.infer<typeof ContentDistributionPlatformSch
11389
12136
  type ContentDistributionFormat = z.infer<typeof ContentDistributionFormatSchema>;
11390
12137
  type ContentDistributionStatus = z.infer<typeof ContentDistributionStatusSchema>;
11391
12138
  type ContentPayloadEnvelope = z.infer<typeof ContentPayloadEnvelopeSchema>;
12139
+ type ContentAssetCropInput = z.infer<typeof ContentAssetCropInputSchema>;
12140
+ type ContentItemSourceAssetResponse = z.infer<typeof ContentItemSourceAssetResponseSchema>;
12141
+ type ContentItemSourceAssetListResponse = z.infer<typeof ContentItemSourceAssetListResponseSchema>;
12142
+ type ContentItemSourceAssetInput = z.infer<typeof ContentItemSourceAssetInputSchema>;
11392
12143
  type ContentItemResponse = z.infer<typeof ContentItemResponseSchema>;
11393
12144
  type ContentItemListResponse = z.infer<typeof ContentItemListResponseSchema>;
11394
12145
  type ContentItemAttemptResponse = z.infer<typeof ContentItemAttemptResponseSchema>;
11395
12146
  type ContentItemAttemptListResponse = z.infer<typeof ContentItemAttemptListResponseSchema>;
11396
12147
  type ContentSourceAssetResponse = z.infer<typeof ContentSourceAssetResponseSchema>;
12148
+ type ContentMediaEntry = z.infer<typeof ContentMediaEntrySchema>;
11397
12149
  type ContentDistributionResponse = z.infer<typeof ContentDistributionResponseSchema>;
12150
+ type ContentDistributionMetrics = z.infer<typeof ContentDistributionMetricsSchema>;
12151
+ type ContentDistributionMetricsResponse = z.infer<typeof ContentDistributionMetricsResponseSchema>;
12152
+ type ContentDistributionMetricsListResponse = z.infer<typeof ContentDistributionMetricsListResponseSchema>;
11398
12153
 
11399
12154
  /**
11400
12155
  * Tool Method Maps
@@ -11834,6 +12589,34 @@ type DropboxToolMap = {
11834
12589
  params: CreateFolderParams;
11835
12590
  result: CreateFolderResult;
11836
12591
  };
12592
+ listFolder: {
12593
+ params: ListFolderParams;
12594
+ result: ListFolderResult;
12595
+ };
12596
+ getMetadata: {
12597
+ params: GetMetadataParams;
12598
+ result: GetMetadataResult;
12599
+ };
12600
+ getTemporaryLink: {
12601
+ params: GetTemporaryLinkParams;
12602
+ result: GetTemporaryLinkResult;
12603
+ };
12604
+ createSharedLink: {
12605
+ params: CreateSharedLinkParams;
12606
+ result: CreateSharedLinkResult;
12607
+ };
12608
+ download: {
12609
+ params: DownloadParams;
12610
+ result: DownloadResult;
12611
+ };
12612
+ getThumbnail: {
12613
+ params: GetThumbnailParams;
12614
+ result: GetThumbnailResult;
12615
+ };
12616
+ getThumbnailBatch: {
12617
+ params: GetThumbnailBatchParams;
12618
+ result: GetThumbnailBatchResult;
12619
+ };
11837
12620
  };
11838
12621
  type SignatureApiToolMap = {
11839
12622
  createEnvelope: {
@@ -11991,6 +12774,46 @@ type ClickUpToolMap = {
11991
12774
  result: ClickUpCreateTaskResult;
11992
12775
  };
11993
12776
  };
12777
+ /**
12778
+ * Content Publishing via the Instagram Login configuration. Publishing is a
12779
+ * container flow, so these methods are sequenced by the caller rather than
12780
+ * composed here -- create containers, poll until FINISHED, publish, then read
12781
+ * the permalink. See the adapter's own doc comment for the order.
12782
+ */
12783
+ type InstagramToolMap = {
12784
+ createMediaContainer: {
12785
+ params: CreateMediaContainerParams;
12786
+ result: CreateMediaContainerResult;
12787
+ };
12788
+ createCarouselContainer: {
12789
+ params: CreateCarouselContainerParams;
12790
+ result: CreateCarouselContainerResult;
12791
+ };
12792
+ publishContainer: {
12793
+ params: PublishContainerParams;
12794
+ result: PublishContainerResult;
12795
+ };
12796
+ getContainerStatus: {
12797
+ params: GetContainerStatusParams;
12798
+ result: GetContainerStatusResult;
12799
+ };
12800
+ getMediaPermalink: {
12801
+ params: GetMediaPermalinkParams;
12802
+ result: GetMediaPermalinkResult;
12803
+ };
12804
+ getPublishingLimit: {
12805
+ params: GetPublishingLimitParams;
12806
+ result: GetPublishingLimitResult;
12807
+ };
12808
+ getMediaInsights: {
12809
+ params: GetMediaInsightsParams;
12810
+ result: GetMediaInsightsResult;
12811
+ };
12812
+ refreshToken: {
12813
+ params: RefreshTokenParams;
12814
+ result: RefreshTokenResult;
12815
+ };
12816
+ };
11994
12817
  type LeadToolMap = {
11995
12818
  listLists: {
11996
12819
  params: Record<string, never>;
@@ -12371,7 +13194,15 @@ type ArtifactsToolMap = {
12371
13194
  };
12372
13195
  };
12373
13196
  type ContentToolMap = {
12374
- /** Insert a new `content_items` row -- a producer's entry point for a new piece. */
13197
+ /**
13198
+ * Insert a new `content_items` row -- a producer's entry point for a new piece.
13199
+ *
13200
+ * `sourceAssets` is the ordered membership a carousel is created with, in
13201
+ * ONE transaction (Open Decision 11, 2026-08-17 -- hybrid). Index is not
13202
+ * position: each entry names its own `position`, and 0 is the cover. Every
13203
+ * later membership mutation is one of the four dedicated methods below --
13204
+ * `updateItem` never touches membership.
13205
+ */
12375
13206
  createItem: {
12376
13207
  params: {
12377
13208
  title: string;
@@ -12382,6 +13213,7 @@ type ContentToolMap = {
12382
13213
  pipelineId?: ContentPipelineId | null;
12383
13214
  clientId?: string | null;
12384
13215
  sourceAssetId?: string | null;
13216
+ sourceAssets?: ContentItemSourceAssetInput[];
12385
13217
  };
12386
13218
  result: ContentItemResponse;
12387
13219
  };
@@ -12407,6 +13239,13 @@ type ContentToolMap = {
12407
13239
  /**
12408
13240
  * Update an item's mutable fields as it advances through the pipeline.
12409
13241
  * Does NOT accept a `processingState` field -- see Decision 4 above.
13242
+ *
13243
+ * STANDING CONVENTION -- Open Decision 11 (enforced by omission): there is no
13244
+ * `sourceAssets` field here and there must not be one. A wholesale-replace
13245
+ * array would force every partial item update to say something about the
13246
+ * asset list, and once omission means "leave alone" there is no way to clear
13247
+ * membership at all. The four methods below own every membership mutation
13248
+ * after creation.
12410
13249
  */
12411
13250
  updateItem: {
12412
13251
  params: {
@@ -12421,6 +13260,72 @@ type ContentToolMap = {
12421
13260
  };
12422
13261
  result: ContentItemResponse;
12423
13262
  };
13263
+ /**
13264
+ * Link one source asset into an item at a given slide position (0 is the
13265
+ * cover). `organizationId` is never a parameter here or on the three methods
13266
+ * below: both foreign keys on `content_item_source_assets` are COMPOSITE
13267
+ * against `(id, organization_id)`, so the database refuses a cross-org link
13268
+ * structurally rather than by convention.
13269
+ *
13270
+ * There is deliberately no `listItemSourceAssets` method -- membership comes
13271
+ * back on `getItem` / `listItems` as `ContentItemResponse.sourceAssets`.
13272
+ */
13273
+ addItemSourceAsset: {
13274
+ params: {
13275
+ itemId: string;
13276
+ sourceAssetId: string;
13277
+ /** Slide order, 0 is the cover. Unique within the item. */
13278
+ position: number;
13279
+ /** Per-MEMBERSHIP crop box in normalized fractions -- the same photo crops differently per item. */
13280
+ crop?: ContentAssetCropInput | null;
13281
+ altText?: string | null;
13282
+ };
13283
+ result: ContentItemSourceAssetResponse;
13284
+ };
13285
+ /**
13286
+ * Unlink one source asset from an item. The asset row itself is untouched --
13287
+ * `content_item_source_assets.source_asset_id` is `ON DELETE RESTRICT`
13288
+ * precisely so a used asset cannot vanish out from under a published post.
13289
+ */
13290
+ removeItemSourceAsset: {
13291
+ params: {
13292
+ itemId: string;
13293
+ sourceAssetId: string;
13294
+ };
13295
+ result: void;
13296
+ };
13297
+ /**
13298
+ * Reorder an item's slides. `orderedAssetIds` is the item's COMPLETE
13299
+ * membership in its new order -- index becomes `position`, so index 0 is the
13300
+ * new cover, and a list that does not name exactly the current membership is
13301
+ * rejected.
13302
+ *
13303
+ * `UNIQUE (content_item_id, position)` is DEFERRABLE INITIALLY DEFERRED, so
13304
+ * this is plain per-row updates inside one transaction. An implementation
13305
+ * that shuffles through a temporary offset is a sign the deferrable
13306
+ * constraint was not used.
13307
+ */
13308
+ reorderItemSourceAssets: {
13309
+ params: {
13310
+ itemId: string;
13311
+ orderedAssetIds: string[];
13312
+ };
13313
+ result: ContentItemSourceAssetListResponse;
13314
+ };
13315
+ /**
13316
+ * Patch one membership's per-slide attributes. `position` is not here --
13317
+ * moving a slide is `reorderItemSourceAssets` -- and neither is
13318
+ * `sourceAssetId`: swapping the asset is a remove plus an add.
13319
+ */
13320
+ updateItemSourceAsset: {
13321
+ params: {
13322
+ itemId: string;
13323
+ sourceAssetId: string;
13324
+ crop?: ContentAssetCropInput | null;
13325
+ altText?: string | null;
13326
+ };
13327
+ result: ContentItemSourceAssetResponse;
13328
+ };
12424
13329
  /**
12425
13330
  * Record a pipeline-step attempt against an item. `attemptNumber` is
12426
13331
  * assigned server-side inside the write (Decision 6) -- never
@@ -12513,6 +13418,30 @@ type ContentToolMap = {
12513
13418
  };
12514
13419
  result: ContentSourceAssetResponse;
12515
13420
  };
13421
+ /**
13422
+ * Fetch a single distribution by id, org-scoped -- lets a producer read back
13423
+ * a distribution it just wrote before writing to it again, the idempotency
13424
+ * check `createDistribution`/`updateDistribution` alone cannot provide.
13425
+ */
13426
+ getDistribution: {
13427
+ params: {
13428
+ distributionId: string;
13429
+ };
13430
+ result: ContentDistributionResponse | null;
13431
+ };
13432
+ /** Query distributions -- e.g. a producer checking what's already been created for an item. */
13433
+ listDistributions: {
13434
+ params: {
13435
+ contentItemId?: string;
13436
+ platform?: ContentDistributionPlatform;
13437
+ status?: ContentDistributionStatus;
13438
+ limit?: number;
13439
+ offset?: number;
13440
+ };
13441
+ result: {
13442
+ data: ContentDistributionResponse[];
13443
+ };
13444
+ };
12516
13445
  /** Insert a `content_distributions` row for one platform/format target. */
12517
13446
  createDistribution: {
12518
13447
  params: {
@@ -12523,7 +13452,7 @@ type ContentToolMap = {
12523
13452
  adaptedBody?: string | null;
12524
13453
  platformContent?: unknown;
12525
13454
  checklist?: unknown;
12526
- mediaUrls?: unknown[];
13455
+ mediaUrls?: ContentMediaEntry[];
12527
13456
  };
12528
13457
  result: ContentDistributionResponse;
12529
13458
  };
@@ -12535,7 +13464,7 @@ type ContentToolMap = {
12535
13464
  adaptedBody?: string | null;
12536
13465
  platformContent?: unknown;
12537
13466
  checklist?: unknown;
12538
- mediaUrls?: unknown[];
13467
+ mediaUrls?: ContentMediaEntry[];
12539
13468
  publishMethod?: string | null;
12540
13469
  publishedAt?: string | null;
12541
13470
  platformPostId?: string | null;
@@ -12545,6 +13474,40 @@ type ContentToolMap = {
12545
13474
  };
12546
13475
  result: ContentDistributionResponse;
12547
13476
  };
13477
+ /**
13478
+ * Append one metrics reading to a distribution's history.
13479
+ *
13480
+ * Append-only: this never edits a prior row, so two captures a second apart
13481
+ * are two real readings rather than a duplicate. The service also mirrors the
13482
+ * reading into `content_distributions.metrics` + `metrics_updated_at`, which
13483
+ * is a rebuildable cache for the list views -- the history is authoritative
13484
+ * and can recompute it at any time, never the other way round.
13485
+ *
13486
+ * Nothing here is platform-specific. `metrics` uses one vocabulary shared
13487
+ * across platforms and `raw` keeps what the source actually returned, so a
13488
+ * mapping written wrong today is recoverable from `raw` later.
13489
+ */
13490
+ appendDistributionMetrics: {
13491
+ params: {
13492
+ distributionId: string;
13493
+ source: string;
13494
+ metrics: ContentDistributionMetrics;
13495
+ raw?: unknown;
13496
+ capturedAt?: string;
13497
+ sourceExecutionId?: string | null;
13498
+ };
13499
+ result: ContentDistributionMetricsResponse;
13500
+ };
13501
+ /** Read a distribution's capture history, newest first -- the series a chart draws. */
13502
+ listDistributionMetrics: {
13503
+ params: {
13504
+ distributionId: string;
13505
+ source?: string;
13506
+ limit?: number;
13507
+ offset?: number;
13508
+ };
13509
+ result: ContentDistributionMetricsListResponse;
13510
+ };
12548
13511
  };
12549
13512
  type PdfToolMap = {
12550
13513
  render: {
@@ -13366,7 +14329,7 @@ type ToolingErrorType = 'service_unavailable' | 'permission_denied' | 'platform_
13366
14329
  * Note: Concrete adapter implementations are deferred until needed.
13367
14330
  * This type provides compile-time safety and auto-completion for tool definitions.
13368
14331
  */
13369
- type IntegrationType = 'gmail' | 'google-sheets' | 'slack' | 'github' | 'linear' | 'attio' | 'airtable' | 'salesforce' | 'hubspot' | 'stripe' | 'twilio' | 'sendgrid' | 'mailgun' | 'zapier' | 'webhook' | 'apify' | 'instantly' | 'resend' | 'signature-api' | 'dropbox' | 'anymailfinder' | 'tomba' | 'millionverifier';
14332
+ type IntegrationType = 'gmail' | 'google-sheets' | 'slack' | 'github' | 'linear' | 'attio' | 'airtable' | 'salesforce' | 'hubspot' | 'stripe' | 'twilio' | 'sendgrid' | 'mailgun' | 'zapier' | 'webhook' | 'apify' | 'instantly' | 'resend' | 'signature-api' | 'dropbox' | 'anymailfinder' | 'tomba' | 'millionverifier' | 'instagram';
13370
14333
 
13371
14334
  /**
13372
14335
  * Resource Registry type definitions
@@ -14128,7 +15091,19 @@ declare class RegistryValidationError extends Error {
14128
15091
  readonly orgName: string;
14129
15092
  readonly resourceId: string | null;
14130
15093
  readonly field: string | null;
14131
- constructor(orgName: string, resourceId: string | null, field: string | null, message: string);
15094
+ /** Every issue message the check found, not just the one embedded in `message`. Populated by
15095
+ * the collect-all-issues sites (`emitGovernanceIssues`, `validateDeclaredSystemInterfaceReadiness`)
15096
+ * so a caller (e.g. the CLI's error renderer) can print the whole list instead of round-tripping
15097
+ * once per issue. Undefined for every other throw site in this file, which still reports one
15098
+ * issue at a time. */
15099
+ readonly issues?: string[] | undefined;
15100
+ constructor(orgName: string, resourceId: string | null, field: string | null, message: string,
15101
+ /** Every issue message the check found, not just the one embedded in `message`. Populated by
15102
+ * the collect-all-issues sites (`emitGovernanceIssues`, `validateDeclaredSystemInterfaceReadiness`)
15103
+ * so a caller (e.g. the CLI's error renderer) can print the whole list instead of round-tripping
15104
+ * once per issue. Undefined for every other throw site in this file, which still reports one
15105
+ * issue at a time. */
15106
+ issues?: string[] | undefined);
14132
15107
  }
14133
15108
  type ResourceValidatorMode = 'strict' | 'warn-only';
14134
15109
  type ResourceGovernanceValidationIssueType = 'missing-code-resource' | 'missing-om-resource' | 'type-mismatch' | 'system-mismatch' | 'missing-om-system' | 'raw-resource-id' | 'descriptor-mismatch' | 'missing-ontology-actions' | 'ontology-reference-missing' | 'ontology-topology-grant-missing' | 'primary-action-mismatch' | 'topology-reference-missing';
@@ -14170,6 +15145,10 @@ interface SystemInterfaceReadinessValidationResult {
14170
15145
  valid: boolean;
14171
15146
  issues: SystemInterfaceReadinessValidationIssue[];
14172
15147
  }
15148
+ interface SystemInterfaceReadinessValidationOptions {
15149
+ mode?: ResourceValidatorMode;
15150
+ onWarning?: (issue: SystemInterfaceReadinessValidationIssue) => void;
15151
+ }
14173
15152
  /**
14174
15153
  * Validates runtime resource definitions against OM Resources and Systems.
14175
15154
  *
@@ -14190,7 +15169,7 @@ declare function validateResourceGovernance(orgName: string, deployment: Deploym
14190
15169
  * Contract-absent models remain valid until they opt in with
14191
15170
  * `systems.*.apiInterface`.
14192
15171
  */
14193
- declare function validateDeclaredSystemInterfaceReadiness(orgName: string, organizationModel: ResourceGovernanceModel | undefined): SystemInterfaceReadinessValidationResult;
15172
+ declare function validateDeclaredSystemInterfaceReadiness(orgName: string, organizationModel: ResourceGovernanceModel | undefined, options?: SystemInterfaceReadinessValidationOptions): SystemInterfaceReadinessValidationResult;
14194
15173
 
14195
15174
  /**
14196
15175
  * LLM Platform Tool Adapter
@@ -14204,14 +15183,18 @@ declare function validateDeclaredSystemInterfaceReadiness(orgName: string, organ
14204
15183
  type LLMProvider = 'openai' | 'anthropic' | 'openrouter';
14205
15184
  /**
14206
15185
  * SDK LLM generate params.
14207
- * Extends LLMGenerateRequest with required provider/model for worker→platform dispatch.
14208
- * Provider and model must always be specified explicitly no implicit fallback.
15186
+ *
15187
+ * `provider` and `model` are optional, and omitting them is a real choice rather than a shorthand:
15188
+ * the platform then resolves the pair from the resource's own `modelConfig`, and failing that from
15189
+ * the `DEFAULT_LLM_MODEL` environment variable. A call that names a model always wins, so a
15190
+ * resource that states its model keeps stating it. Supply both or neither — a half-supplied pair is
15191
+ * rejected, because pairing an explicit provider with a defaulted model silently mismatches them.
14209
15192
  */
14210
15193
  interface SDKLLMGenerateParams extends Omit<LLMGenerateRequest, 'signal'> {
14211
- /** LLM provider */
14212
- provider: LLMProvider;
14213
- /** Model identifier — must be a supported LLMModel */
14214
- model: LLMModel;
15194
+ /** LLM provider. Omit to inherit the resource's `modelConfig`, then the platform default. */
15195
+ provider?: LLMProvider;
15196
+ /** Model identifier — must be a supported LLMModel. Omit to inherit alongside `provider`. */
15197
+ model?: LLMModel;
14215
15198
  }
14216
15199
 
14217
15200
  type ResourceStatus = 'dev' | 'prod';
@@ -14401,4 +15384,4 @@ declare const ListBuilderStageKeySchema: z.ZodString;
14401
15384
  type ListBuilderStageKey = z.infer<typeof ListBuilderStageKeySchema>;
14402
15385
 
14403
15386
  export { ActivityEventSchema, BuildPlanSnapshotStepSchema, ProspectingBuildTemplateSchema as BuildTemplateSchema, ContractRefResolutionError, CrmStageKeySchema, CrmStateKeySchema, EmailSchema, ExecutionError, ListBuilderStageKeySchema, ProcessingStageStatusSchema, RegistryValidationError, ResourceRegistry, StepType, ToolingError, bindResourceDescriptor, compileBusinessOntologyValidationIndex, concurrentPool, createLeadGenStageValidators, defineContract, defineResource, defineResourceOntology, defineResources, defineStep, defineTopology, defineTopologyRelationship, defineWorkflow, defineWorkflowConfig, deriveActions, diagnosticOutput, integrationInput, isBuiltInReadinessProfile, isZodType, lookupReadinessProfile, parseTopologyNodeRef, projectDeploymentSpec, projectTopologyRelationships, registerReadinessProfile, resolveContractRef, runDiagnostic, splitName, toSdkResourceDescriptor, topologyRef, topologyRelationship, validateDeclaredSystemInterfaceReadiness, validateResourceGovernance, withPlatformAgentResourceDescriptor, withPlatformAgentResourceDescriptors, withPlatformIntegrationResourceDescriptor, withPlatformIntegrationResourceDescriptors, withPlatformResourceDescriptor, withPlatformResourceDescriptors };
14404
- export type { AbsoluteScheduleConfig, AcqCompany, AcqContact, AcqDeal, AcqDealRow, AcqList, Action, ActionDef, ActivityEvent, AddToCampaignLead, AddToCampaignParams, AddToCampaignResult, AgentConfig, AgentConstraints, AgentDefinition, AgentMemory, AgentResourceDescriptorResolver, FindCompanyEmailParams as AnymailfinderFindCompanyEmailParams, FindCompanyEmailResult as AnymailfinderFindCompanyEmailResult, FindDecisionMakerEmailParams as AnymailfinderFindDecisionMakerEmailParams, FindDecisionMakerEmailResult as AnymailfinderFindDecisionMakerEmailResult, FindPersonEmailParams as AnymailfinderFindPersonEmailParams, FindPersonEmailResult as AnymailfinderFindPersonEmailResult, AnymailfinderToolMap, VerifyEmailParams as AnymailfinderVerifyEmailParams, VerifyEmailResult as AnymailfinderVerifyEmailResult, ApifyToolMap, ApifyWebhookConfig, AppendRowsParams, AppendRowsResult, ApprovalToolMap, ArtifactsToolMap, AttioToolMap, BatchUpdateParams, BatchUpdateResult, BuildPlanSnapshotStep, BulkDeleteLeadsParams, BulkDeleteLeadsResult, BulkImportParams, BulkImportResult, BusinessOntologyValidationIndex, CancelHitlByDealIdParams, CancelSchedulesAndHitlByEmailParams, ClearDealFieldsParams, ClearRangeParams, ClearRangeResult, ClickUpToolMap, CompanyFilters, ConcurrentPoolOptions, ConcurrentPoolResult, ConditionalNext, ContactFilters, ContentToolMap, Contract, ContractRefResolutionErrorCode, ContractRegistry, CreateAttributeParams, CreateAttributeResult, CreateAutoPaymentLinkParams, CreateAutoPaymentLinkResult, CreateCheckoutSessionParams, CreateCheckoutSessionResult, CreateCompanyParams, CreateContactParams, CreateEnvelopeParams, CreateEnvelopeResult, CreateFolderParams, CreateFolderResult, CreateListParams, CreateNoteParams, CreateNoteResult, CreatePaymentLinkParams, CreatePaymentLinkResult, CreateRecordParams, CreateRecordResult, CreateScheduleInput, CrmStageKey, CrmStateKey, CrmToolMap, DeleteDealParams, DeleteNoteParams, DeleteNoteResult, DeleteRecordParams, DeleteRecordResult, DeleteRowByValueParams, DeleteRowByValueResult, DeploymentSpec, DiagnosticOutput, DownloadDocumentParams, DownloadDocumentResult, DropboxToolMap, ElevasConfig, EmailToolMap, EnvelopeDocument, EventTriggerConfig, ExecutionContext, ExecutionInterface, ExecutionMetadata, ExecutionToolMap, FilterExpression, FilterRowsParams, FilterRowsResult, FormField, FormFieldType, FormSchema, GetDailyCampaignAnalyticsParams, GetDailyCampaignAnalyticsResult, GetEmailsParams, GetEmailsResult, GetEnvelopeParams, GetEnvelopeResult, GetHeadersParams, GetHeadersResult, GetLastRowParams, GetLastRowResult, GetPaymentLinkParams, GetPaymentLinkResult, GetRecordParams, GetRecordResult, GetRowByValueParams, GetRowByValueResult, GetSpreadsheetMetadataParams, GetSpreadsheetMetadataResult, GmailSendEmailParams, GmailSendEmailResult, GmailToolMap, GoogleSheetsToolMap, HumanCheckpointDefinition, InstantlyToolMap, IntegrationDefinition, IntegrationResourceDescriptorResolver, JsonSchema, LLMAdapterFactory, LLMGenerateRequest, LLMGenerateResponse, LLMMessage, LLMModel, LeadGenStageValidators, LeadToolMap, LinearNext, ListAttributesParams, ListAttributesResult, ListBuilderStageKey, ListBuilderStep, ListLeadsParams, ListLeadsResult, ListNotesParams, ListNotesResult, ListObjectsResult, ListPaymentLinksParams, ListPaymentLinksResult, ListToolMap, MarkProposalReviewedParams, MarkProposalSentParams, MethodEntry, MillionVerifierToolMap, ModelConfig, NextConfig, NotificationSDKInput, NotificationToolMap, OrganizationModelAgentResourceEntry, OrganizationModelIntegrationResourceEntry, OrganizationModelResourceEntry, OrganizationModelResourceOntologyBinding, OrganizationModelTopology, OrganizationModelTopologyNodeRef, OrganizationModelTopologyRelationship, OrganizationModelWorkflowResourceEntry, PaginatedResult, PaginationParams, PdfToolMap, ProcessingStageStatus, ProjectDeploymentSpecOptions, ProjectsToolMap, QueryRecordsParams, QueryRecordsResult, ReadSheetParams, ReadSheetResult, ReadinessProfileEntry, ReadinessProfileKind, Recipient, RecurringScheduleConfig, RelationshipDeclaration, RelativeScheduleConfig, RemoveFromSubsequenceParams, RemoveFromSubsequenceResult, ResendGetEmailParams, ResendGetEmailResult, ResendSendEmailParams, ResendSendEmailResult, ResendToolMap, ResolvedContractRef, ResourceCategory, ResourceDefinition, ResourceLink, ResourceMetricsConfig, ResourceOntologyBindingResolver, ResourceRelationships, ResourceStatus$1 as ResourceStatus, ResourceType, RunActorParams, RunActorResult, SDKLLMGenerateParams, ScheduleOriginTracking, ScheduleTarget, ScheduleTriggerConfig, SchedulerToolMap, SendReplyParams, SendReplyResult, SetContactNurtureParams, SheetInfo, SignatureApiFieldType, SignatureApiToolMap, SigningPlace, SortCriteria, StartActorParams, StartActorResult, StepHandler, StorageDeleteInput, StorageDeleteOutput, StorageDownloadInput, StorageDownloadOutput, StorageListInput, StorageListOutput, StorageSignedUrlInput, StorageSignedUrlOutput, StorageToolMap, StorageUploadInput, StorageUploadOutput, StripeToolMap, SystemApiInterfaceReadinessContract, TaskSchedule, TaskScheduleConfig, TombaToolMap, Tool, ToolExecutionOptions, ToolMethodMap, ToolingErrorType, TransitionItemParams, TriggerConfig, TriggerDefinition, UpdateAttributeParams, UpdateAttributeResult, UpdateCloseLostReasonParams, UpdateCompanyParams, UpdateContactParams, UpdateDiscoveryDataParams, UpdateFeesParams, UpdateInterestStatusParams, UpdateInterestStatusResult, UpdateListParams, UpdatePaymentLinkParams, UpdatePaymentLinkResult, UpdateProposalDataParams, UpdateRecordParams, UpdateRecordResult, UpdateRowByValueParams, UpdateRowByValueResult, UploadFileParams, UploadFileResult, UpsertCompanyParams, UpsertContactParams, UpsertDealParams, UpsertRowParams, UpsertRowResult, VoidEnvelopeParams, VoidEnvelopeResult, WebhookProviderType, WebhookTriggerConfig, WorkflowConfig, WorkflowConfigActionRegistry, WorkflowDefinition, WorkflowLogger, WorkflowResourceDescriptorMap, WorkflowResourceDescriptorResolver, WorkflowStep, WriteSheetParams, WriteSheetResult };
15387
+ export type { AbsoluteScheduleConfig, AcqCompany, AcqContact, AcqDeal, AcqDealRow, AcqList, Action, ActionDef, ActivityEvent, AddToCampaignLead, AddToCampaignParams, AddToCampaignResult, AgentConfig, AgentConstraints, AgentDefinition, AgentMemory, AgentResourceDescriptorResolver, FindCompanyEmailParams as AnymailfinderFindCompanyEmailParams, FindCompanyEmailResult as AnymailfinderFindCompanyEmailResult, FindDecisionMakerEmailParams as AnymailfinderFindDecisionMakerEmailParams, FindDecisionMakerEmailResult as AnymailfinderFindDecisionMakerEmailResult, FindPersonEmailParams as AnymailfinderFindPersonEmailParams, FindPersonEmailResult as AnymailfinderFindPersonEmailResult, AnymailfinderToolMap, VerifyEmailParams as AnymailfinderVerifyEmailParams, VerifyEmailResult as AnymailfinderVerifyEmailResult, ApifyToolMap, ApifyWebhookConfig, AppendRowsParams, AppendRowsResult, ApprovalToolMap, ArtifactsToolMap, AttioToolMap, BatchUpdateParams, BatchUpdateResult, BuildPlanSnapshotStep, BulkDeleteLeadsParams, BulkDeleteLeadsResult, BulkImportParams, BulkImportResult, BusinessOntologyValidationIndex, CancelHitlByDealIdParams, CancelSchedulesAndHitlByEmailParams, ClearDealFieldsParams, ClearRangeParams, ClearRangeResult, ClickUpToolMap, CompanyFilters, ConcurrentPoolOptions, ConcurrentPoolResult, ConditionalNext, ContactFilters, ContentToolMap, Contract, ContractRefResolutionErrorCode, ContractRegistry, CreateAttributeParams, CreateAttributeResult, CreateAutoPaymentLinkParams, CreateAutoPaymentLinkResult, CreateCheckoutSessionParams, CreateCheckoutSessionResult, CreateCompanyParams, CreateContactParams, CreateEnvelopeParams, CreateEnvelopeResult, CreateFolderParams, CreateFolderResult, CreateListParams, CreateNoteParams, CreateNoteResult, CreatePaymentLinkParams, CreatePaymentLinkResult, CreateRecordParams, CreateRecordResult, CreateScheduleInput, CrmStageKey, CrmStateKey, CrmToolMap, DeleteDealParams, DeleteNoteParams, DeleteNoteResult, DeleteRecordParams, DeleteRecordResult, DeleteRowByValueParams, DeleteRowByValueResult, DeploymentSpec, DiagnosticOutput, DownloadDocumentParams, DownloadDocumentResult, DropboxToolMap, ElevasConfig, EmailToolMap, EnvelopeDocument, EventTriggerConfig, ExecutionContext, ExecutionInterface, ExecutionMetadata, ExecutionToolMap, FilterExpression, FilterRowsParams, FilterRowsResult, FormField, FormFieldType, FormSchema, GetDailyCampaignAnalyticsParams, GetDailyCampaignAnalyticsResult, GetEmailsParams, GetEmailsResult, GetEnvelopeParams, GetEnvelopeResult, GetHeadersParams, GetHeadersResult, GetLastRowParams, GetLastRowResult, GetPaymentLinkParams, GetPaymentLinkResult, GetRecordParams, GetRecordResult, GetRowByValueParams, GetRowByValueResult, GetSpreadsheetMetadataParams, GetSpreadsheetMetadataResult, GmailSendEmailParams, GmailSendEmailResult, GmailToolMap, GoogleSheetsToolMap, HumanCheckpointDefinition, InstagramToolMap, InstantlyToolMap, IntegrationDefinition, IntegrationResourceDescriptorResolver, JsonSchema, LLMAdapterFactory, LLMContentPart, LLMGenerateRequest, LLMGenerateResponse, LLMMessage, LLMModel, LeadGenStageValidators, LeadToolMap, LinearNext, ListAttributesParams, ListAttributesResult, ListBuilderStageKey, ListBuilderStep, ListLeadsParams, ListLeadsResult, ListNotesParams, ListNotesResult, ListObjectsResult, ListPaymentLinksParams, ListPaymentLinksResult, ListToolMap, MarkProposalReviewedParams, MarkProposalSentParams, MethodEntry, MillionVerifierToolMap, ModelConfig, NextConfig, NotificationSDKInput, NotificationToolMap, OrganizationModel, OrganizationModelAgentResourceEntry, OrganizationModelIntegrationResourceEntry, OrganizationModelResourceEntry, OrganizationModelResourceOntologyBinding, OrganizationModelTopology, OrganizationModelTopologyNodeRef, OrganizationModelTopologyRelationship, OrganizationModelWorkflowResourceEntry, PaginatedResult, PaginationParams, PdfToolMap, ProcessingStageStatus, ProjectDeploymentSpecOptions, ProjectsToolMap, QueryRecordsParams, QueryRecordsResult, ReadSheetParams, ReadSheetResult, ReadinessProfileEntry, ReadinessProfileKind, Recipient, RecurringScheduleConfig, RelationshipDeclaration, RelativeScheduleConfig, RemoveFromSubsequenceParams, RemoveFromSubsequenceResult, ResendGetEmailParams, ResendGetEmailResult, ResendSendEmailParams, ResendSendEmailResult, ResendToolMap, ResolvedContractRef, ResourceCategory, ResourceDefinition, ResourceLink, ResourceMetricsConfig, ResourceOntologyBindingResolver, ResourceRelationships, ResourceStatus$1 as ResourceStatus, ResourceType, RunActorParams, RunActorResult, SDKLLMGenerateParams, ScheduleOriginTracking, ScheduleTarget, ScheduleTriggerConfig, SchedulerToolMap, SendReplyParams, SendReplyResult, SetContactNurtureParams, SheetInfo, SignatureApiFieldType, SignatureApiToolMap, SigningPlace, SortCriteria, StartActorParams, StartActorResult, StepHandler, StorageDeleteInput, StorageDeleteOutput, StorageDownloadInput, StorageDownloadOutput, StorageListInput, StorageListOutput, StorageSignedUrlInput, StorageSignedUrlOutput, StorageToolMap, StorageUploadInput, StorageUploadOutput, StripeToolMap, SystemApiInterfaceReadinessContract, TaskSchedule, TaskScheduleConfig, TombaToolMap, Tool, ToolExecutionOptions, ToolMethodMap, ToolingErrorType, TransitionItemParams, TriggerConfig, TriggerDefinition, UpdateAttributeParams, UpdateAttributeResult, UpdateCloseLostReasonParams, UpdateCompanyParams, UpdateContactParams, UpdateDiscoveryDataParams, UpdateFeesParams, UpdateInterestStatusParams, UpdateInterestStatusResult, UpdateListParams, UpdatePaymentLinkParams, UpdatePaymentLinkResult, UpdateProposalDataParams, UpdateRecordParams, UpdateRecordResult, UpdateRowByValueParams, UpdateRowByValueResult, UploadFileParams, UploadFileResult, UpsertCompanyParams, UpsertContactParams, UpsertDealParams, UpsertRowParams, UpsertRowResult, VoidEnvelopeParams, VoidEnvelopeResult, WebhookProviderType, WebhookTriggerConfig, WorkflowConfig, WorkflowConfigActionRegistry, WorkflowDefinition, WorkflowLogger, WorkflowResourceDescriptorMap, WorkflowResourceDescriptorResolver, WorkflowStep, WriteSheetParams, WriteSheetResult };